diff --git a/samples/KafkaFlow.Sample.BatchOperations/Program.cs b/samples/KafkaFlow.Sample.BatchOperations/Program.cs index a47f7a704..1515286ed 100644 --- a/samples/KafkaFlow.Sample.BatchOperations/Program.cs +++ b/samples/KafkaFlow.Sample.BatchOperations/Program.cs @@ -30,7 +30,7 @@ .AddConsumer( consumerBuilder => consumerBuilder .Topic(batchTestTopic) - .WithGroupId("kafka-flow-sample") + .WithGroupId("kafkaflow-sample") .WithBufferSize(10000) .WithWorkersCount(1) .AddMiddlewares( diff --git a/samples/KafkaFlow.Sample.Dashboard/README.md b/samples/KafkaFlow.Sample.Dashboard/README.md index 88ac8c9e7..a5c37c4e1 100644 --- a/samples/KafkaFlow.Sample.Dashboard/README.md +++ b/samples/KafkaFlow.Sample.Dashboard/README.md @@ -27,4 +27,4 @@ Using your terminal of choice, start the sample for the sample folder. dotnet run ``` -The dashboard UI will be available at `/kafka-flow`. +The dashboard UI will be available at `/kafkaflow`. diff --git a/samples/KafkaFlow.Sample.Dashboard/Startup.cs b/samples/KafkaFlow.Sample.Dashboard/Startup.cs index cd7090457..289b2bef6 100644 --- a/samples/KafkaFlow.Sample.Dashboard/Startup.cs +++ b/samples/KafkaFlow.Sample.Dashboard/Startup.cs @@ -20,8 +20,8 @@ public void ConfigureServices(IServiceCollection services) const string topicName = "topic-dashboard"; cluster .WithBrokers(new[] { "localhost:9092" }) - .EnableAdminMessages("kafka-flow.admin", "kafka-flow.admin.group.id") - .EnableTelemetry("kafka-flow.admin", "kafka-flow.telemetry.group.id") + .EnableAdminMessages("kafkaflow.admin", "kafkaflow.admin.group.id") + .EnableTelemetry("kafkaflow.admin", "kafkaflow.telemetry.group.id") .CreateTopicIfNotExists(topicName, 3, 1) .AddConsumer( consumer => diff --git a/samples/KafkaFlow.Sample.WebApi/Program.cs b/samples/KafkaFlow.Sample.WebApi/Program.cs index 62e03129a..d50287655 100644 --- a/samples/KafkaFlow.Sample.WebApi/Program.cs +++ b/samples/KafkaFlow.Sample.WebApi/Program.cs @@ -10,7 +10,7 @@ .AddCluster( cluster => cluster .WithBrokers(new[] { "localhost:9092" }) - .EnableAdminMessages("kafka-flow.admin") + .EnableAdminMessages("kafkaflow.admin") ) ); @@ -19,11 +19,11 @@ c => { c.SwaggerDoc( - "kafka-flow", + "kafkaflow", new OpenApiInfo { Title = "KafkaFlow Admin", - Version = "kafka-flow", + Version = "kafkaflow", }); }) .AddControllers(); @@ -37,7 +37,7 @@ app.UseSwagger(); app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/kafka-flow/swagger.json", "KafkaFlow Admin"); + c.SwaggerEndpoint("/swagger/kafkaflow/swagger.json", "KafkaFlow Admin"); }); var kafkaBus = app.Services.CreateKafkaBus(); diff --git a/src/KafkaFlow.Admin.Dashboard/ApplicationBuilderExtensions.cs b/src/KafkaFlow.Admin.Dashboard/ApplicationBuilderExtensions.cs index 0eff65f3f..f525b9a1a 100644 --- a/src/KafkaFlow.Admin.Dashboard/ApplicationBuilderExtensions.cs +++ b/src/KafkaFlow.Admin.Dashboard/ApplicationBuilderExtensions.cs @@ -16,7 +16,7 @@ namespace KafkaFlow.Admin.Dashboard public static class ApplicationBuilderExtensions { /// - /// Enable the KafkaFlow dashboard. The path will be `/kafka-flow` + /// Enable the KafkaFlow dashboard. The path will be `/kafkaflow` /// /// Instance of /// diff --git a/src/KafkaFlow.Admin.Dashboard/ClientApp/angular.json b/src/KafkaFlow.Admin.Dashboard/ClientApp/angular.json index 8546c530d..e0f737e14 100644 --- a/src/KafkaFlow.Admin.Dashboard/ClientApp/angular.json +++ b/src/KafkaFlow.Admin.Dashboard/ClientApp/angular.json @@ -29,7 +29,7 @@ "customWebpackConfig": { "path": "./webpack.config.js" }, - "baseHref": "/kafka-flow/", + "baseHref": "/kafkaflow/", "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", @@ -143,4 +143,4 @@ } }, "defaultProject": "dashboard" -} \ No newline at end of file +} diff --git a/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/index.html b/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/index.html index a83bac539..71b0381c3 100644 --- a/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/index.html +++ b/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/index.html @@ -3,7 +3,7 @@ KafkaFlow - Dashboard - + diff --git a/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/main.js b/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/main.js index 60bad6258..4d471d3b3 100644 --- a/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/main.js +++ b/src/KafkaFlow.Admin.Dashboard/ClientApp/dist/main.js @@ -1,4 +1,4 @@ -(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[179],{381:(gr,th,iu)=>{"use strict";function ye(e){return"function"==typeof e}function V(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const qa=V(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function dn(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Ct{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(ye(i))try{i()}catch(o){n=o instanceof qa?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{qt(o)}catch(s){n=n??[],s instanceof qa?n=[...n,...s.errors]:n.push(s)}}if(n)throw new qa(n)}}add(n){var t;if(n&&n!==this)if(this.closed)qt(n);else{if(n instanceof Ct){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&dn(t,n)}remove(n){const{_finalizers:t}=this;t&&dn(t,n),n instanceof Ct&&n._removeParent(this)}}Ct.EMPTY=(()=>{const e=new Ct;return e.closed=!0,e})();const we=Ct.EMPTY;function bs(e){return e instanceof Ct||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function qt(e){ye(e)?e():e.unsubscribe()}const Jt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zi={setTimeout(e,n,...t){const{delegate:i}=Zi;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Zi;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ja(e){Zi.setTimeout(()=>{const{onUnhandledError:n}=Jt;if(!n)throw e;n(e)})}function Dn(){}const ii=Mo("C",void 0,void 0);function Mo(e,n,t){return{kind:e,value:n,error:t}}let Ci=null;function mr(e){if(Jt.useDeprecatedSynchronousErrorHandling){const n=!Ci;if(n&&(Ci={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ci;if(Ci=null,t)throw i}}else e()}class No extends Ct{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,bs(n)&&n.add(this)):this.destination=ri}static create(n,t,i){return new vr(n,t,i)}next(n){this.isStopped?Ds(function le(e){return Mo("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ds(function nh(e){return Mo("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ds(ii,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Za=Function.prototype.bind;function _r(e,n){return Za.call(e,n)}class Wn{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Zt(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Zt(i)}else Zt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Zt(t)}}}class vr extends No{constructor(n,t,i){let r;if(super(),ye(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Jt.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&_r(n.next,o),error:n.error&&_r(n.error,o),complete:n.complete&&_r(n.complete,o)}):r=n}this.destination=new Wn(r)}}function Zt(e){Jt.useDeprecatedSynchronousErrorHandling?function ru(e){Jt.useDeprecatedSynchronousErrorHandling&&Ci&&(Ci.errorThrown=!0,Ci.error=e)}(e):Ja(e)}function Ds(e,n){const{onStoppedNotification:t}=Jt;t&&Zi.setTimeout(()=>t(e,n))}const ri={closed:!0,next:Dn,error:function ou(e){throw e},complete:Dn},Qa="function"==typeof Symbol&&Symbol.observable||"@@observable";function xn(e){return e}function Cs(e){return 0===e.length?xn:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let je=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function el(e){return e&&e instanceof No||function oi(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&bs(e)}(t)?t:new vr(t,i,r);return mr(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=su(i))((r,o)=>{const s=new vr({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[Qa](){return this}pipe(...t){return Cs(t)(this)}toPromise(t){return new(t=su(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function su(e){var n;return null!==(n=e??Jt.Promise)&&void 0!==n?n:Promise}const ws=V(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ue=(()=>{class e extends je{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new yr(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new ws}next(t){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?we:(this.currentObservers=null,o.push(t),new Ct(()=>{this.currentObservers=null,dn(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new je;return t.source=this,t}}return e.create=(n,t)=>new yr(n,t),e})();class yr extends Ue{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:we}}function z(e){return ye(e?.lift)}function qe(e){return n=>{if(z(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ke(e,n,t,i,r){return new Ss(e,n,t,i,r)}class Ss extends No{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ne(e,n){return qe((t,i)=>{let r=0;t.subscribe(ke(i,o=>{i.next(e.call(n,o,r++))}))})}function br(e){return this instanceof br?(this.v=e,this):new br(e)}function Ms(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(m){i[m]&&(r[m]=function(v){return new Promise(function(y,D){o.push([m,v,y,D])>1||a(m,v)})})}function a(m,v){try{!function l(m){m.value instanceof br?Promise.resolve(m.value.v).then(u,f):p(o[0][2],m)}(i[m](v))}catch(y){p(o[0][3],y)}}function u(m){a("next",m)}function f(m){a("throw",m)}function p(m,v){m(v),o.shift(),o.length&&a(o[0][0],o[0][1])}}function he(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Rt(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}const Ts=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function As(e){return ye(e?.then)}function Ao(e){return ye(e[Qa])}function Ge(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function nl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Io=function uu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Is(e){return ye(e?.[Io])}function Oo(e){return Ms(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield br(t.read());if(r)return yield br(void 0);yield yield br(i)}}finally{t.releaseLock()}})}function Dr(e){return ye(e?.getReader)}function ut(e){if(e instanceof je)return e;if(null!=e){if(Ao(e))return function ah(e){return new je(n=>{const t=e[Qa]();if(ye(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ts(e))return function Os(e){return new je(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Ja)})}(e);if(Ge(e))return Ro(e);if(Is(e))return function ko(e){return new je(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Dr(e))return function $(e){return Ro(Oo(e))}(e)}throw nl(e)}function Ro(e){return new je(n=>{(function ch(e,n){var t,i,r,o;return function ih(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(f){try{u(i.next(f))}catch(p){s(p)}}function l(f){try{u(i.throw(f))}catch(p){s(p)}}function u(f){f.done?o(f.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(f.value).then(a,l)}u((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=he(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function wi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function dt(e,n,t=1/0){return ye(n)?dt((i,r)=>ne((o,s)=>n(i,o,r,s))(ut(e(i,r))),t):("number"==typeof n&&(t=n),qe((i,r)=>function Cn(e,n,t,i,r,o,s,a){const l=[];let u=0,f=0,p=!1;const m=()=>{p&&!l.length&&!u&&n.complete()},v=D=>u{o&&n.next(D),u++;let w=!1;ut(t(D,f++)).subscribe(ke(n,M=>{r?.(M),o?v(M):n.next(M)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;l.length&&uy(M)):y(M)}m()}catch(M){n.error(M)}}))};return e.subscribe(ke(n,v,()=>{p=!0,m()})),()=>{a?.()}}(i,r,e,t)))}function Se(e=1/0){return dt(xn,e)}const Xt=new je(e=>e.complete());function si(e){return e&&ye(e.schedule)}function Ln(e){return e[e.length-1]}function rt(e){return ye(Ln(e))?e.pop():void 0}function en(e){return si(Ln(e))?e.pop():void 0}function Qi(e,n=0){return qe((t,i)=>{t.subscribe(ke(i,r=>wi(i,e,()=>i.next(r),n),()=>wi(i,e,()=>i.complete(),n),r=>wi(i,e,()=>i.error(r),n)))})}function du(e,n=0){return qe((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function fu(e,n){if(!e)throw new Error("Iterable cannot be null");return new je(t=>{wi(t,n,()=>{const i=e[Symbol.asyncIterator]();wi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function gt(e,n){return n?function pu(e,n){if(null!=e){if(Ao(e))return function uh(e,n){return ut(e).pipe(du(n),Qi(n))}(e,n);if(Ts(e))return function ft(e,n){return new je(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(As(e))return function dh(e,n){return ut(e).pipe(du(n),Qi(n))}(e,n);if(Ge(e))return fu(e,n);if(Is(e))return function ks(e,n){return new je(t=>{let i;return wi(t,n,()=>{i=e[Io](),wi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>ye(i?.return)&&i.return()})}(e,n);if(Dr(e))return function hu(e,n){return fu(Oo(e),n)}(e,n)}throw nl(e)}(e,n):ut(e)}function il(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new vr({next:()=>{i.unsubscribe(),e()}});return n(...t).subscribe(i)} +(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[179],{381:(gr,th,iu)=>{"use strict";function ye(e){return"function"==typeof e}function V(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const qa=V(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function dn(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Ct{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(ye(i))try{i()}catch(o){n=o instanceof qa?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{qt(o)}catch(s){n=n??[],s instanceof qa?n=[...n,...s.errors]:n.push(s)}}if(n)throw new qa(n)}}add(n){var t;if(n&&n!==this)if(this.closed)qt(n);else{if(n instanceof Ct){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&dn(t,n)}remove(n){const{_finalizers:t}=this;t&&dn(t,n),n instanceof Ct&&n._removeParent(this)}}Ct.EMPTY=(()=>{const e=new Ct;return e.closed=!0,e})();const we=Ct.EMPTY;function bs(e){return e instanceof Ct||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function qt(e){ye(e)?e():e.unsubscribe()}const Zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ji={setTimeout(e,n,...t){const{delegate:i}=Ji;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Ji;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Za(e){Ji.setTimeout(()=>{const{onUnhandledError:n}=Zt;if(!n)throw e;n(e)})}function Dn(){}const ii=No("C",void 0,void 0);function No(e,n,t){return{kind:e,value:n,error:t}}let Ci=null;function mr(e){if(Zt.useDeprecatedSynchronousErrorHandling){const n=!Ci;if(n&&(Ci={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ci;if(Ci=null,t)throw i}}else e()}class Eo extends Ct{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,bs(n)&&n.add(this)):this.destination=ri}static create(n,t,i){return new vr(n,t,i)}next(n){this.isStopped?Ds(function le(e){return No("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ds(function nh(e){return No("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ds(ii,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ja=Function.prototype.bind;function _r(e,n){return Ja.call(e,n)}class Wn{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Jt(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Jt(i)}else Jt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Jt(t)}}}class vr extends Eo{constructor(n,t,i){let r;if(super(),ye(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Zt.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&_r(n.next,o),error:n.error&&_r(n.error,o),complete:n.complete&&_r(n.complete,o)}):r=n}this.destination=new Wn(r)}}function Jt(e){Zt.useDeprecatedSynchronousErrorHandling?function ru(e){Zt.useDeprecatedSynchronousErrorHandling&&Ci&&(Ci.errorThrown=!0,Ci.error=e)}(e):Za(e)}function Ds(e,n){const{onStoppedNotification:t}=Zt;t&&Ji.setTimeout(()=>t(e,n))}const ri={closed:!0,next:Dn,error:function ou(e){throw e},complete:Dn},Qa="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rn(e){return e}function Cs(e){return 0===e.length?Rn:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let je=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function el(e){return e&&e instanceof Eo||function oi(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&bs(e)}(t)?t:new vr(t,i,r);return mr(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=su(i))((r,o)=>{const s=new vr({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[Qa](){return this}pipe(...t){return Cs(t)(this)}toPromise(t){return new(t=su(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function su(e){var n;return null!==(n=e??Zt.Promise)&&void 0!==n?n:Promise}const ws=V(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ue=(()=>{class e extends je{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new yr(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new ws}next(t){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){mr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?we:(this.currentObservers=null,o.push(t),new Ct(()=>{this.currentObservers=null,dn(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new je;return t.source=this,t}}return e.create=(n,t)=>new yr(n,t),e})();class yr extends Ue{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:we}}function Y(e){return ye(e?.lift)}function qe(e){return n=>{if(Y(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Oe(e,n,t,i,r){return new Ss(e,n,t,i,r)}class Ss extends Eo{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ne(e,n){return qe((t,i)=>{let r=0;t.subscribe(Oe(i,o=>{i.next(e.call(n,o,r++))}))})}function br(e){return this instanceof br?(this.v=e,this):new br(e)}function Ns(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(m){i[m]&&(r[m]=function(v){return new Promise(function(y,D){o.push([m,v,y,D])>1||a(m,v)})})}function a(m,v){try{!function l(m){m.value instanceof br?Promise.resolve(m.value.v).then(u,f):p(o[0][2],m)}(i[m](v))}catch(y){p(o[0][3],y)}}function u(m){a("next",m)}function f(m){a("throw",m)}function p(m,v){m(v),o.shift(),o.length&&a(o[0][0],o[0][1])}}function he(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function xt(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}const Ts=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Is(e){return ye(e?.then)}function Io(e){return ye(e[Qa])}function Ge(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function nl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Ao=function uu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function As(e){return ye(e?.[Ao])}function ko(e){return Ns(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield br(t.read());if(r)return yield br(void 0);yield yield br(i)}}finally{t.releaseLock()}})}function Dr(e){return ye(e?.getReader)}function ut(e){if(e instanceof je)return e;if(null!=e){if(Io(e))return function ah(e){return new je(n=>{const t=e[Qa]();if(ye(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ts(e))return function ks(e){return new je(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Za)})}(e);if(Ge(e))return xo(e);if(As(e))return function Oo(e){return new je(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Dr(e))return function $(e){return xo(ko(e))}(e)}throw nl(e)}function xo(e){return new je(n=>{(function ch(e,n){var t,i,r,o;return function ih(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(f){try{u(i.next(f))}catch(p){s(p)}}function l(f){try{u(i.throw(f))}catch(p){s(p)}}function u(f){f.done?o(f.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(f.value).then(a,l)}u((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=he(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function wi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function dt(e,n,t=1/0){return ye(n)?dt((i,r)=>ne((o,s)=>n(i,o,r,s))(ut(e(i,r))),t):("number"==typeof n&&(t=n),qe((i,r)=>function Cn(e,n,t,i,r,o,s,a){const l=[];let u=0,f=0,p=!1;const m=()=>{p&&!l.length&&!u&&n.complete()},v=D=>u{o&&n.next(D),u++;let w=!1;ut(t(D,f++)).subscribe(Oe(n,N=>{r?.(N),o?v(N):n.next(N)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;l.length&&uy(N)):y(N)}m()}catch(N){n.error(N)}}))};return e.subscribe(Oe(n,v,()=>{p=!0,m()})),()=>{a?.()}}(i,r,e,t)))}function Se(e=1/0){return dt(Rn,e)}const Xt=new je(e=>e.complete());function si(e){return e&&ye(e.schedule)}function Ln(e){return e[e.length-1]}function rt(e){return ye(Ln(e))?e.pop():void 0}function en(e){return si(Ln(e))?e.pop():void 0}function Qi(e,n=0){return qe((t,i)=>{t.subscribe(Oe(i,r=>wi(i,e,()=>i.next(r),n),()=>wi(i,e,()=>i.complete(),n),r=>wi(i,e,()=>i.error(r),n)))})}function du(e,n=0){return qe((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function fu(e,n){if(!e)throw new Error("Iterable cannot be null");return new je(t=>{wi(t,n,()=>{const i=e[Symbol.asyncIterator]();wi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function gt(e,n){return n?function pu(e,n){if(null!=e){if(Io(e))return function uh(e,n){return ut(e).pipe(du(n),Qi(n))}(e,n);if(Ts(e))return function ft(e,n){return new je(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(Is(e))return function dh(e,n){return ut(e).pipe(du(n),Qi(n))}(e,n);if(Ge(e))return fu(e,n);if(As(e))return function Os(e,n){return new je(t=>{let i;return wi(t,n,()=>{i=e[Ao](),wi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>ye(i?.return)&&i.return()})}(e,n);if(Dr(e))return function hu(e,n){return fu(ko(e),n)}(e,n)}throw nl(e)}(e,n):ut(e)}function il(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new vr({next:()=>{i.unsubscribe(),e()}});return n(...t).subscribe(i)} /** * @license Angular v14.2.9 * (c) 2010-2022 Google LLC. https://angular.io/ @@ -17,14 +17,14 @@ * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Ve(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ve).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Rs(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n} + */function Ve(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ve).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function xs(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const ph=$e({__forward_ref__:$e});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Ve(this())},e}function te(e){return xs(e)?e():e}function xs(e){return"function"==typeof e&&e.hasOwnProperty(ph)&&e.__forward_ref__===Te} + */const ph=$e({__forward_ref__:$e});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Ve(this())},e}function te(e){return Rs(e)?e():e}function Rs(e){return"function"==typeof e&&e.hasOwnProperty(ph)&&e.__forward_ref__===Te} /** * @license * Copyright Google LLC All Rights Reserved. @@ -39,21 +39,21 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class P extends Error{constructor(n,t){super(function Ps(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`} +class F extends Error{constructor(n,t){super(function Fs(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(n,t)),this.code=n}}function oe(e){return"string"==typeof e?e:null==e?"":String(e)}function Vn(e,n){throw new P(-201,!1)} + */(n,t)),this.code=n}}function oe(e){return"string"==typeof e?e:null==e?"":String(e)}function Vn(e,n){throw new F(-201,!1)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Sn(e,n){null==e&&function Oe(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")} + */function Sn(e,n){null==e&&function ke(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")} /** * @license * Copyright Google LLC All Rights Reserved. @@ -61,7 +61,7 @@ class P extends Error{constructor(n,t){super(function Ps(e,n){return`NG0${Math.a * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function G(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Me(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vs(e){return mu(e,Jr)||mu(e,sl)}function mu(e,n){return e.hasOwnProperty(n)?e[n]:null}function Hs(e){return e&&(e.hasOwnProperty(ol)||e.hasOwnProperty(_u))?e[ol]:null}const Jr=$e({\u0275prov:$e}),ol=$e({\u0275inj:$e}),sl=$e({ngInjectableDef:$e}),_u=$e({ngInjectorDef:$e}); +function G(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ne(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vs(e){return mu(e,Zr)||mu(e,sl)}function mu(e,n){return e.hasOwnProperty(n)?e[n]:null}function Bs(e){return e&&(e.hasOwnProperty(ol)||e.hasOwnProperty(_u))?e[ol]:null}const Zr=$e({\u0275prov:$e}),ol=$e({\u0275inj:$e}),sl=$e({ngInjectableDef:$e}),_u=$e({ngInjectorDef:$e}); /** * @license * Copyright Google LLC All Rights Reserved. @@ -75,7 +75,7 @@ function G(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.facto * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let al;function Hn(e){const n=al;return al=e,n}function ll(e,n,t){const i=Vs(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&X.Optional?null:void 0!==n?n:void Vn(Ve(e))} + */let al;function Bn(e){const n=al;return al=e,n}function ll(e,n,t){const i=Vs(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&X.Optional?null:void 0!==n?n:void Vn(Ve(e))} /** * @license * Copyright Google LLC All Rights Reserved. @@ -83,7 +83,7 @@ function G(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.facto * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Bn(e){return{toString:e}.toString()} +function Hn(e){return{toString:e}.toString()} /** * @license * Copyright Google LLC All Rights Reserved. @@ -98,7 +98,7 @@ function Bn(e){return{toString:e}.toString()} * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const We=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Xi={},Ae=[],jn=$e({\u0275cmp:$e}),ul=$e({\u0275dir:$e}),Fo=$e({\u0275pipe:$e}),vu=$e({\u0275mod:$e}),Mi=$e({\u0275fac:$e}),Po=$e({__NG_ELEMENT_ID__:$e}); +const We=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Xi={},Ie=[],jn=$e({\u0275cmp:$e}),ul=$e({\u0275dir:$e}),Po=$e({\u0275pipe:$e}),vu=$e({\u0275mod:$e}),Ni=$e({\u0275fac:$e}),Fo=$e({__NG_ELEMENT_ID__:$e}); /** * @license * Copyright Google LLC All Rights Reserved. @@ -113,7 +113,7 @@ const We=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||type * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let Bs=0;function et(e){return Bn(()=>{const t=!0===e.standalone,i={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===tn.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ai.Emulated,id:"c"+Bs++,styles:e.styles||Ae,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.dependencies,s=e.features;return r.inputs=Du(e.inputs,i),r.outputs=Du(e.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(yu).filter(bu):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(nn).filter(bu):null,r})}function yu(e){return Re(e)||Ut(e)}function bu(e){return null!==e}function Ne(e){return Bn(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Du(e,n){if(null==e)return Xi;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,n&&(n[r]=o)}return t}const H=et;function $t(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Re(e){return e[jn]||null}function Ut(e){return e[ul]||null}function nn(e){return e[Fo]||null}function En(e,n){const t=e[vu]||null;if(!t&&!0===n)throw new Error(`Type ${Ve(e)} does not have '\u0275mod' property.`);return t} +let Hs=0;function et(e){return Hn(()=>{const t=!0===e.standalone,i={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===tn.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ai.Emulated,id:"c"+Hs++,styles:e.styles||Ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.dependencies,s=e.features;return r.inputs=Du(e.inputs,i),r.outputs=Du(e.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(yu).filter(bu):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(nn).filter(bu):null,r})}function yu(e){return xe(e)||Ut(e)}function bu(e){return null!==e}function Ee(e){return Hn(()=>({type:e.type,bootstrap:e.bootstrap||Ie,declarations:e.declarations||Ie,imports:e.imports||Ie,exports:e.exports||Ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Du(e,n){if(null==e)return Xi;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,n&&(n[r]=o)}return t}const B=et;function $t(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function xe(e){return e[jn]||null}function Ut(e){return e[ul]||null}function nn(e){return e[Po]||null}function Mn(e,n){const t=e[vu]||null;if(!t&&!0===n)throw new Error(`Type ${Ve(e)} does not have '\u0275mod' property.`);return t} /** * @license * Copyright Google LLC All Rights Reserved. @@ -128,7 +128,7 @@ let Bs=0;function et(e){return Bn(()=>{const t=!0===e.standalone,i={},r={type:e. * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function hn(e){return Array.isArray(e)&&"object"==typeof e[1]}function qn(e){return Array.isArray(e)&&!0===e[1]}function pl(e){return 0!=(8&e.flags)}function $s(e){return 2==(2&e.flags)}function Us(e){return 1==(1&e.flags)}function Jn(e){return null!==e.template}function Ah(e){return 0!=(256&e[2])} +function hn(e){return Array.isArray(e)&&"object"==typeof e[1]}function qn(e){return Array.isArray(e)&&!0===e[1]}function pl(e){return 0!=(8&e.flags)}function $s(e){return 2==(2&e.flags)}function Us(e){return 1==(1&e.flags)}function Zn(e){return null!==e.template}function Ih(e){return 0!=(256&e[2])} /** * @license * Copyright Google LLC All Rights Reserved. @@ -143,28 +143,28 @@ function hn(e){return Array.isArray(e)&&"object"==typeof e[1]}function qn(e){ret * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Nr(e,n){return e.hasOwnProperty(Mi)?e[Mi]:null} +function Er(e,n){return e.hasOwnProperty(Ni)?e[Ni]:null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Fh{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}} + */class Ph{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Kt(){return Su}function Su(e){return e.type.prototype.ngOnChanges&&(e.setInput=Gs),Ph}function Ph(){const e=Mu(this),n=e?.current;if(n){const t=e.previous;if(t===Xi)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function Gs(e,n,t,i){const r=Mu(e)||function Lh(e,n){return e[Eu]=n} + */function zt(){return Su}function Su(e){return e.type.prototype.ngOnChanges&&(e.setInput=Gs),Fh}function Fh(){const e=Nu(this),n=e?.current;if(n){const t=e.previous;if(t===Xi)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function Gs(e,n,t,i){const r=Nu(e)||function Lh(e,n){return e[Mu]=n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(e,{previous:Xi,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new Fh(l&&l.currentValue,n,s===Xi),e[i]=n}Kt.ngInherit=!0;const Eu="__ngSimpleChanges__";function Mu(e){return e[Eu]||null} + */(e,{previous:Xi,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new Ph(l&&l.currentValue,n,s===Xi),e[i]=n}zt.ngInherit=!0;const Mu="__ngSimpleChanges__";function Nu(e){return e[Mu]||null} /** * @license * Copyright Google LLC All Rights Reserved. @@ -172,21 +172,21 @@ function Nr(e,n){return e.hasOwnProperty(Mi)?e[Mi]:null} * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function tt(e){for(;Array.isArray(e);)e=e[0];return e}function Ho(e,n){return tt(n[e])}function xt(e,n){return tt(n[e.index])}function Ks(e,n){return e.data[n]}function io(e,n){return e[n]}function Nn(e,n){const t=n[e];return hn(t)?t:t[0]}function zs(e){return 64==(64&e[2])}function tr(e,n){return null==n?null:e[n]}function Au(e){e[18]=0}function yl(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3] +function tt(e){for(;Array.isArray(e);)e=e[0];return e}function Bo(e,n){return tt(n[e])}function Rt(e,n){return tt(n[e.index])}function zs(e,n){return e.data[n]}function io(e,n){return e[n]}function En(e,n){const t=n[e];return hn(t)?t:t[0]}function Ys(e){return 64==(64&e[2])}function tr(e,n){return null==n?null:e[n]}function Iu(e){e[18]=0}function yl(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3] /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */}const re={lFrame:Pu(null),bindingsEnabled:!0};function Ou(){return re.bindingsEnabled}function k(){return re.lFrame.lView}function be(){return re.lFrame.tView}function mt(e){return re.lFrame.contextLView=e,e[8]}function _t(e){return re.lFrame.contextLView=null,e}function wt(){let e=Ys();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ys(){return re.lFrame.currentTNode}function ci(e,n){const t=re.lFrame;t.currentTNode=e,t.isParent=n}function bl(){return re.lFrame.isParent}function jo(){re.lFrame.isParent=!1}function rn(){const e=re.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Tr(){return re.lFrame.bindingIndex++}function Ii(e){const n=re.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Jh(e,n){const t=re.lFrame;t.bindingIndex=t.bindingRootIndex=e,wl(n)}function wl(e){re.lFrame.currentDirectiveIndex=e}function Sl(){return re.lFrame.currentQueryIndex}function El(e){re.lFrame.currentQueryIndex=e}function Qh(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function xu(e,n,t){if(t&X.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&X.Host||(r=Qh(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,e=o}const i=re.lFrame=Fu();return i.currentTNode=n,i.lView=e,!0}function x(e){const n=Fu(),t=e[1];re.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Fu(){const e=re.lFrame,n=null===e?null:e.child;return null===n?Pu(e):n}function Pu(e){const n={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 null!==e&&(e.child=n),n}function Ml(){const e=re.lFrame;return re.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ee=Ml;function ro(){const e=Ml();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 on(){return re.lFrame.selectedIndex}function nr(e){re.lFrame.selectedIndex=e}function st(){const e=re.lFrame;return Ks(e.tView,e.selectedIndex)}function qs(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===n){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}} + */}const re={lFrame:Fu(null),bindingsEnabled:!0};function ku(){return re.bindingsEnabled}function O(){return re.lFrame.lView}function be(){return re.lFrame.tView}function mt(e){return re.lFrame.contextLView=e,e[8]}function _t(e){return re.lFrame.contextLView=null,e}function wt(){let e=Ks();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ks(){return re.lFrame.currentTNode}function ci(e,n){const t=re.lFrame;t.currentTNode=e,t.isParent=n}function bl(){return re.lFrame.isParent}function jo(){re.lFrame.isParent=!1}function rn(){const e=re.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Tr(){return re.lFrame.bindingIndex++}function Ai(e){const n=re.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Zh(e,n){const t=re.lFrame;t.bindingIndex=t.bindingRootIndex=e,wl(n)}function wl(e){re.lFrame.currentDirectiveIndex=e}function Sl(){return re.lFrame.currentQueryIndex}function Ml(e){re.lFrame.currentQueryIndex=e}function Qh(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function Ru(e,n,t){if(t&X.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&X.Host||(r=Qh(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,e=o}const i=re.lFrame=Pu();return i.currentTNode=n,i.lView=e,!0}function R(e){const n=Pu(),t=e[1];re.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Pu(){const e=re.lFrame,n=null===e?null:e.child;return null===n?Fu(e):n}function Fu(e){const n={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 null!==e&&(e.child=n),n}function Nl(){const e=re.lFrame;return re.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Me=Nl;function ro(){const e=Nl();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 on(){return re.lFrame.selectedIndex}function nr(e){re.lFrame.selectedIndex=e}function st(){const e=re.lFrame;return zs(e.tView,e.selectedIndex)}function qs(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===n){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Tn{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Xs(e,n,t){let i=0;for(;in){s=o-1;break}}}for(;on){s=o-1;break}}}for(;o>5)]|=1<=0?255&n:Ri:n}(t);if("function"==typeof o){if(!xu(n,e,i))return i&X.Host?c(r,0,i):d(n,t,i,r);try{const s=o(i);if(null!=s||i&X.Optional)return s;Vn()}finally{Ee()}}else if("number"==typeof o){let s=null,a=Wo(e,n),l=-1,u=i&X.Host?n[16][6]:null;for((-1===a||i&X.SkipSelf)&&(l=-1===a?ki(e,n):n[a+8],-1!==l&&Pe(i,!1)?(s=n[1],a=oo(l),n=so(l,n)):a=-1);-1!==a;){const f=n[1];if(ce(o,a,f.data)){const p=_(a,n,t,s,i,u);if(p!==hi)return p}l=n[a+8],-1!==l&&Pe(i,n[1].data[a+8]===u)&&ce(o,a,n)?(s=f,a=oo(l),n=so(l,n)):a=-1}}return r}function _(e,n,t,i,r,o){const s=n[1],a=s.data[e+8],f=b(a,s,t,null==i?$s(a)&&Al:i!=s&&0!=(3&a.type),r&X.Host&&o===a);return null!==f?N(n,s,f,a):hi}function b(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,f=o>>20,m=r?a+f:e.directiveEnd;for(let v=i?a:a+f;v=l&&y.type===t)return v}if(r){const v=s[l];if(v&&Jn(v)&&v.type===t)return l}return null}function N(e,n,t,i){let r=e[t];const o=n.data;if(function rp(e){return e instanceof Tn}(r)){const s=r;s.resolving&& + */let Il=!0;function ea(e){const n=Il;return Il=e,n}let cp=0;const hi={};function Go(e,n){const t=Wo(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,Al(i.data,e),Al(n,null),Al(i.blueprint,null));const r=Oi(e,n),o=e.injectorIndex;if($u(r)){const s=oo(r),a=so(r,n),l=a[1].data;for(let u=0;u<8;u++)n[o+u]=a[s+u]|l[s+u]}return n[o+8]=r,o}function Al(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Wo(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Oi(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=dy(r),null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Ar(e,n,t){!function up(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Fo)&&(i=t[Fo]),null==i&&(i=t[Fo]=cp++);const r=255&i;n.data[e+(r>>5)]|=1<=0?255&n:xi:n}(t);if("function"==typeof o){if(!Ru(n,e,i))return i&X.Host?c(r,0,i):d(n,t,i,r);try{const s=o(i);if(null!=s||i&X.Optional)return s;Vn()}finally{Me()}}else if("number"==typeof o){let s=null,a=Wo(e,n),l=-1,u=i&X.Host?n[16][6]:null;for((-1===a||i&X.SkipSelf)&&(l=-1===a?Oi(e,n):n[a+8],-1!==l&&Fe(i,!1)?(s=n[1],a=oo(l),n=so(l,n)):a=-1);-1!==a;){const f=n[1];if(ce(o,a,f.data)){const p=_(a,n,t,s,i,u);if(p!==hi)return p}l=n[a+8],-1!==l&&Fe(i,n[1].data[a+8]===u)&&ce(o,a,n)?(s=f,a=oo(l),n=so(l,n)):a=-1}}return r}function _(e,n,t,i,r,o){const s=n[1],a=s.data[e+8],f=b(a,s,t,null==i?$s(a)&&Il:i!=s&&0!=(3&a.type),r&X.Host&&o===a);return null!==f?E(n,s,f,a):hi}function b(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,f=o>>20,m=r?a+f:e.directiveEnd;for(let v=i?a:a+f;v=l&&y.type===t)return v}if(r){const v=s[l];if(v&&Zn(v)&&v.type===t)return l}return null}function E(e,n,t,i){let r=e[t];const o=n.data;if(function rp(e){return e instanceof Tn}(r)){const s=r;s.resolving&& /** * @license * Copyright Google LLC All Rights Reserved. @@ -208,7 +208,7 @@ function tt(e){for(;Array.isArray(e);)e=e[0];return e}function Ho(e,n){return tt * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Ls(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new P(-200,`Circular dependency in DI detected for ${e}${t}`)}(function _e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():oe(e)}(o[t]));const a=ea(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Hn(s.injectImpl):null;xu(e,i,X.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&& +function Ls(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new F(-200,`Circular dependency in DI detected for ${e}${t}`)}(function _e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():oe(e)}(o[t]));const a=ea(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Bn(s.injectImpl):null;Ru(e,i,X.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&& /** * @license * Copyright Google LLC All Rights Reserved. @@ -216,7 +216,7 @@ function Ls(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function np(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Su(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,o[t],n)}finally{null!==l&&Hn(l),ea(a),s.resolving=!1,Ee()}}return r}function ce(e,n,t){return!!(t[n+(e>>5)]&1<{const n=e.prototype.constructor,t=n[Mi]||dp(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Mi]||dp(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function dp(e){return xs(e)?()=>{const n=dp(te(e));return n&&n()}:Nr(e)}function dy(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[6]:null} +function np(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Su(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,o[t],n)}finally{null!==l&&Bn(l),ea(a),s.resolving=!1,Me()}}return r}function ce(e,n,t){return!!(t[n+(e>>5)]&1<{const n=e.prototype.constructor,t=n[Ni]||dp(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Ni]||dp(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function dp(e){return Rs(e)?()=>{const n=dp(te(e));return n&&n()}:Er(e)}function dy(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[6]:null} /** * @license * Copyright Google LLC All Rights Reserved. @@ -231,7 +231,7 @@ function np(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype; * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const na="__parameters__";function ra(e,n,t){return Bn(()=>{const i=function fp(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,u,f){const p=l.hasOwnProperty(na)?l[na]:Object.defineProperty(l,na,{value:[]})[na];for(;p.length<=f;)p.push(null);return(p[f]=p[f]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})} +const na="__parameters__";function ra(e,n,t){return Hn(()=>{const i=function fp(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,u,f){const p=l.hasOwnProperty(na)?l[na]:Object.defineProperty(l,na,{value:[]})[na];for(;p.length<=f;)p.push(null);return(p[f]=p[f]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})} /** * @license * Copyright Google LLC All Rights Reserved. @@ -246,7 +246,7 @@ class q{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Zn(e,n){void 0===n&&(n=e);for(let t=0;tArray.isArray(t)?Or(t,n):n(t))}function hy(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Uu(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Rl(e,n){const t=[];for(let i=0;i=0?e[1|i]=t:(i=~i,function CN(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function pp(e,n){const t=oa(e,n);if(t>=0)return e[1|t]}function oa(e,n){return function my(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<n?r=o:i=o+1}return~(r<Array.isArray(t)?kr(t,n):n(t))}function hy(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Uu(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function xl(e,n){const t=[];for(let i=0;i=0?e[1|i]=t:(i=~i,function CE(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function pp(e,n){const t=oa(e,n);if(t>=0)return e[1|t]}function oa(e,n){return function my(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<n?r=o:i=o+1}return~(r<{const s=o;Tp(s,t,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&$y(r,t),t}function $y(e,n){for(let t=0;t{n.push(o)})}}function Tp(e,n,t,i){if(!(e=te(e)))return!1;let r=null,o=Hs(e);const s=!o&&Re(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=Hs(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)Tp(u,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;i.add(r);try{Or(o.imports,f=>{Tp(f,n,t,i)&&(u||(u=[]),u.push(f))})}finally{}void 0!==u&&$y(u,n)}if(!a){const u=Nr(r)||(()=>new r);n.push({provide:r,useFactory:u,deps:Ae},{provide:Hy,useValue:r,multi:!0},{provide:Np,useValue:()=>L(r),multi:!0})}const l=o.providers;null==l||a||Or(l,f=>{n.push(f)})}}return r!==e&&void 0!==e.providers}const vT=$e({provide:String,useValue:$e});function Ap(e){return null!==e&&"object"==typeof e&&vT in e}function zo(e){return"function"==typeof e} + */function _T(...e){return{\u0275providers:jy(0,e)}}function jy(e,...n){const t=[],i=new Set;let r;return kr(n,o=>{const s=o;Tp(s,t,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&$y(r,t),t}function $y(e,n){for(let t=0;t{n.push(o)})}}function Tp(e,n,t,i){if(!(e=te(e)))return!1;let r=null,o=Bs(e);const s=!o&&xe(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=Bs(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)Tp(u,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;i.add(r);try{kr(o.imports,f=>{Tp(f,n,t,i)&&(u||(u=[]),u.push(f))})}finally{}void 0!==u&&$y(u,n)}if(!a){const u=Er(r)||(()=>new r);n.push({provide:r,useFactory:u,deps:Ie},{provide:By,useValue:r,multi:!0},{provide:Ep,useValue:()=>L(r),multi:!0})}const l=o.providers;null==l||a||kr(l,f=>{n.push(f)})}}return r!==e&&void 0!==e.providers}const vT=$e({provide:String,useValue:$e});function Ip(e){return null!==e&&"object"==typeof e&&vT in e}function Yo(e){return"function"==typeof e} /** * @license * Copyright Google LLC All Rights Reserved. @@ -329,28 +329,28 @@ class By{get(n,t=xl){if(t===xl){const i=new Error(`NullInjectorError: No provide * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const Ip=new q("Set Injector scope."),Zu={},bT={}; +const Ap=new q("Set Injector scope."),Ju={},bT={}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let Op;function Qu(){return void 0===Op&&(Op=new By),Op}class lo{}class Wy extends lo{constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rp(n,s=>this.processProvider(s)),this.records.set(Vy,ca(void 0,this)),r.has("environment")&&this.records.set(lo,ca(void 0,this));const o=this.records.get(Ip);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Hy.multi,Ae,X.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=sa(this),i=Hn(void 0);try{return n()}finally{sa(t),Hn(i)}}get(n,t=xl,i=X.Default){this.assertNotDestroyed();const r=sa(this),o=Hn(void 0);try{if(!(i&X.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function ET(e){return"function"==typeof e||"object"==typeof e&&e instanceof q}(n)&&Vs(n);a=l&&this.injectableDefInScope(l)?ca(kp(n),Zu):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&X.Self?Qu():this.parent).get(n,t=i&X.Optional&&t===xl?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Wu]=s[Wu]||[]).unshift(Ve(n)),r)throw s;return function xN(e,n,t,i){const r=e[Wu];throw n[_y]&&r.unshift(n[_y]),e.message=function FN(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Ve(n);if(Array.isArray(n))r=n.map(Ve).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ve(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(IN,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Wu]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{Hn(o),sa(r)}}resolveInjectorInitializers(){const n=sa(this),t=Hn(void 0);try{const i=this.get(Np.multi,Ae,X.Self);for(const r of i)r()}finally{sa(n),Hn(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Ve(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(n){let t=zo(n=te(n))?n:te(n&&n.provide);const i=function CT(e){return Ap(e)?ca(void 0,e.useValue):ca(Ky(e),Zu)}(n);if(zo(n)||!0!==n.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=ca(void 0,Zu,!0),r.factory=()=>_p(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===Zu&&(t.value=bT,t.value=t.factory()),"object"==typeof t.value&&t.value&&function ST(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=te(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function kp(e){const n=Vs(e),t=null!==n?n.factory:Nr(e);if(null!==t)return t;if(e instanceof q)throw new P(204,!1);if(e instanceof Function)return function DT(e){const n=e.length;if(n>0)throw Rl(n,"?"),new P(204,!1);const t=function Dh(e){const n=e&&(e[Jr]||e[sl]);if(n){const t=function Ch(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new P(204,!1)}function Ky(e,n,t){let i;if(zo(e)){const r=te(e);return Nr(r)||kp(r)}if(Ap(e))i=()=>te(e.useValue);else if(function Gy(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(..._p(e.deps||[]));else if(function Uy(e){return!(!e||!e.useExisting)}(e))i=()=>L(te(e.useExisting));else{const r=te(e&&(e.useClass||e.provide));if(!function wT(e){return!!e.deps}(e))return Nr(r)||kp(r);i=()=>new r(..._p(e.deps))}return i}function ca(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function MT(e){return!!e.\u0275providers}function Rp(e,n){for(const t of e)Array.isArray(t)?Rp(t,n):MT(t)?Rp(t.\u0275providers,n):n(t)} + */let kp;function Qu(){return void 0===kp&&(kp=new Hy),kp}class lo{}class Wy extends lo{constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,xp(n,s=>this.processProvider(s)),this.records.set(Vy,ca(void 0,this)),r.has("environment")&&this.records.set(lo,ca(void 0,this));const o=this.records.get(Ap);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(By.multi,Ie,X.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=sa(this),i=Bn(void 0);try{return n()}finally{sa(t),Bn(i)}}get(n,t=Rl,i=X.Default){this.assertNotDestroyed();const r=sa(this),o=Bn(void 0);try{if(!(i&X.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function MT(e){return"function"==typeof e||"object"==typeof e&&e instanceof q}(n)&&Vs(n);a=l&&this.injectableDefInScope(l)?ca(Op(n),Ju):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&X.Self?Qu():this.parent).get(n,t=i&X.Optional&&t===Rl?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Wu]=s[Wu]||[]).unshift(Ve(n)),r)throw s;return function RE(e,n,t,i){const r=e[Wu];throw n[_y]&&r.unshift(n[_y]),e.message=function PE(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Ve(n);if(Array.isArray(n))r=n.map(Ve).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ve(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(AE,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Wu]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{Bn(o),sa(r)}}resolveInjectorInitializers(){const n=sa(this),t=Bn(void 0);try{const i=this.get(Ep.multi,Ie,X.Self);for(const r of i)r()}finally{sa(n),Bn(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Ve(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(n){let t=Yo(n=te(n))?n:te(n&&n.provide);const i=function CT(e){return Ip(e)?ca(void 0,e.useValue):ca(zy(e),Ju)}(n);if(Yo(n)||!0!==n.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=ca(void 0,Ju,!0),r.factory=()=>_p(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===Ju&&(t.value=bT,t.value=t.factory()),"object"==typeof t.value&&t.value&&function ST(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=te(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Op(e){const n=Vs(e),t=null!==n?n.factory:Er(e);if(null!==t)return t;if(e instanceof q)throw new F(204,!1);if(e instanceof Function)return function DT(e){const n=e.length;if(n>0)throw xl(n,"?"),new F(204,!1);const t=function Dh(e){const n=e&&(e[Zr]||e[sl]);if(n){const t=function Ch(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new F(204,!1)}function zy(e,n,t){let i;if(Yo(e)){const r=te(e);return Er(r)||Op(r)}if(Ip(e))i=()=>te(e.useValue);else if(function Gy(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(..._p(e.deps||[]));else if(function Uy(e){return!(!e||!e.useExisting)}(e))i=()=>L(te(e.useExisting));else{const r=te(e&&(e.useClass||e.provide));if(!function wT(e){return!!e.deps}(e))return Er(r)||Op(r);i=()=>new r(..._p(e.deps))}return i}function ca(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function NT(e){return!!e.\u0275providers}function xp(e,n){for(const t of e)Array.isArray(t)?xp(t,n):NT(t)?xp(t.\u0275providers,n):n(t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class zy{} + */class Yy{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class AT{resolveComponentFactory(n){throw function TT(e){const n=Error(`No component factory found for ${Ve(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let Gl=(()=>{class e{} + */class IT{resolveComponentFactory(n){throw function TT(e){const n=Error(`No component factory found for ${Ve(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let Gl=(()=>{class e{} /** * @license * Copyright Google LLC All Rights Reserved. @@ -358,21 +358,21 @@ const Ip=new q("Set Injector scope."),Zu={},bT={}; * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -return e.NULL=new AT,e})();function IT(){return ua(wt(),k())}function ua(e,n){return new Ze(xt(e,n))}let Ze=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=IT,e})();function OT(e){return e instanceof Ze?e.nativeElement:e} +return e.NULL=new IT,e})();function AT(){return ua(wt(),O())}function ua(e,n){return new Je(Rt(e,n))}let Je=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=AT,e})();function kT(e){return e instanceof Je?e.nativeElement:e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class xp{}let pi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function kT(){const e=k(),t=Nn(wt().index,e);return(hn(t)?t:e)[11]} + */class Rp{}let pi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function OT(){const e=O(),t=En(wt().index,e);return(hn(t)?t:e)[11]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(),e})(),RT=(()=>{class e{} + */(),e})(),xT=(()=>{class e{} /** * @license * Copyright Google LLC All Rights Reserved. @@ -380,21 +380,21 @@ return e.NULL=new AT,e})();function IT(){return ua(wt(),k())}function ua(e,n){re * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -return e.\u0275prov=G({token:e,providedIn:"root",factory:()=>null}),e})();class Wl{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const xT=new Wl("14.2.9"),Fp={}; +return e.\u0275prov=G({token:e,providedIn:"root",factory:()=>null}),e})();class Wl{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const RT=new Wl("14.2.9"),Pp={}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Bp(e){return e.ngOriginalError} + */function Hp(e){return e.ngOriginalError} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class da{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Bp(n);for(;t&&Bp(t);)t=Bp(t);return t||null}} + */class da{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Hp(n);for(;t&&Hp(t);)t=Hp(t);return t||null}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -409,7 +409,7 @@ return e.\u0275prov=G({token:e,providedIn:"root",factory:()=>null}),e})();class * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const jp=new Map;let KT=0;const Up="__ngContext__";function pn(e,n){hn(n)?(e[Up]=n[20],function YT(e){jp.set(e[20],e)}(n)):e[Up]=n}function Rr(e){return e instanceof Function?e():e} +const jp=new Map;let zT=0;const Up="__ngContext__";function pn(e,n){hn(n)?(e[Up]=n[20],function KT(e){jp.set(e[20],e)}(n)):e[Up]=n}function xr(e){return e instanceof Function?e():e} /** * @license * Copyright Google LLC All Rights Reserved. @@ -439,35 +439,35 @@ var Un=(()=>((Un=Un||{})[Un.Important=1]="Important",Un[Un.DashCase=2]="DashCase * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function zl(e){const n=e[3];return qn(n)?n[3]:n}function Kp(e){return c0(e[13])}function zp(e){return c0(e[4])}function c0(e){for(;null!==e&&!qn(e);)e=e[4];return e} +function Yl(e){const n=e[3];return qn(n)?n[3]:n}function zp(e){return c0(e[13])}function Yp(e){return c0(e[4])}function c0(e){for(;null!==e&&!qn(e);)e=e[4];return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function ha(e,n,t,i,r){if(null!=i){let o,s=!1;qn(i)?o=i:hn(i)&&(s=!0,i=i[0]);const a=tt(i);0===e&&null!==t?null==r?g0(n,t,a):Yo(n,t,a,r||null,!0):1===e&&null!==t?Yo(n,t,a,r||null,!0):2===e?function C0(e,n,t){const i=Xu(e,n);i&&function DA(e,n,t,i){e.removeChild(n,t,i)}(e,i,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function SA(e,n,t,i,r){const o=t[7];o!==tt(t)&&ha(n,e,i,o,r);for(let a=10;a0&&(e[t-1][4]=i[4]);const o=Uu(e,10+n);!function hA(e,n){Yl(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function f0(e,n){if(!(128&n[2])){const t=n[11];t.destroyNode&&Yl(e,n,t,3,null,null),function mA(e){let n=e[13];if(!n)return Zp(e[1],e);for(;n;){let t=null;if(hn(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)hn(n)&&Zp(n[1],n),n=n[3];null===n&&(n=e),hn(n)&&Zp(n[1],n),t=n&&n[4]}n=t}}(n)}}function Zp(e,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function bA(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;o0&&(e[t-1][4]=i[4]);const o=Uu(e,10+n);!function hI(e,n){Kl(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function f0(e,n){if(!(128&n[2])){const t=n[11];t.destroyNode&&Kl(e,n,t,3,null,null),function mI(e){let n=e[13];if(!n)return Jp(e[1],e);for(;n;){let t=null;if(hn(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)hn(n)&&Jp(n[1],n),n=n[3];null===n&&(n=e),hn(n)&&Jp(n[1],n),t=n&&n[4]}n=t}}(n)}}function Jp(e,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function bI(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[p+1].toLowerCase();const v=8&i?m:null;if(v&&-1!==E0(v,u,0)||2&i&&u!==m){if(xi(i))return!1;s=!0}}}}else{if(!s&&!xi(i)&&!xi(l))return!1;if(s&&xi(l))continue;s=!1,i=l|1&i}}return xi(i)||s}function xi(e){return 0==(1&e)}function AA(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!xi(s)&&(n+=A0(o,r),r=""),i=s,o=o||!xi(i);t++}return""!==r&&(n+=A0(o,r)),n} + */const N0="ng-template";function NI(e,n,t){let i=0;for(;io?"":r[p+1].toLowerCase();const v=8&i?m:null;if(v&&-1!==M0(v,u,0)||2&i&&u!==m){if(Ri(i))return!1;s=!0}}}}else{if(!s&&!Ri(i)&&!Ri(l))return!1;if(s&&Ri(l))continue;s=!1,i=l|1&i}}return Ri(i)||s}function Ri(e){return 0==(1&e)}function II(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Ri(s)&&(n+=I0(o,r),r=""),i=s,o=o||!Ri(i);t++}return""!==r&&(n+=I0(o,r)),n} /** * @license * Copyright Google LLC All Rights Reserved. @@ -482,7 +482,7 @@ const ae={}; * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function F(e){I0(be(),k(),on()+e,!1)}function I0(e,n,t,i){if(!i)if(3==(3&n[2])){const o=e.preOrderCheckHooks;null!==o&&$o(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Js(n,o,0,t)}nr(t)} + */function P(e){A0(be(),O(),on()+e,!1)}function A0(e,n,t,i){if(!i)if(3==(3&n[2])){const o=e.preOrderCheckHooks;null!==o&&$o(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Zs(n,o,0,t)}nr(t)} /** * @license * Copyright Google LLC All Rights Reserved. @@ -497,14 +497,14 @@ const ae={}; * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function x0(e,n=null,t=null,i){const r=F0(e,n,t,i);return r.resolveInjectorInitializers(),r}function F0(e,n=null,t=null,i,r=new Set){const o=[t||Ae,_T(e)];return i=i||("object"==typeof e?void 0:Ve(e)),new Wy(o,n||Qu(),i||null,r) +function R0(e,n=null,t=null,i){const r=P0(e,n,t,i);return r.resolveInjectorInitializers(),r}function P0(e,n=null,t=null,i,r=new Set){const o=[t||Ie,_T(e)];return i=i||("object"==typeof e?void 0:Ve(e)),new Wy(o,n||Qu(),i||null,r) /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */}let gn=(()=>{class e{static create(t,i){if(Array.isArray(t))return x0({name:""},i,t,"");{const r=t.name??"";return x0({name:r},t.parent,t.providers,r)}}} + */}let gn=(()=>{class e{static create(t,i){if(Array.isArray(t))return R0({name:""},i,t,"");{const r=t.name??"";return R0({name:r},t.parent,t.providers,r)}}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -512,7 +512,7 @@ function x0(e,n=null,t=null,i){const r=F0(e,n,t,i);return r.resolveInjectorIniti * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -return e.THROW_IF_NOT_FOUND=xl,e.NULL=new By,e.\u0275prov=G({token:e,providedIn:"any",factory:()=>L(Vy)}),e.__NG_ELEMENT_ID__=-1,e})(); +return e.THROW_IF_NOT_FOUND=Rl,e.NULL=new Hy,e.\u0275prov=G({token:e,providedIn:"any",factory:()=>L(Vy)}),e.__NG_ELEMENT_ID__=-1,e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -534,7 +534,7 @@ return e.THROW_IF_NOT_FOUND=xl,e.NULL=new By,e.\u0275prov=G({token:e,providedIn: * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function C(e,n=X.Default){const t=k();return null===t?L(e,n):h(wt(),t,te(e),n)}function sg(){throw new Error("invalid")} +function C(e,n=X.Default){const t=O();return null===t?L(e,n):h(wt(),t,te(e),n)}function sg(){throw new Error("invalid")} /** * @license * Copyright Google LLC All Rights Reserved. @@ -549,7 +549,7 @@ function C(e,n=X.Default){const t=k();return null===t?L(e,n):h(wt(),t,te(e),n)}f * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function id(e,n){return e<<17|n<<2}function Fi(e){return e>>17&32767}function ag(e){return 2|e}function xr(e){return(131068&e)>>2}function lg(e,n){return-131069&e|n<<2}function cg(e){return 1|e}function Q0(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i>17&32767}function ag(e){return 2|e}function Rr(e){return(131068&e)>>2}function lg(e,n){return-131069&e|n<<2}function cg(e){return 1|e}function Q0(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i>17&32767}function ag * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function dI(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let i=0;i22&&I0(e,n,22,!1),t(i,r)}finally{nr(o)}}function yg(e,n,t){!Ou()||(function DI(e,n,t,i){const r=t.directiveStart,o=t.directiveEnd;e.firstCreatePass||Go(t,n),pn(i,n);const s=t.initialInputs;for(let a=r;a0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function ab(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function lb(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function EI(e,n,t){if(t){if(n.exportAs)for(let i=0;i0&&Sg(t)}}function Sg(e){for(let i=Kp(e);null!==i;i=zp(i))for(let r=10;r0&&Sg(o)}const t=e[1].components;if(null!==t)for(let i=0;i0&&Sg(r)}}function kI(e,n){const t=Nn(n,e),i=t[1];(function RI(e,n){for(let t=n.length;t22&&A0(e,n,22,!1),t(i,r)}finally{nr(o)}}function yg(e,n,t){!ku()||(function DA(e,n,t,i){const r=t.directiveStart,o=t.directiveEnd;e.firstCreatePass||Go(t,n),pn(i,n);const s=t.initialInputs;for(let a=r;a0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function ab(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function lb(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function MA(e,n,t){if(t){if(n.exportAs)for(let i=0;i0&&Sg(t)}}function Sg(e){for(let i=zp(e);null!==i;i=Yp(i))for(let r=10;r0&&Sg(o)}const t=e[1].components;if(null!==t)for(let i=0;i0&&Sg(r)}}function OA(e,n){const t=En(n,e),i=t[1];(function xA(e,n){for(let t=n.length;t-1&&(Jp(n,i),Uu(t,i))}this._attachedToViewContainer=!1}f0(this._lView[1],this._lView)}onDestroy(n){nb(this._lView[1],this._lView,null,n)}markForCheck(){Eg(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cd(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gA(e,n){Yl(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=n}}class xI extends ql{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;cd(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}} + */class ql{constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,t=n[1];return dd(t,n,t.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(qn(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(Zp(n,i),Uu(t,i))}this._attachedToViewContainer=!1}f0(this._lView[1],this._lView)}onDestroy(n){nb(this._lView[1],this._lView,null,n)}markForCheck(){Mg(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cd(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gI(e,n){Kl(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=n}}class RA extends ql{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;cd(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Tg extends Gl{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Re(n);return new Jl(t,this.ngModule)}}function mb(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class PI{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){const r=this.injector.get(n,Fp,i);return r!==Fp||t===Fp?r:this.parentInjector.get(n,t,i)}}class Jl extends zy{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function FA(e){return e.map(xA).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return mb(this.componentDef.inputs)}get outputs(){return mb(this.componentDef.outputs)}create(n,t,i,r){let o=(r=r||this.ngModule)instanceof lo?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new PI(n,o):n,a=s.get(xp,null);if(null===a)throw new P(407,!1);const l=s.get(RT,null),u=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=i?function gI(e,n,t){return e.selectRootElement(n,t===ai.ShadowDom)}(u,i,this.componentDef.encapsulation):qp(a.createRenderer(null,this.componentDef),f,function FI(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),m=this.componentDef.onPush?288:272,v=Dg(0,null,null,1,0,null,null,null,null,null),y=sd(null,v,null,m,null,null,a,u,l,s,null);let D,w;x(y);try{const M=function HI(e,n,t,i,r,o){const s=t[1];t[22]=e;const l=ga(s,22,2,"#host",null),u=l.mergedAttrs=n.hostAttrs;null!==u&&(ud(l,u,!0),null!==e&&(Xs(r,e,u),null!==l.classes&&tg(r,e,l.classes),null!==l.styles&&S0(r,e,l.styles)));const f=i.createRenderer(e,n),p=sd(t,tb(n),null,n.onPush?32:16,t[22],l,i,f,o||null,null,null);return s.firstCreatePass&&(Ir(Go(l,t),s,n.type),lb(s,l),cb(l,t.length,1)),ld(t,p),t[22]=p}(p,this.componentDef,y,a,u);if(p)if(i)Xs(u,p,["ng-version",xT.full]);else{const{attrs:I,classes:S}=function PA(e){const n=[],t=[];let i=1,r=2;for(;i0&&tg(u,p,S.join(" "))}if(w=Ks(v,22),void 0!==t){const I=w.projection=[];for(let S=0;S0&&tg(u,p,S.join(" "))}if(w=zs(v,22),void 0!==t){const A=w.projection=[];for(let S=0;S=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=di(r.hostAttrs,t=di(t,r.hostAttrs))}}(i)}function Ag(e){return e===Xi?{}:e===Ae?[]:e}function UI(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function GI(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function WI(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n} + */function Be(e){let n=function _b(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(Zn(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new F(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const s=e;s.inputs=Ig(e.inputs),s.declaredInputs=Ig(e.declaredInputs),s.outputs=Ig(e.outputs);const a=r.hostBindings;a&&WA(e,a);const l=r.viewQuery,u=r.contentQueries;if(l&&UA(e,l),u&&GA(e,u),rl(e.inputs,r.inputs),rl(e.declaredInputs,r.declaredInputs),rl(e.outputs,r.outputs),Zn(r)&&r.data.animation){const f=e.data;f.animation=(f.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=di(r.hostAttrs,t=di(t,r.hostAttrs))}}(i)}function Ig(e){return e===Xi?{}:e===Ie?[]:e}function UA(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function GA(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function WA(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n} /** * @license * Copyright Google LLC All Rights Reserved. @@ -615,7 +615,7 @@ let fd=null;function qo(){if(!fd){const e=We.Symbol;if(e&&e.iterator)fd=e.iterat * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Zl(e){return!!Ig(e)&&(Array.isArray(e)||!(e instanceof Map)&&qo()in e)}function Ig(e){return null!==e&&("function"==typeof e||"object"==typeof e)} + */function Jl(e){return!!Ag(e)&&(Array.isArray(e)||!(e instanceof Map)&&qo()in e)}function Ag(e){return null!==e&&("function"==typeof e||"object"==typeof e)} /** * @license * Copyright Google LLC All Rights Reserved. @@ -630,7 +630,7 @@ let fd=null;function qo(){if(!fd){const e=We.Symbol;if(e&&e.iterator)fd=e.iterat * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function or(e,n,t){return e[n]=t}function mn(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Jo(e,n,t,i){const r=mn(e,n,t);return mn(e,n+1,i)||r} +function or(e,n,t){return e[n]=t}function mn(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Zo(e,n,t,i){const r=mn(e,n,t);return mn(e,n+1,i)||r} /** * @license * Copyright Google LLC All Rights Reserved. @@ -638,14 +638,14 @@ function or(e,n,t){return e[n]=t}function mn(e,n,t){return!Object.is(e[n],t)&&(e * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Ke(e,n,t,i){const r=k();return mn(r,Tr(),n)&&(be(),rr(st(),r,e,n,t,i)),Ke} +function ze(e,n,t,i){const r=O();return mn(r,Tr(),n)&&(be(),rr(st(),r,e,n,t,i)),ze} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function J(e,n,t,i,r,o,s,a){const l=k(),u=be(),f=e+22,p=u.firstCreatePass? + */function Z(e,n,t,i,r,o,s,a){const l=O(),u=be(),f=e+22,p=u.firstCreatePass? /** * @license * Copyright Google LLC All Rights Reserved. @@ -653,56 +653,56 @@ function Ke(e,n,t,i){const r=k();return mn(r,Tr(),n)&&(be(),rr(st(),r,e,n,t,i)), * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function XI(e,n,t,i,r,o,s,a,l){const u=n.consts,f=ga(n,e,4,s||null,tr(u,a));Cg(n,t,f,tr(u,l)),qs(n,f);const p=f.tViews=Dg(2,f,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u);return null!==n.queries&&(n.queries.template(n,f),p.queries=n.queries.embeddedTView(f)),f}(f,u,l,n,t,i,r,o,s):u.data[f];ci(p,!1);const m=l[11].createComment("");ed(u,l,m,p),pn(m,l),ld(l,l[f]=db(m,l,m,p)),Us(p)&&yg(u,l,p),null!=s&&bg(l,p,a)} +function XA(e,n,t,i,r,o,s,a,l){const u=n.consts,f=ga(n,e,4,s||null,tr(u,a));Cg(n,t,f,tr(u,l)),qs(n,f);const p=f.tViews=Dg(2,f,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u);return null!==n.queries&&(n.queries.template(n,f),p.queries=n.queries.embeddedTView(f)),f}(f,u,l,n,t,i,r,o,s):u.data[f];ci(p,!1);const m=l[11].createComment("");ed(u,l,m,p),pn(m,l),ld(l,l[f]=db(m,l,m,p)),Us(p)&&yg(u,l,p),null!=s&&bg(l,p,a)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Pi(e){return io(function Yh(){return re.lFrame.contextLView}(),22+e)} + */function Fi(e){return io(function Kh(){return re.lFrame.contextLView}(),22+e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Q(e,n,t){const i=k();return mn(i,Tr(),n)&&function Xn(e,n,t,i,r,o,s,a){const l=xt(n,t);let f,u=n.inputs;!a&&null!=u&&(f=u[i])?(Ng(e,t,f,i,r),$s(n)&&ob(t,n.index)):3&n.type&&(i=function _I(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}(be(),st(),i,e,n,i[11],t,!1),Q}function Og(e,n,t,i,r){const s=r?"class":"style";Ng(e,t,n.inputs[s],s,i)} + */function Q(e,n,t){const i=O();return mn(i,Tr(),n)&&function Xn(e,n,t,i,r,o,s,a){const l=Rt(n,t);let f,u=n.inputs;!a&&null!=u&&(f=u[i])?(Eg(e,t,f,i,r),$s(n)&&ob(t,n.index)):3&n.type&&(i=function _A(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}(be(),st(),i,e,n,i[11],t,!1),Q}function kg(e,n,t,i,r){const s=r?"class":"style";Eg(e,t,n.inputs[s],s,i)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function E(e,n,t,i){const r=k(),o=be(),s=22+e,a=r[11],l=r[s]=qp(a,n,function Vu(){return re.lFrame.currentNamespace}()),u=o.firstCreatePass?function tO(e,n,t,i,r,o,s){const a=n.consts,u=ga(n,e,2,r,tr(a,o));return Cg(n,t,u,tr(a,s)),null!==u.attrs&&ud(u,u.attrs,!1),null!==u.mergedAttrs&&ud(u,u.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,u),u}(s,o,r,0,n,t,i):o.data[s];ci(u,!0);const f=u.mergedAttrs;null!==f&&Xs(a,l,f);const p=u.classes;null!==p&&tg(a,l,p);const m=u.styles;return null!==m&&S0(a,l,m),64!=(64&u.flags)&&ed(o,r,l,u),0===function Uh(){return re.lFrame.elementDepthCount}()&&pn(l,r),function Gh(){re.lFrame.elementDepthCount++}(),Us(u)&&(yg(o,r,u),function eb(e,n,t){if(pl(n)){const r=n.directiveEnd;for(let o=n.directiveStart;oa(tt(R[i.index])):i.index;let O=null;if(!a&&l&&(O=function iO(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==O)(O.__ngLastListenerFn__||O).__ngNextListenerFn__=o,O.__ngLastListenerFn__=o,v=!1;else{o=kb(i,n,p,o,!1);const R=t.listen(M,r,o);m.push(o,R),f&&f.push(r,S,I,I+1)}}else o=kb(i,n,p,o,!1);const y=i.outputs;let D;if(v&&null!==y&&(D=y[r])){const w=D.length;if(w)for(let M=0;Ma(tt(x[i.index])):i.index;let k=null;if(!a&&l&&(k=function ik(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=o,k.__ngLastListenerFn__=o,v=!1;else{o=Ob(i,n,p,o,!1);const x=t.listen(N,r,o);m.push(o,x),f&&f.push(r,S,A,A+1)}}else o=Ob(i,n,p,o,!1);const y=i.outputs;let D;if(v&&null!==y&&(D=y[r])){const w=D.length;if(w)for(let N=0;N0;)n=n[15],e--;return n}(e,re.lFrame.contextLView))[8]}(e)} + */function z(e=1){return function Lu(e){return(re.lFrame.contextLView=function El(e,n){for(;e>0;)n=n[15],e--;return n}(e,re.lFrame.contextLView))[8]}(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function rO(e,n){let t=null;const i=function IA(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let r=0;r=0} + */function rk(e,n){let t=null;const i=function AI(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let r=0;r=0} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const Pt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $b(e){return e.substring(Pt.key,Pt.keyEnd)}function Ub(e,n){const t=Pt.textEnd;return t===n?-1:(n=Pt.keyEnd=function dO(e,n,t){for(;n32;)n++;return n}(e,Pt.key=n,t),Ma(e,n,t))}function Ma(e,n,t){for(;n=0;t=Ub(n,t))Qn(e,$b(n),!0)}function Yb(e,n){return n>=e.expandoStartIndex}function qb(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[on()],s=Yb(e,t);Xb(o,i)&&null===n&&!s&&(n=!1),n=function gO(e,n,t,i){const r=function ui(e){const n=re.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=ec(t=Hg(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=Hg(r,e,n,t,i),null===o){let l=function mO(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==xr(i))return e[Fi(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=Hg(null,e,n,l[1],i),l=ec(l,n.attrs,i),function _O(e,n,t,i){e[Fi(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function vO(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(u=!0)}else f=t;if(r)if(0!==l){const m=Fi(e[a+1]);e[i+1]=id(m,a),0!==m&&(e[m+1]=lg(e[m+1],i)),e[a+1]=function tI(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=id(a,0),0!==a&&(e[a+1]=lg(e[a+1],i)),a=i;else e[i+1]=id(l,0),0===a?a=i:e[l+1]=lg(e[l+1],i),l=i;u&&(e[i+1]=ag(e[i+1])),jb(e,f,i,!0),jb(e,f,i,!1),function sO(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&oa(o,n)>=0&&(t[i+1]=cg(t[i+1]))}(n,f,e,i,o),s=id(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function Hg(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[r],u=Array.isArray(l),f=u?l[1]:l,p=null===f;let m=t[r+1];m===ae&&(m=p?Ae:void 0);let v=p?pp(m,i):f===i?m:void 0;if(u&&!gd(v)&&(v=pp(l,i)),gd(v)&&(a=v,s))return a;const y=e[r+1];r=s?Fi(y):xr(y)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=pp(l,i))}return a}function gd(e){return void 0!==e}function Xb(e,n){return 0!=(e.flags&(n?16:32))} + */const Ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $b(e){return e.substring(Ft.key,Ft.keyEnd)}function Ub(e,n){const t=Ft.textEnd;return t===n?-1:(n=Ft.keyEnd=function dk(e,n,t){for(;n32;)n++;return n}(e,Ft.key=n,t),Na(e,n,t))}function Na(e,n,t){for(;n=0;t=Ub(n,t))Qn(e,$b(n),!0)}function Kb(e,n){return n>=e.expandoStartIndex}function qb(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[on()],s=Kb(e,t);Xb(o,i)&&null===n&&!s&&(n=!1),n=function gk(e,n,t,i){const r=function ui(e){const n=re.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=ec(t=Bg(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=Bg(r,e,n,t,i),null===o){let l=function mk(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Rr(i))return e[Pi(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=Bg(null,e,n,l[1],i),l=ec(l,n.attrs,i),function _k(e,n,t,i){e[Pi(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function vk(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(u=!0)}else f=t;if(r)if(0!==l){const m=Pi(e[a+1]);e[i+1]=id(m,a),0!==m&&(e[m+1]=lg(e[m+1],i)),e[a+1]=function tA(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=id(a,0),0!==a&&(e[a+1]=lg(e[a+1],i)),a=i;else e[i+1]=id(l,0),0===a?a=i:e[l+1]=lg(e[l+1],i),l=i;u&&(e[i+1]=ag(e[i+1])),jb(e,f,i,!0),jb(e,f,i,!1),function sk(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&oa(o,n)>=0&&(t[i+1]=cg(t[i+1]))}(n,f,e,i,o),s=id(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function Bg(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[r],u=Array.isArray(l),f=u?l[1]:l,p=null===f;let m=t[r+1];m===ae&&(m=p?Ie:void 0);let v=p?pp(m,i):f===i?m:void 0;if(u&&!gd(v)&&(v=pp(l,i)),gd(v)&&(a=v,s))return a;const y=e[r+1];r=s?Pi(y):Rr(y)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=pp(l,i))}return a}function gd(e){return void 0!==e}function Xb(e,n){return 0!=(e.flags&(n?16:32))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function A(e,n=""){const t=k(),i=be(),r=e+22,o=i.firstCreatePass?ga(i,r,1,n,null):i.data[r],s=t[r]=function Yp(e,n){return e.createText(n)}(t[11],n);ed(i,t,s,o),ci(o,!1)} + */function I(e,n=""){const t=O(),i=be(),r=e+22,o=i.firstCreatePass?ga(i,r,1,n,null):i.data[r],s=t[r]=function Kp(e,n){return e.createText(n)}(t[11],n);ed(i,t,s,o),ci(o,!1)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function fo(e){return Be("",e,""),fo}function Be(e,n,t){const i=k(),r=function va(e,n,t,i){return mn(e,Tr(),t)?n+oe(t)+i:ae}(i,e,n,t);return r!==ae&&function Fr(e,n,t){const i=Ho(n,e);!function u0(e,n,t){e.setValue(n,t)}(e[11],i,t)}(i,on(),r),Be} + */function fo(e){return He("",e,""),fo}function He(e,n,t){const i=O(),r=function va(e,n,t,i){return mn(e,Tr(),t)?n+oe(t)+i:ae}(i,e,n,t);return r!==ae&&function Pr(e,n,t){const i=Bo(n,e);!function u0(e,n,t){e.setValue(n,t)}(e[11],i,t)}(i,on(),r),He} /** * @license * Copyright Google LLC All Rights Reserved. @@ -759,21 +759,21 @@ function XI(e,n,t,i,r,o,s,a,l){const u=n.consts,f=ga(n,e,4,s||null,tr(u,a));Cg(n * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const Qo=void 0;var jO=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BO(e){const t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}]; +const Qo=void 0;var jk=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Hk(e){const t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let Ta={};function In(e){const n=function $O(e){return e.toLowerCase().replace(/_/g,"-")} + */let Ta={};function An(e){const n=function $k(e){return e.toLowerCase().replace(/_/g,"-")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(e);let t=yD(n);if(t)return t;const i=n.split("-")[0];if(t=yD(i),t)return t;if("en"===i)return jO;throw new P(701,!1)}function yD(e){return e in Ta||(Ta[e]=We.ng&&We.ng.common&&We.ng.common.locales&&We.ng.common.locales[e]),Ta[e]}var j=(()=>((j=j||{})[j.LocaleId=0]="LocaleId",j[j.DayPeriodsFormat=1]="DayPeriodsFormat",j[j.DayPeriodsStandalone=2]="DayPeriodsStandalone",j[j.DaysFormat=3]="DaysFormat",j[j.DaysStandalone=4]="DaysStandalone",j[j.MonthsFormat=5]="MonthsFormat",j[j.MonthsStandalone=6]="MonthsStandalone",j[j.Eras=7]="Eras",j[j.FirstDayOfWeek=8]="FirstDayOfWeek",j[j.WeekendRange=9]="WeekendRange",j[j.DateFormat=10]="DateFormat",j[j.TimeFormat=11]="TimeFormat",j[j.DateTimeFormat=12]="DateTimeFormat",j[j.NumberSymbols=13]="NumberSymbols",j[j.NumberFormats=14]="NumberFormats",j[j.CurrencyCode=15]="CurrencyCode",j[j.CurrencySymbol=16]="CurrencySymbol",j[j.CurrencyName=17]="CurrencyName",j[j.Currencies=18]="Currencies",j[j.Directionality=19]="Directionality",j[j.PluralCase=20]="PluralCase",j[j.ExtraData=21]="ExtraData",j))();const Aa="en-US"; + */(e);let t=yD(n);if(t)return t;const i=n.split("-")[0];if(t=yD(i),t)return t;if("en"===i)return jk;throw new F(701,!1)}function yD(e){return e in Ta||(Ta[e]=We.ng&&We.ng.common&&We.ng.common.locales&&We.ng.common.locales[e]),Ta[e]}var j=(()=>((j=j||{})[j.LocaleId=0]="LocaleId",j[j.DayPeriodsFormat=1]="DayPeriodsFormat",j[j.DayPeriodsStandalone=2]="DayPeriodsStandalone",j[j.DaysFormat=3]="DaysFormat",j[j.DaysStandalone=4]="DaysStandalone",j[j.MonthsFormat=5]="MonthsFormat",j[j.MonthsStandalone=6]="MonthsStandalone",j[j.Eras=7]="Eras",j[j.FirstDayOfWeek=8]="FirstDayOfWeek",j[j.WeekendRange=9]="WeekendRange",j[j.DateFormat=10]="DateFormat",j[j.TimeFormat=11]="TimeFormat",j[j.DateTimeFormat=12]="DateTimeFormat",j[j.NumberSymbols=13]="NumberSymbols",j[j.NumberFormats=14]="NumberFormats",j[j.CurrencyCode=15]="CurrencyCode",j[j.CurrencySymbol=16]="CurrencySymbol",j[j.CurrencyName=17]="CurrencyName",j[j.Currencies=18]="Currencies",j[j.Directionality=19]="Directionality",j[j.PluralCase=20]="PluralCase",j[j.ExtraData=21]="ExtraData",j))();const Ia="en-US"; /** * @license * Copyright Google LLC All Rights Reserved. @@ -788,7 +788,7 @@ const Qo=void 0;var jO=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["S * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let bD=Aa;function Ug(e,n,t,i,r){if(e=te(e),Array.isArray(e))for(let o=0;o>20;if(zo(e)||!e.multi){const v=new Tn(l,r,C),y=Wg(a,n,r?f:f+m,p);-1===y?(Ir(Go(u,s),o,a),Gg(o,e,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),t.push(v),s.push(v)):(t[y]=v,s[y]=v)}else{const v=Wg(a,n,f+m,p),y=Wg(a,n,f,f+m),D=v>=0&&t[v],w=y>=0&&t[y];if(r&&!w||!r&&!D){Ir(Go(u,s),o,a);const M=function Lk(e,n,t,i,r){const o=new Tn(e,t,C);return o.multi=[],o.index=n,o.componentProviders=0,WD(o,r,i&&!t),o}(r?Pk:Fk,t.length,r,i,l);!r&&w&&(t[y].providerFactory=M),Gg(o,e,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),t.push(M),s.push(M)}else Gg(o,e,v>-1?v:y,WD(t[r?y:v],l,!r&&i));!r&&i&&w&&t[y].componentProviders++}}}function Gg(e,n,t,i){const r=zo(n),o=function yT(e){return!!e.useClass}(n);if(r||o){const l=(o?te(n.useClass):n).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const f=u.indexOf(t);-1===f?u.push(t,[i,l]):u[f+1].push(i,l)}else u.push(t,l)}}}function WD(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Wg(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=> +let bD=Ia;function Ug(e,n,t,i,r){if(e=te(e),Array.isArray(e))for(let o=0;o>20;if(Yo(e)||!e.multi){const v=new Tn(l,r,C),y=Wg(a,n,r?f:f+m,p);-1===y?(Ar(Go(u,s),o,a),Gg(o,e,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),t.push(v),s.push(v)):(t[y]=v,s[y]=v)}else{const v=Wg(a,n,f+m,p),y=Wg(a,n,f,f+m),D=v>=0&&t[v],w=y>=0&&t[y];if(r&&!w||!r&&!D){Ar(Go(u,s),o,a);const N=function LO(e,n,t,i,r){const o=new Tn(e,t,C);return o.multi=[],o.index=n,o.componentProviders=0,WD(o,r,i&&!t),o}(r?FO:PO,t.length,r,i,l);!r&&w&&(t[y].providerFactory=N),Gg(o,e,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),t.push(N),s.push(N)}else Gg(o,e,v>-1?v:y,WD(t[r?y:v],l,!r&&i));!r&&i&&w&&t[y].componentProviders++}}}function Gg(e,n,t,i){const r=Yo(n),o=function yT(e){return!!e.useClass}(n);if(r||o){const l=(o?te(n.useClass):n).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const f=u.indexOf(t);-1===f?u.push(t,[i,l]):u[f+1].push(i,l)}else u.push(t,l)}}}function WD(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Wg(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=> /** * @license * Copyright Google LLC All Rights Reserved. @@ -803,35 +803,35 @@ let bD=Aa;function Ug(e,n,t,i,r){if(e=te(e),Array.isArray(e))for(let o=0;ot()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class zg extends KD{constructor(n){super(),this.moduleType=n}create(n){return new zD(this.moduleType,n)}}class Hk extends Xo{constructor(n,t,i){super(),this.componentFactoryResolver=new Tg(this),this.instance=null;const r=new Wy([...n,{provide:Xo,useValue:this},{provide:Gl,useValue:this.componentFactoryResolver}],t||Qu(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function bd(e,n,t=null){return new Hk(e,n,t).injector} + */class YD extends Xo{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Tg(this);const i=Mn(n);this._bootstrapComponents=xr(i.bootstrap),this._r3Injector=P0(n,t,[{provide:Xo,useValue:this},{provide:Gl,useValue:this.componentFactoryResolver}],Ve(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Yg extends zD{constructor(n){super(),this.moduleType=n}create(n){return new YD(this.moduleType,n)}}class BO extends Xo{constructor(n,t,i){super(),this.componentFactoryResolver=new Tg(this),this.instance=null;const r=new Wy([...n,{provide:Xo,useValue:this},{provide:Gl,useValue:this.componentFactoryResolver}],t||Qu(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function bd(e,n,t=null){return new BO(e,n,t).injector} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let Bk=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=jy(0,t.type),r=i.length>0?bd([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,r)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=G({token:e,providedIn:"environment",factory:()=>new e(L(lo))}),e})();function YD(e){e.getStandaloneInjector=n=>n.get(Bk).getOrCreateStandaloneInjector(e)} + */let HO=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=jy(0,t.type),r=i.length>0?bd([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,r)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=G({token:e,providedIn:"environment",factory:()=>new e(L(lo))}),e})();function KD(e){e.getStandaloneInjector=n=>n.get(HO).getOrCreateStandaloneInjector(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Cd(e,n,t,i,r,o){return function r1(e,n,t,i,r,o,s,a){const l=n+t;return function hd(e,n,t,i,r){const o=Jo(e,n,t,i);return mn(e,n+2,r)||o}(e,l,r,o,s)?or(e,l+3,a?i.call(a,r,o,s):i(r,o,s)):ac(e,l+3)}(k(),rn(),e,n,t,i,r,o)}function ac(e,n){const t=e[n];return t===ae?void 0:t} + */function Cd(e,n,t,i,r,o){return function r1(e,n,t,i,r,o,s,a){const l=n+t;return function hd(e,n,t,i,r){const o=Zo(e,n,t,i);return mn(e,n+2,r)||o}(e,l,r,o,s)?or(e,l+3,a?i.call(a,r,o,s):i(r,o,s)):ac(e,l+3)}(O(),rn(),e,n,t,i,r,o)}function ac(e,n){const t=e[n];return t===ae?void 0:t} /** * @license * Copyright Google LLC All Rights Reserved. @@ -839,56 +839,56 @@ function xk(e,n,t){const i=be();if(i.firstCreatePass){const r=Jn(e);Ug(t,i.data, * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function wd(e,n){const t=be();let i;const r=e+22;t.firstCreatePass?(i=function tR(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=Nr(i.type)),s=Hn(C);try{const a=ea(!1),l=o();return ea(a),function eO(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,k(),r,l),l}finally{Hn(s)}}function Sd(e,n,t,i){const r=e+22,o=k(),s=io(o,r);return function lc(e,n){return e[1].data[n].pure} +function wd(e,n){const t=be();let i;const r=e+22;t.firstCreatePass?(i=function tx(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=Er(i.type)),s=Bn(C);try{const a=ea(!1),l=o();return ea(a),function ek(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,O(),r,l),l}finally{Bn(s)}}function Sd(e,n,t,i){const r=e+22,o=O(),s=io(o,r);return function lc(e,n){return e[1].data[n].pure} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(o,r)?function i1(e,n,t,i,r,o,s){const a=n+t;return Jo(e,a,r,o)?or(e,a+2,s?i.call(s,r,o):i(r,o)):ac(e,a+2)}(o,rn(),n,s.transform,t,i,s):s.transform(t,i)}function qg(e){return n=>{setTimeout(e,void 0,n)}}const ue=class sR extends Ue{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=qg(o),r&&(r=qg(r)),s&&(s=qg(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Ct&&n.add(a),a}}; + */(o,r)?function i1(e,n,t,i,r,o,s){const a=n+t;return Zo(e,a,r,o)?or(e,a+2,s?i.call(s,r,o):i(r,o)):ac(e,a+2)}(o,rn(),n,s.transform,t,i,s):s.transform(t,i)}function qg(e){return n=>{setTimeout(e,void 0,n)}}const ue=class sx extends Ue{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=qg(o),r&&(r=qg(r)),s&&(s=qg(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Ct&&n.add(a),a}}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function aR(){return this._results[qo()]()}class Jg{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=qo(),i=Jg.prototype;i[t]||(i[t]=aR)}get changes(){return this._changes||(this._changes=new ue)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=Zn(n);(this._changesDetected=!function bN(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=uR,e})();const lR=bt,cR=class extends lR{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n,t){const i=this._declarationTContainer.tViews,r=sd(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),vg(i,r,n),new ql(r)}};function uR(){return Ed(wt(),k())}function Ed(e,n){return 4&e.type?new cR(n,e,ua(e,n)):null} + */let bt=(()=>{class e{}return e.__NG_ELEMENT_ID__=ux,e})();const lx=bt,cx=class extends lx{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n,t){const i=this._declarationTContainer.tViews,r=sd(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),vg(i,r,n),new ql(r)}};function ux(){return Md(wt(),O())}function Md(e,n){return 4&e.type?new cx(n,e,ua(e,n)):null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let Bi=(()=>{class e{}return e.__NG_ELEMENT_ID__=dR,e})();function dR(){return c1(wt(),k())}const fR=Bi,a1=class extends fR{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return ua(this._hostTNode,this._hostLView)}get injector(){return new vt(this._hostTNode,this._hostLView)}get parentInjector(){const n=ki(this._hostTNode,this._hostLView);if($u(n)){const t=so(n,this._hostLView),i=oo(n);return new vt(t[1].data[i+8],t)}return new vt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=l1(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(t||{},o);return this.insert(s,r),s}createComponent(n,t,i,r,o){const s=n&&!function kl(e){return"function"==typeof e} + */let Hi=(()=>{class e{}return e.__NG_ELEMENT_ID__=dx,e})();function dx(){return c1(wt(),O())}const fx=Hi,a1=class extends fx{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return ua(this._hostTNode,this._hostLView)}get injector(){return new vt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Oi(this._hostTNode,this._hostLView);if($u(n)){const t=so(n,this._hostLView),i=oo(n);return new vt(t[1].data[i+8],t)}return new vt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=l1(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(t||{},o);return this.insert(s,r),s}createComponent(n,t,i,r,o){const s=n&&!function Ol(e){return"function"==typeof e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(n);let a;if(s)a=t;else{const p=t||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new Jl(Re(n)),u=i||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?u:this.parentInjector).get(lo,null);m&&(o=m)}const f=l.create(u,r,void 0,o);return this.insert(f.hostView,a),f}insert(n,t){const i=n._lView,r=i[1];if(function $h(e){return qn(e[3])}(i)){const f=this.indexOf(n);if(-1!==f)this.detach(f);else{const p=i[3],m=new a1(p,p[6],p[3]);m.detach(m.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;!function _A(e,n,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=n),i0&&(t[r-1][4]=n),i0)i.push(s[a/2]);else{const u=o[a+1],f=n[-l];for(let p=10;p0)i.push(s[a/2]);else{const u=o[a+1],f=n[-l];for(let p=10;p{class e{constructor(t){this.appInits=t,this.resolve=Td,this.reject=Td,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(L(Ad,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); + */const Id=new q("Application Initializer");let Ad=(()=>{class e{constructor(t){this.appInits=t,this.resolve=Td,this.reject=Td,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(L(Id,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const uc=new q("AppId",{providedIn:"root",factory:function R1(){return`${am()}${am()}${am()}`}});function am(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const x1=new q("Platform Initializer"),dc=new q("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),F1=new q("appBootstrapListener"); + */const uc=new q("AppId",{providedIn:"root",factory:function x1(){return`${am()}${am()}${am()}`}});function am(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const R1=new q("Platform Initializer"),dc=new q("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),P1=new q("appBootstrapListener"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let BR=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(); + */let Hx=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const Pr=new q("LocaleId",{providedIn:"root",factory:()=>St(Pr,X.Optional|X.SkipSelf)||function jR(){return typeof $localize<"u"&&$localize.locale||Aa}()}); + */const Fr=new q("LocaleId",{providedIn:"root",factory:()=>St(Fr,X.Optional|X.SkipSelf)||function jx(){return typeof $localize<"u"&&$localize.locale||Ia}()}); /** * @license * Copyright Google LLC All Rights Reserved. @@ -960,7 +960,7 @@ function Td(...e){} * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class UR{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let lm=(()=>{class e{compileModuleSync(t){return new zg(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=Rr(En(t).declarations).reduce((s,a)=>{const l=Re(a);return l&&s.push(new Jl(l)),s},[]);return new UR(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); +class Ux{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let lm=(()=>{class e{compileModuleSync(t){return new Yg(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=xr(Mn(t).declarations).reduce((s,a)=>{const l=xe(a);return l&&s.push(new Zl(l)),s},[]);return new Ux(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -968,7 +968,7 @@ class UR{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const KR=(()=>Promise.resolve(0))();function cm(e){typeof Zone>"u"?KR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)} +const zx=(()=>Promise.resolve(0))();function cm(e){typeof Zone>"u"?zx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)} /** * @license * Copyright Google LLC All Rights Reserved. @@ -983,14 +983,14 @@ const KR=(()=>Promise.resolve(0))();function cm(e){typeof Zone>"u"?KR.then(()=>{ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class ze{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ue(!1),this.onMicrotaskEmpty=new ue(!1),this.onStable=new ue(!1),this.onError=new ue(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function zR(){let e=We.requestAnimationFrame,n=We.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function JR(e){const n=()=>{!function qR(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(We,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,dm(e),e.isCheckStableRunning=!0,um(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),dm(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return V1(e),t.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),H1(e)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return V1(e),t.invoke(r,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),H1(e)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,dm(e),um(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ze.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(ze.isInAngularZone())throw new P(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,YR,Td,Td);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const YR={};function um(e){if(0==e._nesting&&!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 dm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function V1(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function H1(e){e._nesting--,um(e)}class ZR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ue,this.onMicrotaskEmpty=new ue,this.onStable=new ue,this.onError=new ue}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}} +class Ye{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ue(!1),this.onMicrotaskEmpty=new ue(!1),this.onStable=new ue(!1),this.onError=new ue(!1),typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Yx(){let e=We.requestAnimationFrame,n=We.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Zx(e){const n=()=>{!function qx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(We,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,dm(e),e.isCheckStableRunning=!0,um(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),dm(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return V1(e),t.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),B1(e)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return V1(e),t.invoke(r,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),B1(e)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,dm(e),um(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ye.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(Ye.isInAngularZone())throw new F(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Kx,Td,Td);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const Kx={};function um(e){if(0==e._nesting&&!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 dm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function V1(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function B1(e){e._nesting--,um(e)}class Jx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ue,this.onMicrotaskEmpty=new ue,this.onStable=new ue,this.onError=new ue}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const B1=new q(""),Od=new q("");let pm,fm=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pm||(function QR(e){pm=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ze.assertNotInAngularZone(),cm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cm(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}}return e.\u0275fac=function(t){return new(t||e)(L(ze),L(hm),L(Od))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return pm?.findTestabilityInTree(this,t,i)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),po=null;const j1=new q("AllowMultipleToken"),gm=new q("PlatformDestroyListeners");class $1{constructor(n,t){this.name=n,this.token=t}}function G1(e,n,t=[]){const i=`Platform: ${n}`,r=new q(i);return(o=[])=>{let s=mm();if(!s||s.injector.get(j1,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function tx(e){if(po&&!po.get(j1,!1))throw new P(400,!1);po=e;const n=e.get(K1);(function U1(e){const n=e.get(x1,null);n&&n.forEach(t=>t())})(e)}(function W1(e=[],n){return gn.create({name:n,providers:[{provide:Ip,useValue:"platform"},{provide:gm,useValue:new Set([()=>po=null])},...e]})}(a,i))}return function ix(e){const n=mm();if(!n)throw new P(401,!1);return n}()}}function mm(){return po?.get(K1)??null}let K1=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function Y1(e,n){let t;return t="noop"===e?new ZR:("zone.js"===e?void 0:e)||new ze(n),t}(i?.ngZone,function z1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ze,useValue:r}];return r.run(()=>{const s=gn.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(da,null);if(!l)throw new P(402,!1);return r.runOutsideAngular(()=>{const u=r.onError.subscribe({next:f=>{l.handleError(f)}});a.onDestroy(()=>{kd(this._modules,a),u.unsubscribe()})}),function q1(e,n,t){try{const i=t();return Xl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(l,r,()=>{const u=a.injector.get(Id);return u.runInitializers(),u.donePromise.then(()=>(function DD(e){Sn(e,"Expected localeId to be defined"),"string"==typeof e&&(bD=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Pr,Aa)||Aa),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const r=J1({},i);return function XR(e,n,t){const i=new zg(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(fc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new P(403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(gm,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(L(gn))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function J1(e,n){return Array.isArray(n)?n.reduce(J1,e):{...e,...n}}let fc=(()=>{class e{constructor(t,i,r){this._zone=t,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new je(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new je(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ze.assertNotInAngularZone(),cm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function fh(...e){const n=en(e),t=function Si(e,n){return"number"==typeof Ln(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?ut(i[0]):Se(t)(gt(i,n)):Xt}(o,s.pipe(function hh(e={}){const{connector:n=(()=>new Ue),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,u=0,f=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},v=()=>{m(),s=l=void 0,f=p=!1},y=()=>{const D=s;v(),D?.unsubscribe()};return qe((D,w)=>{u++,!p&&!f&&m();const M=l=l??n();w.add(()=>{u--,0===u&&!p&&!f&&(a=il(y,r))}),M.subscribe(w),!s&&u>0&&(s=new vr({next:I=>M.next(I),error:I=>{p=!0,m(),a=il(v,t,I),M.error(I)},complete:()=>{f=!0,m(),a=il(v,i),M.complete()}}),ut(D).subscribe(s))})(o)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof zy;if(!this._injector.get(Id).done)throw!r&&function zn(e){const n=Re(e)||Ut(e)||nn(e);return null!==n&&n.standalone}(t),new P(405,false);let s;s=r?t:this._injector.get(Gl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function ex(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Xo),u=s.create(gn.NULL,[],i||s.selector,a),f=u.location.nativeElement,p=u.injector.get(B1,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),kd(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;kd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(F1,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>kd(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new P(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)(L(ze),L(lo),L(da))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function kd(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)} + */const H1=new q(""),kd=new q("");let pm,fm=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pm||(function Qx(e){pm=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),cm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cm(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}}return e.\u0275fac=function(t){return new(t||e)(L(Ye),L(hm),L(kd))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return pm?.findTestabilityInTree(this,t,i)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),po=null;const j1=new q("AllowMultipleToken"),gm=new q("PlatformDestroyListeners");class $1{constructor(n,t){this.name=n,this.token=t}}function G1(e,n,t=[]){const i=`Platform: ${n}`,r=new q(i);return(o=[])=>{let s=mm();if(!s||s.injector.get(j1,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function tR(e){if(po&&!po.get(j1,!1))throw new F(400,!1);po=e;const n=e.get(z1);(function U1(e){const n=e.get(R1,null);n&&n.forEach(t=>t())})(e)}(function W1(e=[],n){return gn.create({name:n,providers:[{provide:Ap,useValue:"platform"},{provide:gm,useValue:new Set([()=>po=null])},...e]})}(a,i))}return function iR(e){const n=mm();if(!n)throw new F(401,!1);return n}()}}function mm(){return po?.get(z1)??null}let z1=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function K1(e,n){let t;return t="noop"===e?new Jx:("zone.js"===e?void 0:e)||new Ye(n),t}(i?.ngZone,function Y1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ye,useValue:r}];return r.run(()=>{const s=gn.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(da,null);if(!l)throw new F(402,!1);return r.runOutsideAngular(()=>{const u=r.onError.subscribe({next:f=>{l.handleError(f)}});a.onDestroy(()=>{Od(this._modules,a),u.unsubscribe()})}),function q1(e,n,t){try{const i=t();return Xl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(l,r,()=>{const u=a.injector.get(Ad);return u.runInitializers(),u.donePromise.then(()=>(function DD(e){Sn(e,"Expected localeId to be defined"),"string"==typeof e&&(bD=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Fr,Ia)||Ia),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const r=Z1({},i);return function Xx(e,n,t){const i=new Yg(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(fc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new F(403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(gm,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(L(gn))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Z1(e,n){return Array.isArray(n)?n.reduce(Z1,e):{...e,...n}}let fc=(()=>{class e{constructor(t,i,r){this._zone=t,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new je(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new je(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),cm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function fh(...e){const n=en(e),t=function Si(e,n){return"number"==typeof Ln(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?ut(i[0]):Se(t)(gt(i,n)):Xt}(o,s.pipe(function hh(e={}){const{connector:n=(()=>new Ue),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,u=0,f=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},v=()=>{m(),s=l=void 0,f=p=!1},y=()=>{const D=s;v(),D?.unsubscribe()};return qe((D,w)=>{u++,!p&&!f&&m();const N=l=l??n();w.add(()=>{u--,0===u&&!p&&!f&&(a=il(y,r))}),N.subscribe(w),!s&&u>0&&(s=new vr({next:A=>N.next(A),error:A=>{p=!0,m(),a=il(v,t,A),N.error(A)},complete:()=>{f=!0,m(),a=il(v,i),N.complete()}}),ut(D).subscribe(s))})(o)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof Yy;if(!this._injector.get(Ad).done)throw!r&&function Yn(e){const n=xe(e)||Ut(e)||nn(e);return null!==n&&n.standalone}(t),new F(405,false);let s;s=r?t:this._injector.get(Gl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function eR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Xo),u=s.create(gn.NULL,[],i||s.selector,a),f=u.location.nativeElement,p=u.injector.get(H1,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),Od(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Od(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(P1,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Od(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new F(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)(L(Ye),L(lo),L(da))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Od(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)} /** * @license * Copyright Google LLC All Rights Reserved. @@ -998,14 +998,14 @@ class ze{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetecti * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let Q1=!0,Vr=(()=>{class e{}return e.__NG_ELEMENT_ID__=sx,e})();function sx(e){return function ax(e,n,t){if($s(e)&&!t){const i=Nn(e.index,n);return new ql(i,i)}return 47&e.type?new ql(n[16],n):null} +let Q1=!0,Vr=(()=>{class e{}return e.__NG_ELEMENT_ID__=sR,e})();function sR(e){return function aR(e,n,t){if($s(e)&&!t){const i=En(e.index,n);return new ql(i,i)}return 47&e.type?new ql(n[16],n):null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(wt(),k(),16==(16&e))} + */(wt(),O(),16==(16&e))} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1013,21 +1013,21 @@ let Q1=!0,Vr=(()=>{class e{}return e.__NG_ELEMENT_ID__=sx,e})();function sx(e){r * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class iC{constructor(){}supports(n){return Zl(n)}create(n){return new hx(n)}}const fx=(e,n)=>n;class hx{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||fx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new px(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new rC),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new rC),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class px{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gx{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class rC{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new gx,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function oC(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&in;class hR{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||fR}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new pR(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new rC),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new rC),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class pR{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gR{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class rC{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new gR,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function oC(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new _x(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class _x{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}} + */}class sC{constructor(){}supports(n){return n instanceof Map||Ag(n)}create(){return new mR}}class mR{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let t;for(t=this._mapHead;null!==t;t=t._next)n(t)}forEachPreviousItem(n){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n(t)}forEachChangedItem(n){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}diff(n){if(n){if(!(n instanceof Map||Ag(n)))throw new F(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new _R(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class _R{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function aC(){return new Fd([new iC])}let Fd=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||aC()),deps:[[e,new Vl,new Ll]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new P(901,!1)}}return e.\u0275prov=G({token:e,providedIn:"root",factory:aC}),e})(); + */function aC(){return new Pd([new iC])}let Pd=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||aC()),deps:[[e,new Vl,new Ll]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new F(901,!1)}}return e.\u0275prov=G({token:e,providedIn:"root",factory:aC}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1035,7 +1035,7 @@ class iC{constructor(){}supports(n){return Zl(n)}create(n){return new hx(n)}}con * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function lC(){return new hc([new sC])}let hc=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||lC()),deps:[[e,new Vl,new Ll]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new P(901,!1)}} +function lC(){return new hc([new sC])}let hc=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||lC()),deps:[[e,new Vl,new Ll]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new F(901,!1)}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1043,7 +1043,7 @@ function lC(){return new hc([new sC])}let hc=(()=>{class e{constructor(t){this.f * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -return e.\u0275prov=G({token:e,providedIn:"root",factory:lC}),e})();const bx=G1(null,"core",[]); +return e.\u0275prov=G({token:e,providedIn:"root",factory:lC}),e})();const bR=G1(null,"core",[]); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1065,7 +1065,7 @@ return e.\u0275prov=G({token:e,providedIn:"root",factory:lC}),e})();const bx=G1( * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let Dx=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(L(fc))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})(); +let DR=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(L(fc))},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1087,7 +1087,7 @@ let Dx=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new( * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Dm(e,n){const t=Re(e),i=n.elementInjector||Qu();return new Jl(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)} +function Dm(e,n){const t=xe(e),i=n.elementInjector||Qu();return new Zl(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1121,7 +1121,7 @@ function Dm(e,n){const t=Re(e),i=n.elementInjector||Qu();return new Jl(t).create * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let Pd=null;function lr(){return Pd} +let Fd=null;function lr(){return Fd} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1136,7 +1136,7 @@ const Dt=new q("DocumentToken"); * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let Cm=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:function(){return function Ex(){return L(cC)}()},providedIn:"platform"}),e})();const Mx=new q("Location Initialized");let cC=(()=>{class e extends Cm{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return lr().getBaseHref(this._doc)}onPopState(t){const i=lr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=lr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,i,r){uC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){uC()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:function(){return function Nx(){return new cC(L(Dt))} + */let Cm=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:function(){return function MR(){return L(cC)}()},providedIn:"platform"}),e})();const NR=new q("Location Initialized");let cC=(()=>{class e extends Cm{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return lr().getBaseHref(this._doc)}onPopState(t){const i=lr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=lr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,i,r){uC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){uC()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:function(){return function ER(){return new cC(L(Dt))} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1150,14 +1150,14 @@ const Dt=new q("DocumentToken"); * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */()},providedIn:"platform"}),e})();function uC(){return!!window.history.pushState}function wm(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function dC(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Br(e){return e&&"?"!==e[0]?"?"+e:e} + */()},providedIn:"platform"}),e})();function uC(){return!!window.history.pushState}function wm(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function dC(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Hr(e){return e&&"?"!==e[0]?"?"+e:e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let ts=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:function(){return St(hC)},providedIn:"root"}),e})();const fC=new q("appBaseHref");let hC=(()=>{class e extends ts{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??St(Dt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return wm(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Br(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Br(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Br(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(L(Cm),L(fC,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Tx=(()=>{class e extends ts{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=wm(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+Br(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+Br(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(L(Cm),L(fC,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),Sm=(()=>{class e{constructor(t){this._subject=new ue,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._baseHref=dC(pC(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Br(i))}normalize(t){return e.stripTrailingSlash(function Ix(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,pC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Br(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Br(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return e.normalizeQueryParams=Br,e.joinWithSlash=wm,e.stripTrailingSlash=dC,e.\u0275fac=function(t){return new(t||e)(L(ts))},e.\u0275prov=G({token:e,factory:function(){return function Ax(){return new Sm(L(ts))}()},providedIn:"root"}),e})(); + */let ts=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:function(){return St(hC)},providedIn:"root"}),e})();const fC=new q("appBaseHref");let hC=(()=>{class e extends ts{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??St(Dt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return wm(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Hr(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Hr(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Hr(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(L(Cm),L(fC,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TR=(()=>{class e extends ts{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=wm(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+Hr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+Hr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(L(Cm),L(fC,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),Sm=(()=>{class e{constructor(t){this._subject=new ue,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._baseHref=dC(pC(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Hr(i))}normalize(t){return e.stripTrailingSlash(function AR(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,pC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hr(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return e.normalizeQueryParams=Hr,e.joinWithSlash=wm,e.stripTrailingSlash=dC,e.\u0275fac=function(t){return new(t||e)(L(ts))},e.\u0275prov=G({token:e,factory:function(){return function IR(){return new Sm(L(ts))}()},providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1186,7 +1186,7 @@ const Dt=new q("DocumentToken"); * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -var Mt=(()=>((Mt=Mt||{})[Mt.Format=0]="Format",Mt[Mt.Standalone=1]="Standalone",Mt))(),ve=(()=>((ve=ve||{})[ve.Narrow=0]="Narrow",ve[ve.Abbreviated=1]="Abbreviated",ve[ve.Wide=2]="Wide",ve[ve.Short=3]="Short",ve))(),pt=(()=>((pt=pt||{})[pt.Short=0]="Short",pt[pt.Medium=1]="Medium",pt[pt.Long=2]="Long",pt[pt.Full=3]="Full",pt))(),ee=(()=>((ee=ee||{})[ee.Decimal=0]="Decimal",ee[ee.Group=1]="Group",ee[ee.List=2]="List",ee[ee.PercentSign=3]="PercentSign",ee[ee.PlusSign=4]="PlusSign",ee[ee.MinusSign=5]="MinusSign",ee[ee.Exponential=6]="Exponential",ee[ee.SuperscriptingExponent=7]="SuperscriptingExponent",ee[ee.PerMille=8]="PerMille",ee[ee.Infinity=9]="Infinity",ee[ee.NaN=10]="NaN",ee[ee.TimeSeparator=11]="TimeSeparator",ee[ee.CurrencyDecimal=12]="CurrencyDecimal",ee[ee.CurrencyGroup=13]="CurrencyGroup",ee))();function Ld(e,n){return _i(In(e)[j.DateFormat],n)}function Vd(e,n){return _i(In(e)[j.TimeFormat],n)}function Hd(e,n){return _i(In(e)[j.DateTimeFormat],n)}function mi(e,n){const t=In(e),i=t[j.NumberSymbols][n];if(typeof i>"u"){if(n===ee.CurrencyDecimal)return t[j.NumberSymbols][ee.Decimal];if(n===ee.CurrencyGroup)return t[j.NumberSymbols][ee.Group]}return i}function mC(e){if(!e[j.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[j.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _i(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Mm(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}} +var Nt=(()=>((Nt=Nt||{})[Nt.Format=0]="Format",Nt[Nt.Standalone=1]="Standalone",Nt))(),ve=(()=>((ve=ve||{})[ve.Narrow=0]="Narrow",ve[ve.Abbreviated=1]="Abbreviated",ve[ve.Wide=2]="Wide",ve[ve.Short=3]="Short",ve))(),pt=(()=>((pt=pt||{})[pt.Short=0]="Short",pt[pt.Medium=1]="Medium",pt[pt.Long=2]="Long",pt[pt.Full=3]="Full",pt))(),ee=(()=>((ee=ee||{})[ee.Decimal=0]="Decimal",ee[ee.Group=1]="Group",ee[ee.List=2]="List",ee[ee.PercentSign=3]="PercentSign",ee[ee.PlusSign=4]="PlusSign",ee[ee.MinusSign=5]="MinusSign",ee[ee.Exponential=6]="Exponential",ee[ee.SuperscriptingExponent=7]="SuperscriptingExponent",ee[ee.PerMille=8]="PerMille",ee[ee.Infinity=9]="Infinity",ee[ee.NaN=10]="NaN",ee[ee.TimeSeparator=11]="TimeSeparator",ee[ee.CurrencyDecimal=12]="CurrencyDecimal",ee[ee.CurrencyGroup=13]="CurrencyGroup",ee))();function Ld(e,n){return _i(An(e)[j.DateFormat],n)}function Vd(e,n){return _i(An(e)[j.TimeFormat],n)}function Bd(e,n){return _i(An(e)[j.DateTimeFormat],n)}function mi(e,n){const t=An(e),i=t[j.NumberSymbols][n];if(typeof i>"u"){if(n===ee.CurrencyDecimal)return t[j.NumberSymbols][ee.Decimal];if(n===ee.CurrencyGroup)return t[j.NumberSymbols][ee.Group]}return i}function mC(e){if(!e[j.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[j.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _i(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Nm(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1194,7 +1194,7 @@ var Mt=(()=>((Mt=Mt||{})[Mt.Format=0]="Format",Mt[Mt.Standalone=1]="Standalone", * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const Ux=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pc={},Gx=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Lt=(()=>((Lt=Lt||{})[Lt.Short=0]="Short",Lt[Lt.ShortGMT=1]="ShortGMT",Lt[Lt.Long=2]="Long",Lt[Lt.Extended=3]="Extended",Lt))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function Wx(e,n,t,i){let r=function eF(e){if(yC(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[r,o=1,s=1]=e.split("-").map(a=>+a);return Bd(r,o-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let i;if(i=e.match(Ux))return function tF(e){const n=new Date(0);let t=0,i=0;const r=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,s,a,l,u),n}(i)}const n=new Date(e);if(!yC(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=jr(t,n)||n;let a,s=[];for(;n;){if(a=Gx.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const f=s.pop();if(!f)break;n=f}}let l=r.getTimezoneOffset();i&&(l=vC(i,l),r=function Xx(e,n,t){const i=t?-1:1,r=e.getTimezoneOffset();return function Qx(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,i*(vC(n,r)-r))}(r,i,!0));let u="";return s.forEach(f=>{const p=function Zx(e){if(Tm[e])return Tm[e];let n;switch(e){case"G":case"GG":case"GGG":n=Qe(fe.Eras,ve.Abbreviated);break;case"GGGG":n=Qe(fe.Eras,ve.Wide);break;case"GGGGG":n=Qe(fe.Eras,ve.Narrow);break;case"y":n=Ot(ie.FullYear,1,0,!1,!0);break;case"yy":n=Ot(ie.FullYear,2,0,!0,!0);break;case"yyy":n=Ot(ie.FullYear,3,0,!1,!0);break;case"yyyy":n=Ot(ie.FullYear,4,0,!1,!0);break;case"Y":n=Gd(1);break;case"YY":n=Gd(2,!0);break;case"YYY":n=Gd(3);break;case"YYYY":n=Gd(4);break;case"M":case"L":n=Ot(ie.Month,1,1);break;case"MM":case"LL":n=Ot(ie.Month,2,1);break;case"MMM":n=Qe(fe.Months,ve.Abbreviated);break;case"MMMM":n=Qe(fe.Months,ve.Wide);break;case"MMMMM":n=Qe(fe.Months,ve.Narrow);break;case"LLL":n=Qe(fe.Months,ve.Abbreviated,Mt.Standalone);break;case"LLLL":n=Qe(fe.Months,ve.Wide,Mt.Standalone);break;case"LLLLL":n=Qe(fe.Months,ve.Narrow,Mt.Standalone);break;case"w":n=Nm(1);break;case"ww":n=Nm(2);break;case"W":n=Nm(1,!0);break;case"d":n=Ot(ie.Date,1);break;case"dd":n=Ot(ie.Date,2);break;case"c":case"cc":n=Ot(ie.Day,1);break;case"ccc":n=Qe(fe.Days,ve.Abbreviated,Mt.Standalone);break;case"cccc":n=Qe(fe.Days,ve.Wide,Mt.Standalone);break;case"ccccc":n=Qe(fe.Days,ve.Narrow,Mt.Standalone);break;case"cccccc":n=Qe(fe.Days,ve.Short,Mt.Standalone);break;case"E":case"EE":case"EEE":n=Qe(fe.Days,ve.Abbreviated);break;case"EEEE":n=Qe(fe.Days,ve.Wide);break;case"EEEEE":n=Qe(fe.Days,ve.Narrow);break;case"EEEEEE":n=Qe(fe.Days,ve.Short);break;case"a":case"aa":case"aaa":n=Qe(fe.DayPeriods,ve.Abbreviated);break;case"aaaa":n=Qe(fe.DayPeriods,ve.Wide);break;case"aaaaa":n=Qe(fe.DayPeriods,ve.Narrow);break;case"b":case"bb":case"bbb":n=Qe(fe.DayPeriods,ve.Abbreviated,Mt.Standalone,!0);break;case"bbbb":n=Qe(fe.DayPeriods,ve.Wide,Mt.Standalone,!0);break;case"bbbbb":n=Qe(fe.DayPeriods,ve.Narrow,Mt.Standalone,!0);break;case"B":case"BB":case"BBB":n=Qe(fe.DayPeriods,ve.Abbreviated,Mt.Format,!0);break;case"BBBB":n=Qe(fe.DayPeriods,ve.Wide,Mt.Format,!0);break;case"BBBBB":n=Qe(fe.DayPeriods,ve.Narrow,Mt.Format,!0);break;case"h":n=Ot(ie.Hours,1,-12);break;case"hh":n=Ot(ie.Hours,2,-12);break;case"H":n=Ot(ie.Hours,1);break;case"HH":n=Ot(ie.Hours,2);break;case"m":n=Ot(ie.Minutes,1);break;case"mm":n=Ot(ie.Minutes,2);break;case"s":n=Ot(ie.Seconds,1);break;case"ss":n=Ot(ie.Seconds,2);break;case"S":n=Ot(ie.FractionalSeconds,1);break;case"SS":n=Ot(ie.FractionalSeconds,2);break;case"SSS":n=Ot(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=$d(Lt.Short);break;case"ZZZZZ":n=$d(Lt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=$d(Lt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=$d(Lt.Long);break;default:return null}return Tm[e]=n,n}(f);u+=p?p(r,t,l):"''"===f?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Bd(e,n,t){const i=new Date(0);return i.setFullYear(e,n,t),i.setHours(0,0,0),i}function jr(e,n){const t=function Ox(e){return In(e)[j.LocaleId]}(e);if(pc[t]=pc[t]||{},pc[t][n])return pc[t][n];let i="";switch(n){case"shortDate":i=Ld(e,pt.Short);break;case"mediumDate":i=Ld(e,pt.Medium);break;case"longDate":i=Ld(e,pt.Long);break;case"fullDate":i=Ld(e,pt.Full);break;case"shortTime":i=Vd(e,pt.Short);break;case"mediumTime":i=Vd(e,pt.Medium);break;case"longTime":i=Vd(e,pt.Long);break;case"fullTime":i=Vd(e,pt.Full);break;case"short":const r=jr(e,"shortTime"),o=jr(e,"shortDate");i=jd(Hd(e,pt.Short),[r,o]);break;case"medium":const s=jr(e,"mediumTime"),a=jr(e,"mediumDate");i=jd(Hd(e,pt.Medium),[s,a]);break;case"long":const l=jr(e,"longTime"),u=jr(e,"longDate");i=jd(Hd(e,pt.Long),[l,u]);break;case"full":const f=jr(e,"fullTime"),p=jr(e,"fullDate");i=jd(Hd(e,pt.Full),[f,p])}return i&&(pc[t][n]=i),i}function jd(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,i){return null!=n&&i in n?n[i]:t})),e}function Ui(e,n,t="-",i,r){let o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===ie.Hours)0===a&&-12===t&&(a=12);else if(e===ie.FractionalSeconds)return function Kx(e,n){return Ui(e,3).substring(0,n)}(a,n);const l=mi(s,ee.MinusSign);return Ui(a,n,l,i,r)}}function Qe(e,n,t=Mt.Format,i=!1){return function(r,o){return function Yx(e,n,t,i,r,o){switch(t){case fe.Months:return function xx(e,n,t){const i=In(e),o=_i([i[j.MonthsFormat],i[j.MonthsStandalone]],n);return _i(o,t)}(n,r,i)[e.getMonth()];case fe.Days:return function Rx(e,n,t){const i=In(e),o=_i([i[j.DaysFormat],i[j.DaysStandalone]],n);return _i(o,t)}(n,r,i)[e.getDay()];case fe.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(o){const u=function Vx(e){const n=In(e);return mC(n),(n[j.ExtraData][2]||[]).map(i=>"string"==typeof i?Mm(i):[Mm(i[0]),Mm(i[1])])}(n),f=function Hx(e,n,t){const i=In(e);mC(i);const o=_i([i[j.ExtraData][0],i[j.ExtraData][1]],n)||[];return _i(o,t)||[]}(n,r,i),p=u.findIndex(m=>{if(Array.isArray(m)){const[v,y]=m,D=s>=v.hours&&a>=v.minutes,w=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Lt.Short:return(r>=0?"+":"")+Ui(s,2,o)+Ui(Math.abs(r%60),2,o);case Lt.ShortGMT:return"GMT"+(r>=0?"+":"")+Ui(s,1,o);case Lt.Long:return"GMT"+(r>=0?"+":"")+Ui(s,2,o)+":"+Ui(Math.abs(r%60),2,o);case Lt.Extended:return 0===i?"Z":(r>=0?"+":"")+Ui(s,2,o)+":"+Ui(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}function _C(e){return Bd(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Nm(e,n=!1){return function(t,i){let r;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();r=1+Math.floor((s+o)/7)}else{const o=_C(t),s=function Jx(e){const n=Bd(e,0,1).getDay();return Bd(e,0,1+(n<=4?4:11)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Ui(r,e,mi(i,ee.MinusSign))}}function Gd(e,n=!1){return function(t,i){return Ui(_C(t).getFullYear(),e,mi(i,ee.MinusSign),n)}}const Tm={};function vC(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function yC(e){return e instanceof Date&&!isNaN(e.valueOf())} +const UR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pc={},GR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Lt=(()=>((Lt=Lt||{})[Lt.Short=0]="Short",Lt[Lt.ShortGMT=1]="ShortGMT",Lt[Lt.Long=2]="Long",Lt[Lt.Extended=3]="Extended",Lt))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function WR(e,n,t,i){let r=function eP(e){if(yC(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[r,o=1,s=1]=e.split("-").map(a=>+a);return Hd(r,o-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let i;if(i=e.match(UR))return function tP(e){const n=new Date(0);let t=0,i=0;const r=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,s,a,l,u),n}(i)}const n=new Date(e);if(!yC(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=jr(t,n)||n;let a,s=[];for(;n;){if(a=GR.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const f=s.pop();if(!f)break;n=f}}let l=r.getTimezoneOffset();i&&(l=vC(i,l),r=function XR(e,n,t){const i=t?-1:1,r=e.getTimezoneOffset();return function QR(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,i*(vC(n,r)-r))}(r,i,!0));let u="";return s.forEach(f=>{const p=function JR(e){if(Tm[e])return Tm[e];let n;switch(e){case"G":case"GG":case"GGG":n=Qe(fe.Eras,ve.Abbreviated);break;case"GGGG":n=Qe(fe.Eras,ve.Wide);break;case"GGGGG":n=Qe(fe.Eras,ve.Narrow);break;case"y":n=kt(ie.FullYear,1,0,!1,!0);break;case"yy":n=kt(ie.FullYear,2,0,!0,!0);break;case"yyy":n=kt(ie.FullYear,3,0,!1,!0);break;case"yyyy":n=kt(ie.FullYear,4,0,!1,!0);break;case"Y":n=Gd(1);break;case"YY":n=Gd(2,!0);break;case"YYY":n=Gd(3);break;case"YYYY":n=Gd(4);break;case"M":case"L":n=kt(ie.Month,1,1);break;case"MM":case"LL":n=kt(ie.Month,2,1);break;case"MMM":n=Qe(fe.Months,ve.Abbreviated);break;case"MMMM":n=Qe(fe.Months,ve.Wide);break;case"MMMMM":n=Qe(fe.Months,ve.Narrow);break;case"LLL":n=Qe(fe.Months,ve.Abbreviated,Nt.Standalone);break;case"LLLL":n=Qe(fe.Months,ve.Wide,Nt.Standalone);break;case"LLLLL":n=Qe(fe.Months,ve.Narrow,Nt.Standalone);break;case"w":n=Em(1);break;case"ww":n=Em(2);break;case"W":n=Em(1,!0);break;case"d":n=kt(ie.Date,1);break;case"dd":n=kt(ie.Date,2);break;case"c":case"cc":n=kt(ie.Day,1);break;case"ccc":n=Qe(fe.Days,ve.Abbreviated,Nt.Standalone);break;case"cccc":n=Qe(fe.Days,ve.Wide,Nt.Standalone);break;case"ccccc":n=Qe(fe.Days,ve.Narrow,Nt.Standalone);break;case"cccccc":n=Qe(fe.Days,ve.Short,Nt.Standalone);break;case"E":case"EE":case"EEE":n=Qe(fe.Days,ve.Abbreviated);break;case"EEEE":n=Qe(fe.Days,ve.Wide);break;case"EEEEE":n=Qe(fe.Days,ve.Narrow);break;case"EEEEEE":n=Qe(fe.Days,ve.Short);break;case"a":case"aa":case"aaa":n=Qe(fe.DayPeriods,ve.Abbreviated);break;case"aaaa":n=Qe(fe.DayPeriods,ve.Wide);break;case"aaaaa":n=Qe(fe.DayPeriods,ve.Narrow);break;case"b":case"bb":case"bbb":n=Qe(fe.DayPeriods,ve.Abbreviated,Nt.Standalone,!0);break;case"bbbb":n=Qe(fe.DayPeriods,ve.Wide,Nt.Standalone,!0);break;case"bbbbb":n=Qe(fe.DayPeriods,ve.Narrow,Nt.Standalone,!0);break;case"B":case"BB":case"BBB":n=Qe(fe.DayPeriods,ve.Abbreviated,Nt.Format,!0);break;case"BBBB":n=Qe(fe.DayPeriods,ve.Wide,Nt.Format,!0);break;case"BBBBB":n=Qe(fe.DayPeriods,ve.Narrow,Nt.Format,!0);break;case"h":n=kt(ie.Hours,1,-12);break;case"hh":n=kt(ie.Hours,2,-12);break;case"H":n=kt(ie.Hours,1);break;case"HH":n=kt(ie.Hours,2);break;case"m":n=kt(ie.Minutes,1);break;case"mm":n=kt(ie.Minutes,2);break;case"s":n=kt(ie.Seconds,1);break;case"ss":n=kt(ie.Seconds,2);break;case"S":n=kt(ie.FractionalSeconds,1);break;case"SS":n=kt(ie.FractionalSeconds,2);break;case"SSS":n=kt(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=$d(Lt.Short);break;case"ZZZZZ":n=$d(Lt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=$d(Lt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=$d(Lt.Long);break;default:return null}return Tm[e]=n,n}(f);u+=p?p(r,t,l):"''"===f?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Hd(e,n,t){const i=new Date(0);return i.setFullYear(e,n,t),i.setHours(0,0,0),i}function jr(e,n){const t=function kR(e){return An(e)[j.LocaleId]}(e);if(pc[t]=pc[t]||{},pc[t][n])return pc[t][n];let i="";switch(n){case"shortDate":i=Ld(e,pt.Short);break;case"mediumDate":i=Ld(e,pt.Medium);break;case"longDate":i=Ld(e,pt.Long);break;case"fullDate":i=Ld(e,pt.Full);break;case"shortTime":i=Vd(e,pt.Short);break;case"mediumTime":i=Vd(e,pt.Medium);break;case"longTime":i=Vd(e,pt.Long);break;case"fullTime":i=Vd(e,pt.Full);break;case"short":const r=jr(e,"shortTime"),o=jr(e,"shortDate");i=jd(Bd(e,pt.Short),[r,o]);break;case"medium":const s=jr(e,"mediumTime"),a=jr(e,"mediumDate");i=jd(Bd(e,pt.Medium),[s,a]);break;case"long":const l=jr(e,"longTime"),u=jr(e,"longDate");i=jd(Bd(e,pt.Long),[l,u]);break;case"full":const f=jr(e,"fullTime"),p=jr(e,"fullDate");i=jd(Bd(e,pt.Full),[f,p])}return i&&(pc[t][n]=i),i}function jd(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,i){return null!=n&&i in n?n[i]:t})),e}function Ui(e,n,t="-",i,r){let o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===ie.Hours)0===a&&-12===t&&(a=12);else if(e===ie.FractionalSeconds)return function zR(e,n){return Ui(e,3).substring(0,n)}(a,n);const l=mi(s,ee.MinusSign);return Ui(a,n,l,i,r)}}function Qe(e,n,t=Nt.Format,i=!1){return function(r,o){return function KR(e,n,t,i,r,o){switch(t){case fe.Months:return function RR(e,n,t){const i=An(e),o=_i([i[j.MonthsFormat],i[j.MonthsStandalone]],n);return _i(o,t)}(n,r,i)[e.getMonth()];case fe.Days:return function xR(e,n,t){const i=An(e),o=_i([i[j.DaysFormat],i[j.DaysStandalone]],n);return _i(o,t)}(n,r,i)[e.getDay()];case fe.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(o){const u=function VR(e){const n=An(e);return mC(n),(n[j.ExtraData][2]||[]).map(i=>"string"==typeof i?Nm(i):[Nm(i[0]),Nm(i[1])])}(n),f=function BR(e,n,t){const i=An(e);mC(i);const o=_i([i[j.ExtraData][0],i[j.ExtraData][1]],n)||[];return _i(o,t)||[]}(n,r,i),p=u.findIndex(m=>{if(Array.isArray(m)){const[v,y]=m,D=s>=v.hours&&a>=v.minutes,w=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Lt.Short:return(r>=0?"+":"")+Ui(s,2,o)+Ui(Math.abs(r%60),2,o);case Lt.ShortGMT:return"GMT"+(r>=0?"+":"")+Ui(s,1,o);case Lt.Long:return"GMT"+(r>=0?"+":"")+Ui(s,2,o)+":"+Ui(Math.abs(r%60),2,o);case Lt.Extended:return 0===i?"Z":(r>=0?"+":"")+Ui(s,2,o)+":"+Ui(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}function _C(e){return Hd(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Em(e,n=!1){return function(t,i){let r;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();r=1+Math.floor((s+o)/7)}else{const o=_C(t),s=function ZR(e){const n=Hd(e,0,1).getDay();return Hd(e,0,1+(n<=4?4:11)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Ui(r,e,mi(i,ee.MinusSign))}}function Gd(e,n=!1){return function(t,i){return Ui(_C(t).getFullYear(),e,mi(i,ee.MinusSign),n)}}const Tm={};function vC(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function yC(e){return e instanceof Date&&!isNaN(e.valueOf())} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1216,14 +1216,14 @@ function wC(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let SC=(()=>{class e{constructor(t,i,r,o){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Zl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ve(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return e.\u0275fac=function(t){return new(t||e)(C(Fd),C(hc),C(Ze),C(pi))},e.\u0275dir=H({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})(); + */let SC=(()=>{class e{constructor(t,i,r,o){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Jl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ve(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return e.\u0275fac=function(t){return new(t||e)(C(Pd),C(hc),C(Je),C(pi))},e.\u0275dir=B({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class pF{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ka=(()=>{class e{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new pF(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),NC(a,r)}});for(let r=0,o=i.length;r{NC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(C(Bi),C(bt),C(Fd))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function NC(e,n){e.context.$implicit=n.item} + */class pP{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Oa=(()=>{class e{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new pP(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),EC(a,r)}});for(let r=0,o=i.length;r{EC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(C(Hi),C(bt),C(Pd))},e.\u0275dir=B({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function EC(e,n){e.context.$implicit=n.item} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1231,7 +1231,7 @@ function wC(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t. * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let ns=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new mF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){TC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){TC("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(C(Bi),C(bt))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class mF{constructor(){this.$implicit=null,this.ngIf=null}}function TC(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ve(n)}'.`)} +let ns=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new mP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){TC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){TC("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(C(Hi),C(bt))},e.\u0275dir=B({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class mP{constructor(){this.$implicit=null,this.ngIf=null}}function TC(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ve(n)}'.`)} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1246,7 +1246,7 @@ let ns=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new mF * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const IF=new q("DATE_PIPE_DEFAULT_TIMEZONE");let IC=(()=>{class e{constructor(t,i){this.locale=t,this.defaultTimezone=i}transform(t,i="mediumDate",r,o){if(null==t||""===t||t!=t)return null;try{return Wx(t,i,o||this.locale,r??this.defaultTimezone??void 0)}catch(s){ +const AP=new q("DATE_PIPE_DEFAULT_TIMEZONE");let AC=(()=>{class e{constructor(t,i){this.locale=t,this.defaultTimezone=i}transform(t,i="mediumDate",r,o){if(null==t||""===t||t!=t)return null;try{return WR(t,i,o||this.locale,r??this.defaultTimezone??void 0)}catch(s){ /** * @license * Copyright Google LLC All Rights Reserved. @@ -1254,14 +1254,14 @@ const IF=new q("DATE_PIPE_DEFAULT_TIMEZONE");let IC=(()=>{class e{constructor(t, * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -throw function Gi(e,n){return new P(2100,!1)} +throw function Gi(e,n){return new F(2100,!1)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */()}}}return e.\u0275fac=function(t){return new(t||e)(C(Pr,16),C(IF,24))},e.\u0275pipe=$t({name:"date",type:e,pure:!0,standalone:!0}),e})(),ei=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})(); + */()}}}return e.\u0275fac=function(t){return new(t||e)(C(Fr,16),C(AP,24))},e.\u0275pipe=$t({name:"date",type:e,pure:!0,standalone:!0}),e})(),ei=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1276,7 +1276,7 @@ throw function Gi(e,n){return new P(2100,!1)} * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const kC="browser"; +const OC="browser"; /** * @license * Copyright Google LLC All Rights Reserved. @@ -1284,7 +1284,7 @@ const kC="browser"; * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let GF=(()=>{class e{}return e.\u0275prov=G({token:e,providedIn:"root",factory:()=>new WF(L(Dt),window)}),e})();class WF{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function KF(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=xC(this.window.history)||xC(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function xC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")} +let GP=(()=>{class e{}return e.\u0275prov=G({token:e,providedIn:"root",factory:()=>new WP(L(Dt),window)}),e})();class WP{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function zP(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=RC(this.window.history)||RC(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function RC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1292,7 +1292,7 @@ let GF=(()=>{class e{}return e.\u0275prov=G({token:e,providedIn:"root",factory:( * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class FC{} +class PC{} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1307,7 +1307,7 @@ class FC{} * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class Bm extends +class Hm extends /** * @license * Copyright Google LLC All Rights Reserved. @@ -1348,21 +1348,21 @@ class Bm extends * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class uP extends class Sx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function wx(e){Pd||(Pd=e)}(new Bm)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function dP(){return vc=vc||document.querySelector("base"),vc?vc.getAttribute("href"):null}();return null==t?null:function fP(e){zd=zd||document.createElement("a"),zd.setAttribute("href",e);const n=zd.pathname;return"/"===n.charAt(0)?n:`/${n}`} +class uF extends class SR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function wR(e){Fd||(Fd=e)}(new Hm)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function dF(){return vc=vc||document.querySelector("base"),vc?vc.getAttribute("href"):null}();return null==t?null:function fF(e){Yd=Yd||document.createElement("a"),Yd.setAttribute("href",e);const n=Yd.pathname;return"/"===n.charAt(0)?n:`/${n}`} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(t)}resetBaseElement(){vc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return wC(document.cookie,n)}}let zd,vc=null;const HC=new q("TRANSITION_ID"),pP=[{provide:Ad,useFactory:function hP(e,n,t){return()=>{t.get(Id).donePromise.then(()=>{const i=lr(),r=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); + */(t)}resetBaseElement(){vc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return wC(document.cookie,n)}}let Yd,vc=null;const BC=new q("TRANSITION_ID"),pF=[{provide:Id,useFactory:function hF(e,n,t){return()=>{t.get(Ad).donePromise.then(()=>{const i=lr(),r=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const Yd=new q("EventManagerPlugins");let qd=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let o=0;o{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let o=0;o{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let Um=(()=>{class e{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Gm(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case ai.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new CP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case ai.ShadowDom:return new wP(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Jd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(L(qd),L(yc),L(uc))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})();class Gm{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(jm[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(zC(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(zC(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=jm[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=jm[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(Un.DashCase|Un.Important)?n.style.setProperty(t,i,r&Un.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&Un.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,WC(i)):this.eventManager.addEventListener(n,t,WC(i))}}function zC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class CP extends Gm{constructor(n,t,i,r){super(n),this.component=i;const o=Jd(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function yP(e){return"_ngcontent-%COMP%".replace($m,e)}(r+"-"+i.id),this.hostAttr=function bP(e){return"_nghost-%COMP%".replace($m,e)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class wP extends Gm{constructor(n,t,i,r){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Jd(r.id,r.styles,[]);for(let s=0;s{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let Um=(()=>{class e{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Gm(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case ai.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new CF(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case ai.ShadowDom:return new wF(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Zd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(L(qd),L(yc),L(uc))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})();class Gm{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(jm[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(YC(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(YC(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=jm[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=jm[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(Un.DashCase|Un.Important)?n.style.setProperty(t,i,r&Un.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&Un.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,WC(i)):this.eventManager.addEventListener(n,t,WC(i))}}function YC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class CF extends Gm{constructor(n,t,i,r){super(n),this.component=i;const o=Zd(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function yF(e){return"_ngcontent-%COMP%".replace($m,e)}(r+"-"+i.id),this.hostAttr=function bF(e){return"_nghost-%COMP%".replace($m,e)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class wF extends Gm{constructor(n,t,i,r){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Zd(r.id,r.styles,[]);for(let s=0;s{class e extends BC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); + */let SF=(()=>{class e extends HC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const YC=["alt","control","meta","shift"],EP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},MP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let NP=(()=>{class e extends BC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),YC.forEach(u=>{const f=i.indexOf(u);f>-1&&(i.splice(f,1),s+=u+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=EP[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),YC.forEach(s=>{s!==r&&(0,MP[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); + */const KC=["alt","control","meta","shift"],MF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},NF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let EF=(()=>{class e extends HC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),KC.forEach(u=>{const f=i.indexOf(u);f>-1&&(i.splice(f,1),s+=u+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=MF[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),KC.forEach(s=>{s!==r&&(0,NF[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const OP=G1(bx,"browser",[{provide:dc,useValue:kC},{provide:x1,useValue:function TP(){Bm.makeCurrent()},multi:!0},{provide:Dt,useFactory:function IP(){return function WN(e){yp=e}(document),document},deps:[]}]),ZC=new q(""),QC=[{provide:Od,useClass: + */const kF=G1(bR,"browser",[{provide:dc,useValue:OC},{provide:R1,useValue:function TF(){Hm.makeCurrent()},multi:!0},{provide:Dt,useFactory:function AF(){return function WE(e){yp=e}(document),document},deps:[]}]),JC=new q(""),QC=[{provide:kd,useClass: /** * @license * Copyright Google LLC All Rights Reserved. @@ -1405,7 +1405,7 @@ class uP extends class Sx{}{constructor(){super(...arguments),this.supportsDOMEv * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class gP{addToWindow(n){We.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},We.getAllAngularTestabilities=()=>n.getAllTestabilities(),We.getAllAngularRootElements=()=>n.getAllRootElements(),We.frameworkStabilizers||(We.frameworkStabilizers=[]),We.frameworkStabilizers.push(i=>{const r=We.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?lr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:B1,useClass:fm,deps:[ze,hm,Od]},{provide:fm,useClass:fm,deps:[ze,hm,Od]}],XC=[{provide:Ip,useValue:"root"},{provide:da,useFactory:function AP(){return new da},deps:[]},{provide:Yd,useClass:SP,multi:!0,deps:[Dt,ze,dc]},{provide:Yd,useClass:NP,multi:!0,deps:[Dt]},{provide:Um,useClass:Um,deps:[qd,yc,uc]},{provide:xp,useExisting:Um},{provide:jC,useExisting:yc},{provide:yc,useClass:yc,deps:[Dt]},{provide:qd,useClass:qd,deps:[Yd,ze]},{provide:FC,useClass:mP,deps:[]},[]];let kP=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:uc,useValue:t.appId},{provide:HC,useExisting:uc},pP]}}}return e.\u0275fac=function(t){return new(t||e)(L(ZC,12))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({providers:[...XC,...QC],imports:[ei,Dx]}),e})(),ew=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:function(t){let i=null;return i=t?new t: +class gF{addToWindow(n){We.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},We.getAllAngularTestabilities=()=>n.getAllTestabilities(),We.getAllAngularRootElements=()=>n.getAllRootElements(),We.frameworkStabilizers||(We.frameworkStabilizers=[]),We.frameworkStabilizers.push(i=>{const r=We.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?lr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:H1,useClass:fm,deps:[Ye,hm,kd]},{provide:fm,useClass:fm,deps:[Ye,hm,kd]}],XC=[{provide:Ap,useValue:"root"},{provide:da,useFactory:function IF(){return new da},deps:[]},{provide:Kd,useClass:SF,multi:!0,deps:[Dt,Ye,dc]},{provide:Kd,useClass:EF,multi:!0,deps:[Dt]},{provide:Um,useClass:Um,deps:[qd,yc,uc]},{provide:Rp,useExisting:Um},{provide:jC,useExisting:yc},{provide:yc,useClass:yc,deps:[Dt]},{provide:qd,useClass:qd,deps:[Kd,Ye]},{provide:PC,useClass:mF,deps:[]},[]];let OF=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:uc,useValue:t.appId},{provide:BC,useExisting:uc},pF]}}}return e.\u0275fac=function(t){return new(t||e)(L(JC,12))},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({providers:[...XC,...QC],imports:[ei,DR]}),e})(),ew=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:function(t){let i=null;return i=t?new t: /** * @license * Copyright Google LLC All Rights Reserved. @@ -1413,7 +1413,7 @@ class gP{addToWindow(n){We.getAngularTestability=(i,r=!0)=>{const o=n.findTestab * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function xP(){return new ew(L(Dt))}(),i},providedIn:"root"}),e})(); +function RF(){return new ew(L(Dt))}(),i},providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1442,7 +1442,7 @@ function xP(){return new ew(L(Dt))}(),i},providedIn:"root"}),e})(); * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Z(...e){return gt(e,en(e))}typeof window<"u"&&window;class zt extends Ue{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const bc=V(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:$P}=Array,{getPrototypeOf:UP,prototype:GP,keys:WP}=Object;function iw(e){if(1===e.length){const n=e[0];if($P(n))return{args:n,keys:null};if(function KP(e){return e&&"object"==typeof e&&UP(e)===GP}(n)){const t=WP(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:zP}=Array;function zm(e){return ne(n=>function YP(e,n){return zP(n)?e(...n):e(n)}(e,n))}function rw(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function Zd(...e){const n=en(e),t=rt(e),{args:i,keys:r}=iw(e);if(0===i.length)return gt([],n);const o=new je(function qP(e,n,t=xn){return i=>{ow(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l{const u=gt(e[l],n);let f=!1;u.subscribe(ke(i,p=>{o[l]=p,f||(f=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>rw(r,s):xn));return t?o.pipe(zm(t)):o}function ow(e,n,t){e?wi(t,e,n):n()}function Dc(...e){return function JP(){return Se(1)}()(gt(e,en(e)))}function sw(e){return new je(n=>{ut(e()).subscribe(n)})}function Ra(e,n){const t=ye(e)?e:()=>e,i=r=>r.error(t());return new je(n?r=>n.schedule(i,0,r):i)}function Ym(){return qe((e,n)=>{let t=null;e._refCount++;const i=ke(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class aw extends je{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,z(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ct;const t=this.getSubject();n.add(this.source.subscribe(ke(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ct.EMPTY)}return n}refCount(){return Ym()(this)}}function vi(e,n){return qe((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(ke(i,l=>{r?.unsubscribe();let u=0;const f=o++;ut(e(l,f)).subscribe(r=ke(i,p=>i.next(n?n(l,p,f,u++):p),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function sn(e){return e<=0?()=>Xt:qe((n,t)=>{let i=0;n.subscribe(ke(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function vn(e,n){return qe((t,i)=>{let r=0;t.subscribe(ke(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Xd(e){return qe((n,t)=>{let i=!1;n.subscribe(ke(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function lw(e=ZP){return qe((n,t)=>{let i=!1;n.subscribe(ke(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function ZP(){return new bc}function mo(e,n){const t=arguments.length>=2;return i=>i.pipe(e?vn((r,o)=>e(r,o,i)):xn,sn(1),t?Xd(n):lw(()=>new bc))}function _o(e,n){return ye(n)?dt(e,n,1):dt(e,1)}function Yt(e,n,t){const i=ye(e)||n||t?{next:e,error:n,complete:t}:e;return i?qe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ke(o,l=>{var u;null===(u=i.next)||void 0===u||u.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var u;a=!1,null===(u=i.error)||void 0===u||u.call(i,l),o.error(l)},()=>{var l,u;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):xn}function $r(e){return qe((n,t)=>{let o,i=null,r=!1;i=n.subscribe(ke(t,void 0,void 0,s=>{o=ut(e(s,$r(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function QP(e,n,t,i,r){return(o,s)=>{let a=t,l=n,u=0;o.subscribe(ke(s,f=>{const p=u++;l=a?e(l,f,p):(a=!0,f),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function cw(e,n){return qe(QP(e,n,arguments.length>=2,!0))}function qm(e){return e<=0?()=>Xt:qe((n,t)=>{let i=[];n.subscribe(ke(t,r=>{i.push(r),e{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function uw(e,n){const t=arguments.length>=2;return i=>i.pipe(e?vn((r,o)=>e(r,o,i)):xn,qm(1),t?Xd(n):lw(()=>new bc))}function Jm(e){return qe((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})} +function J(...e){return gt(e,en(e))}typeof window<"u"&&window;class Yt extends Ue{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const bc=V(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:$F}=Array,{getPrototypeOf:UF,prototype:GF,keys:WF}=Object;function iw(e){if(1===e.length){const n=e[0];if($F(n))return{args:n,keys:null};if(function zF(e){return e&&"object"==typeof e&&UF(e)===GF}(n)){const t=WF(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:YF}=Array;function Ym(e){return ne(n=>function KF(e,n){return YF(n)?e(...n):e(n)}(e,n))}function rw(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function Jd(...e){const n=en(e),t=rt(e),{args:i,keys:r}=iw(e);if(0===i.length)return gt([],n);const o=new je(function qF(e,n,t=Rn){return i=>{ow(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l{const u=gt(e[l],n);let f=!1;u.subscribe(Oe(i,p=>{o[l]=p,f||(f=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>rw(r,s):Rn));return t?o.pipe(Ym(t)):o}function ow(e,n,t){e?wi(t,e,n):n()}function Dc(...e){return function ZF(){return Se(1)}()(gt(e,en(e)))}function sw(e){return new je(n=>{ut(e()).subscribe(n)})}function xa(e,n){const t=ye(e)?e:()=>e,i=r=>r.error(t());return new je(n?r=>n.schedule(i,0,r):i)}function Km(){return qe((e,n)=>{let t=null;e._refCount++;const i=Oe(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class aw extends je{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Y(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ct;const t=this.getSubject();n.add(this.source.subscribe(Oe(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ct.EMPTY)}return n}refCount(){return Km()(this)}}function vi(e,n){return qe((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(Oe(i,l=>{r?.unsubscribe();let u=0;const f=o++;ut(e(l,f)).subscribe(r=Oe(i,p=>i.next(n?n(l,p,f,u++):p),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function sn(e){return e<=0?()=>Xt:qe((n,t)=>{let i=0;n.subscribe(Oe(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function vn(e,n){return qe((t,i)=>{let r=0;t.subscribe(Oe(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Xd(e){return qe((n,t)=>{let i=!1;n.subscribe(Oe(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function lw(e=JF){return qe((n,t)=>{let i=!1;n.subscribe(Oe(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function JF(){return new bc}function mo(e,n){const t=arguments.length>=2;return i=>i.pipe(e?vn((r,o)=>e(r,o,i)):Rn,sn(1),t?Xd(n):lw(()=>new bc))}function _o(e,n){return ye(n)?dt(e,n,1):dt(e,1)}function Kt(e,n,t){const i=ye(e)||n||t?{next:e,error:n,complete:t}:e;return i?qe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Oe(o,l=>{var u;null===(u=i.next)||void 0===u||u.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var u;a=!1,null===(u=i.error)||void 0===u||u.call(i,l),o.error(l)},()=>{var l,u;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):Rn}function $r(e){return qe((n,t)=>{let o,i=null,r=!1;i=n.subscribe(Oe(t,void 0,void 0,s=>{o=ut(e(s,$r(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function QF(e,n,t,i,r){return(o,s)=>{let a=t,l=n,u=0;o.subscribe(Oe(s,f=>{const p=u++;l=a?e(l,f,p):(a=!0,f),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function cw(e,n){return qe(QF(e,n,arguments.length>=2,!0))}function qm(e){return e<=0?()=>Xt:qe((n,t)=>{let i=[];n.subscribe(Oe(t,r=>{i.push(r),e{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function uw(e,n){const t=arguments.length>=2;return i=>i.pipe(e?vn((r,o)=>e(r,o,i)):Rn,qm(1),t?Xd(n):lw(()=>new bc))}function Zm(e){return qe((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})} /** * @license Angular v14.2.9 * (c) 2010-2022 Google LLC. https://angular.io/ @@ -1454,35 +1454,35 @@ function Z(...e){return gt(e,en(e))}typeof window<"u"&&window;class zt extends U * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const pe="primary",Cc=Symbol("RouteTitle");class eL{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function xa(e){return new eL(e)}function tL(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthe.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return e===n}function hw(e){return Array.prototype.concat.apply([],e)}function pw(e){return e.length>0?e[e.length-1]:null}function an(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function vo(e){return xg(e)?e:Xl(e)?gt(Promise.resolve(e)):Z(e)} + */function cr(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let o=0;oi[o]===r)}return e===n}function hw(e){return Array.prototype.concat.apply([],e)}function pw(e){return e.length>0?e[e.length-1]:null}function an(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function vo(e){return Rg(e)?e:Xl(e)?gt(Promise.resolve(e)):J(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const rL={exact:function _w(e,n,t){if(!rs(e.segments,n.segments)||!ef(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!_w(e.children[i],n.children[i],t))return!1;return!0},subset:vw},gw={exact:function oL(e,n){return cr(e,n)},subset:function sL(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>fw(e[t],n[t]))},ignored:()=>!0};function mw(e,n,t){return rL[t.paths](e.root,n.root,t.matrixParams)&&gw[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function vw(e,n,t){return yw(e,n,n.segments,t)}function yw(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!rs(r,t)||n.hasChildren()||!ef(r,t,i))}if(e.segments.length===t.length){if(!rs(e.segments,t)||!ef(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!vw(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(rs(e.segments,r)&&ef(e.segments,r,i)&&e.children[pe])&&yw(e.children[pe],n,o,i)}}function ef(e,n,t){return n.every((i,r)=>gw[t](e[r].parameters,i.parameters))}class is{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xa(this.queryParams)),this._queryParamMap}toString(){return cL.serialize(this)}}class me{constructor(n,t){this.segments=n,this.children=t,this.parent=null,an(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tf(this)}}class wc{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=xa(this.parameters)),this._parameterMap}toString(){return ww(this)}}function rs(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let bw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:function(){return new Qm},providedIn:"root"}),e})();class Qm{parse(n){const t=new vL(n);return new is(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Sc(n.root,!0)}`,i=function fL(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${nf(t)}=${nf(r)}`).join("&"):`${nf(t)}=${nf(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function uL(e){return encodeURI(e)}(n.fragment)}`:""}`}}const cL=new Qm;function tf(e){return e.segments.map(n=>ww(n)).join("/")}function Sc(e,n){if(!e.hasChildren())return tf(e);if(n){const t=e.children[pe]?Sc(e.children[pe],!1):"",i=[];return an(e.children,(r,o)=>{o!==pe&&i.push(`${o}:${Sc(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function lL(e,n){let t=[];return an(e.children,(i,r)=>{r===pe&&(t=t.concat(n(i,r)))}),an(e.children,(i,r)=>{r!==pe&&(t=t.concat(n(i,r)))}),t}(e,(i,r)=>r===pe?[Sc(e.children[pe],!1)]:[`${r}:${Sc(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[pe]?`${tf(e)}/${t[0]}`:`${tf(e)}/(${t.join("//")})`}}function Dw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nf(e){return Dw(e).replace(/%3B/gi,";")}function Xm(e){return Dw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rf(e){return decodeURIComponent(e)}function Cw(e){return rf(e.replace(/\+/g,"%20"))}function ww(e){return`${Xm(e.path)}${function dL(e){return Object.keys(e).map(n=>`;${Xm(n)}=${Xm(e[n])}`).join("")}(e.parameters)}`}const hL=/^[^\/()?;=#]+/;function sf(e){const n=e.match(hL);return n?n[0]:""}const pL=/^[^=?&#]+/,mL=/^[^&#]+/;class vL{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new me([],{}):new me([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[pe]=new me(n,t)),i}parseSegment(){const n=sf(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(n),new wc(rf(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=sf(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=sf(this.remaining);r&&(i=r,this.capture(i))}n[rf(t)]=rf(i)}parseQueryParam(n){const t=function gL(e){const n=e.match(pL);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function _L(e){const n=e.match(mL);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=Cw(t),o=Cw(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=sf(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=pe);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[pe]:new me([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new P(4011,!1)}}function e_(e){return e.segments.length>0?new me([],{[pe]:e}):e}function af(e){const n={};for(const i of Object.keys(e.children)){const o=af(e.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function yL(e){if(1===e.numberOfChildren&&e.children[pe]){const n=e.children[pe];return new me(e.segments.concat(n.segments),n.children)}return e}(new me(e.segments,n))}function os(e){return e instanceof is} + */const rL={exact:function _w(e,n,t){if(!rs(e.segments,n.segments)||!ef(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!_w(e.children[i],n.children[i],t))return!1;return!0},subset:vw},gw={exact:function oL(e,n){return cr(e,n)},subset:function sL(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>fw(e[t],n[t]))},ignored:()=>!0};function mw(e,n,t){return rL[t.paths](e.root,n.root,t.matrixParams)&&gw[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function vw(e,n,t){return yw(e,n,n.segments,t)}function yw(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!rs(r,t)||n.hasChildren()||!ef(r,t,i))}if(e.segments.length===t.length){if(!rs(e.segments,t)||!ef(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!vw(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(rs(e.segments,r)&&ef(e.segments,r,i)&&e.children[pe])&&yw(e.children[pe],n,o,i)}}function ef(e,n,t){return n.every((i,r)=>gw[t](e[r].parameters,i.parameters))}class is{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return cL.serialize(this)}}class me{constructor(n,t){this.segments=n,this.children=t,this.parent=null,an(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tf(this)}}class wc{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return ww(this)}}function rs(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let bw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:function(){return new Qm},providedIn:"root"}),e})();class Qm{parse(n){const t=new vL(n);return new is(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Sc(n.root,!0)}`,i=function fL(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${nf(t)}=${nf(r)}`).join("&"):`${nf(t)}=${nf(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function uL(e){return encodeURI(e)}(n.fragment)}`:""}`}}const cL=new Qm;function tf(e){return e.segments.map(n=>ww(n)).join("/")}function Sc(e,n){if(!e.hasChildren())return tf(e);if(n){const t=e.children[pe]?Sc(e.children[pe],!1):"",i=[];return an(e.children,(r,o)=>{o!==pe&&i.push(`${o}:${Sc(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function lL(e,n){let t=[];return an(e.children,(i,r)=>{r===pe&&(t=t.concat(n(i,r)))}),an(e.children,(i,r)=>{r!==pe&&(t=t.concat(n(i,r)))}),t}(e,(i,r)=>r===pe?[Sc(e.children[pe],!1)]:[`${r}:${Sc(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[pe]?`${tf(e)}/${t[0]}`:`${tf(e)}/(${t.join("//")})`}}function Dw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nf(e){return Dw(e).replace(/%3B/gi,";")}function Xm(e){return Dw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rf(e){return decodeURIComponent(e)}function Cw(e){return rf(e.replace(/\+/g,"%20"))}function ww(e){return`${Xm(e.path)}${function dL(e){return Object.keys(e).map(n=>`;${Xm(n)}=${Xm(e[n])}`).join("")}(e.parameters)}`}const hL=/^[^\/()?;=#]+/;function sf(e){const n=e.match(hL);return n?n[0]:""}const pL=/^[^=?&#]+/,mL=/^[^&#]+/;class vL{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new me([],{}):new me([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[pe]=new me(n,t)),i}parseSegment(){const n=sf(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(n),new wc(rf(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=sf(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=sf(this.remaining);r&&(i=r,this.capture(i))}n[rf(t)]=rf(i)}parseQueryParam(n){const t=function gL(e){const n=e.match(pL);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function _L(e){const n=e.match(mL);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=Cw(t),o=Cw(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=sf(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new F(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=pe);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[pe]:new me([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new F(4011,!1)}}function e_(e){return e.segments.length>0?new me([],{[pe]:e}):e}function af(e){const n={};for(const i of Object.keys(e.children)){const o=af(e.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function yL(e){if(1===e.numberOfChildren&&e.children[pe]){const n=e.children[pe];return new me(e.segments.concat(n.segments),n.children)}return e}(new me(e.segments,n))}function os(e){return e instanceof is} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function CL(e,n,t,i,r){if(0===t.length)return Fa(n.root,n.root,n.root,i,r);const o=function Mw(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Ew(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return an(o.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new Ew(t,n,i)}(t);return o.toRoot()?Fa(n.root,n.root,new me([],{}),i,r):function s(l){const u=function SL(e,n,t,i){if(e.isAbsolute)return new Pa(n.root,!0,0);if(-1===i)return new Pa(t,t===n.root,0);return function Nw(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new Pa(i,!1,r-o)}(t,i+(Ec(e.commands[0])?0:1),e.numberOfDoubleDots)}(o,n,e.snapshot?._urlSegment,l),f=u.processChildren?Nc(u.segmentGroup,u.index,o.commands):n_(u.segmentGroup,u.index,o.commands);return Fa(n.root,u.segmentGroup,f,i,r)}(e.snapshot?._lastPathIndex)}function Ec(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Mc(e){return"object"==typeof e&&null!=e&&e.outlets}function Fa(e,n,t,i,r){let s,o={};i&&an(i,(l,u)=>{o[u]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),s=e===n?t:Sw(e,n,t);const a=e_(af(s));return new is(a,o,r)}function Sw(e,n,t){const i={};return an(e.children,(r,o)=>{i[o]=r===n?t:Sw(r,n,t)}),new me(e.segments,i)}class Ew{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Ec(i[0]))throw new P(4003,!1);const r=i.find(Mc);if(r&&r!==pw(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Pa{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function n_(e,n,t){if(e||(e=new me([],{})),0===e.segments.length&&e.hasChildren())return Nc(e,n,t);const i=function ML(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=e.segments[r],a=t[i];if(Mc(a))break;const l=`${a}`,u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Aw(l,u,s))return o;i+=2}else{if(!Aw(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=n_(e.children[s],n,o))}),an(e.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new me(e.segments,r)}}function i_(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=i_(new me([],{}),0,t))}),n}function Tw(e){const n={};return an(e,(t,i)=>n[i]=`${t}`),n}function Aw(e,n,t){return e==t.path&&cr(n,t.parameters)} + */function CL(e,n,t,i,r){if(0===t.length)return Pa(n.root,n.root,n.root,i,r);const o=function Nw(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Mw(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return an(o.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new Mw(t,n,i)}(t);return o.toRoot()?Pa(n.root,n.root,new me([],{}),i,r):function s(l){const u=function SL(e,n,t,i){if(e.isAbsolute)return new Fa(n.root,!0,0);if(-1===i)return new Fa(t,t===n.root,0);return function Ew(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new F(4005,!1);r=i.segments.length}return new Fa(i,!1,r-o)}(t,i+(Mc(e.commands[0])?0:1),e.numberOfDoubleDots)}(o,n,e.snapshot?._urlSegment,l),f=u.processChildren?Ec(u.segmentGroup,u.index,o.commands):n_(u.segmentGroup,u.index,o.commands);return Pa(n.root,u.segmentGroup,f,i,r)}(e.snapshot?._lastPathIndex)}function Mc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Nc(e){return"object"==typeof e&&null!=e&&e.outlets}function Pa(e,n,t,i,r){let s,o={};i&&an(i,(l,u)=>{o[u]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),s=e===n?t:Sw(e,n,t);const a=e_(af(s));return new is(a,o,r)}function Sw(e,n,t){const i={};return an(e.children,(r,o)=>{i[o]=r===n?t:Sw(r,n,t)}),new me(e.segments,i)}class Mw{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Mc(i[0]))throw new F(4003,!1);const r=i.find(Nc);if(r&&r!==pw(i))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Fa{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function n_(e,n,t){if(e||(e=new me([],{})),0===e.segments.length&&e.hasChildren())return Ec(e,n,t);const i=function NL(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=e.segments[r],a=t[i];if(Nc(a))break;const l=`${a}`,u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Iw(l,u,s))return o;i+=2}else{if(!Iw(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=n_(e.children[s],n,o))}),an(e.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new me(e.segments,r)}}function i_(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=i_(new me([],{}),0,t))}),n}function Tw(e){const n={};return an(e,(t,i)=>n[i]=`${t}`),n}function Iw(e,n,t){return e==t.path&&cr(n,t.parameters)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Ur{constructor(n,t){this.id=n,this.url=t}}class r_ extends Ur{constructor(n,t,i="imperative",r=null){super(n,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ss extends Ur{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class lf extends Ur{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Iw extends Ur{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class TL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IL extends Ur{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class OL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RL{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xL{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class FL{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PL{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LL{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VL{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ow{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}} + */class Ur{constructor(n,t){this.id=n,this.url=t}}class r_ extends Ur{constructor(n,t,i="imperative",r=null){super(n,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ss extends Ur{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class lf extends Ur{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Aw extends Ur{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class TL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AL extends Ur{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class kL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class OL extends Ur{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xL{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class RL{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class PL{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FL{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LL{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VL{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kw{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1490,91 +1490,91 @@ function Z(...e){return gt(e,en(e))}typeof window<"u"&&window;class zt extends U * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class kw{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=o_(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=o_(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=s_(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return s_(n,this._root).map(t=>t.value)}}function o_(e,n){if(e===n.value)return n;for(const t of n.children){const i=o_(e,t);if(i)return i}return null}function s_(e,n){if(e===n.value)return[n];for(const t of n.children){const i=s_(e,t);if(i.length)return i.unshift(n),i}return[]}class Gr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function La(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n +class Ow{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=o_(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=o_(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=s_(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return s_(n,this._root).map(t=>t.value)}}function o_(e,n){if(e===n.value)return n;for(const t of n.children){const i=o_(e,t);if(i)return i}return null}function s_(e,n){if(e===n.value)return[n];for(const t of n.children){const i=s_(e,t);if(i.length)return i.unshift(n),i}return[]}class Gr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function La(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */}class Rw extends kw{constructor(n,t){super(n),this.snapshot=t,a_(this,n)}toString(){return this.snapshot.toString()}}function xw(e,n){const t=function BL(e,n){const s=new cf([],{},{},"",{},pe,n,null,e.root,-1,{});return new Pw("",new Gr(s,[]))}(e,n),i=new zt([new wc("",{})]),r=new zt({}),o=new zt({}),s=new zt({}),a=new zt(""),l=new as(i,r,s,a,o,pe,n,t.root);return l.snapshot=t.root,new Rw(new Gr(l,[]),t)}class as{constructor(n,t,i,r,o,s,a,l){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(ne(u=>u[Cc]))??Z(void 0),this._futureSnapshot=l}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._paramMap=this.params.pipe(ne(n=>xa(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(n=>xa(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Fw(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function jL(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class cf{constructor(n,t,i,r,o,s,a,l,u,f,p,m){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Cc],this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=f,this._correctedLastPathIndex=m??f,this._resolve=p}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._paramMap=xa(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xa(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pw extends kw{constructor(n,t){super(t),this.url=n,a_(this,t)}toString(){return Lw(this._root)}}function a_(e,n){n.value._routerState=e,n.children.forEach(t=>a_(e,t))}function Lw(e){const n=e.children.length>0?` { ${e.children.map(Lw).join(", ")} } `:"";return`${e.value}${n}`}function l_(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,cr(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),cr(n.params,t.params)||e.params.next(t.params),function nL(e,n){if(e.length!==n.length)return!1;for(let t=0;tcr(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||c_(e.parent,n.parent))} + */}class xw extends Ow{constructor(n,t){super(n),this.snapshot=t,a_(this,n)}toString(){return this.snapshot.toString()}}function Rw(e,n){const t=function HL(e,n){const s=new cf([],{},{},"",{},pe,n,null,e.root,-1,{});return new Fw("",new Gr(s,[]))}(e,n),i=new Yt([new wc("",{})]),r=new Yt({}),o=new Yt({}),s=new Yt({}),a=new Yt(""),l=new as(i,r,s,a,o,pe,n,t.root);return l.snapshot=t.root,new xw(new Gr(l,[]),t)}class as{constructor(n,t,i,r,o,s,a,l){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(ne(u=>u[Cc]))??J(void 0),this._futureSnapshot=l}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._paramMap=this.params.pipe(ne(n=>Ra(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(n=>Ra(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pw(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function jL(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class cf{constructor(n,t,i,r,o,s,a,l,u,f,p,m){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Cc],this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=f,this._correctedLastPathIndex=m??f,this._resolve=p}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._paramMap=Ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Fw extends Ow{constructor(n,t){super(t),this.url=n,a_(this,t)}toString(){return Lw(this._root)}}function a_(e,n){n.value._routerState=e,n.children.forEach(t=>a_(e,t))}function Lw(e){const n=e.children.length>0?` { ${e.children.map(Lw).join(", ")} } `:"";return`${e.value}${n}`}function l_(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,cr(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),cr(n.params,t.params)||e.params.next(t.params),function nL(e,n){if(e.length!==n.length)return!1;for(let t=0;tcr(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||c_(e.parent,n.parent))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Tc(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function UL(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Tc(e,i,r);return Tc(e,i)})}(e,n,t);return new Gr(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Tc(e,a)),s}}const i=function GL(e){return new as(new zt(e.url),new zt(e.params),new zt(e.queryParams),new zt(e.fragment),new zt(e.data),e.outlet,e.component,e)} + */function Tc(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function UL(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Tc(e,i,r);return Tc(e,i)})}(e,n,t);return new Gr(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Tc(e,a)),s}}const i=function GL(e){return new as(new Yt(e.url),new Yt(e.params),new Yt(e.queryParams),new Yt(e.fragment),new Yt(e.data),e.outlet,e.component,e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(n.value),r=n.children.map(o=>Tc(e,o));return new Gr(i,r)}}const u_="ngNavigationCancelingError";function Vw(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=os(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Hw(!1,0,n);return r.url=t,r.navigationBehaviorOptions=i,r}function Hw(e,n,t){const i=new Error("NavigationCancelingError: "+(e||""));return i[u_]=!0,i.cancellationCode=n,t&&(i.url=t),i}function Bw(e){return jw(e)&&os(e.url)}function jw(e){return e&&e[u_]} + */(n.value),r=n.children.map(o=>Tc(e,o));return new Gr(i,r)}}const u_="ngNavigationCancelingError";function Vw(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=os(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Bw(!1,0,n);return r.url=t,r.navigationBehaviorOptions=i,r}function Bw(e,n,t){const i=new Error("NavigationCancelingError: "+(e||""));return i[u_]=!0,i.cancellationCode=n,t&&(i.url=t),i}function Hw(e){return jw(e)&&os(e.url)}function jw(e){return e&&e[u_]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class WL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ac,this.attachRef=null}}let Ac=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new WL,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); + */class WL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ic,this.attachRef=null}}let Ic=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new WL,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const uf=!1;let d_=(()=>{class e{constructor(t,i,r,o,s){this.parentContexts=t,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ue,this.deactivateEvents=new ue,this.attachEvents=new ue,this.detachEvents=new ue,this.name=r||pe,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new P(4012,uf);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,uf);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,uf);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new P(4013,uf);this._activatedRoute=t;const r=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new KL(t,a,r.injector);if(i&&function zL(e){return!!e.resolveComponentFactory} + */const uf=!1;let d_=(()=>{class e{constructor(t,i,r,o,s){this.parentContexts=t,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ue,this.deactivateEvents=new ue,this.attachEvents=new ue,this.detachEvents=new ue,this.name=r||pe,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new F(4012,uf);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,uf);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,uf);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new F(4013,uf);this._activatedRoute=t;const r=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new zL(t,a,r.injector);if(i&&function YL(e){return!!e.resolveComponentFactory} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(i)){const u=i.resolveComponentFactory(s);this.activated=r.createComponent(u,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(C(Ac),C(Bi),function Ko(e){return function De(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=et({type:e,selectors:[["ng-component"]],standalone:!0,features:[YD],decls:1,vars:0,template:function(t,i){1&t&&Li(0,"router-outlet")},dependencies:[d_],encapsulation:2}),e})(); + */(i)){const u=i.resolveComponentFactory(s);this.activated=r.createComponent(u,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(C(Ic),C(Hi),function zo(e){return function De(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=et({type:e,selectors:[["ng-component"]],standalone:!0,features:[KD],decls:1,vars:0,template:function(t,i){1&t&&Li(0,"router-outlet")},dependencies:[d_],encapsulation:2}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function $w(e,n){return e.providers&&!e._injector&&(e._injector=bd(e.providers,n,`Route: ${e.path}`)),e._injector??n}function p_(e){const n=e.children&&e.children.map(p_),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==pe&&(t.component=f_),t}function yi(e){return e.outlet||pe}function Uw(e,n){const t=e.filter(i=>yi(i)===n);return t.push(...e.filter(i=>yi(i)!==n)),t}function Ic(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null} + */function $w(e,n){return e.providers&&!e._injector&&(e._injector=bd(e.providers,n,`Route: ${e.path}`)),e._injector??n}function p_(e){const n=e.children&&e.children.map(p_),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==pe&&(t.component=f_),t}function yi(e){return e.outlet||pe}function Uw(e,n){const t=e.filter(i=>yi(i)===n);return t.push(...e.filter(i=>yi(i)!==n)),t}function Ac(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class QL{constructor(n,t,i,r){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),l_(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=La(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),an(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=La(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=La(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const r=La(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new VL(o.value.snapshot))}),n.children.length&&this.forwardEvent(new PL(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(l_(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),l_(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ic(r.snapshot),l=a?.get(Gl)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}} + */class QL{constructor(n,t,i,r){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),l_(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=La(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),an(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=La(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=La(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const r=La(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new VL(o.value.snapshot))}),n.children.length&&this.forwardEvent(new FL(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(l_(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),l_(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ac(r.snapshot),l=a?.get(Gl)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Gw{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class df{constructor(n,t){this.component=n,this.route=t}}function XL(e,n,t){const i=e._root;return Oc(i,n?n._root:null,t,[i.value])}function Va(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function bh(e){return null!==Vs(e)}(e)?n.get(e):e:i}function Oc(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=La(n);return e.children.forEach(s=>{(function t2(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function n2(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!rs(e.url,n.url);case"pathParamsOrQueryParamsChange":return!rs(e.url,n.url)||!cr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!c_(e,n)||!cr(e.queryParams,n.queryParams);default:return!c_(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Gw(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Oc(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new df(a.outlet.component,s))}else s&&kc(n,a,r),r.canActivateChecks.push(new Gw(i)),Oc(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),an(o,(s,a)=>kc(s,t.getContext(a),r)),r}function kc(e,n,t){const i=La(e),r=e.value;an(i,(o,s)=>{kc(o,r.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new df(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))} + */class Gw{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class df{constructor(n,t){this.component=n,this.route=t}}function XL(e,n,t){const i=e._root;return kc(i,n?n._root:null,t,[i.value])}function Va(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function bh(e){return null!==Vs(e)}(e)?n.get(e):e:i}function kc(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=La(n);return e.children.forEach(s=>{(function t2(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function n2(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!rs(e.url,n.url);case"pathParamsOrQueryParamsChange":return!rs(e.url,n.url)||!cr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!c_(e,n)||!cr(e.queryParams,n.queryParams);default:return!c_(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Gw(i)):(o.data=s.data,o._resolvedData=s._resolvedData),kc(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new df(a.outlet.component,s))}else s&&Oc(n,a,r),r.canActivateChecks.push(new Gw(i)),kc(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),an(o,(s,a)=>Oc(s,t.getContext(a),r)),r}function Oc(e,n,t){const i=La(e),r=e.value;an(i,(o,s)=>{Oc(o,r.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new df(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Rc(e){return"function"==typeof e}function g_(e){return e instanceof bc||"EmptyError"===e?.name} + */function xc(e){return"function"==typeof e}function g_(e){return e instanceof bc||"EmptyError"===e?.name} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const ff=Symbol("INITIAL_VALUE");function Ha(){return vi(e=>Zd(e.map(n=>n.pipe(sn(1),function Qd(...e){const n=en(e);return qe((t,i)=>{(n?Dc(e,t,n):Dc(e,t)).subscribe(i)})}(ff)))).pipe(ne(n=>{for(const t of n)if(!0!==t){if(t===ff)return ff;if(!1===t||t instanceof is)return t}return!0}),vn(n=>n!==ff),sn(1)))} + */const ff=Symbol("INITIAL_VALUE");function Ba(){return vi(e=>Jd(e.map(n=>n.pipe(sn(1),function Qd(...e){const n=en(e);return qe((t,i)=>{(n?Dc(e,t,n):Dc(e,t)).subscribe(i)})}(ff)))).pipe(ne(n=>{for(const t of n)if(!0!==t){if(t===ff)return ff;if(!1===t||t instanceof is)return t}return!0}),vn(n=>n!==ff),sn(1)))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Ww(e){return function Xa(...e){return Cs(e)}(Yt(n=>{if(os(n))throw Vw(0,n)}),ne(n=>!0===n))} + */function Ww(e){return function Xa(...e){return Cs(e)}(Kt(n=>{if(os(n))throw Vw(0,n)}),ne(n=>!0===n))} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1582,21 +1582,21 @@ class kw{constructor(n){this._root=n}get root(){return this._root.value}parent(n * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const m_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Kw(e,n,t,i,r){const o=__(e,n,t);return o.matched?function b2(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?Z(r.map(s=>{const a=Va(s,e);return vo(function c2(e){return e&&Rc(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Ha(),Ww()):Z(!0)}(i=$w(n,i),n,t).pipe(ne(s=>!0===s?o:{...m_})):Z(o)}function __(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...m_}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||tL)(t,e,n);if(!r)return{...m_};const o={};an(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function hf(e,n,t,i,r="corrected"){if(t.length>0&&function w2(e,n,t){return t.some(i=>pf(e,n,i)&&yi(i)!==pe)}(e,t,i)){const s=new me(n,function C2(e,n,t,i){const r={};r[pe]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const o of t)if(""===o.path&&yi(o)!==pe){const s=new me([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,r[yi(o)]=s}return r}(e,n,i,new me(t,e.children)));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function S2(e,n,t){return t.some(i=>pf(e,n,i))}(e,t,i)){const s=new me(e.segments,function D2(e,n,t,i,r,o){const s={};for(const a of i)if(pf(e,t,a)&&!r[yi(a)]){const l=new me([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:n.length,s[yi(a)]=l}return{...r,...s}}(e,n,t,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:t}}const o=new me(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}function pf(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function zw(e,n,t,i){return!!(yi(e)===i||i!==pe&&pf(n,t,e))&&("**"===e.path||__(n,e,t).matched)}function Yw(e,n,t){return 0===n.length&&!e.children[t]} +const m_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zw(e,n,t,i,r){const o=__(e,n,t);return o.matched?function b2(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?J(r.map(s=>{const a=Va(s,e);return vo(function c2(e){return e&&xc(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Ba(),Ww()):J(!0)}(i=$w(n,i),n,t).pipe(ne(s=>!0===s?o:{...m_})):J(o)}function __(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...m_}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||tL)(t,e,n);if(!r)return{...m_};const o={};an(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function hf(e,n,t,i,r="corrected"){if(t.length>0&&function w2(e,n,t){return t.some(i=>pf(e,n,i)&&yi(i)!==pe)}(e,t,i)){const s=new me(n,function C2(e,n,t,i){const r={};r[pe]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const o of t)if(""===o.path&&yi(o)!==pe){const s=new me([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,r[yi(o)]=s}return r}(e,n,i,new me(t,e.children)));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function S2(e,n,t){return t.some(i=>pf(e,n,i))}(e,t,i)){const s=new me(e.segments,function D2(e,n,t,i,r,o){const s={};for(const a of i)if(pf(e,t,a)&&!r[yi(a)]){const l=new me([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:n.length,s[yi(a)]=l}return{...r,...s}}(e,n,t,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:t}}const o=new me(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}function pf(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function Yw(e,n,t,i){return!!(yi(e)===i||i!==pe&&pf(n,t,e))&&("**"===e.path||__(n,e,t).matched)}function Kw(e,n,t){return 0===n.length&&!e.children[t]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const gf=!1;class mf{constructor(n){this.segmentGroup=n||null}}class qw{constructor(n){this.urlTree=n}}function xc(e){return Ra(new mf(e))}function Jw(e){return Ra(new qw(e))}class T2{constructor(n,t,i,r,o){this.injector=n,this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=hf(this.urlTree.root,[],[],this.config).segmentGroup,t=new me(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,pe).pipe(ne(o=>this.createUrlTree(af(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe($r(o=>{if(o instanceof qw)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof mf?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,pe).pipe(ne(r=>this.createUrlTree(af(r),n.queryParams,n.fragment))).pipe($r(r=>{throw r instanceof mf?this.noMatchError(r):r}))}noMatchError(n){return new P(4002,gf)}createUrlTree(n,t,i){const r=e_(n);return new is(r,t,i)}expandSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(ne(o=>new me([],o))):this.expandSegment(n,i,t,i.segments,r,!0)}expandChildren(n,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return gt(r).pipe(_o(o=>{const s=i.children[o],a=Uw(t,o);return this.expandSegmentGroup(n,a,s,o).pipe(ne(l=>({segment:l,outlet:o})))}),cw((o,s)=>(o[s.outlet]=s.segment,o),{}),uw())}expandSegment(n,t,i,r,o,s){return gt(i).pipe(_o(a=>this.expandSegmentAgainstRoute(n,t,i,a,r,o,s).pipe($r(u=>{if(u instanceof mf)return Z(null);throw u}))),mo(a=>!!a),$r((a,l)=>{if(g_(a))return Yw(t,r,o)?Z(new me([],{})):xc(t);throw a}))}expandSegmentAgainstRoute(n,t,i,r,o,s,a){return zw(r,t,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,t,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s):xc(t):xc(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Jw(o):this.lineralizeSegments(i,o).pipe(dt(s=>{const a=new me(s,{});return this.expandSegment(n,a,t,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:f}=__(t,r,o);if(!a)return xc(t);const p=this.applyRedirectCommands(l,r.redirectTo,f);return r.redirectTo.startsWith("/")?Jw(p):this.lineralizeSegments(r,p).pipe(dt(m=>this.expandSegment(n,t,i,m.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,i,r,o){return"**"===i.path?(n=$w(i,n),i.loadChildren?(i._loadedRoutes?Z({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(ne(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new me(r,{})))):Z(new me(r,{}))):Kw(t,i,r,n).pipe(vi(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(dt(f=>{const p=f.injector??n,m=f.routes,{segmentGroup:v,slicedSegments:y}=hf(t,a,l,m),D=new me(v.segments,v.children);if(0===y.length&&D.hasChildren())return this.expandChildren(p,m,D).pipe(ne(S=>new me(a,S)));if(0===m.length&&0===y.length)return Z(new me(a,{}));const w=yi(i)===o;return this.expandSegment(p,D,m,y,w?pe:o,!0).pipe(ne(I=>new me(a.concat(I.segments),I.children)))})):xc(t)))}getChildConfig(n,t,i){return t.children?Z({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?Z({routes:t._loadedRoutes,injector:t._loadedInjector}):function y2(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?Z(!0):Z(r.map(s=>{const a=Va(s,e);return vo(function o2(e){return e&&Rc(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Ha(),Ww())}(n,t,i).pipe(dt(r=>r?this.configLoader.loadChildren(n,t).pipe(Yt(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function M2(e){return Ra(Hw(gf,3))}())):Z({routes:[],injector:n})}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Z(i);if(r.numberOfChildren>1||!r.children[pe])return Ra(new P(4e3,gf));r=r.children[pe]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new is(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return an(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=t[a]}else i[o]=r}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return an(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new me(o,s)}createSegments(n,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new P(4001,gf);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}} + */const gf=!1;class mf{constructor(n){this.segmentGroup=n||null}}class qw{constructor(n){this.urlTree=n}}function Rc(e){return xa(new mf(e))}function Zw(e){return xa(new qw(e))}class T2{constructor(n,t,i,r,o){this.injector=n,this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=hf(this.urlTree.root,[],[],this.config).segmentGroup,t=new me(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,pe).pipe(ne(o=>this.createUrlTree(af(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe($r(o=>{if(o instanceof qw)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof mf?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,pe).pipe(ne(r=>this.createUrlTree(af(r),n.queryParams,n.fragment))).pipe($r(r=>{throw r instanceof mf?this.noMatchError(r):r}))}noMatchError(n){return new F(4002,gf)}createUrlTree(n,t,i){const r=e_(n);return new is(r,t,i)}expandSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(ne(o=>new me([],o))):this.expandSegment(n,i,t,i.segments,r,!0)}expandChildren(n,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return gt(r).pipe(_o(o=>{const s=i.children[o],a=Uw(t,o);return this.expandSegmentGroup(n,a,s,o).pipe(ne(l=>({segment:l,outlet:o})))}),cw((o,s)=>(o[s.outlet]=s.segment,o),{}),uw())}expandSegment(n,t,i,r,o,s){return gt(i).pipe(_o(a=>this.expandSegmentAgainstRoute(n,t,i,a,r,o,s).pipe($r(u=>{if(u instanceof mf)return J(null);throw u}))),mo(a=>!!a),$r((a,l)=>{if(g_(a))return Kw(t,r,o)?J(new me([],{})):Rc(t);throw a}))}expandSegmentAgainstRoute(n,t,i,r,o,s,a){return Yw(r,t,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,t,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s):Rc(t):Rc(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Zw(o):this.lineralizeSegments(i,o).pipe(dt(s=>{const a=new me(s,{});return this.expandSegment(n,a,t,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:f}=__(t,r,o);if(!a)return Rc(t);const p=this.applyRedirectCommands(l,r.redirectTo,f);return r.redirectTo.startsWith("/")?Zw(p):this.lineralizeSegments(r,p).pipe(dt(m=>this.expandSegment(n,t,i,m.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,i,r,o){return"**"===i.path?(n=$w(i,n),i.loadChildren?(i._loadedRoutes?J({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(ne(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new me(r,{})))):J(new me(r,{}))):zw(t,i,r,n).pipe(vi(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(dt(f=>{const p=f.injector??n,m=f.routes,{segmentGroup:v,slicedSegments:y}=hf(t,a,l,m),D=new me(v.segments,v.children);if(0===y.length&&D.hasChildren())return this.expandChildren(p,m,D).pipe(ne(S=>new me(a,S)));if(0===m.length&&0===y.length)return J(new me(a,{}));const w=yi(i)===o;return this.expandSegment(p,D,m,y,w?pe:o,!0).pipe(ne(A=>new me(a.concat(A.segments),A.children)))})):Rc(t)))}getChildConfig(n,t,i){return t.children?J({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?J({routes:t._loadedRoutes,injector:t._loadedInjector}):function y2(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?J(!0):J(r.map(s=>{const a=Va(s,e);return vo(function o2(e){return e&&xc(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Ba(),Ww())}(n,t,i).pipe(dt(r=>r?this.configLoader.loadChildren(n,t).pipe(Kt(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function N2(e){return xa(Bw(gf,3))}())):J({routes:[],injector:n})}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return J(i);if(r.numberOfChildren>1||!r.children[pe])return xa(new F(4e3,gf));r=r.children[pe]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new is(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return an(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=t[a]}else i[o]=r}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return an(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new me(o,s)}createSegments(n,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new F(4001,gf);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class I2{}class R2{constructor(n,t,i,r,o,s,a,l){this.injector=n,this.rootComponentType=t,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=hf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,pe).pipe(ne(t=>{if(null===t)return null;const i=new cf([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},pe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Gr(i,t),o=new Pw(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const t=n.value,i=Fw(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i):this.processSegment(n,t,i,i.segments,r)}processChildren(n,t,i){return gt(Object.keys(i.children)).pipe(_o(r=>{const o=i.children[r],s=Uw(t,r);return this.processSegmentGroup(n,s,o,r)}),cw((r,o)=>r&&o?(r.push(...o),r):null),function XP(e,n=!1){return qe((t,i)=>{let r=0;t.subscribe(ke(i,o=>{const s=e(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),Xd(null),uw(),ne(r=>{if(null===r)return null;const o=Zw(r);return function x2(e){e.sort((n,t)=>n.value.outlet===pe?-1:t.value.outlet===pe?1:n.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(n,t,i,r,o){return gt(t).pipe(_o(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),mo(s=>!!s),$r(s=>{if(g_(s))return Yw(i,r,o)?Z([]):Z(null);throw s}))}processSegmentAgainstRoute(n,t,i,r,o){if(t.redirectTo||!zw(t,i,r,o))return Z(null);let s;if("**"===t.path){const a=r.length>0?pw(r).parameters:{},l=Xw(i)+r.length;s=Z({snapshot:new cf(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tS(t),yi(t),t.component??t._loadedComponent??null,t,Qw(i),l,nS(t),l),consumedSegments:[],remainingSegments:[]})}else s=Kw(i,t,r,n).pipe(ne(({matched:a,consumedSegments:l,remainingSegments:u,parameters:f})=>{if(!a)return null;const p=Xw(i)+l.length;return{snapshot:new cf(l,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tS(t),yi(t),t.component??t._loadedComponent??null,t,Qw(i),p,nS(t),p),consumedSegments:l,remainingSegments:u}}));return s.pipe(vi(a=>{if(null===a)return Z(null);const{snapshot:l,consumedSegments:u,remainingSegments:f}=a;n=t._injector??n;const p=t._loadedInjector??n,m=function F2(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:v,slicedSegments:y}=hf(i,u,f,m.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===y.length&&v.hasChildren())return this.processChildren(p,m,v).pipe(ne(w=>null===w?null:[new Gr(l,w)]));if(0===m.length&&0===y.length)return Z([new Gr(l,[])]);const D=yi(t)===o;return this.processSegment(p,m,v,y,D?pe:o).pipe(ne(w=>null===w?null:[new Gr(l,w)]))}))}}function P2(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Zw(e){const n=[],t=new Set;for(const i of e){if(!P2(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=Zw(i.children);n.push(new Gr(i.value,r))}return n.filter(i=>!t.has(i))}function Qw(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Xw(e){let n=e,t=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift??0;return t-1}function tS(e){return e.data||{}}function nS(e){return e.resolve||{}} + */class A2{}class x2{constructor(n,t,i,r,o,s,a,l){this.injector=n,this.rootComponentType=t,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=hf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,pe).pipe(ne(t=>{if(null===t)return null;const i=new cf([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},pe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Gr(i,t),o=new Fw(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const t=n.value,i=Pw(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i):this.processSegment(n,t,i,i.segments,r)}processChildren(n,t,i){return gt(Object.keys(i.children)).pipe(_o(r=>{const o=i.children[r],s=Uw(t,r);return this.processSegmentGroup(n,s,o,r)}),cw((r,o)=>r&&o?(r.push(...o),r):null),function XF(e,n=!1){return qe((t,i)=>{let r=0;t.subscribe(Oe(i,o=>{const s=e(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),Xd(null),uw(),ne(r=>{if(null===r)return null;const o=Jw(r);return function R2(e){e.sort((n,t)=>n.value.outlet===pe?-1:t.value.outlet===pe?1:n.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(n,t,i,r,o){return gt(t).pipe(_o(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),mo(s=>!!s),$r(s=>{if(g_(s))return Kw(i,r,o)?J([]):J(null);throw s}))}processSegmentAgainstRoute(n,t,i,r,o){if(t.redirectTo||!Yw(t,i,r,o))return J(null);let s;if("**"===t.path){const a=r.length>0?pw(r).parameters:{},l=Xw(i)+r.length;s=J({snapshot:new cf(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tS(t),yi(t),t.component??t._loadedComponent??null,t,Qw(i),l,nS(t),l),consumedSegments:[],remainingSegments:[]})}else s=zw(i,t,r,n).pipe(ne(({matched:a,consumedSegments:l,remainingSegments:u,parameters:f})=>{if(!a)return null;const p=Xw(i)+l.length;return{snapshot:new cf(l,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tS(t),yi(t),t.component??t._loadedComponent??null,t,Qw(i),p,nS(t),p),consumedSegments:l,remainingSegments:u}}));return s.pipe(vi(a=>{if(null===a)return J(null);const{snapshot:l,consumedSegments:u,remainingSegments:f}=a;n=t._injector??n;const p=t._loadedInjector??n,m=function P2(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:v,slicedSegments:y}=hf(i,u,f,m.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===y.length&&v.hasChildren())return this.processChildren(p,m,v).pipe(ne(w=>null===w?null:[new Gr(l,w)]));if(0===m.length&&0===y.length)return J([new Gr(l,[])]);const D=yi(t)===o;return this.processSegment(p,m,v,y,D?pe:o).pipe(ne(w=>null===w?null:[new Gr(l,w)]))}))}}function F2(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Jw(e){const n=[],t=new Set;for(const i of e){if(!F2(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=Jw(i.children);n.push(new Gr(i.value,r))}return n.filter(i=>!t.has(i))}function Qw(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Xw(e){let n=e,t=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift??0;return t-1}function tS(e){return e.data||{}}function nS(e){return e.resolve||{}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1611,14 +1611,14 @@ const m_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},posi * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function H2(e,n){return dt(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return Z(t);let o=0;return gt(r).pipe(_o(s=>function B2(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!iS(r)&&(o[Cc]=r.title),function j2(e,n,t,i){const r=function $2(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return Z({});const o={};return gt(r).pipe(dt(s=>function U2(e,n,t,i){const r=Ic(n)??i,o=Va(e,r);return vo(o.resolve?o.resolve(n,t):r.runInContext(()=>o(n,t)))}(e[s],n,t,i).pipe(mo(),Yt(a=>{o[s]=a}))),qm(1),function dw(e){return ne(()=>e)}(o),$r(s=>g_(s)?Xt:Ra(s)))}(o,e,n,i).pipe(ne(s=>(e._resolvedData=s,e.data=Fw(e,t).resolve,r&&iS(r)&&(e.data[Cc]=r.title),null)))}(s.route,i,e,n)),Yt(()=>o++),qm(1),dt(s=>o===r.length?Z(t):Xt))})}function iS(e){return"string"==typeof e.title||null===e.title} +function B2(e,n){return dt(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return J(t);let o=0;return gt(r).pipe(_o(s=>function H2(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!iS(r)&&(o[Cc]=r.title),function j2(e,n,t,i){const r=function $2(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return J({});const o={};return gt(r).pipe(dt(s=>function U2(e,n,t,i){const r=Ac(n)??i,o=Va(e,r);return vo(o.resolve?o.resolve(n,t):r.runInContext(()=>o(n,t)))}(e[s],n,t,i).pipe(mo(),Kt(a=>{o[s]=a}))),qm(1),function dw(e){return ne(()=>e)}(o),$r(s=>g_(s)?Xt:xa(s)))}(o,e,n,i).pipe(ne(s=>(e._resolvedData=s,e.data=Pw(e,t).resolve,r&&iS(r)&&(e.data[Cc]=r.title),null)))}(s.route,i,e,n)),Kt(()=>o++),qm(1),dt(s=>o===r.length?J(t):Xt))})}function iS(e){return"string"==typeof e.title||null===e.title} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function v_(e){return vi(n=>{const t=e(n);return t?gt(t).pipe(ne(()=>n)):Z(n)})} + */function v_(e){return vi(n=>{const t=e(n);return t?gt(t).pipe(ne(()=>n)):J(n)})} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1640,7 +1640,7 @@ function H2(e,n){return dt(t=>{const{targetSnapshot:i,guards:{canActivateChecks: * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class G2{}class K2 extends class W2{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{} +class G2{}class z2 extends class W2{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1654,28 +1654,28 @@ class G2{}class K2 extends class W2{shouldDetach(n){return!1}store(n,t){}shouldA * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let b_=(()=>{class e{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Z(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=vo(t.loadComponent()).pipe(Yt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Jm(()=>{this.componentLoaders.delete(t)})),r=new aw(i,()=>new Ue).pipe(Ym());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Z({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,u,f=!1;Array.isArray(a)?u=a:(l=a.create(t).injector,u=hw(l.get(y_,[],X.Self|X.Optional)));return{routes:u.map(p_),injector:l}}),Jm(()=>{this.childrenLoaders.delete(i)})),s=new aw(o,()=>new Ue).pipe(Ym());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return vo(t()).pipe(dt(i=>i instanceof KD||Array.isArray(i)?Z(i):gt(this.compiler.compileModuleAsync(i))))}}return e.\u0275fac=function(t){return new(t||e)(L(gn),L(lm))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); + */let b_=(()=>{class e{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return J(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=vo(t.loadComponent()).pipe(Kt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Zm(()=>{this.componentLoaders.delete(t)})),r=new aw(i,()=>new Ue).pipe(Km());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return J({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,u,f=!1;Array.isArray(a)?u=a:(l=a.create(t).injector,u=hw(l.get(y_,[],X.Self|X.Optional)));return{routes:u.map(p_),injector:l}}),Zm(()=>{this.childrenLoaders.delete(i)})),s=new aw(o,()=>new Ue).pipe(Km());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return vo(t()).pipe(dt(i=>i instanceof zD||Array.isArray(i)?J(i):gt(this.compiler.compileModuleAsync(i))))}}return e.\u0275fac=function(t){return new(t||e)(L(gn),L(lm))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Y2{}class q2{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}} + */class K2{}class q2{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function J2(e){throw e}function Z2(e,n,t){return n.parse("/")}const Q2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},X2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function aS(){const e=St(bw),n=St(Ac),t=St(Sm),i=St(gn),r=St(lm),o=St(y_,{optional:!0})??[],s=St(vf,{optional:!0})??{},a=St(oS),l=St(rS,{optional:!0}),u=St(Y2,{optional:!0}),f=St(G2,{optional:!0}),p=new ln(null,e,n,t,i,r,hw(o));return u&&(p.urlHandlingStrategy=u),f&&(p.routeReuseStrategy=f),p.titleStrategy=l??a,function eV(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(s,p),p}let ln=(()=>{class e{constructor(t,i,r,o,s,a,l){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ue,this.errorHandler=J2,this.malformedUriErrorHandler=Z2,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Z(void 0),this.urlHandlingStrategy=new q2,this.routeReuseStrategy=new K2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(b_),this.configLoader.onLoadEndListener=m=>this.triggerEvent(new xL(m)),this.configLoader.onLoadStartListener=m=>this.triggerEvent(new RL(m)),this.ngModule=s.get(Xo),this.console=s.get(BR);const p=s.get(ze);this.isNgZoneEnabled=p instanceof ze&&ze.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function iL(){return new is(new me([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=xw(this.currentUrlTree,this.rootComponentType),this.transitions=new zt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(vn(r=>0!==r.id),ne(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),vi(r=>{let o=!1,s=!1;return Z(r).pipe(Yt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),vi(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return lS(a.source)&&(this.browserUrlTree=a.extractedUrl),Z(a).pipe(vi(p=>{const m=this.transitions.getValue();return i.next(new r_(p.id,this.serializeUrl(p.extractedUrl),p.source,p.restoredState)),m!==this.transitions.getValue()?Xt:Promise.resolve(p)}),function A2(e,n,t,i){return vi(r=>function N2(e,n,t,i,r){return new T2(e,n,t,i,r).apply()}(e,n,t,r.extractedUrl,i).pipe(ne(o=>({...r,urlAfterRedirects:o}))))} + */function Z2(e){throw e}function J2(e,n,t){return n.parse("/")}const Q2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},X2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function aS(){const e=St(bw),n=St(Ic),t=St(Sm),i=St(gn),r=St(lm),o=St(y_,{optional:!0})??[],s=St(vf,{optional:!0})??{},a=St(oS),l=St(rS,{optional:!0}),u=St(K2,{optional:!0}),f=St(G2,{optional:!0}),p=new ln(null,e,n,t,i,r,hw(o));return u&&(p.urlHandlingStrategy=u),f&&(p.routeReuseStrategy=f),p.titleStrategy=l??a,function eV(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(s,p),p}let ln=(()=>{class e{constructor(t,i,r,o,s,a,l){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ue,this.errorHandler=Z2,this.malformedUriErrorHandler=J2,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>J(void 0),this.urlHandlingStrategy=new q2,this.routeReuseStrategy=new z2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(b_),this.configLoader.onLoadEndListener=m=>this.triggerEvent(new RL(m)),this.configLoader.onLoadStartListener=m=>this.triggerEvent(new xL(m)),this.ngModule=s.get(Xo),this.console=s.get(Hx);const p=s.get(Ye);this.isNgZoneEnabled=p instanceof Ye&&Ye.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function iL(){return new is(new me([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Rw(this.currentUrlTree,this.rootComponentType),this.transitions=new Yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(vn(r=>0!==r.id),ne(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),vi(r=>{let o=!1,s=!1;return J(r).pipe(Kt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),vi(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return lS(a.source)&&(this.browserUrlTree=a.extractedUrl),J(a).pipe(vi(p=>{const m=this.transitions.getValue();return i.next(new r_(p.id,this.serializeUrl(p.extractedUrl),p.source,p.restoredState)),m!==this.transitions.getValue()?Xt:Promise.resolve(p)}),function I2(e,n,t,i){return vi(r=>function E2(e,n,t,i,r){return new T2(e,n,t,i,r).apply()}(e,n,t,r.extractedUrl,i).pipe(ne(o=>({...r,urlAfterRedirects:o}))))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yt(p=>{this.currentNavigation={...this.currentNavigation,finalUrl:p.urlAfterRedirects},r.urlAfterRedirects=p.urlAfterRedirects}),function V2(e,n,t,i,r,o){return dt(s=>function k2(e,n,t,i,r,o,s="emptyOnly",a="legacy"){return new R2(e,n,t,i,r,s,a,o).recognize().pipe(vi(l=>null===l?function O2(e){return new je(n=>n.error(e))}(new I2):Z(l)))}(e,n,t,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(ne(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yt(p=>{if(r.targetSnapshot=p.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!p.extras.skipLocationChange){const v=this.urlHandlingStrategy.merge(p.urlAfterRedirects,p.rawUrl);this.setBrowserUrl(v,p)}this.browserUrlTree=p.urlAfterRedirects}const m=new TL(p.id,this.serializeUrl(p.extractedUrl),this.serializeUrl(p.urlAfterRedirects),p.targetSnapshot);i.next(m)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:m,extractedUrl:v,source:y,restoredState:D,extras:w}=a,M=new r_(m,this.serializeUrl(v),y,D);i.next(M);const I=xw(v,this.rootComponentType).snapshot;return Z(r={...a,targetSnapshot:I,urlAfterRedirects:v,extras:{...w,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Xt}),Yt(a=>{const l=new AL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ne(a=>r={...a,guards:XL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function d2(e,n){return dt(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?Z({...t,guardsResult:!0}):function f2(e,n,t,i){return gt(e).pipe(dt(r=>function v2(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Z(o.map(a=>{const l=Ic(n)??r,u=Va(a,l);return vo(function l2(e){return e&&Rc(e.canDeactivate)}(u)?u.canDeactivate(e,n,t,i):l.runInContext(()=>u(e,n,t,i))).pipe(mo())})).pipe(Ha()):Z(!0)}(r.component,r.route,t,n,i)),mo(r=>!0!==r,!0))}(s,i,r,e).pipe(dt(a=>a&&function r2(e){return"boolean"==typeof e}(a)?function h2(e,n,t,i){return gt(n).pipe(_o(r=>Dc(function g2(e,n){return null!==e&&n&&n(new FL(e)),Z(!0)}(r.route.parent,i),function p2(e,n){return null!==e&&n&&n(new LL(e)),Z(!0)}(r.route,i),function _2(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function e2(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>sw(()=>Z(s.guards.map(l=>{const u=Ic(s.node)??t,f=Va(l,u);return vo(function a2(e){return e&&Rc(e.canActivateChild)}(f)?f.canActivateChild(i,e):u.runInContext(()=>f(i,e))).pipe(mo())})).pipe(Ha())));return Z(o).pipe(Ha())}(e,r.path,t),function m2(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Z(!0);const r=i.map(o=>sw(()=>{const s=Ic(n)??t,a=Va(o,s);return vo(function s2(e){return e&&Rc(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(mo())}));return Z(r).pipe(Ha())}(e,r.route,t))),mo(r=>!0!==r,!0))}(i,o,e,n):Z(a)),ne(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yt(a=>{if(r.guardsResult=a.guardsResult,os(a.guardsResult))throw Vw(0,a.guardsResult);const l=new IL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),vn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),v_(a=>{if(a.guards.canActivateChecks.length)return Z(a).pipe(Yt(l=>{const u=new OL(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),vi(l=>{let u=!1;return Z(l).pipe(H2(this.paramsInheritanceStrategy,this.ngModule.injector),Yt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yt(l=>{const u=new kL(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),v_(a=>{const l=u=>{const f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(Yt(p=>{u.component=p}),ne(()=>{})));for(const p of u.children)f.push(...l(p));return f};return Zd(l(a.targetSnapshot.root)).pipe(Xd(),sn(1))}),v_(()=>this.afterPreactivation()),ne(a=>{const l=function $L(e,n,t){const i=Tc(e,n._root,t?t._root:void 0);return new Rw(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Yt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,n,t)=>ne(i=>(new QL(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yt({next(){o=!0},complete(){o=!0}}),Jm(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),$r(a=>{if(s=!0,jw(a)){Bw(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new lf(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),Bw(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lS(r.source)};this.scheduleNavigation(u,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new Iw(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(u){r.reject(u)}}return Xt}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=t.state?.navigationId?t.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(p_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,u=r||this.routerState.root,f=l?this.currentUrlTree.fragment:s;let p=null;switch(a){case"merge":p={...this.currentUrlTree.queryParams,...o};break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}return null!==p&&(p=this.removeEmptyProps(p)),CL(u,this.currentUrlTree,t,p,f??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=os(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function tV(e){for(let n=0;n{const o=t[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ss(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((m,v)=>{a=m,l=v});const f=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),p=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):p=0,this.setTransition({id:f,targetPageId:p,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i,r){const o=new lf(t.id,this.serializeUrl(t.extractedUrl),i,r);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){sg()},e.\u0275prov=G({token:e,factory:function(){return aS()},providedIn:"root"}),e})();function lS(e){return"imperative"!==e} + */(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Kt(p=>{this.currentNavigation={...this.currentNavigation,finalUrl:p.urlAfterRedirects},r.urlAfterRedirects=p.urlAfterRedirects}),function V2(e,n,t,i,r,o){return dt(s=>function O2(e,n,t,i,r,o,s="emptyOnly",a="legacy"){return new x2(e,n,t,i,r,s,a,o).recognize().pipe(vi(l=>null===l?function k2(e){return new je(n=>n.error(e))}(new A2):J(l)))}(e,n,t,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(ne(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Kt(p=>{if(r.targetSnapshot=p.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!p.extras.skipLocationChange){const v=this.urlHandlingStrategy.merge(p.urlAfterRedirects,p.rawUrl);this.setBrowserUrl(v,p)}this.browserUrlTree=p.urlAfterRedirects}const m=new TL(p.id,this.serializeUrl(p.extractedUrl),this.serializeUrl(p.urlAfterRedirects),p.targetSnapshot);i.next(m)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:m,extractedUrl:v,source:y,restoredState:D,extras:w}=a,N=new r_(m,this.serializeUrl(v),y,D);i.next(N);const A=Rw(v,this.rootComponentType).snapshot;return J(r={...a,targetSnapshot:A,urlAfterRedirects:v,extras:{...w,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Xt}),Kt(a=>{const l=new IL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ne(a=>r={...a,guards:XL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function d2(e,n){return dt(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?J({...t,guardsResult:!0}):function f2(e,n,t,i){return gt(e).pipe(dt(r=>function v2(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?J(o.map(a=>{const l=Ac(n)??r,u=Va(a,l);return vo(function l2(e){return e&&xc(e.canDeactivate)}(u)?u.canDeactivate(e,n,t,i):l.runInContext(()=>u(e,n,t,i))).pipe(mo())})).pipe(Ba()):J(!0)}(r.component,r.route,t,n,i)),mo(r=>!0!==r,!0))}(s,i,r,e).pipe(dt(a=>a&&function r2(e){return"boolean"==typeof e}(a)?function h2(e,n,t,i){return gt(n).pipe(_o(r=>Dc(function g2(e,n){return null!==e&&n&&n(new PL(e)),J(!0)}(r.route.parent,i),function p2(e,n){return null!==e&&n&&n(new LL(e)),J(!0)}(r.route,i),function _2(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function e2(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>sw(()=>J(s.guards.map(l=>{const u=Ac(s.node)??t,f=Va(l,u);return vo(function a2(e){return e&&xc(e.canActivateChild)}(f)?f.canActivateChild(i,e):u.runInContext(()=>f(i,e))).pipe(mo())})).pipe(Ba())));return J(o).pipe(Ba())}(e,r.path,t),function m2(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return J(!0);const r=i.map(o=>sw(()=>{const s=Ac(n)??t,a=Va(o,s);return vo(function s2(e){return e&&xc(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(mo())}));return J(r).pipe(Ba())}(e,r.route,t))),mo(r=>!0!==r,!0))}(i,o,e,n):J(a)),ne(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Kt(a=>{if(r.guardsResult=a.guardsResult,os(a.guardsResult))throw Vw(0,a.guardsResult);const l=new AL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),vn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),v_(a=>{if(a.guards.canActivateChecks.length)return J(a).pipe(Kt(l=>{const u=new kL(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),vi(l=>{let u=!1;return J(l).pipe(B2(this.paramsInheritanceStrategy,this.ngModule.injector),Kt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Kt(l=>{const u=new OL(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),v_(a=>{const l=u=>{const f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(Kt(p=>{u.component=p}),ne(()=>{})));for(const p of u.children)f.push(...l(p));return f};return Jd(l(a.targetSnapshot.root)).pipe(Xd(),sn(1))}),v_(()=>this.afterPreactivation()),ne(a=>{const l=function $L(e,n,t){const i=Tc(e,n._root,t?t._root:void 0);return new xw(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Kt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,n,t)=>ne(i=>(new QL(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Kt({next(){o=!0},complete(){o=!0}}),Zm(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),$r(a=>{if(s=!0,jw(a)){Hw(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new lf(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),Hw(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lS(r.source)};this.scheduleNavigation(u,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new Aw(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(u){r.reject(u)}}return Xt}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=t.state?.navigationId?t.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(p_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,u=r||this.routerState.root,f=l?this.currentUrlTree.fragment:s;let p=null;switch(a){case"merge":p={...this.currentUrlTree.queryParams,...o};break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}return null!==p&&(p=this.removeEmptyProps(p)),CL(u,this.currentUrlTree,t,p,f??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=os(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function tV(e){for(let n=0;n{const o=t[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ss(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((m,v)=>{a=m,l=v});const f=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),p=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):p=0,this.setTransition({id:f,targetPageId:p,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i,r){const o=new lf(t.id,this.serializeUrl(t.extractedUrl),i,r);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){sg()},e.\u0275prov=G({token:e,factory:function(){return aS()},providedIn:"root"}),e})();function lS(e){return"imperative"!==e} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1690,21 +1690,21 @@ class G2{}class K2 extends class W2{shouldDetach(n){return!1}store(n,t){}shouldA * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class cS{}let rV=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(vn(t=>t instanceof ss),_o(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=bd(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return gt(r).pipe(Se())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):Z(null);const o=r.pipe(dt(s=>null===s?Z(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?gt([o,this.loader.loadComponent(i)]).pipe(Se()):o})}}return e.\u0275fac=function(t){return new(t||e)(L(ln),L(lm),L(lo),L(cS),L(b_))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); +class cS{}let rV=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(vn(t=>t instanceof ss),_o(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=bd(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return gt(r).pipe(Se())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):J(null);const o=r.pipe(dt(s=>null===s?J(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?gt([o,this.loader.loadComponent(i)]).pipe(Se()):o})}}return e.\u0275fac=function(t){return new(t||e)(L(ln),L(lm),L(lo),L(cS),L(b_))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const w_=new q("");let uS=(()=>{class e{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof r_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ss&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ow&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new Ow(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){sg()},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); + */const w_=new q("");let uS=(()=>{class e{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof r_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ss&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof kw&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new kw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){sg()},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function Ba(e,n){return{\u0275kind:e,\u0275providers:n}}function S_(e){return[{provide:y_,multi:!0,useValue:e}]}function fS(){const e=St(gn);return n=>{const t=e.get(fc);if(n!==t.components[0])return;const i=e.get(ln),r=e.get(hS);1===e.get(E_)&&i.initialNavigation(),e.get(pS,null,X.Optional)?.setUpPreloading(),e.get(w_,null,X.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.next(),r.complete()}}const hS=new q("",{factory:()=>new Ue}),E_=new q("",{providedIn:"root",factory:()=>1});const pS=new q("");function lV(e){return Ba(0,[{provide:pS,useExisting:rV},{provide:cS,useExisting:e}])} + */function Ha(e,n){return{\u0275kind:e,\u0275providers:n}}function S_(e){return[{provide:y_,multi:!0,useValue:e}]}function fS(){const e=St(gn);return n=>{const t=e.get(fc);if(n!==t.components[0])return;const i=e.get(ln),r=e.get(hS);1===e.get(M_)&&i.initialNavigation(),e.get(pS,null,X.Optional)?.setUpPreloading(),e.get(w_,null,X.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.next(),r.complete()}}const hS=new q("",{factory:()=>new Ue}),M_=new q("",{providedIn:"root",factory:()=>1});const pS=new q("");function lV(e){return Ha(0,[{provide:pS,useExisting:rV},{provide:cS,useExisting:e}])} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1712,7 +1712,7 @@ class cS{}let rV=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injecto * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const gS=new q("ROUTER_FORROOT_GUARD"),cV=[Sm,{provide:bw,useClass:Qm},{provide:ln,useFactory:aS},Ac,{provide:as,useFactory:function dS(e){return e.routerState.root},deps:[ln]},b_];function uV(){return new $1("Router",ln)}let Cf=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[cV,[],S_(t),{provide:gS,useFactory:pV,deps:[[ln,new Ll,new Vl]]},{provide:vf,useValue:i||{}},i?.useHash?{provide:ts,useClass:Tx}:{provide:ts,useClass:hC},{provide:w_,useFactory:()=>{const e=St(ln),n=St(GF),t=St(vf);return t.scrollOffset&&n.setOffset(t.scrollOffset),new uS(e,n,t)}},i?.preloadingStrategy?lV(i.preloadingStrategy).\u0275providers:[],{provide:$1,multi:!0,useFactory:uV},i?.initialNavigation?gV(i):[],[{provide:mS,useFactory:fS},{provide:F1,multi:!0,useExisting:mS}]]}}static forChild(t){return{ngModule:e,providers:[S_(t)]}}}return e.\u0275fac=function(t){return new(t||e)(L(gS,8))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[f_]}),e})();function pV(e){return"guarded"}function gV(e){return["disabled"===e.initialNavigation?Ba(3,[{provide:Ad,multi:!0,useFactory:()=>{const n=St(ln);return()=>{n.setUpLocationChangeListener()}}},{provide:E_,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ba(2,[{provide:E_,useValue:0},{provide:Ad,multi:!0,deps:[gn],useFactory:n=>{const t=n.get(Mx,Promise.resolve());let i=!1;return()=>t.then(()=>new Promise(o=>{const s=n.get(ln),a=n.get(hS);(function r(o){n.get(ln).events.pipe(vn(a=>a instanceof ss||a instanceof lf||a instanceof Iw),ne(a=>a instanceof ss||a instanceof lf&&(0===a.code||1===a.code)&&null),vn(a=>null!==a),sn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?Z(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const mS=new q(""); +const gS=new q("ROUTER_FORROOT_GUARD"),cV=[Sm,{provide:bw,useClass:Qm},{provide:ln,useFactory:aS},Ic,{provide:as,useFactory:function dS(e){return e.routerState.root},deps:[ln]},b_];function uV(){return new $1("Router",ln)}let Cf=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[cV,[],S_(t),{provide:gS,useFactory:pV,deps:[[ln,new Ll,new Vl]]},{provide:vf,useValue:i||{}},i?.useHash?{provide:ts,useClass:TR}:{provide:ts,useClass:hC},{provide:w_,useFactory:()=>{const e=St(ln),n=St(GP),t=St(vf);return t.scrollOffset&&n.setOffset(t.scrollOffset),new uS(e,n,t)}},i?.preloadingStrategy?lV(i.preloadingStrategy).\u0275providers:[],{provide:$1,multi:!0,useFactory:uV},i?.initialNavigation?gV(i):[],[{provide:mS,useFactory:fS},{provide:P1,multi:!0,useExisting:mS}]]}}static forChild(t){return{ngModule:e,providers:[S_(t)]}}}return e.\u0275fac=function(t){return new(t||e)(L(gS,8))},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[f_]}),e})();function pV(e){return"guarded"}function gV(e){return["disabled"===e.initialNavigation?Ha(3,[{provide:Id,multi:!0,useFactory:()=>{const n=St(ln);return()=>{n.setUpLocationChangeListener()}}},{provide:M_,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ha(2,[{provide:M_,useValue:0},{provide:Id,multi:!0,deps:[gn],useFactory:n=>{const t=n.get(NR,Promise.resolve());let i=!1;return()=>t.then(()=>new Promise(o=>{const s=n.get(ln),a=n.get(hS);(function r(o){n.get(ln).events.pipe(vn(a=>a instanceof ss||a instanceof lf||a instanceof Aw),ne(a=>a instanceof ss||a instanceof lf&&(0===a.code||1===a.code)&&null),vn(a=>null!==a),sn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?J(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const mS=new q(""); /** * @license Angular v14.2.9 * (c) 2010-2022 Google LLC. https://angular.io/ @@ -1725,21 +1725,21 @@ const gS=new q("ROUTER_FORROOT_GUARD"),cV=[Sm,{provide:bw,useClass:Qm},{provide: * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -let _S=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(C(pi),C(Ze))},e.\u0275dir=H({type:e}),e})(),ls=(()=>{class e extends _S{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=nt(e)))(i||e)}}(),e.\u0275dir=H({type:e,features:[He]}),e})();const ur=new q("NgValueAccessor"),yV={provide:ur,useExisting:Te(()=>Fc),multi:!0},DV=new q("CompositionEventMode"); +let _S=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(C(pi),C(Je))},e.\u0275dir=B({type:e}),e})(),ls=(()=>{class e extends _S{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=nt(e)))(i||e)}}(),e.\u0275dir=B({type:e,features:[Be]}),e})();const ur=new q("NgValueAccessor"),yV={provide:ur,useExisting:Te(()=>Pc),multi:!0},DV=new q("CompositionEventMode"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let Fc=(()=>{class e extends _S{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function bV(){const e=lr()?lr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(C(pi),C(Ze),C(DV,8))},e.\u0275dir=H({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){1&t&&W("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[it([yV]),He]}),e})(); + */let Pc=(()=>{class e extends _S{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function bV(){const e=lr()?lr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(C(pi),C(Je),C(DV,8))},e.\u0275dir=B({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(t,i){1&t&&W("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[it([yV]),Be]}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const yn=new q("NgValidators"),bo=new q("NgAsyncValidators");function TS(e){return null!=e}function AS(e){return Xl(e)?gt(e):e}function IS(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function OS(e,n){return n.map(t=>t(e))}function kS(e){return e.map(n=>function SV(e){return!e.validate}(n)?n:t=>n.validate(t))}function M_(e){return null!=e?function RS(e){if(!e)return null;const n=e.filter(TS);return 0==n.length?null:function(t){return IS(OS(t,n))}}(kS(e)):null}function N_(e){return null!=e?function xS(e){if(!e)return null;const n=e.filter(TS);return 0==n.length?null:function(t){ + */const yn=new q("NgValidators"),bo=new q("NgAsyncValidators");function TS(e){return null!=e}function IS(e){return Xl(e)?gt(e):e}function AS(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function kS(e,n){return n.map(t=>t(e))}function OS(e){return e.map(n=>function SV(e){return!e.validate}(n)?n:t=>n.validate(t))}function N_(e){return null!=e?function xS(e){if(!e)return null;const n=e.filter(TS);return 0==n.length?null:function(t){return AS(kS(t,n))}}(OS(e)):null}function E_(e){return null!=e?function RS(e){if(!e)return null;const n=e.filter(TS);return 0==n.length?null:function(t){ /** * @license * Copyright Google LLC All Rights Reserved. @@ -1768,35 +1768,35 @@ let _S=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.o * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -return function _V(...e){const n=rt(e),{args:t,keys:i}=iw(e),r=new je(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,u=s;for(let f=0;f{p||(p=!0,u--),a[f]=m},()=>l--,void 0,()=>{(!l||!p)&&(u||o.next(i?rw(i,a):a),o.complete())}))}});return n?r.pipe(zm(n)):r}(OS(t,n).map(AS)).pipe(ne(IS))}}(kS(e)):null}function FS(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function T_(e){return e?Array.isArray(e)?e:[e]:[]}function Sf(e,n){return Array.isArray(e)?e.includes(n):e===n}function VS(e,n){const t=T_(n);return T_(e).forEach(r=>{Sf(t,r)||t.push(r)}),t}function HS(e,n){return T_(n).filter(t=>!Sf(e,t))} +return function _V(...e){const n=rt(e),{args:t,keys:i}=iw(e),r=new je(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,u=s;for(let f=0;f{p||(p=!0,u--),a[f]=m},()=>l--,void 0,()=>{(!l||!p)&&(u||o.next(i?rw(i,a):a),o.complete())}))}});return n?r.pipe(Ym(n)):r}(kS(t,n).map(IS)).pipe(ne(AS))}}(OS(e)):null}function PS(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function T_(e){return e?Array.isArray(e)?e:[e]:[]}function Sf(e,n){return Array.isArray(e)?e.includes(n):e===n}function VS(e,n){const t=T_(n);return T_(e).forEach(r=>{Sf(t,r)||t.push(r)}),t}function BS(e,n){return T_(n).filter(t=>!Sf(e,t))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class BS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=M_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=N_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}} + */class HS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=N_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=E_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class kn extends BS{get formDirective(){return null}get path(){return null}} + */class On extends HS{get formDirective(){return null}get path(){return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class Do extends BS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}} + */class Do extends HS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let A_=(()=>{class e extends class jS{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(C(Do,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&ht("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[He]}),e})(); + */let I_=(()=>{class e extends class jS{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(C(Do,2))},e.\u0275dir=B({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&ht("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Be]}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1811,7 +1811,7 @@ return function _V(...e){const n=rt(e),{args:t,keys:i}=iw(e),r=new je(o=>{const{ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const Pc="VALID",Mf="INVALID",ja="PENDING",Lc="DISABLED";function US(e){return Array.isArray(e)?M_(e):e||null}function GS(e){return Array.isArray(e)?N_(e):e||null}function Nf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vc(e,n){(function P_(e,n){const t=function PS(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(FS(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function LS(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(FS(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();If(n._rawValidators,r),If(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),e.disabled&&n.valueAccessor.setDisabledState?.(!0),function xV(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&YS(e,n)})}(e,n),function PV(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function FV(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&YS(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function RV(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function If(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function YS(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1} +const Fc="VALID",Nf="INVALID",ja="PENDING",Lc="DISABLED";function US(e){return Array.isArray(e)?N_(e):e||null}function GS(e){return Array.isArray(e)?E_(e):e||null}function Ef(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vc(e,n){(function F_(e,n){const t=function FS(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(PS(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function LS(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(PS(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();Af(n._rawValidators,r),Af(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),e.disabled&&n.valueAccessor.setDisabledState?.(!0),function RV(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&KS(e,n)})}(e,n),function FV(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function PV(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&KS(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function xV(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Af(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function KS(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1826,28 +1826,28 @@ function QS(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)} * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function XS(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const GV={provide:Do,useExisting:Te(()=>kf)},iE=(()=>Promise.resolve())(); + */function XS(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const GV={provide:Do,useExisting:Te(()=>Of)},iM=(()=>Promise.resolve())(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let kf=(()=>{class e extends Do{constructor(t,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new class extends class zS{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=US(this._rawValidators),this._composedAsyncValidatorFn=GS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Pc}get invalid(){return this.status===Mf}get pending(){return this.status==ja}get disabled(){return this.status===Lc}get enabled(){return this.status!==Lc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=US(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=GS(n)}addValidators(n){this.setValidators(VS(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(VS(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(HS(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(HS(n,this._rawAsyncValidators))}hasValidator(n){return Sf(this._rawValidators,n)}hasAsyncValidator(n){return Sf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ja,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Lc,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Pc,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pc||this.status===ja)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lc:Pc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ja,this._hasOwnPendingAsyncValidator=!0;const t=AS(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ue,this.statusChanges=new ue}_calculateStatus(){return this._allControlsDisabled()?Lc:this.errors?Mf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ja)?ja:this._anyControlsHaveStatus(Mf)?Mf:Pc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Nf(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}} + */let Of=(()=>{class e extends Do{constructor(t,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new class extends class YS{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=US(this._rawValidators),this._composedAsyncValidatorFn=GS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Fc}get invalid(){return this.status===Nf}get pending(){return this.status==ja}get disabled(){return this.status===Lc}get enabled(){return this.status!==Lc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=US(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=GS(n)}addValidators(n){this.setValidators(VS(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(VS(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(BS(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(BS(n,this._rawAsyncValidators))}hasValidator(n){return Sf(this._rawValidators,n)}hasAsyncValidator(n){return Sf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ja,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Lc,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Fc,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fc||this.status===ja)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lc:Fc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ja,this._hasOwnPendingAsyncValidator=!0;const t=IS(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ue,this.statusChanges=new ue}_calculateStatus(){return this._allControlsDisabled()?Lc:this.errors?Nf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ja)?ja:this._anyControlsHaveStatus(Nf)?Nf:Fc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ef(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */{constructor(n=null,t,i){super(function R_(e){return(Nf(e)?e.validators:e)||null}(t),function x_(e,n){return(Nf(n)?n.asyncValidators:e)||null}(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nf(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=XS(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){QS(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){QS(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){XS(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},this._registered=!1,this.update=new ue,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function V_(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Fc?t=o:function HV(e){return Object.getPrototypeOf(e.constructor)===ls}(o)?i=o:r=o}),r||i||t||null}(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function L_(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,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(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Vc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){iE.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&function Hr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e} + */{constructor(n=null,t,i){super(function x_(e){return(Ef(e)?e.validators:e)||null}(t),function R_(e,n){return(Ef(n)?n.asyncValidators:e)||null}(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ef(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=XS(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){QS(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){QS(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){XS(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},this._registered=!1,this.update=new ue,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function V_(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Pc?t=o:function BV(e){return Object.getPrototypeOf(e.constructor)===ls}(o)?i=o:r=o}),r||i||t||null}(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function L_(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,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(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Vc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){iM.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&function Br(e){return"boolean"==typeof e?e:null!=e&&"false"!==e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */(i);iE.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent? + */(i);iM.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent? /** * @license * Copyright Google LLC All Rights Reserved. @@ -1855,7 +1855,7 @@ function QS(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)} * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function Tf(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(C(kn,9),C(yn,10),C(bo,10),C(ur,10),C(Vr,8))},e.\u0275dir=H({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[it([GV]),He,Kt]}),e})(); +function Tf(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(C(On,9),C(yn,10),C(bo,10),C(ur,10),C(Vr,8))},e.\u0275dir=B({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[it([GV]),Be,zt]}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1870,7 +1870,7 @@ function Tf(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=fu * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const KV={provide:ur,useExisting:Te(()=>B_),multi:!0};let B_=(()=>{class e extends ls{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=nt(e)))(i||e)}}(),e.\u0275dir=H({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&W("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[it([KV]),He]}),e})(),rE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})(),gH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[rE]}),e})(),CE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[gH]}),e})(); +const zV={provide:ur,useExisting:Te(()=>H_),multi:!0};let H_=(()=>{class e extends ls{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=nt(e)))(i||e)}}(),e.\u0275dir=B({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&W("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[it([zV]),Be]}),e})(),rM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})(),gB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[rM]}),e})(),CM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[gB]}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1885,7 +1885,7 @@ const KV={provide:ur,useExisting:Te(()=>B_),multi:!0};let B_=(()=>{class e exten * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const wE=new q("ngx-mask config"),SE=new q("new ngx-mask config"),EE=new q("initial ngx-mask config"),_H={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,triggerOnMaskChange:!1,maskFilled:new ue,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}}; +const wM=new q("ngx-mask config"),SM=new q("new ngx-mask config"),MM=new q("initial ngx-mask config"),_B={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,triggerOnMaskChange:!1,maskFilled:new ue,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}}; /** * @license * Copyright Google LLC All Rights Reserved. @@ -1906,7 +1906,7 @@ const wE=new q("ngx-mask config"),SE=new q("new ngx-mask config"),EE=new q("init * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */let vH=(()=>{class e{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(i,r,o,s)=>{let a=[],l="";if(Array.isArray(o)){const v=new RegExp(o.map(y=>"[\\^$.|?*+()".indexOf(y)>=0?`\\${y}`:y).join("|"));a=i.split(v),l=i.match(v)?.[0]??""}else a=i.split(o),l=o;const u=a.length>1?`${l}${a[1]}`:"";let f=a[0]??"";const p=this.separatorLimit.replace(/\s/g,"");p&&+p&&(f="-"===f[0]?`-${f.slice(1,f.length).slice(0,p.length)}`:f.slice(0,p.length));const m=/(\d+)(\d{3})/;for(;r&&m.test(f);)f=f.replace(m,"$1"+r+"$2");return void 0===s?f+u:0===s?f:f+u.substring(0,s+1)},this.percentage=i=>Number(i)>=0&&Number(i)<=100,this.getPrecision=i=>{const r=i.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=i=>{for(let r=this.suffix?.length-1;r>=0;r--){const o=this.suffix.substring(r,this.suffix?.length);if(i.includes(o)&&r!==this.suffix?.length-1&&(r-1<0||!i.includes(this.suffix.substring(r-1,this.suffix?.length))))return i.replace(o,"")}return i},this.checkInputPrecision=(i,r,o)=>{if(r<1/0){if(Array.isArray(o)){const u=o.find(f=>f!==this.thousandSeparator);o=u||o[0]}const s=new RegExp(this._charToRegExpExpression(o)+`\\d{${r}}.*$`),l=(i.match(s)??[])[0]?.length??0;l-1>r&&(i=i.substring(0,i.length-(l-1-r))),0===r&&this._compareOrIncludes(i[i.length-1],o,this.thousandSeparator)&&(i=i.substring(0,i.length-1))}return i},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,i){const[r,o]=i;return this.customPattern=o,this.applyMask(t,r)}applyMask(t,i,r=0,o=!1,s=!1,a=(()=>{})){if(!i||"string"!=typeof t)return"";let l=0,u="",f=!1,p=!1,m=1,v=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t));const y=t.toString().split("");if("IP"===i){const O=t.split(".");this.ipError=this._validIP(O),i="099.099.099.099"}const D=[];for(let O=0;O11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const O=this.getPrecision(i);t=this.checkInputPrecision(t,O,this.decimalMarker)}t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))&&(t=`${t.substring(0,t.indexOf(".")-1)}${t.substring(t.indexOf("."),t.length)}`),u=this.percentage(t)?t:t.substring(0,t.length-1)}else if(i.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.thousandSeparator&&!this._compareOrIncludes(t[1],this.decimalMarker,this.thousandSeparator)&&!s?t.slice(0,t.length-1):t,s&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const O=this._charToRegExpExpression(this.thousandSeparator);let R='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(O,"");if(Array.isArray(this.decimalMarker))for(const Ie of this.decimalMarker)R=R.replace(this._charToRegExpExpression(Ie),"");else R=R.replace(this._charToRegExpExpression(this.decimalMarker),"");const U=new RegExp("["+R+"]");(t.match(U)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const ge=this.getPrecision(i),Ce=(t=this.checkInputPrecision(t,ge,this.decimalMarker)).replace(new RegExp(O,"g"),"");u=this._formatWithSeparators(Ce,this.thousandSeparator,this.decimalMarker,ge);const Ye=u.indexOf(",")-t.indexOf(","),Le=u.length-t.length;if(Le>0&&","!==u[r]){p=!0;let Ie=0;do{this._shift.add(r+Ie),Ie++}while(Ie0&&!(u.indexOf(",")>=r&&r>3)||!(u.indexOf(".")>=r&&r>3)&&Le<=0?(this._shift.clear(),p=!0,m=Le,this._shift.add(r+=Le)):this._shift.clear()}else for(let O=0,R=y[0];O2){l+=1,this._shiftStep(i,l,y.length),O--,this.leadZeroDateTime&&(u+="0");continue}if("h"===i[l]&&"2"===u&&Number(R)>3){l+=1,O--;continue}if("m"===i[l]&&Number(R)>5){l+=1,this._shiftStep(i,l,y.length),O--,this.leadZeroDateTime&&(u+="0");continue}if("s"===i[l]&&Number(R)>5){l+=1,this._shiftStep(i,l,y.length),O--,this.leadZeroDateTime&&(u+="0");continue}const U=31;if("d"===i[l]&&(Number(R)>3&&this.leadZeroDateTime||Number(t.slice(l,l+2))>U||"/"===t[l+1])){l+=1,this._shiftStep(i,l,y.length),O--,this.leadZeroDateTime&&(u+="0");continue}if("M"===i[l]){const Ce=0===l&&(Number(R)>2||Number(t.slice(l,l+2))>12||"/"===t[l+1]),Ye=t.slice(l-3,l-1).includes("/")&&("/"===t[l-2]&&Number(t.slice(l-1,l+1))>12&&"/"!==t[l]||"/"===t[l]||"/"===t[l-3]&&Number(t.slice(l-2,l))>12&&"/"!==t[l-1]||"/"===t[l-1]),Le=Number(t.slice(l-3,l-1))<=U&&!t.slice(l-3,l-1).includes("/")&&"/"===t[l-1]&&(Number(t.slice(l,l+2))>12||"/"===t[l+1]),Ie=Number(t.slice(l-3,l-1))>U&&!t.slice(l-3,l-1).includes("/")&&!t.slice(l-2,l).includes("/")&&Number(t.slice(l-2,l))>12,cn=Number(t.slice(l-3,l-1))<=U&&!t.slice(l-3,l-1).includes("/")&&"/"!==t[l-1]&&Number(t.slice(l-1,l+1))>12;if(Number(R)>1&&this.leadZeroDateTime||Ce||Ye||Le||Ie||cn){l+=1,this._shiftStep(i,l,y.length),O--,this.leadZeroDateTime&&(u+="0");continue}}u+=R,l++}else" "===R&&" "===i[l]?(u+=R,l++):-1!==this.maskSpecialCharacters.indexOf(i[l]??"")?(u+=i[l],l++,this._shiftStep(i,l,y.length),O--):this.maskSpecialCharacters.indexOf(R)>-1&&this.maskAvailablePatterns[i[l]??""]&&this.maskAvailablePatterns[i[l]??""]?.optional?(!!y[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&!i.match(/^9+\.0+$/)&&(u+=y[l]),l++,O--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(R)===this.maskExpression[l+2]&&f||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(R)===this.maskExpression[l+2]&&f?(l+=3,u+=R):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(R)<0&&R!==this.placeHolderCharacter&&(v=!0);u.length+1===i.length&&-1!==this.maskSpecialCharacters.indexOf(i[i.length-1]??"")&&(u+=i[i.length-1]);let w=r+1;for(;this._shift.has(w);)m++,w++;let M=o&&!i.startsWith("separator")?l:this._shift.has(r)?m:0;v&&M--,a(M,p),m<0&&this._shift.clear();let I=!1;s&&(I=y.every(O=>this.maskSpecialCharacters.includes(O)));let S=`${this.prefix}${I?"":u}${this.suffix}`;return 0===u.length&&(S=`${this.prefix}${u}`),S}_findSpecialChar(t){return this.maskSpecialCharacters.find(i=>i===t)}_checkSymbolMask(t,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,(this.maskAvailablePatterns[i]?.pattern&&this.maskAvailablePatterns[i]?.pattern.test(t))??!1}_stripToDecimal(t){return t.split("").filter((i,r)=>{const o="string"==typeof this.decimalMarker?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||o||"-"===i&&0===r&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,i,r){const o=/[*?]/g.test(t.slice(0,i))?r:i;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(t,i,r){return Array.isArray(i)?i.filter(o=>o!==r).includes(t):t===i}_validIP(t){return!(4===t.length&&!t.some((i,r)=>t.length!==r+1?""===i||Number(i)>255:""===i||Number(i.substring(0,3))>255))}}return e.\u0275fac=function(t){return new(t||e)(L(wE))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})();function yH(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let bH=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:SE,useValue:t},{provide:EE,useValue:_H},{provide:wE,useFactory:yH,deps:[EE,SE]},vH]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})();const ME=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};ME.KeyboardEvent||(ME.KeyboardEvent=function(e,n){});let NE=(()=>{class e{constructor(t,i){this.document=t,this.platformId=i,this.documentIsAccessible=function RC(e){return e===kC}(this.platformId)}static getCookieRegExp(t){const i=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch{return t}}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),e.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const r=e.getCookieRegExp(t).exec(this.document.cookie);return r[1]?e.safeDecodeURIComponent(r[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},i=this.document;return i.cookie&&""!==i.cookie&&i.cookie.split(";").forEach(r=>{const[o,s]=r.split("=");t[e.safeDecodeURIComponent(o.replace(/^ /,""))]=e.safeDecodeURIComponent(s)}),t}set(t,i,r,o,s,a,l){if(!this.documentIsAccessible)return;if("number"==typeof r||r instanceof Date||o||s||a||l)return void this.set(t,i,{expires:r,path:o,domain:s,secure:a,sameSite:l||"Lax"});let u=encodeURIComponent(t)+"="+encodeURIComponent(i)+";";const f=r||{};f.expires&&(u+="number"==typeof f.expires?"expires="+new Date((new Date).getTime()+1e3*f.expires*60*60*24).toUTCString()+";":"expires="+f.expires.toUTCString()+";"),f.path&&(u+="path="+f.path+";"),f.domain&&(u+="domain="+f.domain+";"),!1===f.secure&&"None"===f.sameSite&&(f.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),f.secure&&(u+="secure;"),f.sameSite||(f.sameSite="Lax"),u+="sameSite="+f.sameSite+";",this.document.cookie=u}delete(t,i,r,o,s="Lax"){if(!this.documentIsAccessible)return;const a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(t,"",{expires:a,path:i,domain:r,secure:o,sameSite:s})}deleteAll(t,i,r,o="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const a in s)s.hasOwnProperty(a)&&this.delete(a,t,i,r,o)}}return e.\u0275fac=function(t){return new(t||e)(L(Dt),L(dc))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const DH=[];let CH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[Cf.forRoot(DH),Cf]}),e})(),wH=(()=>{class e{constructor(){this.title="dashboard"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=et({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,i){1&t&&Li(0,"router-outlet")},dependencies:[d_],encapsulation:2}),e})();const SH=["addListener","removeListener"],EH=["addEventListener","removeEventListener"],MH=["on","off"];function Rn(e,n,t,i){if(ye(t)&&(i=t,t=void 0),i)return Rn(e,n,t).pipe(zm(i));const[r,o]=function AH(e){return ye(e.addEventListener)&&ye(e.removeEventListener)}(e)?EH.map(s=>a=>e[s](n,a,t)):function NH(e){return ye(e.addListener)&&ye(e.removeListener)}(e)?SH.map(TE(e,n)):function TH(e){return ye(e.on)&&ye(e.off)}(e)?MH.map(TE(e,n)):[];if(!r&&Ts(e))return dt(s=>Rn(s,n,t))(ut(e));if(!r)throw new TypeError("Invalid event target");return new je(s=>{const a=(...l)=>s.next(1o(a)})}function TE(e,n){return t=>i=>e[t](n,i)}class IH extends Ct{constructor(n,t){super()}schedule(n,t=0){return this}}const Rf={setInterval(e,n,...t){const{delegate:i}=Rf;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Rf;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},AE={now:()=>(AE.delegate||Date).now(),delegate:void 0};class Bc{constructor(n,t=Bc.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Bc.now=AE.now;const xf=new class kH extends Bc{constructor(n,t=Bc.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class OH extends IH{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return Rf.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&Rf.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,dn(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),RH=xf;function jc(e=0,n,t=RH){let i=-1;return null!=n&&(si(n)?t=n:i=n),new je(r=>{let o=function xH(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}const{isArray:FH}=Array;function IE(e){return 1===e.length&&FH(e[0])?e[0]:e}function Ff(...e){const n=rt(e),t=IE(e);return t.length?new je(i=>{let r=t.map(()=>[]),o=t.map(()=>!1);i.add(()=>{r=o=null});for(let s=0;!i.closed&&s{if(r[s].push(a),r.every(l=>l.length)){const l=r.map(u=>u.shift());i.next(n?n(...l):l),r.some((u,f)=>!u.length&&o[f])&&i.complete()}},()=>{o[s]=!0,!r[s].length&&i.complete()}));return()=>{r=o=null}}):Xt}function Vt(e){return qe((n,t)=>{ut(e).subscribe(ke(t,()=>t.complete(),Dn)),!t.closed&&n.subscribe(t)})}function Y_(...e){const n=rt(e);return qe((t,i)=>{const r=e.length,o=new Array(r);let s=e.map(()=>!1),a=!1;for(let l=0;l{o[l]=u,!a&&!s[l]&&(s[l]=!0,(a=s.every(xn))&&(s=null))},Dn));t.subscribe(ke(i,l=>{if(a){const u=[l,...o];i.next(n?n(...u):u)}}))})}function QB(e,n){if(1&e){const t=At();E(0,"button",1),W("click",function(){return mt(t),_t(K().close())}),T()}}new je(Dn),Math,Math,Math;const JE=["*"],mj=["dialog"];function sv(e){return"string"==typeof e}function fs(e){return null!=e}function Ka(e){return(e||document.body).getBoundingClientRect()}const QE={animation:!0,transitionTimerDelayMs:5},u$=()=>{},{transitionTimerDelayMs:d$}=QE,Yc=new Map,bn=(e,n,t,i)=>{let r=i.context||{};const o=Yc.get(n);if(o)switch(i.runningTransition){case"continue":return Xt;case"stop":e.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Yc.delete(n)}const s=t(n,i.animation,r)||u$;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>s()),Z(void 0).pipe(function l$(e){return n=>new je(t=>n.subscribe({next:s=>e.run(()=>t.next(s)),error:s=>e.run(()=>t.error(s)),complete:()=>e.run(()=>t.complete())}))}(e));const a=new Ue,l=new Ue,u=a.pipe(function LH(...e){return n=>Dc(n,Z(...e))}(!0));Yc.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const f=function c$(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const p=Rn(n,"transitionend").pipe(Vt(u),vn(({target:v})=>v===n));(function OE(...e){return 1===(e=IE(e)).length?ut(e[0]):new je(function PH(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i{if(t){for(let o=0;o{Yc.delete(n),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let qc=(()=>{class e{constructor(){this.animation=QE.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})();const _$=({classList:e})=>{e.remove("show")};let v$=(()=>{class e{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(L(qc))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),y$=(()=>{class e{constructor(t,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new ue,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=bn(this._zone,this._element.nativeElement,_$,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const i=t.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(C(v$),C(pi),C(Ze),C(ze))},e.\u0275cmp=et({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,i){2&t&&ht("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[Kt],ngContentSelectors:JE,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(t,i){1&t&&(Fg(),Pg(0),J(1,QB,1,0,"button",0)),2&t&&(F(1),Q("ngIf",i.dismissible))},dependencies:[ns],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),e})(),oM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),lM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),cM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})();var Ht=(()=>{return(e=Ht||(Ht={}))[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",Ht;var e})();typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const dM=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function fM(e){const n=Array.from(e.querySelectorAll(dM)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let bM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei,CE]}),e})(),hv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=H({type:e,selectors:[["",8,"navbar"]]}),e})(),wM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})();class ms{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}let iU=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(sn(1)).subscribe(()=>{bn(this._zone,this._el.nativeElement,(t,i)=>{i&&Ka(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return bn(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(C(Ze),C(ze))},e.\u0275cmp=et({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){2&t&&(Zo("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),ht("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})();class pr{close(n){}dismiss(n){}}class rU{constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Ue,this._dismissed=new Ue,this._hidden=new Ue,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Vt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Vt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function ZE(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Z(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ff(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Xc=(()=>{return(e=Xc||(Xc={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",Xc;var e})();let oU=(()=>{class e{constructor(t,i,r){this._document=t,this._elRef=i,this._zone=r,this._closed$=new Ue,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ue,this.shown=new Ue,this.hidden=new Ue}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":sv(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(sn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=Ff(bn(this._zone,t,()=>t.classList.remove("show"),i),bn(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const t={animation:this.animation,runningTransition:"continue"};Ff(bn(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Ka(o),o.classList.add("show")},t),bn(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Rn(t,"keydown").pipe(Vt(this._closed$),vn(r=>r.which===Ht.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Xc.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Rn(this._dialogEl.nativeElement,"mousedown").pipe(Vt(this._closed$),Yt(()=>i=!1),vi(()=>Rn(t,"mouseup").pipe(Vt(this._closed$),sn(1))),vn(({target:r})=>t===r)).subscribe(()=>{i=!0}),Rn(t,"click").pipe(Vt(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Xc.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=fM(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&bn(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(C(Dt),C(Ze),C(ze))},e.\u0275cmp=et({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(1&t&&Md(mj,7),2&t){let r;at(r=lt())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){2&t&&(Ke("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Zo("modal d-block"+(i.windowClass?" "+i.windowClass:"")),ht("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:JE,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,i){1&t&&(Fg(),E(0,"div",0,1)(2,"div",2),Pg(3),T()()),2&t&&Zo("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})(),sU=(()=>{class e{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(t>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=s),r.overflow=o}}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aU=(()=>{class e{constructor(t,i,r,o,s,a){this._applicationRef=t,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new Ue,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new ue,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=Rn(n,"focusin").pipe(Vt(t),ne(o=>o.target));Rn(n,"keydown").pipe(Vt(t),vn(o=>o.which===Ht.Tab),Y_(r)).subscribe(([o,s])=>{const[a,l]=fM(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Rn(n,"click").pipe(Vt(t),Y_(r),ne(o=>o[1])).subscribe(o=>o.focus())})})(0,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r){const o=r.container instanceof HTMLElement?r.container:fs(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new pr,l=this._getContentRef(r.injector||t,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,f=this._attachWindowComponent(o,l.nodes),p=new rU(f,l,u,r.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe(sn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=m=>{p.close(m)},a.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,r),u.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=Dm(iU,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let r=Dm(oU,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,i){this._windowAttributes.forEach(r=>{fs(i[r])&&(t[r]=i[r])})}_applyBackdropOptions(t,i){this._backdropAttributes.forEach(r=>{fs(i[r])&&(t[r]=i[r])})}_getContentRef(t,i,r,o){return i?i instanceof bt?this._createFromTemplateRef(i,r):sv(i)?this._createFromString(i):this._createFromComponent(t,i,r,o):new ms([])}_createFromTemplateRef(t,i){const o=t.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new ms([o.rootNodes],o)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new ms([[i]])}_createFromComponent(t,i,r,o){const s=gn.create({providers:[{provide:pr,useValue:r}],parent:t}),a=Dm(i,{environmentInjector:this._applicationRef.injector,elementInjector:s}),l=a.location.nativeElement;return o.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new ms([[l]],a.hostView,a)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(L(fc),L(gn),L(Dt),L(sU),L(xp),L(ze))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lU=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(L(qc))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),SM=(()=>{class e{constructor(t,i,r){this._injector=t,this._modalStack=i,this._config=r}open(t,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(L(gn),L(aU),L(lU))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),EM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({providers:[SM]}),e})(),AM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),LM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),HM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),BM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),jM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),$M=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),UM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),GM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})();new q("live announcer delay",{providedIn:"root",factory:function DU(){return 100}});let WM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[ei]}),e})(),KM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({}),e})();const CU=[rM,oM,lM,cM,bM,wM,EM,AM,KM,LM,HM,BM,jM,$M,UM,GM,WM];let wU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({imports:[CU,rM,oM,lM,cM,bM,wM,EM,AM,KM,LM,HM,BM,jM,$M,UM,GM,WM]}),e})(),MU=(()=>{class e{constructor(t){this.activeModal=t,this.save=()=>{this.activeModal.close(this.rewindDate)}}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-rewind-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:4,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],["for","rewindDate"],[1,"input-group"],["id","rewindDate","placeholder","yyyy-mm-dd hh:MM:ss","type","datetime-local",1,"form-control",3,"ngModel","ngModelChange"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Rewind consumers offset"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"label",6),A(9,"Select the datetime to rewind all the partition-offsets of the topic "),E(10,"b"),A(11),T(),A(12," from consumers "),E(13,"b"),A(14),T(),A(15," with group id "),E(16,"b"),A(17),T(),A(18,"' "),T(),E(19,"div",7)(20,"input",8),W("ngModelChange",function(o){return i.rewindDate=o}),T()()()(),E(21,"div",9)(22,"button",10),W("click",function(){return i.activeModal.dismiss()}),A(23,"Cancel"),T(),E(24,"button",11),W("click",function(){return i.save()}),A(25,"OK"),T()()),2&t&&(F(11),Be("'",i.topic,"'"),F(3),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,""),F(3),Q("ngModel",i.rewindDate))},dependencies:[Fc,A_,kf],encapsulation:2}),e})(),NU=(()=>{class e{constructor(t){this.activeModal=t,this.save=()=>{this.activeModal.close(this.workersCount)}}ngOnInit(){this.oldWorkersCount=this.workersCount}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-workers-count-modal"]],inputs:{workersCount:"workersCount",groupId:"groupId",consumerName:"consumerName"},decls:28,vars:4,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],["for","oldWorkersCount"],[1,"input-group","mb-2"],["id","oldWorkersCount","type","number","readonly","",1,"form-control",3,"ngModel","ngModelChange"],["for","workersCount"],[1,"input-group"],["id","workersCount","type","number",1,"form-control",3,"ngModel","ngModelChange"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Consumer workers running"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"label"),A(9,"Update the number of workers in consumers "),E(10,"b"),A(11),T(),A(12," from group id "),E(13,"b"),A(14),T()(),E(15,"label",6),A(16,"Current Value"),T(),E(17,"div",7)(18,"input",8),W("ngModelChange",function(o){return i.oldWorkersCount=o}),T()(),E(19,"label",9),A(20,"New Value"),T(),E(21,"div",10)(22,"input",11),W("ngModelChange",function(o){return i.workersCount=o}),T()()()(),E(23,"div",12)(24,"button",13),W("click",function(){return i.activeModal.dismiss()}),A(25,"Cancel"),T(),E(26,"button",14),W("click",function(){return i.save()}),A(27,"OK"),T()()),2&t&&(F(11),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,"'"),F(4),Q("ngModel",i.oldWorkersCount),F(4),Q("ngModel",i.workersCount))},dependencies:[Fc,B_,A_,kf],encapsulation:2}),e})(),TU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-reset-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:3,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Reset consumers offset"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"span"),A(9,"Reset the partition-offsets can generate a huge lag at the topic "),E(10,"b"),A(11),T(),A(12," to consumers "),E(13,"b"),A(14),T(),A(15," with group id "),E(16,"b"),A(17),T(),A(18,"'. "),T(),E(19,"h5",6),A(20,"Are you really sure about it?"),T()()(),E(21,"div",7)(22,"button",8),W("click",function(){return i.activeModal.dismiss()}),A(23,"No, cancel"),T(),E(24,"button",9),W("click",function(){return i.activeModal.close()}),A(25,"Yes"),T()()),2&t&&(F(11),Be("'",i.topic,"'"),F(3),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,""))},encapsulation:2}),e})(),AU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-pause-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:3,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Pause consumers"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"span"),A(9,"Pause all the partitions of the topic "),E(10,"b"),A(11),T(),A(12," from consumers "),E(13,"b"),A(14),T(),A(15," with group id "),E(16,"b"),A(17),T(),A(18,"' will interrupt the kafka data processing and, probably, generate lag. "),T(),E(19,"h5",6),A(20,"Are you really sure about it?"),T()()(),E(21,"div",7)(22,"button",8),W("click",function(){return i.activeModal.dismiss()}),A(23,"No, cancel"),T(),E(24,"button",9),W("click",function(){return i.activeModal.close()}),A(25,"Yes"),T()()),2&t&&(F(11),Be("'",i.topic,"'"),F(3),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,""))},encapsulation:2}),e})(),IU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-resume-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:3,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Resume consumers"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"span"),A(9,"Resume all the partitions of the topic "),E(10,"b"),A(11),T(),A(12," from consumers "),E(13,"b"),A(14),T(),A(15," with group id "),E(16,"b"),A(17),T(),A(18,"' will restart to process the messages. "),T(),E(19,"h5",6),A(20,"Are you really sure about it?"),T()()(),E(21,"div",7)(22,"button",8),W("click",function(){return i.activeModal.dismiss()}),A(23,"No, cancel"),T(),E(24,"button",9),W("click",function(){return i.activeModal.close()}),A(25,"Yes"),T()()),2&t&&(F(11),Be("'",i.topic,"'"),F(3),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,""))},encapsulation:2}),e})(),OU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-restart-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName"},decls:23,vars:2,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Restart consumers"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"span"),A(9,"Restart the consumers "),E(10,"b"),A(11),T(),A(12," from group id "),E(13,"b"),A(14),T(),A(15,"' will can generate a temporary instability in your system. "),T(),E(16,"h5",6),A(17,"Are you really sure about it?"),T()()(),E(18,"div",7)(19,"button",8),W("click",function(){return i.activeModal.dismiss()}),A(20,"No, cancel"),T(),E(21,"button",9),W("click",function(){return i.activeModal.close()}),A(22,"Yes"),T()()),2&t&&(F(11),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,""))},encapsulation:2}),e})(),kU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-start-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName"},decls:22,vars:2,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Start consumers"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"span"),A(9,"Start the consumer "),E(10,"b"),A(11),T(),A(12," from group id "),E(13,"b"),A(14),T()(),E(15,"h5",6),A(16,"Are you really sure about it?"),T()()(),E(17,"div",7)(18,"button",8),W("click",function(){return i.activeModal.dismiss()}),A(19,"No, cancel"),T(),E(20,"button",9),W("click",function(){return i.activeModal.close()}),A(21,"Yes"),T()()),2&t&&(F(11),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,"'"))},encapsulation:2}),e})(),RU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-stop-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName"},decls:22,vars:2,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(E(0,"div",0)(1,"h4",1),A(2,"Stop consumer"),T(),E(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),E(4,"span",3),A(5,"\xd7"),T()()(),E(6,"div",4)(7,"div",5)(8,"span"),A(9,"Stop the consumer "),E(10,"b"),A(11),T(),A(12," from group id "),E(13,"b"),A(14),T()(),E(15,"h5",6),A(16,"Are you really sure about it?"),T()()(),E(17,"div",7)(18,"button",8),W("click",function(){return i.activeModal.dismiss()}),A(19,"No, cancel"),T(),E(20,"button",9),W("click",function(){return i.activeModal.close()}),A(21,"Yes"),T()()),2&t&&(F(11),Be("'",i.consumerName,"'"),F(3),Be("'",i.groupId,"'"))},encapsulation:2}),e})();var zM=iu(439);function YM(e,n,t,i,r,o,s){try{var a=e[o](s),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(i,r)}function zr(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(l){YM(o,i,r,s,a,"next",l)}function a(l){YM(o,i,r,s,a,"throw",l)}s(void 0)})}}function Yr(e,n){const t="object"==typeof n;return new Promise((i,r)=>{const o=new vr({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{t?i(n.defaultValue):r(new bc)}});e.subscribe(o)})}let JM=(()=>{class e{constructor(){this.rootUrl="/kafka-flow"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); + */let vB=(()=>{class e{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(i,r,o,s)=>{let a=[],l="";if(Array.isArray(o)){const v=new RegExp(o.map(y=>"[\\^$.|?*+()".indexOf(y)>=0?`\\${y}`:y).join("|"));a=i.split(v),l=i.match(v)?.[0]??""}else a=i.split(o),l=o;const u=a.length>1?`${l}${a[1]}`:"";let f=a[0]??"";const p=this.separatorLimit.replace(/\s/g,"");p&&+p&&(f="-"===f[0]?`-${f.slice(1,f.length).slice(0,p.length)}`:f.slice(0,p.length));const m=/(\d+)(\d{3})/;for(;r&&m.test(f);)f=f.replace(m,"$1"+r+"$2");return void 0===s?f+u:0===s?f:f+u.substring(0,s+1)},this.percentage=i=>Number(i)>=0&&Number(i)<=100,this.getPrecision=i=>{const r=i.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=i=>{for(let r=this.suffix?.length-1;r>=0;r--){const o=this.suffix.substring(r,this.suffix?.length);if(i.includes(o)&&r!==this.suffix?.length-1&&(r-1<0||!i.includes(this.suffix.substring(r-1,this.suffix?.length))))return i.replace(o,"")}return i},this.checkInputPrecision=(i,r,o)=>{if(r<1/0){if(Array.isArray(o)){const u=o.find(f=>f!==this.thousandSeparator);o=u||o[0]}const s=new RegExp(this._charToRegExpExpression(o)+`\\d{${r}}.*$`),l=(i.match(s)??[])[0]?.length??0;l-1>r&&(i=i.substring(0,i.length-(l-1-r))),0===r&&this._compareOrIncludes(i[i.length-1],o,this.thousandSeparator)&&(i=i.substring(0,i.length-1))}return i},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,i){const[r,o]=i;return this.customPattern=o,this.applyMask(t,r)}applyMask(t,i,r=0,o=!1,s=!1,a=(()=>{})){if(!i||"string"!=typeof t)return"";let l=0,u="",f=!1,p=!1,m=1,v=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t));const y=t.toString().split("");if("IP"===i){const k=t.split(".");this.ipError=this._validIP(k),i="099.099.099.099"}const D=[];for(let k=0;k11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const k=this.getPrecision(i);t=this.checkInputPrecision(t,k,this.decimalMarker)}t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))&&(t=`${t.substring(0,t.indexOf(".")-1)}${t.substring(t.indexOf("."),t.length)}`),u=this.percentage(t)?t:t.substring(0,t.length-1)}else if(i.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.thousandSeparator&&!this._compareOrIncludes(t[1],this.decimalMarker,this.thousandSeparator)&&!s?t.slice(0,t.length-1):t,s&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const k=this._charToRegExpExpression(this.thousandSeparator);let x='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(k,"");if(Array.isArray(this.decimalMarker))for(const Ae of this.decimalMarker)x=x.replace(this._charToRegExpExpression(Ae),"");else x=x.replace(this._charToRegExpExpression(this.decimalMarker),"");const U=new RegExp("["+x+"]");(t.match(U)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const ge=this.getPrecision(i),Ce=(t=this.checkInputPrecision(t,ge,this.decimalMarker)).replace(new RegExp(k,"g"),"");u=this._formatWithSeparators(Ce,this.thousandSeparator,this.decimalMarker,ge);const Ke=u.indexOf(",")-t.indexOf(","),Le=u.length-t.length;if(Le>0&&","!==u[r]){p=!0;let Ae=0;do{this._shift.add(r+Ae),Ae++}while(Ae0&&!(u.indexOf(",")>=r&&r>3)||!(u.indexOf(".")>=r&&r>3)&&Le<=0?(this._shift.clear(),p=!0,m=Le,this._shift.add(r+=Le)):this._shift.clear()}else for(let k=0,x=y[0];k2){l+=1,this._shiftStep(i,l,y.length),k--,this.leadZeroDateTime&&(u+="0");continue}if("h"===i[l]&&"2"===u&&Number(x)>3){l+=1,k--;continue}if("m"===i[l]&&Number(x)>5){l+=1,this._shiftStep(i,l,y.length),k--,this.leadZeroDateTime&&(u+="0");continue}if("s"===i[l]&&Number(x)>5){l+=1,this._shiftStep(i,l,y.length),k--,this.leadZeroDateTime&&(u+="0");continue}const U=31;if("d"===i[l]&&(Number(x)>3&&this.leadZeroDateTime||Number(t.slice(l,l+2))>U||"/"===t[l+1])){l+=1,this._shiftStep(i,l,y.length),k--,this.leadZeroDateTime&&(u+="0");continue}if("M"===i[l]){const Ce=0===l&&(Number(x)>2||Number(t.slice(l,l+2))>12||"/"===t[l+1]),Ke=t.slice(l-3,l-1).includes("/")&&("/"===t[l-2]&&Number(t.slice(l-1,l+1))>12&&"/"!==t[l]||"/"===t[l]||"/"===t[l-3]&&Number(t.slice(l-2,l))>12&&"/"!==t[l-1]||"/"===t[l-1]),Le=Number(t.slice(l-3,l-1))<=U&&!t.slice(l-3,l-1).includes("/")&&"/"===t[l-1]&&(Number(t.slice(l,l+2))>12||"/"===t[l+1]),Ae=Number(t.slice(l-3,l-1))>U&&!t.slice(l-3,l-1).includes("/")&&!t.slice(l-2,l).includes("/")&&Number(t.slice(l-2,l))>12,cn=Number(t.slice(l-3,l-1))<=U&&!t.slice(l-3,l-1).includes("/")&&"/"!==t[l-1]&&Number(t.slice(l-1,l+1))>12;if(Number(x)>1&&this.leadZeroDateTime||Ce||Ke||Le||Ae||cn){l+=1,this._shiftStep(i,l,y.length),k--,this.leadZeroDateTime&&(u+="0");continue}}u+=x,l++}else" "===x&&" "===i[l]?(u+=x,l++):-1!==this.maskSpecialCharacters.indexOf(i[l]??"")?(u+=i[l],l++,this._shiftStep(i,l,y.length),k--):this.maskSpecialCharacters.indexOf(x)>-1&&this.maskAvailablePatterns[i[l]??""]&&this.maskAvailablePatterns[i[l]??""]?.optional?(!!y[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&!i.match(/^9+\.0+$/)&&(u+=y[l]),l++,k--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(x)===this.maskExpression[l+2]&&f||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(x)===this.maskExpression[l+2]&&f?(l+=3,u+=x):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(x)<0&&x!==this.placeHolderCharacter&&(v=!0);u.length+1===i.length&&-1!==this.maskSpecialCharacters.indexOf(i[i.length-1]??"")&&(u+=i[i.length-1]);let w=r+1;for(;this._shift.has(w);)m++,w++;let N=o&&!i.startsWith("separator")?l:this._shift.has(r)?m:0;v&&N--,a(N,p),m<0&&this._shift.clear();let A=!1;s&&(A=y.every(k=>this.maskSpecialCharacters.includes(k)));let S=`${this.prefix}${A?"":u}${this.suffix}`;return 0===u.length&&(S=`${this.prefix}${u}`),S}_findSpecialChar(t){return this.maskSpecialCharacters.find(i=>i===t)}_checkSymbolMask(t,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,(this.maskAvailablePatterns[i]?.pattern&&this.maskAvailablePatterns[i]?.pattern.test(t))??!1}_stripToDecimal(t){return t.split("").filter((i,r)=>{const o="string"==typeof this.decimalMarker?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||o||"-"===i&&0===r&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,i,r){const o=/[*?]/g.test(t.slice(0,i))?r:i;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(t,i,r){return Array.isArray(i)?i.filter(o=>o!==r).includes(t):t===i}_validIP(t){return!(4===t.length&&!t.some((i,r)=>t.length!==r+1?""===i||Number(i)>255:""===i||Number(i.substring(0,3))>255))}}return e.\u0275fac=function(t){return new(t||e)(L(wM))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})();function yB(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let bB=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:SM,useValue:t},{provide:MM,useValue:_B},{provide:wM,useFactory:yB,deps:[MM,SM]},vB]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})();const NM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};NM.KeyboardEvent||(NM.KeyboardEvent=function(e,n){});let EM=(()=>{class e{constructor(t,i){this.document=t,this.platformId=i,this.documentIsAccessible=function xC(e){return e===OC}(this.platformId)}static getCookieRegExp(t){const i=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch{return t}}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),e.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const r=e.getCookieRegExp(t).exec(this.document.cookie);return r[1]?e.safeDecodeURIComponent(r[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},i=this.document;return i.cookie&&""!==i.cookie&&i.cookie.split(";").forEach(r=>{const[o,s]=r.split("=");t[e.safeDecodeURIComponent(o.replace(/^ /,""))]=e.safeDecodeURIComponent(s)}),t}set(t,i,r,o,s,a,l){if(!this.documentIsAccessible)return;if("number"==typeof r||r instanceof Date||o||s||a||l)return void this.set(t,i,{expires:r,path:o,domain:s,secure:a,sameSite:l||"Lax"});let u=encodeURIComponent(t)+"="+encodeURIComponent(i)+";";const f=r||{};f.expires&&(u+="number"==typeof f.expires?"expires="+new Date((new Date).getTime()+1e3*f.expires*60*60*24).toUTCString()+";":"expires="+f.expires.toUTCString()+";"),f.path&&(u+="path="+f.path+";"),f.domain&&(u+="domain="+f.domain+";"),!1===f.secure&&"None"===f.sameSite&&(f.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),f.secure&&(u+="secure;"),f.sameSite||(f.sameSite="Lax"),u+="sameSite="+f.sameSite+";",this.document.cookie=u}delete(t,i,r,o,s="Lax"){if(!this.documentIsAccessible)return;const a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(t,"",{expires:a,path:i,domain:r,secure:o,sameSite:s})}deleteAll(t,i,r,o="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const a in s)s.hasOwnProperty(a)&&this.delete(a,t,i,r,o)}}return e.\u0275fac=function(t){return new(t||e)(L(Dt),L(dc))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const DB=[];let CB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[Cf.forRoot(DB),Cf]}),e})(),wB=(()=>{class e{constructor(){this.title="dashboard"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=et({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,i){1&t&&Li(0,"router-outlet")},dependencies:[d_],encapsulation:2}),e})();const SB=["addListener","removeListener"],MB=["addEventListener","removeEventListener"],NB=["on","off"];function xn(e,n,t,i){if(ye(t)&&(i=t,t=void 0),i)return xn(e,n,t).pipe(Ym(i));const[r,o]=function IB(e){return ye(e.addEventListener)&&ye(e.removeEventListener)}(e)?MB.map(s=>a=>e[s](n,a,t)):function EB(e){return ye(e.addListener)&&ye(e.removeListener)}(e)?SB.map(TM(e,n)):function TB(e){return ye(e.on)&&ye(e.off)}(e)?NB.map(TM(e,n)):[];if(!r&&Ts(e))return dt(s=>xn(s,n,t))(ut(e));if(!r)throw new TypeError("Invalid event target");return new je(s=>{const a=(...l)=>s.next(1o(a)})}function TM(e,n){return t=>i=>e[t](n,i)}class AB extends Ct{constructor(n,t){super()}schedule(n,t=0){return this}}const xf={setInterval(e,n,...t){const{delegate:i}=xf;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=xf;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},IM={now:()=>(IM.delegate||Date).now(),delegate:void 0};class Hc{constructor(n,t=Hc.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Hc.now=IM.now;const Rf=new class OB extends Hc{constructor(n,t=Hc.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class kB extends AB{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return xf.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&xf.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,dn(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),xB=Rf;function jc(e=0,n,t=xB){let i=-1;return null!=n&&(si(n)?t=n:i=n),new je(r=>{let o=function RB(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}const{isArray:PB}=Array;function AM(e){return 1===e.length&&PB(e[0])?e[0]:e}function Pf(...e){const n=rt(e),t=AM(e);return t.length?new je(i=>{let r=t.map(()=>[]),o=t.map(()=>!1);i.add(()=>{r=o=null});for(let s=0;!i.closed&&s{if(r[s].push(a),r.every(l=>l.length)){const l=r.map(u=>u.shift());i.next(n?n(...l):l),r.some((u,f)=>!u.length&&o[f])&&i.complete()}},()=>{o[s]=!0,!r[s].length&&i.complete()}));return()=>{r=o=null}}):Xt}function Vt(e){return qe((n,t)=>{ut(e).subscribe(Oe(t,()=>t.complete(),Dn)),!t.closed&&n.subscribe(t)})}function K_(...e){const n=rt(e);return qe((t,i)=>{const r=e.length,o=new Array(r);let s=e.map(()=>!1),a=!1;for(let l=0;l{o[l]=u,!a&&!s[l]&&(s[l]=!0,(a=s.every(Rn))&&(s=null))},Dn));t.subscribe(Oe(i,l=>{if(a){const u=[l,...o];i.next(n?n(...u):u)}}))})}function QH(e,n){if(1&e){const t=It();M(0,"button",1),W("click",function(){return mt(t),_t(z().close())}),T()}}new je(Dn),Math,Math,Math;const ZM=["*"],mj=["dialog"];function sv(e){return"string"==typeof e}function fs(e){return null!=e}function za(e){return(e||document.body).getBoundingClientRect()}const QM={animation:!0,transitionTimerDelayMs:5},u$=()=>{},{transitionTimerDelayMs:d$}=QM,Kc=new Map,bn=(e,n,t,i)=>{let r=i.context||{};const o=Kc.get(n);if(o)switch(i.runningTransition){case"continue":return Xt;case"stop":e.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Kc.delete(n)}const s=t(n,i.animation,r)||u$;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>s()),J(void 0).pipe(function l$(e){return n=>new je(t=>n.subscribe({next:s=>e.run(()=>t.next(s)),error:s=>e.run(()=>t.error(s)),complete:()=>e.run(()=>t.complete())}))}(e));const a=new Ue,l=new Ue,u=a.pipe(function LB(...e){return n=>Dc(n,J(...e))}(!0));Kc.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const f=function c$(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const p=xn(n,"transitionend").pipe(Vt(u),vn(({target:v})=>v===n));(function kM(...e){return 1===(e=AM(e)).length?ut(e[0]):new je(function FB(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i{if(t){for(let o=0;o{Kc.delete(n),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let qc=(()=>{class e{constructor(){this.animation=QM.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})();const _$=({classList:e})=>{e.remove("show")};let v$=(()=>{class e{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(L(qc))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),y$=(()=>{class e{constructor(t,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new ue,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=bn(this._zone,this._element.nativeElement,_$,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const i=t.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(C(v$),C(pi),C(Je),C(Ye))},e.\u0275cmp=et({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,i){2&t&&ht("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[zt],ngContentSelectors:ZM,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(t,i){1&t&&(Pg(),Fg(0),Z(1,QH,1,0,"button",0)),2&t&&(P(1),Q("ngIf",i.dismissible))},dependencies:[ns],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),e})(),oN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),lN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),cN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})();var Bt=(()=>{return(e=Bt||(Bt={}))[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",Bt;var e})();typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const dN=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function fN(e){const n=Array.from(e.querySelectorAll(dN)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let bN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei,CM]}),e})(),hv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=B({type:e,selectors:[["",8,"navbar"]]}),e})(),wN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})();class ms{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}let iU=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(sn(1)).subscribe(()=>{bn(this._zone,this._el.nativeElement,(t,i)=>{i&&za(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return bn(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(C(Je),C(Ye))},e.\u0275cmp=et({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){2&t&&(Jo("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),ht("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})();class pr{close(n){}dismiss(n){}}class rU{constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Ue,this._dismissed=new Ue,this._hidden=new Ue,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Vt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Vt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function JM(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():J(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Pf(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Xc=(()=>{return(e=Xc||(Xc={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",Xc;var e})();let oU=(()=>{class e{constructor(t,i,r){this._document=t,this._elRef=i,this._zone=r,this._closed$=new Ue,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ue,this.shown=new Ue,this.hidden=new Ue}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":sv(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(sn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=Pf(bn(this._zone,t,()=>t.classList.remove("show"),i),bn(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const t={animation:this.animation,runningTransition:"continue"};Pf(bn(this._zone,this._elRef.nativeElement,(o,s)=>{s&&za(o),o.classList.add("show")},t),bn(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{xn(t,"keydown").pipe(Vt(this._closed$),vn(r=>r.which===Bt.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Xc.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;xn(this._dialogEl.nativeElement,"mousedown").pipe(Vt(this._closed$),Kt(()=>i=!1),vi(()=>xn(t,"mouseup").pipe(Vt(this._closed$),sn(1))),vn(({target:r})=>t===r)).subscribe(()=>{i=!0}),xn(t,"click").pipe(Vt(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Xc.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=fN(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&bn(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(C(Dt),C(Je),C(Ye))},e.\u0275cmp=et({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(1&t&&Nd(mj,7),2&t){let r;at(r=lt())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){2&t&&(ze("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Jo("modal d-block"+(i.windowClass?" "+i.windowClass:"")),ht("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ZM,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,i){1&t&&(Pg(),M(0,"div",0,1)(2,"div",2),Fg(3),T()()),2&t&&Jo("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})(),sU=(()=>{class e{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(t>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=s),r.overflow=o}}}return e.\u0275fac=function(t){return new(t||e)(L(Dt))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aU=(()=>{class e{constructor(t,i,r,o,s,a){this._applicationRef=t,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new Ue,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new ue,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=xn(n,"focusin").pipe(Vt(t),ne(o=>o.target));xn(n,"keydown").pipe(Vt(t),vn(o=>o.which===Bt.Tab),K_(r)).subscribe(([o,s])=>{const[a,l]=fN(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&xn(n,"click").pipe(Vt(t),K_(r),ne(o=>o[1])).subscribe(o=>o.focus())})})(0,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r){const o=r.container instanceof HTMLElement?r.container:fs(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new pr,l=this._getContentRef(r.injector||t,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,f=this._attachWindowComponent(o,l.nodes),p=new rU(f,l,u,r.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe(sn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=m=>{p.close(m)},a.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,r),u.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=Dm(iU,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let r=Dm(oU,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,i){this._windowAttributes.forEach(r=>{fs(i[r])&&(t[r]=i[r])})}_applyBackdropOptions(t,i){this._backdropAttributes.forEach(r=>{fs(i[r])&&(t[r]=i[r])})}_getContentRef(t,i,r,o){return i?i instanceof bt?this._createFromTemplateRef(i,r):sv(i)?this._createFromString(i):this._createFromComponent(t,i,r,o):new ms([])}_createFromTemplateRef(t,i){const o=t.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new ms([o.rootNodes],o)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new ms([[i]])}_createFromComponent(t,i,r,o){const s=gn.create({providers:[{provide:pr,useValue:r}],parent:t}),a=Dm(i,{environmentInjector:this._applicationRef.injector,elementInjector:s}),l=a.location.nativeElement;return o.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new ms([[l]],a.hostView,a)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(L(fc),L(gn),L(Dt),L(sU),L(Rp),L(Ye))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lU=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(L(qc))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),SN=(()=>{class e{constructor(t,i,r){this._injector=t,this._modalStack=i,this._config=r}open(t,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(L(gn),L(aU),L(lU))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),MN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({providers:[SN]}),e})(),IN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),LN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),BN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),HN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),jN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),$N=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),UN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),GN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})();new q("live announcer delay",{providedIn:"root",factory:function DU(){return 100}});let WN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[ei]}),e})(),zN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({}),e})();const CU=[rN,oN,lN,cN,bN,wN,MN,IN,zN,LN,BN,HN,jN,$N,UN,GN,WN];let wU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({imports:[CU,rN,oN,lN,cN,bN,wN,MN,IN,zN,LN,BN,HN,jN,$N,UN,GN,WN]}),e})(),NU=(()=>{class e{constructor(t){this.activeModal=t,this.save=()=>{this.activeModal.close(this.rewindDate)}}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-rewind-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:4,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],["for","rewindDate"],[1,"input-group"],["id","rewindDate","placeholder","yyyy-mm-dd hh:MM:ss","type","datetime-local",1,"form-control",3,"ngModel","ngModelChange"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Rewind consumers offset"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"label",6),I(9,"Select the datetime to rewind all the partition-offsets of the topic "),M(10,"b"),I(11),T(),I(12," from consumers "),M(13,"b"),I(14),T(),I(15," with group id "),M(16,"b"),I(17),T(),I(18,"' "),T(),M(19,"div",7)(20,"input",8),W("ngModelChange",function(o){return i.rewindDate=o}),T()()()(),M(21,"div",9)(22,"button",10),W("click",function(){return i.activeModal.dismiss()}),I(23,"Cancel"),T(),M(24,"button",11),W("click",function(){return i.save()}),I(25,"OK"),T()()),2&t&&(P(11),He("'",i.topic,"'"),P(3),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,""),P(3),Q("ngModel",i.rewindDate))},dependencies:[Pc,I_,Of],encapsulation:2}),e})(),EU=(()=>{class e{constructor(t){this.activeModal=t,this.save=()=>{this.activeModal.close(this.workersCount)}}ngOnInit(){this.oldWorkersCount=this.workersCount}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-workers-count-modal"]],inputs:{workersCount:"workersCount",groupId:"groupId",consumerName:"consumerName"},decls:28,vars:4,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],["for","oldWorkersCount"],[1,"input-group","mb-2"],["id","oldWorkersCount","type","number","readonly","",1,"form-control",3,"ngModel","ngModelChange"],["for","workersCount"],[1,"input-group"],["id","workersCount","type","number",1,"form-control",3,"ngModel","ngModelChange"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Consumer workers running"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"label"),I(9,"Update the number of workers in consumers "),M(10,"b"),I(11),T(),I(12," from group id "),M(13,"b"),I(14),T()(),M(15,"label",6),I(16,"Current Value"),T(),M(17,"div",7)(18,"input",8),W("ngModelChange",function(o){return i.oldWorkersCount=o}),T()(),M(19,"label",9),I(20,"New Value"),T(),M(21,"div",10)(22,"input",11),W("ngModelChange",function(o){return i.workersCount=o}),T()()()(),M(23,"div",12)(24,"button",13),W("click",function(){return i.activeModal.dismiss()}),I(25,"Cancel"),T(),M(26,"button",14),W("click",function(){return i.save()}),I(27,"OK"),T()()),2&t&&(P(11),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,"'"),P(4),Q("ngModel",i.oldWorkersCount),P(4),Q("ngModel",i.workersCount))},dependencies:[Pc,H_,I_,Of],encapsulation:2}),e})(),TU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-reset-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:3,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Reset consumers offset"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"span"),I(9,"Reset the partition-offsets can generate a huge lag at the topic "),M(10,"b"),I(11),T(),I(12," to consumers "),M(13,"b"),I(14),T(),I(15," with group id "),M(16,"b"),I(17),T(),I(18,"'. "),T(),M(19,"h5",6),I(20,"Are you really sure about it?"),T()()(),M(21,"div",7)(22,"button",8),W("click",function(){return i.activeModal.dismiss()}),I(23,"No, cancel"),T(),M(24,"button",9),W("click",function(){return i.activeModal.close()}),I(25,"Yes"),T()()),2&t&&(P(11),He("'",i.topic,"'"),P(3),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,""))},encapsulation:2}),e})(),IU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-pause-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:3,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Pause consumers"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"span"),I(9,"Pause all the partitions of the topic "),M(10,"b"),I(11),T(),I(12," from consumers "),M(13,"b"),I(14),T(),I(15," with group id "),M(16,"b"),I(17),T(),I(18,"' will interrupt the kafka data processing and, probably, generate lag. "),T(),M(19,"h5",6),I(20,"Are you really sure about it?"),T()()(),M(21,"div",7)(22,"button",8),W("click",function(){return i.activeModal.dismiss()}),I(23,"No, cancel"),T(),M(24,"button",9),W("click",function(){return i.activeModal.close()}),I(25,"Yes"),T()()),2&t&&(P(11),He("'",i.topic,"'"),P(3),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,""))},encapsulation:2}),e})(),AU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-resume-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName",topic:"topic"},decls:26,vars:3,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Resume consumers"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"span"),I(9,"Resume all the partitions of the topic "),M(10,"b"),I(11),T(),I(12," from consumers "),M(13,"b"),I(14),T(),I(15," with group id "),M(16,"b"),I(17),T(),I(18,"' will restart to process the messages. "),T(),M(19,"h5",6),I(20,"Are you really sure about it?"),T()()(),M(21,"div",7)(22,"button",8),W("click",function(){return i.activeModal.dismiss()}),I(23,"No, cancel"),T(),M(24,"button",9),W("click",function(){return i.activeModal.close()}),I(25,"Yes"),T()()),2&t&&(P(11),He("'",i.topic,"'"),P(3),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,""))},encapsulation:2}),e})(),kU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-restart-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName"},decls:23,vars:2,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Restart consumers"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"span"),I(9,"Restart the consumers "),M(10,"b"),I(11),T(),I(12," from group id "),M(13,"b"),I(14),T(),I(15,"' will can generate a temporary instability in your system. "),T(),M(16,"h5",6),I(17,"Are you really sure about it?"),T()()(),M(18,"div",7)(19,"button",8),W("click",function(){return i.activeModal.dismiss()}),I(20,"No, cancel"),T(),M(21,"button",9),W("click",function(){return i.activeModal.close()}),I(22,"Yes"),T()()),2&t&&(P(11),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,""))},encapsulation:2}),e})(),OU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-start-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName"},decls:22,vars:2,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Start consumers"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"span"),I(9,"Start the consumer "),M(10,"b"),I(11),T(),I(12," from group id "),M(13,"b"),I(14),T()(),M(15,"h5",6),I(16,"Are you really sure about it?"),T()()(),M(17,"div",7)(18,"button",8),W("click",function(){return i.activeModal.dismiss()}),I(19,"No, cancel"),T(),M(20,"button",9),W("click",function(){return i.activeModal.close()}),I(21,"Yes"),T()()),2&t&&(P(11),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,"'"))},encapsulation:2}),e})(),xU=(()=>{class e{constructor(t){this.activeModal=t}}return e.\u0275fac=function(t){return new(t||e)(C(pr))},e.\u0275cmp=et({type:e,selectors:[["app-stop-modal"]],inputs:{groupId:"groupId",consumerName:"consumerName"},decls:22,vars:2,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],[1,"mt-3"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],["type","button",1,"btn","btn-success",3,"click"]],template:function(t,i){1&t&&(M(0,"div",0)(1,"h4",1),I(2,"Stop consumer"),T(),M(3,"button",2),W("click",function(){return i.activeModal.dismiss()}),M(4,"span",3),I(5,"\xd7"),T()()(),M(6,"div",4)(7,"div",5)(8,"span"),I(9,"Stop the consumer "),M(10,"b"),I(11),T(),I(12," from group id "),M(13,"b"),I(14),T()(),M(15,"h5",6),I(16,"Are you really sure about it?"),T()()(),M(17,"div",7)(18,"button",8),W("click",function(){return i.activeModal.dismiss()}),I(19,"No, cancel"),T(),M(20,"button",9),W("click",function(){return i.activeModal.close()}),I(21,"Yes"),T()()),2&t&&(P(11),He("'",i.consumerName,"'"),P(3),He("'",i.groupId,"'"))},encapsulation:2}),e})();var YN=iu(439);function KN(e,n,t,i,r,o,s){try{var a=e[o](s),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(i,r)}function Yr(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(l){KN(o,i,r,s,a,"next",l)}function a(l){KN(o,i,r,s,a,"throw",l)}s(void 0)})}}function Kr(e,n){const t="object"==typeof n;return new Promise((i,r)=>{const o=new vr({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{t?i(n.defaultValue):r(new bc)}});e.subscribe(o)})}let ZN=(()=>{class e{constructor(){this.rootUrl="/kafkaflow"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(); /** * @license Angular v14.2.9 * (c) 2010-2022 Google LLC. https://angular.io/ @@ -1918,7 +1918,7 @@ const wE=new q("ngx-mask config"),SE=new q("new ngx-mask config"),EE=new q("init * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class ZM{}class QM{} + */class JN{}class QN{} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1933,7 +1933,7 @@ const wE=new q("ngx-mask config"),SE=new q("new ngx-mask config"),EE=new q("init * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -class xU{encodeKey(n){return XM(n)}encodeValue(n){return XM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const PU=/%(\d[a-f0-9])/gi,LU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XM(e){return encodeURIComponent(e).replace(PU,(n,t)=>LU[t]??n)}function Yf(e){return`${e}`}class So{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new xU,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function FU(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(Yf):[Yf(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new So({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Yf(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Yf(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}} +class RU{encodeKey(n){return XN(n)}encodeValue(n){return XN(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const FU=/%(\d[a-f0-9])/gi,LU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XN(e){return encodeURIComponent(e).replace(FU,(n,t)=>LU[t]??n)}function Kf(e){return`${e}`}class So{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new RU,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function PU(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(Kf):[Kf(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new So({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Kf(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Kf(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}} /** * @license * Copyright Google LLC All Rights Reserved. @@ -1947,28 +1947,28 @@ class xU{encodeKey(n){return XM(n)}encodeValue(n){return XM(n)}decodeKey(n){retu * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function eN(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function tN(e){return typeof Blob<"u"&&e instanceof Blob}function nN(e){return typeof FormData<"u"&&e instanceof FormData}class eu{constructor(n,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function HU(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new qr),this.context||(this.context=new VU),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ap.set(m,n.setHeaders[m]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((p,m)=>p.set(m,n.setParams[m]),u)),new eu(t,i,o,{params:u,headers:l,context:f,reportProgress:a,responseType:r,withCredentials:s})}} + */function eE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function tE(e){return typeof Blob<"u"&&e instanceof Blob}function nE(e){return typeof FormData<"u"&&e instanceof FormData}class eu{constructor(n,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function BU(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new qr),this.context||(this.context=new VU),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ap.set(m,n.setHeaders[m]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((p,m)=>p.set(m,n.setParams[m]),u)),new eu(t,i,o,{params:u,headers:l,context:f,reportProgress:a,responseType:r,withCredentials:s})}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */var kt=(()=>((kt=kt||{})[kt.Sent=0]="Sent",kt[kt.UploadProgress=1]="UploadProgress",kt[kt.ResponseHeader=2]="ResponseHeader",kt[kt.DownloadProgress=3]="DownloadProgress",kt[kt.Response=4]="Response",kt[kt.User=5]="User",kt))();class _v{constructor(n,t=200,i="OK"){this.headers=n.headers||new qr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class vv extends _v{constructor(n={}){super(n),this.type=kt.ResponseHeader}clone(n={}){return new vv({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qf extends _v{constructor(n={}){super(n),this.type=kt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qf({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class iN extends _v{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}} + */var Ot=(()=>((Ot=Ot||{})[Ot.Sent=0]="Sent",Ot[Ot.UploadProgress=1]="UploadProgress",Ot[Ot.ResponseHeader=2]="ResponseHeader",Ot[Ot.DownloadProgress=3]="DownloadProgress",Ot[Ot.Response=4]="Response",Ot[Ot.User=5]="User",Ot))();class _v{constructor(n,t=200,i="OK"){this.headers=n.headers||new qr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class vv extends _v{constructor(n={}){super(n),this.type=Ot.ResponseHeader}clone(n={}){return new vv({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qf extends _v{constructor(n={}){super(n),this.type=Ot.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qf({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class iE extends _v{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */function yv(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let rN=(()=>{class e{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof eu)o=t;else{let l,u;l=r.headers instanceof qr?r.headers:new qr(r.headers),r.params&&(u=r.params instanceof So?r.params:new So({fromObject:r.params})),o=new eu(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Z(o).pipe(_o(l=>this.handler.handle(l)));if(t instanceof eu||"events"===r.observe)return s;const a=s.pipe(vn(l=>l instanceof qf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new So).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,yv(r,i))}post(t,i,r={}){return this.request("POST",t,yv(r,i))}put(t,i,r={}){return this.request("PUT",t,yv(r,i))}}return e.\u0275fac=function(t){return new(t||e)(L(ZM))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); + */function yv(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let rE=(()=>{class e{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof eu)o=t;else{let l,u;l=r.headers instanceof qr?r.headers:new qr(r.headers),r.params&&(u=r.params instanceof So?r.params:new So({fromObject:r.params})),o=new eu(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=J(o).pipe(_o(l=>this.handler.handle(l)));if(t instanceof eu||"events"===r.observe)return s;const a=s.pipe(vn(l=>l instanceof qf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new So).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,yv(r,i))}post(t,i,r={}){return this.request("POST",t,yv(r,i))}put(t,i,r={}){return this.request("PUT",t,yv(r,i))}}return e.\u0275fac=function(t){return new(t||e)(L(JN))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */class oN{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const bv=new q("HTTP_INTERCEPTORS");let jU=(()=>{class e{intercept(t,i){return i.handle(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); + */class oE{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const bv=new q("HTTP_INTERCEPTORS");let jU=(()=>{class e{intercept(t,i){return i.handle(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. @@ -1983,21 +1983,21 @@ class xU{encodeKey(n){return XM(n)}encodeValue(n){return XM(n)}decodeKey(n){retu * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -const $U=/^\)\]\}',?\n/;let sN=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new je(i=>{const r=this.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((v,y)=>r.setRequestHeader(v,y.join(","))),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const v=t.detectContentTypeHeader();null!==v&&r.setRequestHeader("Content-Type",v)}if(t.responseType){const v=t.responseType.toLowerCase();r.responseType="json"!==v?v:"text"}const o=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const v=r.statusText||"OK",y=new qr(r.getAllResponseHeaders()),D=function UU(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new vv({headers:y,status:r.status,statusText:v,url:D}),s},l=()=>{let{headers:v,status:y,statusText:D,url:w}=a(),M=null;204!==y&&(M=typeof r.response>"u"?r.responseText:r.response),0===y&&(y=M?200:0);let I=y>=200&&y<300;if("json"===t.responseType&&"string"==typeof M){const S=M;M=M.replace($U,"");try{M=""!==M?JSON.parse(M):null}catch(O){M=S,I&&(I=!1,M={error:O,text:M})}}I?(i.next(new qf({body:M,headers:v,status:y,statusText:D,url:w||void 0})),i.complete()):i.error(new iN({error:M,headers:v,status:y,statusText:D,url:w||void 0}))},u=v=>{const{url:y}=a(),D=new iN({error:v,status:r.status||0,statusText:r.statusText||"Unknown Error",url:y||void 0});i.error(D)};let f=!1;const p=v=>{f||(i.next(a()),f=!0);let y={type:kt.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),"text"===t.responseType&&!!r.responseText&&(y.partialText=r.responseText),i.next(y)},m=v=>{let y={type:kt.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),i.next(y)};return r.addEventListener("load",l),r.addEventListener("error",u),r.addEventListener("timeout",u),r.addEventListener("abort",u),t.reportProgress&&(r.addEventListener("progress",p),null!==o&&r.upload&&r.upload.addEventListener("progress",m)),r.send(o),i.next({type:kt.Sent}),()=>{r.removeEventListener("error",u),r.removeEventListener("abort",u),r.removeEventListener("load",l),r.removeEventListener("timeout",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==o&&r.upload&&r.upload.removeEventListener("progress",m)),r.readyState!==r.DONE&&r.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(L(FC))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); +const $U=/^\)\]\}',?\n/;let sE=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new je(i=>{const r=this.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((v,y)=>r.setRequestHeader(v,y.join(","))),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const v=t.detectContentTypeHeader();null!==v&&r.setRequestHeader("Content-Type",v)}if(t.responseType){const v=t.responseType.toLowerCase();r.responseType="json"!==v?v:"text"}const o=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const v=r.statusText||"OK",y=new qr(r.getAllResponseHeaders()),D=function UU(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new vv({headers:y,status:r.status,statusText:v,url:D}),s},l=()=>{let{headers:v,status:y,statusText:D,url:w}=a(),N=null;204!==y&&(N=typeof r.response>"u"?r.responseText:r.response),0===y&&(y=N?200:0);let A=y>=200&&y<300;if("json"===t.responseType&&"string"==typeof N){const S=N;N=N.replace($U,"");try{N=""!==N?JSON.parse(N):null}catch(k){N=S,A&&(A=!1,N={error:k,text:N})}}A?(i.next(new qf({body:N,headers:v,status:y,statusText:D,url:w||void 0})),i.complete()):i.error(new iE({error:N,headers:v,status:y,statusText:D,url:w||void 0}))},u=v=>{const{url:y}=a(),D=new iE({error:v,status:r.status||0,statusText:r.statusText||"Unknown Error",url:y||void 0});i.error(D)};let f=!1;const p=v=>{f||(i.next(a()),f=!0);let y={type:Ot.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),"text"===t.responseType&&!!r.responseText&&(y.partialText=r.responseText),i.next(y)},m=v=>{let y={type:Ot.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),i.next(y)};return r.addEventListener("load",l),r.addEventListener("error",u),r.addEventListener("timeout",u),r.addEventListener("abort",u),t.reportProgress&&(r.addEventListener("progress",p),null!==o&&r.upload&&r.upload.addEventListener("progress",m)),r.send(o),i.next({type:Ot.Sent}),()=>{r.removeEventListener("error",u),r.removeEventListener("abort",u),r.removeEventListener("load",l),r.removeEventListener("timeout",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==o&&r.upload&&r.upload.removeEventListener("progress",m)),r.readyState!==r.DONE&&r.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(L(PC))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const Dv=new q("XSRF_COOKIE_NAME"),Cv=new q("XSRF_HEADER_NAME");class aN{}let GU=(()=>{class e{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=wC(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(L(Dt),L(dc),L(Dv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),wv=(()=>{class e{constructor(t,i){this.tokenService=t,this.headerName=i}intercept(t,i){const r=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(t);const o=this.tokenService.getToken();return null!==o&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,o)})),i.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(L(aN),L(Cv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),WU=(()=>{class e{constructor(t,i){this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=this.injector.get(bv,[]);this.chain=i.reduceRight((r,o)=>new oN(r,o),this.backend)}return this.chain.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(L(QM),L(gn))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),KU=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:wv,useClass:jU}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Dv,useValue:t.cookieName}:[],t.headerName?{provide:Cv,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({providers:[wv,{provide:bv,useExisting:wv,multi:!0},{provide:aN,useClass:GU},{provide:Dv,useValue:"XSRF-TOKEN"},{provide:Cv,useValue:"X-XSRF-TOKEN"}]}),e})(),zU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Me({providers:[rN,{provide:ZM,useClass:WU},sN,{provide:QM,useExisting:sN}],imports:[KU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),lN=(()=>{class e{constructor(t,i){this.config=t,this.http=i}pauseConsumerTopic(t,i){var r=this;return zr(function*(){yield Yr(r.http.put(r.config.rootUrl+`/consumers/${t}/topics/${i}/pause`,""))})()}resumeConsumerTopic(t,i){var r=this;return zr(function*(){yield Yr(r.http.put(r.config.rootUrl+`/consumers/${t}/topics/${i}/resume`,""))})()}resetConsumerTopic(t,i){var r=this;return zr(function*(){yield Yr(r.http.put(r.config.rootUrl+`/consumers/${t}/topics/${i}/reset`,""))})()}rewindConsumerTopic(t,i,r){var o=this;return zr(function*(){const s=zM(r).format("YYYY-MM-DD HH:mm:ss");yield Yr(o.http.put(o.config.rootUrl+`/consumers/${t}/topics/${i}/rewind/${s}`,""))})()}stopConsumer(t){var i=this;return zr(function*(){yield Yr(i.http.put(i.config.rootUrl+`/consumers/${t}/stop`,""))})()}startConsumer(t){var i=this;return zr(function*(){yield Yr(i.http.put(i.config.rootUrl+`/consumers/${t}/start`,""))})()}restartConsumer(t){var i=this;return zr(function*(){yield Yr(i.http.put(i.config.rootUrl+`/consumers/${t}/restart`,""))})()}changeWorkers(t,i){var r=this;return zr(function*(){yield Yr(r.http.put(r.config.rootUrl+`/consumers/${t}/changeWorkers/${i}`,""))})()}getTelemetry(){var t=this;return zr(function*(){return yield Yr(t.http.get(t.config.rootUrl+"/consumers/telemetry"))})()}}return e.\u0275fac=function(t){return new(t||e)(L(JM),L(rN))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),YU=(()=>{class e{transform(t,i){if(!t)return null;const r=t.reduce((o,s)=>(o[s[i]]?o[s[i]].push(s):o[s[i]]=[s],o),{});return Object.keys(r).map(o=>({key:o,value:r[o]}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$t({name:"groupBy",type:e,pure:!0}),e})(),qU=(()=>{class e{transform(t,i,r="asc"){return"asc"!==(r=r.toLowerCase())&&"desc"!==r?t:Array.isArray(t)?(t.sort((o,s)=>o[i]s[i]?"asc"===r?1:-1:0),t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$t({name:"sort",type:e,pure:!0}),e})(); + */const Dv=new q("XSRF_COOKIE_NAME"),Cv=new q("XSRF_HEADER_NAME");class aE{}let GU=(()=>{class e{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=wC(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(L(Dt),L(dc),L(Dv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),wv=(()=>{class e{constructor(t,i){this.tokenService=t,this.headerName=i}intercept(t,i){const r=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(t);const o=this.tokenService.getToken();return null!==o&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,o)})),i.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(L(aE),L(Cv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),WU=(()=>{class e{constructor(t,i){this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=this.injector.get(bv,[]);this.chain=i.reduceRight((r,o)=>new oE(r,o),this.backend)}return this.chain.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(L(QN),L(gn))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),zU=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:wv,useClass:jU}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Dv,useValue:t.cookieName}:[],t.headerName?{provide:Cv,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({providers:[wv,{provide:bv,useExisting:wv,multi:!0},{provide:aE,useClass:GU},{provide:Dv,useValue:"XSRF-TOKEN"},{provide:Cv,useValue:"X-XSRF-TOKEN"}]}),e})(),YU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Ne({providers:[rE,{provide:JN,useClass:WU},sE,{provide:QN,useExisting:sE}],imports:[zU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),lE=(()=>{class e{constructor(t,i){this.config=t,this.http=i}pauseConsumerTopic(t,i){var r=this;return Yr(function*(){yield Kr(r.http.put(r.config.rootUrl+`/consumers/${t}/topics/${i}/pause`,""))})()}resumeConsumerTopic(t,i){var r=this;return Yr(function*(){yield Kr(r.http.put(r.config.rootUrl+`/consumers/${t}/topics/${i}/resume`,""))})()}resetConsumerTopic(t,i){var r=this;return Yr(function*(){yield Kr(r.http.put(r.config.rootUrl+`/consumers/${t}/topics/${i}/reset`,""))})()}rewindConsumerTopic(t,i,r){var o=this;return Yr(function*(){const s=YN(r).format("YYYY-MM-DD HH:mm:ss");yield Kr(o.http.put(o.config.rootUrl+`/consumers/${t}/topics/${i}/rewind/${s}`,""))})()}stopConsumer(t){var i=this;return Yr(function*(){yield Kr(i.http.put(i.config.rootUrl+`/consumers/${t}/stop`,""))})()}startConsumer(t){var i=this;return Yr(function*(){yield Kr(i.http.put(i.config.rootUrl+`/consumers/${t}/start`,""))})()}restartConsumer(t){var i=this;return Yr(function*(){yield Kr(i.http.put(i.config.rootUrl+`/consumers/${t}/restart`,""))})()}changeWorkers(t,i){var r=this;return Yr(function*(){yield Kr(r.http.put(r.config.rootUrl+`/consumers/${t}/changeWorkers/${i}`,""))})()}getTelemetry(){var t=this;return Yr(function*(){return yield Kr(t.http.get(t.config.rootUrl+"/consumers/telemetry"))})()}}return e.\u0275fac=function(t){return new(t||e)(L(ZN),L(rE))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})(),KU=(()=>{class e{transform(t,i){if(!t)return null;const r=t.reduce((o,s)=>(o[s[i]]?o[s[i]].push(s):o[s[i]]=[s],o),{});return Object.keys(r).map(o=>({key:o,value:r[o]}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$t({name:"groupBy",type:e,pure:!0}),e})(),qU=(()=>{class e{transform(t,i,r="asc"){return"asc"!==(r=r.toLowerCase())&&"desc"!==r?t:Array.isArray(t)?(t.sort((o,s)=>o[i]s[i]?"asc"===r?1:-1:0),t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=$t({name:"sort",type:e,pure:!0}),e})(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */const JU=["successAlert"];function ZU(e,n){if(1&e){const t=At();E(0,"ngb-alert",2,3),W("closed",function(){return mt(t),_t(K().successMessage="")}),E(2,"div",4)(3,"b"),A(4,"Success! "),T(),E(5,"span",4),A(6),T()()()}if(2&e){const t=K();F(6),fo(t.successMessage)}}function QU(e,n){if(1&e){const t=At();E(0,"button",14),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit;return _t(K().openStartModal(o.groupId,r.name))}),A(1,"Start"),T()}}function XU(e,n){if(1&e){const t=At();E(0,"button",15),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit;return _t(K().openStopModal(o.groupId,r.name))}),A(1,"Stop"),T()}}function e3(e,n){if(1&e){const t=At();E(0,"button",15),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit;return _t(K().openRestartModal(o.groupId,r.name))}),A(1,"Restart"),T()}}function t3(e,n){if(1&e){const t=At();E(0,"button",16),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit;return _t(K().openWorkersCountModal(o.groupId,r.name,r.workersCount))}),A(1,"Change number of workers"),T()}}function n3(e,n){if(1&e){const t=At();E(0,"button",14),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit,s=K().$implicit;return _t(K().openResumeModal(s.groupId,o.name,r.key))}),A(1,"Resume"),T()}}function r3(e,n){if(1&e){const t=At();E(0,"button",15),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit,s=K().$implicit;return _t(K().openPauseModal(s.groupId,o.name,r.key))}),A(1,"Pause"),T()}}function o3(e,n){if(1&e){const t=At();E(0,"button",20),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit,s=K().$implicit;return _t(K().openRewindModal(s.groupId,o.name,r.key))}),A(1,"Rewind Offset"),T()}}function s3(e,n){if(1&e){const t=At();E(0,"button",21),W("click",function(){mt(t);const r=K().$implicit,o=K().$implicit,s=K().$implicit;return _t(K().openResetModal(s.groupId,o.name,r.key))}),A(1,"Reset Offset"),T()}}function a3(e,n){1&e&&Li(0,"div")}function l3(e,n){1&e&&(E(0,"span"),A(1,"Offline"),T())}function c3(e,n){1&e&&(E(0,"span",27),A(1,"Paused"),T())}function u3(e,n){1&e&&(E(0,"span",28),A(1,"Running"),T())}function d3(e,n){if(1&e&&(J(0,c3,2,0,"ng-template",26),J(1,u3,2,0,"ng-template",26)),2&e){const t=K().$implicit,i=K(4);Q("ngIf",i.hasPausedPartition(t)),F(1),Q("ngIf",i.hasRunningPartition(t))}}function f3(e,n){if(1&e&&(E(0,"tr")(1,"td",22),A(2),T(),E(3,"td",22),A(4),T(),E(5,"td",22),A(6),T(),E(7,"td",22),J(8,a3,1,0,"div",23),J(9,l3,2,0,"ng-template",null,24,ji),J(11,d3,2,2,"ng-template",null,25,ji),T(),E(13,"td",22)(14,"span",9),A(15),wd(16,"date"),T()()()),2&e){const t=n.$implicit,i=Pi(10),r=Pi(12),o=K(4);F(2),fo(t.instanceName),F(2),fo(o.hasRunningPartition(t)?t.runningPartitions:t.pausedPartitions),F(2),fo(t.lag),F(2),Q("ngIf",t.isLost)("ngIfThen",i)("ngIfElse",r),F(6),Q("ngClass",t.isLost?"text-secondary":"text-success"),F(1),fo(Sd(16,8,t.lastUpdate+"Z","medium"))}}function h3(e,n){if(1&e&&(Li(0,"hr"),E(1,"h5"),A(2),J(3,n3,2,0,"button",10),J(4,r3,2,0,"button",11),J(5,o3,2,0,"button",17),J(6,s3,2,0,"button",18),T(),E(7,"table",19)(8,"thead")(9,"tr")(10,"th"),A(11,"Consumer instance"),T(),E(12,"th"),A(13,"Partitions"),T(),E(14,"th"),A(15,"Lag"),T(),E(16,"th"),A(17,"Status"),T(),E(18,"th"),A(19,"LastUpdate"),T()()(),E(20,"tbody"),J(21,f3,17,11,"ng-template",13),wd(22,"sort"),T()()),2&e){const t=n.$implicit,i=K().$implicit,r=K(2);F(2),Be(" Topic: ",t.key," "),F(1),Q("ngIf",t.value.some(r.hasPausedPartition)),F(1),Q("ngIf",t.value.some(r.hasRunningPartition)),F(1),Q("ngIf","Running"===i.status),F(1),Q("ngIf","Running"===i.status),F(15),Q("ngForOf",Sd(22,6,t.value,"instanceName"))}}const p3=function(e,n,t){return{"text-success":e,"text-warning":n,"text-danger":t}},g3=function(){return[]};function m3(e,n){if(1&e&&(E(0,"div")(1,"h4"),A(2),T(),E(3,"h4"),A(4,"Status: "),E(5,"span",9),A(6),T(),J(7,QU,2,0,"button",10),J(8,XU,2,0,"button",11),J(9,e3,2,0,"button",11),T(),E(10,"h4"),A(11),T(),E(12,"h4"),A(13),J(14,t3,2,0,"button",12),T(),J(15,h3,23,9,"ng-template",13),wd(16,"groupBy"),Li(17,"hr"),T()),2&e){const t=n.$implicit;F(2),Be("Consumer: ",t.name,""),F(3),Q("ngClass",Cd(13,p3,"Running"===t.status,"Paused"===t.status,"Not Running"===t.status)),F(1),fo(t.status),F(1),Q("ngIf","Not Running"===t.status),F(1),Q("ngIf","Running"===t.status),F(1),Q("ngIf","Running"===t.status),F(2),Be("Lag: ",t.lag,""),F(2),Be("Workers: ",t.workersCount," "),F(1),Q("ngIf","Running"===t.status),F(1),Q("ngForOf",Sd(16,10,t.assignments|| + */const ZU=["successAlert"];function JU(e,n){if(1&e){const t=It();M(0,"ngb-alert",2,3),W("closed",function(){return mt(t),_t(z().successMessage="")}),M(2,"div",4)(3,"b"),I(4,"Success! "),T(),M(5,"span",4),I(6),T()()()}if(2&e){const t=z();P(6),fo(t.successMessage)}}function QU(e,n){if(1&e){const t=It();M(0,"button",14),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit;return _t(z().openStartModal(o.groupId,r.name))}),I(1,"Start"),T()}}function XU(e,n){if(1&e){const t=It();M(0,"button",15),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit;return _t(z().openStopModal(o.groupId,r.name))}),I(1,"Stop"),T()}}function e3(e,n){if(1&e){const t=It();M(0,"button",15),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit;return _t(z().openRestartModal(o.groupId,r.name))}),I(1,"Restart"),T()}}function t3(e,n){if(1&e){const t=It();M(0,"button",16),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit;return _t(z().openWorkersCountModal(o.groupId,r.name,r.workersCount))}),I(1,"Change number of workers"),T()}}function n3(e,n){if(1&e){const t=It();M(0,"button",14),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit,s=z().$implicit;return _t(z().openResumeModal(s.groupId,o.name,r.key))}),I(1,"Resume"),T()}}function r3(e,n){if(1&e){const t=It();M(0,"button",15),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit,s=z().$implicit;return _t(z().openPauseModal(s.groupId,o.name,r.key))}),I(1,"Pause"),T()}}function o3(e,n){if(1&e){const t=It();M(0,"button",20),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit,s=z().$implicit;return _t(z().openRewindModal(s.groupId,o.name,r.key))}),I(1,"Rewind Offset"),T()}}function s3(e,n){if(1&e){const t=It();M(0,"button",21),W("click",function(){mt(t);const r=z().$implicit,o=z().$implicit,s=z().$implicit;return _t(z().openResetModal(s.groupId,o.name,r.key))}),I(1,"Reset Offset"),T()}}function a3(e,n){1&e&&Li(0,"div")}function l3(e,n){1&e&&(M(0,"span"),I(1,"Offline"),T())}function c3(e,n){1&e&&(M(0,"span",27),I(1,"Paused"),T())}function u3(e,n){1&e&&(M(0,"span",28),I(1,"Running"),T())}function d3(e,n){if(1&e&&(Z(0,c3,2,0,"ng-template",26),Z(1,u3,2,0,"ng-template",26)),2&e){const t=z().$implicit,i=z(4);Q("ngIf",i.hasPausedPartition(t)),P(1),Q("ngIf",i.hasRunningPartition(t))}}function f3(e,n){if(1&e&&(M(0,"tr")(1,"td",22),I(2),T(),M(3,"td",22),I(4),T(),M(5,"td",22),I(6),T(),M(7,"td",22),Z(8,a3,1,0,"div",23),Z(9,l3,2,0,"ng-template",null,24,ji),Z(11,d3,2,2,"ng-template",null,25,ji),T(),M(13,"td",22)(14,"span",9),I(15),wd(16,"date"),T()()()),2&e){const t=n.$implicit,i=Fi(10),r=Fi(12),o=z(4);P(2),fo(t.instanceName),P(2),fo(o.hasRunningPartition(t)?t.runningPartitions:t.pausedPartitions),P(2),fo(t.lag),P(2),Q("ngIf",t.isLost)("ngIfThen",i)("ngIfElse",r),P(6),Q("ngClass",t.isLost?"text-secondary":"text-success"),P(1),fo(Sd(16,8,t.lastUpdate+"Z","medium"))}}function h3(e,n){if(1&e&&(Li(0,"hr"),M(1,"h5"),I(2),Z(3,n3,2,0,"button",10),Z(4,r3,2,0,"button",11),Z(5,o3,2,0,"button",17),Z(6,s3,2,0,"button",18),T(),M(7,"table",19)(8,"thead")(9,"tr")(10,"th"),I(11,"Consumer instance"),T(),M(12,"th"),I(13,"Partitions"),T(),M(14,"th"),I(15,"Lag"),T(),M(16,"th"),I(17,"Status"),T(),M(18,"th"),I(19,"LastUpdate"),T()()(),M(20,"tbody"),Z(21,f3,17,11,"ng-template",13),wd(22,"sort"),T()()),2&e){const t=n.$implicit,i=z().$implicit,r=z(2);P(2),He(" Topic: ",t.key," "),P(1),Q("ngIf",t.value.some(r.hasPausedPartition)),P(1),Q("ngIf",t.value.some(r.hasRunningPartition)),P(1),Q("ngIf","Running"===i.status),P(1),Q("ngIf","Running"===i.status),P(15),Q("ngForOf",Sd(22,6,t.value,"instanceName"))}}const p3=function(e,n,t){return{"text-success":e,"text-warning":n,"text-danger":t}},g3=function(){return[]};function m3(e,n){if(1&e&&(M(0,"div")(1,"h4"),I(2),T(),M(3,"h4"),I(4,"Status: "),M(5,"span",9),I(6),T(),Z(7,QU,2,0,"button",10),Z(8,XU,2,0,"button",11),Z(9,e3,2,0,"button",11),T(),M(10,"h4"),I(11),T(),M(12,"h4"),I(13),Z(14,t3,2,0,"button",12),T(),Z(15,h3,23,9,"ng-template",13),wd(16,"groupBy"),Li(17,"hr"),T()),2&e){const t=n.$implicit;P(2),He("Consumer: ",t.name,""),P(3),Q("ngClass",Cd(13,p3,"Running"===t.status,"Paused"===t.status,"Not Running"===t.status)),P(1),fo(t.status),P(1),Q("ngIf","Not Running"===t.status),P(1),Q("ngIf","Running"===t.status),P(1),Q("ngIf","Running"===t.status),P(2),He("Lag: ",t.lag,""),P(2),He("Workers: ",t.workersCount," "),P(1),Q("ngIf","Running"===t.status),P(1),Q("ngForOf",Sd(16,10,t.assignments|| /** * @license * Copyright Google LLC All Rights Reserved. @@ -2005,7 +2005,7 @@ const $U=/^\)\]\}',?\n/;let sN=(()=>{class e{constructor(t){this.xhrFactory=t}ha * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -function t1(e,n,t){const i=rn()+e,r=k();return r[i]===ae?or(r,i,t?n.call(t):n()):function Ql(e,n){return e[n]}(r,i)}(17,g3),"topicName"))}}function _3(e,n){if(1&e&&(E(0,"div",5)(1,"div",6)(2,"div",7)(3,"h3"),A(4),T(),J(5,m3,18,18,"div",8),T()()()),2&e){const t=n.$implicit;F(4),Be("Group Id: ",t.groupId,""),F(1),Q("ngForOf",t.consumers)}}let v3=(()=>{class e{constructor(t,i){this.modalService=t,this.gateway=i,this.successSubject=new Ue,this.delayMs=5e3,this.successMessage="",this.updateData=()=>{this.gateway.getTelemetry().then(r=>{this.telemetryResponse=this.updateConsumersStatus(r)})},this.hasRunningPartition=r=>r.runningPartitions?.length>0,this.hasPausedPartition=r=>r.pausedPartitions?.length>0,this.isActive=r=>Math.abs(((new Date).getTime()-new Date(r+"Z").getTime())/1e3)<30,this.openWorkersCountModal=(r,o,s)=>{const a=this.modalService.open(NU);a.componentInstance.groupId=r,a.componentInstance.consumerName=o,a.componentInstance.workersCount=s,a.result.then(l=>{this.gateway.changeWorkers(o,l).then(()=>this.successSubject.next("The number of workers was updated successfully"))})},this.openResetModal=(r,o,s)=>{const a=this.modalService.open(TU);a.componentInstance.groupId=r,a.componentInstance.consumerName=o,a.componentInstance.topic=s,a.result.then(()=>{this.gateway.resetConsumerTopic(o,s).then(()=>this.successSubject.next("The partition-offsets of your consumer were reseted successfully"))})},this.openPauseModal=(r,o,s)=>{const a=this.modalService.open(AU);a.componentInstance.groupId=r,a.componentInstance.topic=s,a.componentInstance.consumerName=o,a.result.then(()=>{this.gateway.pauseConsumerTopic(o,s).then(()=>this.successSubject.next("Your consumer was paused successfully"))})},this.openRestartModal=(r,o)=>{const s=this.modalService.open(OU);s.componentInstance.groupId=r,s.componentInstance.consumerName=o,s.result.then(()=>{this.gateway.restartConsumer(o).then(()=>this.successSubject.next("Your consumer was restarted successfully"))})},this.openStartModal=(r,o)=>{const s=this.modalService.open(kU);s.componentInstance.groupId=r,s.componentInstance.consumerName=o,s.result.then(()=>{this.gateway.startConsumer(o).then(()=>this.successSubject.next("Your consumer was started successfully"))})},this.openStopModal=(r,o)=>{const s=this.modalService.open(RU);s.componentInstance.groupId=r,s.componentInstance.consumerName=o,s.result.then(()=>{this.gateway.stopConsumer(o).then(()=>this.successSubject.next("Your consumer was stopped successfully"))})},this.openResumeModal=(r,o,s)=>{const a=this.modalService.open(IU);a.componentInstance.groupId=r,a.componentInstance.consumerName=o,a.componentInstance.topic=s,a.result.then(()=>{this.gateway.resumeConsumerTopic(o,s).then(()=>this.successSubject.next("Your consumer was resumed successfully"))})},this.openRewindModal=(r,o,s)=>{const a=this.modalService.open(MU);a.componentInstance.consumerName=o,a.componentInstance.groupId=r,a.componentInstance.topic=s,a.result.then(l=>{const u=zM(l,"YYYY-MM-DDTHH:mm").toDate();this.gateway.rewindConsumerTopic(o,s,u).then(()=>this.successSubject.next("The partition-offset of your consumer were rewound successfully"))})}}ngOnInit(){this.successSubject.subscribe(t=>this.successMessage=t),this.successSubject.pipe(function EU(e,n=xf){return qe((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const u=o;o=null,i.next(u)}};function l(){const u=s+e,f=n.now();if(f{o=u,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(5e3)).subscribe(()=>this.successAlert?.close()),this.updateData(),function SU(e=0,n=xf){return e<0&&(e=0),jc(e,e,n)}(this.delayMs).subscribe(this.updateData)}updateConsumersStatus(t){const i=this;return t.groups?.forEach(r=>{r.consumers?.forEach(o=>{o.status=o.assignments.some(s=>s.runningPartitions?.length>0&&i.isActive(s.lastUpdate))?"Running":o.assignments.some(s=>s.pausedPartitions?.length>0&&i.isActive(s.lastUpdate))?"Paused":"Not Running",o.lag=o.assignments.map(s=>s.lag).reduce((s,a)=>s+a),o.assignments.forEach(s=>s.isLost=!i.isActive(s.lastUpdate))})}),t}}return e.\u0275fac=function(t){return new(t||e)(C(SM),C(lN))},e.\u0275cmp=et({type:e,selectors:[["app-consumer"]],viewQuery:function(t,i){if(1&t&&Md(JU,5),2&t){let r;at(r=lt())&&(i.successAlert=r.first)}},decls:2,vars:2,consts:[["type","success",3,"closed",4,"ngIf"],["class","container",4,"ngFor","ngForOf"],["type","success",3,"closed"],["successAlert",""],[1,"text-center"],[1,"container"],[1,"card","my-3"],[1,"card-body"],[4,"ngFor","ngForOf"],[3,"ngClass"],["class","btn btn-sm btn-outline-success ml-2","type","button",3,"click",4,"ngIf"],["class","btn btn-sm btn-outline-warning ml-2","type","button",3,"click",4,"ngIf"],["class","btn btn-sm btn-outline-success ml-3","type","button",3,"click",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","button",1,"btn","btn-sm","btn-outline-success","ml-2",3,"click"],["type","button",1,"btn","btn-sm","btn-outline-warning","ml-2",3,"click"],["type","button",1,"btn","btn-sm","btn-outline-success","ml-3",3,"click"],["class","btn btn-sm btn-outline-info ml-2","type","button",3,"click",4,"ngIf"],["class","btn btn-sm btn-outline-secondary ml-2","type","button",3,"click",4,"ngIf"],[1,"table","table-striped","table-hover","mt-1"],["type","button",1,"btn","btn-sm","btn-outline-info","ml-2",3,"click"],["type","button",1,"btn","btn-sm","btn-outline-secondary","ml-2",3,"click"],[1,"text-left"],[4,"ngIf","ngIfThen","ngIfElse"],["consumer_lost",""],["consumer_on",""],[3,"ngIf"],[1,"font-weight-bold","text-warning"],[1,"font-weight-bold","text-success"]],template:function(t,i){1&t&&(J(0,ZU,7,1,"ngb-alert",0),J(1,_3,6,2,"div",1)),2&t&&(Q("ngIf",i.successMessage),F(1),Q("ngForOf",null==i.telemetryResponse?null:i.telemetryResponse.groups))},dependencies:[SC,ka,ns,y$,IC,YU,qU],encapsulation:2}),e})(),y3=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=et({type:e,selectors:[["app-home"]],decls:12,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],[1,"container-fluid"],["href","#",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","me-auto","mb-2","mb-lg-0"],[1,"nav-item"],["aria-current","page","href","#",1,"nav-link","active"]],template:function(t,i){1&t&&(E(0,"nav",0)(1,"div",1)(2,"a",2),A(3,"KafkaFlow - Dashboard"),T(),E(4,"button",3),Li(5,"span",4),T(),E(6,"div",5)(7,"ul",6)(8,"li",7)(9,"a",8),A(10,"Consumers"),T()()()()()(),Li(11,"app-consumer"))},dependencies:[hv,v3],encapsulation:2}),e})(),D3=(()=>{class e{constructor(t){this.cookieService=t}intercept(t,i){return t=t.clone({setHeaders:this.cookieService.getAll()}),i.handle(t).pipe(function b3(e=1/0){let n;n=e&&"object"==typeof e?e:{count:e};const{count:t=1/0,delay:i,resetOnSuccess:r=!1}=n;return t<=0?xn:qe((o,s)=>{let l,a=0;const u=()=>{let f=!1;l=o.subscribe(ke(s,p=>{r&&(a=0),s.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,u()):f=!0};if(null!=i){const v="number"==typeof i?jc(i):ut(i(p,a)),y=ke(s,()=>{y.unsubscribe(),m()},()=>{s.complete()});v.subscribe(y)}else m()}else s.error(p)})),f&&(l.unsubscribe(),l=null,u())};u()})}(1),$r(r=>{let o="";return o=r.error instanceof ErrorEvent?`Error: ${r.error.message}`:`Error Code: ${r.status}\nMessage: ${r.message}`,console.error(o),Ra(o)}))}}return e.\u0275fac=function(t){return new(t||e)(L(NE))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})();const C3={validation:!1},w3=[{path:"",component:y3}];let S3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e,bootstrap:[wH]}),e.\u0275inj=Me({providers:[JM,NE,lN,{provide:bv,useClass:D3,multi:!0}],imports:[kP,CH,Cf.forRoot(w3),zU,CE,wU,bH.forRoot(C3),Cf]}),e})();(function ox(){Q1=!1} +function t1(e,n,t){const i=rn()+e,r=O();return r[i]===ae?or(r,i,t?n.call(t):n()):function Ql(e,n){return e[n]}(r,i)}(17,g3),"topicName"))}}function _3(e,n){if(1&e&&(M(0,"div",5)(1,"div",6)(2,"div",7)(3,"h3"),I(4),T(),Z(5,m3,18,18,"div",8),T()()()),2&e){const t=n.$implicit;P(4),He("Group Id: ",t.groupId,""),P(1),Q("ngForOf",t.consumers)}}let v3=(()=>{class e{constructor(t,i){this.modalService=t,this.gateway=i,this.successSubject=new Ue,this.delayMs=5e3,this.successMessage="",this.updateData=()=>{this.gateway.getTelemetry().then(r=>{this.telemetryResponse=this.updateConsumersStatus(r)})},this.hasRunningPartition=r=>r.runningPartitions?.length>0,this.hasPausedPartition=r=>r.pausedPartitions?.length>0,this.isActive=r=>Math.abs(((new Date).getTime()-new Date(r+"Z").getTime())/1e3)<30,this.openWorkersCountModal=(r,o,s)=>{const a=this.modalService.open(EU);a.componentInstance.groupId=r,a.componentInstance.consumerName=o,a.componentInstance.workersCount=s,a.result.then(l=>{this.gateway.changeWorkers(o,l).then(()=>this.successSubject.next("The number of workers was updated successfully"))})},this.openResetModal=(r,o,s)=>{const a=this.modalService.open(TU);a.componentInstance.groupId=r,a.componentInstance.consumerName=o,a.componentInstance.topic=s,a.result.then(()=>{this.gateway.resetConsumerTopic(o,s).then(()=>this.successSubject.next("The partition-offsets of your consumer were reseted successfully"))})},this.openPauseModal=(r,o,s)=>{const a=this.modalService.open(IU);a.componentInstance.groupId=r,a.componentInstance.topic=s,a.componentInstance.consumerName=o,a.result.then(()=>{this.gateway.pauseConsumerTopic(o,s).then(()=>this.successSubject.next("Your consumer was paused successfully"))})},this.openRestartModal=(r,o)=>{const s=this.modalService.open(kU);s.componentInstance.groupId=r,s.componentInstance.consumerName=o,s.result.then(()=>{this.gateway.restartConsumer(o).then(()=>this.successSubject.next("Your consumer was restarted successfully"))})},this.openStartModal=(r,o)=>{const s=this.modalService.open(OU);s.componentInstance.groupId=r,s.componentInstance.consumerName=o,s.result.then(()=>{this.gateway.startConsumer(o).then(()=>this.successSubject.next("Your consumer was started successfully"))})},this.openStopModal=(r,o)=>{const s=this.modalService.open(xU);s.componentInstance.groupId=r,s.componentInstance.consumerName=o,s.result.then(()=>{this.gateway.stopConsumer(o).then(()=>this.successSubject.next("Your consumer was stopped successfully"))})},this.openResumeModal=(r,o,s)=>{const a=this.modalService.open(AU);a.componentInstance.groupId=r,a.componentInstance.consumerName=o,a.componentInstance.topic=s,a.result.then(()=>{this.gateway.resumeConsumerTopic(o,s).then(()=>this.successSubject.next("Your consumer was resumed successfully"))})},this.openRewindModal=(r,o,s)=>{const a=this.modalService.open(NU);a.componentInstance.consumerName=o,a.componentInstance.groupId=r,a.componentInstance.topic=s,a.result.then(l=>{const u=YN(l,"YYYY-MM-DDTHH:mm").toDate();this.gateway.rewindConsumerTopic(o,s,u).then(()=>this.successSubject.next("The partition-offset of your consumer were rewound successfully"))})}}ngOnInit(){this.successSubject.subscribe(t=>this.successMessage=t),this.successSubject.pipe(function MU(e,n=Rf){return qe((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const u=o;o=null,i.next(u)}};function l(){const u=s+e,f=n.now();if(f{o=u,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(5e3)).subscribe(()=>this.successAlert?.close()),this.updateData(),function SU(e=0,n=Rf){return e<0&&(e=0),jc(e,e,n)}(this.delayMs).subscribe(this.updateData)}updateConsumersStatus(t){const i=this;return t.groups?.forEach(r=>{r.consumers?.forEach(o=>{o.status=o.assignments.some(s=>s.runningPartitions?.length>0&&i.isActive(s.lastUpdate))?"Running":o.assignments.some(s=>s.pausedPartitions?.length>0&&i.isActive(s.lastUpdate))?"Paused":"Not Running",o.lag=o.assignments.map(s=>s.lag).reduce((s,a)=>s+a),o.assignments.forEach(s=>s.isLost=!i.isActive(s.lastUpdate))})}),t}}return e.\u0275fac=function(t){return new(t||e)(C(SN),C(lE))},e.\u0275cmp=et({type:e,selectors:[["app-consumer"]],viewQuery:function(t,i){if(1&t&&Nd(ZU,5),2&t){let r;at(r=lt())&&(i.successAlert=r.first)}},decls:2,vars:2,consts:[["type","success",3,"closed",4,"ngIf"],["class","container",4,"ngFor","ngForOf"],["type","success",3,"closed"],["successAlert",""],[1,"text-center"],[1,"container"],[1,"card","my-3"],[1,"card-body"],[4,"ngFor","ngForOf"],[3,"ngClass"],["class","btn btn-sm btn-outline-success ml-2","type","button",3,"click",4,"ngIf"],["class","btn btn-sm btn-outline-warning ml-2","type","button",3,"click",4,"ngIf"],["class","btn btn-sm btn-outline-success ml-3","type","button",3,"click",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","button",1,"btn","btn-sm","btn-outline-success","ml-2",3,"click"],["type","button",1,"btn","btn-sm","btn-outline-warning","ml-2",3,"click"],["type","button",1,"btn","btn-sm","btn-outline-success","ml-3",3,"click"],["class","btn btn-sm btn-outline-info ml-2","type","button",3,"click",4,"ngIf"],["class","btn btn-sm btn-outline-secondary ml-2","type","button",3,"click",4,"ngIf"],[1,"table","table-striped","table-hover","mt-1"],["type","button",1,"btn","btn-sm","btn-outline-info","ml-2",3,"click"],["type","button",1,"btn","btn-sm","btn-outline-secondary","ml-2",3,"click"],[1,"text-left"],[4,"ngIf","ngIfThen","ngIfElse"],["consumer_lost",""],["consumer_on",""],[3,"ngIf"],[1,"font-weight-bold","text-warning"],[1,"font-weight-bold","text-success"]],template:function(t,i){1&t&&(Z(0,JU,7,1,"ngb-alert",0),Z(1,_3,6,2,"div",1)),2&t&&(Q("ngIf",i.successMessage),P(1),Q("ngForOf",null==i.telemetryResponse?null:i.telemetryResponse.groups))},dependencies:[SC,Oa,ns,y$,AC,KU,qU],encapsulation:2}),e})(),y3=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=et({type:e,selectors:[["app-home"]],decls:12,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],[1,"container-fluid"],["href","#",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","me-auto","mb-2","mb-lg-0"],[1,"nav-item"],["aria-current","page","href","#",1,"nav-link","active"]],template:function(t,i){1&t&&(M(0,"nav",0)(1,"div",1)(2,"a",2),I(3,"KafkaFlow - Dashboard"),T(),M(4,"button",3),Li(5,"span",4),T(),M(6,"div",5)(7,"ul",6)(8,"li",7)(9,"a",8),I(10,"Consumers"),T()()()()()(),Li(11,"app-consumer"))},dependencies:[hv,v3],encapsulation:2}),e})(),D3=(()=>{class e{constructor(t){this.cookieService=t}intercept(t,i){return t=t.clone({setHeaders:this.cookieService.getAll()}),i.handle(t).pipe(function b3(e=1/0){let n;n=e&&"object"==typeof e?e:{count:e};const{count:t=1/0,delay:i,resetOnSuccess:r=!1}=n;return t<=0?Rn:qe((o,s)=>{let l,a=0;const u=()=>{let f=!1;l=o.subscribe(Oe(s,p=>{r&&(a=0),s.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,u()):f=!0};if(null!=i){const v="number"==typeof i?jc(i):ut(i(p,a)),y=Oe(s,()=>{y.unsubscribe(),m()},()=>{s.complete()});v.subscribe(y)}else m()}else s.error(p)})),f&&(l.unsubscribe(),l=null,u())};u()})}(1),$r(r=>{let o="";return o=r.error instanceof ErrorEvent?`Error: ${r.error.message}`:`Error Code: ${r.status}\nMessage: ${r.message}`,console.error(o),xa(o)}))}}return e.\u0275fac=function(t){return new(t||e)(L(EM))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e})();const C3={validation:!1},w3=[{path:"",component:y3}];let S3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e,bootstrap:[wB]}),e.\u0275inj=Ne({providers:[ZN,EM,lE,{provide:bv,useClass:D3,multi:!0}],imports:[OF,CB,Cf.forRoot(w3),YU,CM,wU,bB.forRoot(C3),Cf]}),e})();(function oR(){Q1=!1} /** * @license * Copyright Google LLC All Rights Reserved. @@ -2026,6 +2026,6 @@ function t1(e,n,t){const i=rn()+e,r=k();return r[i]===ae?or(r,i,t?n.call(t):n()) * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - */)(),OP().bootstrapModule(S3).catch(e=>console.error(e))},439:function(gr,th,iu){(gr=iu.nmd(gr)).exports=function(){"use strict";var ye,Mo;function V(){return ye.apply(null,arguments)}function dn(c){return c instanceof Array||"[object Array]"===Object.prototype.toString.call(c)}function Ct(c){return null!=c&&"[object Object]"===Object.prototype.toString.call(c)}function we(c,d){return Object.prototype.hasOwnProperty.call(c,d)}function bs(c){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(c).length;var d;for(d in c)if(we(c,d))return!1;return!0}function qt(c){return void 0===c}function Jt(c){return"number"==typeof c||"[object Number]"===Object.prototype.toString.call(c)}function Zi(c){return c instanceof Date||"[object Date]"===Object.prototype.toString.call(c)}function Ja(c,d){var g,h=[],_=c.length;for(g=0;g<_;++g)h.push(d(c[g],g));return h}function Dn(c,d){for(var h in d)we(d,h)&&(c[h]=d[h]);return we(d,"toString")&&(c.toString=d.toString),we(d,"valueOf")&&(c.valueOf=d.valueOf),c}function ii(c,d,h,g){return Zr(c,d,h,g,!0).utc()}function le(c){return null==c._pf&&(c._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),c._pf}function Ci(c){if(null==c._isValid){var d=le(c),h=Mo.call(d.parsedDateParts,function(_){return null!=_}),g=!isNaN(c._d.getTime())&&d.overflow<0&&!d.empty&&!d.invalidEra&&!d.invalidMonth&&!d.invalidWeekday&&!d.weekdayMismatch&&!d.nullInput&&!d.invalidFormat&&!d.userInvalidated&&(!d.meridiem||d.meridiem&&h);if(c._strict&&(g=g&&0===d.charsLeftOver&&0===d.unusedTokens.length&&void 0===d.bigHour),null!=Object.isFrozen&&Object.isFrozen(c))return g;c._isValid=g}return c._isValid}function mr(c){var d=ii(NaN);return null!=c?Dn(le(d),c):le(d).userInvalidated=!0,d}Mo=Array.prototype.some?Array.prototype.some:function(c){var g,d=Object(this),h=d.length>>>0;for(g=0;g0)for(h=0;h=0?h?"+":"":"-")+Math.pow(10,Math.max(0,d-g.length)).toString().substr(1)+g}var el=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ws=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ue={},yr={};function z(c,d,h,g){var _=g;"string"==typeof g&&(_=function(){return this[g]()}),c&&(yr[c]=_),d&&(yr[d[0]]=function(){return oi(_.apply(this,arguments),d[1],d[2])}),h&&(yr[h]=function(){return this.localeData().ordinal(_.apply(this,arguments),c)})}function qe(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function Ss(c,d){return c.isValid()?(d=ne(d,c.localeData()),Ue[d]=Ue[d]||function ke(c){var h,g,d=c.match(el);for(h=0,g=d.length;h=0&&ws.test(c);)c=c.replace(ws,g),ws.lastIndex=0,h-=1;return c}var Es={};function Rt(c,d){var h=c.toLowerCase();Es[h]=Es[h+"s"]=Es[d]=c}function Fn(c){return"string"==typeof c?Es[c]||Es[c.toLowerCase()]:void 0}function cu(c){var h,g,d={};for(g in c)we(c,g)&&(h=Fn(g))&&(d[h]=c[g]);return d}var rh={};function Qt(c,d){rh[c]=d}function Ms(c){return c%4==0&&c%100!=0||c%400==0}function Kn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function he(c){var d=+c,h=0;return 0!==d&&isFinite(d)&&(h=Kn(d)),h}function To(c,d){return function(h){return null!=h?(oh(this,c,h),V.updateOffset(this,d),this):Ns(this,c)}}function Ns(c,d){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+d]():NaN}function oh(c,d,h){c.isValid()&&!isNaN(h)&&("FullYear"===d&&Ms(c.year())&&1===c.month()&&29===c.date()?(h=he(h),c._d["set"+(c._isUTC?"UTC":"")+d](h,c.month(),ks(h,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+d](h))}var Ro,sh=/\d/,Pn=/\d\d/,Ts=/\d{3}/,As=/\d{4}/,Ao=/[+-]?\d{6}/,Ge=/\d\d?/,nl=/\d\d\d\d?/,uu=/\d\d\d\d\d\d?/,Io=/\d{1,3}/,Is=/\d{1,4}/,Oo=/[+-]?\d{1,6}/,Dr=/\d+/,ut=/[+-]?\d+/,ah=/Z|[+-]\d\d:?\d\d/gi,Os=/Z|[+-]\d\d(?::?\d\d)?/gi,ko=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function $(c,d,h){Ro[c]=ri(d)?d:function(g,_){return g&&h?h:d}}function ch(c,d){return we(Ro,c)?Ro[c](d._strict,d._locale):new RegExp(function wi(c){return Cn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,h,g,_,b){return h||g||_||b}))}(c))}function Cn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ro={};var dt={};function Se(c,d){var h,_,g=d;for("string"==typeof c&&(c=[c]),Jt(d)&&(g=function(b,N){N[d]=he(b)}),_=c.length,h=0;h<_;h++)dt[c[h]]=g}function Xt(c,d){Se(c,function(h,g,_,b){_._w=_._w||{},d(h,_._w,_,b)})}function Pv(c,d,h){null!=d&&we(dt,c)&&dt[c](d,h._a,h,c)}var ft;function ks(c,d){if(isNaN(c)||isNaN(d))return NaN;var h=function dh(c,d){return(c%d+d)%d}(d,12);return c+=(d-h)/12,1===h?Ms(c)?29:28:31-h%7%2}ft=Array.prototype.indexOf?Array.prototype.indexOf:function(c){var d;for(d=0;d68?1900:2e3)};var P=To("FullYear",!0);function oe(c,d,h,g,_,b,N){var Y;return c<100&&c>=0?(Y=new Date(c+400,d,h,g,_,b,N),isFinite(Y.getFullYear())&&Y.setFullYear(c)):Y=new Date(c,d,h,g,_,b,N),Y}function _e(c){var d,h;return c<100&&c>=0?((h=Array.prototype.slice.call(arguments))[0]=c+400,d=new Date(Date.UTC.apply(null,h)),isFinite(d.getUTCFullYear())&&d.setUTCFullYear(c)):d=new Date(Date.UTC.apply(null,arguments)),d}function Ls(c,d,h){var g=7+d-h;return-(7+_e(c,0,g).getUTCDay()-d)%7+g-1}function gh(c,d,h,g,_){var ce,Pe,Y=1+7*(d-1)+(7+h-g)%7+Ls(c,g,_);return Y<=0?Pe=Fs(ce=c-1)+Y:Y>Fs(c)?(ce=c+1,Pe=Y-Fs(c)):(ce=c,Pe=Y),{year:ce,dayOfYear:Pe}}function xo(c,d,h){var b,N,g=Ls(c.year(),d,h),_=Math.floor((c.dayOfYear()-g-1)/7)+1;return _<1?b=_+Vn(N=c.year()-1,d,h):_>Vn(c.year(),d,h)?(b=_-Vn(c.year(),d,h),N=c.year()+1):(N=c.year(),b=_),{week:b,year:N}}function Vn(c,d,h){var g=Ls(c,d,h),_=Ls(c+1,d,h);return(Fs(c)-g+_)/7}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Rt("week","w"),Rt("isoWeek","W"),Qt("week",5),Qt("isoWeek",5),$("w",Ge),$("ww",Ge,Pn),$("W",Ge),$("WW",Ge,Pn),Xt(["w","ww","W","WW"],function(c,d,h,g){d[g.substr(0,1)]=he(c)});function gu(c,d){return c.slice(d,7).concat(c.slice(0,d))}z("d",0,"do","day"),z("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),z("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),z("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Rt("day","d"),Rt("weekday","e"),Rt("isoWeekday","E"),Qt("day",11),Qt("weekday",11),Qt("isoWeekday",11),$("d",Ge),$("e",Ge),$("E",Ge),$("dd",function(c,d){return d.weekdaysMinRegex(c)}),$("ddd",function(c,d){return d.weekdaysShortRegex(c)}),$("dddd",function(c,d){return d.weekdaysRegex(c)}),Xt(["dd","ddd","dddd"],function(c,d,h,g){var _=h._locale.weekdaysParse(c,g,h._strict);null!=_?d.d=_:le(h).invalidWeekday=c}),Xt(["d","e","E"],function(c,d,h,g){d[g]=he(c)});var _h="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$v=ko,Sn=ko,Oe=ko;function G(c,d,h){var g,_,b,N=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],g=0;g<7;++g)b=ii([2e3,1]).day(g),this._minWeekdaysParse[g]=this.weekdaysMin(b,"").toLocaleLowerCase(),this._shortWeekdaysParse[g]=this.weekdaysShort(b,"").toLocaleLowerCase(),this._weekdaysParse[g]=this.weekdays(b,"").toLocaleLowerCase();return h?"dddd"===d?-1!==(_=ft.call(this._weekdaysParse,N))?_:null:"ddd"===d?-1!==(_=ft.call(this._shortWeekdaysParse,N))?_:null:-1!==(_=ft.call(this._minWeekdaysParse,N))?_:null:"dddd"===d?-1!==(_=ft.call(this._weekdaysParse,N))||-1!==(_=ft.call(this._shortWeekdaysParse,N))||-1!==(_=ft.call(this._minWeekdaysParse,N))?_:null:"ddd"===d?-1!==(_=ft.call(this._shortWeekdaysParse,N))||-1!==(_=ft.call(this._weekdaysParse,N))||-1!==(_=ft.call(this._minWeekdaysParse,N))?_:null:-1!==(_=ft.call(this._minWeekdaysParse,N))||-1!==(_=ft.call(this._weekdaysParse,N))||-1!==(_=ft.call(this._shortWeekdaysParse,N))?_:null}function Hs(){function c(vt,Ri){return Ri.length-vt.length}var b,N,Y,ce,Pe,d=[],h=[],g=[],_=[];for(b=0;b<7;b++)N=ii([2e3,1]).day(b),Y=Cn(this.weekdaysMin(N,"")),ce=Cn(this.weekdaysShort(N,"")),Pe=Cn(this.weekdays(N,"")),d.push(Y),h.push(ce),g.push(Pe),_.push(Y),_.push(ce),_.push(Pe);d.sort(c),h.sort(c),g.sort(c),_.sort(c),this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+d.join("|")+")","i")}function Jr(){return this.hours()%12||12}function sl(c,d){z(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),d)})}function _u(c,d){return d._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Jr),z("k",["kk",2],0,function ol(){return this.hours()||24}),z("hmm",0,0,function(){return""+Jr.apply(this)+oi(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Jr.apply(this)+oi(this.minutes(),2)+oi(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+oi(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+oi(this.minutes(),2)+oi(this.seconds(),2)}),sl("a",!0),sl("A",!1),Rt("hour","h"),Qt("hour",13),$("a",_u),$("A",_u),$("H",Ge),$("h",Ge),$("k",Ge),$("HH",Ge,Pn),$("hh",Ge,Pn),$("kk",Ge,Pn),$("hmm",nl),$("hmmss",uu),$("Hmm",nl),$("Hmmss",uu),Se(["H","HH"],3),Se(["k","kk"],function(c,d,h){var g=he(c);d[3]=24===g?0:g}),Se(["a","A"],function(c,d,h){h._isPm=h._locale.isPM(c),h._meridiem=c}),Se(["h","hh"],function(c,d,h){d[3]=he(c),le(h).bigHour=!0}),Se("hmm",function(c,d,h){var g=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g)),le(h).bigHour=!0}),Se("hmmss",function(c,d,h){var g=c.length-4,_=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g,2)),d[5]=he(c.substr(_)),le(h).bigHour=!0}),Se("Hmm",function(c,d,h){var g=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g))}),Se("Hmmss",function(c,d,h){var g=c.length-4,_=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g,2)),d[5]=he(c.substr(_))});var wh=To("Hours",!0);var tn,ll={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:fu,monthsShort:hu,week:{dow:0,doy:6},weekdays:_h,weekdaysMin:yh,weekdaysShort:vh,meridiemParse:/[ap]\.?m?\.?/i},Xe={},Bn={};function zv(c,d){var h,g=Math.min(c.length,d.length);for(h=0;h0;){if(_=cl(b.slice(0,h).join("-")))return _;if(g&&g.length>=h&&zv(b,g)>=h-1)break;h--}d++}return tn}(c)}function Fo(c){var d,h=c._a;return h&&-2===le(c).overflow&&(d=h[1]<0||h[1]>11?1:h[2]<1||h[2]>ks(h[0],h[1])?2:h[3]<0||h[3]>24||24===h[3]&&(0!==h[4]||0!==h[5]||0!==h[6])?3:h[4]<0||h[4]>59?4:h[5]<0||h[5]>59?5:h[6]<0||h[6]>999?6:-1,le(c)._overflowDayOfYear&&(d<0||d>2)&&(d=2),le(c)._overflowWeeks&&-1===d&&(d=7),le(c)._overflowWeekday&&-1===d&&(d=8),le(c).overflow=d),c}var vu=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Po=/Z|[+-]\d\d(?::?\d\d)?/,Bs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],et=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Eh=/^\/?Date\((-?\d+)/i,yu=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bu={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ne(c){var d,h,b,N,Y,ce,g=c._i,_=vu.exec(g)||Mi.exec(g),Pe=Bs.length,vt=et.length;if(_){for(le(c).iso=!0,d=0,h=Pe;d7)&&(ce=!0)):(b=c._locale._week.dow,N=c._locale._week.doy,Pe=xo(xe(),b,N),h=zn(d.gg,c._a[0],Pe.year),g=zn(d.w,Pe.week),null!=d.d?((_=d.d)<0||_>6)&&(ce=!0):null!=d.e?(_=d.e+b,(d.e<0||d.e>6)&&(ce=!0)):_=b),g<1||g>Vn(h,b,N)?le(c)._overflowWeeks=!0:null!=ce?le(c)._overflowWeekday=!0:(Y=gh(h,g,_,b,N),c._a[0]=Y.year,c._dayOfYear=Y.dayOfYear)}(c),null!=c._dayOfYear&&(N=zn(c._a[0],_[0]),(c._dayOfYear>Fs(N)||0===c._dayOfYear)&&(le(c)._overflowDayOfYear=!0),h=_e(N,0,c._dayOfYear),c._a[1]=h.getUTCMonth(),c._a[2]=h.getUTCDate()),d=0;d<3&&null==c._a[d];++d)c._a[d]=g[d]=_[d];for(;d<7;d++)c._a[d]=g[d]=c._a[d]??(2===d?1:0);24===c._a[3]&&0===c._a[4]&&0===c._a[5]&&0===c._a[6]&&(c._nextDay=!0,c._a[3]=0),c._d=(c._useUTC?_e:oe).apply(null,g),b=c._useUTC?c._d.getUTCDay():c._d.getDay(),null!=c._tzm&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[3]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==b&&(le(c).weekdayMismatch=!0)}}function se(c){if(c._f!==V.ISO_8601)if(c._f!==V.RFC_2822){c._a=[],le(c).empty=!0;var h,g,_,b,N,Pe,vt,d=""+c._i,Y=d.length,ce=0;for(vt=(_=ne(c._f,c._locale).match(el)||[]).length,h=0;h0&&le(c).unusedInput.push(N),d=d.slice(d.indexOf(g)+g.length),ce+=g.length),yr[b]?(g?le(c).empty=!1:le(c).unusedTokens.push(b),Pv(b,g,c)):c._strict&&!g&&le(c).unusedTokens.push(b);le(c).charsLeftOver=Y-ce,d.length>0&&le(c).unusedInput.push(d),c._a[3]<=12&&!0===le(c).bigHour&&c._a[3]>0&&(le(c).bigHour=void 0),le(c).parsedDateParts=c._a.slice(0),le(c).meridiem=c._meridiem,c._a[3]=function Je(c,d,h){var g;return null==h?d:null!=c.meridiemHour?c.meridiemHour(d,h):(null!=c.isPM&&((g=c.isPM(h))&&d<12&&(d+=12),!g&&12===d&&(d=0)),d)}(c._locale,c._a[3],c._meridiem),null!==(Pe=le(c).era)&&(c._a[0]=c._locale.erasConvertYear(Pe,c._a[0])),fn(c),Fo(c)}else Ut(c);else Ne(c)}function er(c){var d=c._i,h=c._f;return c._locale=c._locale||jn(c._l),null===d||void 0===h&&""===d?mr({nullInput:!0}):("string"==typeof d&&(c._i=d=c._locale.preparse(d)),Wn(d)?new _r(Fo(d)):(Zi(d)?c._d=d:dn(h)?function Mn(c){var d,h,g,_,b,N,Y=!1,ce=c._f.length;if(0===ce)return le(c).invalidFormat=!0,void(c._d=new Date(NaN));for(_=0;_this?this:c:mr()});function Sr(c,d){var h,g;if(1===d.length&&dn(d[0])&&(d=d[0]),!d.length)return xe();for(h=d[0],g=1;g=0?new Date(c+400,d,h)-Ho:new Date(c,d,h).valueOf()}function Ks(c,d,h){return c<100&&c>=0?Date.UTC(c+400,d,h)-Ho:Date.UTC(c,d,h)}function Ys(c,d){return d.erasAbbrRegex(c)}function jo(){var _,b,c=[],d=[],h=[],g=[],N=this.eras();for(_=0,b=N.length;_(b=Vn(c,g,_))&&(d=b),Ii.call(this,c,d,h,g,_))}function Ii(c,d,h,g,_){var b=gh(c,d,h,g,_),N=_e(b.year,0,b.dayOfYear);return this.year(N.getUTCFullYear()),this.month(N.getUTCMonth()),this.date(N.getUTCDate()),this}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),$("N",Ys),$("NN",Ys),$("NNN",Ys),$("NNNN",function Bo(c,d){return d.erasNameRegex(c)}),$("NNNNN",function ci(c,d){return d.erasNarrowRegex(c)}),Se(["N","NN","NNN","NNNN","NNNNN"],function(c,d,h,g){var _=h._locale.erasParse(c,g,h._strict);_?le(h).era=_:le(h).invalidEra=c}),$("y",Dr),$("yy",Dr),$("yyy",Dr),$("yyyy",Dr),$("yo",function bl(c,d){return d._eraYearOrdinalRegex||Dr}),Se(["y","yy","yyy","yyyy"],0),Se(["yo"],function(c,d,h,g){var _;h._locale._eraYearOrdinalRegex&&(_=c.match(h._locale._eraYearOrdinalRegex)),d[0]=h._locale.eraYearOrdinalParse?h._locale.eraYearOrdinalParse(c,_):parseInt(c,10)}),z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Dl("gggg","weekYear"),Dl("ggggg","weekYear"),Dl("GGGG","isoWeekYear"),Dl("GGGGG","isoWeekYear"),Rt("weekYear","gg"),Rt("isoWeekYear","GG"),Qt("weekYear",1),Qt("isoWeekYear",1),$("G",ut),$("g",ut),$("GG",Ge,Pn),$("gg",Ge,Pn),$("GGGG",Is,As),$("gggg",Is,As),$("GGGGG",Oo,Ao),$("ggggg",Oo,Ao),Xt(["gggg","ggggg","GGGG","GGGGG"],function(c,d,h,g){d[g.substr(0,2)]=he(c)}),Xt(["gg","GG"],function(c,d,h,g){d[g]=V.parseTwoDigitYear(c)}),z("Q",0,"Qo","quarter"),Rt("quarter","Q"),Qt("quarter",7),$("Q",sh),Se("Q",function(c,d){d[1]=3*(he(c)-1)}),z("D",["DD",2],"Do","date"),Rt("date","D"),Qt("date",9),$("D",Ge),$("DD",Ge,Pn),$("Do",function(c,d){return c?d._dayOfMonthOrdinalParse||d._ordinalParse:d._dayOfMonthOrdinalParseLenient}),Se(["D","DD"],2),Se("Do",function(c,d){d[2]=he(c.match(Ge)[0])});var Cl=To("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Rt("dayOfYear","DDD"),Qt("dayOfYear",4),$("DDD",Io),$("DDDD",Ts),Se(["DDD","DDDD"],function(c,d,h){h._dayOfYear=he(c)}),z("m",["mm",2],0,"minute"),Rt("minute","m"),Qt("minute",14),$("m",Ge),$("mm",Ge,Pn),Se(["m","mm"],4);var Zh=To("Minutes",!1);z("s",["ss",2],0,"second"),Rt("second","s"),Qt("second",15),$("s",Ge),$("ss",Ge,Pn),Se(["s","ss"],5);var ui,Sl,wl=To("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Rt("millisecond","ms"),Qt("millisecond",16),$("S",Io,sh),$("SS",Io,Pn),$("SSS",Io,Ts),ui="SSSS";ui.length<=9;ui+="S")$(ui,Dr);function El(c,d){d[6]=he(1e3*("0."+c))}for(ui="S";ui.length<=9;ui+="S")Se(ui,El);Sl=To("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var x=_r.prototype;function Ml(c){return c}x.add=Zv,x.calendar=function gl(c,d){1===arguments.length&&(arguments[0]?Xv(arguments[0])?(c=arguments[0],d=void 0):ny(arguments[0])&&(d=arguments[0],c=void 0):(c=void 0,d=void 0));var h=c||xe(),g=eo(h,this).startOf("day"),_=V.calendarFormat(this,g)||"sameElse",b=d&&(ri(d[_])?d[_].call(this,h):d[_]);return this.format(b||this.localeData().calendar(_,this,xe(h)))},x.clone=function iy(){return new _r(this)},x.diff=function Ph(c,d,h){var g,_,b;if(!this.isValid())return NaN;if(!(g=eo(c,this)).isValid())return NaN;switch(_=6e4*(g.utcOffset()-this.utcOffset()),d=Fn(d)){case"year":b=Gs(this,g)/12;break;case"month":b=Gs(this,g);break;case"quarter":b=Gs(this,g)/3;break;case"second":b=(this-g)/1e3;break;case"minute":b=(this-g)/6e4;break;case"hour":b=(this-g)/36e5;break;case"day":b=(this-g-_)/864e5;break;case"week":b=(this-g-_)/6048e5;break;default:b=this-g}return h?b:Kn(b)},x.endOf=function Nn(c){var d,h;if(void 0===(c=Fn(c))||"millisecond"===c||!this.isValid())return this;switch(h=this._isUTC?Ks:Tu,c){case"year":d=h(this.year()+1,0,1)-1;break;case"quarter":d=h(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":d=h(this.year(),this.month()+1,1)-1;break;case"week":d=h(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":d=h(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":d=h(this.year(),this.month(),this.date()+1)-1;break;case"hour":d=this._d.valueOf(),d+=vl-xt(d+(this._isUTC?0:this.utcOffset()*no),vl)-1;break;case"minute":d=this._d.valueOf(),d+=no-xt(d,no)-1;break;case"second":d=this._d.valueOf(),d+=1e3-xt(d,1e3)-1}return this._d.setTime(d),V.updateOffset(this,!0),this},x.format=function ml(c){c||(c=this.isUtc()?V.defaultFormatUtc:V.defaultFormat);var d=Ss(this,c);return this.localeData().postformat(d)},x.from=function Vh(c,d){return this.isValid()&&(Wn(c)&&c.isValid()||xe(c).isValid())?li({to:this,from:c}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()},x.fromNow=function $n(c){return this.from(xe(),c)},x.to=function _l(c,d){return this.isValid()&&(Wn(c)&&c.isValid()||xe(c).isValid())?li({from:this,to:c}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()},x.toNow=function Hh(c){return this.to(xe(),c)},x.get=function xv(c){return ri(this[c=Fn(c)])?this[c]():this},x.invalidAt=function sy(){return le(this).overflow},x.isAfter=function ry(c,d){var h=Wn(c)?c:xe(c);return!(!this.isValid()||!h.isValid())&&("millisecond"===(d=Fn(d)||"millisecond")?this.valueOf()>h.valueOf():h.valueOf()9999?Ss(h,d?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ri(Date.prototype.toISOString)?d?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ss(h,"Z")):Ss(h,d?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},x.inspect=function Lh(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var h,g,c="moment",d="";return this.isLocal()||(c=0===this.utcOffset()?"moment.utc":"moment.parseZone",d="Z"),h="["+c+'("]',g=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(h+g+"-MM-DD[T]HH:mm:ss.SSS"+d+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(x[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),x.toJSON=function yl(){return this.isValid()?this.toISOString():null},x.toString=function Eu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},x.unix=function zs(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function jh(){return this._d.valueOf()-6e4*(this._offset||0)},x.creationData=function Uh(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},x.eraName=function Kh(){var c,d,h,g=this.localeData().eras();for(c=0,d=g.length;cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},x.isLocal=function Ah(){return!!this.isValid()&&!this._isUTC},x.isUtcOffset=function Yv(){return!!this.isValid()&&this._isUTC},x.isUtc=Cu,x.isUTC=Cu,x.zoneAbbr=function Qh(){return this._isUTC?"UTC":""},x.zoneName=function xu(){return this._isUTC?"Coordinated Universal Time":""},x.dates=Zt("dates accessor is deprecated. Use date instead.",Cl),x.months=Zt("months accessor is deprecated. Use month instead",Rs),x.years=Zt("years accessor is deprecated. Use year instead",P),x.zone=Zt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Th(c,d){return null!=c?("string"!=typeof c&&(c=-c),this.utcOffset(c,d),this):-this.utcOffset()}),x.isDSTShifted=Zt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Jn(){if(!qt(this._isDSTShifted))return this._isDSTShifted;var d,c={};return Za(c,this),(c=er(c))._a?(d=c._isUTC?ii(c._a):xe(c._a),this._isDSTShifted=this.isValid()&&function Nh(c,d,h){var N,g=Math.min(c.length,d.length),_=Math.abs(c.length-d.length),b=0;for(N=0;N0):this._isDSTShifted=!1,this._isDSTShifted});var Ee=Xa.prototype;function ro(c,d,h,g){var _=jn(),b=ii().set(g,d);return _[h](b,c)}function Lu(c,d,h){if(Jt(c)&&(d=c,c=void 0),c=c||"",null!=d)return ro(c,d,h,"month");var g,_=[];for(g=0;g<12;g++)_[g]=ro(c,g,h,"month");return _}function Nl(c,d,h,g){"boolean"==typeof c?(Jt(d)&&(h=d,d=void 0),d=d||""):(h=d=c,c=!1,Jt(d)&&(h=d,d=void 0),d=d||"");var N,_=jn(),b=c?_._week.dow:0,Y=[];if(null!=h)return ro(d,(h+b)%7,g,"day");for(N=0;N<7;N++)Y[N]=ro(d,(N+b)%7,g,"day");return Y}Ee.calendar=function su(c,d,h){var g=this._calendar[c]||this._calendar.sameElse;return ri(g)?g.call(d,h):g},Ee.longDateFormat=function Tv(c){var d=this._longDateFormat[c],h=this._longDateFormat[c.toUpperCase()];return d||!h?d:(this._longDateFormat[c]=h.match(el).map(function(g){return"MMMM"===g||"MM"===g||"DD"===g||"dddd"===g?g.slice(1):g}).join(""),this._longDateFormat[c])},Ee.invalidDate=function Av(){return this._invalidDate},Ee.ordinal=function kv(c){return this._ordinal.replace("%d",c)},Ee.preparse=Ml,Ee.postformat=Ml,Ee.relativeTime=function Rv(c,d,h,g){var _=this._relativeTime[h];return ri(_)?_(c,d,h,g):_.replace(/%d/i,c)},Ee.pastFuture=function lu(c,d){var h=this._relativeTime[c>0?"future":"past"];return ri(h)?h(d):h.replace(/%s/i,d)},Ee.set=function Qa(c){var d,h;for(h in c)we(c,h)&&(ri(d=c[h])?this[h]=d:this["_"+h]=d);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ee.eras=function Gh(c,d){var h,g,_,b=this._eras||jn("en")._eras;for(h=0,g=b.length;h=0)return b[g]},Ee.erasConvertYear=function Ou(c,d){var h=c.since<=c.until?1:-1;return void 0===d?V(c.since).year():V(c.since).year()+(d-c.offset)*h},Ee.erasAbbrRegex=function _t(c){return we(this,"_erasAbbrRegex")||jo.call(this),c?this._erasAbbrRegex:this._erasRegex},Ee.erasNameRegex=function mt(c){return we(this,"_erasNameRegex")||jo.call(this),c?this._erasNameRegex:this._erasRegex},Ee.erasNarrowRegex=function wt(c){return we(this,"_erasNarrowRegex")||jo.call(this),c?this._erasNarrowRegex:this._erasRegex},Ee.months=function hh(c,d){return c?dn(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||pu).test(d)?"format":"standalone"][c.month()]:dn(this._months)?this._months:this._months.standalone},Ee.monthsShort=function il(c,d){return c?dn(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[pu.test(d)?"format":"standalone"][c.month()]:dn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ee.monthsParse=function rl(c,d,h){var g,_,b;if(this._monthsParseExact)return $e.call(this,c,d,h);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),g=0;g<12;g++){if(_=ii([2e3,g]),h&&!this._longMonthsParse[g]&&(this._longMonthsParse[g]=new RegExp("^"+this.months(_,"").replace(".","")+"$","i"),this._shortMonthsParse[g]=new RegExp("^"+this.monthsShort(_,"").replace(".","")+"$","i")),!h&&!this._monthsParse[g]&&(b="^"+this.months(_,"")+"|^"+this.monthsShort(_,""),this._monthsParse[g]=new RegExp(b.replace(".",""),"i")),h&&"MMMM"===d&&this._longMonthsParse[g].test(c))return g;if(h&&"MMM"===d&&this._shortMonthsParse[g].test(c))return g;if(!h&&this._monthsParse[g].test(c))return g}},Ee.monthsRegex=function te(c){return this._monthsParseExact?(we(this,"_monthsRegex")||xs.call(this),c?this._monthsStrictRegex:this._monthsRegex):(we(this,"_monthsRegex")||(this._monthsRegex=fh),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)},Ee.monthsShortRegex=function Te(c){return this._monthsParseExact?(we(this,"_monthsRegex")||xs.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(we(this,"_monthsShortRegex")||(this._monthsShortRegex=gt),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)},Ee.week=function wn(c){return xo(c,this._week.dow,this._week.doy).week},Ee.firstDayOfYear=function Vv(){return this._week.doy},Ee.firstDayOfWeek=function mh(){return this._week.dow},Ee.weekdays=function Uv(c,d){var h=dn(this._weekdays)?this._weekdays:this._weekdays[c&&!0!==c&&this._weekdays.isFormat.test(d)?"format":"standalone"];return!0===c?gu(h,this._week.dow):c?h[c.day()]:h},Ee.weekdaysMin=function Wv(c){return!0===c?gu(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin},Ee.weekdaysShort=function Gv(c){return!0===c?gu(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort},Ee.weekdaysParse=function Kv(c,d,h){var g,_,b;if(this._weekdaysParseExact)return G.call(this,c,d,h);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),g=0;g<7;g++){if(_=ii([2e3,1]).day(g),h&&!this._fullWeekdaysParse[g]&&(this._fullWeekdaysParse[g]=new RegExp("^"+this.weekdays(_,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[g]=new RegExp("^"+this.weekdaysShort(_,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[g]=new RegExp("^"+this.weekdaysMin(_,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[g]||(b="^"+this.weekdays(_,"")+"|^"+this.weekdaysShort(_,"")+"|^"+this.weekdaysMin(_,""),this._weekdaysParse[g]=new RegExp(b.replace(".",""),"i")),h&&"dddd"===d&&this._fullWeekdaysParse[g].test(c))return g;if(h&&"ddd"===d&&this._shortWeekdaysParse[g].test(c))return g;if(h&&"dd"===d&&this._minWeekdaysParse[g].test(c))return g;if(!h&&this._weekdaysParse[g].test(c))return g}},Ee.weekdaysRegex=function mu(c){return this._weekdaysParseExact?(we(this,"_weekdaysRegex")||Hs.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(we(this,"_weekdaysRegex")||(this._weekdaysRegex=$v),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)},Ee.weekdaysShortRegex=function Dh(c){return this._weekdaysParseExact?(we(this,"_weekdaysRegex")||Hs.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(we(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sn),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ee.weekdaysMinRegex=function Ch(c){return this._weekdaysParseExact?(we(this,"_weekdaysRegex")||Hs.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(we(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oe),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ee.isPM=function X(c){return"p"===(c+"").toLowerCase().charAt(0)},Ee.meridiem=function Hn(c,d,h){return c>11?h?"pm":"PM":h?"am":"AM"},Cr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var d=c%10;return c+(1===he(c%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")}}),V.lang=Zt("moment.lang is deprecated. Use moment.locale instead.",Cr),V.langData=Zt("moment.langData is deprecated. Use moment.localeData instead.",jn);var Oi=Math.abs;function Vu(c,d,h,g){var _=li(d,h);return c._milliseconds+=g*_._milliseconds,c._days+=g*_._days,c._months+=g*_._months,c._bubble()}function $o(c){return c<0?Math.floor(c):Math.ceil(c)}function Zs(c){return 4800*c/146097}function Qs(c){return 146097*c/4800}function Tn(c){return function(){return this.as(c)}}var rp=Tn("ms"),op=Tn("s"),Uo=Tn("m"),Tl=Tn("h"),sp=Tn("d"),ap=Tn("w"),ly=Tn("M"),cy=Tn("Q"),Xs=Tn("y");function di(c){return function(){return this.isValid()?this._data[c]:NaN}}var ju=di("milliseconds"),$u=di("seconds"),oo=di("minutes"),lp=di("hours"),so=di("days"),Al=di("months"),ea=di("years");var fi=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cp(c,d,h,g,_){return _.relativeTime(d||1,!!h,c,g)}var Wo=Math.abs;function ki(c){return(c>0)-(c<0)||+c}function Ir(){if(!this.isValid())return this.localeData().invalidDate();var g,_,b,N,ce,Pe,vt,Ri,c=Wo(this._milliseconds)/1e3,d=Wo(this._days),h=Wo(this._months),Y=this.asSeconds();return Y?(g=Kn(c/60),_=Kn(g/60),c%=60,g%=60,b=Kn(h/12),h%=12,N=c?c.toFixed(3).replace(/\.?0+$/,""):"",ce=Y<0?"-":"",Pe=ki(this._months)!==ki(Y)?"-":"",vt=ki(this._days)!==ki(Y)?"-":"",Ri=ki(this._milliseconds)!==ki(Y)?"-":"",ce+"P"+(b?Pe+b+"Y":"")+(h?Pe+h+"M":"")+(d?vt+d+"D":"")+(_||g||c?"T":"")+(_?Ri+_+"H":"")+(g?Ri+g+"M":"")+(c?Ri+N+"S":"")):"P0D"}var De=Lo.prototype; + */)(),kF().bootstrapModule(S3).catch(e=>console.error(e))},439:function(gr,th,iu){(gr=iu.nmd(gr)).exports=function(){"use strict";var ye,No;function V(){return ye.apply(null,arguments)}function dn(c){return c instanceof Array||"[object Array]"===Object.prototype.toString.call(c)}function Ct(c){return null!=c&&"[object Object]"===Object.prototype.toString.call(c)}function we(c,d){return Object.prototype.hasOwnProperty.call(c,d)}function bs(c){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(c).length;var d;for(d in c)if(we(c,d))return!1;return!0}function qt(c){return void 0===c}function Zt(c){return"number"==typeof c||"[object Number]"===Object.prototype.toString.call(c)}function Ji(c){return c instanceof Date||"[object Date]"===Object.prototype.toString.call(c)}function Za(c,d){var g,h=[],_=c.length;for(g=0;g<_;++g)h.push(d(c[g],g));return h}function Dn(c,d){for(var h in d)we(d,h)&&(c[h]=d[h]);return we(d,"toString")&&(c.toString=d.toString),we(d,"valueOf")&&(c.valueOf=d.valueOf),c}function ii(c,d,h,g){return Jr(c,d,h,g,!0).utc()}function le(c){return null==c._pf&&(c._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),c._pf}function Ci(c){if(null==c._isValid){var d=le(c),h=No.call(d.parsedDateParts,function(_){return null!=_}),g=!isNaN(c._d.getTime())&&d.overflow<0&&!d.empty&&!d.invalidEra&&!d.invalidMonth&&!d.invalidWeekday&&!d.weekdayMismatch&&!d.nullInput&&!d.invalidFormat&&!d.userInvalidated&&(!d.meridiem||d.meridiem&&h);if(c._strict&&(g=g&&0===d.charsLeftOver&&0===d.unusedTokens.length&&void 0===d.bigHour),null!=Object.isFrozen&&Object.isFrozen(c))return g;c._isValid=g}return c._isValid}function mr(c){var d=ii(NaN);return null!=c?Dn(le(d),c):le(d).userInvalidated=!0,d}No=Array.prototype.some?Array.prototype.some:function(c){var g,d=Object(this),h=d.length>>>0;for(g=0;g0)for(h=0;h=0?h?"+":"":"-")+Math.pow(10,Math.max(0,d-g.length)).toString().substr(1)+g}var el=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ws=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ue={},yr={};function Y(c,d,h,g){var _=g;"string"==typeof g&&(_=function(){return this[g]()}),c&&(yr[c]=_),d&&(yr[d[0]]=function(){return oi(_.apply(this,arguments),d[1],d[2])}),h&&(yr[h]=function(){return this.localeData().ordinal(_.apply(this,arguments),c)})}function qe(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function Ss(c,d){return c.isValid()?(d=ne(d,c.localeData()),Ue[d]=Ue[d]||function Oe(c){var h,g,d=c.match(el);for(h=0,g=d.length;h=0&&ws.test(c);)c=c.replace(ws,g),ws.lastIndex=0,h-=1;return c}var Ms={};function xt(c,d){var h=c.toLowerCase();Ms[h]=Ms[h+"s"]=Ms[d]=c}function Pn(c){return"string"==typeof c?Ms[c]||Ms[c.toLowerCase()]:void 0}function cu(c){var h,g,d={};for(g in c)we(c,g)&&(h=Pn(g))&&(d[h]=c[g]);return d}var rh={};function Qt(c,d){rh[c]=d}function Ns(c){return c%4==0&&c%100!=0||c%400==0}function zn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function he(c){var d=+c,h=0;return 0!==d&&isFinite(d)&&(h=zn(d)),h}function To(c,d){return function(h){return null!=h?(oh(this,c,h),V.updateOffset(this,d),this):Es(this,c)}}function Es(c,d){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+d]():NaN}function oh(c,d,h){c.isValid()&&!isNaN(h)&&("FullYear"===d&&Ns(c.year())&&1===c.month()&&29===c.date()?(h=he(h),c._d["set"+(c._isUTC?"UTC":"")+d](h,c.month(),Os(h,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+d](h))}var xo,sh=/\d/,Fn=/\d\d/,Ts=/\d{3}/,Is=/\d{4}/,Io=/[+-]?\d{6}/,Ge=/\d\d?/,nl=/\d\d\d\d?/,uu=/\d\d\d\d\d\d?/,Ao=/\d{1,3}/,As=/\d{1,4}/,ko=/[+-]?\d{1,6}/,Dr=/\d+/,ut=/[+-]?\d+/,ah=/Z|[+-]\d\d:?\d\d/gi,ks=/Z|[+-]\d\d(?::?\d\d)?/gi,Oo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function $(c,d,h){xo[c]=ri(d)?d:function(g,_){return g&&h?h:d}}function ch(c,d){return we(xo,c)?xo[c](d._strict,d._locale):new RegExp(function wi(c){return Cn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,h,g,_,b){return h||g||_||b}))}(c))}function Cn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}xo={};var dt={};function Se(c,d){var h,_,g=d;for("string"==typeof c&&(c=[c]),Zt(d)&&(g=function(b,E){E[d]=he(b)}),_=c.length,h=0;h<_;h++)dt[c[h]]=g}function Xt(c,d){Se(c,function(h,g,_,b){_._w=_._w||{},d(h,_._w,_,b)})}function Fv(c,d,h){null!=d&&we(dt,c)&&dt[c](d,h._a,h,c)}var ft;function Os(c,d){if(isNaN(c)||isNaN(d))return NaN;var h=function dh(c,d){return(c%d+d)%d}(d,12);return c+=(d-h)/12,1===h?Ns(c)?29:28:31-h%7%2}ft=Array.prototype.indexOf?Array.prototype.indexOf:function(c){var d;for(d=0;d68?1900:2e3)};var F=To("FullYear",!0);function oe(c,d,h,g,_,b,E){var K;return c<100&&c>=0?(K=new Date(c+400,d,h,g,_,b,E),isFinite(K.getFullYear())&&K.setFullYear(c)):K=new Date(c,d,h,g,_,b,E),K}function _e(c){var d,h;return c<100&&c>=0?((h=Array.prototype.slice.call(arguments))[0]=c+400,d=new Date(Date.UTC.apply(null,h)),isFinite(d.getUTCFullYear())&&d.setUTCFullYear(c)):d=new Date(Date.UTC.apply(null,arguments)),d}function Ls(c,d,h){var g=7+d-h;return-(7+_e(c,0,g).getUTCDay()-d)%7+g-1}function gh(c,d,h,g,_){var ce,Fe,K=1+7*(d-1)+(7+h-g)%7+Ls(c,g,_);return K<=0?Fe=Ps(ce=c-1)+K:K>Ps(c)?(ce=c+1,Fe=K-Ps(c)):(ce=c,Fe=K),{year:ce,dayOfYear:Fe}}function Ro(c,d,h){var b,E,g=Ls(c.year(),d,h),_=Math.floor((c.dayOfYear()-g-1)/7)+1;return _<1?b=_+Vn(E=c.year()-1,d,h):_>Vn(c.year(),d,h)?(b=_-Vn(c.year(),d,h),E=c.year()+1):(E=c.year(),b=_),{week:b,year:E}}function Vn(c,d,h){var g=Ls(c,d,h),_=Ls(c+1,d,h);return(Ps(c)-g+_)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),xt("week","w"),xt("isoWeek","W"),Qt("week",5),Qt("isoWeek",5),$("w",Ge),$("ww",Ge,Fn),$("W",Ge),$("WW",Ge,Fn),Xt(["w","ww","W","WW"],function(c,d,h,g){d[g.substr(0,1)]=he(c)});function gu(c,d){return c.slice(d,7).concat(c.slice(0,d))}Y("d",0,"do","day"),Y("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),Y("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),Y("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),xt("day","d"),xt("weekday","e"),xt("isoWeekday","E"),Qt("day",11),Qt("weekday",11),Qt("isoWeekday",11),$("d",Ge),$("e",Ge),$("E",Ge),$("dd",function(c,d){return d.weekdaysMinRegex(c)}),$("ddd",function(c,d){return d.weekdaysShortRegex(c)}),$("dddd",function(c,d){return d.weekdaysRegex(c)}),Xt(["dd","ddd","dddd"],function(c,d,h,g){var _=h._locale.weekdaysParse(c,g,h._strict);null!=_?d.d=_:le(h).invalidWeekday=c}),Xt(["d","e","E"],function(c,d,h,g){d[g]=he(c)});var _h="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$v=Oo,Sn=Oo,ke=Oo;function G(c,d,h){var g,_,b,E=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],g=0;g<7;++g)b=ii([2e3,1]).day(g),this._minWeekdaysParse[g]=this.weekdaysMin(b,"").toLocaleLowerCase(),this._shortWeekdaysParse[g]=this.weekdaysShort(b,"").toLocaleLowerCase(),this._weekdaysParse[g]=this.weekdays(b,"").toLocaleLowerCase();return h?"dddd"===d?-1!==(_=ft.call(this._weekdaysParse,E))?_:null:"ddd"===d?-1!==(_=ft.call(this._shortWeekdaysParse,E))?_:null:-1!==(_=ft.call(this._minWeekdaysParse,E))?_:null:"dddd"===d?-1!==(_=ft.call(this._weekdaysParse,E))||-1!==(_=ft.call(this._shortWeekdaysParse,E))||-1!==(_=ft.call(this._minWeekdaysParse,E))?_:null:"ddd"===d?-1!==(_=ft.call(this._shortWeekdaysParse,E))||-1!==(_=ft.call(this._weekdaysParse,E))||-1!==(_=ft.call(this._minWeekdaysParse,E))?_:null:-1!==(_=ft.call(this._minWeekdaysParse,E))||-1!==(_=ft.call(this._weekdaysParse,E))||-1!==(_=ft.call(this._shortWeekdaysParse,E))?_:null}function Bs(){function c(vt,xi){return xi.length-vt.length}var b,E,K,ce,Fe,d=[],h=[],g=[],_=[];for(b=0;b<7;b++)E=ii([2e3,1]).day(b),K=Cn(this.weekdaysMin(E,"")),ce=Cn(this.weekdaysShort(E,"")),Fe=Cn(this.weekdays(E,"")),d.push(K),h.push(ce),g.push(Fe),_.push(K),_.push(ce),_.push(Fe);d.sort(c),h.sort(c),g.sort(c),_.sort(c),this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+d.join("|")+")","i")}function Zr(){return this.hours()%12||12}function sl(c,d){Y(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),d)})}function _u(c,d){return d._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Zr),Y("k",["kk",2],0,function ol(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Zr.apply(this)+oi(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Zr.apply(this)+oi(this.minutes(),2)+oi(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+oi(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+oi(this.minutes(),2)+oi(this.seconds(),2)}),sl("a",!0),sl("A",!1),xt("hour","h"),Qt("hour",13),$("a",_u),$("A",_u),$("H",Ge),$("h",Ge),$("k",Ge),$("HH",Ge,Fn),$("hh",Ge,Fn),$("kk",Ge,Fn),$("hmm",nl),$("hmmss",uu),$("Hmm",nl),$("Hmmss",uu),Se(["H","HH"],3),Se(["k","kk"],function(c,d,h){var g=he(c);d[3]=24===g?0:g}),Se(["a","A"],function(c,d,h){h._isPm=h._locale.isPM(c),h._meridiem=c}),Se(["h","hh"],function(c,d,h){d[3]=he(c),le(h).bigHour=!0}),Se("hmm",function(c,d,h){var g=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g)),le(h).bigHour=!0}),Se("hmmss",function(c,d,h){var g=c.length-4,_=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g,2)),d[5]=he(c.substr(_)),le(h).bigHour=!0}),Se("Hmm",function(c,d,h){var g=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g))}),Se("Hmmss",function(c,d,h){var g=c.length-4,_=c.length-2;d[3]=he(c.substr(0,g)),d[4]=he(c.substr(g,2)),d[5]=he(c.substr(_))});var wh=To("Hours",!0);var tn,ll={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:fu,monthsShort:hu,week:{dow:0,doy:6},weekdays:_h,weekdaysMin:yh,weekdaysShort:vh,meridiemParse:/[ap]\.?m?\.?/i},Xe={},Hn={};function Yv(c,d){var h,g=Math.min(c.length,d.length);for(h=0;h0;){if(_=cl(b.slice(0,h).join("-")))return _;if(g&&g.length>=h&&Yv(b,g)>=h-1)break;h--}d++}return tn}(c)}function Po(c){var d,h=c._a;return h&&-2===le(c).overflow&&(d=h[1]<0||h[1]>11?1:h[2]<1||h[2]>Os(h[0],h[1])?2:h[3]<0||h[3]>24||24===h[3]&&(0!==h[4]||0!==h[5]||0!==h[6])?3:h[4]<0||h[4]>59?4:h[5]<0||h[5]>59?5:h[6]<0||h[6]>999?6:-1,le(c)._overflowDayOfYear&&(d<0||d>2)&&(d=2),le(c)._overflowWeeks&&-1===d&&(d=7),le(c)._overflowWeekday&&-1===d&&(d=8),le(c).overflow=d),c}var vu=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fo=/Z|[+-]\d\d(?::?\d\d)?/,Hs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],et=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mh=/^\/?Date\((-?\d+)/i,yu=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bu={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ee(c){var d,h,b,E,K,ce,g=c._i,_=vu.exec(g)||Ni.exec(g),Fe=Hs.length,vt=et.length;if(_){for(le(c).iso=!0,d=0,h=Fe;d7)&&(ce=!0)):(b=c._locale._week.dow,E=c._locale._week.doy,Fe=Ro(Re(),b,E),h=Yn(d.gg,c._a[0],Fe.year),g=Yn(d.w,Fe.week),null!=d.d?((_=d.d)<0||_>6)&&(ce=!0):null!=d.e?(_=d.e+b,(d.e<0||d.e>6)&&(ce=!0)):_=b),g<1||g>Vn(h,b,E)?le(c)._overflowWeeks=!0:null!=ce?le(c)._overflowWeekday=!0:(K=gh(h,g,_,b,E),c._a[0]=K.year,c._dayOfYear=K.dayOfYear)}(c),null!=c._dayOfYear&&(E=Yn(c._a[0],_[0]),(c._dayOfYear>Ps(E)||0===c._dayOfYear)&&(le(c)._overflowDayOfYear=!0),h=_e(E,0,c._dayOfYear),c._a[1]=h.getUTCMonth(),c._a[2]=h.getUTCDate()),d=0;d<3&&null==c._a[d];++d)c._a[d]=g[d]=_[d];for(;d<7;d++)c._a[d]=g[d]=c._a[d]??(2===d?1:0);24===c._a[3]&&0===c._a[4]&&0===c._a[5]&&0===c._a[6]&&(c._nextDay=!0,c._a[3]=0),c._d=(c._useUTC?_e:oe).apply(null,g),b=c._useUTC?c._d.getUTCDay():c._d.getDay(),null!=c._tzm&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[3]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==b&&(le(c).weekdayMismatch=!0)}}function se(c){if(c._f!==V.ISO_8601)if(c._f!==V.RFC_2822){c._a=[],le(c).empty=!0;var h,g,_,b,E,Fe,vt,d=""+c._i,K=d.length,ce=0;for(vt=(_=ne(c._f,c._locale).match(el)||[]).length,h=0;h0&&le(c).unusedInput.push(E),d=d.slice(d.indexOf(g)+g.length),ce+=g.length),yr[b]?(g?le(c).empty=!1:le(c).unusedTokens.push(b),Fv(b,g,c)):c._strict&&!g&&le(c).unusedTokens.push(b);le(c).charsLeftOver=K-ce,d.length>0&&le(c).unusedInput.push(d),c._a[3]<=12&&!0===le(c).bigHour&&c._a[3]>0&&(le(c).bigHour=void 0),le(c).parsedDateParts=c._a.slice(0),le(c).meridiem=c._meridiem,c._a[3]=function Ze(c,d,h){var g;return null==h?d:null!=c.meridiemHour?c.meridiemHour(d,h):(null!=c.isPM&&((g=c.isPM(h))&&d<12&&(d+=12),!g&&12===d&&(d=0)),d)}(c._locale,c._a[3],c._meridiem),null!==(Fe=le(c).era)&&(c._a[0]=c._locale.erasConvertYear(Fe,c._a[0])),fn(c),Po(c)}else Ut(c);else Ee(c)}function er(c){var d=c._i,h=c._f;return c._locale=c._locale||jn(c._l),null===d||void 0===h&&""===d?mr({nullInput:!0}):("string"==typeof d&&(c._i=d=c._locale.preparse(d)),Wn(d)?new _r(Po(d)):(Ji(d)?c._d=d:dn(h)?function Nn(c){var d,h,g,_,b,E,K=!1,ce=c._f.length;if(0===ce)return le(c).invalidFormat=!0,void(c._d=new Date(NaN));for(_=0;_this?this:c:mr()});function Sr(c,d){var h,g;if(1===d.length&&dn(d[0])&&(d=d[0]),!d.length)return Re();for(h=d[0],g=1;g=0?new Date(c+400,d,h)-Bo:new Date(c,d,h).valueOf()}function zs(c,d,h){return c<100&&c>=0?Date.UTC(c+400,d,h)-Bo:Date.UTC(c,d,h)}function Ks(c,d){return d.erasAbbrRegex(c)}function jo(){var _,b,c=[],d=[],h=[],g=[],E=this.eras();for(_=0,b=E.length;_(b=Vn(c,g,_))&&(d=b),Ai.call(this,c,d,h,g,_))}function Ai(c,d,h,g,_){var b=gh(c,d,h,g,_),E=_e(b.year,0,b.dayOfYear);return this.year(E.getUTCFullYear()),this.month(E.getUTCMonth()),this.date(E.getUTCDate()),this}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),$("N",Ks),$("NN",Ks),$("NNN",Ks),$("NNNN",function Ho(c,d){return d.erasNameRegex(c)}),$("NNNNN",function ci(c,d){return d.erasNarrowRegex(c)}),Se(["N","NN","NNN","NNNN","NNNNN"],function(c,d,h,g){var _=h._locale.erasParse(c,g,h._strict);_?le(h).era=_:le(h).invalidEra=c}),$("y",Dr),$("yy",Dr),$("yyy",Dr),$("yyyy",Dr),$("yo",function bl(c,d){return d._eraYearOrdinalRegex||Dr}),Se(["y","yy","yyy","yyyy"],0),Se(["yo"],function(c,d,h,g){var _;h._locale._eraYearOrdinalRegex&&(_=c.match(h._locale._eraYearOrdinalRegex)),d[0]=h._locale.eraYearOrdinalParse?h._locale.eraYearOrdinalParse(c,_):parseInt(c,10)}),Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Dl("gggg","weekYear"),Dl("ggggg","weekYear"),Dl("GGGG","isoWeekYear"),Dl("GGGGG","isoWeekYear"),xt("weekYear","gg"),xt("isoWeekYear","GG"),Qt("weekYear",1),Qt("isoWeekYear",1),$("G",ut),$("g",ut),$("GG",Ge,Fn),$("gg",Ge,Fn),$("GGGG",As,Is),$("gggg",As,Is),$("GGGGG",ko,Io),$("ggggg",ko,Io),Xt(["gggg","ggggg","GGGG","GGGGG"],function(c,d,h,g){d[g.substr(0,2)]=he(c)}),Xt(["gg","GG"],function(c,d,h,g){d[g]=V.parseTwoDigitYear(c)}),Y("Q",0,"Qo","quarter"),xt("quarter","Q"),Qt("quarter",7),$("Q",sh),Se("Q",function(c,d){d[1]=3*(he(c)-1)}),Y("D",["DD",2],"Do","date"),xt("date","D"),Qt("date",9),$("D",Ge),$("DD",Ge,Fn),$("Do",function(c,d){return c?d._dayOfMonthOrdinalParse||d._ordinalParse:d._dayOfMonthOrdinalParseLenient}),Se(["D","DD"],2),Se("Do",function(c,d){d[2]=he(c.match(Ge)[0])});var Cl=To("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),xt("dayOfYear","DDD"),Qt("dayOfYear",4),$("DDD",Ao),$("DDDD",Ts),Se(["DDD","DDDD"],function(c,d,h){h._dayOfYear=he(c)}),Y("m",["mm",2],0,"minute"),xt("minute","m"),Qt("minute",14),$("m",Ge),$("mm",Ge,Fn),Se(["m","mm"],4);var Jh=To("Minutes",!1);Y("s",["ss",2],0,"second"),xt("second","s"),Qt("second",15),$("s",Ge),$("ss",Ge,Fn),Se(["s","ss"],5);var ui,Sl,wl=To("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),xt("millisecond","ms"),Qt("millisecond",16),$("S",Ao,sh),$("SS",Ao,Fn),$("SSS",Ao,Ts),ui="SSSS";ui.length<=9;ui+="S")$(ui,Dr);function Ml(c,d){d[6]=he(1e3*("0."+c))}for(ui="S";ui.length<=9;ui+="S")Se(ui,Ml);Sl=To("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var R=_r.prototype;function Nl(c){return c}R.add=Jv,R.calendar=function gl(c,d){1===arguments.length&&(arguments[0]?Xv(arguments[0])?(c=arguments[0],d=void 0):ny(arguments[0])&&(d=arguments[0],c=void 0):(c=void 0,d=void 0));var h=c||Re(),g=eo(h,this).startOf("day"),_=V.calendarFormat(this,g)||"sameElse",b=d&&(ri(d[_])?d[_].call(this,h):d[_]);return this.format(b||this.localeData().calendar(_,this,Re(h)))},R.clone=function iy(){return new _r(this)},R.diff=function Fh(c,d,h){var g,_,b;if(!this.isValid())return NaN;if(!(g=eo(c,this)).isValid())return NaN;switch(_=6e4*(g.utcOffset()-this.utcOffset()),d=Pn(d)){case"year":b=Gs(this,g)/12;break;case"month":b=Gs(this,g);break;case"quarter":b=Gs(this,g)/3;break;case"second":b=(this-g)/1e3;break;case"minute":b=(this-g)/6e4;break;case"hour":b=(this-g)/36e5;break;case"day":b=(this-g-_)/864e5;break;case"week":b=(this-g-_)/6048e5;break;default:b=this-g}return h?b:zn(b)},R.endOf=function En(c){var d,h;if(void 0===(c=Pn(c))||"millisecond"===c||!this.isValid())return this;switch(h=this._isUTC?zs:Tu,c){case"year":d=h(this.year()+1,0,1)-1;break;case"quarter":d=h(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":d=h(this.year(),this.month()+1,1)-1;break;case"week":d=h(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":d=h(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":d=h(this.year(),this.month(),this.date()+1)-1;break;case"hour":d=this._d.valueOf(),d+=vl-Rt(d+(this._isUTC?0:this.utcOffset()*no),vl)-1;break;case"minute":d=this._d.valueOf(),d+=no-Rt(d,no)-1;break;case"second":d=this._d.valueOf(),d+=1e3-Rt(d,1e3)-1}return this._d.setTime(d),V.updateOffset(this,!0),this},R.format=function ml(c){c||(c=this.isUtc()?V.defaultFormatUtc:V.defaultFormat);var d=Ss(this,c);return this.localeData().postformat(d)},R.from=function Vh(c,d){return this.isValid()&&(Wn(c)&&c.isValid()||Re(c).isValid())?li({to:this,from:c}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()},R.fromNow=function $n(c){return this.from(Re(),c)},R.to=function _l(c,d){return this.isValid()&&(Wn(c)&&c.isValid()||Re(c).isValid())?li({from:this,to:c}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()},R.toNow=function Bh(c){return this.to(Re(),c)},R.get=function Rv(c){return ri(this[c=Pn(c)])?this[c]():this},R.invalidAt=function sy(){return le(this).overflow},R.isAfter=function ry(c,d){var h=Wn(c)?c:Re(c);return!(!this.isValid()||!h.isValid())&&("millisecond"===(d=Pn(d)||"millisecond")?this.valueOf()>h.valueOf():h.valueOf()9999?Ss(h,d?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ri(Date.prototype.toISOString)?d?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ss(h,"Z")):Ss(h,d?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},R.inspect=function Lh(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var h,g,c="moment",d="";return this.isLocal()||(c=0===this.utcOffset()?"moment.utc":"moment.parseZone",d="Z"),h="["+c+'("]',g=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(h+g+"-MM-DD[T]HH:mm:ss.SSS"+d+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(R[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),R.toJSON=function yl(){return this.isValid()?this.toISOString():null},R.toString=function Mu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},R.unix=function Ys(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function jh(){return this._d.valueOf()-6e4*(this._offset||0)},R.creationData=function Uh(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},R.eraName=function zh(){var c,d,h,g=this.localeData().eras();for(c=0,d=g.length;cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},R.isLocal=function Ih(){return!!this.isValid()&&!this._isUTC},R.isUtcOffset=function Kv(){return!!this.isValid()&&this._isUTC},R.isUtc=Cu,R.isUTC=Cu,R.zoneAbbr=function Qh(){return this._isUTC?"UTC":""},R.zoneName=function Ru(){return this._isUTC?"Coordinated Universal Time":""},R.dates=Jt("dates accessor is deprecated. Use date instead.",Cl),R.months=Jt("months accessor is deprecated. Use month instead",xs),R.years=Jt("years accessor is deprecated. Use year instead",F),R.zone=Jt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Th(c,d){return null!=c?("string"!=typeof c&&(c=-c),this.utcOffset(c,d),this):-this.utcOffset()}),R.isDSTShifted=Jt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Zn(){if(!qt(this._isDSTShifted))return this._isDSTShifted;var d,c={};return Ja(c,this),(c=er(c))._a?(d=c._isUTC?ii(c._a):Re(c._a),this._isDSTShifted=this.isValid()&&function Eh(c,d,h){var E,g=Math.min(c.length,d.length),_=Math.abs(c.length-d.length),b=0;for(E=0;E0):this._isDSTShifted=!1,this._isDSTShifted});var Me=Xa.prototype;function ro(c,d,h,g){var _=jn(),b=ii().set(g,d);return _[h](b,c)}function Lu(c,d,h){if(Zt(c)&&(d=c,c=void 0),c=c||"",null!=d)return ro(c,d,h,"month");var g,_=[];for(g=0;g<12;g++)_[g]=ro(c,g,h,"month");return _}function El(c,d,h,g){"boolean"==typeof c?(Zt(d)&&(h=d,d=void 0),d=d||""):(h=d=c,c=!1,Zt(d)&&(h=d,d=void 0),d=d||"");var E,_=jn(),b=c?_._week.dow:0,K=[];if(null!=h)return ro(d,(h+b)%7,g,"day");for(E=0;E<7;E++)K[E]=ro(d,(E+b)%7,g,"day");return K}Me.calendar=function su(c,d,h){var g=this._calendar[c]||this._calendar.sameElse;return ri(g)?g.call(d,h):g},Me.longDateFormat=function Tv(c){var d=this._longDateFormat[c],h=this._longDateFormat[c.toUpperCase()];return d||!h?d:(this._longDateFormat[c]=h.match(el).map(function(g){return"MMMM"===g||"MM"===g||"DD"===g||"dddd"===g?g.slice(1):g}).join(""),this._longDateFormat[c])},Me.invalidDate=function Iv(){return this._invalidDate},Me.ordinal=function Ov(c){return this._ordinal.replace("%d",c)},Me.preparse=Nl,Me.postformat=Nl,Me.relativeTime=function xv(c,d,h,g){var _=this._relativeTime[h];return ri(_)?_(c,d,h,g):_.replace(/%d/i,c)},Me.pastFuture=function lu(c,d){var h=this._relativeTime[c>0?"future":"past"];return ri(h)?h(d):h.replace(/%s/i,d)},Me.set=function Qa(c){var d,h;for(h in c)we(c,h)&&(ri(d=c[h])?this[h]=d:this["_"+h]=d);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Me.eras=function Gh(c,d){var h,g,_,b=this._eras||jn("en")._eras;for(h=0,g=b.length;h=0)return b[g]},Me.erasConvertYear=function ku(c,d){var h=c.since<=c.until?1:-1;return void 0===d?V(c.since).year():V(c.since).year()+(d-c.offset)*h},Me.erasAbbrRegex=function _t(c){return we(this,"_erasAbbrRegex")||jo.call(this),c?this._erasAbbrRegex:this._erasRegex},Me.erasNameRegex=function mt(c){return we(this,"_erasNameRegex")||jo.call(this),c?this._erasNameRegex:this._erasRegex},Me.erasNarrowRegex=function wt(c){return we(this,"_erasNarrowRegex")||jo.call(this),c?this._erasNarrowRegex:this._erasRegex},Me.months=function hh(c,d){return c?dn(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||pu).test(d)?"format":"standalone"][c.month()]:dn(this._months)?this._months:this._months.standalone},Me.monthsShort=function il(c,d){return c?dn(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[pu.test(d)?"format":"standalone"][c.month()]:dn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Me.monthsParse=function rl(c,d,h){var g,_,b;if(this._monthsParseExact)return $e.call(this,c,d,h);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),g=0;g<12;g++){if(_=ii([2e3,g]),h&&!this._longMonthsParse[g]&&(this._longMonthsParse[g]=new RegExp("^"+this.months(_,"").replace(".","")+"$","i"),this._shortMonthsParse[g]=new RegExp("^"+this.monthsShort(_,"").replace(".","")+"$","i")),!h&&!this._monthsParse[g]&&(b="^"+this.months(_,"")+"|^"+this.monthsShort(_,""),this._monthsParse[g]=new RegExp(b.replace(".",""),"i")),h&&"MMMM"===d&&this._longMonthsParse[g].test(c))return g;if(h&&"MMM"===d&&this._shortMonthsParse[g].test(c))return g;if(!h&&this._monthsParse[g].test(c))return g}},Me.monthsRegex=function te(c){return this._monthsParseExact?(we(this,"_monthsRegex")||Rs.call(this),c?this._monthsStrictRegex:this._monthsRegex):(we(this,"_monthsRegex")||(this._monthsRegex=fh),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)},Me.monthsShortRegex=function Te(c){return this._monthsParseExact?(we(this,"_monthsRegex")||Rs.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(we(this,"_monthsShortRegex")||(this._monthsShortRegex=gt),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)},Me.week=function wn(c){return Ro(c,this._week.dow,this._week.doy).week},Me.firstDayOfYear=function Vv(){return this._week.doy},Me.firstDayOfWeek=function mh(){return this._week.dow},Me.weekdays=function Uv(c,d){var h=dn(this._weekdays)?this._weekdays:this._weekdays[c&&!0!==c&&this._weekdays.isFormat.test(d)?"format":"standalone"];return!0===c?gu(h,this._week.dow):c?h[c.day()]:h},Me.weekdaysMin=function Wv(c){return!0===c?gu(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin},Me.weekdaysShort=function Gv(c){return!0===c?gu(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort},Me.weekdaysParse=function zv(c,d,h){var g,_,b;if(this._weekdaysParseExact)return G.call(this,c,d,h);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),g=0;g<7;g++){if(_=ii([2e3,1]).day(g),h&&!this._fullWeekdaysParse[g]&&(this._fullWeekdaysParse[g]=new RegExp("^"+this.weekdays(_,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[g]=new RegExp("^"+this.weekdaysShort(_,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[g]=new RegExp("^"+this.weekdaysMin(_,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[g]||(b="^"+this.weekdays(_,"")+"|^"+this.weekdaysShort(_,"")+"|^"+this.weekdaysMin(_,""),this._weekdaysParse[g]=new RegExp(b.replace(".",""),"i")),h&&"dddd"===d&&this._fullWeekdaysParse[g].test(c))return g;if(h&&"ddd"===d&&this._shortWeekdaysParse[g].test(c))return g;if(h&&"dd"===d&&this._minWeekdaysParse[g].test(c))return g;if(!h&&this._weekdaysParse[g].test(c))return g}},Me.weekdaysRegex=function mu(c){return this._weekdaysParseExact?(we(this,"_weekdaysRegex")||Bs.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(we(this,"_weekdaysRegex")||(this._weekdaysRegex=$v),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)},Me.weekdaysShortRegex=function Dh(c){return this._weekdaysParseExact?(we(this,"_weekdaysRegex")||Bs.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(we(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sn),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Me.weekdaysMinRegex=function Ch(c){return this._weekdaysParseExact?(we(this,"_weekdaysRegex")||Bs.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(we(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ke),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Me.isPM=function X(c){return"p"===(c+"").toLowerCase().charAt(0)},Me.meridiem=function Bn(c,d,h){return c>11?h?"pm":"PM":h?"am":"AM"},Cr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var d=c%10;return c+(1===he(c%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")}}),V.lang=Jt("moment.lang is deprecated. Use moment.locale instead.",Cr),V.langData=Jt("moment.langData is deprecated. Use moment.localeData instead.",jn);var ki=Math.abs;function Vu(c,d,h,g){var _=li(d,h);return c._milliseconds+=g*_._milliseconds,c._days+=g*_._days,c._months+=g*_._months,c._bubble()}function $o(c){return c<0?Math.floor(c):Math.ceil(c)}function Js(c){return 4800*c/146097}function Qs(c){return 146097*c/4800}function Tn(c){return function(){return this.as(c)}}var rp=Tn("ms"),op=Tn("s"),Uo=Tn("m"),Tl=Tn("h"),sp=Tn("d"),ap=Tn("w"),ly=Tn("M"),cy=Tn("Q"),Xs=Tn("y");function di(c){return function(){return this.isValid()?this._data[c]:NaN}}var ju=di("milliseconds"),$u=di("seconds"),oo=di("minutes"),lp=di("hours"),so=di("days"),Il=di("months"),ea=di("years");var fi=Math.round,Ir={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cp(c,d,h,g,_){return _.relativeTime(d||1,!!h,c,g)}var Wo=Math.abs;function Oi(c){return(c>0)-(c<0)||+c}function Ar(){if(!this.isValid())return this.localeData().invalidDate();var g,_,b,E,ce,Fe,vt,xi,c=Wo(this._milliseconds)/1e3,d=Wo(this._days),h=Wo(this._months),K=this.asSeconds();return K?(g=zn(c/60),_=zn(g/60),c%=60,g%=60,b=zn(h/12),h%=12,E=c?c.toFixed(3).replace(/\.?0+$/,""):"",ce=K<0?"-":"",Fe=Oi(this._months)!==Oi(K)?"-":"",vt=Oi(this._days)!==Oi(K)?"-":"",xi=Oi(this._milliseconds)!==Oi(K)?"-":"",ce+"P"+(b?Fe+b+"Y":"")+(h?Fe+h+"M":"")+(d?vt+d+"D":"")+(_||g||c?"T":"")+(_?xi+_+"H":"")+(g?xi+g+"M":"")+(c?xi+E+"S":"")):"P0D"}var De=Lo.prototype; //! moment.js -return De.isValid=function Yn(){return this._isValid},De.abs=function tp(){var c=this._data;return this._milliseconds=Oi(this._milliseconds),this._days=Oi(this._days),this._months=Oi(this._months),c.milliseconds=Oi(c.milliseconds),c.seconds=Oi(c.seconds),c.minutes=Oi(c.minutes),c.hours=Oi(c.hours),c.months=Oi(c.months),c.years=Oi(c.years),this},De.add=function np(c,d){return Vu(this,c,d,1)},De.subtract=function qs(c,d){return Vu(this,c,d,-1)},De.as=function ip(c){if(!this.isValid())return NaN;var d,h,g=this._milliseconds;if("month"===(c=Fn(c))||"quarter"===c||"year"===c)switch(d=this._days+g/864e5,h=this._months+Zs(d),c){case"month":return h;case"quarter":return h/3;case"year":return h/12}else switch(d=this._days+Math.round(Qs(this._months)),c){case"week":return d/7+g/6048e5;case"day":return d+g/864e5;case"hour":return 24*d+g/36e5;case"minute":return 1440*d+g/6e4;case"second":return 86400*d+g/1e3;case"millisecond":return Math.floor(864e5*d)+g;default:throw new Error("Unknown unit "+c)}},De.asMilliseconds=rp,De.asSeconds=op,De.asMinutes=Uo,De.asHours=Tl,De.asDays=sp,De.asWeeks=ap,De.asMonths=ly,De.asQuarters=cy,De.asYears=Xs,De.valueOf=function ir(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN},De._bubble=function Js(){var _,b,N,Y,ce,c=this._milliseconds,d=this._days,h=this._months,g=this._data;return c>=0&&d>=0&&h>=0||c<=0&&d<=0&&h<=0||(c+=864e5*$o(Qs(h)+d),d=0,h=0),g.milliseconds=c%1e3,_=Kn(c/1e3),g.seconds=_%60,b=Kn(_/60),g.minutes=b%60,N=Kn(b/60),g.hours=N%24,d+=Kn(N/24),h+=ce=Kn(Zs(d)),d-=$o(Qs(ce)),Y=Kn(h/12),h%=12,g.days=d,g.months=h,g.years=Y,this},De.clone=function Hu(){return li(this)},De.get=function Bu(c){return c=Fn(c),this.isValid()?this[c+"s"]():NaN},De.milliseconds=ju,De.seconds=$u,De.minutes=oo,De.hours=lp,De.days=so,De.weeks=function uy(){return Kn(this.days()/7)},De.months=Al,De.years=ea,De.humanize=function Il(c,d){if(!this.isValid())return this.localeData().invalidDate();var _,b,h=!1,g=Ar;return"object"==typeof c&&(d=c,c=!1),"boolean"==typeof c&&(h=c),"object"==typeof d&&(g=Object.assign({},Ar,d),null!=d.s&&null==d.ss&&(g.ss=d.s-1)),b=function hi(c,d,h,g){var _=li(c).abs(),b=fi(_.as("s")),N=fi(_.as("m")),Y=fi(_.as("h")),ce=fi(_.as("d")),Pe=fi(_.as("M")),vt=fi(_.as("w")),Ri=fi(_.as("y")),nt=b<=h.ss&&["s",b]||b0,nt[4]=g,cp.apply(null,nt)}(this,!h,g,_=this.localeData()),h&&(b=_.pastFuture(+this,b)),_.postformat(b)},De.toISOString=Ir,De.toString=Ir,De.toJSON=Ir,De.locale=Ws,De.localeData=Bh,De.toIsoString=Zt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ir),De.lang=Nu,z("X",0,0,"unix"),z("x",0,0,"valueOf"),$("x",ut),$("X",/[+-]?\d+(\.\d{1,3})?/),Se("X",function(c,d,h){h._d=new Date(1e3*parseFloat(c))}),Se("x",function(c,d,h){h._d=new Date(he(c))}),V.version="2.29.4",function qa(c){ye=c}(xe),V.fn=x,V.min=function dl(){return Sr("isBefore",[].slice.call(arguments,0))},V.max=function Er(){return Sr("isAfter",[].slice.call(arguments,0))},V.now=function(){return Date.now?Date.now():+new Date},V.utc=ii,V.unix=function Fu(c){return xe(1e3*c)},V.months=function on(c,d){return Lu(c,d,"months")},V.isDate=Zi,V.locale=Cr,V.invalid=mr,V.duration=li,V.isMoment=Wn,V.weekdays=function st(c,d,h){return Nl(c,d,h,"weekdays")},V.parseZone=function Pu(){return xe.apply(null,arguments).parseZone()},V.localeData=jn,V.isDuration=Fe,V.monthsShort=function nr(c,d){return Lu(c,d,"monthsShort")},V.weekdaysMin=function ep(c,d,h){return Nl(c,d,h,"weekdaysMin")},V.defineLocale=Xi,V.updateLocale=function Ae(c,d){if(null!=d){var h,g,_=ll;null!=Xe[c]&&null!=Xe[c].parentLocale?Xe[c].set(xn(Xe[c]._config,d)):(null!=(g=cl(c))&&(_=g._config),d=xn(_,d),null==g&&(d.abbr=c),(h=new Xa(d)).parentLocale=Xe[c],Xe[c]=h),Cr(c)}else null!=Xe[c]&&(null!=Xe[c].parentLocale?(Xe[c]=Xe[c].parentLocale,c===Cr()&&Cr(c)):null!=Xe[c]&&delete Xe[c]);return Xe[c]},V.locales=function ul(){return Cs(Xe)},V.weekdaysShort=function Xh(c,d,h){return Nl(c,d,h,"weekdaysShort")},V.normalizeUnits=Fn,V.relativeTimeRounding=function up(c){return void 0===c?fi:"function"==typeof c&&(fi=c,!0)},V.relativeTimeThreshold=function Go(c,d){return void 0!==Ar[c]&&(void 0===d?Ar[c]:(Ar[c]=d,"s"===c&&(Ar.ss=d-1),!0))},V.calendarFormat=function wu(c,d){var h=c.diff(d,"days",!0);return h<-6?"sameElse":h<-1?"lastWeek":h<0?"lastDay":h<1?"sameDay":h<2?"nextDay":h<7?"nextWeek":"sameElse"},V.prototype=x,V.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},V}()}},gr=>{gr(gr.s=381)}]); \ No newline at end of file +return De.isValid=function Kn(){return this._isValid},De.abs=function tp(){var c=this._data;return this._milliseconds=ki(this._milliseconds),this._days=ki(this._days),this._months=ki(this._months),c.milliseconds=ki(c.milliseconds),c.seconds=ki(c.seconds),c.minutes=ki(c.minutes),c.hours=ki(c.hours),c.months=ki(c.months),c.years=ki(c.years),this},De.add=function np(c,d){return Vu(this,c,d,1)},De.subtract=function qs(c,d){return Vu(this,c,d,-1)},De.as=function ip(c){if(!this.isValid())return NaN;var d,h,g=this._milliseconds;if("month"===(c=Pn(c))||"quarter"===c||"year"===c)switch(d=this._days+g/864e5,h=this._months+Js(d),c){case"month":return h;case"quarter":return h/3;case"year":return h/12}else switch(d=this._days+Math.round(Qs(this._months)),c){case"week":return d/7+g/6048e5;case"day":return d+g/864e5;case"hour":return 24*d+g/36e5;case"minute":return 1440*d+g/6e4;case"second":return 86400*d+g/1e3;case"millisecond":return Math.floor(864e5*d)+g;default:throw new Error("Unknown unit "+c)}},De.asMilliseconds=rp,De.asSeconds=op,De.asMinutes=Uo,De.asHours=Tl,De.asDays=sp,De.asWeeks=ap,De.asMonths=ly,De.asQuarters=cy,De.asYears=Xs,De.valueOf=function ir(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN},De._bubble=function Zs(){var _,b,E,K,ce,c=this._milliseconds,d=this._days,h=this._months,g=this._data;return c>=0&&d>=0&&h>=0||c<=0&&d<=0&&h<=0||(c+=864e5*$o(Qs(h)+d),d=0,h=0),g.milliseconds=c%1e3,_=zn(c/1e3),g.seconds=_%60,b=zn(_/60),g.minutes=b%60,E=zn(b/60),g.hours=E%24,d+=zn(E/24),h+=ce=zn(Js(d)),d-=$o(Qs(ce)),K=zn(h/12),h%=12,g.days=d,g.months=h,g.years=K,this},De.clone=function Bu(){return li(this)},De.get=function Hu(c){return c=Pn(c),this.isValid()?this[c+"s"]():NaN},De.milliseconds=ju,De.seconds=$u,De.minutes=oo,De.hours=lp,De.days=so,De.weeks=function uy(){return zn(this.days()/7)},De.months=Il,De.years=ea,De.humanize=function Al(c,d){if(!this.isValid())return this.localeData().invalidDate();var _,b,h=!1,g=Ir;return"object"==typeof c&&(d=c,c=!1),"boolean"==typeof c&&(h=c),"object"==typeof d&&(g=Object.assign({},Ir,d),null!=d.s&&null==d.ss&&(g.ss=d.s-1)),b=function hi(c,d,h,g){var _=li(c).abs(),b=fi(_.as("s")),E=fi(_.as("m")),K=fi(_.as("h")),ce=fi(_.as("d")),Fe=fi(_.as("M")),vt=fi(_.as("w")),xi=fi(_.as("y")),nt=b<=h.ss&&["s",b]||b0,nt[4]=g,cp.apply(null,nt)}(this,!h,g,_=this.localeData()),h&&(b=_.pastFuture(+this,b)),_.postformat(b)},De.toISOString=Ar,De.toString=Ar,De.toJSON=Ar,De.locale=Ws,De.localeData=Hh,De.toIsoString=Jt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ar),De.lang=Eu,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),$("x",ut),$("X",/[+-]?\d+(\.\d{1,3})?/),Se("X",function(c,d,h){h._d=new Date(1e3*parseFloat(c))}),Se("x",function(c,d,h){h._d=new Date(he(c))}),V.version="2.29.4",function qa(c){ye=c}(Re),V.fn=R,V.min=function dl(){return Sr("isBefore",[].slice.call(arguments,0))},V.max=function Mr(){return Sr("isAfter",[].slice.call(arguments,0))},V.now=function(){return Date.now?Date.now():+new Date},V.utc=ii,V.unix=function Pu(c){return Re(1e3*c)},V.months=function on(c,d){return Lu(c,d,"months")},V.isDate=Ji,V.locale=Cr,V.invalid=mr,V.duration=li,V.isMoment=Wn,V.weekdays=function st(c,d,h){return El(c,d,h,"weekdays")},V.parseZone=function Fu(){return Re.apply(null,arguments).parseZone()},V.localeData=jn,V.isDuration=Pe,V.monthsShort=function nr(c,d){return Lu(c,d,"monthsShort")},V.weekdaysMin=function ep(c,d,h){return El(c,d,h,"weekdaysMin")},V.defineLocale=Xi,V.updateLocale=function Ie(c,d){if(null!=d){var h,g,_=ll;null!=Xe[c]&&null!=Xe[c].parentLocale?Xe[c].set(Rn(Xe[c]._config,d)):(null!=(g=cl(c))&&(_=g._config),d=Rn(_,d),null==g&&(d.abbr=c),(h=new Xa(d)).parentLocale=Xe[c],Xe[c]=h),Cr(c)}else null!=Xe[c]&&(null!=Xe[c].parentLocale?(Xe[c]=Xe[c].parentLocale,c===Cr()&&Cr(c)):null!=Xe[c]&&delete Xe[c]);return Xe[c]},V.locales=function ul(){return Cs(Xe)},V.weekdaysShort=function Xh(c,d,h){return El(c,d,h,"weekdaysShort")},V.normalizeUnits=Pn,V.relativeTimeRounding=function up(c){return void 0===c?fi:"function"==typeof c&&(fi=c,!0)},V.relativeTimeThreshold=function Go(c,d){return void 0!==Ir[c]&&(void 0===d?Ir[c]:(Ir[c]=d,"s"===c&&(Ir.ss=d-1),!0))},V.calendarFormat=function wu(c,d){var h=c.diff(d,"days",!0);return h<-6?"sameElse":h<-1?"lastWeek":h<0?"lastDay":h<1?"sameDay":h<2?"nextDay":h<7?"nextWeek":"sameElse"},V.prototype=R,V.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},V}()}},gr=>{gr(gr.s=381)}]); \ No newline at end of file diff --git a/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.prod.ts b/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.prod.ts index 0ab556da1..6ed00f120 100644 --- a/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.prod.ts +++ b/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.prod.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - apiUrl: "/kafka-flow" + apiUrl: "/kafkaflow" }; diff --git a/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.ts b/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.ts index 6d9afd161..9e53f6b4d 100644 --- a/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.ts +++ b/src/KafkaFlow.Admin.Dashboard/ClientApp/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - apiUrl: 'http://localhost:5000/kafka-flow' + apiUrl: 'http://localhost:5000/kafkaflow' }; /* diff --git a/src/KafkaFlow.Admin.Dashboard/DashboardConfigurationBuilder.cs b/src/KafkaFlow.Admin.Dashboard/DashboardConfigurationBuilder.cs index 110acc4e4..4c0e1e61f 100644 --- a/src/KafkaFlow.Admin.Dashboard/DashboardConfigurationBuilder.cs +++ b/src/KafkaFlow.Admin.Dashboard/DashboardConfigurationBuilder.cs @@ -6,7 +6,7 @@ namespace KafkaFlow.Admin.Dashboard internal class DashboardConfigurationBuilder : IDashboardConfigurationBuilder { - private readonly PathString basePath = "/kafka-flow"; + private readonly PathString basePath = "/kafkaflow"; private Action requestHandler = _ => { }; private Action endpointHandler = _ => { }; diff --git a/src/KafkaFlow.Admin.WebApi/Controllers/ConsumersController.cs b/src/KafkaFlow.Admin.WebApi/Controllers/ConsumersController.cs index 959e36e0a..557645965 100644 --- a/src/KafkaFlow.Admin.WebApi/Controllers/ConsumersController.cs +++ b/src/KafkaFlow.Admin.WebApi/Controllers/ConsumersController.cs @@ -12,7 +12,7 @@ namespace KafkaFlow.Admin.WebApi.Controllers /// /// Consumers controller /// - [Route("kafka-flow/groups/{groupId}/consumers")] + [Route("kafkaflow/groups/{groupId}/consumers")] [ApiController] public class ConsumersController : ControllerBase { @@ -23,7 +23,7 @@ public class ConsumersController : ControllerBase /// Initializes a new instance of the class. /// /// The accessor class that provides access to the consumers - /// The producer to publish admin messages + /// The admin messages consumer public ConsumersController(IConsumerAccessor consumers, IConsumerAdmin consumerAdmin) { this.consumers = consumers; diff --git a/src/KafkaFlow.Admin.WebApi/Controllers/GroupsController.cs b/src/KafkaFlow.Admin.WebApi/Controllers/GroupsController.cs index 49886a54d..5424b5d31 100644 --- a/src/KafkaFlow.Admin.WebApi/Controllers/GroupsController.cs +++ b/src/KafkaFlow.Admin.WebApi/Controllers/GroupsController.cs @@ -12,7 +12,7 @@ namespace KafkaFlow.Admin.WebApi.Controllers /// /// Groups controller /// - [Route("kafka-flow/groups")] + [Route("kafkaflow/groups")] [ApiController] public class GroupsController : ControllerBase { @@ -23,7 +23,7 @@ public class GroupsController : ControllerBase /// Initializes a new instance of the class. /// /// The accessor class that provides access to the consumers - /// The producer to publish admin messages + /// The admin messages consumer public GroupsController(IConsumerAccessor consumers, IConsumerAdmin consumerAdmin) { this.consumers = consumers; diff --git a/src/KafkaFlow.Admin.WebApi/Controllers/TelemetryController.cs b/src/KafkaFlow.Admin.WebApi/Controllers/TelemetryController.cs index 763768546..2cc39ef3c 100644 --- a/src/KafkaFlow.Admin.WebApi/Controllers/TelemetryController.cs +++ b/src/KafkaFlow.Admin.WebApi/Controllers/TelemetryController.cs @@ -7,7 +7,7 @@ namespace KafkaFlow.Admin.WebApi.Controllers /// /// Telemetry controller /// - [Route("kafka-flow/telemetry")] + [Route("kafkaflow/telemetry")] [ApiController] public class TelemetryController : ControllerBase { diff --git a/src/KafkaFlow.Admin/Handlers/PauseConsumerByNameHandler.cs b/src/KafkaFlow.Admin/Handlers/PauseConsumerByNameHandler.cs index 317e8440d..c8bd71843 100644 --- a/src/KafkaFlow.Admin/Handlers/PauseConsumerByNameHandler.cs +++ b/src/KafkaFlow.Admin/Handlers/PauseConsumerByNameHandler.cs @@ -27,4 +27,4 @@ public Task Handle(IMessageContext context, PauseConsumerByName message) return Task.CompletedTask; } } -} \ No newline at end of file +} diff --git a/src/KafkaFlow.Admin/Handlers/RewindConsumerOffsetToDateTimeHandler.cs b/src/KafkaFlow.Admin/Handlers/RewindConsumerOffsetToDateTimeHandler.cs index 8ede7f638..83712ab40 100644 --- a/src/KafkaFlow.Admin/Handlers/RewindConsumerOffsetToDateTimeHandler.cs +++ b/src/KafkaFlow.Admin/Handlers/RewindConsumerOffsetToDateTimeHandler.cs @@ -4,7 +4,7 @@ namespace KafkaFlow.Admin.Handlers using System.Linq; using System.Threading.Tasks; using Confluent.Kafka; - using Extensions; + using KafkaFlow.Admin.Extensions; using KafkaFlow.Admin.Messages; using KafkaFlow.Consumers; using KafkaFlow.TypedHandler; diff --git a/src/KafkaFlow.IntegrationTests/ProducerTest.cs b/src/KafkaFlow.IntegrationTests/ProducerTest.cs index e1cce8c37..00f4e58db 100644 --- a/src/KafkaFlow.IntegrationTests/ProducerTest.cs +++ b/src/KafkaFlow.IntegrationTests/ProducerTest.cs @@ -23,7 +23,6 @@ public void Setup() MessageStorage.Clear(); } - [TestMethod] public async Task ProduceNullKeyTest() { diff --git a/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/ConsumersControllerTests.cs b/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/ConsumersControllerTests.cs new file mode 100644 index 000000000..25d018991 --- /dev/null +++ b/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/ConsumersControllerTests.cs @@ -0,0 +1,506 @@ +namespace KafkaFlow.UnitTests.Admin.WebApi.Controllers +{ + using System; + using System.Collections.Generic; + using System.Linq; + using System.Threading.Tasks; + using AutoFixture; + using FluentAssertions; + using KafkaFlow.Admin; + using KafkaFlow.Admin.WebApi.Contracts; + using KafkaFlow.Admin.WebApi.Controllers; + using KafkaFlow.Consumers; + using Microsoft.AspNetCore.Mvc; + using Microsoft.VisualStudio.TestTools.UnitTesting; + using Moq; + + [TestClass] + public class ConsumersControllerTests + { + private readonly Fixture fixture = new(); + private ConsumersController target; + private Mock mockConsumerAccessor; + private Mock mockConsumerAdmin; + + [TestInitialize] + public void TestSetup() + { + this.mockConsumerAccessor = this.fixture.Freeze>(); + this.mockConsumerAdmin = this.fixture.Freeze>(); + this.target = new ConsumersController(this.mockConsumerAccessor.Object, this.mockConsumerAdmin.Object); + } + + [TestMethod] + public void GetConsumersByGroupId_ValidGroupId_ReturnsOkResultWithConsumersResponse() + { + // Arrange + var groupId = "group1"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == "group1" && c.ConsumerName == "consumer1"), + Mock.Of(c => c.GroupId == "group1" && c.ConsumerName == "consumer2"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = this.target.GetConsumersByGroupId(groupId) as ObjectResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(200); + + var response = result.Value.Should().BeOfType().Subject; + response.Consumers.Should().HaveCount(2); + response.Consumers.Select(c => c.ConsumerName).Should().Contain(new[] { "consumer1", "consumer2" }); + } + + [TestMethod] + public void GetConsumerByGroupIdName_ValidGroupIdAndExistingConsumer_ReturnsOkResultWithConsumerResponse() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + Mock.Of(c => c.GroupId == "group1" && c.ConsumerName == "consumer2"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers.AsQueryable()); + + // Act + var result = this.target.GetConsumerByGroupIdName(groupId, consumerName) as ObjectResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(200); + + var response = result.Value.Should().BeOfType().Subject; + response.GroupId.Should().Be(groupId); + response.ConsumerName.Should().Be(consumerName); + } + + [TestMethod] + public void GetConsumerByGroupIdName_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "nonExistingConsumer"; + + // Act + var result = this.target.GetConsumerByGroupIdName(groupId, consumerName) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + } + + [TestMethod] + public async Task PauseConsumer_ValidGroupIdAndExistingConsumer_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.PauseConsumer(groupId, consumerName, topics) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.PauseConsumerAsync(consumerName, topics), Times.Once); + } + + [TestMethod] + public async Task PauseConsumer_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == "consumer2"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.PauseConsumer(groupId, consumerName, topics) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + } + + [TestMethod] + public async Task ResumeConsumer_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "nonExistingConsumer"; + var topics = new List { "topic1", "topic2" }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == "existingConsumer"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.ResumeConsumer(groupId, consumerName, topics) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + + this.mockConsumerAdmin.Verify(x => x.ResumeConsumerAsync(consumerName, topics), Times.Never); + } + + [TestMethod] + public async Task StartConsumer_ValidGroupIdAndExistingConsumer_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.StartConsumer(groupId, consumerName) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.StartConsumerAsync(consumerName), Times.Once); + } + + [TestMethod] + public async Task StartConsumer_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "nonExistingConsumer"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == "consumer1"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.StartConsumer(groupId, consumerName) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + + this.mockConsumerAdmin.Verify(x => x.StartConsumerAsync(consumerName), Times.Never); + } + + [TestMethod] + public async Task StopConsumer_ValidGroupIdAndExistingConsumer_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.StopConsumer(groupId, consumerName) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.StopConsumerAsync(consumerName), Times.Once); + } + + [TestMethod] + public async Task StopConsumer_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "nonExistingConsumer"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == "consumer1"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.StopConsumer(groupId, consumerName) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + + this.mockConsumerAdmin.Verify(x => x.StopConsumerAsync(consumerName), Times.Never); + } + + [TestMethod] + public async Task RestartConsumer_ValidGroupIdAndExistingConsumer_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.RestartConsumer(groupId, consumerName) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.RestartConsumerAsync(consumerName), Times.Once); + } + + [TestMethod] + public async Task RestartConsumer_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "nonExistingConsumer"; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == "consumer1"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.RestartConsumer(groupId, consumerName) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + + this.mockConsumerAdmin.Verify(x => x.StopConsumerAsync(consumerName), Times.Never); + } + + [TestMethod] + public async Task ResetOffsets_ValidRequest_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + var request = new ResetOffsetsRequest { Confirm = true }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.ResetOffsets(groupId, consumerName, topics, request) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.ResetOffsetsAsync(consumerName, topics), Times.Once); + } + + [TestMethod] + public async Task ResetOffsets_InvalidConfirmValue_ReturnsBadRequestResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + var request = new ResetOffsetsRequest { Confirm = false }; // Invalid Confirm value + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.ResetOffsets(groupId, consumerName, topics, request) as BadRequestResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(400); + + this.mockConsumerAdmin.Verify(x => x.ResetOffsetsAsync(consumerName, topics), Times.Never); + } + + [TestMethod] + public async Task RewindOffsets_ValidGroupIdAndNonExistingConsumer_ReturnsNotFoundResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "nonExistingConsumer"; + var topics = new List { "topic1", "topic2" }; + var request = new RewindOffsetsToDateRequest { Date = this.fixture.Create() }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == "consumer1"), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.RewindOffsets(groupId, consumerName, topics, request) as NotFoundResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(404); + + this.mockConsumerAdmin.Verify(x => x.RewindOffsetsAsync(consumerName, request.Date, topics), Times.Never); + } + + [TestMethod] + public async Task RewindOffsets_ValidRequest_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + var request = new RewindOffsetsToDateRequest { Date = this.fixture.Create() }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.RewindOffsets(groupId, consumerName, topics, request) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.RewindOffsetsAsync(consumerName, request.Date, topics), Times.Once); + } + + [TestMethod] + public async Task RewindOffsets_InvalidRequest_ReturnsBadRequestResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + RewindOffsetsToDateRequest request = null; + + // Act + var result = await this.target.RewindOffsets(groupId, consumerName, topics, request) as BadRequestResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(400); + + this.mockConsumerAdmin.Verify(x => x.RewindOffsetsAsync(consumerName, It.IsAny(), topics), Times.Never); + } + + [TestMethod] + public async Task ChangeWorkersCount_ValidRequest_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + var topics = new List { "topic1", "topic2" }; + var request = new RewindOffsetsToDateRequest { Date = this.fixture.Create() }; + + var consumers = new List + { + Mock.Of(c => c.GroupId == groupId && c.ConsumerName == consumerName), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = await this.target.RewindOffsets(groupId, consumerName, topics, request) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.RewindOffsetsAsync(consumerName, request.Date, topics), Times.Once); + } + + [TestMethod] + public async Task ChangeWorkersCount_NullRequest_ReturnsBadRequestResult() + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + ChangeWorkersCountRequest request = null; + + // Act + var result = await this.target.ChangeWorkersCount(groupId, consumerName, request) as BadRequestResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(400); + + this.mockConsumerAdmin.Verify(x => x.ChangeWorkersCountAsync(consumerName, It.IsAny()), Times.Never); + } + + [DataRow(0)] + [DataRow(-5)] + [DataRow(-100)] + [TestMethod] + public async Task ChangeWorkersCount_InvalidWorkerCount_ReturnsBadRequestResult(int workerCount) + { + // Arrange + var groupId = "group1"; + var consumerName = "consumer1"; + ChangeWorkersCountRequest request = new ChangeWorkersCountRequest { WorkersCount = workerCount }; + + // Act + var result = await this.target.ChangeWorkersCount(groupId, consumerName, request) as BadRequestResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(400); + + this.mockConsumerAdmin.Verify(x => x.ChangeWorkersCountAsync(consumerName, It.IsAny()), Times.Never); + } + } +} diff --git a/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/GroupsControllerTests.cs b/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/GroupsControllerTests.cs new file mode 100644 index 000000000..91bbcdf18 --- /dev/null +++ b/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/GroupsControllerTests.cs @@ -0,0 +1,91 @@ +namespace KafkaFlow.UnitTests.Admin.WebApi.Controllers +{ + using System.Collections.Generic; + using System.Linq; + using System.Threading.Tasks; + using AutoFixture; + using FluentAssertions; + using KafkaFlow.Admin; + using KafkaFlow.Admin.WebApi.Contracts; + using KafkaFlow.Admin.WebApi.Controllers; + using KafkaFlow.Consumers; + using Microsoft.AspNetCore.Mvc; + using Microsoft.VisualStudio.TestTools.UnitTesting; + using Moq; + + [TestClass] + public class GroupsControllerTests + { + private readonly Fixture fixture = new(); + private GroupsController target; + private Mock mockConsumerAccessor; + private Mock mockConsumerAdmin; + + [TestInitialize] + public void TestSetup() + { + this.mockConsumerAccessor = this.fixture.Freeze>(); + this.mockConsumerAdmin = this.fixture.Freeze>(); + this.target = new GroupsController(this.mockConsumerAccessor.Object, this.mockConsumerAdmin.Object); + } + + [TestMethod] + public void GetAllGroups_ReturnsOkResultWithGroupsResponse() + { + // Arrange + var consumers = new List + { + Mock.Of(), + Mock.Of(), + Mock.Of(), + }; + + this.mockConsumerAccessor.Setup(x => x.All).Returns(consumers); + + // Act + var result = this.target.GetAllGroups() as ObjectResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(200); + + var response = result.Value.Should().BeOfType().Subject; + response.Groups.Should().HaveCount(1); + response.Groups.First().Consumers.Should().HaveCount(3); + } + + [TestMethod] + public async Task PauseGroup_ValidGroupId_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var topics = new List { "topic1", "topic2" }; + + // Act + var result = await this.target.PauseGroup(groupId, topics) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.PauseConsumerGroupAsync(groupId, topics), Times.Once); + } + + [TestMethod] + public async Task ResumeGroup_ValidGroupId_ReturnsAcceptedResult() + { + // Arrange + var groupId = "group1"; + var topics = new List { "topic1", "topic2" }; + + // Act + var result = await this.target.ResumeGroup(groupId, topics) as AcceptedResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(202); + + this.mockConsumerAdmin.Verify(x => x.ResumeConsumerGroupAsync(groupId, topics), Times.Once); + } + } +} diff --git a/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/TelemetryControllerTests.cs b/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/TelemetryControllerTests.cs new file mode 100644 index 000000000..0a9d2bd0c --- /dev/null +++ b/src/KafkaFlow.UnitTests/Admin.WebApi/Controllers/TelemetryControllerTests.cs @@ -0,0 +1,130 @@ +namespace KafkaFlow.UnitTests.Admin.WebApi.Controllers +{ + using System; + using System.Collections.Generic; + using System.Linq; + using FluentAssertions; + using KafkaFlow.Admin; + using KafkaFlow.Admin.Messages; + using KafkaFlow.Admin.WebApi.Contracts; + using KafkaFlow.Admin.WebApi.Controllers; + using KafkaFlow.Consumers; + using Microsoft.AspNetCore.Mvc; + using Microsoft.VisualStudio.TestTools.UnitTesting; + using Moq; + + [TestClass] + public class TelemetryControllerTests + { + private Mock mockTelemetryStorage; + private TelemetryController target; + + [TestInitialize] + public void TestInitialize() + { + this.mockTelemetryStorage = new Mock(); + this.target = new TelemetryController(this.mockTelemetryStorage.Object); + } + + [TestMethod] + public void GetTelemetry_ReturnsOkResultWithTelemetryResponse() + { + // Arrange + var metrics = new List + { + new ConsumerTelemetryMetric + { + GroupId = "group1", + ConsumerName = "consumer1", + WorkersCount = 5, + SentAt = new DateTime(2023, 7, 28, 8, 20, 30), + Topic = "topic1", + Status = ConsumerStatus.Running, + PausedPartitions = new[] { 0 }, + RunningPartitions = new[] { 10 }, + Lag = 20, + InstanceName = "instanceName1", + }, + new ConsumerTelemetryMetric + { + GroupId = "group1", + ConsumerName = "consumer1", + WorkersCount = 5, + SentAt = new DateTime(2023, 7, 29, 1, 20, 30), + Topic = "topic2", + Status = ConsumerStatus.Paused, + PausedPartitions = new[] { 5 }, + RunningPartitions = new[] { 0 }, + Lag = 0, + InstanceName = "instanceName2", + }, + new ConsumerTelemetryMetric + { + GroupId = "group1", + ConsumerName = "consumer2", + WorkersCount = 3, + SentAt = new DateTime(2023, 6, 2, 10, 20, 30), + Topic = "topic3", + Status = ConsumerStatus.Stopped, + PausedPartitions = new[] { 5 }, + RunningPartitions = new[] { 0 }, + Lag = 15, + InstanceName = "instanceName3", + }, + }; + + this.mockTelemetryStorage.Setup(x => x.Get()).Returns(metrics); + + // Act + var result = this.target.GetTelemetry() as ObjectResult; + + // Assert + result.Should().NotBeNull(); + result.StatusCode.Should().Be(200); + + var response = result.Value.Should().BeOfType().Subject; + response.Groups.Should().HaveCount(1); + + var group = response.Groups.ElementAt(0); + group.GroupId.Should().Be("group1"); + group.Consumers.Should().HaveCount(2); + + var consumer1 = group.Consumers.ElementAt(0); + consumer1.Name.Should().Be("consumer1"); + consumer1.WorkersCount.Should().Be(5); + consumer1.Assignments.Should().HaveCount(2); + + var assignment1 = consumer1.Assignments.ElementAt(0); + assignment1.InstanceName.Should().NotBeNullOrEmpty(); + assignment1.TopicName.Should().Be("topic1"); + assignment1.Status.Should().Be("Running"); + assignment1.LastUpdate.Should().BeCloseTo(new DateTime(2023, 7, 28, 8, 20, 30), TimeSpan.FromSeconds(1)); + assignment1.PausedPartitions.Should().BeEquivalentTo(new[] { 0 }); + assignment1.RunningPartitions.Should().BeEquivalentTo(new[] { 10 }); + assignment1.Lag.Should().Be(20); + + var assignment2 = consumer1.Assignments.ElementAt(1); + assignment2.InstanceName.Should().NotBeNullOrEmpty(); + assignment2.TopicName.Should().Be("topic2"); + assignment2.Status.Should().Be("Paused"); + assignment2.LastUpdate.Should().BeCloseTo(new DateTime(2023, 7, 29, 1, 20, 30), TimeSpan.FromSeconds(1)); + assignment2.PausedPartitions.Should().BeEquivalentTo(new[] { 5 }); + assignment2.RunningPartitions.Should().BeEquivalentTo(new[] { 0 }); + assignment2.Lag.Should().Be(0); + + var consumer2 = group.Consumers.ElementAt(1); + consumer2.Name.Should().Be("consumer2"); + consumer2.WorkersCount.Should().Be(3); + consumer2.Assignments.Should().HaveCount(1); + + var assignment3 = consumer2.Assignments.ElementAt(0); + assignment3.InstanceName.Should().NotBeNullOrEmpty(); + assignment3.TopicName.Should().Be("topic3"); + assignment3.Status.Should().Be("Stopped"); + assignment3.LastUpdate.Should().BeCloseTo(new DateTime(2023, 6, 2, 10, 20, 30), TimeSpan.FromSeconds(1)); + assignment3.PausedPartitions.Should().BeEquivalentTo(new[] { 5 }); + assignment3.RunningPartitions.Should().BeEquivalentTo(new[] { 0 }); + assignment3.Lag.Should().Be(15); + } + } +} diff --git a/src/KafkaFlow.UnitTests/KafkaFlow.UnitTests.csproj b/src/KafkaFlow.UnitTests/KafkaFlow.UnitTests.csproj index cfba1c2c7..f8e053443 100644 --- a/src/KafkaFlow.UnitTests/KafkaFlow.UnitTests.csproj +++ b/src/KafkaFlow.UnitTests/KafkaFlow.UnitTests.csproj @@ -15,7 +15,8 @@ - + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -28,6 +29,7 @@ +