From 84ee081f1727e0558cbdb63d9b3b5946c3b0deaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=BCller?= Date: Sat, 19 Aug 2023 04:48:56 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20DerYeger?= =?UTF-8?q?/apollo-frontend@4ef9ff8574ccb104550bc0d648e40d85f3cb24f5=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- index.html | 2 +- main.50e524b20e59ef16.js | 1 + main.841f90527c80b6ac.js | 1 - ngsw-worker.js | 34 +++++++++++++++++----------------- ngsw.json | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 main.50e524b20e59ef16.js delete mode 100644 main.841f90527c80b6ac.js diff --git a/404.html b/404.html index 9a2d556..02af58f 100644 --- a/404.html +++ b/404.html @@ -35,5 +35,5 @@ - + diff --git a/index.html b/index.html index 9a2d556..02af58f 100644 --- a/index.html +++ b/index.html @@ -35,5 +35,5 @@ - + diff --git a/main.50e524b20e59ef16.js b/main.50e524b20e59ef16.js new file mode 100644 index 0000000..0b6a5b7 --- /dev/null +++ b/main.50e524b20e59ef16.js @@ -0,0 +1 @@ +(self.webpackChunkapollo_frontend=self.webpackChunkapollo_frontend||[]).push([[179],{553:(Kn,Fc,Ss)=>{"use strict";function Ue(e){return"function"==typeof e}function vr(e){const n=e(t=>{Error.call(t),t.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Es=vr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function un(e,i){if(e){const n=e.indexOf(i);0<=n&&e.splice(n,1)}}class Qe{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const s of n)s.remove(this);else n.remove(this);const{initialTeardown:t}=this;if(Ue(t))try{t()}catch(s){i=s instanceof Es?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Lh(s)}catch(o){i=i??[],o instanceof Es?i=[...i,...o.errors]:i.push(o)}}if(i)throw new Es(i)}}add(i){var n;if(i&&i!==this)if(this.closed)Lh(i);else{if(i instanceof Qe){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(i)}}_hasParent(i){const{_parentage:n}=this;return n===i||Array.isArray(n)&&n.includes(i)}_addParent(i){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(i),n):n?[n,i]:i}_removeParent(i){const{_parentage:n}=this;n===i?this._parentage=null:Array.isArray(n)&&un(n,i)}remove(i){const{_finalizers:n}=this;n&&un(n,i),i instanceof Qe&&i._removeParent(this)}}Qe.EMPTY=(()=>{const e=new Qe;return e.closed=!0,e})();const Ms=Qe.EMPTY;function Ph(e){return e instanceof Qe||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function Lh(e){Ue(e)?e():e.unsubscribe()}const Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wo={setTimeout(e,i,...n){const{delegate:t}=wo;return t?.setTimeout?t.setTimeout(e,i,...n):setTimeout(e,i,...n)},clearTimeout(e){const{delegate:i}=wo;return(i?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Nc(e){wo.setTimeout(()=>{const{onUnhandledError:i}=Xr;if(!i)throw e;i(e)})}function Ts(){}const L_=Re("C",void 0,void 0);function Re(e,i,n){return{kind:e,value:i,error:n}}let He=null;function lt(e){if(Xr.useDeprecatedSynchronousErrorHandling){const i=!He;if(i&&(He={errorThrown:!1,error:null}),e(),i){const{errorThrown:n,error:t}=He;if(He=null,n)throw t}}else e()}class Qt extends Qe{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Ph(i)&&i.add(this)):this.destination=JV}static create(i,n,t){return new Da(i,n,t)}next(i){this.isStopped?z_(function B_(e){return Re("N",e,void 0)}(i),this):this._next(i)}error(i){this.isStopped?z_(function Is(e){return Re("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?z_(L_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const V_=Function.prototype.bind;function j_(e,i){return V_.call(e,i)}class ZV{constructor(i){this.partialObserver=i}next(i){const{partialObserver:n}=this;if(n.next)try{n.next(i)}catch(t){Bh(t)}}error(i){const{partialObserver:n}=this;if(n.error)try{n.error(i)}catch(t){Bh(t)}else Bh(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(n){Bh(n)}}}class Da extends Qt{constructor(i,n,t){let r;if(super(),Ue(i)||!i)r={next:i??void 0,error:n??void 0,complete:t??void 0};else{let s;this&&Xr.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&j_(i.next,s),error:i.error&&j_(i.error,s),complete:i.complete&&j_(i.complete,s)}):r=i}this.destination=new ZV(r)}}function Bh(e){Xr.useDeprecatedSynchronousErrorHandling?function hn(e){Xr.useDeprecatedSynchronousErrorHandling&&He&&(He.errorThrown=!0,He.error=e)}(e):Nc(e)}function z_(e,i){const{onStoppedNotification:n}=Xr;n&&wo.setTimeout(()=>n(e,i))}const JV={closed:!0,next:Ts,error:function QV(e){throw e},complete:Ts},H_="function"==typeof Symbol&&Symbol.observable||"@@observable";function yr(e){return e}function GC(e){return 0===e.length?yr:1===e.length?e[0]:function(n){return e.reduce((t,r)=>r(t),n)}}let et=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const t=new e;return t.source=this,t.operator=n,t}subscribe(n,t,r){const s=function n4(e){return e&&e instanceof Qt||function t4(e){return e&&Ue(e.next)&&Ue(e.error)&&Ue(e.complete)}(e)&&Ph(e)}(n)?n:new Da(n,t,r);return lt(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(t){n.error(t)}}forEach(n,t){return new(t=qC(t))((r,s)=>{const o=new Da({next:a=>{try{n(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)}[H_](){return this}pipe(...n){return GC(n)(this)}toPromise(n){return new(n=qC(n))((t,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>t(s))})}}return e.create=i=>new e(i),e})();function qC(e){var i;return null!==(i=e??Xr.Promise)&&void 0!==i?i:Promise}const r4=vr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let $=(()=>{class e extends et{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const t=new WC(this,this);return t.operator=n,t}_throwIfClosed(){if(this.closed)throw new r4}next(n){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const t of this.currentObservers)t.next(n)}})}error(n){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:t}=this;for(;t.length;)t.shift().error(n)}})}complete(){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:t,isStopped:r,observers:s}=this;return t||r?Ms:(this.currentObservers=null,s.push(n),new Qe(()=>{this.currentObservers=null,un(s,n)}))}_checkFinalizedStatuses(n){const{hasError:t,thrownError:r,isStopped:s}=this;t?n.error(r):s&&n.complete()}asObservable(){const n=new et;return n.source=this,n}}return e.create=(i,n)=>new WC(i,n),e})();class WC extends ${constructor(i,n){super(),this.destination=i,this.source=n}next(i){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===t||t.call(n,i)}error(i){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===t||t.call(n,i)}complete(){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===n||n.call(i)}_subscribe(i){var n,t;return null!==(t=null===(n=this.source)||void 0===n?void 0:n.subscribe(i))&&void 0!==t?t:Ms}}class Et extends ${constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const n=super._subscribe(i);return!n.closed&&i.next(this._value),n}getValue(){const{hasError:i,thrownError:n,_value:t}=this;if(i)throw n;return this._throwIfClosed(),t}next(i){super.next(this._value=i)}}function YC(e){return Ue(e?.lift)}function wt(e){return i=>{if(YC(i))return i.lift(function(n){try{return e(n,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}function ft(e,i,n,t,r){return new s4(e,i,n,t,r)}class s4 extends Qt{constructor(i,n,t,r,s,o){super(i),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=n?function(a){try{n(a)}catch(l){i.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=t?function(){try{t()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function se(e,i){return wt((n,t)=>{let r=0;n.subscribe(ft(t,s=>{t.next(e.call(i,s,r++))}))})}function As(e){return this instanceof As?(this.v=e,this):new As(e)}function QC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=e[Symbol.asyncIterator];return i?i.call(e):(e=function q_(e){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&e[i],t=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},t("next"),t("throw"),t("return"),n[Symbol.asyncIterator]=function(){return this},n);function t(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const W_=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function JC(e){return Ue(e?.then)}function eD(e){return Ue(e[H_])}function tD(e){return Symbol.asyncIterator&&Ue(e?.[Symbol.asyncIterator])}function iD(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 nD=function E4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rD(e){return Ue(e?.[nD])}function sD(e){return function ZC(e,i,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=n.apply(e,i||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){t[h]&&(r[h]=function(f){return new Promise(function(_,g){s.push([h,f,_,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof As?Promise.resolve(h.value.v).then(c,d):u(s[0][2],h)}(t[h](f))}catch(_){u(s[0][3],_)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:t,done:r}=yield As(n.read());if(r)return yield As(void 0);yield yield As(t)}}finally{n.releaseLock()}})}function oD(e){return Ue(e?.getReader)}function si(e){if(e instanceof et)return e;if(null!=e){if(eD(e))return function M4(e){return new et(i=>{const n=e[H_]();if(Ue(n.subscribe))return n.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(W_(e))return function T4(e){return new et(i=>{for(let n=0;n{e.then(n=>{i.closed||(i.next(n),i.complete())},n=>i.error(n)).then(null,Nc)})}(e);if(tD(e))return aD(e);if(rD(e))return function A4(e){return new et(i=>{for(const n of e)if(i.next(n),i.closed)return;i.complete()})}(e);if(oD(e))return function R4(e){return aD(sD(e))}(e)}throw iD(e)}function aD(e){return new et(i=>{(function O4(e,i){var n,t,r,s;return function KC(e,i,n,t){return new(n||(n=Promise))(function(s,o){function a(d){try{c(t.next(d))}catch(u){o(u)}}function l(d){try{c(t.throw(d))}catch(u){o(u)}}function c(d){d.done?s(d.value):function r(s){return s instanceof n?s:new n(function(o){o(s)})}(d.value).then(a,l)}c((t=t.apply(e,i||[])).next())})}(this,void 0,void 0,function*(){try{for(n=QC(e);!(t=yield n.next()).done;)if(i.next(t.value),i.closed)return}catch(o){r={error:o}}finally{try{t&&!t.done&&(s=n.return)&&(yield s.call(n))}finally{if(r)throw r.error}}i.complete()})})(e,i).catch(n=>i.error(n))})}function Zr(e,i,n,t=0,r=!1){const s=i.schedule(function(){n(),r?e.add(this.schedule(null,t)):this.unsubscribe()},t);if(e.add(s),!r)return s}function Bt(e,i,n=1/0){return Ue(i)?Bt((t,r)=>se((s,o)=>i(t,s,r,o))(si(e(t,r))),n):("number"==typeof i&&(n=i),wt((t,r)=>function F4(e,i,n,t,r,s,o,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&i.complete()},f=g=>c{s&&i.next(g),c++;let m=!1;si(n(g,d++)).subscribe(ft(i,b=>{r?.(b),s?f(b):i.next(b)},()=>{m=!0},void 0,()=>{if(m)try{for(c--;l.length&&c_(b)):_(b)}h()}catch(b){i.error(b)}}))};return e.subscribe(ft(i,f,()=>{u=!0,h()})),()=>{a?.()}}(t,r,e,n)))}function Sa(e=1/0){return Bt(yr,e)}const Xn=new et(e=>e.complete());function lD(e){return e&&Ue(e.schedule)}function Y_(e){return e[e.length-1]}function K_(e){return Ue(Y_(e))?e.pop():void 0}function Pc(e){return lD(Y_(e))?e.pop():void 0}function X_(e,i=0){return wt((n,t)=>{n.subscribe(ft(t,r=>Zr(t,e,()=>t.next(r),i),()=>Zr(t,e,()=>t.complete(),i),r=>Zr(t,e,()=>t.error(r),i)))})}function cD(e,i=0){return wt((n,t)=>{t.add(e.schedule(()=>n.subscribe(t),i))})}function dD(e,i){if(!e)throw new Error("Iterable cannot be null");return new et(n=>{Zr(n,i,()=>{const t=e[Symbol.asyncIterator]();Zr(n,i,()=>{t.next().then(r=>{r.done?n.complete():n.next(r.value)})},0,!0)})})}function Jt(e,i){return i?function H4(e,i){if(null!=e){if(eD(e))return function L4(e,i){return si(e).pipe(cD(i),X_(i))}(e,i);if(W_(e))return function V4(e,i){return new et(n=>{let t=0;return i.schedule(function(){t===e.length?n.complete():(n.next(e[t++]),n.closed||this.schedule())})})}(e,i);if(JC(e))return function B4(e,i){return si(e).pipe(cD(i),X_(i))}(e,i);if(tD(e))return dD(e,i);if(rD(e))return function j4(e,i){return new et(n=>{let t;return Zr(n,i,()=>{t=e[nD](),Zr(n,i,()=>{let r,s;try{({value:r,done:s}=t.next())}catch(o){return void n.error(o)}s?n.complete():n.next(r)},0,!0)}),()=>Ue(t?.return)&&t.return()})}(e,i);if(oD(e))return function z4(e,i){return dD(sD(e),i)}(e,i)}throw iD(e)}(e,i):si(e)}function Ft(...e){const i=Pc(e),n=function P4(e,i){return"number"==typeof Y_(e)?e.pop():i}(e,1/0),t=e;return t.length?1===t.length?si(t[0]):Sa(n)(Jt(t,i)):Xn}function ee(...e){return Jt(e,Pc(e))}function Vh(e={}){const{connector:i=(()=>new $),resetOnError:n=!0,resetOnComplete:t=!0,resetOnRefCountZero:r=!0}=e;return s=>{let o,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),o=l=void 0,d=u=!1},_=()=>{const g=o;f(),g?.unsubscribe()};return wt((g,m)=>{c++,!u&&!d&&h();const b=l=l??i();m.add(()=>{c--,0===c&&!u&&!d&&(a=Z_(_,r))}),b.subscribe(m),!o&&c>0&&(o=new Da({next:v=>b.next(v),error:v=>{u=!0,h(),a=Z_(f,n,v),b.error(v)},complete:()=>{d=!0,h(),a=Z_(f,t),b.complete()}}),si(g).subscribe(o))})(s)}}function Z_(e,i,...n){if(!0===i)return void e();if(!1===i)return;const t=new Da({next:()=>{t.unsubscribe(),e()}});return si(i(...n)).subscribe(t)}function ei(e,i){return wt((n,t)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&t.complete();n.subscribe(ft(t,l=>{r?.unsubscribe();let c=0;const d=s++;si(e(l,d)).subscribe(r=ft(t,u=>t.next(i?i(l,u,d,c++):u),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function xo(e,i=yr){return e=e??$4,wt((n,t)=>{let r,s=!0;n.subscribe(ft(t,o=>{const a=i(o);(s||!e(r,a))&&(s=!1,r=a,t.next(o))}))})}function $4(e,i){return e===i}function mt(e){for(let i in e)if(e[i]===mt)return i;throw Error("Could not find renamed property on target object.")}function jh(e,i){for(const n in i)i.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=i[n])}function oi(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oi).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const i=e.toString();if(null==i)return""+i;const n=i.indexOf("\n");return-1===n?i:i.substring(0,n)}function Q_(e,i){return null==e||""===e?null===i?"":i:null==i||""===i?e:e+" "+i}const U4=mt({__forward_ref__:mt});function Ye(e){return e.__forward_ref__=Ye,e.toString=function(){return oi(this())},e}function Oe(e){return J_(e)?e():e}function J_(e){return"function"==typeof e&&e.hasOwnProperty(U4)&&e.__forward_ref__===Ye}function eb(e){return e&&!!e.\u0275providers}const uD="https://g.co/ng/security#xss";class O extends Error{constructor(i,n){super(function zh(e,i){return`NG0${Math.abs(e)}${i?": "+i:""}`}(i,n)),this.code=i}}function Pe(e){return"string"==typeof e?e:null==e?"":String(e)}function tb(e,i){throw new O(-201,!1)}function Tn(e,i){null==e&&function Te(e,i,n,t){throw new Error(`ASSERTION ERROR: ${e}`+(null==t?"":` [Expected=> ${n} ${t} ${i} <=Actual]`))}(i,e,null,"!=")}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function he(e){return{providers:e.providers||[],imports:e.imports||[]}}function Hh(e){return hD(e,Uh)||hD(e,fD)}function hD(e,i){return e.hasOwnProperty(i)?e[i]:null}function $h(e){return e&&(e.hasOwnProperty(ib)||e.hasOwnProperty(Q4))?e[ib]:null}const Uh=mt({\u0275prov:mt}),ib=mt({\u0275inj:mt}),fD=mt({ngInjectableDef:mt}),Q4=mt({ngInjectorDef:mt});var We=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(We||{});let nb;function mD(){return nb}function Zi(e){const i=nb;return nb=e,i}function pD(e,i,n){const t=Hh(e);return t&&"root"==t.providedIn?void 0===t.value?t.value=t.factory():t.value:n&We.Optional?null:void 0!==i?i:void tb(oi(e))}const vt=globalThis,Lc={},lb="__NG_DI_FLAG__",Gh="ngTempTokenPath",tj=/\n/gm,_D="__source";let Ea;function Rs(e){const i=Ea;return Ea=e,i}function rj(e,i=We.Default){if(void 0===Ea)throw new O(-203,!1);return null===Ea?pD(e,void 0,i):Ea.get(e,i&We.Optional?null:void 0,i)}function x(e,i=We.Default){return(mD()||rj)(Oe(e),i)}function G(e,i=We.Default){return x(e,qh(i))}function qh(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cb(e){const i=[];for(let n=0;ni){o=s-1;break}}}for(;ss?"":r[u+1].toLowerCase();const f=8&t?h:null;if(f&&-1!==wD(f,c,0)||2&t&&c!==h){if(Zn(t))return!1;o=!0}}}}else{if(!o&&!Zn(t)&&!Zn(l))return!1;if(o&&Zn(l))continue;o=!1,t=l|1&t}}return Zn(t)||o}function Zn(e){return 0==(1&e)}function uj(e,i,n,t){if(null===i)return-1;let r=0;if(t||!n){let s=!1;for(;r-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&t?r+="."+o:4&t&&(r+=" "+o);else""!==r&&!Zn(o)&&(i+=MD(s,r),r=""),t=o,s=s||!Zn(t);n++}return""!==r&&(i+=MD(s,r)),i}function ie(e){return Qr(()=>{const i=ID(e),n={...i,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||In.Emulated,styles:e.styles||at,_:null,schemas:e.schemas||null,tView:null,id:""};AD(n);const t=e.dependencies;return n.directiveDefs=Kh(t,!1),n.pipeDefs=Kh(t,!0),n.id=function Cj(e){let i=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of n)i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(n),n})}function yj(e){return nt(e)||vi(e)}function wj(e){return null!==e}function me(e){return Qr(()=>({type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function TD(e,i){if(null==e)return wr;const n={};for(const t in e)if(e.hasOwnProperty(t)){let r=e[t],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=t,i&&(i[r]=s)}return n}function I(e){return Qr(()=>{const i=ID(e);return AD(i),i})}function Li(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 nt(e){return e[Yh]||null}function vi(e){return e[db]||null}function Bi(e){return e[ub]||null}function mn(e,i){const n=e[vD]||null;if(!n&&!0===i)throw new Error(`Type ${oi(e)} does not have '\u0275mod' property.`);return n}function ID(e){const i={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:e.inputs||wr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:TD(e.inputs,i),outputs:TD(e.outputs)}}function AD(e){e.features?.forEach(i=>i(e))}function Kh(e,i){if(!e)return null;const n=i?Bi:yj;return()=>("function"==typeof e?e():e).map(t=>n(t)).filter(wj)}const Gt=0,le=1,Ve=2,At=3,Qn=4,zc=5,Ei=6,Ta=7,qt=8,Os=9,Ia=10,Le=11,Hc=12,RD=13,Aa=14,Wt=15,$c=16,Ra=17,xr=18,Uc=19,OD=20,Fs=21,es=22,Xh=23,Zh=24,Ke=25,fb=1,FD=2,kr=7,Oa=9,yi=11;function Qi(e){return Array.isArray(e)&&"object"==typeof e[fb]}function Ji(e){return Array.isArray(e)&&!0===e[fb]}function mb(e){return 0!=(4&e.flags)}function Co(e){return e.componentOffset>-1}function Jh(e){return 1==(1&e.flags)}function Jn(e){return!!e.template}function pb(e){return 0!=(512&e[Ve])}function Do(e,i){return e.hasOwnProperty(Jr)?e[Jr]:null}const LD=Symbol("SIGNAL");function gb(e,i,n={}){return i[LD]=e,Object.assign(i,n)}function BD(e,i){return(null===e||"object"!=typeof e)&&Object.is(e,i)}let Ij=vt.WeakRef??class Tj{constructor(i){this.ref=i}deref(){return this.ref}},Rj=0,Cr=null,ef=!1;function hi(e){const i=Cr;return Cr=e,i}class tf{constructor(){this.id=Rj++,this.ref=function Aj(e){return new Ij(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[i,n]of this.producers){const t=n.producerNode.deref();if(null!=t&&n.atTrackingVersion===this.trackingVersion){if(t.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(i),t?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const i=ef;ef=!0;try{for(const[n,t]of this.consumers){const r=t.consumerNode.deref();null!=r&&r.trackingVersion===t.atTrackingVersion?r.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),r?.producers.delete(this.id))}}finally{ef=i}}producerAccessed(){if(ef)throw new Error("");if(null===Cr)return;let i=Cr.producers.get(this.id);void 0===i?(i={consumerNode:Cr.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Cr.trackingVersion},Cr.producers.set(this.id,i),this.consumers.set(Cr.id,i)):(i.seenValueVersion=this.valueVersion,i.atTrackingVersion=Cr.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Cr?.consumerAllowSignalWrites}producerPollStatus(i){return this.valueVersion!==i||(this.onProducerUpdateValueVersion(),this.valueVersion!==i)}}function VD(e,i){const n=new Oj(e,i?.equal??BD);return gb(n,n.signal.bind(n))}const _b=Symbol("UNSET"),bb=Symbol("COMPUTING"),nf=Symbol("ERRORED");class Oj extends tf{constructor(i,n){super(),this.computation=i,this.equal=n,this.value=_b,this.error=null,this.stale=!0,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){this.stale||(this.stale=!0,this.producerMayHaveChanged())}onProducerUpdateValueVersion(){if(this.stale){if(this.value!==_b&&this.value!==bb&&!this.consumerPollProducersForChange())return void(this.stale=!1);this.recomputeValue()}}recomputeValue(){if(this.value===bb)throw new Error("Detected cycle in computations.");const i=this.value;this.value=bb,this.trackingVersion++;const n=hi(this);let t;try{t=this.computation()}catch(r){t=nf,this.error=r}finally{hi(n)}this.stale=!1,i!==_b&&i!==nf&&t!==nf&&this.equal(i,t)?this.value=i:(this.value=t,this.valueVersion++)}signal(){if(this.onProducerUpdateValueVersion(),this.producerAccessed(),this.value===nf)throw this.error;return this.value}}let jD=function Fj(){throw new Error};function vb(){jD()}class Pj extends tf{constructor(i,n){super(),this.value=i,this.equal=n,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){}onProducerUpdateValueVersion(){}set(i){this.producerUpdatesAllowed||vb(),this.equal(this.value,i)||(this.value=i,this.valueVersion++,this.producerMayHaveChanged())}update(i){this.producerUpdatesAllowed||vb(),this.set(i(this.value))}mutate(i){this.producerUpdatesAllowed||vb(),i(this.value),this.valueVersion++,this.producerMayHaveChanged()}asReadonly(){return void 0===this.readonlySignal&&(this.readonlySignal=gb(this,()=>this.signal())),this.readonlySignal}signal(){return this.producerAccessed(),this.value}}function HD(e){const i=hi(null);try{return e()}finally{hi(i)}}const $D=()=>{};class Lj extends tf{constructor(i,n,t){super(),this.watch=i,this.schedule=n,this.dirty=!1,this.cleanupFn=$D,this.registerOnCleanup=r=>{this.cleanupFn=r},this.consumerAllowSignalWrites=t}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const i=hi(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=$D,this.watch(this.registerOnCleanup)}finally{hi(i)}}cleanup(){this.cleanupFn()}}class Bj{constructor(i,n,t){this.previousValue=i,this.currentValue=n,this.firstChange=t}isFirstChange(){return this.firstChange}}function bt(){return UD}function UD(e){return e.type.prototype.ngOnChanges&&(e.setInput=jj),Vj}function Vj(){const e=qD(this),i=e?.current;if(i){const n=e.previous;if(n===wr)e.previous=i;else for(let t in i)n[t]=i[t];e.current=null,this.ngOnChanges(i)}}function jj(e,i,n,t){const r=this.declaredInputs[n],s=qD(e)||function zj(e,i){return e[GD]=i}(e,{previous:wr,current:null}),o=s.current||(s.current={}),a=s.previous,l=a[r];o[r]=new Bj(l&&l.currentValue,i,a===wr),e[t]=i}bt.ngInherit=!0;const GD="__ngSimpleChanges__";function qD(e){return e[GD]||null}const Dr=function(e,i,n){};function xt(e){for(;Array.isArray(e);)e=e[Gt];return e}function sf(e,i){return xt(i[e])}function en(e,i){return xt(i[e.index])}function KD(e,i){return e.data[i]}function Fa(e,i){return e[i]}function pn(e,i){const n=i[e];return Qi(n)?n:n[Gt]}function Ns(e,i){return null==i?null:e[i]}function XD(e){e[Ra]=0}function Yj(e){1024&e[Ve]||(e[Ve]|=1024,QD(e,1))}function ZD(e){1024&e[Ve]&&(e[Ve]&=-1025,QD(e,-1))}function QD(e,i){let n=e[At];if(null===n)return;n[zc]+=i;let t=n;for(n=n[At];null!==n&&(1===i&&1===t[zc]||-1===i&&0===t[zc]);)n[zc]+=i,t=n,n=n[At]}function JD(e,i){if(256==(256&e[Ve]))throw new O(911,!1);null===e[Fs]&&(e[Fs]=[]),e[Fs].push(i)}const Ie={lFrame:d1(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function t1(){return Ie.bindingsEnabled}function Na(){return null!==Ie.skipHydrationRootTNode}function j(){return Ie.lFrame.lView}function rt(){return Ie.lFrame.tView}function tt(e){return Ie.lFrame.contextLView=e,e[qt]}function it(e){return Ie.lFrame.contextLView=null,e}function wi(){let e=n1();for(;null!==e&&64===e.type;)e=e.parent;return e}function n1(){return Ie.lFrame.currentTNode}function Sr(e,i){const n=Ie.lFrame;n.currentTNode=e,n.isParent=i}function wb(){return Ie.lFrame.isParent}function xb(){Ie.lFrame.isParent=!1}function Vi(){const e=Ie.lFrame;let i=e.bindingRootIndex;return-1===i&&(i=e.bindingRootIndex=e.tView.bindingStartIndex),i}function Pa(){return Ie.lFrame.bindingIndex++}function is(e){const i=Ie.lFrame,n=i.bindingIndex;return i.bindingIndex=i.bindingIndex+e,n}function oz(e,i){const n=Ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,kb(i)}function kb(e){Ie.lFrame.currentDirectiveIndex=e}function Cb(e){const i=Ie.lFrame.currentDirectiveIndex;return-1===i?null:e[i]}function a1(){return Ie.lFrame.currentQueryIndex}function Db(e){Ie.lFrame.currentQueryIndex=e}function lz(e){const i=e[le];return 2===i.type?i.declTNode:1===i.type?e[Ei]:null}function l1(e,i,n){if(n&We.SkipSelf){let r=i,s=e;for(;!(r=r.parent,null!==r||n&We.Host||(r=lz(s),null===r||(s=s[Aa],10&r.type))););if(null===r)return!1;i=r,e=s}const t=Ie.lFrame=c1();return t.currentTNode=i,t.lView=e,!0}function Sb(e){const i=c1(),n=e[le];Ie.lFrame=i,i.currentTNode=n.firstChild,i.lView=e,i.tView=n,i.contextLView=e,i.bindingIndex=n.bindingStartIndex,i.inI18n=!1}function c1(){const e=Ie.lFrame,i=null===e?null:e.child;return null===i?d1(e):i}function d1(e){const i={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=i),i}function u1(){const e=Ie.lFrame;return Ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const h1=u1;function Eb(){const e=u1();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 ji(){return Ie.lFrame.selectedIndex}function So(e){Ie.lFrame.selectedIndex=e}function Nt(){const e=Ie.lFrame;return KD(e.tView,e.selectedIndex)}function Eo(){Ie.lFrame.currentNamespace="svg"}function La(){!function hz(){Ie.lFrame.currentNamespace=null}()}let m1=!0;function af(){return m1}function Ps(e){m1=e}function lf(e,i){for(let n=i.directiveStart,t=i.directiveEnd;n=t)break}else i[l]<0&&(e[Ra]+=65536),(a>13>16&&(3&e[Ve])===i&&(e[Ve]+=8192,g1(a,s)):g1(a,s)}const Ba=-1;class Wc{constructor(i,n,t){this.factory=i,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=t}}function Ib(e){return e!==Ba}function Yc(e){return 32767&e}function Kc(e,i){let n=function bz(e){return e>>16}(e),t=i;for(;n>0;)t=t[Aa],n--;return t}let Ab=!0;function uf(e){const i=Ab;return Ab=e,i}const _1=255,b1=5;let vz=0;const Er={};function hf(e,i){const n=v1(e,i);if(-1!==n)return n;const t=i[le];t.firstCreatePass&&(e.injectorIndex=i.length,Rb(t.data,e),Rb(i,null),Rb(t.blueprint,null));const r=ff(e,i),s=e.injectorIndex;if(Ib(r)){const o=Yc(r),a=Kc(r,i),l=a[le].data;for(let c=0;c<8;c++)i[s+c]=a[o+c]|l[o+c]}return i[s+8]=r,s}function Rb(e,i){e.push(0,0,0,0,0,0,0,0,i)}function v1(e,i){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===i[e.injectorIndex+8]?-1:e.injectorIndex}function ff(e,i){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,t=null,r=i;for(;null!==r;){if(t=S1(r),null===t)return Ba;if(n++,r=r[Aa],-1!==t.injectorIndex)return t.injectorIndex|n<<16}return Ba}function Ob(e,i,n){!function yz(e,i,n){let t;"string"==typeof n?t=n.charCodeAt(0)||0:n.hasOwnProperty(Vc)&&(t=n[Vc]),null==t&&(t=n[Vc]=vz++);const r=t&_1;i.data[e+(r>>b1)]|=1<=0?i&_1:Dz:i}(n);if("function"==typeof s){if(!l1(i,e,t))return t&We.Host?y1(r,0,t):w1(i,n,t,r);try{let o;if(o=s(t),null!=o||t&We.Optional)return o;tb()}finally{h1()}}else if("number"==typeof s){let o=null,a=v1(e,i),l=Ba,c=t&We.Host?i[Wt][Ei]:null;for((-1===a||t&We.SkipSelf)&&(l=-1===a?ff(e,i):i[a+8],l!==Ba&&D1(t,!1)?(o=i[le],a=Yc(l),i=Kc(l,i)):a=-1);-1!==a;){const d=i[le];if(C1(s,a,d.data)){const u=xz(a,i,n,o,t,c);if(u!==Er)return u}l=i[a+8],l!==Ba&&D1(t,i[le].data[a+8]===c)&&C1(s,a,i)?(o=d,a=Yc(l),i=Kc(l,i)):a=-1}}return r}function xz(e,i,n,t,r,s){const o=i[le],a=o.data[e+8],d=mf(a,o,n,null==t?Co(a)&&Ab:t!=o&&0!=(3&a.type),r&We.Host&&s===a);return null!==d?Mo(i,o,d,a):Er}function mf(e,i,n,t,r){const s=e.providerIndexes,o=i.data,a=1048575&s,l=e.directiveStart,d=s>>20,h=r?a+d:e.directiveEnd;for(let f=t?a:a+d;f=l&&_.type===n)return f}if(r){const f=o[l];if(f&&Jn(f)&&f.type===n)return l}return null}function Mo(e,i,n,t){let r=e[n];const s=i.data;if(function pz(e){return e instanceof Wc}(r)){const o=r;o.resolving&&function G4(e,i){const n=i?`. Dependency path: ${i.join(" > ")} > ${e}`:"";throw new O(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ht(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Pe(e)}(s[n]));const a=uf(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Zi(o.injectImpl):null;l1(e,t,We.Default);try{r=e[n]=o.factory(void 0,s,e,t),i.firstCreatePass&&n>=t.directiveStart&&function fz(e,i,n){const{ngOnChanges:t,ngOnInit:r,ngDoCheck:s}=i.type.prototype;if(t){const o=UD(i);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}r&&(n.preOrderHooks??=[]).push(0-e,r),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],i)}finally{null!==c&&Zi(c),uf(a),o.resolving=!1,h1()}}return r}function C1(e,i,n){return!!(n[i+(e>>b1)]&1<{const i=e.prototype.constructor,n=i[Jr]||Fb(i),t=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==t;){const s=r[Jr]||Fb(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Fb(e){return J_(e)?()=>{const i=Fb(Oe(e));return i&&i()}:Do(e)}function S1(e){const i=e[le],n=i.type;return 2===n?i.declTNode:1===n?e[Ei]:null}function Mi(e){return function wz(e,i){if("class"===i)return e.classes;if("style"===i)return e.styles;const n=e.attrs;if(n){const t=n.length;let r=0;for(;r{const t=function Nb(e){return function(...n){if(e){const t=e(...n);for(const r in t)this[r]=t[r]}}}(i);function r(...s){if(this instanceof r)return t.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,d){const u=l.hasOwnProperty(ja)?l[ja]:Object.defineProperty(l,ja,{value:[]})[ja];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(o),l}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function Ua(e,i){e.forEach(n=>Array.isArray(n)?Ua(n,i):i(n))}function M1(e,i,n){i>=e.length?e.push(n):e.splice(i,0,n)}function pf(e,i){return i>=e.length-1?e.pop():e.splice(i,1)[0]}function Qc(e,i){const n=[];for(let t=0;t=0?e[1|t]=n:(t=~t,function Oz(e,i,n,t){let r=e.length;if(r==i)e.push(n,t);else if(1===r)e.push(t,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>i;)e[r]=e[r-2],r--;e[i]=n,e[i+1]=t}}(e,t,i,n)),t}function Pb(e,i){const n=Ga(e,i);if(n>=0)return e[1|n]}function Ga(e,i){return function T1(e,i,n){let t=0,r=e.length>>n;for(;r!==t;){const s=t+(r-t>>1),o=e[s<i?r=s:t=s+1}return~(r<({token:e})),-1),Ls=Bc(Ha("Optional"),8),qa=Bc(Ha("SkipSelf"),4);function wf(e){return 128==(128&e.flags)}var Bs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Bs||{});const Jz=/^>|^->||--!>|)/,t5="\u200b$1\u200b";const Hb=new Map;let n5=0;const Ub="__ngContext__";function Ti(e,i){Qi(i)?(e[Ub]=i[Uc],function s5(e){Hb.set(e[Uc],e)}(i)):e[Ub]=i}let Gb;function qb(e,i){return Gb(e,i)}function td(e){const i=e[At];return Ji(i)?i[At]:i}function K1(e){return Z1(e[Hc])}function X1(e){return Z1(e[Qn])}function Z1(e){for(;null!==e&&!Ji(e);)e=e[Qn];return e}function Ka(e,i,n,t,r){if(null!=t){let s,o=!1;Ji(t)?s=t:Qi(t)&&(o=!0,t=t[Gt]);const a=xt(t);0===e&&null!==n?null==r?tS(i,n,a):To(i,n,a,r||null,!0):1===e&&null!==n?To(i,n,a,r||null,!0):2===e?function Mf(e,i,n){const t=Sf(e,i);t&&function C5(e,i,n,t){e.removeChild(i,n,t)}(e,t,i,n)}(i,a,o):3===e&&i.destroyNode(a),null!=s&&function E5(e,i,n,t,r){const s=n[kr];s!==xt(n)&&Ka(i,e,t,s,r);for(let a=yi;ai.replace(e5,t5))}(i))}function Cf(e,i,n){return e.createElement(i,n)}function J1(e,i){const n=e[Oa],t=n.indexOf(i);ZD(i),n.splice(t,1)}function Df(e,i){if(e.length<=yi)return;const n=yi+i,t=e[n];if(t){const r=t[$c];null!==r&&r!==e&&J1(r,t),i>0&&(e[n-1][Qn]=t[Qn]);const s=pf(e,yi+i);!function g5(e,i){nd(e,i,i[Le],2,null,null),i[Gt]=null,i[Ei]=null}(t[le],t);const o=s[xr];null!==o&&o.detachView(s[le]),t[At]=null,t[Qn]=null,t[Ve]&=-129}return t}function Yb(e,i){if(!(256&i[Ve])){const n=i[Le];i[Xh]?.destroy(),i[Zh]?.destroy(),n.destroyNode&&nd(e,i,n,3,null,null),function v5(e){let i=e[Hc];if(!i)return Kb(e[le],e);for(;i;){let n=null;if(Qi(i))n=i[Hc];else{const t=i[yi];t&&(n=t)}if(!n){for(;i&&!i[Qn]&&i!==e;)Qi(i)&&Kb(i[le],i),i=i[At];null===i&&(i=e),Qi(i)&&Kb(i[le],i),n=i&&i[Qn]}i=n}}(i)}}function Kb(e,i){if(!(256&i[Ve])){i[Ve]&=-129,i[Ve]|=256,function k5(e,i){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let t=0;t=0?t[o]():t[-o].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);null!==t&&(i[Ta]=null);const r=i[Fs];if(null!==r){i[Fs]=null;for(let s=0;s-1){const{encapsulation:s}=e.data[t.directiveStart+r];if(s===In.None||s===In.Emulated)return null}return en(t,n)}}(e,i.parent,n)}function To(e,i,n,t,r){e.insertBefore(i,n,t,r)}function tS(e,i,n){e.appendChild(i,n)}function iS(e,i,n,t,r){null!==t?To(e,i,n,t,r):tS(e,i,n)}function Sf(e,i){return e.parentNode(i)}function nS(e,i,n){return sS(e,i,n)}let Zb,Tf,tv,If,sS=function rS(e,i,n){return 40&e.type?en(e,n):null};function Ef(e,i,n,t){const r=Xb(e,t,i),s=i[Le],a=nS(t.parent||i[Ei],t,i);if(null!=r)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Tf}()?.createHTML(e)||e}function mS(e){return function iv(){if(void 0===If&&(If=null,vt.trustedTypes))try{If=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return If}()?.createScriptURL(e)||e}class Io{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${uD})`}}class F5 extends Io{getTypeName(){return"HTML"}}class N5 extends Io{getTypeName(){return"Style"}}class P5 extends Io{getTypeName(){return"Script"}}class L5 extends Io{getTypeName(){return"URL"}}class B5 extends Io{getTypeName(){return"ResourceURL"}}function _n(e){return e instanceof Io?e.changingThisBreaksApplicationSecurity:e}function Mr(e,i){const n=function V5(e){return e instanceof Io&&e.getTypeName()||null}(e);if(null!=n&&n!==i){if("ResourceURL"===n&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${n} (see ${uD})`)}return n===i}class G5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const n=(new window.DOMParser).parseFromString(Xa(i),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(i):(n.removeChild(n.firstChild),n)}catch{return null}}}class q5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const n=this.inertDocument.createElement("template");return n.innerHTML=Xa(i),n}}const Y5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Af(e){return(e=String(e)).match(Y5)?e:"unsafe:"+e}function ns(e){const i={};for(const n of e.split(","))i[n]=!0;return i}function rd(...e){const i={};for(const n of e)for(const t in n)n.hasOwnProperty(t)&&(i[t]=!0);return i}const gS=ns("area,br,col,hr,img,wbr"),_S=ns("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bS=ns("rp,rt"),nv=rd(gS,rd(_S,ns("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rd(bS,ns("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),rd(bS,_S)),rv=ns("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vS=rd(rv,ns("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ns("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),K5=ns("script,style,template");class X5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let n=i.firstChild,t=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?t=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,t&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(i){const n=i.nodeName.toLowerCase();if(!nv.hasOwnProperty(n))return this.sanitizedSomething=!0,!K5.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const t=i.attributes;for(let r=0;r"),!0}endElement(i){const n=i.nodeName.toLowerCase();nv.hasOwnProperty(n)&&!gS.hasOwnProperty(n)&&(this.buf.push(""))}chars(i){this.buf.push(yS(i))}checkClobberedElement(i,n){if(n&&(i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return n}}const Z5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Q5=/([^\#-~ |!])/g;function yS(e){return e.replace(/&/g,"&").replace(Z5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(Q5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let Rf;function wS(e,i){let n=null;try{Rf=Rf||function pS(e){const i=new q5(e);return function W5(){try{return!!(new window.DOMParser).parseFromString(Xa(""),"text/html")}catch{return!1}}()?new G5(i):i}(e);let t=i?String(i):"";n=Rf.getInertBodyElement(t);let r=5,s=t;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,t=s,s=n.innerHTML,n=Rf.getInertBodyElement(t)}while(t!==s);return Xa((new X5).sanitizeChildren(sv(n)||n))}finally{if(n){const t=sv(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function sv(e){return"content"in e&&function J5(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(xi||{});function xS(e){const i=sd();return i?i.sanitize(xi.URL,e)||"":Mr(e,"URL")?_n(e):Af(Pe(e))}function kS(e){const i=sd();if(i)return mS(i.sanitize(xi.RESOURCE_URL,e)||"");if(Mr(e,"ResourceURL"))return mS(_n(e));throw new O(904,!1)}function sd(){const e=j();return e&&e[Ia].sanitizer}class M{constructor(i,n){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=P({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ao=new M("ENVIRONMENT_INITIALIZER"),DS=new M("INJECTOR",-1),SS=new M("INJECTOR_DEF_TYPES");class ov{get(i,n=Lc){if(n===Lc){const t=new Error(`NullInjectorError: No provider for ${oi(i)}!`);throw t.name="NullInjectorError",t}return n}}function Of(e){return{\u0275providers:e}}function oH(...e){return{\u0275providers:ES(0,e),\u0275fromNgModule:!0}}function ES(e,...i){const n=[],t=new Set;let r;const s=o=>{n.push(o)};return Ua(i,o=>{const a=o;Ff(a,s,[],t)&&(r||=[],r.push(a))}),void 0!==r&&MS(r,s),n}function MS(e,i){for(let n=0;n{i(s,t)})}}function Ff(e,i,n,t){if(!(e=Oe(e)))return!1;let r=null,s=$h(e);const o=!s&&nt(e);if(s||o){if(o&&!o.standalone)return!1;r=e}else{const l=e.ngModule;if(s=$h(l),!s)return!1;r=l}const a=t.has(r);if(o){if(a)return!1;if(t.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)Ff(c,i,n,t)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;t.add(r);try{Ua(s.imports,d=>{Ff(d,i,n,t)&&(c||=[],c.push(d))})}finally{}void 0!==c&&MS(c,i)}if(!a){const c=Do(r)||(()=>new r);i({provide:r,useFactory:c,deps:at},r),i({provide:SS,useValue:r,multi:!0},r),i({provide:Ao,useValue:()=>x(r),multi:!0},r)}const l=s.providers;if(null!=l&&!a){const c=e;av(l,d=>{i(d,c)})}}}return r!==e&&void 0!==e.providers}function av(e,i){for(let n of e)eb(n)&&(n=n.\u0275providers),Array.isArray(n)?av(n,i):i(n)}const aH=mt({provide:String,useValue:mt});function lv(e){return null!==e&&"object"==typeof e&&aH in e}function Ro(e){return"function"==typeof e}const cv=new M("Set Injector scope."),Nf={},cH={};let dv;function Pf(){return void 0===dv&&(dv=new ov),dv}class bn{}class Lf extends bn{get destroyed(){return this._destroyed}constructor(i,n,t,r){super(),this.parent=n,this.source=t,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hv(i,o=>this.processProvider(o)),this.records.set(DS,Qa(void 0,this)),r.has("environment")&&this.records.set(bn,Qa(void 0,this));const s=this.records.get(cv);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(SS.multi,at,We.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const n=Rs(this),t=Zi(void 0);try{return i()}finally{Rs(n),Zi(t)}}get(i,n=Lc,t=We.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(yD))return i[yD](this);t=qh(t);const s=Rs(this),o=Zi(void 0);try{if(!(t&We.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function mH(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(i)&&Hh(i);l=c&&this.injectableDefInScope(c)?Qa(uv(i),Nf):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(t&We.Self?Pf():this.parent).get(i,n=t&We.Optional&&n===Lc?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Gh]=a[Gh]||[]).unshift(oi(i)),s)throw a;return function oj(e,i,n,t){const r=e[Gh];throw i[_D]&&r.unshift(i[_D]),e.message=function aj(e,i,n,t=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=oi(i);if(Array.isArray(i))r=i.map(oi).join(" -> ");else if("object"==typeof i){let s=[];for(let o in i)if(i.hasOwnProperty(o)){let a=i[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):oi(a)))}r=`{${s.join(", ")}}`}return`${n}${t?"("+t+")":""}[${r}]: ${e.replace(tj,"\n ")}`}("\n"+e.message,r,n,t),e.ngTokenPath=r,e[Gh]=null,e}(a,i,"R3InjectorError",this.source)}throw a}finally{Zi(o),Rs(s)}}resolveInjectorInitializers(){const i=Rs(this),n=Zi(void 0);try{const r=this.get(Ao.multi,at,We.Self);for(const s of r)s()}finally{Rs(i),Zi(n)}}toString(){const i=[],n=this.records;for(const t of n.keys())i.push(oi(t));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(i){let n=Ro(i=Oe(i))?i:Oe(i&&i.provide);const t=function uH(e){return lv(e)?Qa(void 0,e.useValue):Qa(AS(e),Nf)}(i);if(Ro(i)||!0!==i.multi)this.records.get(n);else{let r=this.records.get(n);r||(r=Qa(void 0,Nf,!0),r.factory=()=>cb(r.multi),this.records.set(n,r)),n=i,r.multi.push(i)}this.records.set(n,t)}hydrate(i,n){return n.value===Nf&&(n.value=cH,n.value=n.factory()),"object"==typeof n.value&&n.value&&function fH(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(i){if(!i.providedIn)return!1;const n=Oe(i.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(i){const n=this._onDestroyHooks.indexOf(i);-1!==n&&this._onDestroyHooks.splice(n,1)}}function uv(e){const i=Hh(e),n=null!==i?i.factory:Do(e);if(null!==n)return n;if(e instanceof M)throw new O(204,!1);if(e instanceof Function)return function dH(e){const i=e.length;if(i>0)throw Qc(i,"?"),new O(204,!1);const n=function Z4(e){return e&&(e[Uh]||e[fD])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new O(204,!1)}function AS(e,i,n){let t;if(Ro(e)){const r=Oe(e);return Do(r)||uv(r)}if(lv(e))t=()=>Oe(e.useValue);else if(function IS(e){return!(!e||!e.useFactory)}(e))t=()=>e.useFactory(...cb(e.deps||[]));else if(function TS(e){return!(!e||!e.useExisting)}(e))t=()=>x(Oe(e.useExisting));else{const r=Oe(e&&(e.useClass||e.provide));if(!function hH(e){return!!e.deps}(e))return Do(r)||uv(r);t=()=>new r(...cb(e.deps))}return t}function Qa(e,i,n=!1){return{factory:e,value:i,multi:n?[]:void 0}}function hv(e,i){for(const n of e)Array.isArray(n)?hv(n,i):n&&eb(n)?hv(n.\u0275providers,i):i(n)}const od=new M("AppId",{providedIn:"root",factory:()=>pH}),pH="ng",RS=new M("Platform Initializer"),er=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ti=new M("AnimationModuleType"),fv=new M("CSP nonce",{providedIn:"root",factory:()=>function Za(){if(void 0!==tv)return tv;if(typeof document<"u")return document;throw new O(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let FS=(e,i,n)=>null;function yv(e,i,n=!1){return FS(e,i,n)}class DH{}class LS{}class EH{resolveComponentFactory(i){throw function SH(e){const i=Error(`No component factory found for ${oi(e)}.`);return i.ngComponent=e,i}(i)}}let el=(()=>{class i{}return i.NULL=new EH,i})();function MH(){return tl(wi(),j())}function tl(e,i){return new ne(en(e,i))}let ne=(()=>{class i{constructor(t){this.nativeElement=t}}return i.__NG_ELEMENT_ID__=MH,i})();function TH(e){return e instanceof ne?e.nativeElement:e}class dd{}let rs=(()=>{class i{constructor(){this.destroyNode=null}}return i.__NG_ELEMENT_ID__=()=>function IH(){const e=j(),n=pn(wi().index,e);return(Qi(n)?n:e)[Le]}(),i})(),AH=(()=>{var e;class i{}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>null}),i})();class Oo{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const RH=new Oo("16.2.1"),kv={};function HS(e,i=null,n=null,t){const r=$S(e,i,n,t);return r.resolveInjectorInitializers(),r}function $S(e,i=null,n=null,t,r=new Set){const s=[n||at,oH(e)];return t=t||("object"==typeof e?void 0:oi(e)),new Lf(s,i||Pf(),t||null,r)}let kt=(()=>{var e;class i{static create(t,r){if(Array.isArray(t))return HS({name:""},r,t,"");{const s=t.name??"";return HS({name:s},t.parent,t.providers,s)}}}return(e=i).THROW_IF_NOT_FOUND=Lc,e.NULL=new ov,e.\u0275prov=P({token:e,providedIn:"any",factory:()=>x(DS)}),e.__NG_ELEMENT_ID__=-1,i})(),il=(()=>{var e;class i{}return(e=i).__NG_ELEMENT_ID__=VH,e.__NG_ENV_ID__=n=>n,i})();class BH extends il{constructor(i){super(),this._lView=i}onDestroy(i){return JD(this._lView,i),()=>function Kj(e,i){if(null===e[Fs])return;const n=e[Fs].indexOf(i);-1!==n&&e[Fs].splice(n,1)}(this._lView,i)}}function VH(){return new BH(j())}function US(e){return e.ownerDocument.defaultView}function ss(e){return e instanceof Function?e():e}let Cv=(()=>{var e;class i{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new O(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const t of this.callbacks)t.invoke()}finally{this.runningCallbacks=!1;for(const t of this.deferredCallbacks)this.callbacks.add(t);this.deferredCallbacks.clear()}}register(t){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(t)}unregister(t){this.callbacks.delete(t),this.deferredCallbacks.delete(t)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>new e}),i})();function ud(e){for(;e;){e[Ve]|=64;const i=td(e);if(pb(e)&&!i)return e;e=i}return null}function Dv(e){return e.ngOriginalError}class Tr{constructor(){this._console=console}handleError(i){const n=this._findOriginalError(i);this._console.error("ERROR",i),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(i){let n=i&&Dv(i);for(;n&&Dv(n);)n=Dv(n);return n||null}}const KS=new M("",{providedIn:"root",factory:()=>!1});class JS extends tf{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(i){this._lView=i}onConsumerDependencyMayHaveChanged(){ud(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(i,n,t){const r=hi(this);this.trackingVersion++;try{i(n,t)}finally{hi(r)}}destroy(){this.trackingVersion++}}let Gf=null;function eE(){return Gf??=new JS,Gf}function tE(e,i){return e[i]??eE()}function iE(e,i){const n=eE();n.hasReadASignal&&(e[i]=Gf,n.lView=e,Gf=new JS)}const je={};function C(e){nE(rt(),j(),ji()+e,!1)}function nE(e,i,n,t){if(!t)if(3==(3&i[Ve])){const s=e.preOrderCheckHooks;null!==s&&cf(i,s,n)}else{const s=e.preOrderHooks;null!==s&&df(i,s,0,n)}So(n)}function p(e,i=We.Default){const n=j();return null===n?x(e,i):x1(wi(),n,Oe(e),i)}function Fo(){throw new Error("invalid")}function qf(e,i,n,t,r,s,o,a,l,c,d){const u=i.blueprint.slice();return u[Gt]=r,u[Ve]=140|t,(null!==c||e&&2048&e[Ve])&&(u[Ve]|=2048),XD(u),u[At]=u[Aa]=e,u[qt]=n,u[Ia]=o||e&&e[Ia],u[Le]=a||e&&e[Le],u[Os]=l||e&&e[Os]||null,u[Ei]=s,u[Uc]=function r5(){return n5++}(),u[es]=d,u[OD]=c,u[Wt]=2==i.type?e[Wt]:u,u}function sl(e,i,n,t,r){let s=e.data[i];if(null===s)s=function Sv(e,i,n,t,r){const s=n1(),o=wb(),l=e.data[i]=function t$(e,i,n,t,r,s){let o=i?i.injectorIndex:-1,a=0;return Na()&&(a|=128),{type:n,index:t,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,i,t,r);return null===e.firstChild&&(e.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(e,i,n,t,r),function sz(){return Ie.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=t,s.attrs=r;const o=function qc(){const e=Ie.lFrame,i=e.currentTNode;return e.isParent?i:i.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Sr(s,!0),s}function hd(e,i,n,t){if(0===n)return-1;const r=i.length;for(let s=0;sKe&&nE(e,i,Ke,!1),Dr(a?2:0,r),a)s.runInContext(n,t,r);else{const c=hi(null);try{n(t,r)}finally{hi(c)}}}finally{a&&null===i[Xh]&&iE(i,Xh),So(o),Dr(a?3:1,r)}}function Ev(e,i,n){if(mb(i)){const t=hi(null);try{const s=i.directiveEnd;for(let o=i.directiveStart;onull;function aE(e,i,n,t){for(let r in e)if(e.hasOwnProperty(r)){n=null===n?{}:n;const s=e[r];null===t?lE(n,i,r,s):t.hasOwnProperty(r)&&lE(n,i,t[r],s)}return n}function lE(e,i,n,t){e.hasOwnProperty(n)?e[n].push(i,t):e[n]=[i,t]}function vn(e,i,n,t,r,s,o,a){const l=en(i,n);let d,c=i.inputs;!a&&null!=c&&(d=c[t])?(Nv(e,n,d,t,r),Co(i)&&function r$(e,i){const n=pn(i,e);16&n[Ve]||(n[Ve]|=64)}(n,i.index)):3&i.type&&(t=function n$(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(t),r=null!=o?o(r,i.value||"",t):r,s.setProperty(l,t,r))}function Av(e,i,n,t){if(t1()){const r=null===t?null:{"":-1},s=function d$(e,i){const n=e.directiveRegistry;let t=null,r=null;if(n)for(let s=0;s0;){const n=e[--i];if("number"==typeof n&&n<0)return n}return 0})(o)!=a&&o.push(a),o.push(n,t,s)}}(e,i,t,hd(e,n,r.hostVars,je),r)}function Ir(e,i,n,t,r,s){const o=en(e,i);!function Ov(e,i,n,t,r,s,o){if(null==s)e.removeAttribute(i,r,n);else{const a=null==o?Pe(s):o(s,t||"",r);e.setAttribute(i,r,a,n)}}(i[Le],o,s,e.value,n,t,r)}function g$(e,i,n,t,r,s){const o=s[i];if(null!==o)for(let a=0;a{var e;class i{constructor(){this.all=new Set,this.queue=new Map}create(t,r,s){const o=typeof Zone>"u"?null:Zone.current,a=new Lj(t,d=>{this.all.has(d)&&this.queue.set(d,o)},s);let l;this.all.add(a),a.notify();const c=()=>{a.cleanup(),l?.(),this.all.delete(a),this.queue.delete(a)};return l=r?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>new e}),i})();function Yf(e,i,n){let t=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==i)for(let o=0;o0){yE(e,1);const r=e[le].components;null!==r&&xE(e,r,1)}}function xE(e,i,n){for(let t=0;t-1&&(Df(i,t),pf(n,t))}this._attachedToViewContainer=!1}Yb(this._lView[le],this._lView)}onDestroy(i){JD(this._lView,i)}markForCheck(){ud(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ve]&=-129}reattach(){this._lView[Ve]|=128}detectChanges(){Kf(this._lView[le],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function b5(e,i){nd(e,i,i[Le],2,null,null)}(this._lView[le],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=i}}class D$ extends md{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Kf(i[le],i,i[qt],!1)}checkNoChanges(){}get context(){return null}}class kE extends el{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const n=nt(i);return new pd(n,this.ngModule)}}function CE(e){const i=[];for(let n in e)e.hasOwnProperty(n)&&i.push({propName:e[n],templateName:n});return i}class E${constructor(i,n){this.injector=i,this.parentInjector=n}get(i,n,t){t=qh(t);const r=this.injector.get(i,kv,t);return r!==kv||n===kv?r:this.parentInjector.get(i,n,t)}}class pd extends LS{get inputs(){const i=this.componentDef,n=i.inputTransforms,t=CE(i.inputs);if(null!==n)for(const r of t)n.hasOwnProperty(r.propName)&&(r.transform=n[r.propName]);return t}get outputs(){return CE(this.componentDef.outputs)}constructor(i,n){super(),this.componentDef=i,this.ngModule=n,this.componentType=i.type,this.selector=function _j(e){return e.map(gj).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!n}create(i,n,t,r){let s=(r=r||this.ngModule)instanceof bn?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new E$(i,s):i,a=o.get(dd,null);if(null===a)throw new O(407,!1);const u={rendererFactory:a,sanitizer:o.get(AH,null),effectManager:o.get(bE,null),afterRenderEventManager:o.get(Cv,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",_=t?function XH(e,i,n,t){const s=t.get(KS,!1)||n===In.ShadowDom,o=e.selectRootElement(i,s);return function ZH(e){oE(e)}(o),o}(h,t,this.componentDef.encapsulation,o):Cf(h,f,function S$(e){const i=e.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(f)),b=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==_&&(v=yv(_,o,!0));const w=Iv(0,null,null,1,0,null,null,null,null,null,null),y=qf(null,w,null,b,null,null,u,h,o,null,v);let E,T;Sb(y);try{const B=this.componentDef;let z,oe=null;B.findHostDirectiveDefs?(z=[],oe=new Map,B.findHostDirectiveDefs(B,z,oe),z.push(B)):z=[B];const te=function T$(e,i){const n=e[le],t=Ke;return e[t]=i,sl(n,t,2,"#host",null)}(y,_),ve=function I$(e,i,n,t,r,s,o){const a=r[le];!function A$(e,i,n,t){for(const r of e)i.mergedAttrs=jc(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(Yf(i,i.mergedAttrs,!0),null!==n&&uS(t,n,i))}(t,e,i,o);let l=null;null!==i&&(l=yv(i,r[Os]));const c=s.rendererFactory.createRenderer(i,n);let d=16;n.signals?d=4096:n.onPush&&(d=64);const u=qf(r,sE(n),null,d,r[e.index],e,s,c,null,null,l);return a.firstCreatePass&&Rv(a,e,t.length-1),Wf(r,u),r[e.index]=u}(te,_,B,z,y,u,h);T=KD(w,Ke),_&&function O$(e,i,n,t){if(t)hb(e,n,["ng-version",RH.full]);else{const{attrs:r,classes:s}=function bj(e){const i=[],n=[];let t=1,r=2;for(;t0&&dS(e,n,s.join(" "))}}(h,B,_,t),void 0!==n&&function F$(e,i,n){const t=e.projection=[];for(let r=0;r=0;t--){const r=e[t];r.hostVars=i+=r.hostVars,r.hostAttrs=jc(r.hostAttrs,n=jc(n,r.hostAttrs))}}(t)}function Xf(e){return e===wr?{}:e===at?[]:e}function L$(e,i){const n=e.viewQuery;e.viewQuery=n?(t,r)=>{i(t,r),n(t,r)}:i}function B$(e,i){const n=e.contentQueries;e.contentQueries=n?(t,r,s)=>{i(t,r,s),n(t,r,s)}:i}function V$(e,i){const n=e.hostBindings;e.hostBindings=n?(t,r)=>{i(t,r),n(t,r)}:i}function TE(e){const i=e.inputConfig,n={};for(const t in i)if(i.hasOwnProperty(t)){const r=i[t];Array.isArray(r)&&r[2]&&(n[t]=r[2])}e.inputTransforms=n}function Zf(e){return!!Lv(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Lv(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,i,n){return e[i]=n}function Ii(e,i,n){return!Object.is(e[i],n)&&(e[i]=n,!0)}function No(e,i,n,t){const r=Ii(e,i,n);return Ii(e,i+1,t)||r}function _e(e,i,n,t){const r=j();return Ii(r,Pa(),i)&&(rt(),Ir(Nt(),r,e,i,n,t)),_e}function al(e,i,n,t){return Ii(e,Pa(),n)?i+Pe(n)+t:je}function ll(e,i,n,t,r,s){const a=No(e,function ts(){return Ie.lFrame.bindingIndex}(),n,r);return is(2),a?i+Pe(n)+t+Pe(r)+s:je}function Z(e,i,n,t,r,s,o,a){const l=j(),c=rt(),d=e+Ke,u=c.firstCreatePass?function u8(e,i,n,t,r,s,o,a,l){const c=i.consts,d=sl(i,e,4,o||null,Ns(c,a));Av(i,n,d,Ns(c,l)),lf(i,d);const u=d.tView=Iv(2,d,t,r,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,d),u.queries=i.queries.embeddedTView(d)),d}(d,c,l,i,n,t,r,s,o):c.data[d];Sr(u,!1);const h=HE(c,l,u,e);af()&&Ef(c,l,h,u),Ti(h,l),Wf(l,l[d]=hE(h,l,h,u)),Jh(u)&&Mv(c,l,u),null!=o&&Tv(l,u,a)}let HE=function $E(e,i,n,t){return Ps(!0),i[Le].createComment("")};function Rt(e){return Fa(function rz(){return Ie.lFrame.contextLView}(),Ke+e)}function R(e,i,n){const t=j();return Ii(t,Pa(),i)&&vn(rt(),Nt(),t,e,i,t[Le],n,!1),R}function $v(e,i,n,t,r){const o=r?"class":"style";Nv(e,n,i.inputs[o],o,t)}function k(e,i,n,t){const r=j(),s=rt(),o=Ke+e,a=r[Le],l=s.firstCreatePass?function p8(e,i,n,t,r,s){const o=i.consts,l=sl(i,e,2,t,Ns(o,r));return Av(i,n,l,Ns(o,s)),null!==l.attrs&&Yf(l,l.attrs,!1),null!==l.mergedAttrs&&Yf(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(o,s,r,i,n,t):s.data[o],c=UE(s,r,l,a,i,e);r[o]=c;const d=Jh(l);return Sr(l,!0),uS(a,c,l),32!=(32&l.flags)&&af()&&Ef(s,r,c,l),0===function Xj(){return Ie.lFrame.elementDepthCount}()&&Ti(c,r),function Zj(){Ie.lFrame.elementDepthCount++}(),d&&(Mv(s,r,l),Ev(s,l,r)),null!==t&&Tv(r,l),k}function D(){let e=wi();wb()?xb():(e=e.parent,Sr(e,!1));const i=e;(function Jj(e){return Ie.skipHydrationRootTNode===e})(i)&&function nz(){Ie.skipHydrationRootTNode=null}(),function Qj(){Ie.lFrame.elementDepthCount--}();const n=rt();return n.firstCreatePass&&(lf(n,e),mb(e)&&n.queries.elementEnd(e)),null!=i.classesWithoutHost&&function gz(e){return 0!=(8&e.flags)}(i)&&$v(n,i,j(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function _z(e){return 0!=(16&e.flags)}(i)&&$v(n,i,j(),i.stylesWithoutHost,!1),D}function be(e,i,n,t){return k(e,i,n,t),D(),be}let UE=(e,i,n,t,r,s)=>(Ps(!0),Cf(t,r,function f1(){return Ie.lFrame.currentNamespace}()));function fi(e,i,n){const t=j(),r=rt(),s=e+Ke,o=r.firstCreatePass?function b8(e,i,n,t,r){const s=i.consts,o=Ns(s,t),a=sl(i,e,8,"ng-container",o);return null!==o&&Yf(a,o,!0),Av(i,n,a,Ns(s,r)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,r,t,i,n):r.data[s];Sr(o,!0);const a=GE(r,t,o,e);return t[s]=a,af()&&Ef(r,t,a,o),Ti(a,t),Jh(o)&&(Mv(r,t,o),Ev(r,o,t)),null!=n&&Tv(t,o),fi}function mi(){let e=wi();const i=rt();return wb()?xb():(e=e.parent,Sr(e,!1)),i.firstCreatePass&&(lf(i,e),mb(e)&&i.queries.elementEnd(e)),mi}function Ai(e,i,n){return fi(e,i,n),mi(),Ai}let GE=(e,i,n,t)=>(Ps(!0),Wb(i[Le],""));function Yt(){return j()}function yd(e){return!!e&&"function"==typeof e.then}function qE(e){return!!e&&"function"==typeof e.subscribe}function H(e,i,n,t){const r=j(),s=rt(),o=wi();return WE(s,r,r[Le],o,e,i,t),H}function pl(e,i){const n=wi(),t=j(),r=rt();return WE(r,t,gE(Cb(r.data),n,t),n,e,i),pl}function WE(e,i,n,t,r,s,o){const a=Jh(t),c=e.firstCreatePass&&pE(e),d=i[qt],u=mE(i);let h=!0;if(3&t.type||o){const g=en(t,i),m=o?o(g):g,b=u.length,v=o?y=>o(xt(y[t.index])):t.index;let w=null;if(!o&&a&&(w=function w8(e,i,n,t){const r=e.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(e,i,r,t.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,h=!1;else{s=KE(t,i,d,s,!1);const y=n.listen(m,r,s);u.push(s,y),c&&c.push(r,v,b,b+1)}}else s=KE(t,i,d,s,!1);const f=t.outputs;let _;if(h&&null!==f&&(_=f[r])){const g=_.length;if(g)for(let m=0;m-1?pn(e.index,i):i);let l=YE(i,n,t,o),c=s.__ngNextListenerFn__;for(;c;)l=YE(i,n,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&o.preventDefault(),l}}function ue(e=1){return function cz(e){return(Ie.lFrame.contextLView=function dz(e,i){for(;e>0;)i=i[Aa],e--;return i}(e,Ie.lFrame.contextLView))[qt]}(e)}function x8(e,i){let n=null;const t=function hj(e){const i=e.attrs;if(null!=i){const n=i.indexOf(5);if(!(1&n))return i[n+1]}return null}(e);for(let r=0;r>17&32767}function Gv(e){return 2|e}function Po(e){return(131068&e)>>2}function qv(e,i){return-131069&e|i<<2}function Wv(e){return 1|e}function rM(e,i,n,t,r){const s=e[n+1],o=null===i;let a=t?Vs(s):Po(s),l=!1;for(;0!==a&&(!1===l||o);){const d=e[a+1];M8(e[a],i)&&(l=!0,e[a+1]=t?Wv(d):Gv(d)),a=t?Vs(d):Po(d)}l&&(e[n+1]=t?Gv(s):Wv(s))}function M8(e,i){return null===e||null==i||(Array.isArray(e)?e[1]:e)===i||!(!Array.isArray(e)||"string"!=typeof i)&&Ga(e,i)>=0}const li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sM(e){return e.substring(li.key,li.keyEnd)}function oM(e,i){const n=li.textEnd;return n===i?-1:(i=li.keyEnd=function R8(e,i,n){for(;i32;)i++;return i}(e,li.key=i,n),gl(e,i,n))}function gl(e,i,n){for(;i=0;n=oM(i,n))gn(e,sM(i),!0)}function tr(e,i,n,t){const r=j(),s=rt(),o=is(2);s.firstUpdatePass&&fM(s,e,o,t),i!==je&&Ii(r,o,i)&&pM(s,s.data[ji()],r,r[Le],e,r[o+1]=function $8(e,i){return null==e||""===e||("string"==typeof i?e+=i:"object"==typeof e&&(e=oi(_n(e)))),e}(i,n),t,o)}function ir(e,i,n,t){const r=rt(),s=is(2);r.firstUpdatePass&&fM(r,null,s,t);const o=j();if(n!==je&&Ii(o,s,n)){const a=r.data[ji()];if(_M(a,t)&&!hM(r,s)){let l=t?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(n=Q_(l,n||"")),$v(r,a,o,n,t)}else!function H8(e,i,n,t,r,s,o,a){r===je&&(r=at);let l=0,c=0,d=0=e.expandoStartIndex}function fM(e,i,n,t){const r=e.data;if(null===r[n+1]){const s=r[ji()],o=hM(e,n);_M(s,t)&&null===i&&!o&&(i=!1),i=function P8(e,i,n,t){const r=Cb(e);let s=t?i.residualClasses:i.residualStyles;if(null===r)0===(t?i.classBindings:i.styleBindings)&&(n=wd(n=Yv(null,e,i,n,t),i.attrs,t),s=null);else{const o=i.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Yv(r,e,i,n,t),null===s){let l=function L8(e,i,n){const t=n?i.classBindings:i.styleBindings;if(0!==Po(t))return e[Vs(t)]}(e,i,t);void 0!==l&&Array.isArray(l)&&(l=Yv(null,e,i,l[1],t),l=wd(l,i.attrs,t),function B8(e,i,n,t){e[Vs(n?i.classBindings:i.styleBindings)]=t}(e,i,t,l))}else s=function V8(e,i,n){let t;const r=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):d=n,r)if(0!==l){const h=Vs(e[a+1]);e[t+1]=im(h,a),0!==h&&(e[h+1]=qv(e[h+1],t)),e[a+1]=function C8(e,i){return 131071&e|i<<17}(e[a+1],t)}else e[t+1]=im(a,0),0!==a&&(e[a+1]=qv(e[a+1],t)),a=t;else e[t+1]=im(l,0),0===a?a=t:e[l+1]=qv(e[l+1],t),l=t;c&&(e[t+1]=Gv(e[t+1])),rM(e,d,t,!0),rM(e,d,t,!1),function E8(e,i,n,t,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof i&&Ga(s,i)>=0&&(n[t+1]=Wv(n[t+1]))}(i,d,e,t,s),o=im(a,l),s?i.classBindings=o:i.styleBindings=o}(r,s,i,n,o,t)}}function Yv(e,i,n,t,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=n[r+1];h===je&&(h=u?at:void 0);let f=u?Pb(h,t):d===t?h:void 0;if(c&&!nm(f)&&(f=Pb(l,t)),nm(f)&&(a=f,o))return a;const _=e[r+1];r=o?Vs(_):Po(_)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=Pb(l,t))}return a}function nm(e){return void 0!==e}function _M(e,i){return 0!=(e.flags&(i?8:16))}function N(e,i=""){const n=j(),t=rt(),r=e+Ke,s=t.firstCreatePass?sl(t,r,1,i,null):t.data[r],o=bM(t,n,s,i,e);n[r]=o,af()&&Ef(t,n,o,s),Sr(s,!1)}let bM=(e,i,n,t,r)=>(Ps(!0),function kf(e,i){return e.createText(i)}(i[Le],t));function pe(e){return ot("",e,""),pe}function ot(e,i,n){const t=j(),r=al(t,e,i,n);return r!==je&&os(t,ji(),r),ot}function rm(e,i,n,t,r){const s=j(),o=ll(s,e,i,n,t,r);return o!==je&&os(s,ji(),o),rm}function On(e,i,n){const t=j();return Ii(t,Pa(),i)&&vn(rt(),Nt(),t,e,i,t[Le],n,!0),On}function _l(e,i,n){const t=j();if(Ii(t,Pa(),i)){const s=rt(),o=Nt();vn(s,o,t,e,i,gE(Cb(s.data),o,t),n,!0)}return _l}const Lo=void 0;var dU=["en",[["a","p"],["AM","PM"],Lo],[["AM","PM"],Lo,Lo],[["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"]],Lo,[["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"]],Lo,[["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}",Lo,"{1} 'at' {0}",Lo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function cU(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let bl={};function Hi(e){const i=function hU(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=LM(i);if(n)return n;const t=i.split("-")[0];if(n=LM(t),n)return n;if("en"===t)return dU;throw new O(701,!1)}function LM(e){return e in bl||(bl[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),bl[e]}var Ct=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Ct||{});const vl="en-US";let BM=vl;function Zv(e,i,n,t,r){if(e=Oe(e),Array.isArray(e))for(let s=0;s>20;if(Ro(e)||!e.multi){const f=new Wc(c,r,p),_=Jv(l,i,r?d:d+h,u);-1===_?(Ob(hf(a,o),s,l),Qv(s,e,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(f),o.push(f)):(n[_]=f,o[_]=f)}else{const f=Jv(l,i,d+h,u),_=Jv(l,i,d,d+h),m=_>=0&&n[_];if(r&&!m||!r&&!(f>=0&&n[f])){Ob(hf(a,o),s,l);const b=function d6(e,i,n,t,r){const s=new Wc(e,n,p);return s.multi=[],s.index=i,s.componentProviders=0,cT(s,r,t&&!n),s}(r?c6:l6,n.length,r,t,c);!r&&m&&(n[_].providerFactory=b),Qv(s,e,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(b),o.push(b)}else Qv(s,e,f>-1?f:_,cT(n[r?_:f],c,!r&&t));!r&&t&&m&&n[_].componentProviders++}}}function Qv(e,i,n,t){const r=Ro(i),s=function lH(e){return!!e.useClass}(i);if(r||s){const l=(s?Oe(i.useClass):i).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&i.multi){const d=c.indexOf(n);-1===d?c.push(n,[t,l]):c[d+1].push(t,l)}else c.push(n,l)}}}function cT(e,i,n){return n&&e.componentProviders++,e.multi.push(i)-1}function Jv(e,i,n,t){for(let r=n;r{n.providersResolver=(t,r)=>function a6(e,i,n){const t=rt();if(t.firstCreatePass){const r=Jn(e);Zv(n,t.data,t.blueprint,r,!0),Zv(i,t.data,t.blueprint,r,!1)}}(t,r?r(e):e,i)}}class Bo{}class dT{}class ty extends Bo{constructor(i,n,t){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kE(this);const r=mn(i);this._bootstrapComponents=ss(r.bootstrap),this._r3Injector=$S(i,n,[{provide:Bo,useValue:this},{provide:el,useValue:this.componentFactoryResolver},...t],oi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class iy extends dT{constructor(i){super(),this.moduleType=i}create(i){return new ty(this.moduleType,i,[])}}class uT extends Bo{constructor(i){super(),this.componentFactoryResolver=new kE(this),this.instance=null;const n=new Lf([...i.providers,{provide:Bo,useValue:this},{provide:el,useValue:this.componentFactoryResolver}],i.parent||Pf(),i.debugName,new Set(["environment"]));this.injector=n,i.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function ny(e,i,n=null){return new uT({providers:e,parent:i,debugName:n,runEnvironmentInitializers:!0}).injector}let f6=(()=>{var e;class i{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=ES(0,t.type),s=r.length>0?ny([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,s)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return(e=i).\u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(x(bn))}),i})();function hT(e){e.getStandaloneInjector=i=>i.get(f6).getOrCreateStandaloneInjector(e)}function sy(e,i,n){const t=Vi()+e,r=j();return r[t]===je?Ar(r,t,n?i.call(n):i()):function gd(e,i){return e[i]}(r,t)}function cm(e,i,n,t){return vT(j(),Vi(),e,i,n,t)}function Ed(e,i){const n=e[i];return n===je?void 0:n}function vT(e,i,n,t,r,s){const o=i+n;return Ii(e,o,r)?Ar(e,o+1,s?t.call(s,r):t(r)):Ed(e,o+1)}function U(e,i){const n=rt();let t;const r=e+Ke;n.firstCreatePass?(t=function I6(e,i){if(i)for(let n=i.length-1;n>=0;n--){const t=i[n];if(e===t.name)return t}}(i,n.pipeRegistry),n.data[r]=t,t.onDestroy&&(n.destroyHooks??=[]).push(r,t.onDestroy)):t=n.data[r];const s=t.factory||(t.factory=Do(t.type)),a=Zi(p);try{const l=uf(!1),c=s();return uf(l),function m8(e,i,n,t){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),i[n]=t}(n,j(),r,c),c}finally{Zi(a)}}function Y(e,i,n){const t=e+Ke,r=j(),s=Fa(r,t);return Md(r,t)?vT(r,Vi(),i,s.transform,n,s):s.transform(n)}function yl(e,i,n,t){const r=e+Ke,s=j(),o=Fa(s,r);return Md(s,r)?function yT(e,i,n,t,r,s,o){const a=i+n;return No(e,a,r,s)?Ar(e,a+2,o?t.call(o,r,s):t(r,s)):Ed(e,a+2)}(s,Vi(),i,o.transform,n,t,o):o.transform(n,t)}function Md(e,i){return e[le].data[i].pure}function oy(e){return i=>{setTimeout(e,void 0,i)}}const W=class F6 extends ${constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,n,t){let r=i,s=n||(()=>null),o=t;if(i&&"object"==typeof i){const l=i;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=oy(s),r&&(r=oy(r)),o&&(o=oy(o)));const a=super.subscribe({next:r,error:s,complete:o});return i instanceof Qe&&i.add(a),a}};function N6(){return this._results[Symbol.iterator]()}class wl{get changes(){return this._changes||(this._changes=new W)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=wl.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=N6)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,n){return this._results.reduce(i,n)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,n){const t=this;t.dirty=!1;const r=function An(e){return e.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function Az(e,i,n){if(e.length!==i.length)return!1;for(let t=0;t0&&(n[r-1][Qn]=i),t{class i{}return i.__NG_ELEMENT_ID__=j6,i})();const B6=Pt,V6=class extends B6{constructor(i,n,t){super(),this._declarationLView=i,this._declarationTContainer=n,this.elementRef=t}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,n){return this.createEmbeddedViewImpl(i,n)}createEmbeddedViewImpl(i,n,t){const r=function P6(e,i,n,t){const r=i.tView,a=qf(e,r,n,4096&e[Ve]?4096:16,null,i,null,null,null,t?.injector??null,t?.hydrationInfo??null);a[$c]=e[i.index];const c=e[xr];return null!==c&&(a[xr]=c.createEmbeddedView(r)),Pv(r,a,n),a}(this._declarationLView,this._declarationTContainer,i,{injector:n,hydrationInfo:t});return new md(r)}};function j6(){return dm(wi(),j())}function dm(e,i){return 4&e.type?new V6(i,e,tl(e,i)):null}let Vt=(()=>{class i{}return i.__NG_ELEMENT_ID__=q6,i})();function q6(){return IT(wi(),j())}const W6=Vt,MT=class extends W6{constructor(i,n,t){super(),this._lContainer=i,this._hostTNode=n,this._hostLView=t}get element(){return tl(this._hostTNode,this._hostLView)}get injector(){return new zi(this._hostTNode,this._hostLView)}get parentInjector(){const i=ff(this._hostTNode,this._hostLView);if(Ib(i)){const n=Kc(i,this._hostLView),t=Yc(i);return new zi(n[le].data[t+8],n)}return new zi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const n=TT(this._lContainer);return null!==n&&n[i]||null}get length(){return this._lContainer.length-yi}createEmbeddedView(i,n,t){let r,s;"number"==typeof t?r=t:null!=t&&(r=t.index,s=t.injector);const a=i.createEmbeddedViewImpl(n||{},s,null);return this.insertImpl(a,r,false),a}createComponent(i,n,t,r,s){const o=i&&!function Zc(e){return"function"==typeof e}(i);let a;if(o)a=n;else{const g=n||{};a=g.index,t=g.injector,r=g.projectableNodes,s=g.environmentInjector||g.ngModuleRef}const l=o?i:new pd(nt(i)),c=t||this.parentInjector;if(!s&&null==l.ngModule){const m=(o?c:this.parentInjector).get(bn,null);m&&(s=m)}nt(l.componentType??{});const f=l.create(c,r,null,s);return this.insertImpl(f.hostView,a,false),f}insert(i,n){return this.insertImpl(i,n,!1)}insertImpl(i,n,t){const r=i._lView;if(function Wj(e){return Ji(e[At])}(r)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=r[At],d=new MT(c,c[Ei],c[At]);d.detach(d.indexOf(i))}}const o=this._adjustIndex(n),a=this._lContainer;return L6(a,r,o,!t),i.attachToViewContainerRef(),M1(ay(a),o,i),i}move(i,n){return this.insert(i,n)}indexOf(i){const n=TT(this._lContainer);return null!==n?n.indexOf(i):-1}remove(i){const n=this._adjustIndex(i,-1),t=Df(this._lContainer,n);t&&(pf(ay(this._lContainer),n),Yb(t[le],t))}detach(i){const n=this._adjustIndex(i,-1),t=Df(this._lContainer,n);return t&&null!=pf(ay(this._lContainer),n)?new md(t):null}_adjustIndex(i,n=0){return i??this.length+n}};function TT(e){return e[8]}function ay(e){return e[8]||(e[8]=[])}function IT(e,i){let n;const t=i[e.index];return Ji(t)?n=t:(n=hE(t,i,null,e),i[e.index]=n,Wf(i,n)),AT(n,i,e,t),new MT(n,e,i)}let AT=function RT(e,i,n,t){if(e[kr])return;let r;r=8&n.type?xt(t):function Y6(e,i){const n=e[Le],t=n.createComment(""),r=en(i,e);return To(n,Sf(n,r),t,function D5(e,i){return e.nextSibling(i)}(n,r),!1),t}(i,n),e[kr]=r};class ly{constructor(i){this.queryList=i,this.matches=null}clone(){return new ly(this.queryList)}setDirty(){this.queryList.setDirty()}}class cy{constructor(i=[]){this.queries=i}createEmbeddedView(i){const n=i.queries;if(null!==n){const t=null!==i.contentQueries?i.contentQueries[0]:n.length,r=[];for(let s=0;s0)t.push(o[a/2]);else{const c=s[a+1],d=i[-l];for(let u=yi;u{var e;class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=G(mm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const s of this.appInits){const o=s();if(yd(o))t.push(o);else if(qE(o)){const a=new Promise((l,c)=>{o.subscribe({complete:l,error:c})});t.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(s=>{this.reject(s)}),0===t.length&&r(),this.initialized=!0}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),eI=(()=>{var e;class i{log(t){console.log(t)}warn(t){console.warn(t)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),i})();const Fr=new M("LocaleId",{providedIn:"root",factory:()=>G(Fr,We.Optional|We.SkipSelf)||function kG(){return typeof $localize<"u"&&$localize.locale||vl}()});let pm=(()=>{var e;class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Et(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();class SG{constructor(i,n){this.ngModuleFactory=i,this.componentFactories=n}}let tI=(()=>{var e;class i{compileModuleSync(t){return new iy(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=ss(mn(t).declarations).reduce((a,l)=>{const c=nt(l);return c&&a.push(new pd(c)),a},[]);return new SG(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function sI(...e){}class ce{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new W(!1),this.onMicrotaskEmpty=new W(!1),this.onStable=new W(!1),this.onError=new W(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!t&&n,r.shouldCoalesceRunChangeDetection=t,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function qG(){const e="function"==typeof vt.requestAnimationFrame;let i=vt[e?"requestAnimationFrame":"setTimeout"],n=vt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&n){const t=i[Zone.__symbol__("OriginalDelegate")];t&&(i=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function KG(e){const i=()=>{!function YG(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xy(e),e.isCheckStableRunning=!0,wy(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xy(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,t,r,s,o,a)=>{try{return oI(e),n.invokeTask(r,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&i(),aI(e)}},onInvoke:(n,t,r,s,o,a,l)=>{try{return oI(e),n.invoke(r,s,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&i(),aI(e)}},onHasTask:(n,t,r,s)=>{n.hasTask(r,s),t===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,xy(e),wy(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,t,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ce.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(ce.isInAngularZone())throw new O(909,!1)}run(i,n,t){return this._inner.run(i,n,t)}runTask(i,n,t,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,i,WG,sI,sI);try{return s.runTask(o,n,t)}finally{s.cancelTask(o)}}runGuarded(i,n,t){return this._inner.runGuarded(i,n,t)}runOutsideAngular(i){return this._outer.run(i)}}const WG={};function wy(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 xy(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function oI(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function aI(e){e._nesting--,wy(e)}class XG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new W,this.onMicrotaskEmpty=new W,this.onStable=new W,this.onError=new W}run(i,n,t){return i.apply(n,t)}runGuarded(i,n,t){return i.apply(n,t)}runOutsideAngular(i){return i()}runTask(i,n,t,r){return i.apply(n,t)}}const lI=new M("",{providedIn:"root",factory:cI});function cI(){const e=G(ce);let i=!0;return Ft(new et(r=>{i=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(i),r.complete()})}),new et(r=>{let s;e.runOutsideAngular(()=>{s=e.onStable.subscribe(()=>{ce.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(i=!0,r.next(!0))})})});const o=e.onUnstable.subscribe(()=>{ce.assertInAngularZone(),i&&(i=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{s.unsubscribe(),o.unsubscribe()}}).pipe(Vh()))}const dI=new M(""),_m=new M("");let Dy,ky=(()=>{var e;class i{constructor(t,r,s){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Dy||(function ZG(e){Dy=e}(s),s.addToWindow(r)),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:()=>{ce.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{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(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,s){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:s})}whenStable(t,r,s){if(s&&!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,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,s){return[]}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce),x(Cy),x(_m))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),Cy=(()=>{var e;class i{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return Dy?.findTestabilityInTree(this,t,r)??null}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),i})(),js=null;const uI=new M("AllowMultipleToken"),Sy=new M("PlatformDestroyListeners"),Ey=new M("appBootstrapListener");class fI{constructor(i,n){this.name=i,this.token=n}}function pI(e,i,n=[]){const t=`Platform: ${i}`,r=new M(t);return(s=[])=>{let o=My();if(!o||o.injector.get(uI,!1)){const a=[...n,...s,{provide:r,useValue:!0}];e?e(a):function eq(e){if(js&&!js.get(uI,!1))throw new O(400,!1);(function hI(){!function Nj(e){jD=e}(()=>{throw new O(600,!1)})})(),js=e;const i=e.get(_I);(function mI(e){e.get(RS,null)?.forEach(n=>n())})(e)}(function gI(e=[],i){return kt.create({name:i,providers:[{provide:cv,useValue:"platform"},{provide:Sy,useValue:new Set([()=>js=null])},...e]})}(a,t))}return function iq(e){const i=My();if(!i)throw new O(401,!1);return i}()}}function My(){return js?.get(_I)??null}let _I=(()=>{var e;class i{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const s=function nq(e="zone.js",i){return"noop"===e?new XG:"zone.js"===e?new ce(i):e}(r?.ngZone,function bI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{const o=function h6(e,i,n){return new ty(e,i,n)}(t.moduleType,this.injector,function kI(e){return[{provide:ce,useFactory:e},{provide:Ao,multi:!0,useFactory:()=>{const i=G(sq,{optional:!0});return()=>i.initialize()}},{provide:xI,useFactory:rq},{provide:lI,useFactory:cI}]}(()=>s)),a=o.injector.get(Tr,null);return s.runOutsideAngular(()=>{const l=s.onError.subscribe({next:c=>{a.handleError(c)}});o.onDestroy(()=>{bm(this._modules,o),l.unsubscribe()})}),function vI(e,i,n){try{const t=n();return yd(t)?t.catch(r=>{throw i.runOutsideAngular(()=>e.handleError(r)),r}):t}catch(t){throw i.runOutsideAngular(()=>e.handleError(t)),t}}(a,s,()=>{const l=o.injector.get(by);return l.runInitializers(),l.donePromise.then(()=>(function VM(e){Tn(e,"Expected localeId to be defined"),"string"==typeof e&&(BM=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Fr,vl)||vl),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const s=yI({},r);return function QG(e,i,n){const t=new iy(n);return Promise.resolve(t)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(t){const r=t.injector.get(Nr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new O(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Sy,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=i).\u0275fac=function(t){return new(t||e)(x(kt))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),i})();function yI(e,i){return Array.isArray(i)?i.reduce(yI,e):{...e,...i}}let Nr=(()=>{var e;class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=G(xI),this.zoneIsStable=G(lI),this.componentTypes=[],this.components=[],this.isStable=G(pm).hasPendingTasks.pipe(ei(t=>t?ee(!1):this.zoneIsStable),xo(),Vh()),this._injector=G(bn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const s=t instanceof LS;if(!this._injector.get(by).done)throw!s&&function Ma(e){const i=nt(e)||vi(e)||Bi(e);return null!==i&&i.standalone}(t),new O(405,!1);let a;a=s?t:this._injector.get(el).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const l=function JG(e){return e.isBoundToModule}(a)?void 0:this._injector.get(Bo),d=a.create(kt.NULL,[],r||a.selector,l),u=d.location.nativeElement,h=d.injector.get(dI,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),bm(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;bm(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Ey,[]);r.push(...this._bootstrapListeners),r.forEach(s=>s(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>bm(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new O(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function bm(e,i){const n=e.indexOf(i);n>-1&&e.splice(n,1)}const xI=new M("",{providedIn:"root",factory:()=>G(Tr).handleError.bind(void 0)});function rq(){const e=G(ce),i=G(Tr);return n=>e.runOutsideAngular(()=>i.handleError(n))}let sq=(()=>{var e;class i{constructor(){this.zone=G(ce),this.applicationRef=G(Nr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();let st=(()=>{class i{}return i.__NG_ELEMENT_ID__=lq,i})();function lq(e){return function cq(e,i,n){if(Co(e)&&!n){const t=pn(e.index,i);return new md(t,t)}return 47&e.type?new md(i[Wt],i):null}(wi(),j(),16==(16&e))}class EI{constructor(){}supports(i){return Zf(i)}create(i){return new pq(i)}}const mq=(e,i)=>i;class pq{constructor(i){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=i||mq}forEachItem(i){let n;for(n=this._itHead;null!==n;n=n._next)i(n)}forEachOperation(i){let n=this._itHead,t=this._removalsHead,r=0,s=null;for(;n||t;){const o=!t||n&&n.currentIndex{o=this._trackByFn(r,a),null!==n&&Object.is(n.trackById,o)?(t&&(n=this._verifyReinsertion(n,a,o,r)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,o,r),t=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,n,t,r){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(t,null))?(Object.is(i.item,n)||this._addIdentityChange(i,n),this._reinsertAfter(i,s,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(t,r))?(Object.is(i.item,n)||this._addIdentityChange(i,n),this._moveAfter(i,s,r)):i=this._addAfter(new gq(n,t),s,r),i}_verifyReinsertion(i,n,t,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(t,null);return null!==s?i=this._reinsertAfter(s,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const n=i._next;this._addToRemovals(this._unlink(i)),i=n}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(i,n,t){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,s=i._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(i,n,t),this._addToMoves(i,t),i}_moveAfter(i,n,t){return this._unlink(i),this._insertAfter(i,n,t),this._addToMoves(i,t),i}_addAfter(i,n,t){return this._insertAfter(i,n,t),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,n,t){const r=null===n?this._itHead:n._next;return i._next=r,i._prev=n,null===r?this._itTail=i:r._prev=i,null===n?this._itHead=i:n._next=i,null===this._linkedRecords&&(this._linkedRecords=new MI),this._linkedRecords.put(i),i.currentIndex=t,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const n=i._prev,t=i._next;return null===n?this._itHead=t:n._next=t,null===t?this._itTail=n:t._prev=n,i}_addToMoves(i,n){return i.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new MI),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,n){return i.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class gq{constructor(i,n){this.item=i,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class _q{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,n){let t;for(t=this._head;null!==t;t=t._nextDup)if((null===n||n<=t.currentIndex)&&Object.is(t.trackById,i))return t;return null}remove(i){const n=i._prevDup,t=i._nextDup;return null===n?this._head=t:n._nextDup=t,null===t?this._tail=n:t._prevDup=n,null===this._head}}class MI{constructor(){this.map=new Map}put(i){const n=i.trackById;let t=this.map.get(n);t||(t=new _q,this.map.set(n,t)),t.add(i)}get(i,n){const r=this.map.get(i);return r?r.get(i,n):null}remove(i){const n=i.trackById;return this.map.get(n).remove(i)&&this.map.delete(n),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TI(e,i,n){const t=e.previousIndex;if(null===t)return t;let r=0;return n&&t{if(n&&n.key===r)this._maybeAddToChanges(n,t),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,t);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let t=n;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,n){if(i){const t=i._prev;return n._next=i,n._prev=t,i._prev=n,t&&(t._next=n),i===this._mapHead&&(this._mapHead=n),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(i,n){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,n);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const t=new vq(i);return this._records.set(i,t),t.currentValue=n,this._addToAdditions(t),t}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,n){Object.is(n,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=n,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,n){i instanceof Map?i.forEach(n):Object.keys(i).forEach(t=>n(i[t],t))}}class vq{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function AI(){return new Fn([new EI])}let Fn=(()=>{var e;class i{constructor(t){this.factories=t}static create(t,r){if(null!=r){const s=r.factories.slice();t=t.concat(s)}return new i(t)}static extend(t){return{provide:i,useFactory:r=>i.create(t,r||AI()),deps:[[i,new qa,new Ls]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(null!=r)return r;throw new O(901,!1)}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:AI}),i})();function RI(){return new Ad([new II])}let Ad=(()=>{var e;class i{constructor(t){this.factories=t}static create(t,r){if(r){const s=r.factories.slice();t=t.concat(s)}return new i(t)}static extend(t){return{provide:i,useFactory:r=>i.create(t,r||RI()),deps:[[i,new qa,new Ls]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(r)return r;throw new O(901,!1)}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:RI}),i})();const xq=pI(null,"core",[]);let kq=(()=>{var e;class i{constructor(t){}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Nr))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function Cl(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Fy=null;function zs(){return Fy}class Lq{}const xe=new M("DocumentToken");let Ny=(()=>{var e;class i{historyGo(t){throw new Error("Not implemented")}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(Vq)},providedIn:"platform"}),i})();const Bq=new M("Location Initialized");let Vq=(()=>{var e;class i extends Ny{constructor(){super(),this._doc=G(xe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zs().getBaseHref(this._doc)}onPopState(t){const r=zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,s){this._history.pushState(t,r,s)}replaceState(t,r,s){this._history.replaceState(t,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return new e},providedIn:"platform"}),i})();function Py(e,i){if(0==e.length)return i;if(0==i.length)return e;let n=0;return e.endsWith("/")&&n++,i.startsWith("/")&&n++,2==n?e+i.substring(1):1==n?e+i:e+"/"+i}function jI(e){const i=e.match(/#|\?|$/),n=i&&i.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function as(e){return e&&"?"!==e[0]?"?"+e:e}let jo=(()=>{var e;class i{historyGo(t){throw new Error("Not implemented")}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(HI)},providedIn:"root"}),i})();const zI=new M("appBaseHref");let HI=(()=>{var e;class i extends jo{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??G(xe).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 Py(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+as(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${r}${s}`:r}pushState(t,r,s,o){const a=this.prepareExternalUrl(s+as(o));this._platformLocation.pushState(t,r,a)}replaceState(t,r,s,o){const a=this.prepareExternalUrl(s+as(o));this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ny),x(zI,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),jq=(()=>{var e;class i extends jo{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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 r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Py(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,s,o){let a=this.prepareExternalUrl(s+as(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(t,r,a)}replaceState(t,r,s,o){let a=this.prepareExternalUrl(s+as(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ny),x(zI,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),Rd=(()=>{var e;class i{constructor(t){this._subject=new W,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function $q(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(jI($I(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+as(r))}normalize(t){return i.stripTrailingSlash(function Hq(e,i){if(!e||!i.startsWith(e))return i;const n=i.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:i}(this._basePath,$I(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",s=null){this._locationStrategy.pushState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+as(r)),s)}replaceState(t,r="",s=null){this._locationStrategy.replaceState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+as(r)),s)}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(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(s=>s(t,r))}subscribe(t,r,s){return this._subject.subscribe({next:t,error:r,complete:s})}}return(e=i).normalizeQueryParams=as,e.joinWithSlash=Py,e.stripTrailingSlash=jI,e.\u0275fac=function(t){return new(t||e)(x(jo))},e.\u0275prov=P({token:e,factory:function(){return function zq(){return new Rd(x(jo))}()},providedIn:"root"}),i})();function $I(e){return e.replace(/\/index.html$/,"")}var Ui=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Ui||{}),yt=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(yt||{}),wn=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(wn||{}),Kt=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Kt||{});function km(e,i){return Pn(Hi(e)[Ct.DateFormat],i)}function Cm(e,i){return Pn(Hi(e)[Ct.TimeFormat],i)}function Dm(e,i){return Pn(Hi(e)[Ct.DateTimeFormat],i)}function Nn(e,i){const n=Hi(e),t=n[Ct.NumberSymbols][i];if(typeof t>"u"){if(i===Kt.CurrencyDecimal)return n[Ct.NumberSymbols][Kt.Decimal];if(i===Kt.CurrencyGroup)return n[Ct.NumberSymbols][Kt.Group]}return t}function GI(e){if(!e[Ct.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Ct.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Pn(e,i){for(let n=i;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function By(e){const[i,n]=e.split(":");return{hours:+i,minutes:+n}}const r7=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Od={},s7=/((?:[^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 ls=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(ls||{}),dt=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(dt||{}),ut=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(ut||{});function o7(e,i,n,t){let r=function p7(e){if(YI(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,s=1,o=1]=e.split("-").map(a=>+a);return Sm(r,s-1,o)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let t;if(t=e.match(r7))return function g7(e){const i=new Date(0);let n=0,t=0;const r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(n=Number(e[9]+e[10]),t=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-t,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(i,o,a,l,c),i}(t)}const i=new Date(e);if(!YI(i))throw new Error(`Unable to convert "${e}" into a date`);return i}(e);i=cs(n,i)||i;let a,o=[];for(;i;){if(a=s7.exec(i),!a){o.push(i);break}{o=o.concat(a.slice(1));const d=o.pop();if(!d)break;i=d}}let l=r.getTimezoneOffset();t&&(l=WI(t,l),r=function m7(e,i,n){const t=n?-1:1,r=e.getTimezoneOffset();return function f7(e,i){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+i),e}(e,t*(WI(i,r)-r))}(r,t,!0));let c="";return o.forEach(d=>{const u=function h7(e){if(jy[e])return jy[e];let i;switch(e){case"G":case"GG":case"GGG":i=Dt(ut.Eras,yt.Abbreviated);break;case"GGGG":i=Dt(ut.Eras,yt.Wide);break;case"GGGGG":i=Dt(ut.Eras,yt.Narrow);break;case"y":i=ii(dt.FullYear,1,0,!1,!0);break;case"yy":i=ii(dt.FullYear,2,0,!0,!0);break;case"yyy":i=ii(dt.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(dt.FullYear,4,0,!1,!0);break;case"Y":i=Im(1);break;case"YY":i=Im(2,!0);break;case"YYY":i=Im(3);break;case"YYYY":i=Im(4);break;case"M":case"L":i=ii(dt.Month,1,1);break;case"MM":case"LL":i=ii(dt.Month,2,1);break;case"MMM":i=Dt(ut.Months,yt.Abbreviated);break;case"MMMM":i=Dt(ut.Months,yt.Wide);break;case"MMMMM":i=Dt(ut.Months,yt.Narrow);break;case"LLL":i=Dt(ut.Months,yt.Abbreviated,Ui.Standalone);break;case"LLLL":i=Dt(ut.Months,yt.Wide,Ui.Standalone);break;case"LLLLL":i=Dt(ut.Months,yt.Narrow,Ui.Standalone);break;case"w":i=Vy(1);break;case"ww":i=Vy(2);break;case"W":i=Vy(1,!0);break;case"d":i=ii(dt.Date,1);break;case"dd":i=ii(dt.Date,2);break;case"c":case"cc":i=ii(dt.Day,1);break;case"ccc":i=Dt(ut.Days,yt.Abbreviated,Ui.Standalone);break;case"cccc":i=Dt(ut.Days,yt.Wide,Ui.Standalone);break;case"ccccc":i=Dt(ut.Days,yt.Narrow,Ui.Standalone);break;case"cccccc":i=Dt(ut.Days,yt.Short,Ui.Standalone);break;case"E":case"EE":case"EEE":i=Dt(ut.Days,yt.Abbreviated);break;case"EEEE":i=Dt(ut.Days,yt.Wide);break;case"EEEEE":i=Dt(ut.Days,yt.Narrow);break;case"EEEEEE":i=Dt(ut.Days,yt.Short);break;case"a":case"aa":case"aaa":i=Dt(ut.DayPeriods,yt.Abbreviated);break;case"aaaa":i=Dt(ut.DayPeriods,yt.Wide);break;case"aaaaa":i=Dt(ut.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":i=Dt(ut.DayPeriods,yt.Abbreviated,Ui.Standalone,!0);break;case"bbbb":i=Dt(ut.DayPeriods,yt.Wide,Ui.Standalone,!0);break;case"bbbbb":i=Dt(ut.DayPeriods,yt.Narrow,Ui.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dt(ut.DayPeriods,yt.Abbreviated,Ui.Format,!0);break;case"BBBB":i=Dt(ut.DayPeriods,yt.Wide,Ui.Format,!0);break;case"BBBBB":i=Dt(ut.DayPeriods,yt.Narrow,Ui.Format,!0);break;case"h":i=ii(dt.Hours,1,-12);break;case"hh":i=ii(dt.Hours,2,-12);break;case"H":i=ii(dt.Hours,1);break;case"HH":i=ii(dt.Hours,2);break;case"m":i=ii(dt.Minutes,1);break;case"mm":i=ii(dt.Minutes,2);break;case"s":i=ii(dt.Seconds,1);break;case"ss":i=ii(dt.Seconds,2);break;case"S":i=ii(dt.FractionalSeconds,1);break;case"SS":i=ii(dt.FractionalSeconds,2);break;case"SSS":i=ii(dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Mm(ls.Short);break;case"ZZZZZ":i=Mm(ls.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Mm(ls.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Mm(ls.Long);break;default:return null}return jy[e]=i,i}(d);c+=u?u(r,n,l):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Sm(e,i,n){const t=new Date(0);return t.setFullYear(e,i,n),t.setHours(0,0,0),t}function cs(e,i){const n=function Gq(e){return Hi(e)[Ct.LocaleId]}(e);if(Od[n]=Od[n]||{},Od[n][i])return Od[n][i];let t="";switch(i){case"shortDate":t=km(e,wn.Short);break;case"mediumDate":t=km(e,wn.Medium);break;case"longDate":t=km(e,wn.Long);break;case"fullDate":t=km(e,wn.Full);break;case"shortTime":t=Cm(e,wn.Short);break;case"mediumTime":t=Cm(e,wn.Medium);break;case"longTime":t=Cm(e,wn.Long);break;case"fullTime":t=Cm(e,wn.Full);break;case"short":const r=cs(e,"shortTime"),s=cs(e,"shortDate");t=Em(Dm(e,wn.Short),[r,s]);break;case"medium":const o=cs(e,"mediumTime"),a=cs(e,"mediumDate");t=Em(Dm(e,wn.Medium),[o,a]);break;case"long":const l=cs(e,"longTime"),c=cs(e,"longDate");t=Em(Dm(e,wn.Long),[l,c]);break;case"full":const d=cs(e,"fullTime"),u=cs(e,"fullDate");t=Em(Dm(e,wn.Full),[d,u])}return t&&(Od[n][i]=t),t}function Em(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(n,t){return null!=i&&t in i?i[t]:n})),e}function nr(e,i,n="-",t,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length0||a>-n)&&(a+=n),e===dt.Hours)0===a&&-12===n&&(a=12);else if(e===dt.FractionalSeconds)return function a7(e,i){return nr(e,3).substring(0,i)}(a,i);const l=Nn(o,Kt.MinusSign);return nr(a,i,l,t,r)}}function Dt(e,i,n=Ui.Format,t=!1){return function(r,s){return function c7(e,i,n,t,r,s){switch(n){case ut.Months:return function Yq(e,i,n){const t=Hi(e),s=Pn([t[Ct.MonthsFormat],t[Ct.MonthsStandalone]],i);return Pn(s,n)}(i,r,t)[e.getMonth()];case ut.Days:return function Wq(e,i,n){const t=Hi(e),s=Pn([t[Ct.DaysFormat],t[Ct.DaysStandalone]],i);return Pn(s,n)}(i,r,t)[e.getDay()];case ut.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(s){const c=function Qq(e){const i=Hi(e);return GI(i),(i[Ct.ExtraData][2]||[]).map(t=>"string"==typeof t?By(t):[By(t[0]),By(t[1])])}(i),d=function Jq(e,i,n){const t=Hi(e);GI(t);const s=Pn([t[Ct.ExtraData][0],t[Ct.ExtraData][1]],i)||[];return Pn(s,n)||[]}(i,r,t),u=c.findIndex(h=>{if(Array.isArray(h)){const[f,_]=h,g=o>=f.hours&&a>=f.minutes,m=o<_.hours||o===_.hours&&a<_.minutes;if(f.hours<_.hours){if(g&&m)return!0}else if(g||m)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==u)return d[u]}return function qq(e,i,n){const t=Hi(e),s=Pn([t[Ct.DayPeriodsFormat],t[Ct.DayPeriodsStandalone]],i);return Pn(s,n)}(i,r,t)[o<12?0:1];case ut.Eras:return function Kq(e,i){return Pn(Hi(e)[Ct.Eras],i)}(i,t)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(r,s,e,i,n,t)}}function Mm(e){return function(i,n,t){const r=-1*t,s=Nn(n,Kt.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case ls.Short:return(r>=0?"+":"")+nr(o,2,s)+nr(Math.abs(r%60),2,s);case ls.ShortGMT:return"GMT"+(r>=0?"+":"")+nr(o,1,s);case ls.Long:return"GMT"+(r>=0?"+":"")+nr(o,2,s)+":"+nr(Math.abs(r%60),2,s);case ls.Extended:return 0===t?"Z":(r>=0?"+":"")+nr(o,2,s)+":"+nr(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}const d7=0,Tm=4;function qI(e){return Sm(e.getFullYear(),e.getMonth(),e.getDate()+(Tm-e.getDay()))}function Vy(e,i=!1){return function(n,t){let r;if(i){const s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();r=1+Math.floor((o+s)/7)}else{const s=qI(n),o=function u7(e){const i=Sm(e,d7,1).getDay();return Sm(e,0,1+(i<=Tm?Tm:Tm+7)-i)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return nr(r,e,Nn(t,Kt.MinusSign))}}function Im(e,i=!1){return function(n,t){return nr(qI(n).getFullYear(),e,Nn(t,Kt.MinusSign),i)}}const jy={};function WI(e,i){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?i:n}function YI(e){return e instanceof Date&&!isNaN(e.valueOf())}function QI(e,i){i=encodeURIComponent(i);for(const n of e.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}const qy=/\s+/,JI=[];let Wy=(()=>{var e;class i{constructor(t,r,s,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=s,this._renderer=o,this.initialClasses=JI,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(qy):JI}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(qy):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const s=this.stateMap.get(t);void 0!==s?(s.enabled!==r&&(s.changed=!0,s.enabled=r),s.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],s=t[1];s.changed?(this._toggleClass(r,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),s.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(qy).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fn),p(Ad),p(ne),p(rs))},e.\u0275dir=I({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),i})();class I7{constructor(i,n,t,r){this.$implicit=i,this.ngForOf=n,this.index=t,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 Nd=(()=>{var e;class i{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,s){this._viewContainer=t,this._template=r,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 r=this._viewContainer;t.forEachOperation((s,o,a)=>{if(null==s.previousIndex)r.createEmbeddedView(this._template,new I7(s.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===o?void 0:o);else if(null!==o){const l=r.get(o);r.move(l,a),tA(l,s)}});for(let s=0,o=r.length;s{tA(r.get(s.currentIndex),s)})}static ngTemplateContextGuard(t,r){return!0}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt),p(Fn))},e.\u0275dir=I({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),i})();function tA(e,i){e.context.$implicit=i.item}let ki=(()=>{var e;class i{constructor(t,r){this._viewContainer=t,this._context=new A7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){iA("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){iA("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,r){return!0}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt))},e.\u0275dir=I({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),i})();class A7{constructor(){this.$implicit=null,this.ngIf=null}}function iA(e,i){if(i&&!i.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${oi(i)}'.`)}class Yy{constructor(i,n){this._viewContainerRef=i,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let Pd=(()=>{var e;class i{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const r of this._defaultViews)r.enforceState(t)}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),i})(),Ky=(()=>{var e;class i{constructor(t,r,s){this.ngSwitch=s,s._addCase(),this._view=new Yy(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt),p(Pd,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),i})(),nA=(()=>{var e;class i{constructor(t,r,s){s._addDefault(new Yy(t,r))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt),p(Pd,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),i})(),sA=(()=>{var e;class i{constructor(t,r,s){this._ngEl=t,this._differs=r,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[s,o]=t.split("."),a=-1===s.indexOf("-")?void 0:Bs.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,s,o?`${r}${o}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,s,a)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ad),p(rs))},e.\u0275dir=I({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),i})();function rr(e,i){return new O(2100,!1)}class O7{createSubscription(i,n){return HD(()=>i.subscribe({next:n,error:t=>{throw t}}))}dispose(i){HD(()=>i.unsubscribe())}}class F7{createSubscription(i,n){return i.then(n,t=>{throw t})}dispose(i){}}const N7=new F7,P7=new O7;let Pr=(()=>{var e;class i{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(yd(t))return N7;if(qE(t))return P7;throw rr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st,16))},e.\u0275pipe=Li({name:"async",type:e,pure:!1,standalone:!0}),i})();const H7=new M("DATE_PIPE_DEFAULT_TIMEZONE"),$7=new M("DATE_PIPE_DEFAULT_OPTIONS");let Rm=(()=>{var e;class i{constructor(t,r,s){this.locale=t,this.defaultTimezone=r,this.defaultOptions=s}transform(t,r,s,o){if(null==t||""===t||t!=t)return null;try{return o7(t,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,s??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw rr()}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fr,16),p(H7,24),p($7,24))},e.\u0275pipe=Li({name:"date",type:e,pure:!0,standalone:!0}),i})(),Ln=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const lA="browser";function Om(e){return e===lA}function cA(e){return"server"===e}let i9=(()=>{var e;class i{}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>new n9(x(xe),window)}),i})();class n9{constructor(i,n){this.document=i,this.window=n,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const n=function r9(e,i){const n=e.getElementById(i)||e.getElementsByName(i)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const t=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=t.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=t.nextNode()}}return null}(this.document,i);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const n=i.getBoundingClientRect(),t=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(t-s[0],r-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dA{}class E9 extends Lq{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class e0 extends E9{static makeCurrent(){!function Pq(e){Fy||(Fy=e)}(new e0)}onAndCancel(i,n,t){return i.addEventListener(n,t),()=>{i.removeEventListener(n,t)}}dispatchEvent(i,n){i.dispatchEvent(n)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,n){return(n=n||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,n){return"window"===n?window:"document"===n?i:"body"===n?i.body:null}getBaseHref(i){const n=function M9(){return Bd=Bd||document.querySelector("base"),Bd?Bd.getAttribute("href"):null}();return null==n?null:function T9(e){Pm=Pm||document.createElement("a"),Pm.setAttribute("href",e);const i=Pm.pathname;return"/"===i.charAt(0)?i:`/${i}`}(n)}resetBaseElement(){Bd=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return QI(document.cookie,i)}}let Pm,Bd=null,A9=(()=>{var e;class i{build(){return new XMLHttpRequest}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const t0=new M("EventManagerPlugins");let pA=(()=>{var e;class i{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(t,r),r}}return(e=i).\u0275fac=function(t){return new(t||e)(x(t0),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class gA{constructor(i){this._doc=i}}const n0="ng-app-id";let _A=(()=>{var e;class i{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=cA(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${n0}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(s=>{null!=s.textContent&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){const s=this.styleRef;if(s.has(t)){const o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===t)return s.delete(r),o.removeAttribute(n0),o;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(n0,this.appId),a}}addStyleToHost(t,r){const s=this.getStyleElement(t,r);t.appendChild(s);const o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(od),x(fv,8),x(er))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const r0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},s0=/%COMP%/g,N9=new M("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vA(e,i){return i.map(n=>n.replace(s0,e))}let o0=(()=>{var e;class i{constructor(t,r,s,o,a,l,c,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=cA(l),this.defaultRenderer=new a0(t,a,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===In.ShadowDom&&(r={...r,encapsulation:In.Emulated});const s=this.getOrCreateRenderer(t,r);return s instanceof wA?s.applyToHost(t):s instanceof l0&&s.applyStyles(),s}getOrCreateRenderer(t,r){const s=this.rendererByCompId;let o=s.get(r.id);if(!o){const a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case In.Emulated:o=new wA(c,d,r,this.appId,u,a,l,h);break;case In.ShadowDom:return new V9(c,d,t,r,a,l,this.nonce,h);default:o=new l0(c,d,r,u,a,l,h)}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(pA),x(_A),x(od),x(N9),x(xe),x(er),x(ce),x(fv))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class a0{constructor(i,n,t,r){this.eventManager=i,this.doc=n,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,n){return n?this.doc.createElementNS(r0[n]||n,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,n){(yA(i)?i.content:i).appendChild(n)}insertBefore(i,n,t){i&&(yA(i)?i.content:i).insertBefore(n,t)}removeChild(i,n){i&&i.removeChild(n)}selectRootElement(i,n){let t="string"==typeof i?this.doc.querySelector(i):i;if(!t)throw new O(-5104,!1);return n||(t.textContent=""),t}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,n,t,r){if(r){n=r+":"+n;const s=r0[r];s?i.setAttributeNS(s,n,t):i.setAttribute(n,t)}else i.setAttribute(n,t)}removeAttribute(i,n,t){if(t){const r=r0[t];r?i.removeAttributeNS(r,n):i.removeAttribute(`${t}:${n}`)}else i.removeAttribute(n)}addClass(i,n){i.classList.add(n)}removeClass(i,n){i.classList.remove(n)}setStyle(i,n,t,r){r&(Bs.DashCase|Bs.Important)?i.style.setProperty(n,t,r&Bs.Important?"important":""):i.style[n]=t}removeStyle(i,n,t){t&Bs.DashCase?i.style.removeProperty(n):i.style[n]=""}setProperty(i,n,t){i[n]=t}setValue(i,n){i.nodeValue=n}listen(i,n,t){if("string"==typeof i&&!(i=zs().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${n}`);return this.eventManager.addEventListener(i,n,this.decoratePreventDefault(t))}decoratePreventDefault(i){return n=>{if("__ngUnwrap__"===n)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(n)):i(n))&&n.preventDefault()}}}function yA(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class V9 extends a0{constructor(i,n,t,r,s,o,a,l){super(i,s,o,l),this.sharedStylesHost=n,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vA(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,n){return super.appendChild(this.nodeOrShadowRoot(i),n)}insertBefore(i,n,t){return super.insertBefore(this.nodeOrShadowRoot(i),n,t)}removeChild(i,n){return super.removeChild(this.nodeOrShadowRoot(i),n)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class l0 extends a0{constructor(i,n,t,r,s,o,a,l){super(i,s,o,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=r,this.styles=l?vA(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class wA extends l0{constructor(i,n,t,r,s,o,a,l){const c=r+"-"+t.id;super(i,n,t,s,o,a,l,c),this.contentAttr=function P9(e){return"_ngcontent-%COMP%".replace(s0,e)}(c),this.hostAttr=function L9(e){return"_nghost-%COMP%".replace(s0,e)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,n){const t=super.createElement(i,n);return super.setAttribute(t,this.contentAttr,""),t}}let j9=(()=>{var e;class i extends gA{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const xA=["alt","control","meta","shift"],z9={"\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"},H9={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $9=(()=>{var e;class i extends gA{constructor(t){super(t)}supports(t){return null!=i.parseEventName(t)}addEventListener(t,r,s){const o=i.parseEventName(r),a=i.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zs().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const o=i._normalizeKey(r.pop());let a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),xA.forEach(d=>{const u=r.indexOf(d);u>-1&&(r.splice(u,1),a+=d+".")}),a+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(t,r){let s=z9[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),!(null==s||!s)&&(s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),xA.forEach(a=>{a!==s&&(0,H9[a])(t)&&(o+=a+".")}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{i.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const CA=[{provide:er,useValue:lA},{provide:RS,useValue:function U9(){e0.makeCurrent()},multi:!0},{provide:xe,useFactory:function q9(){return function O5(e){tv=e}(document),document},deps:[]}],W9=pI(xq,"browser",CA),Y9=new M(""),DA=[{provide:_m,useClass:class I9{addToWindow(i){vt.getAngularTestability=(t,r=!0)=>{const s=i.findTestabilityInTree(t,r);if(null==s)throw new O(5103,!1);return s},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.frameworkStabilizers=[]),vt.frameworkStabilizers.push(t=>{const r=vt.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&t(o)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,n,t){return null==n?null:i.getTestability(n)??(t?zs().isShadowRoot(n)?this.findTestabilityInTree(i,n.host,!0):this.findTestabilityInTree(i,n.parentElement,!0):null)}},deps:[]},{provide:dI,useClass:ky,deps:[ce,Cy,_m]},{provide:ky,useClass:ky,deps:[ce,Cy,_m]}],SA=[{provide:cv,useValue:"root"},{provide:Tr,useFactory:function G9(){return new Tr},deps:[]},{provide:t0,useClass:j9,multi:!0,deps:[xe,ce,er]},{provide:t0,useClass:$9,multi:!0,deps:[xe]},o0,_A,pA,{provide:dd,useExisting:o0},{provide:dA,useClass:A9,deps:[]},[]];let EA=(()=>{var e;class i{constructor(t){}static withServerTransition(t){return{ngModule:i,providers:[{provide:od,useValue:t.appId}]}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Y9,12))},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[...SA,...DA],imports:[Ln,kq]}),i})(),MA=(()=>{var e;class i{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new t:function X9(){return new MA(x(xe))}(),r},providedIn:"root"}),i})();typeof window<"u"&&window;let d0=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new(t||e):x(AA),r},providedIn:"root"}),i})(),AA=(()=>{var e;class i extends d0{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case xi.NONE:return r;case xi.HTML:return Mr(r,"HTML")?_n(r):wS(this._doc,String(r)).toString();case xi.STYLE:return Mr(r,"Style")?_n(r):r;case xi.SCRIPT:if(Mr(r,"Script"))return _n(r);throw new O(5200,!1);case xi.URL:return Mr(r,"URL")?_n(r):Af(String(r));case xi.RESOURCE_URL:if(Mr(r,"ResourceURL"))return _n(r);throw new O(5201,!1);default:throw new O(5202,!1)}}bypassSecurityTrustHtml(t){return function j5(e){return new F5(e)}(t)}bypassSecurityTrustStyle(t){return function z5(e){return new N5(e)}(t)}bypassSecurityTrustScript(t){return function H5(e){return new P5(e)}(t)}bypassSecurityTrustUrl(t){return function $5(e){return new L5(e)}(t)}bypassSecurityTrustResourceUrl(t){return function U5(e){return new B5(e)}(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new t:function eW(e){return new AA(e.get(xe))}(x(kt)),r},providedIn:"root"}),i})();class tW{constructor(i,n){this._document=n;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=i,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){const i=this._textarea;let n=!1;try{if(i){const t=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),n=this._document.execCommand("copy"),t&&t.focus()}}catch{}return n}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let iW=(()=>{var e;class i{constructor(t){this._document=t}copy(t){const r=this.beginCopy(t),s=r.copy();return r.destroy(),s}beginCopy(t){return new tW(t,this._document)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),nW=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function $s(e,i){return Ue(i)?Bt(e,i,1):Bt(e,1)}function $e(e,i){return wt((n,t)=>{let r=0;n.subscribe(ft(t,s=>e.call(i,s,r++)&&t.next(s)))})}function Sl(e){return wt((i,n)=>{try{i.subscribe(n)}finally{n.add(e)}})}class Lm{}class El{}class sr{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(n=>{const t=n.indexOf(":");if(t>0){const r=n.slice(0,t),s=r.toLowerCase(),o=n.slice(t+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((n,t)=>{this.setHeaderEntries(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const n=this.headers.get(i.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,n){return this.clone({name:i,value:n,op:"a"})}set(i,n){return this.clone({name:i,value:n,op:"s"})}delete(i,n){return this.clone({name:i,value:n,op:"d"})}maybeSetNormalizedName(i,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,i)}init(){this.lazyInit&&(this.lazyInit instanceof sr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(n=>{this.headers.set(n,i.headers.get(n)),this.normalizedNames.set(n,i.normalizedNames.get(n))})}clone(i){const n=new sr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof sr?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([i]),n}applyUpdate(i){const n=i.name.toLowerCase();switch(i.op){case"a":case"s":let t=i.value;if("string"==typeof t&&(t=[t]),0===t.length)return;this.maybeSetNormalizedName(i.name,n);const r=("a"===i.op?this.headers.get(n):void 0)||[];r.push(...t),this.headers.set(n,r);break;case"d":const s=i.value;if(s){let o=this.headers.get(n);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(i,n){const t=(Array.isArray(n)?n:[n]).map(s=>s.toString()),r=i.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>i(this.normalizedNames.get(n),this.headers.get(n)))}}class rW{encodeKey(i){return OA(i)}encodeValue(i){return OA(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const oW=/%(\d[a-f0-9])/gi,aW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function OA(e){return encodeURIComponent(e).replace(oW,(i,n)=>aW[n]??i)}function Bm(e){return`${e}`}class ds{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new rW,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function sW(e,i){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,s)),i.decodeValue(r.slice(s+1))],l=n.get(o)||[];l.push(a),n.set(o,l)}),n}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(n=>{const t=i.fromObject[n],r=Array.isArray(t)?t.map(Bm):[Bm(t)];this.map.set(n,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const n=this.map.get(i);return n?n[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,n){return this.clone({param:i,value:n,op:"a"})}appendAll(i){const n=[];return Object.keys(i).forEach(t=>{const r=i[t];Array.isArray(r)?r.forEach(s=>{n.push({param:t,value:s,op:"a"})}):n.push({param:t,value:r,op:"a"})}),this.clone(n)}set(i,n){return this.clone({param:i,value:n,op:"s"})}delete(i,n){return this.clone({param:i,value:n,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const n=this.encoder.encodeKey(i);return this.map.get(i).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const n=new ds({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(i),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const n=("a"===i.op?this.map.get(i.param):void 0)||[];n.push(Bm(i.value)),this.map.set(i.param,n);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let t=this.map.get(i.param)||[];const r=t.indexOf(Bm(i.value));-1!==r&&t.splice(r,1),t.length>0?this.map.set(i.param,t):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class lW{constructor(){this.map=new Map}set(i,n){return this.map.set(i,n),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function FA(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function NA(e){return typeof Blob<"u"&&e instanceof Blob}function PA(e){return typeof FormData<"u"&&e instanceof FormData}class zo{constructor(i,n,t,r){let s;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function cW(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!==t?t:null,s=r):s=t,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new sr),this.context||(this.context=new lW),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":au.set(h,i.setHeaders[h]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((u,h)=>u.set(h,i.setParams[h]),c)),new zo(n,t,s,{params:c,headers:l,context:d,reportProgress:a,responseType:r,withCredentials:o})}}var Lr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Lr||{});class u0{constructor(i,n=200,t="OK"){this.headers=i.headers||new sr,this.status=void 0!==i.status?i.status:n,this.statusText=i.statusText||t,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class h0 extends u0{constructor(i={}){super(i),this.type=Lr.ResponseHeader}clone(i={}){return new h0({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Us extends u0{constructor(i={}){super(i),this.type=Lr.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Us({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class LA extends u0{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function f0(e,i){return{body:i,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Vm=(()=>{var e;class i{constructor(t){this.handler=t}request(t,r,s={}){let o;if(t instanceof zo)o=t;else{let c,d;c=s.headers instanceof sr?s.headers:new sr(s.headers),s.params&&(d=s.params instanceof ds?s.params:new ds({fromObject:s.params})),o=new zo(t,r,void 0!==s.body?s.body:null,{headers:c,context:s.context,params:d,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const a=ee(o).pipe($s(c=>this.handler.handle(c)));if(t instanceof zo||"events"===s.observe)return a;const l=a.pipe($e(c=>c instanceof Us));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(se(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(se(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(se(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return l.pipe(se(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new ds).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,f0(s,r))}post(t,r,s={}){return this.request("POST",t,f0(s,r))}put(t,r,s={}){return this.request("PUT",t,f0(s,r))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Lm))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function jA(e,i){return i(e)}function hW(e,i){return(n,t)=>i.intercept(n,{handle:r=>e(r,t)})}const mW=new M(""),Vd=new M(""),zA=new M("");function pW(){let e=null;return(i,n)=>{null===e&&(e=(G(mW,{optional:!0})??[]).reduceRight(hW,jA));const t=G(pm),r=t.add();return e(i,n).pipe(Sl(()=>t.remove(r)))}}let HA=(()=>{var e;class i extends Lm{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=G(pm)}handle(t){if(null===this.chain){const s=Array.from(new Set([...this.injector.get(Vd),...this.injector.get(zA,[])]));this.chain=s.reduceRight((o,a)=>function fW(e,i,n){return(t,r)=>n.runInContext(()=>i(t,s=>e(s,r)))}(o,a,this.injector),jA)}const r=this.pendingTasks.add();return this.chain(t,s=>this.backend.handle(s)).pipe(Sl(()=>this.pendingTasks.remove(r)))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(El),x(bn))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const vW=/^\)\]\}',?\n/;let UA=(()=>{var e;class i{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new O(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Jt(r.\u0275loadImpl()):ee(null)).pipe(ei(()=>new et(o=>{const a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((m,b)=>a.setRequestHeader(m,b.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&a.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();a.responseType="json"!==m?m:"text"}const l=t.serializeBody();let c=null;const d=()=>{if(null!==c)return c;const m=a.statusText||"OK",b=new sr(a.getAllResponseHeaders()),v=function yW(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||t.url;return c=new h0({headers:b,status:a.status,statusText:m,url:v}),c},u=()=>{let{headers:m,status:b,statusText:v,url:w}=d(),y=null;204!==b&&(y=typeof a.response>"u"?a.responseText:a.response),0===b&&(b=y?200:0);let E=b>=200&&b<300;if("json"===t.responseType&&"string"==typeof y){const T=y;y=y.replace(vW,"");try{y=""!==y?JSON.parse(y):null}catch(B){y=T,E&&(E=!1,y={error:B,text:y})}}E?(o.next(new Us({body:y,headers:m,status:b,statusText:v,url:w||void 0})),o.complete()):o.error(new LA({error:y,headers:m,status:b,statusText:v,url:w||void 0}))},h=m=>{const{url:b}=d(),v=new LA({error:m,status:a.status||0,statusText:a.statusText||"Unknown Error",url:b||void 0});o.error(v)};let f=!1;const _=m=>{f||(o.next(d()),f=!0);let b={type:Lr.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),"text"===t.responseType&&a.responseText&&(b.partialText=a.responseText),o.next(b)},g=m=>{let b={type:Lr.UploadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),o.next(b)};return a.addEventListener("load",u),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),t.reportProgress&&(a.addEventListener("progress",_),null!==l&&a.upload&&a.upload.addEventListener("progress",g)),a.send(l),o.next({type:Lr.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",u),a.removeEventListener("timeout",h),t.reportProgress&&(a.removeEventListener("progress",_),null!==l&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dA))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const m0=new M("XSRF_ENABLED"),GA=new M("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),qA=new M("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class WA{}let kW=(()=>{var e;class i{constructor(t,r,s){this.doc=t,this.platform=r,this.cookieName=s,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=QI(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(er),x(GA))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function CW(e,i){const n=e.url.toLowerCase();if(!G(m0)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return i(e);const t=G(WA).getToken(),r=G(qA);return null!=t&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,t)})),i(e)}var Gs=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Gs||{});function Ho(e,i){return{\u0275kind:e,\u0275providers:i}}function DW(...e){const i=[Vm,UA,HA,{provide:Lm,useExisting:HA},{provide:El,useExisting:UA},{provide:Vd,useValue:CW,multi:!0},{provide:m0,useValue:!0},{provide:WA,useClass:kW}];for(const n of e)i.push(...n.\u0275providers);return Of(i)}const YA=new M("LEGACY_INTERCEPTOR_FN");let EW=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[DW(Ho(Gs.LegacyInterceptors,[{provide:YA,useFactory:pW},{provide:Vd,useExisting:YA,multi:!0}]))]}),i})();const{isArray:OW}=Array,{getPrototypeOf:FW,prototype:NW,keys:PW}=Object;function KA(e){if(1===e.length){const i=e[0];if(OW(i))return{args:i,keys:null};if(function LW(e){return e&&"object"==typeof e&&FW(e)===NW}(i)){const n=PW(i);return{args:n.map(t=>i[t]),keys:n}}}return{args:e,keys:null}}const{isArray:BW}=Array;function p0(e){return se(i=>function VW(e,i){return BW(i)?e(...i):e(i)}(e,i))}function XA(e,i){return e.reduce((n,t,r)=>(n[t]=i[r],n),{})}function jd(...e){const i=K_(e),{args:n,keys:t}=KA(e),r=new et(s=>{const{length:o}=n;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||s.next(t?XA(t,a):a),s.complete())}))}});return i?r.pipe(p0(i)):r}let ZA=(()=>{var e;class i{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(rs),p(ne))},e.\u0275dir=I({type:e}),i})(),$o=(()=>{var e;class i extends ZA{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,features:[L]}),i})();const Ci=new M("NgValueAccessor"),zW={provide:Ci,useExisting:Ye(()=>Uo),multi:!0},$W=new M("CompositionEventMode");let Uo=(()=>{var e;class i extends ZA{constructor(t,r,s){super(t,r),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function HW(){const e=zs()?zs().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=i).\u0275fac=function(t){return new(t||e)(p(rs),p(ne),p($W,8))},e.\u0275dir=I({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,r){1&t&&H("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[K([zW]),L]}),i})();function qs(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function JA(e){return null!=e&&"number"==typeof e.length}const pi=new M("NgValidators"),Ws=new M("NgAsyncValidators"),UW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ml{static min(i){return function eR(e){return i=>{if(qs(i.value)||qs(e))return null;const n=parseFloat(i.value);return!isNaN(n)&&n{if(qs(i.value)||qs(e))return null;const n=parseFloat(i.value);return!isNaN(n)&&n>e?{max:{max:e,actual:i.value}}:null}}(i)}static required(i){return iR(i)}static requiredTrue(i){return function nR(e){return!0===e.value?null:{required:!0}}(i)}static email(i){return function rR(e){return qs(e.value)||UW.test(e.value)?null:{email:!0}}(i)}static minLength(i){return function sR(e){return i=>qs(i.value)||!JA(i.value)?null:i.value.lengthJA(i.value)&&i.value.length>e?{maxlength:{requiredLength:e,actualLength:i.value.length}}:null}(i)}static pattern(i){return function aR(e){if(!e)return zm;let i,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),i=new RegExp(n)):(n=e.toString(),i=e),t=>{if(qs(t.value))return null;const r=t.value;return i.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}(i)}static nullValidator(i){return null}static compose(i){return fR(i)}static composeAsync(i){return mR(i)}}function iR(e){return qs(e.value)?{required:!0}:null}function zm(e){return null}function lR(e){return null!=e}function cR(e){return yd(e)?Jt(e):e}function dR(e){let i={};return e.forEach(n=>{i=null!=n?{...i,...n}:i}),0===Object.keys(i).length?null:i}function uR(e,i){return i.map(n=>n(e))}function hR(e){return e.map(i=>function GW(e){return!e.validate}(i)?i:n=>i.validate(n))}function fR(e){if(!e)return null;const i=e.filter(lR);return 0==i.length?null:function(n){return dR(uR(n,i))}}function g0(e){return null!=e?fR(hR(e)):null}function mR(e){if(!e)return null;const i=e.filter(lR);return 0==i.length?null:function(n){return jd(uR(n,i).map(cR)).pipe(se(dR))}}function _0(e){return null!=e?mR(hR(e)):null}function pR(e,i){return null===e?[i]:Array.isArray(e)?[...e,i]:[e,i]}function gR(e){return e._rawValidators}function _R(e){return e._rawAsyncValidators}function b0(e){return e?Array.isArray(e)?e:[e]:[]}function Hm(e,i){return Array.isArray(e)?e.includes(i):e===i}function bR(e,i){const n=b0(i);return b0(e).forEach(r=>{Hm(n,r)||n.push(r)}),n}function vR(e,i){return b0(i).filter(n=>!Hm(e,n))}class yR{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(i){this._rawValidators=i||[],this._composedValidatorFn=g0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=_0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,n){return!!this.control&&this.control.hasError(i,n)}getError(i,n){return this.control?this.control.getError(i,n):null}}class Gi extends yR{get formDirective(){return null}get path(){return null}}class or extends yR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wR{constructor(i){this._cd=i}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}}let zd=(()=>{var e;class i extends wR{constructor(t){super(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(or,2))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&fe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[L]}),i})();const Hd="VALID",Um="INVALID",Tl="PENDING",$d="DISABLED";function w0(e){return(Gm(e)?e.validators:e)||null}function x0(e,i){return(Gm(i)?i.asyncValidators:e)||null}function Gm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class DR{constructor(i,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Hd}get invalid(){return this.status===Um}get pending(){return this.status==Tl}get disabled(){return this.status===$d}get enabled(){return this.status!==$d}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(bR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(bR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(vR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(vR(i,this._rawAsyncValidators))}hasValidator(i){return Hm(this._rawValidators,i)}hasAsyncValidator(i){return Hm(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const n=this._parentMarkedDirty(i.onlySelf);this.status=$d,this.errors=null,this._forEachChild(t=>{t.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:n}),this._onDisabledChange.forEach(t=>t(!0))}enable(i={}){const n=this._parentMarkedDirty(i.onlySelf);this.status=Hd,this._forEachChild(t=>{t.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:n}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Hd||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$d:Hd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const n=cR(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,n={}){this.errors=i,this._updateControlsErrors(!1!==n.emitEvent)}get(i){let n=i;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((t,r)=>t&&t._find(r),this)}getError(i,n){const t=n?this.get(n):this;return t&&t.errors?t.errors[i]:null}hasError(i,n){return!!this.getError(i,n)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new W,this.statusChanges=new W}_calculateStatus(){return this._allControlsDisabled()?$d:this.errors?Um:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(Um)?Um:Hd}_anyControlsHaveStatus(i){return this._anyControls(n=>n.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Gm(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function XW(e){return Array.isArray(e)?g0(e):e||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function ZW(e){return Array.isArray(e)?_0(e):e||null}(this._rawAsyncValidators)}}class k0 extends DR{constructor(i,n,t){super(w0(n),x0(t,n)),this.controls=i,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,n){return this.controls[i]?this.controls[i]:(this.controls[i]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(i,n,t={}){this.registerControl(i,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(i,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(i,n,t={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],n&&this.registerControl(i,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,n={}){(function CR(e,i,n){e._forEachChild((t,r)=>{if(void 0===n[r])throw new O(1002,"")})})(this,0,i),Object.keys(i).forEach(t=>{(function kR(e,i,n){const t=e.controls;if(!(i?Object.keys(t):t).length)throw new O(1e3,"");if(!t[n])throw new O(1001,"")})(this,!0,t),this.controls[t].setValue(i[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(i,n={}){null!=i&&(Object.keys(i).forEach(t=>{const r=this.controls[t];r&&r.patchValue(i[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(i={},n={}){this._forEachChild((t,r)=>{t.reset(i[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(i,n,t)=>(i[t]=n.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(n,t)=>!!t._syncPendingControls()||n);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(n=>{const t=this.controls[n];t&&i(t,n)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[n,t]of Object.entries(this.controls))if(this.contains(n)&&i(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,t,r)=>((t.enabled||this.disabled)&&(n[r]=t.value),n))}_reduceChildren(i,n){let t=i;return this._forEachChild((r,s)=>{t=n(t,r,s)}),t}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}const Go=new M("CallSetDisabledState",{providedIn:"root",factory:()=>Ud}),Ud="always";function Gd(e,i,n=Ud){C0(e,i),i.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&i.valueAccessor.setDisabledState?.(e.disabled),function eY(e,i){i.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&SR(e,i)})}(e,i),function iY(e,i){const n=(t,r)=>{i.valueAccessor.writeValue(t),r&&i.viewToModelUpdate(t)};e.registerOnChange(n),i._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,i),function tY(e,i){i.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&SR(e,i),"submit"!==e.updateOn&&e.markAsTouched()})}(e,i),function JW(e,i){if(i.valueAccessor.setDisabledState){const n=t=>{i.valueAccessor.setDisabledState(t)};e.registerOnDisabledChange(n),i._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,i)}function Wm(e,i,n=!0){const t=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(t),i.valueAccessor.registerOnTouched(t)),Km(e,i),e&&(i._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ym(e,i){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(i)})}function C0(e,i){const n=gR(e);null!==i.validator?e.setValidators(pR(n,i.validator)):"function"==typeof n&&e.setValidators([n]);const t=_R(e);null!==i.asyncValidator?e.setAsyncValidators(pR(t,i.asyncValidator)):"function"==typeof t&&e.setAsyncValidators([t]);const r=()=>e.updateValueAndValidity();Ym(i._rawValidators,r),Ym(i._rawAsyncValidators,r)}function Km(e,i){let n=!1;if(null!==e){if(null!==i.validator){const r=gR(e);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==i.validator);s.length!==r.length&&(n=!0,e.setValidators(s))}}if(null!==i.asyncValidator){const r=_R(e);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==i.asyncValidator);s.length!==r.length&&(n=!0,e.setAsyncValidators(s))}}}const t=()=>{};return Ym(i._rawValidators,t),Ym(i._rawAsyncValidators,t),n}function SR(e,i){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ER(e,i){C0(e,i)}function MR(e,i){e._syncPendingControls(),i.forEach(n=>{const t=n.control;"submit"===t.updateOn&&t._pendingChange&&(n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const aY={provide:Gi,useExisting:Ye(()=>Il)},qd=(()=>Promise.resolve())();let Il=(()=>{var e;class i extends Gi{constructor(t,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new W,this.form=new k0({},g0(t),_0(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){qd.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Gd(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){qd.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){qd.then(()=>{const r=this._findContainer(t.path),s=new k0({});ER(s,t),r.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){qd.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){qd.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,MR(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return(e=i).\u0275fac=function(t){return new(t||e)(p(pi,10),p(Ws,10),p(Go,8))},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&H("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[K([aY]),L]}),i})();function TR(e,i){const n=e.indexOf(i);n>-1&&e.splice(n,1)}function IR(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const M0=class extends DR{constructor(i=null,n,t){super(w0(n),x0(t,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Gm(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=IR(i)?i.value:i)}setValue(i,n={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(i,n={}){this.setValue(i,n)}reset(i=this.defaultValue,n={}){this._applyFormState(i),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){TR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){TR(this._onDisabledChange,i)}_forEachChild(i){}_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(i){IR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},Al=M0;let PR=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const T0=new M("NgModelWithFormControlWarning"),gY={provide:or,useExisting:Ye(()=>Rl)};let Rl=(()=>{var e;class i extends or{set isDisabled(t){}constructor(t,r,s,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new W,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=function E0(e,i){if(!i)return null;let n,t,r;return Array.isArray(i),i.forEach(s=>{s.constructor===Uo?n=s:function sY(e){return Object.getPrototypeOf(e.constructor)===$o}(s)?t=s:r=s}),r||t||n||null}(0,s)}ngOnChanges(t){if(this._isControlChanged(t)){const r=t.form.previousValue;r&&Wm(r,this,!1),Gd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}(function S0(e,i){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(i,n.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Wm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return(e=i)._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(p(pi,10),p(Ws,10),p(Ci,10),p(T0,8),p(Go,8))},e.\u0275dir=I({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[K([gY]),L,bt]}),i})();const _Y={provide:Gi,useExisting:Ye(()=>Ol)};let Ol=(()=>{var e;class i extends Gi{constructor(t,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new W,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Km(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Gd(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Wm(t.control||null,t,!1),function oY(e,i){const n=e.indexOf(i);n>-1&&e.splice(n,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,MR(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,s=this.form.get(t.path);r!==s&&(Wm(r||null,t),(e=>e instanceof M0)(s)&&(Gd(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);ER(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function nY(e,i){return Km(e,i)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){C0(this.form,this),this._oldForm&&Km(this._oldForm,this)}_checkFormPresent(){}}return(e=i).\u0275fac=function(t){return new(t||e)(p(pi,10),p(Ws,10),p(Go,8))},e.\u0275dir=I({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&H("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[K([_Y]),L,bt]}),i})(),qo=(()=>{var e;class i{constructor(){this._validator=zm}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):zm,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,features:[bt]}),i})();const TY={provide:pi,useExisting:Ye(()=>Xm),multi:!0};let Xm=(()=>{var e;class i extends qo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Cl,this.createValidator=t=>iR}enabled(t){return t}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,r){2&t&&_e("required",r._enabled?"":null)},inputs:{required:"required"},features:[K([TY]),L]}),i})(),ZR=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[PR]}),i})(),PY=(()=>{var e;class i{static withConfig(t){return{ngModule:i,providers:[{provide:Go,useValue:t.callSetDisabledState??Ud}]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[ZR]}),i})(),LY=(()=>{var e;class i{static withConfig(t){return{ngModule:i,providers:[{provide:T0,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Go,useValue:t.callSetDisabledState??Ud}]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[ZR]}),i})();function us(e){return new et(i=>{si(e()).subscribe(i)})}function Ys(e,i){const n=Ue(e)?e:()=>e,t=r=>r.error(n());return new et(i?r=>i.schedule(t,0,r):t)}const BY=["addListener","removeListener"],VY=["addEventListener","removeEventListener"],jY=["on","off"];function Br(e,i,n,t){if(Ue(n)&&(t=n,n=void 0),t)return Br(e,i,n).pipe(p0(t));const[r,s]=function $Y(e){return Ue(e.addEventListener)&&Ue(e.removeEventListener)}(e)?VY.map(o=>a=>e[o](i,a,n)):function zY(e){return Ue(e.addListener)&&Ue(e.removeListener)}(e)?BY.map(QR(e,i)):function HY(e){return Ue(e.on)&&Ue(e.off)}(e)?jY.map(QR(e,i)):[];if(!r&&W_(e))return Bt(o=>Br(o,i,n))(si(e));if(!r)throw new TypeError("Invalid event target");return new et(o=>{const a=(...l)=>o.next(1s(a)})}function QR(e,i){return n=>t=>e[n](i,t)}function Vr(...e){return function UY(){return Sa(1)}()(Jt(e,Pc(e)))}const Ks=new et(Ts);function F0(){return wt((e,i)=>{let n=null;e._refCount++;const t=ft(i,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const r=e._connection,s=n;n=null,r&&(!s||r===s)&&r.unsubscribe(),i.unsubscribe()});e.subscribe(t),t.closed||(n=e.connect())})}class Qm extends et{constructor(i,n){super(),this.source=i,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,YC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Qe;const n=this.getSubject();i.add(this.source.subscribe(ft(n,void 0,()=>{this._teardown(),n.complete()},t=>{this._teardown(),n.error(t)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Qe.EMPTY)}return i}refCount(){return F0()(this)}}const qY={connector:()=>new $};function JR(e,i=qY){const{connector:n}=i;return wt((t,r)=>{const s=n();si(e(function GY(e){return new et(i=>e.subscribe(i))}(s))).subscribe(r),r.add(t.subscribe(s))})}function ze(e){return e<=0?()=>Xn:wt((i,n)=>{let t=0;i.subscribe(ft(n,r=>{++t<=e&&(n.next(r),e<=t&&n.complete())}))})}function zt(e,i,n){const t=Ue(e)||i||n?{next:e,error:i,complete:n}:e;return t?wt((r,s)=>{var o;null===(o=t.subscribe)||void 0===o||o.call(t);let a=!0;r.subscribe(ft(s,l=>{var c;null===(c=t.next)||void 0===c||c.call(t,l),s.next(l)},()=>{var l;a=!1,null===(l=t.complete)||void 0===l||l.call(t),s.complete()},l=>{var c;a=!1,null===(c=t.error)||void 0===c||c.call(t,l),s.error(l)},()=>{var l,c;a&&(null===(l=t.unsubscribe)||void 0===l||l.call(t)),null===(c=t.finalize)||void 0===c||c.call(t)}))}):yr}class KY extends Qe{constructor(i,n){super()}schedule(i,n=0){return this}}const Jm={setInterval(e,i,...n){const{delegate:t}=Jm;return t?.setInterval?t.setInterval(e,i,...n):setInterval(e,i,...n)},clearInterval(e){const{delegate:i}=Jm;return(i?.clearInterval||clearInterval)(e)},delegate:void 0};class ep extends KY{constructor(i,n){super(i,n),this.scheduler=i,this.work=n,this.pending=!1}schedule(i,n=0){var t;if(this.closed)return this;this.state=i;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,n)),this.pending=!0,this.delay=n,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(s,this.id,n),this}requestAsyncId(i,n,t=0){return Jm.setInterval(i.flush.bind(i,this),t)}recycleAsyncId(i,n,t=0){if(null!=t&&this.delay===t&&!1===this.pending)return n;null!=n&&Jm.clearInterval(n)}execute(i,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const t=this._execute(i,n);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,n){let r,t=!1;try{this.work(i)}catch(s){t=!0,r=s||new Error("Scheduled action threw falsy error")}if(t)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:n}=this,{actions:t}=n;this.work=this.state=this.scheduler=null,this.pending=!1,un(t,this),null!=i&&(this.id=this.recycleAsyncId(n,i,null)),this.delay=null,super.unsubscribe()}}}const N0={now:()=>(N0.delegate||Date).now(),delegate:void 0};class Wd{constructor(i,n=Wd.now){this.schedulerActionCtor=i,this.now=n}schedule(i,n=0,t){return new this.schedulerActionCtor(this,i).schedule(t,n)}}Wd.now=N0.now;class tp extends Wd{constructor(i,n=Wd.now){super(i,n),this.actions=[],this._active=!1}flush(i){const{actions:n}=this;if(this._active)return void n.push(i);let t;this._active=!0;do{if(t=i.execute(i.state,i.delay))break}while(i=n.shift());if(this._active=!1,t){for(;i=n.shift();)i.unsubscribe();throw t}}}const Yd=new tp(ep),XY=Yd;function ip(e){return se(()=>e)}function eO(e,i){return i?n=>Vr(i.pipe(ze(1),function ZY(){return wt((e,i)=>{e.subscribe(ft(i,Ts))})}()),n.pipe(eO(e))):Bt((n,t)=>si(e(n,t)).pipe(ze(1),ip(n)))}function Kd(e=0,i,n=XY){let t=-1;return null!=i&&(lD(i)?n=i:t=i),new et(r=>{let s=function QY(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){r.closed||(r.next(o++),0<=t?this.schedule(void 0,t):r.complete())},s)})}const Xd="Service workers are disabled or not supported by this browser";class np{constructor(i){if(this.serviceWorker=i,i){const t=Br(i,"controllerchange").pipe(se(()=>i.controller)),s=Vr(us(()=>ee(i.controller)),t);this.worker=s.pipe($e(d=>!!d)),this.registration=this.worker.pipe(ei(()=>i.getRegistration()));const c=Br(i,"message").pipe(se(d=>d.data)).pipe($e(d=>d&&d.type)).pipe(function YY(e){return e?i=>JR(e)(i):i=>function WY(e,i){const n=Ue(e)?e:()=>e;return Ue(i)?JR(i,{connector:n}):t=>new Qm(t,n)}(new $)(i)}());c.connect(),this.events=c}else this.worker=this.events=this.registration=function eK(e){return us(()=>Ys(new Error(e)))}(Xd)}postMessage(i,n){return this.worker.pipe(ze(1),zt(t=>{t.postMessage({action:i,...n})})).toPromise().then(()=>{})}postMessageWithOperation(i,n,t){const r=this.waitForOperationCompleted(t),s=this.postMessage(i,n);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(i){let n;return n="string"==typeof i?t=>t.type===i:t=>i.includes(t.type),this.events.pipe($e(n))}nextEventOfType(i){return this.eventsOfType(i).pipe(ze(1))}waitForOperationCompleted(i){return this.eventsOfType("OPERATION_COMPLETED").pipe($e(n=>n.nonce===i),ze(1),se(n=>{if(void 0!==n.result)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let tO=(()=>{var e;class i{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,this.pushManager=null,this.subscriptionChanges=new $,!t.isEnabled)return this.messages=Ks,this.notificationClicks=Ks,void(this.subscription=Ks);this.messages=this.sw.eventsOfType("PUSH").pipe(se(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(se(s=>s.data)),this.pushManager=this.sw.registration.pipe(se(s=>s.pushManager));const r=this.pushManager.pipe(ei(s=>s.getSubscription()));this.subscription=Ft(r,this.subscriptionChanges)}requestSubscription(t){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Xd));const r={userVisibleOnly:!0};let s=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let a=0;aa.subscribe(r)),ze(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(ze(1),ei(r=>{if(null===r)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Xd))}decodeBase64(t){return atob(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(np))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),P0=(()=>{var e;class i{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,!t.isEnabled)return this.versionUpdates=Ks,this.available=Ks,this.activated=Ks,void(this.unrecoverable=Ks);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe($e(r=>"VERSION_READY"===r.type),se(r=>({type:"UPDATE_AVAILABLE",current:r.currentVersion,available:r.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xd));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xd));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(np))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const iO=new M("NGSW_REGISTER_SCRIPT");function tK(e,i,n,t){return()=>{if(!Om(t)||!("serviceWorker"in navigator)||!1===n.enabled)return;let r;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)r=n.registrationStrategy();else{const[o,...a]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(o){case"registerImmediately":r=ee(null);break;case"registerWithDelay":r=nO(+a[0]||0);break;case"registerWhenStable":r=a[0]?Ft(rO(e),nO(+a[0])):rO(e);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}e.get(ce).runOutsideAngular(()=>r.pipe(ze(1)).subscribe(()=>navigator.serviceWorker.register(i,{scope:n.scope}).catch(o=>console.error("Service worker registration failed with:",o))))}}function nO(e){return ee(null).pipe(function JY(e,i=Yd){const n=Kd(e,i);return eO(()=>n)}(e))}function rO(e){return e.get(Nr).isStable.pipe($e(n=>n))}function iK(e,i){return new np(Om(i)&&!1!==e.enabled?navigator.serviceWorker:void 0)}class L0{}function nK(e,i={}){return Of([tO,P0,{provide:iO,useValue:e},{provide:L0,useValue:i},{provide:np,useFactory:iK,deps:[L0,er]},{provide:mm,useFactory:tK,deps:[kt,iO,L0,er],multi:!0}])}let rK=(()=>{var e;class i{static register(t,r={}){return{ngModule:i,providers:[nK(t,r)]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[tO,P0]}),i})();const aK=new class oK extends tp{}(class sK extends ep{constructor(i,n){super(i,n),this.scheduler=i,this.work=n}schedule(i,n=0){return n>0?super.schedule(i,n):(this.delay=n,this.state=i,this.scheduler.flush(this),this)}execute(i,n){return n>0||this.closed?super.execute(i,n):this._execute(i,n)}requestAsyncId(i,n,t=0){return null!=t&&t>0||null==t&&this.delay>0?super.requestAsyncId(i,n,t):(i.flush(this),0)}});function sO(e,i){return wt(function cK(e,i,n,t,r){return(s,o)=>{let a=n,l=i,c=0;s.subscribe(ft(o,d=>{const u=c++;l=a?e(l,d,u):(a=!0,d),t&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}(e,i,arguments.length>=2,!0))}class fK extends Error{constructor(i,n){super(function mK(e,i){return`NG0${Math.abs(e)}${i?": "+i:""}`}(i,n)),this.code=i}}function uO(e,i){const n=!i?.manualCleanup;n&&!i?.injector&&function $f(e){if(!mD()&&!function nj(){return Ea}())throw new O(-203,!1)}();const t=n?i?.injector?.get(il)??G(il):null;let r;r=function zD(e,i){const n=new Pj(e,i?.equal??BD);return gb(n,n.signal.bind(n),{set:n.set.bind(n),update:n.update.bind(n),mutate:n.mutate.bind(n),asReadonly:n.asReadonly.bind(n)})}(i?.requireSync?{kind:0}:{kind:1,value:i?.initialValue});const s=e.subscribe({next:o=>r.set({kind:1,value:o}),error:o=>r.set({kind:2,error:o})});return t?.onDestroy(s.unsubscribe.bind(s)),VD(()=>{const o=r();switch(o.kind){case 1:return o.value;case 2:throw o.error;case 0:throw new fK(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}globalThis;const Zd={};function ci(e,i){if(Zd[e]=(Zd[e]||0)+1,"function"==typeof i)return H0(e,(...t)=>({...i(...t),type:e}));switch(i?i._as:"empty"){case"empty":return H0(e,()=>({type:e}));case"props":return H0(e,t=>({...t,type:e}));default:throw new Error("Unexpected config.")}}function H0(e,i){return Object.defineProperty(i,"type",{value:e,writable:!1})}const hO="@ngrx/store/init";let Wo=(()=>{var e;class i extends Et{constructor(){super({type:hO})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof t>"u")throw new TypeError("Actions must be objects");if(typeof t.type>"u")throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const CK=[Wo],U0=new M("@ngrx/store Internal Root Guard"),fO=new M("@ngrx/store Internal Initial State"),G0=new M("@ngrx/store Initial State"),mO=new M("@ngrx/store Reducer Factory"),pO=new M("@ngrx/store Internal Reducer Factory Provider"),gO=new M("@ngrx/store Initial Reducers"),q0=new M("@ngrx/store Internal Initial Reducers"),_O=new M("@ngrx/store Store Features"),bO=new M("@ngrx/store Internal Store Reducers"),W0=new M("@ngrx/store Internal Feature Reducers"),vO=new M("@ngrx/store Internal Feature Configs"),Y0=new M("@ngrx/store Internal Store Features"),yO=new M("@ngrx/store Internal Feature Reducers Token"),K0=new M("@ngrx/store Feature Reducers"),wO=new M("@ngrx/store User Provided Meta Reducers"),ap=new M("@ngrx/store Meta Reducers"),xO=new M("@ngrx/store Internal Resolved Meta Reducers"),kO=new M("@ngrx/store User Runtime Checks Config"),CO=new M("@ngrx/store Internal User Runtime Checks Config"),Qd=new M("@ngrx/store Internal Runtime Checks"),Jd=new M("@ngrx/store Check if Action types are unique");function Z0(e,i={}){const n=Object.keys(e),t={};for(let s=0;ss(r),n(i))}}function EO(e,i){return Array.isArray(i)&&i.length>0&&(e=SO.apply(null,[...i,e])),(n,t)=>{const r=e(n);return(s,o)=>r(s=void 0===s?t:s,o)}}new M("@ngrx/store Root Store Provider"),new M("@ngrx/store Feature State Provider");class lp extends et{}class MO extends Wo{}let eu=(()=>{var e;class i extends Et{get currentReducers(){return this.reducers}constructor(t,r,s,o){super(o(s,r)),this.dispatcher=t,this.initialState=r,this.reducers=s,this.reducerFactory=o}addFeature(t){this.addFeatures([t])}addFeatures(t){const r=t.reduce((s,{reducers:o,reducerFactory:a,metaReducers:l,initialState:c,key:d})=>{const u="function"==typeof o?function SK(e){const i=Array.isArray(e)&&e.length>0?SO(...e):n=>n;return(n,t)=>(n=i(n),(r,s)=>n(r=void 0===r?t:r,s))}(l)(o,c):EO(a,l)(o,c);return s[d]=u,s},{});this.addReducers(r)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(r=>r.key))}addReducer(t,r){this.addReducers({[t]:r})}addReducers(t){this.reducers={...this.reducers,...t},this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(r=>{this.reducers=function DK(e,i){return Object.keys(e).filter(n=>n!==i).reduce((n,t)=>Object.assign(n,{[t]:e[t]}),{})}(this.reducers,r)}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:t})}ngOnDestroy(){this.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(MO),x(G0),x(gO),x(mO))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const MK=[eu,{provide:lp,useExisting:eu},{provide:MO,useExisting:Wo}];let cp=(()=>{var e;class i extends ${ngOnDestroy(){this.complete()}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const TK=[cp];class TO extends et{}let IO=(()=>{var e;class i extends Et{constructor(t,r,s,o){super(o);const l=t.pipe(X_(aK)).pipe(function lK(...e){const i=K_(e);return wt((n,t)=>{const r=e.length,s=new Array(r);let o=e.map(()=>!1),a=!1;for(let l=0;l{s[l]=c,!a&&!o[l]&&(o[l]=!0,(a=o.every(yr))&&(o=null))},Ts));n.subscribe(ft(t,l=>{if(a){const c=[l,...s];t.next(i?i(...c):c)}}))})}(r)),d=l.pipe(sO(IK,{state:o}));this.stateSubscription=d.subscribe(({state:u,action:h})=>{this.next(u),s.next(h)}),this.state=uO(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return(e=i).INIT=hO,e.\u0275fac=function(t){return new(t||e)(x(Wo),x(lp),x(cp),x(G0))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function IK(e={state:void 0},[i,n]){const{state:t}=e;return{state:n(t,i),action:i}}const AK=[IO,{provide:TO,useExisting:IO}];let on=(()=>{var e;class i extends et{constructor(t,r,s){super(),this.actionsObserver=r,this.reducerManager=s,this.source=t,this.state=t.state}select(t,...r){return OK.call(null,t,...r)(this)}selectSignal(t,r){return VD(()=>t(this.state()),{equal:r?.equal||((s,o)=>s===o)})}lift(t){const r=new i(this,this.actionsObserver,this.reducerManager);return r.operator=t,r}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,r){this.reducerManager.addReducer(t,r)}removeReducer(t){this.reducerManager.removeReducer(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(TO),x(Wo),x(eu))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const RK=[on];function OK(e,i,...n){return function(r){let s;if("string"==typeof e){const o=[i,...n].filter(Boolean);s=r.pipe(function dK(...e){const i=e.length;if(0===i)throw new Error("list of properties cannot be empty.");return se(n=>{let t=n;for(let r=0;re(o,i)))}return s.pipe(xo())}}const Q0="https://ngrx.io/guide/store/configuration/runtime-checks";function AO(e){return void 0===e}function RO(e){return null===e}function OO(e){return Array.isArray(e)}function FO(e){return"object"==typeof e&&null!==e}function J0(e){return"function"==typeof e}function KK(e){return e instanceof M?G(e):e}function XK(e,i){return i.map((n,t)=>{if(e[t]instanceof M){const r=G(e[t]);return{key:n.key,reducerFactory:r.reducerFactory?r.reducerFactory:Z0,metaReducers:r.metaReducers?r.metaReducers:[],initialState:r.initialState}}return n})}function ZK(e){return e.map(i=>i instanceof M?G(i):i)}function iw(e){return"function"==typeof e?e():e}function QK(e,i){return e.concat(i)}function JK(){if(G(on,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function nw(e){Object.freeze(e);const i=J0(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&function VK(e,i){return Object.prototype.hasOwnProperty.call(e,i)}(e,n)&&(!i||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const t=e[n];(FO(t)||J0(t))&&!Object.isFrozen(t)&&nw(t)}}),e}function rw(e,i=[]){return(AO(e)||RO(e))&&0===i.length?{path:["root"],value:e}:Object.keys(e).reduce((t,r)=>{if(t)return t;const s=e[r];return function BK(e){return J0(e)&&e.hasOwnProperty("\u0275cmp")}(s)?t:!(AO(s)||RO(s)||function PK(e){return"number"==typeof e}(s)||function NK(e){return"boolean"==typeof e}(s)||function FK(e){return"string"==typeof e}(s)||OO(s))&&(function NO(e){if(!function LK(e){return FO(e)&&!OO(e)}(e))return!1;const i=Object.getPrototypeOf(e);return i===Object.prototype||null===i}(s)?rw(s,[...i,r]):{path:[...i,r],value:s})},!1)}function BO(e,i){if(!1===e)return;const n=e.path.join("."),t=new Error(`Detected unserializable ${i} at "${n}". ${Q0}#strict${i}serializability`);throw t.value=e.value,t.unserializablePath=n,t}function nX(e){return{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function rX({strictActionSerializability:e,strictStateSerializability:i}){return n=>e||i?function tX(e,i){return function(n,t){i.action(t)&&BO(rw(t),"action");const r=e(n,t);return i.state()&&BO(rw(r),"state"),r}}(n,{action:t=>e&&!sw(t),state:()=>i}):n}function sX({strictActionImmutability:e,strictStateImmutability:i}){return n=>e||i?function eX(e,i){return function(n,t){const r=i.action(t)?nw(t):t,s=e(n,r);return i.state()?nw(s):s}}(n,{action:t=>e&&!sw(t),state:()=>i}):n}function sw(e){return e.type.startsWith("@ngrx")}function oX({strictActionWithinNgZone:e}){return i=>e?function iX(e,i){return function(n,t){if(i.action(t)&&!ce.isInAngularZone())throw new Error(`Action '${t.type}' running outside NgZone. ${Q0}#strictactionwithinngzone`);return e(n,t)}}(i,{action:n=>e&&!sw(n)}):i}function aX(e){return[{provide:CO,useValue:e},{provide:kO,useFactory:lX,deps:[CO]},{provide:Qd,deps:[kO],useFactory:nX},{provide:ap,multi:!0,deps:[Qd],useFactory:sX},{provide:ap,multi:!0,deps:[Qd],useFactory:rX},{provide:ap,multi:!0,deps:[Qd],useFactory:oX}]}function VO(){return[{provide:Jd,multi:!0,deps:[Qd],useFactory:cX}]}function lX(e){return e}function cX(e){if(!e.strictActionTypeUniqueness)return;const i=Object.entries(Zd).filter(([,n])=>n>1).map(([n])=>n);if(i.length)throw new Error(`Action types are registered more than once, ${i.map(n=>`"${n}"`).join(", ")}. ${Q0}#strictactiontypeuniqueness`)}function jO(e={},i={}){return[{provide:U0,useFactory:JK},{provide:fO,useValue:i.initialState},{provide:G0,useFactory:iw,deps:[fO]},{provide:q0,useValue:e},{provide:bO,useExisting:e instanceof M?e:q0},{provide:gO,deps:[q0,[new Bb(bO)]],useFactory:KK},{provide:wO,useValue:i.metaReducers?i.metaReducers:[]},{provide:xO,deps:[ap,wO],useFactory:QK},{provide:pO,useValue:i.reducerFactory?i.reducerFactory:Z0},{provide:mO,deps:[pO,xO],useFactory:EO},CK,MK,TK,AK,RK,aX(i.runtimeChecks),VO()]}function zO(e,i,n={}){return[{provide:vO,multi:!0,useValue:e instanceof Object?{}:n},{provide:_O,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof M||!n.reducerFactory?Z0:n.reducerFactory,metaReducers:n instanceof M||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof M||!n.initialState?void 0:n.initialState}},{provide:Y0,deps:[vO,_O],useFactory:XK},{provide:W0,multi:!0,useValue:e instanceof Object?e.reducer:i},{provide:yO,multi:!0,useExisting:i instanceof M?i:W0},{provide:K0,multi:!0,deps:[W0,[new Bb(yO)]],useFactory:ZK},VO()]}let HO=(()=>{var e;class i{constructor(t,r,s,o,a,l){}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Wo),x(lp),x(cp),x(on),x(U0,8),x(Jd,8))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),mX=(()=>{var e;class i{constructor(t,r,s,o,a){this.features=t,this.featureReducers=r,this.reducerManager=s;const l=t.map((c,d)=>{const h=r.shift()[d];return{...c,reducers:h,initialState:iw(c.initialState)}});s.addFeatures(l)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Y0),x(K0),x(eu),x(HO),x(Jd,8))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),pX=(()=>{var e;class i{static forRoot(t,r){return{ngModule:HO,providers:[...jO(t,r)]}}static forFeature(t,r,s={}){return{ngModule:mX,providers:[...zO(t,r,s)]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function gi(...e){return{reducer:e.pop(),types:e.map(t=>t.type)}}function tu(e,...i){const n=new Map;for(const t of i)for(const r of t.types){const s=n.get(r);n.set(r,s?(a,l)=>t.reducer(s(a,l),l):t.reducer)}return function(t=e,r){const s=n.get(r.type);return s?s(t,r):t}}function iu(e){return(iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}function Se(e,i,n){return(i=function _X(e){var i=function gX(e,i){if("object"!==iu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,i||"default");if("object"!==iu(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===iu(i)?i:String(i)}(i))in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function Bn(e){return!!e&&(e instanceof et||Ue(e.lift)&&Ue(e.subscribe))}class bX extends ${constructor(i=1/0,n=1/0,t=N0){super(),this._bufferSize=i,this._windowTime=n,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,n)}next(i){const{isStopped:n,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;n||(t.push(i),!r&&t.push(s.now()+o)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(i),{_infiniteTimeWindow:t,_buffer:r}=this,s=r.slice();for(let o=0;onew bX(t,i,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class up{}let $O=(()=>{var e;class i extends up{getTranslation(t){return ee({})}}return e=i,Se(i,"\u0275fac",function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}()),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();class ow{}let UO=(()=>{var e;class i{handle(t){return t.key}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)}),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();function hp(e,i){if(e===i)return!0;if(null===e||null===i)return!1;if(e!=e&&i!=i)return!0;let r,s,o,n=typeof e;if(n==typeof i&&"object"==n){if(!Array.isArray(e)){if(Array.isArray(i))return!1;for(s in o=Object.create(null),e){if(!hp(e[s],i[s]))return!1;o[s]=!0}for(s in i)if(!(s in o)&&typeof i[s]<"u")return!1;return!0}if(!Array.isArray(i))return!1;if((r=e.length)==i.length){for(s=0;s{aw(i[t])?t in e?n[t]=GO(e[t],i[t]):Object.assign(n,{[t]:i[t]}):Object.assign(n,{[t]:i[t]})}),n}class fp{}let qO=(()=>{var e;class i extends fp{constructor(...t){super(...t),Se(this,"templateMatcher",/{{\s?([^{}\s]*)\s?}}/g)}interpolate(t,r){let s;return s="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,s}getValue(t,r){let s="string"==typeof r?r.split("."):[r];r="";do{r+=s.shift(),!Xs(t)||!Xs(t[r])||"object"!=typeof t[r]&&s.length?s.length?r+=".":t=void 0:(t=t[r],r="")}while(s.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(s,o)=>{let a=this.getValue(r,o);return Xs(a)?a:s}):t}}return e=i,Se(i,"\u0275fac",function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}()),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();class mp{}let WO=(()=>{var e;class i extends mp{compile(t,r){return t}compileTranslations(t,r){return t}}return e=i,Se(i,"\u0275fac",function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}()),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();class YO{constructor(){Se(this,"defaultLang",void 0),Se(this,"currentLang",this.defaultLang),Se(this,"translations",{}),Se(this,"langs",[]),Se(this,"onTranslationChange",new W),Se(this,"onLangChange",new W),Se(this,"onDefaultLangChange",new W)}}const lw=new M("USE_STORE"),cw=new M("USE_DEFAULT_LANG"),dw=new M("DEFAULT_LANGUAGE"),uw=new M("USE_EXTEND");let Yo=(()=>{var e;class i{get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}constructor(t,r,s,o,a,l=!0,c=!1,d=!1,u){Se(this,"store",void 0),Se(this,"currentLoader",void 0),Se(this,"compiler",void 0),Se(this,"parser",void 0),Se(this,"missingTranslationHandler",void 0),Se(this,"useDefaultLang",void 0),Se(this,"isolate",void 0),Se(this,"extend",void 0),Se(this,"loadingTranslations",void 0),Se(this,"pending",!1),Se(this,"_onTranslationChange",new W),Se(this,"_onLangChange",new W),Se(this,"_onDefaultLangChange",new W),Se(this,"_defaultLang",void 0),Se(this,"_currentLang",void 0),Se(this,"_langs",[]),Se(this,"_translations",{}),Se(this,"_translationRequests",{}),this.store=t,this.currentLoader=r,this.compiler=s,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=l,this.isolate=c,this.extend=d,u&&this.setDefaultLang(u)}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(ze(1)).subscribe(s=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return ee(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(ze(1)).subscribe(s=>{this.changeLang(t)}),r):(this.changeLang(t),ee(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(dp(1),ze(1));return this.loadingTranslations=r.pipe(se(s=>this.compiler.compileTranslations(s,t)),dp(1),ze(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[t]=this.extend&&this.translations[t]?{...s,...this.translations[t]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),r}setTranslation(t,r,s=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(s||this.extend)&&this.translations[t]?GO(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,s){let o;if(r instanceof Array){let a={},l=!1;for(let c of r)a[c]=this.getParsedResult(t,c,s),Bn(a[c])&&(l=!0);return l?jd(r.map(d=>Bn(a[d])?a[d]:ee(a[d]))).pipe(se(d=>{let u={};return d.forEach((h,f)=>{u[r[f]]=h}),u})):a}if(t&&(o=this.parser.interpolate(this.parser.getValue(t,r),s)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),s)),typeof o>"u"){let a={key:r,translateService:this};typeof s<"u"&&(a.interpolateParams=s),o=this.missingTranslationHandler.handle(a)}return typeof o<"u"?o:r}get(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe($s(s=>Bn(s=this.getParsedResult(s,t,r))?s:ee(s)));{let s=this.getParsedResult(this.translations[this.currentLang],t,r);return Bn(s)?s:ee(s)}}getStreamOnTranslationChange(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');return Vr(us(()=>this.get(t,r)),this.onTranslationChange.pipe(ei(s=>{const o=this.getParsedResult(s.translations,t,r);return"function"==typeof o.subscribe?o:ee(o)})))}stream(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');return Vr(us(()=>this.get(t,r)),this.onLangChange.pipe(ei(s=>{const o=this.getParsedResult(s.translations,t,r);return Bn(o)?o:ee(o)})))}instant(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],t,r);if(Bn(s)){if(t instanceof Array){let o={};return t.forEach((a,l)=>{o[t[l]]=t[l]}),o}return t}return s}set(t,r,s=this.currentLang){this.translations[s][t]=this.compiler.compile(r,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)(x(YO),x(up),x(mp),x(fp),x(ow),x(cw),x(lw),x(uw),x(dw))}),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})(),di=(()=>{var e;class i{constructor(t,r){Se(this,"translate",void 0),Se(this,"_ref",void 0),Se(this,"value",""),Se(this,"lastKey",null),Se(this,"lastParams",[]),Se(this,"onTranslationChange",void 0),Se(this,"onLangChange",void 0),Se(this,"onDefaultLangChange",void 0),this.translate=t,this._ref=r}updateValue(t,r,s){let o=a=>{this.value=void 0!==a?a:t,this.lastKey=t,this._ref.markForCheck()};if(s){let a=this.translate.getParsedResult(s,t,r);Bn(a.subscribe)?a.subscribe(o):o(a)}this.translate.get(t,r).subscribe(o)}transform(t,...r){if(!t||!t.length)return t;if(hp(t,this.lastKey)&&hp(r,this.lastParams))return this.value;let s;if(Xs(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(s=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,s,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,s,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)(p(Yo,16),p(st,16))}),Se(i,"\u0275pipe",Li({name:"translate",type:e,pure:!1})),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})(),KO=(()=>{var e;class i{static forRoot(t={}){return{ngModule:i,providers:[t.loader||{provide:up,useClass:$O},t.compiler||{provide:mp,useClass:WO},t.parser||{provide:fp,useClass:qO},t.missingTranslationHandler||{provide:ow,useClass:UO},YO,{provide:lw,useValue:t.isolate},{provide:cw,useValue:t.useDefaultLang},{provide:uw,useValue:t.extend},{provide:dw,useValue:t.defaultLanguage},Yo]}}static forChild(t={}){return{ngModule:i,providers:[t.loader||{provide:up,useClass:$O},t.compiler||{provide:mp,useClass:WO},t.parser||{provide:fp,useClass:qO},t.missingTranslationHandler||{provide:ow,useClass:UO},{provide:lw,useValue:t.isolate},{provide:cw,useValue:t.useDefaultLang},{provide:uw,useValue:t.extend},{provide:dw,useValue:t.defaultLanguage},Yo]}}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)}),Se(i,"\u0275mod",me({type:e})),Se(i,"\u0275inj",he({})),i})();function lr(e){return wt((i,n)=>{let s,t=null,r=!1;t=i.subscribe(ft(n,void 0,void 0,o=>{s=si(e(o,lr(e)(i))),t?(t.unsubscribe(),t=null,s.subscribe(n)):r=!0})),r&&(t.unsubscribe(),t=null,s.subscribe(n))})}var XO={},ZO={};function yX(e){for(var i=[],n=0,t=0,r=0;r>>=1,i.push(a?0===t?-2147483648:-t:t),t=n=0}}return i}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,i){XO[e]=i,ZO[i]=e});const pp="TOKEN_LOGGER_CONFIG";class wX{constructor(i){this.config=this._clone(i)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(i){this.config=this._clone(i)}partialUpdateConfig(i){i&&Object.keys(i).forEach(n=>{this.config[n]=i[n]})}getConfig(){return this._clone(this.config)}_clone(i){const n={level:null};return Object.keys(i).forEach(t=>{n[t]=i[t]}),n}}const nu="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY";class xX{provideConfigEngine(i){return new wX(i)}}const ru="TOKEN_LOGGER_MAPPER_SERVICE";let kX=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,t){const r=this.getStackLine(n);if(!r)return ee({fileName:"",lineNumber:0,columnNumber:0});const s=this.getLocalPosition(r);if(!n.enableSourceMaps)return ee(s);const o=this.getSourceMapLocation(r);return this.getSourceMap(o,s)}getStackLine(n){const t=new Error;try{throw t}catch{try{let s=4;return t.stack.split("\n")[0].includes(".js:")||(s+=1),t.stack.split("\n")[s+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){const t=n.lastIndexOf("/");let r=n.indexOf(")");r<0&&(r=void 0);const o=n.substring(t+1,r).split(":");return 3===o.length?{fileName:o[0],lineNumber:+o[1],columnNumber:+o[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let t=n.indexOf("(");t<0&&(t=n.lastIndexOf("@"),t<0&&(t=n.lastIndexOf(" ")));let r=n.indexOf(")");return r<0&&(r=void 0),n.substring(t+1,r)}getSourceMapLocation(n){const t=this.getTranspileLocation(n),r=t.substring(0,t.lastIndexOf(":"));return r.substring(0,r.lastIndexOf(":"))+".map"}getMapping(n,t){let r=0,s=0,o=0;const a=n.mappings.split(";");for(let l=0;l=4&&(c+=h[0],r+=h[1],s+=h[2],o+=h[3]),l===t.lineNumber){if(c===t.columnNumber)return{fileName:n.sources[r],lineNumber:s,columnNumber:o};if(u+1===d.length)return{fileName:n.sources[r],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,t){const r=new zo("GET",n),s=`${t.fileName}:${t.lineNumber}:${t.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(r).pipe($e(a=>a instanceof Us),se(a=>a.body),function vX(e=1/0){let i;i=e&&"object"==typeof e?e:{count:e};const{count:n=1/0,delay:t,resetOnSuccess:r=!1}=i;return n<=0?yr:wt((s,o)=>{let l,a=0;const c=()=>{let d=!1;l=s.subscribe(ft(o,u=>{r&&(a=0),o.next(u)},void 0,u=>{if(a++{l?(l.unsubscribe(),l=null,c()):d=!0};if(null!=t){const f="number"==typeof t?Kd(t):si(t(u,a)),_=ft(o,()=>{_.unsubscribe(),h()},()=>{o.complete()});f.subscribe(_)}else h()}else o.error(u)})),d&&(l.unsubscribe(),l=null,c())};c()})}(3),dp(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,ee(null))));const o=this.sourceMapCache.get(n).pipe(se(a=>a?this.getMapping(a,t):t),lr(()=>ee(t)),dp(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(n){return new(n||e)(x(El,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const su="TOKEN_LOGGER_METADATA_SERVICE";let CX=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){const t=()=>(new Date).toISOString();return n.timestampFormat?this.datePipe?this.datePipe.transform(new Date,n.timestampFormat):(console.error("NGXLogger : Can't use timeStampFormat because DatePipe is not provided. You need to provide DatePipe"),t()):t()}getMetadata(n,t,r,s){const o={level:n,additional:s};return o.message=r&&"function"==typeof r?r():r,o.timestamp=this.computeTimestamp(t),o}}return e.\u0275fac=function(n){return new(n||e)(x(Rm,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const ou="TOKEN_LOGGER_RULES_SERVICE";let DX=(()=>{class e{shouldCallWriter(n,t,r,s){return!t.disableConsoleLogging&&n>=t.level}shouldCallServer(n,t,r,s){return!!t.serverLoggingUrl&&n>=t.serverLogLevel}shouldCallMonitor(n,t,r,s){return this.shouldCallWriter(n,t,r,s)||this.shouldCallServer(n,t,r,s)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const au="TOKEN_LOGGER_SERVER_SERVICE";let SX=(()=>{class e{constructor(n,t){this.httpBackend=n,this.ngZone=t,this.serverCallsQueue=[],this.flushingQueue=new Et(!1)}ngOnDestroy(){this.flushingQueue&&(this.flushingQueue.complete(),this.flushingQueue=null),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null)}secureErrorObject(n){return n?.stack}secureAdditionalParameters(n){return null==n?null:n.map((t,r)=>{try{return t instanceof Error?this.secureErrorObject(t):("object"==typeof t&&JSON.stringify(t),t)}catch{return`The additional[${r}] value could not be parsed using JSON.stringify().`}})}secureMessage(n){try{if(n instanceof Error)return this.secureErrorObject(n);"string"!=typeof n&&(n=JSON.stringify(n,null,2))}catch{n='The provided "message" value could not be parsed with JSON.stringify().'}return n}alterHttpRequest(n){return n}logOnServer(n,t,r){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),ee(null);let s=new zo("POST",n,t,r||{}),o=ee(s);const a=this.alterHttpRequest(s);return Bn(a)?o=a:a?o=ee(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe($s(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),$e(l=>l instanceof Us),se(l=>l.body))}customiseRequestBody(n){return n}flushQueue(n){this.flushingQueue.next(!0),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null),this.serverCallsQueue&&this.serverCallsQueue.length>0&&this.sendToServerAction(this.serverCallsQueue,n),this.serverCallsQueue=[],this.flushingQueue.next(!1)}sendToServerAction(n,t){let r;const s=l=>{const c={...l};return c.additional=this.secureAdditionalParameters(c.additional),c.message=this.secureMessage(c.message),c};Array.isArray(n)?(r=[],n.forEach(l=>{r.push(s(l))})):r=s(n),r=this.customiseRequestBody(r);const o=t.customHttpHeaders||new sr;o.has("Content-Type")||o.set("Content-Type","application/json");const a=()=>{this.logOnServer(t.serverLoggingUrl,r,{headers:o,params:t.customHttpParams||new ds,responseType:t.httpResponseType||"json",withCredentials:t.withCredentials||!1}).pipe(lr(l=>(console.error("NGXLogger: Failed to log on server",l),Ys(l)))).subscribe()};if(!0===t.serverCallsOutsideNgZone){if(!this.ngZone)return void console.error("NGXLogger: NgZone is not provided and serverCallsOutsideNgZone is set to true");this.ngZone.runOutsideAngular(a)}else a()}sendToServer(n,t){if((!t.serverCallsBatchSize||t.serverCallsBatchSize<=0)&&(!t.serverCallsTimer||t.serverCallsTimer<=0))return void this.sendToServerAction(n,t);const r=()=>{this.serverCallsQueue.push({...n}),t.serverCallsBatchSize&&this.serverCallsQueue.length>t.serverCallsBatchSize&&this.flushQueue(t),t.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Kd(t.serverCallsTimer).subscribe(s=>{this.flushQueue(t)}))};!0===this.flushingQueue.value?this.flushingQueue.pipe($e(s=>!1===s),ze(1)).subscribe(s=>{r()}):r()}}return e.\u0275fac=function(n){return new(n||e)(x(El,8),x(ce,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const lu="TOKEN_LOGGER_WRITER_SERVICE";var Ht=function(e){return e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF",e}(Ht||{});const JO=["purple","teal","gray","gray","red","red","red"];let EX=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=Om(n)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}getTimestampToWrite(n,t){return n.timestamp}getLevelToWrite(n,t){return Ht[n.level]}getFileDetailsToWrite(n,t){return!0===t.disableFileDetails?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,t){return t.context?`{${t.context}}`:""}prepareMetaString(n,t){let r="";return this.prepareMetaStringFuncs.forEach(s=>{const o=s(n,t);o&&(r=r+" "+o)}),r.trim()}getColor(n,t){if(n.level!==Ht.OFF)return(t.colorScheme??JO)[n.level]}logIE(n,t,r){const s=n.additional||[];switch(n.level){case Ht.WARN:console.warn(`${r} `,n.message,...s);break;case Ht.ERROR:case Ht.FATAL:console.error(`${r} `,n.message,...s);break;case Ht.INFO:console.info(`${r} `,n.message,...s);break;default:console.log(`${r} `,n.message,...s)}}logModern(n,t,r){const s=this.getColor(n,t),o=n.additional||[];switch(n.level){case Ht.WARN:console.warn(`%c${r}`,`color:${s}`,n.message,...o);break;case Ht.ERROR:case Ht.FATAL:console.error(`%c${r}`,`color:${s}`,n.message,...o);break;case Ht.INFO:console.info(`%c${r}`,`color:${s}`,n.message,...o);break;case Ht.DEBUG:console.debug(`%c${r}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${r}`,`color:${s}`,n.message,...o)}}writeMessage(n,t){const r=this.prepareMetaString(n,t);this.logFunc(n,t,r)}}return e.\u0275fac=function(n){return new(n||e)(x(er))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),hs=(()=>{class e{constructor(n,t,r,s,o,a,l){this.metadataService=r,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l,this.configEngine=t.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...t){this._log(Ht.TRACE,n,t)}debug(n,...t){this._log(Ht.DEBUG,n,t)}info(n,...t){this._log(Ht.INFO,n,t)}log(n,...t){this._log(Ht.LOG,n,t)}warn(n,...t){this._log(Ht.WARN,n,t)}error(n,...t){this._log(Ht.ERROR,n,t)}fatal(n,...t){this._log(Ht.FATAL,n,t)}setCustomHttpHeaders(n){const t=this.getConfigSnapshot();t.customHttpHeaders=n,this.updateConfig(t)}setCustomParams(n){const t=this.getConfigSnapshot();t.customHttpParams=n,this.updateConfig(t)}setWithCredentialsOptionValue(n){const t=this.getConfigSnapshot();t.withCredentials=n,this.updateConfig(t)}registerMonitor(n){this._loggerMonitor=n}updateConfig(n){this.configEngine.updateConfig(n)}partialUpdateConfig(n){this.configEngine.partialUpdateConfig(n)}getConfigSnapshot(){return this.configEngine.getConfig()}flushServerQueue(){this.serverService.flushQueue(this.getConfigSnapshot())}_log(n,t,r=[]){const s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,t,r),a=this.ruleService.shouldCallServer(n,s,t,r),l=this.ruleService.shouldCallMonitor(n,s,t,r);if(!o&&!a&&!l)return;const c=this.metadataService.getMetadata(n,s,t,r);this.mapperService.getLogPosition(s,c).pipe(ze(1)).subscribe(d=>{d&&(c.fileName=d.fileName,c.lineNumber=d.lineNumber,c.columnNumber=d.columnNumber),l&&this._loggerMonitor&&this._loggerMonitor.onLog(c,s),o&&this.writerService.writeMessage(c,s),a&&this.serverService.sendToServer(c,s)})}}return e.\u0275fac=function(n){return new(n||e)(x(pp),x(nu),x(su),x(ou),x(ru),x(lu),x(au))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),MX=(()=>{class e{constructor(n,t,r,s,o,a,l){this.logger=n,this.configEngineFactory=t,this.metadataService=r,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l}create(n,t,r,s){return this.getNewInstance({config:n,serverService:t,logMonitor:r,mapperService:s})}getNewInstance(n){const t=new hs(n?.config??this.logger.getConfigSnapshot(),n?.configEngineFactory??this.configEngineFactory,n?.metadataService??this.metadataService,n?.ruleService??this.ruleService,n?.mapperService??this.mapperService,n?.writerService??this.writerService,n?.serverService??this.serverService);return n?.partialConfig&&t.partialUpdateConfig(n.partialConfig),n?.logMonitor&&t.registerMonitor(n.logMonitor),t}}return e.\u0275fac=function(n){return new(n||e)(x(hs),x(nu),x(su),x(ou),x(ru),x(lu),x(au))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TX=(()=>{class e{static forRoot(n,t){if(t||(t={}),t.configProvider){if(t.configProvider.provide!==pp)throw new Error(`Wrong injection token for configProvider, it should be ${pp} and you used ${t.configProvider.provide}`)}else t.configProvider={provide:pp,useValue:n||{}};if(t.configEngineFactoryProvider){if(t.configEngineFactoryProvider.provide!==nu)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${nu}' and you used '${t.configEngineFactoryProvider.provide}'`)}else t.configEngineFactoryProvider={provide:nu,useClass:xX};if(t.metadataProvider){if(t.metadataProvider.provide!==su)throw new Error(`Wrong injection token for metadataProvider, it should be '${su}' and you used '${t.metadataProvider.provide}'`)}else t.metadataProvider={provide:su,useClass:CX};if(t.ruleProvider){if(t.ruleProvider.provide!==ou)throw new Error(`Wrong injection token for ruleProvider, it should be '${ou}' and you used '${t.ruleProvider.provide}'`)}else t.ruleProvider={provide:ou,useClass:DX};if(t.mapperProvider){if(t.mapperProvider.provide!==ru)throw new Error(`Wrong injection token for mapperProvider, it should be '${ru}' and you used '${t.mapperProvider.provide}'`)}else t.mapperProvider={provide:ru,useClass:kX};if(t.writerProvider){if(t.writerProvider.provide!==lu)throw new Error(`Wrong injection token for writerProvider, it should be '${lu}' and you used '${t.writerProvider.provide}'`)}else t.writerProvider={provide:lu,useClass:EX};if(t.serverProvider){if(t.serverProvider.provide!==au)throw new Error(`Wrong injection token for serverProvider, it should be '${au}' and you used '${t.writerProvider.provide}'`)}else t.serverProvider={provide:au,useClass:SX};return{ngModule:e,providers:[hs,t.configProvider,t.configEngineFactoryProvider,t.metadataProvider,t.ruleProvider,t.mapperProvider,t.writerProvider,t.serverProvider,MX]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[[Ln]]}),e})();function Ko(...e){const i=Pc(e),n=K_(e),{args:t,keys:r}=KA(e);if(0===t.length)return Jt([],i);const s=new et(function IX(e,i,n=yr){return t=>{eF(i,()=>{const{length:r}=e,s=new Array(r);let o=r,a=r;for(let l=0;l{const c=Jt(e[l],i);let d=!1;c.subscribe(ft(t,u=>{s[l]=u,d||(d=!0,a--),a||t.next(n(s.slice()))},()=>{--o||t.complete()}))},t)},t)}}(t,i,r?o=>XA(r,o):yr));return n?s.pipe(p0(n)):s}function eF(e,i,n){e?Zr(n,e,i):i()}const cu=vr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Di(...e){const i=Pc(e);return wt((n,t)=>{(i?Vr(e,n,i):Vr(e,n)).subscribe(t)})}function gp(e){return wt((i,n)=>{let t=!1;i.subscribe(ft(n,r=>{t=!0,n.next(r)},()=>{t||n.next(e),n.complete()}))})}function tF(e=AX){return wt((i,n)=>{let t=!1;i.subscribe(ft(n,r=>{t=!0,n.next(r)},()=>t?n.complete():n.error(e())))})}function AX(){return new cu}function Zs(e,i){const n=arguments.length>=2;return t=>t.pipe(e?$e((r,s)=>e(r,s,t)):yr,ze(1),n?gp(i):tF(()=>new cu))}function hw(e){return e<=0?()=>Xn:wt((i,n)=>{let t=[];i.subscribe(ft(n,r=>{t.push(r),e{for(const r of t)n.next(r);n.complete()},void 0,()=>{t=null}))})}const Ge="primary",du=Symbol("RouteTitle");class OX{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const n=this.params[i];return Array.isArray(n)?n[0]:n}return null}getAll(i){if(this.has(i)){const n=this.params[i];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Nl(e){return new OX(e)}function FX(e,i,n){const t=n.path.split("/");if(t.length>e.length||"full"===n.pathMatch&&(i.hasChildren()||t.lengtht[s]===r)}return e===i}function nF(e){return e.length>0?e[e.length-1]:null}function Qs(e){return Bn(e)?e:yd(e)?Jt(Promise.resolve(e)):ee(e)}const PX={exact:function oF(e,i,n){if(!Xo(e.segments,i.segments)||!_p(e.segments,i.segments,n)||e.numberOfChildren!==i.numberOfChildren)return!1;for(const t in i.children)if(!e.children[t]||!oF(e.children[t],i.children[t],n))return!1;return!0},subset:aF},rF={exact:function LX(e,i){return zr(e,i)},subset:function BX(e,i){return Object.keys(i).length<=Object.keys(e).length&&Object.keys(i).every(n=>iF(e[n],i[n]))},ignored:()=>!0};function sF(e,i,n){return PX[n.paths](e.root,i.root,n.matrixParams)&&rF[n.queryParams](e.queryParams,i.queryParams)&&!("exact"===n.fragment&&e.fragment!==i.fragment)}function aF(e,i,n){return lF(e,i,i.segments,n)}function lF(e,i,n,t){if(e.segments.length>n.length){const r=e.segments.slice(0,n.length);return!(!Xo(r,n)||i.hasChildren()||!_p(r,n,t))}if(e.segments.length===n.length){if(!Xo(e.segments,n)||!_p(e.segments,n,t))return!1;for(const r in i.children)if(!e.children[r]||!aF(e.children[r],i.children[r],t))return!1;return!0}{const r=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Xo(e.segments,r)&&_p(e.segments,r,t)&&e.children[Ge])&&lF(e.children[Ge],i,s,t)}}function _p(e,i,n){return i.every((t,r)=>rF[n](e[r].parameters,t.parameters))}class Pl{constructor(i=new pt([],{}),n={},t=null){this.root=i,this.queryParams=n,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nl(this.queryParams)),this._queryParamMap}toString(){return zX.serialize(this)}}class pt{constructor(i,n){this.segments=i,this.children=n,this.parent=null,Object.values(n).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bp(this)}}class uu{constructor(i,n){this.path=i,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Nl(this.parameters)),this._parameterMap}toString(){return uF(this)}}function Xo(e,i){return e.length===i.length&&e.every((n,t)=>n.path===i[t].path)}let hu=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return new fw},providedIn:"root"}),i})();class fw{parse(i){const n=new QX(i);return new Pl(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(i){const n=`/${fu(i.root,!0)}`,t=function UX(e){const i=Object.keys(e).map(n=>{const t=e[n];return Array.isArray(t)?t.map(r=>`${vp(n)}=${vp(r)}`).join("&"):`${vp(n)}=${vp(t)}`}).filter(n=>!!n);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${n}${t}${"string"==typeof i.fragment?`#${function HX(e){return encodeURI(e)}(i.fragment)}`:""}`}}const zX=new fw;function bp(e){return e.segments.map(i=>uF(i)).join("/")}function fu(e,i){if(!e.hasChildren())return bp(e);if(i){const n=e.children[Ge]?fu(e.children[Ge],!1):"",t=[];return Object.entries(e.children).forEach(([r,s])=>{r!==Ge&&t.push(`${r}:${fu(s,!1)}`)}),t.length>0?`${n}(${t.join("//")})`:n}{const n=function jX(e,i){let n=[];return Object.entries(e.children).forEach(([t,r])=>{t===Ge&&(n=n.concat(i(r,t)))}),Object.entries(e.children).forEach(([t,r])=>{t!==Ge&&(n=n.concat(i(r,t)))}),n}(e,(t,r)=>r===Ge?[fu(e.children[Ge],!1)]:[`${r}:${fu(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ge]?`${bp(e)}/${n[0]}`:`${bp(e)}/(${n.join("//")})`}}function cF(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vp(e){return cF(e).replace(/%3B/gi,";")}function mw(e){return cF(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yp(e){return decodeURIComponent(e)}function dF(e){return yp(e.replace(/\+/g,"%20"))}function uF(e){return`${mw(e.path)}${function $X(e){return Object.keys(e).map(i=>`;${mw(i)}=${mw(e[i])}`).join("")}(e.parameters)}`}const GX=/^[^\/()?;#]+/;function pw(e){const i=e.match(GX);return i?i[0]:""}const qX=/^[^\/()?;=#]+/,YX=/^[^=?&#]+/,XX=/^[^&#]+/;class QX{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pt([],{}):new pt([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(i.length>0||Object.keys(n).length>0)&&(t[Ge]=new pt(i,n)),t}parseSegment(){const i=pw(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new O(4009,!1);return this.capture(i),new uu(yp(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const n=function WX(e){const i=e.match(qX);return i?i[0]:""}(this.remaining);if(!n)return;this.capture(n);let t="";if(this.consumeOptional("=")){const r=pw(this.remaining);r&&(t=r,this.capture(t))}i[yp(n)]=yp(t)}parseQueryParam(i){const n=function KX(e){const i=e.match(YX);return i?i[0]:""}(this.remaining);if(!n)return;this.capture(n);let t="";if(this.consumeOptional("=")){const o=function ZX(e){const i=e.match(XX);return i?i[0]:""}(this.remaining);o&&(t=o,this.capture(t))}const r=dF(n),s=dF(t);if(i.hasOwnProperty(r)){let o=i[r];Array.isArray(o)||(o=[o],i[r]=o),o.push(s)}else i[r]=s}parseParens(i){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=pw(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new O(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ge);const o=this.parseChildren();n[s]=1===Object.keys(o).length?o[Ge]:new pt([],o),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new O(4011,!1)}}function hF(e){return e.segments.length>0?new pt([],{[Ge]:e}):e}function fF(e){const i={};for(const t of Object.keys(e.children)){const s=fF(e.children[t]);if(t===Ge&&0===s.segments.length&&s.hasChildren())for(const[o,a]of Object.entries(s.children))i[o]=a;else(s.segments.length>0||s.hasChildren())&&(i[t]=s)}return function JX(e){if(1===e.numberOfChildren&&e.children[Ge]){const i=e.children[Ge];return new pt(e.segments.concat(i.segments),i.children)}return e}(new pt(e.segments,i))}function Zo(e){return e instanceof Pl}function mF(e){let i;const r=hF(function n(s){const o={};for(const l of s.children){const c=n(l);o[l.outlet]=c}const a=new pt(s.url,o);return s===e&&(i=a),a}(e.root));return i??r}function pF(e,i,n,t){let r=e;for(;r.parent;)r=r.parent;if(0===i.length)return gw(r,r,r,n,t);const s=function tZ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new _F(!0,0,e);let i=0,n=!1;const t=e.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?i++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new _F(n,i,t)}(i);if(s.toRoot())return gw(r,r,new pt([],{}),n,t);const o=function iZ(e,i,n){if(e.isAbsolute)return new xp(i,!0,0);if(!n)return new xp(i,!1,NaN);if(null===n.parent)return new xp(n,!0,0);const t=wp(e.commands[0])?0:1;return function nZ(e,i,n){let t=e,r=i,s=n;for(;s>r;){if(s-=r,t=t.parent,!t)throw new O(4005,!1);r=t.segments.length}return new xp(t,!1,r-s)}(n,n.segments.length-1+t,e.numberOfDoubleDots)}(s,r,e),a=o.processChildren?pu(o.segmentGroup,o.index,s.commands):bF(o.segmentGroup,o.index,s.commands);return gw(r,o.segmentGroup,a,n,t)}function wp(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function mu(e){return"object"==typeof e&&null!=e&&e.outlets}function gw(e,i,n,t,r){let o,s={};t&&Object.entries(t).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),o=e===i?n:gF(e,i,n);const a=hF(fF(o));return new Pl(a,s,r)}function gF(e,i,n){const t={};return Object.entries(e.children).forEach(([r,s])=>{t[r]=s===i?n:gF(s,i,n)}),new pt(e.segments,t)}class _F{constructor(i,n,t){if(this.isAbsolute=i,this.numberOfDoubleDots=n,this.commands=t,i&&t.length>0&&wp(t[0]))throw new O(4003,!1);const r=t.find(mu);if(r&&r!==nF(t))throw new O(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xp{constructor(i,n,t){this.segmentGroup=i,this.processChildren=n,this.index=t}}function bF(e,i,n){if(e||(e=new pt([],{})),0===e.segments.length&&e.hasChildren())return pu(e,i,n);const t=function sZ(e,i,n){let t=0,r=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const o=e.segments[r],a=n[t];if(mu(a))break;const l=`${a}`,c=t0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!yF(l,c,o))return s;t+=2}else{if(!yF(l,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(e,i,n),r=n.slice(t.commandIndex);if(t.match&&t.pathIndexs!==Ge)&&e.children[Ge]&&1===e.numberOfChildren&&0===e.children[Ge].segments.length){const s=pu(e.children[Ge],i,n);return new pt(e.segments,s.children)}return Object.entries(t).forEach(([s,o])=>{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=bF(e.children[s],i,o))}),Object.entries(e.children).forEach(([s,o])=>{void 0===t[s]&&(r[s]=o)}),new pt(e.segments,r)}}function _w(e,i,n){const t=e.segments.slice(0,i);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(i[n]=_w(new pt([],{}),0,t))}),i}function vF(e){const i={};return Object.entries(e).forEach(([n,t])=>i[n]=`${t}`),i}function yF(e,i,n){return e==n.path&&zr(i,n.parameters)}const gu="imperative";class Hr{constructor(i,n){this.id=i,this.url=n}}class bw extends Hr{constructor(i,n,t="imperative",r=null){super(i,n),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qo extends Hr{constructor(i,n,t){super(i,n),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class kp extends Hr{constructor(i,n,t,r){super(i,n),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _u extends Hr{constructor(i,n,t,r){super(i,n),this.reason=t,this.code=r,this.type=16}}class vw extends Hr{constructor(i,n,t,r){super(i,n),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cZ extends Hr{constructor(i,n,t,r,s){super(i,n),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hZ{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fZ{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mZ{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pZ{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gZ{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _Z{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wF{constructor(i,n,t){this.routerEvent=i,this.position=n,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bZ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new bu,this.attachRef=null}}let bu=(()=>{var e;class i{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new bZ,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();class xF{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const n=this.pathFromRoot(i);return n.length>1?n[n.length-2]:null}children(i){const n=yw(i,this._root);return n?n.children.map(t=>t.value):[]}firstChild(i){const n=yw(i,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(i){const n=ww(i,this._root);return n.length<2?[]:n[n.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return ww(i,this._root).map(n=>n.value)}}function yw(e,i){if(e===i.value)return i;for(const n of i.children){const t=yw(e,n);if(t)return t}return null}function ww(e,i){if(e===i.value)return[i];for(const n of i.children){const t=ww(e,n);if(t.length)return t.unshift(i),t}return[]}class fs{constructor(i,n){this.value=i,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ll(e){const i={};return e&&e.children.forEach(n=>i[n.value.outlet]=n),i}class kF extends xF{constructor(i,n){super(i),this.snapshot=n,xw(this,i)}toString(){return this.snapshot.toString()}}function CF(e,i){const n=function vZ(e,i){const o=new Cp([],{},{},"",{},Ge,i,null,{});return new SF("",new fs(o,[]))}(0,i),t=new Et([new uu("",{})]),r=new Et({}),s=new Et({}),o=new Et({}),a=new Et(""),l=new Js(t,r,o,a,s,Ge,i,n.root);return l.snapshot=n.root,new kF(new fs(l,[]),n)}class Js{constructor(i,n,t,r,s,o,a,l){this.urlSubject=i,this.paramsSubject=n,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[du]))??ee(void 0),this.url=i,this.params=n,this.queryParams=t,this.fragment=r,this.data=s}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(se(i=>Nl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(se(i=>Nl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function DF(e,i="emptyOnly"){const n=e.pathFromRoot;let t=0;if("always"!==i)for(t=n.length-1;t>=1;){const r=n[t],s=n[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(s.component)break;t--}}return function yZ(e){return e.reduce((i,n)=>({params:{...i.params,...n.params},data:{...i.data,...n.data},resolve:{...n.data,...i.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(t))}class Cp{get title(){return this.data?.[du]}constructor(i,n,t,r,s,o,a,l,c){this.url=i,this.params=n,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Nl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class SF extends xF{constructor(i,n){super(n),this.url=i,xw(this,n)}toString(){return EF(this._root)}}function xw(e,i){i.value._routerState=e,i.children.forEach(n=>xw(e,n))}function EF(e){const i=e.children.length>0?` { ${e.children.map(EF).join(", ")} } `:"";return`${e.value}${i}`}function kw(e){if(e.snapshot){const i=e.snapshot,n=e._futureSnapshot;e.snapshot=n,zr(i.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),i.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),zr(i.params,n.params)||e.paramsSubject.next(n.params),function NX(e,i){if(e.length!==i.length)return!1;for(let n=0;nzr(n.parameters,i[t].parameters))}(e.url,i.url);return n&&!(!e.parent!=!i.parent)&&(!e.parent||Cw(e.parent,i.parent))}let Dw=(()=>{var e;class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ge,this.activateEvents=new W,this.deactivateEvents=new W,this.attachEvents=new W,this.detachEvents=new W,this.parentContexts=G(bu),this.location=G(Vt),this.changeDetector=G(st),this.environmentInjector=G(bn),this.inputBinder=G(Dp,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);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 O(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new O(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new O(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,r){if(this.isActivated)throw new O(4013,!1);this._activatedRoute=t;const s=this.location,a=t.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new wZ(t,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[bt]}),i})();class wZ{constructor(i,n,t){this.route=i,this.childContexts=n,this.parent=t}get(i,n){return i===Js?this.route:i===bu?this.childContexts:this.parent.get(i,n)}}const Dp=new M("");let MF=(()=>{var e;class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,s=Ko([r.queryParams,r.params,r.data]).pipe(ei(([o,a,l],c)=>(l={...o,...a,...l},0===c?ee(l):Promise.resolve(l)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const a=function Nq(e){const i=nt(e);if(!i)return null;const n=new pd(i);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(r.component);if(a)for(const{templateName:l}of a.inputs)t.activatedComponentRef.setInput(l,o[l]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,s)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function vu(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const t=n.value;t._futureSnapshot=i.value;const r=function kZ(e,i,n){return i.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return vu(e,t,r);return vu(e,t)})}(e,i,n);return new fs(t,r)}{if(e.shouldAttach(i.value)){const s=e.retrieve(i.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=i.value,o.children=i.children.map(a=>vu(e,a)),o}}const t=function CZ(e){return new Js(new Et(e.url),new Et(e.params),new Et(e.queryParams),new Et(e.fragment),new Et(e.data),e.outlet,e.component,e)}(i.value),r=i.children.map(s=>vu(e,s));return new fs(t,r)}}const Sw="ngNavigationCancelingError";function TF(e,i){const{redirectTo:n,navigationBehaviorOptions:t}=Zo(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=IF(!1,0,i);return r.url=n,r.navigationBehaviorOptions=t,r}function IF(e,i,n){const t=new Error("NavigationCancelingError: "+(e||""));return t[Sw]=!0,t.cancellationCode=i,n&&(t.url=n),t}function AF(e){return RF(e)&&Zo(e.url)}function RF(e){return e&&e[Sw]}let OF=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],standalone:!0,features:[hT],decls:1,vars:0,template:function(t,r){1&t&&be(0,"router-outlet")},dependencies:[Dw],encapsulation:2}),i})();function Ew(e){const i=e.children&&e.children.map(Ew),n=i?{...e,children:i}:{...e};return!n.component&&!n.loadComponent&&(i||n.loadChildren)&&n.outlet&&n.outlet!==Ge&&(n.component=OF),n}function cr(e){return e.outlet||Ge}function yu(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let i=e.parent;i;i=i.parent){const n=i.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class AZ{constructor(i,n,t,r,s){this.routeReuseStrategy=i,this.futureState=n,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(i){const n=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,t,i),kw(this.futureState.root),this.activateChildRoutes(n,t,i)}deactivateChildRoutes(i,n,t){const r=Ll(n);i.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(i,n,t){const r=i.value,s=n?n.value:null;if(r===s)if(r.component){const o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(i,n,o.children)}else this.deactivateChildRoutes(i,n,t);else s&&this.deactivateRouteAndItsChildren(n,t)}deactivateRouteAndItsChildren(i,n){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,n):this.deactivateRouteAndOutlet(i,n)}detachAndStoreRouteSubtree(i,n){const t=n.getContext(i.value.outlet),r=t&&i.value.component?t.children:n,s=Ll(i);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(t&&t.outlet){const o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:a})}}deactivateRouteAndOutlet(i,n){const t=n.getContext(i.value.outlet),r=t&&i.value.component?t.children:n,s=Ll(i);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(i,n,t){const r=Ll(n);i.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new _Z(s.value.snapshot))}),i.children.length&&this.forwardEvent(new pZ(i.value.snapshot))}activateRoutes(i,n,t){const r=i.value,s=n?n.value:null;if(kw(r),r===s)if(r.component){const o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(i,n,o.children)}else this.activateChildRoutes(i,n,t);else if(r.component){const o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),kw(a.route.value),this.activateChildRoutes(i,null,o.children)}else{const a=yu(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(i,null,o.children)}}else this.activateChildRoutes(i,null,t)}}class FF{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class Sp{constructor(i,n){this.component=i,this.route=n}}function RZ(e,i,n){const t=e._root;return wu(t,i?i._root:null,n,[t.value])}function Bl(e,i){const n=Symbol(),t=i.get(e,n);return t===n?"function"!=typeof e||function X4(e){return null!==Hh(e)}(e)?i.get(e):e:t}function wu(e,i,n,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ll(i);return e.children.forEach(o=>{(function FZ(e,i,n,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=i?i.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function NZ(e,i,n){if("function"==typeof n)return n(e,i);switch(n){case"pathParamsChange":return!Xo(e.url,i.url);case"pathParamsOrQueryParamsChange":return!Xo(e.url,i.url)||!zr(e.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cw(e,i)||!zr(e.queryParams,i.queryParams);default:return!Cw(e,i)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new FF(t)):(s.data=o.data,s._resolvedData=o._resolvedData),wu(e,i,s.component?a?a.children:null:n,t,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Sp(a.outlet.component,o))}else o&&xu(i,a,r),r.canActivateChecks.push(new FF(t)),wu(e,null,s.component?a?a.children:null:n,t,r)})(o,s[o.value.outlet],n,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>xu(a,n.getContext(o),r)),r}function xu(e,i,n){const t=Ll(e),r=e.value;Object.entries(t).forEach(([s,o])=>{xu(o,r.component?i?i.children.getContext(s):null:i,n)}),n.canDeactivateChecks.push(new Sp(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function ku(e){return"function"==typeof e}function NF(e){return e instanceof cu||"EmptyError"===e?.name}const Ep=Symbol("INITIAL_VALUE");function Vl(){return ei(e=>Ko(e.map(i=>i.pipe(ze(1),Di(Ep)))).pipe(se(i=>{for(const n of i)if(!0!==n){if(n===Ep)return Ep;if(!1===n||n instanceof Pl)return n}return!0}),$e(i=>i!==Ep),ze(1)))}function PF(e){return function e4(...e){return GC(e)}(zt(i=>{if(Zo(i))throw TF(0,i)}),se(i=>!0===i))}class Mp{constructor(i){this.segmentGroup=i||null}}class LF{constructor(i){this.urlTree=i}}function jl(e){return Ys(new Mp(e))}function BF(e){return Ys(new LF(e))}class tQ{constructor(i,n){this.urlSerializer=i,this.urlTree=n}noMatchError(i){return new O(4002,!1)}lineralizeSegments(i,n){let t=[],r=n.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return ee(t);if(r.numberOfChildren>1||!r.children[Ge])return Ys(new O(4e3,!1));r=r.children[Ge]}}applyRedirectCommands(i,n,t){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),i,t)}applyRedirectCreateUrlTree(i,n,t,r){const s=this.createSegmentGroup(i,n.root,t,r);return new Pl(s,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(i,n){const t={};return Object.entries(i).forEach(([r,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);t[r]=n[a]}else t[r]=s}),t}createSegmentGroup(i,n,t,r){const s=this.createSegments(i,n.segments,t,r);let o={};return Object.entries(n.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(i,l,t,r)}),new pt(s,o)}createSegments(i,n,t,r){return n.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,r):this.findOrReturn(s,t))}findPosParam(i,n,t){const r=t[n.path.substring(1)];if(!r)throw new O(4001,!1);return r}findOrReturn(i,n){let t=0;for(const r of n){if(r.path===i.path)return n.splice(t),r;t++}return i}}const Mw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iQ(e,i,n,t,r){const s=Tw(e,i,n);return s.matched?(t=function DZ(e,i){return e.providers&&!e._injector&&(e._injector=ny(e.providers,i,`Route: ${e.path}`)),e._injector??i}(i,t),function QZ(e,i,n,t){const r=i.canMatch;return r&&0!==r.length?ee(r.map(o=>{const a=Bl(o,e);return Qs(function zZ(e){return e&&ku(e.canMatch)}(a)?a.canMatch(i,n):e.runInContext(()=>a(i,n)))})).pipe(Vl(),PF()):ee(!0)}(t,i,n).pipe(se(o=>!0===o?s:{...Mw}))):ee(s)}function Tw(e,i,n){if(""===i.path)return"full"===i.pathMatch&&(e.hasChildren()||n.length>0)?{...Mw}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const r=(i.matcher||FX)(n,e,i);if(!r)return{...Mw};const s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const o=r.consumed.length>0?{...s,...r.consumed[r.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function VF(e,i,n,t){return n.length>0&&function sQ(e,i,n){return n.some(t=>Tp(e,i,t)&&cr(t)!==Ge)}(e,n,t)?{segmentGroup:new pt(i,rQ(t,new pt(n,e.children))),slicedSegments:[]}:0===n.length&&function oQ(e,i,n){return n.some(t=>Tp(e,i,t))}(e,n,t)?{segmentGroup:new pt(e.segments,nQ(e,0,n,t,e.children)),slicedSegments:n}:{segmentGroup:new pt(e.segments,e.children),slicedSegments:n}}function nQ(e,i,n,t,r){const s={};for(const o of t)if(Tp(e,n,o)&&!r[cr(o)]){const a=new pt([],{});s[cr(o)]=a}return{...r,...s}}function rQ(e,i){const n={};n[Ge]=i;for(const t of e)if(""===t.path&&cr(t)!==Ge){const r=new pt([],{});n[cr(t)]=r}return n}function Tp(e,i,n){return(!(e.hasChildren()||i.length>0)||"full"!==n.pathMatch)&&""===n.path}class dQ{constructor(i,n,t,r,s,o,a){this.injector=i,this.configLoader=n,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new tQ(this.urlSerializer,this.urlTree)}noMatchError(i){return new O(4002,!1)}recognize(){const i=VF(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ge).pipe(lr(n=>{if(n instanceof LF)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Mp?this.noMatchError(n):n}),se(n=>{const t=new Cp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ge,this.rootComponentType,null,{}),r=new fs(t,n),s=new SF("",r),o=function eZ(e,i,n=null,t=null){return pF(mF(e),i,n,t)}(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root),{state:s,tree:o}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ge).pipe(lr(t=>{throw t instanceof Mp?this.noMatchError(t):t}))}inheritParamsAndData(i){const n=i.value,t=DF(n,this.paramsInheritanceStrategy);n.params=Object.freeze(t.params),n.data=Object.freeze(t.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,n,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(i,n,t):this.processSegment(i,n,t,t.segments,r,!0)}processChildren(i,n,t){const r=[];for(const s of Object.keys(t.children))"primary"===s?r.unshift(s):r.push(s);return Jt(r).pipe($s(s=>{const o=t.children[s],a=function TZ(e,i){const n=e.filter(t=>cr(t)===i);return n.push(...e.filter(t=>cr(t)!==i)),n}(n,s);return this.processSegmentGroup(i,a,o,s)}),sO((s,o)=>(s.push(...o),s)),gp(null),function RX(e,i){const n=arguments.length>=2;return t=>t.pipe(e?$e((r,s)=>e(r,s,t)):yr,hw(1),n?gp(i):tF(()=>new cu))}(),Bt(s=>{if(null===s)return jl(t);const o=jF(s);return function uQ(e){e.sort((i,n)=>i.value.outlet===Ge?-1:n.value.outlet===Ge?1:i.value.outlet.localeCompare(n.value.outlet))}(o),ee(o)}))}processSegment(i,n,t,r,s,o){return Jt(n).pipe($s(a=>this.processSegmentAgainstRoute(a._injector??i,n,a,t,r,s,o).pipe(lr(l=>{if(l instanceof Mp)return ee(null);throw l}))),Zs(a=>!!a),lr(a=>{if(NF(a))return function lQ(e,i,n){return 0===i.length&&!e.children[n]}(t,r,s)?ee([]):jl(t);throw a}))}processSegmentAgainstRoute(i,n,t,r,s,o,a){return function aQ(e,i,n,t){return!!(cr(e)===t||t!==Ge&&Tp(i,n,e))&&("**"===e.path||Tw(i,e,n).matched)}(t,r,s,o)?void 0===t.redirectTo?this.matchSegmentAgainstRoute(i,r,t,s,o,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,r,n,t,s,o):jl(r):jl(r)}expandSegmentAgainstRouteUsingRedirect(i,n,t,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,t,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,n,t,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,t,r){const s=this.applyRedirects.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?BF(s):this.applyRedirects.lineralizeSegments(t,s).pipe(Bt(o=>{const a=new pt(o,{});return this.processSegment(i,n,a,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,n,t,r,s,o){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:d}=Tw(n,r,s);if(!a)return jl(n);const u=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?BF(u):this.applyRedirects.lineralizeSegments(r,u).pipe(Bt(h=>this.processSegment(i,t,n,h.concat(c),o,!1)))}matchSegmentAgainstRoute(i,n,t,r,s,o){let a;if("**"===t.path){const l=r.length>0?nF(r).parameters:{};a=ee({snapshot:new Cp(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zF(t),cr(t),t.component??t._loadedComponent??null,t,HF(t)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=iQ(n,t,r,i).pipe(se(({matched:l,consumedSegments:c,remainingSegments:d,parameters:u})=>l?{snapshot:new Cp(c,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zF(t),cr(t),t.component??t._loadedComponent??null,t,HF(t)),consumedSegments:c,remainingSegments:d}:null));return a.pipe(ei(l=>null===l?jl(n):this.getChildConfig(i=t._injector??i,t,r).pipe(ei(({routes:c})=>{const d=t._loadedInjector??i,{snapshot:u,consumedSegments:h,remainingSegments:f}=l,{segmentGroup:_,slicedSegments:g}=VF(n,h,f,c);if(0===g.length&&_.hasChildren())return this.processChildren(d,c,_).pipe(se(b=>null===b?null:[new fs(u,b)]));if(0===c.length&&0===g.length)return ee([new fs(u,[])]);const m=cr(t)===s;return this.processSegment(d,c,_,g,m?Ge:s,!0).pipe(se(b=>[new fs(u,b)]))}))))}getChildConfig(i,n,t){return n.children?ee({routes:n.children,injector:i}):n.loadChildren?void 0!==n._loadedRoutes?ee({routes:n._loadedRoutes,injector:n._loadedInjector}):function ZZ(e,i,n,t){const r=i.canLoad;return void 0===r||0===r.length?ee(!0):ee(r.map(o=>{const a=Bl(o,e);return Qs(function LZ(e){return e&&ku(e.canLoad)}(a)?a.canLoad(i,n):e.runInContext(()=>a(i,n)))})).pipe(Vl(),PF())}(i,n,t).pipe(Bt(r=>r?this.configLoader.loadChildren(i,n).pipe(zt(s=>{n._loadedRoutes=s.routes,n._loadedInjector=s.injector})):function eQ(e){return Ys(IF(!1,3))}())):ee({routes:[],injector:i})}}function hQ(e){const i=e.value.routeConfig;return i&&""===i.path}function jF(e){const i=[],n=new Set;for(const t of e){if(!hQ(t)){i.push(t);continue}const r=i.find(s=>t.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...t.children),n.add(r)):i.push(t)}for(const t of n){const r=jF(t.children);i.push(new fs(t.value,r))}return i.filter(t=>!n.has(t))}function zF(e){return e.data||{}}function HF(e){return e.resolve||{}}function $F(e){return"string"==typeof e.title||null===e.title}function Iw(e){return ei(i=>{const n=e(i);return n?Jt(n).pipe(se(()=>i)):ee(i)})}const zl=new M("ROUTES");let Aw=(()=>{var e;class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=G(tI)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ee(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Qs(t.loadComponent()).pipe(se(UF),zt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Sl(()=>{this.componentLoaders.delete(t)})),s=new Qm(r,()=>new $).pipe(F0());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ee({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(se(l=>{this.onLoadEndListener&&this.onLoadEndListener(r);let c,d;return Array.isArray(l)?d=l:(c=l.create(t).injector,d=c.get(zl,[],We.Self|We.Optional).flat()),{routes:d.map(Ew),injector:c}}),Sl(()=>{this.childrenLoaders.delete(r)})),a=new Qm(o,()=>new $).pipe(F0());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(t){return Qs(t()).pipe(se(UF),Bt(r=>r instanceof dT||Array.isArray(r)?ee(r):Jt(this.compiler.compileModuleAsync(r))))}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function UF(e){return function vQ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ip=(()=>{var e;class i{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new $,this.configLoader=G(Aw),this.environmentInjector=G(bn),this.urlSerializer=G(hu),this.rootContexts=G(bu),this.inputBindingEnabled=null!==G(Dp,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ee(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=s=>this.events.next(new fZ(s)),this.configLoader.onLoadStartListener=s=>this.events.next(new hZ(s))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new Et({id:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:gu,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe($e(r=>0!==r.id),se(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),ei(r=>{let s=!1,o=!1;return ee(r).pipe(zt(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}}),ei(a=>{const l=t.browserUrlTree.toString(),c=!t.navigated||a.extractedUrl.toString()!==l||l!==t.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new _u(a.id,t.serializeUrl(r.rawUrl),u,0)),t.rawUrlTree=a.rawUrl,a.resolve(null),Xn}if(t.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return GF(a.source)&&(t.browserUrlTree=a.extractedUrl),ee(a).pipe(ei(u=>{const h=this.transitions?.getValue();return this.events.next(new bw(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?Xn:Promise.resolve(u)}),function fQ(e,i,n,t,r,s){return Bt(o=>function cQ(e,i,n,t,r,s,o="emptyOnly"){return new dQ(e,i,n,t,r,o,s).recognize()}(e,i,n,t,o.extractedUrl,r,s).pipe(se(({state:a,tree:l})=>({...o,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),zt(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const f=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(f,u)}t.browserUrlTree=u.urlAfterRedirects}const h=new aZ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(c&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:h,source:f,restoredState:_,extras:g}=a,m=new bw(u,this.urlSerializer.serialize(h),f,_);this.events.next(m);const b=CF(0,this.rootComponentType).snapshot;return ee(r={...a,targetSnapshot:b,urlAfterRedirects:h,extras:{...g,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new _u(a.id,t.serializeUrl(r.extractedUrl),u,1)),t.rawUrlTree=a.rawUrl,a.resolve(null),Xn}}),zt(a=>{const l=new lZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),se(a=>r={...a,guards:RZ(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function $Z(e,i){return Bt(n=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?ee({...n,guardsResult:!0}):function UZ(e,i,n,t){return Jt(e).pipe(Bt(r=>function XZ(e,i,n,t,r){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ee(s.map(a=>{const l=yu(i)??r,c=Bl(a,l);return Qs(function jZ(e){return e&&ku(e.canDeactivate)}(c)?c.canDeactivate(e,i,n,t):l.runInContext(()=>c(e,i,n,t))).pipe(Zs())})).pipe(Vl()):ee(!0)}(r.component,r.route,n,i,t)),Zs(r=>!0!==r,!0))}(o,t,r,e).pipe(Bt(a=>a&&function PZ(e){return"boolean"==typeof e}(a)?function GZ(e,i,n,t){return Jt(i).pipe($s(r=>Vr(function WZ(e,i){return null!==e&&i&&i(new mZ(e)),ee(!0)}(r.route.parent,t),function qZ(e,i){return null!==e&&i&&i(new gZ(e)),ee(!0)}(r.route,t),function KZ(e,i,n){const t=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(o=>function OZ(e){const i=e.routeConfig?e.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:e,guards:i}:null}(o)).filter(o=>null!==o).map(o=>us(()=>ee(o.guards.map(l=>{const c=yu(o.node)??n,d=Bl(l,c);return Qs(function VZ(e){return e&&ku(e.canActivateChild)}(d)?d.canActivateChild(t,e):c.runInContext(()=>d(t,e))).pipe(Zs())})).pipe(Vl())));return ee(s).pipe(Vl())}(e,r.path,n),function YZ(e,i,n){const t=i.routeConfig?i.routeConfig.canActivate:null;if(!t||0===t.length)return ee(!0);const r=t.map(s=>us(()=>{const o=yu(i)??n,a=Bl(s,o);return Qs(function BZ(e){return e&&ku(e.canActivate)}(a)?a.canActivate(i,e):o.runInContext(()=>a(i,e))).pipe(Zs())}));return ee(r).pipe(Vl())}(e,r.route,n))),Zs(r=>!0!==r,!0))}(t,s,e,i):ee(a)),se(a=>({...n,guardsResult:a})))})}(this.environmentInjector,a=>this.events.next(a)),zt(a=>{if(r.guardsResult=a.guardsResult,Zo(a.guardsResult))throw TF(0,a.guardsResult);const l=new cZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(l)}),$e(a=>!!a.guardsResult||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Iw(a=>{if(a.guards.canActivateChecks.length)return ee(a).pipe(zt(l=>{const c=new dZ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),ei(l=>{let c=!1;return ee(l).pipe(function mQ(e,i){return Bt(n=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return ee(n);let s=0;return Jt(r).pipe($s(o=>function pQ(e,i,n,t){const r=e.routeConfig,s=e._resolve;return void 0!==r?.title&&!$F(r)&&(s[du]=r.title),function gQ(e,i,n,t){const r=function _Q(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return ee({});const s={};return Jt(r).pipe(Bt(o=>function bQ(e,i,n,t){const r=yu(i)??t,s=Bl(e,r);return Qs(s.resolve?s.resolve(i,n):r.runInContext(()=>s(i,n)))}(e[o],i,n,t).pipe(Zs(),zt(a=>{s[o]=a}))),hw(1),ip(s),lr(o=>NF(o)?Xn:Ys(o)))}(s,e,i,t).pipe(se(o=>(e._resolvedData=o,e.data=DF(e,n).resolve,r&&$F(r)&&(e.data[du]=r.title),null)))}(o.route,t,e,i)),zt(()=>s++),hw(1),Bt(o=>s===r.length?ee(n):Xn))})}(t.paramsInheritanceStrategy,this.environmentInjector),zt({next:()=>c=!0,complete:()=>{c||(t.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),zt(l=>{const c=new uZ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}))}),Iw(a=>{const l=c=>{const d=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(zt(u=>{c.component=u}),se(()=>{})));for(const u of c.children)d.push(...l(u));return d};return Ko(l(a.targetSnapshot.root)).pipe(gp(),ze(1))}),Iw(()=>this.afterPreactivation()),se(a=>{const l=function xZ(e,i,n){const t=vu(e,i._root,n?n._root:void 0);return new kF(t,i)}(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),zt(a=>{t.currentUrlTree=a.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),t.routerState=a.targetRouterState,"deferred"===t.urlUpdateStrategy&&(a.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,a),t.browserUrlTree=a.urlAfterRedirects)}),((e,i,n,t)=>se(r=>(new AZ(i,r.targetRouterState,r.currentRouterState,n,t).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ze(1),zt({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new Qo(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Sl(()=>{s||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),lr(a=>{if(o=!0,RF(a)){AF(a)||(t.navigated=!0,t.restoreHistory(r,!0));const l=new kp(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode);if(this.events.next(l),AF(a)){const c=t.urlHandlingStrategy.merge(a.url,t.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||GF(r.source)};t.scheduleNavigation(c,gu,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const l=new vw(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);this.events.next(l);try{r.resolve(t.errorHandler(a))}catch(c){r.reject(c)}}return Xn}))}))}cancelNavigationTransition(t,r,s){const o=new kp(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),t.resolve(!1)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function GF(e){return e!==gu}let qF=(()=>{var e;class i{buildTitle(t){let r,s=t.root;for(;void 0!==s;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===Ge);return r}getResolvedTitleForRoute(t){return t.data[du]}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(yQ)},providedIn:"root"}),i})(),yQ=(()=>{var e;class i extends qF{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(MA))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),wQ=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(kQ)},providedIn:"root"}),i})();class xQ{shouldDetach(i){return!1}store(i,n){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,n){return i.routeConfig===n.routeConfig}}let kQ=(()=>{var e;class i extends xQ{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Ap=new M("",{providedIn:"root",factory:()=>({})});let CQ=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(DQ)},providedIn:"root"}),i})(),DQ=(()=>{var e;class i{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();var Cu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Cu||{});function WF(e,i){e.events.pipe($e(n=>n instanceof Qo||n instanceof kp||n instanceof vw||n instanceof _u),se(n=>n instanceof Qo||n instanceof _u?Cu.COMPLETE:n instanceof kp&&(0===n.code||1===n.code)?Cu.REDIRECTING:Cu.FAILED),$e(n=>n!==Cu.REDIRECTING),ze(1)).subscribe(()=>{i()})}function SQ(e){throw e}function EQ(e,i,n){return i.parse("/")}const MQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ri=(()=>{var e;class i{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=G(eI),this.isNgZoneEnabled=!1,this.options=G(Ap,{optional:!0})||{},this.pendingTasks=G(pm),this.errorHandler=this.options.errorHandler||SQ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||EQ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=G(CQ),this.routeReuseStrategy=G(wQ),this.titleStrategy=G(qF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=G(zl,{optional:!0})?.flat()??[],this.navigationTransitions=G(Ip),this.urlSerializer=G(hu),this.location=G(Rd),this.componentInputBindingEnabled=!!G(Dp,{optional:!0}),this.isNgZoneEnabled=G(ce)instanceof ce&&ce.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Pl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=CF(0,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId??0},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),gu,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,s){const o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){const c={...s};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const l=this.parseUrl(t);this.scheduleNavigation(l,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Ew),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,d=c?this.currentUrlTree.fragment:a;let h,u=null;switch(l){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{h=mF(s?s.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),h=this.currentUrlTree.root}return pF(h,t,u,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){const s=Zo(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,gu,null,r)}navigate(t,r={skipLocationChange:!1}){return function IQ(e){for(let i=0;i{const o=t[s];return null!=o&&(r[s]=o),r},{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,f)=>{l=h,c=f});const u=this.pendingTasks.add();return WF(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}setBrowserUrl(t,r){const s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){const a={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(s,"",a)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(s,"",o)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&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))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Hl=(()=>{var e;class i{constructor(t,r,s,o,a,l){this.router=t,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new $,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(d=>{d instanceof Qo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,s,o,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||s||o||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function CS(e,i,n){return function sH(e,i){return"src"===i&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===i&&("base"===e||"link"===e)?kS:xS}(i,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const s=this.renderer,o=this.el.nativeElement;null!==r?s.setAttribute(o,t,r):s.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Ri),p(Js),Mi("tabindex"),p(rs),p(ne),p(jo))},e.\u0275dir=I({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,r){1&t&&H("click",function(o){return r.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&t&&_e("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Cl],skipLocationChange:["skipLocationChange","skipLocationChange",Cl],replaceUrl:["replaceUrl","replaceUrl",Cl],routerLink:"routerLink"},standalone:!0,features:[TE,bt]}),i})();class YF{}let OQ=(()=>{var e;class i{constructor(t,r,s,o,a){this.router=t,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe($e(t=>t instanceof Qo),$s(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const s=[];for(const o of r){o.providers&&!o._injector&&(o._injector=ny(o.providers,t,`Route: ${o.path}`));const a=o._injector??t,l=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(l,o.children??o._loadedRoutes))}return Jt(s).pipe(Sa())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let s;s=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):ee(null);const o=s.pipe(Bt(a=>null===a?ee(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return r.loadComponent&&!r._loadedComponent?Jt([o,this.loader.loadComponent(r)]).pipe(Sa()):o})}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ri),x(tI),x(bn),x(YF),x(Aw))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Rw=new M("");let KF=(()=>{var e;class i{constructor(t,r,s,o,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof bw?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Qo?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof _u&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof wF&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new wF(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function ms(e,i){return{\u0275kind:e,\u0275providers:i}}function ZF(){const e=G(kt);return i=>{const n=e.get(Nr);if(i!==n.components[0])return;const t=e.get(Ri),r=e.get(QF);1===e.get(Ow)&&t.initialNavigation(),e.get(JF,null,We.Optional)?.setUpPreloading(),e.get(Rw,null,We.Optional)?.init(),t.resetRootComponentType(n.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const QF=new M("",{factory:()=>new $}),Ow=new M("",{providedIn:"root",factory:()=>1}),JF=new M("");function LQ(e){return ms(0,[{provide:JF,useExisting:OQ},{provide:YF,useExisting:e}])}const eN=new M("ROUTER_FORROOT_GUARD"),VQ=[Rd,{provide:hu,useClass:fw},Ri,bu,{provide:Js,useFactory:function XF(e){return e.routerState.root},deps:[Ri]},Aw,[]];function jQ(){return new fI("Router",Ri)}let tN=(()=>{var e;class i{constructor(t){}static forRoot(t,r){return{ngModule:i,providers:[VQ,[],{provide:zl,multi:!0,useValue:t},{provide:eN,useFactory:UQ,deps:[[Ri,new Ls,new qa]]},{provide:Ap,useValue:r||{}},r?.useHash?{provide:jo,useClass:jq}:{provide:jo,useClass:HI},{provide:Rw,useFactory:()=>{const e=G(i9),i=G(ce),n=G(Ap),t=G(Ip),r=G(hu);return n.scrollOffset&&e.setOffset(n.scrollOffset),new KF(r,t,e,i,n)}},r?.preloadingStrategy?LQ(r.preloadingStrategy).\u0275providers:[],{provide:fI,multi:!0,useFactory:jQ},r?.initialNavigation?GQ(r):[],r?.bindToComponentInputs?ms(8,[MF,{provide:Dp,useExisting:MF}]).\u0275providers:[],[{provide:iN,useFactory:ZF},{provide:Ey,multi:!0,useExisting:iN}]]}}static forChild(t){return{ngModule:i,providers:[{provide:zl,multi:!0,useValue:t}]}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(eN,8))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function UQ(e){return"guarded"}function GQ(e){return["disabled"===e.initialNavigation?ms(3,[{provide:mm,multi:!0,useFactory:()=>{const i=G(Ri);return()=>{i.setUpLocationChangeListener()}}},{provide:Ow,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?ms(2,[{provide:Ow,useValue:0},{provide:mm,multi:!0,deps:[kt],useFactory:i=>{const n=i.get(Bq,Promise.resolve());return()=>n.then(()=>new Promise(t=>{const r=i.get(Ri),s=i.get(QF);WF(r,()=>{t(!0)}),i.get(Ip).afterPreactivation=()=>(t(!0),s.closed?ee(void 0):s),r.initialNavigation()}))}}]).\u0275providers:[]]}const iN=new M("");function Fw(e,i){const n="object"==typeof i;return new Promise((t,r)=>{const s=new Da({next:o=>{t(o),s.unsubscribe()},error:r,complete:()=>{n?t(i.defaultValue):r(new cu)}});e.subscribe(s)})}let Nw;try{Nw=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Nw=!1}let $l,Ot=(()=>{var e;class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Om(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Nw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(e=i).\u0275fac=function(t){return new(t||e)(x(er))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const nN=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rN(){if($l)return $l;if("object"!=typeof document||!document)return $l=new Set(nN),$l;let e=document.createElement("input");return $l=new Set(nN.filter(i=>(e.setAttribute("type",i),e.type===i))),$l}let Du,Rp,Jo,Pw;function ps(e){return function WQ(){if(null==Du&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Du=!0}))}finally{Du=Du||!1}return Du}()?e:!!e.capture}function sN(){if(null==Jo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Jo=!1,Jo;if("scrollBehavior"in document.documentElement.style)Jo=!0;else{const e=Element.prototype.scrollTo;Jo=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Jo}function Su(){if("object"!=typeof document||!document)return 0;if(null==Rp){const e=document.createElement("div"),i=e.style;e.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const n=document.createElement("div"),t=n.style;t.width="2px",t.height="1px",e.appendChild(n),document.body.appendChild(e),Rp=0,0===e.scrollLeft&&(e.scrollLeft=1,Rp=0===e.scrollLeft?1:2),e.remove()}return Rp}function Lw(e){if(function YQ(){if(null==Pw){const e=typeof document<"u"?document.head:null;Pw=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Pw}()){const i=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Op(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const i=e.shadowRoot.activeElement;if(i===e)break;e=i}return e}function Vn(e){return e.composedPath?e.composedPath()[0]:e.target}function Bw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function qi(e,...i){return i.length?i.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function Lp(e,i=Yd){return wt((n,t)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,t.next(c)}};function l(){const c=o+e,d=i.now();if(d{s=c,o=i.now(),r||(r=i.schedule(l,e),t.add(r))},()=>{a(),t.complete()},void 0,()=>{s=r=null}))})}function cN(e){return $e((i,n)=>e<=n)}function ke(e){return wt((i,n)=>{si(e).subscribe(ft(n,()=>n.complete(),Ts)),!n.closed&&i.subscribe(n)})}function re(e){return null!=e&&"false"!=`${e}`}function Oi(e,i=0){return dN(e)?Number(e):i}function dN(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Eu(e){return Array.isArray(e)?e:[e]}function ni(e){return null==e?"":"string"==typeof e?e:`${e}px`}function $t(e){return e instanceof ne?e.nativeElement:e}let uN=(()=>{var e;class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),cJ=(()=>{var e;class i{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,r)=>this._cleanupObserver(r))}observe(t){const r=$t(t);return new et(s=>{const a=this._observeElement(r).subscribe(s);return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const r=new $,s=this._mutationObserverFactory.create(o=>r.next(o));s&&s.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:s,stream:r,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:r,stream:s}=this._observedElements.get(t);r&&r.disconnect(),s.complete(),this._observedElements.delete(t)}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(uN))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Bp=(()=>{var e;class i{get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Oi(t),this._subscribe()}constructor(t,r,s){this._contentObserver=t,this._elementRef=r,this._ngZone=s,this.event=new W,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Lp(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(cJ),p(ne),p(ce))},e.\u0275dir=I({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),Vp=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[uN]}),i})();const hN=new Set;let ea,dJ=(()=>{var e;class i{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hJ}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function uJ(e,i){if(!hN.has(e))try{ea||(ea=document.createElement("style"),i&&(ea.nonce=i),ea.setAttribute("type","text/css"),document.head.appendChild(ea)),ea.sheet&&(ea.sheet.insertRule(`@media ${e} {body{ }}`,0),hN.add(e))}catch(n){console.error(n)}}(t,this._nonce),this._matchMedia(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(fv,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function hJ(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let Mu=(()=>{var e;class i{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new $}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return fN(Eu(t)).some(s=>this._registerQuery(s).mql.matches)}observe(t){let o=Ko(fN(Eu(t)).map(a=>this._registerQuery(a).observable));return o=Vr(o.pipe(ze(1)),o.pipe(cN(1),Lp(0))),o.pipe(se(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),o={observable:new et(a=>{const l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Di(r),se(({matches:a})=>({query:t,matches:a})),ke(this._destroySubject)),mql:r};return this._queries.set(t,o),o}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dJ),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function fN(e){return e.map(i=>i.split(",")).reduce((i,n)=>i.concat(n)).map(i=>i.trim())}const io_Medium="(min-width: 960px) and (max-width: 1279.98px)",io_Large="(min-width: 1280px) and (max-width: 1919.98px)";function pN(e,i,n){const t=jp(e,i);t.some(r=>r.trim()==n.trim())||(t.push(n.trim()),e.setAttribute(i,t.join(" ")))}function jw(e,i,n){const r=jp(e,i).filter(s=>s!=n.trim());r.length?e.setAttribute(i,r.join(" ")):e.removeAttribute(i)}function jp(e,i){return(e.getAttribute(i)||"").match(/\S+/g)||[]}const gN="cdk-describedby-message",zp="cdk-describedby-host";let zw=0,_N=(()=>{var e;class i{constructor(t,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+zw++,this._document=t,this._id=G(od)+"-"+zw++}describe(t,r,s){if(!this._canBeDescribed(t,r))return;const o=Hw(r,s);"string"!=typeof r?(bN(r,this._id),this._messageRegistry.set(o,{messageElement:r,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(r,s),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,r,s){if(!r||!this._isElementNode(t))return;const o=Hw(r,s);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof r){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${zp}="${this._id}"]`);for(let r=0;r0!=s.indexOf(gN));t.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(t,r){const s=this._messageRegistry.get(r);pN(t,"aria-describedby",s.messageElement.id),t.setAttribute(zp,this._id),s.referenceCount++}_removeMessageReference(t,r){const s=this._messageRegistry.get(r);s.referenceCount--,jw(t,"aria-describedby",s.messageElement.id),t.removeAttribute(zp)}_isElementDescribedByMessage(t,r){const s=jp(t,"aria-describedby"),o=this._messageRegistry.get(r),a=o&&o.messageElement.id;return!!a&&-1!=s.indexOf(a)}_canBeDescribed(t,r){if(!this._isElementNode(t))return!1;if(r&&"object"==typeof r)return!0;const s=null==r?"":`${r}`.trim(),o=t.getAttribute("aria-label");return!(!s||o&&o.trim()===s)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(Ot))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function Hw(e,i){return"string"==typeof e?`${i||""}/${e}`:e}function bN(e,i){e.id||(e.id=`${gN}-${i}-${zw++}`)}class vN{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new $,this._typeaheadSubscription=Qe.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new $,this.change=new $,i instanceof wl&&(this._itemChangesSubscription=i.changes.subscribe(n=>{if(this._activeItem){const r=n.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zt(n=>this._pressedLetters.push(n)),Lp(i),$e(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join(""))).subscribe(n=>{const t=this._getItemsArray();for(let r=1;r!i[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){const n=this._getItemsArray(),t="number"==typeof i?i:n.indexOf(i);this._activeItem=n[t]??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const n=this._getItemsArray();for(let t=1;t<=n.length;t++){const r=(this._activeItemIndex+i*t+n.length)%n.length;if(!this._skipPredicateFn(n[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,n){const t=this._getItemsArray();if(t[i]){for(;this._skipPredicateFn(t[i]);)if(!t[i+=n])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof wl?this._items.toArray():this._items}}class fJ extends vN{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class $w extends vN{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let Gl=(()=>{var e;class i{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function pJ(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const r=function mJ(e){try{return e.frameElement}catch{return null}}(function kJ(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(t));if(r&&(-1===wN(r)||!this.isVisible(r)))return!1;let s=t.nodeName.toLowerCase(),o=wN(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function wJ(e){let i=e.nodeName.toLowerCase(),n="input"===i&&e.type;return"text"===n||"password"===n||"select"===i||"textarea"===i}(t))&&("audio"===s?!!t.hasAttribute("controls")&&-1!==o:"video"===s?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,r){return function xJ(e){return!function _J(e){return function vJ(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function gJ(e){let i=e.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(e)||function bJ(e){return function yJ(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||yN(e))}(t)&&!this.isDisabled(t)&&(r?.ignoreVisibility||this.isVisible(t))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function yN(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let i=e.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function wN(e){if(!yN(e))return null;const i=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class CJ{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,n,t,r,s=!1){this._element=i,this._checker=n,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){const i=this._startAnchor,n=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const n=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){const t=this._getFirstTabbableElement(n);return t?.focus(i),!!t}return n.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const n=this._getRegionBoundary("start");return n&&n.focus(i),!!n}focusLastTabbableElement(i){const n=this._getRegionBoundary("end");return n&&n.focus(i),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const n=i.children;for(let t=0;t=0;t--){const r=n[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[t]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,n){i?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(ze(1)).subscribe(i)}}let Tu=(()=>{var e;class i{constructor(t,r,s){this._checker=t,this._ngZone=r,this._document=s}create(t,r=!1){return new CJ(t,this._checker,this._ngZone,this._document,r)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Gl),x(ce),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function Uw(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function Gw(e){const i=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const DJ=new M("cdk-input-modality-detector-options"),SJ={ignoreKeys:[18,17,224,91,16]},ql=ps({passive:!0,capture:!0});let EJ=(()=>{var e;class i{get mostRecentModality(){return this._modality.value}constructor(t,r,s,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Et(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Uw(a)?"keyboard":"mouse"),this._mostRecentTarget=Vn(a))},this._onTouchstart=a=>{Gw(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vn(a))},this._options={...SJ,...o},this.modalityDetected=this._modality.pipe(cN(1)),this.modalityChanged=this.modalityDetected.pipe(xo()),t.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ql),s.addEventListener("mousedown",this._onMousedown,ql),s.addEventListener("touchstart",this._onTouchstart,ql)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ql),document.removeEventListener("mousedown",this._onMousedown,ql),document.removeEventListener("touchstart",this._onTouchstart,ql))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(ce),x(xe),x(DJ,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const MJ=new M("liveAnnouncerElement",{providedIn:"root",factory:function TJ(){return null}}),IJ=new M("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let AJ=0,qw=(()=>{var e;class i{constructor(t,r,s,o){this._ngZone=r,this._defaultOptions=o,this._document=s,this._liveElement=t||this._createLiveElement()}announce(t,...r){const s=this._defaultOptions;let o,a;return 1===r.length&&"number"==typeof r[0]?a=r[0]:[o,a]=r,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),null==a&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const t="cdk-live-announcer-element",r=this._document.getElementsByClassName(t),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{var e;class i{constructor(t,r,s,o,a){this._ngZone=t,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=l=>{for(let d=Vn(l);d;d=d.parentElement)"focus"===l.type?this._onFocus(l,d):this._onBlur(l,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,r=!1){const s=$t(t);if(!this._platform.isBrowser||1!==s.nodeType)return ee();const o=Lw(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;const l={checkChildren:r,subject:new $,rootNode:o};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){const r=$t(t),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(t,r,s){const o=$t(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),"function"==typeof o.focus&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused","touch"===r),t.classList.toggle("cdk-keyboard-focused","keyboard"===r),t.classList.toggle("cdk-mouse-focused","mouse"===r),t.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const s=this._elementInfo.get(r),o=Vn(t);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(t,r){const s=this._elementInfo.get(r);!s||s.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(t,r){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hp),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hp)}),this._rootNodeFocusListenerCount.set(r,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ke(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hp),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hp),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,s){this._setClasses(t,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((s,o)=>{(o===t||s.checkChildren&&o.contains(t))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!r||r===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let a=0;a{var e;class i{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=G(Mu).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(t):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Ww,kN,CN),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(Ww,kN):2===r&&t.add(Ww,CN)}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),SN=(()=>{var e;class i{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(DN))},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Vp]}),i})();const Iu={schedule(e){let i=requestAnimationFrame,n=cancelAnimationFrame;const{delegate:t}=Iu;t&&(i=t.requestAnimationFrame,n=t.cancelAnimationFrame);const r=i(s=>{n=void 0,e(s)});return new Qe(()=>n?.(r))},requestAnimationFrame(...e){const{delegate:i}=Iu;return(i?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:i}=Iu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0},EN=new class FJ extends tp{flush(i){this._active=!0;const n=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;i=i||t.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=t[0])&&i.id===n&&t.shift());if(this._active=!1,r){for(;(i=t[0])&&i.id===n&&t.shift();)i.unsubscribe();throw r}}}(class OJ extends ep{constructor(i,n){super(i,n),this.scheduler=i,this.work=n}requestAsyncId(i,n,t=0){return null!==t&&t>0?super.requestAsyncId(i,n,t):(i.actions.push(this),i._scheduled||(i._scheduled=Iu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,n,t=0){var r;if(null!=t?t>0:this.delay>0)return super.recycleAsyncId(i,n,t);const{actions:s}=i;null!=n&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==n&&(Iu.cancelAnimationFrame(n),i._scheduled=void 0)}});let Yw,NJ=1;const $p={};function MN(e){return e in $p&&(delete $p[e],!0)}const PJ={setImmediate(e){const i=NJ++;return $p[i]=!0,Yw||(Yw=Promise.resolve()),Yw.then(()=>MN(i)&&e()),i},clearImmediate(e){MN(e)}},{setImmediate:LJ,clearImmediate:BJ}=PJ,Up={setImmediate(...e){const{delegate:i}=Up;return(i?.setImmediate||LJ)(...e)},clearImmediate(e){const{delegate:i}=Up;return(i?.clearImmediate||BJ)(e)},delegate:void 0};new class jJ extends tp{flush(i){this._active=!0;const n=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;i=i||t.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=t[0])&&i.id===n&&t.shift());if(this._active=!1,r){for(;(i=t[0])&&i.id===n&&t.shift();)i.unsubscribe();throw r}}}(class VJ extends ep{constructor(i,n){super(i,n),this.scheduler=i,this.work=n}requestAsyncId(i,n,t=0){return null!==t&&t>0?super.requestAsyncId(i,n,t):(i.actions.push(this),i._scheduled||(i._scheduled=Up.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,n,t=0){var r;if(null!=t?t>0:this.delay>0)return super.recycleAsyncId(i,n,t);const{actions:s}=i;null!=n&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==n&&(Up.clearImmediate(n),i._scheduled===n&&(i._scheduled=void 0))}});function Kw(e,i=Yd){return function HJ(e){return wt((i,n)=>{let t=!1,r=null,s=null,o=!1;const a=()=>{if(s?.unsubscribe(),s=null,t){t=!1;const c=r;r=null,n.next(c)}o&&n.complete()},l=()=>{s=null,o&&n.complete()};i.subscribe(ft(n,c=>{t=!0,r=c,s||si(e(c)).subscribe(s=ft(n,a,l))},()=>{o=!0,(!t||!s||s.closed)&&n.complete()}))})}(()=>Kd(e,i))}const $J=new M("cdk-dir-doc",{providedIn:"root",factory:function UJ(){return G(xe)}}),GJ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let an=(()=>{var e;class i{constructor(t){this.value="ltr",this.change=new W,t&&(this.value=function qJ(e){const i=e?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?GJ.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(x($J,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Au=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),Wl=(()=>{var e;class i{constructor(t,r,s){this._ngZone=t,this._platform=r,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new et(r=>{this._globalSubscription||this._addGlobalListener();const s=t>0?this._scrolled.pipe(Kw(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ee()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){const s=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe($e(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(t){const r=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,t)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let s=$t(r),o=t.getElementRef().nativeElement;do{if(s==o)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Br(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce),x(Ot),x(xe,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Ru=(()=>{var e;class i{constructor(t,r,s,o){this.elementRef=t,this.scrollDispatcher=r,this.ngZone=s,this.dir=o,this._destroyed=new $,this._elementScrolled=new et(a=>this.ngZone.runOutsideAngular(()=>Br(this.elementRef.nativeElement,"scroll").pipe(ke(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const r=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=s?t.end:t.start),null==t.right&&(t.right=s?t.start:t.end),null!=t.bottom&&(t.top=r.scrollHeight-r.clientHeight-t.bottom),s&&0!=Su()?(null!=t.left&&(t.right=r.scrollWidth-r.clientWidth-t.left),2==Su()?t.left=t.right:1==Su()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=r.scrollWidth-r.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const r=this.elementRef.nativeElement;sN()?r.scrollTo(t):(null!=t.top&&(r.scrollTop=t.top),null!=t.left&&(r.scrollLeft=t.left))}measureScrollOffset(t){const r="left",s="right",o=this.elementRef.nativeElement;if("top"==t)return o.scrollTop;if("bottom"==t)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==t?t=a?s:r:"end"==t&&(t=a?r:s),a&&2==Su()?t==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Su()?t==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:t==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Wl),p(ce),p(an,8))},e.\u0275dir=I({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),i})(),Yl=(()=>{var e;class i{constructor(t,r,s){this._platform=t,this._change=new $,this._changeListener=o=>{this._change.next(o)},this._document=s,r.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+s,right:t.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,r=this._getWindow(),s=t.documentElement,o=s.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||r.scrollY||s.scrollTop||0,left:-o.left||t.body.scrollLeft||r.scrollX||s.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Kw(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(ce),x(xe,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ta=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),Xw=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Au,ta,Au,ta]}),i})();class Zw{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Kl extends Zw{constructor(i,n,t,r,s){super(),this.component=i,this.viewContainerRef=n,this.injector=t,this.componentFactoryResolver=r,this.projectableNodes=s}}class Gp extends Zw{constructor(i,n,t,r){super(),this.templateRef=i,this.viewContainerRef=n,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,n=this.context){return this.context=n,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class XJ extends Zw{constructor(i){super(),this.element=i instanceof ne?i.nativeElement:i}}class qp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Kl?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof Gp?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof XJ?(this._attachedPortal=i,this.attachDomPortal(i)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ZJ extends qp{constructor(i,n,t,r,s){super(),this.outletElement=i,this._componentFactoryResolver=n,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(i){const t=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(t,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=t.create(i.injector||this._defaultInjector||kt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=i,r}attachTemplatePortal(i){let n=i.viewContainerRef,t=n.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=n.indexOf(t);-1!==r&&n.remove(r)}),this._attachedPortal=i,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let Xl=(()=>{var e;class i extends qp{constructor(t,r,s){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new W,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);const r=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=r.createComponent(o,r.length,t.injector||r.injector,t.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return(e=i).\u0275fac=function(t){return new(t||e)(p(el),p(Vt),p(xe))},e.\u0275dir=I({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[L]}),i})(),Zl=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const TN=sN();class QJ{constructor(i,n){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=ni(-this._previousScrollPosition.left),i.style.top=ni(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,t=i.style,r=this._document.body.style,s=t.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),TN&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),TN&&(t.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const n=this._document.body,t=this._viewportRuler.getViewportSize();return n.scrollHeight>t.height||n.scrollWidth>t.width}}class JJ{constructor(i,n,t,r){this._scrollDispatcher=i,this._ngZone=n,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe($e(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class IN{enable(){}disable(){}attach(){}}function Qw(e,i){return i.some(n=>e.bottomn.bottom||e.rightn.right)}function AN(e,i){return i.some(n=>e.topn.bottom||e.leftn.right)}class eee{constructor(i,n,t,r){this._scrollDispatcher=i,this._viewportRuler=n,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();Qw(n,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let tee=(()=>{var e;class i{constructor(t,r,s,o){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=s,this.noop=()=>new IN,this.close=a=>new JJ(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new QJ(this._viewportRuler,this._document),this.reposition=a=>new eee(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Wl),x(Yl),x(ce),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();class Wp{constructor(i){if(this.scrollStrategy=new IN,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const n=Object.keys(i);for(const t of n)void 0!==i[t]&&(this[t]=i[t])}}}class iee{constructor(i,n){this.connectionPair=i,this.scrollableViewProperties=n}}let RN=(()=>{var e;class i{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const r=this._attachedOverlays.indexOf(t);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),nee=(()=>{var e;class i extends RN{constructor(t,r){super(t),this._ngZone=r,this._keydownListener=s=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const l=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(ce,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ree=(()=>{var e;class i extends RN{constructor(t,r,s){super(t),this._platform=r,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Vn(o)},this._clickListener=o=>{const a=Vn(o),l="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const u=c[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(l))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(t){if(super.add(t),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(Ot),x(ce,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Yp=(()=>{var e;class i{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Bw()){const s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new $,this._outsidePointerEvents=new $,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const n=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ze(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof n?.onDestroy&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=ni(this._config.width),i.height=ni(this._config.height),i.minWidth=ni(this._config.minWidth),i.minHeight=ni(this._config.minHeight),i.maxWidth=ni(this._config.maxWidth),i.maxHeight=ni(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,n,t){const r=Eu(n||[]).filter(s=>!!s);r.length&&(t?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(ke(Ft(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ON="cdk-overlay-connected-position-bounding-box",see=/([A-Za-z%]+)$/;class oee{get positions(){return this._preferredPositions}constructor(i,n,t,r,s){this._viewportRuler=n,this._document=t,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new $,this._resizeSubscription=Qe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(ON),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,n=this._overlayRect,t=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(i,r,a),c=this._getOverlayPoint(l,n,a),d=this._getOverlayFit(c,n,t,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,t)?s.push({position:a,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ia(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ON),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,n)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,n,t){let r,s;if("center"==t.originX)r=i.left+i.width/2;else{const o=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;r="start"==t.originX?o:a}return n.left<0&&(r-=n.left),s="center"==t.originY?i.top+i.height/2:"top"==t.originY?i.top:i.bottom,n.top<0&&(s-=n.top),{x:r,y:s}}_getOverlayPoint(i,n,t){let r,s;return r="center"==t.overlayX?-n.width/2:"start"===t.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,s="center"==t.overlayY?-n.height/2:"top"==t.overlayY?0:-n.height,{x:i.x+r,y:i.y+s}}_getOverlayFit(i,n,t,r){const s=NN(n);let{x:o,y:a}=i,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-t.height,_=this._subtractOverflows(s.width,0-o,o+s.width-t.width),g=this._subtractOverflows(s.height,h,f),m=_*g;return{visibleArea:m,isCompletelyWithinViewport:s.width*s.height===m,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:_==s.width}}_canFitWithFlexibleDimensions(i,n,t){if(this._hasFlexibleDimensions){const r=t.bottom-n.y,s=t.right-n.x,o=FN(this._overlayRef.getConfig().minHeight),a=FN(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=o&&o<=r)&&(i.fitsInViewportHorizontally||null!=a&&a<=s)}return!1}_pushOverlayOnScreen(i,n,t){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=NN(n),s=this._viewportRect,o=Math.max(i.x+r.width-s.width,0),a=Math.max(i.y+r.height-s.height,0),l=Math.max(s.top-t.top-i.y,0),c=Math.max(s.left-t.left-i.x,0);let d=0,u=0;return d=r.width<=s.width?c||-o:i.x_&&!this._isInitialRender&&!this._growAfterOpen&&(o=i.y-_/2)}if("end"===n.overlayX&&!r||"start"===n.overlayX&&r)h=t.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===n.overlayX&&!r||"end"===n.overlayX&&r)u=i.x,d=t.right-i.x;else{const f=Math.min(t.right-i.x+t.left,i.x),_=this._lastBoundingBoxSize.width;d=2*f,u=i.x-f,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-_/2)}return{top:o,left:u,bottom:a,right:h,width:d,height:s}}_setBoundingBoxStyles(i,n){const t=this._calculateBoundingBoxRect(i,n);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=ni(t.height),r.top=ni(t.top),r.bottom=ni(t.bottom),r.width=ni(t.width),r.left=ni(t.left),r.right=ni(t.right),r.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",r.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=ni(s)),o&&(r.maxWidth=ni(o))}this._lastBoundingBoxSize=t,ia(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ia(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ia(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,n){const t={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();ia(t,this._getExactOverlayY(n,i,d)),ia(t,this._getExactOverlayX(n,i,d))}else t.position="static";let a="",l=this._getOffset(n,"x"),c=this._getOffset(n,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),t.transform=a.trim(),o.maxHeight&&(r?t.maxHeight=ni(o.maxHeight):s&&(t.maxHeight="")),o.maxWidth&&(r?t.maxWidth=ni(o.maxWidth):s&&(t.maxWidth="")),ia(this._pane.style,t)}_getExactOverlayY(i,n,t){let r={top:"",bottom:""},s=this._getOverlayPoint(n,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=ni(s.y),r}_getExactOverlayX(i,n,t){let o,r={left:"",right:""},s=this._getOverlayPoint(n,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t)),o=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=ni(s.x),r}_getScrollVisibility(){const i=this._getOriginRect(),n=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:AN(i,t),isOriginOutsideView:Qw(i,t),isOverlayClipped:AN(n,t),isOverlayOutsideView:Qw(n,t)}}_subtractOverflows(i,...n){return n.reduce((t,r)=>t-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+i-this._viewportMargin,bottom:t.top+n-this._viewportMargin,width:i-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,n){return"x"===n?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Eu(i).forEach(n=>{""!==n&&-1===this._appliedPanelClasses.indexOf(n)&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof ne)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const n=i.width||0,t=i.height||0;return{top:i.y,bottom:i.y+t,left:i.x,right:i.x+n,height:t,width:n}}}function ia(e,i){for(let n in i)i.hasOwnProperty(n)&&(e[n]=i[n]);return e}function FN(e){if("number"!=typeof e&&null!=e){const[i,n]=e.split(see);return n&&"px"!==n?null:parseFloat(i)}return e||null}function NN(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const PN="cdk-global-overlay-wrapper";class aee{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const n=i.getConfig();this._overlayRef=i,this._width&&!n.width&&i.updateSize({width:this._width}),this._height&&!n.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(PN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=t,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",_="",g="";l?g="flex-start":"center"===d?(g="center",h?_=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",_=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",_=u),i.position=this._cssPosition,i.marginLeft=l?"0":f,i.marginTop=c?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":_,n.justifyContent=g,n.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,t=n.style;n.classList.remove(PN),t.justifyContent=t.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let lee=(()=>{var e;class i{constructor(t,r,s,o){this._viewportRuler=t,this._document=r,this._platform=s,this._overlayContainer=o}global(){return new aee}flexibleConnectedTo(t){return new oee(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Yl),x(xe),x(Ot),x(Yp))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),cee=0,ln=(()=>{var e;class i{constructor(t,r,s,o,a,l,c,d,u,h,f,_){this.scrollStrategies=t,this._overlayContainer=r,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=_}create(t){const r=this._createHostElement(),s=this._createPaneElement(r),o=this._createPortalOutlet(s),a=new Wp(t);return a.direction=a.direction||this._directionality.value,new Ql(o,r,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const r=this._document.createElement("div");return r.id="cdk-overlay-"+cee++,r.classList.add("cdk-overlay-pane"),t.appendChild(r),r}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Nr)),new ZJ(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(tee),x(Yp),x(el),x(lee),x(nee),x(kt),x(ce),x(xe),x(an),x(Rd),x(ree),x(ti,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const dee=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],LN=new M("cdk-connected-overlay-scroll-strategy");let BN=(()=>{var e;class i{constructor(t){this.elementRef=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne))},e.\u0275dir=I({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),i})(),VN=(()=>{var e;class i{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=re(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=re(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=re(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=re(t)}get push(){return this._push}set push(t){this._push=re(t)}constructor(t,r,s,o,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Qe.EMPTY,this._attachSubscription=Qe.EMPTY,this._detachSubscription=Qe.EMPTY,this._positionSubscription=Qe.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new W,this.positionChange=new W,this.attach=new W,this.detach=new W,this.overlayKeydown=new W,this.overlayOutsideClick=new W,this._templatePortal=new Gp(r,s),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=dee);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),27===r.keyCode&&!this.disableClose&&!qi(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{this.overlayOutsideClick.next(r)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Wp({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(t){const r=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return t.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(t),t}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof BN?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function KJ(e,i=!1){return wt((n,t)=>{let r=0;n.subscribe(ft(t,s=>{const o=e(s,r++);(o||i)&&t.next(s),!o&&t.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ln),p(Pt),p(Vt),p(LN),p(an,8))},e.\u0275dir=I({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[bt]}),i})();const hee={provide:LN,deps:[ln],useFactory:function uee(e){return()=>e.scrollStrategies.reposition()}};let Ou=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[ln,hee],imports:[Au,Zl,Xw,Xw]}),i})();function fee(e,i){}class Fu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Jw=(()=>{var e;class i extends qp{constructor(t,r,s,o,a,l,c,d){super(),this._elementRef=t,this._focusTrapFactory=r,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=c,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const r=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),r}attachTemplatePortal(t){this._portalOutlet.hasAttached();const r=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{t.removeEventListener("blur",s),t.removeEventListener("mousedown",s),t.removeAttribute("tabindex")};t.addEventListener("blur",s),t.addEventListener("mousedown",s)})),t.focus(r)}_focusByCssSelector(t,r){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,r)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{r||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let r=null;if("string"==typeof t?r=this._document.querySelector(t):"boolean"==typeof t?r=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(r=t),this._config.restoreFocus&&r&&"function"==typeof r.focus){const s=Op(),o=this._elementRef.nativeElement;(!s||s===this._document.body||s===o||o.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,r=Op();return t===r||t.contains(r)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Op())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(Fu),p(Gl),p(ce),p(Ql),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(t,r){if(1&t&&Xe(Xl,7),2&t){let s;Q(s=J())&&(r._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,r){2&t&&_e("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Z(0,fee,0,0,"ng-template",0)},dependencies:[Xl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class ex{constructor(i,n){this.overlayRef=i,this.config=n,this.closed=new $,this.disableClose=n.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!qi(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==n.closeOnOverlayDetachments&&this.close()})}close(i,n){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(i),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",n=""){return this.overlayRef.updateSize({width:i,height:n}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const jN=new M("DialogScrollStrategy"),mee=new M("DialogData"),pee=new M("DefaultDialogConfig"),_ee={provide:jN,deps:[ln],useFactory:function gee(e){return()=>e.scrollStrategies.block()}};let bee=0,tx=(()=>{var e;class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,r,s,o,a,l){this._overlay=t,this._injector=r,this._defaultOptions=s,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this._ariaHiddenElements=new Map,this.afterAllClosed=us(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Di(void 0))),this._scrollStrategy=l}open(t,r){(r={...this._defaultOptions||new Fu,...r}).id=r.id||"cdk-dialog-"+bee++,r.id&&this.getDialogById(r.id);const o=this._getOverlayConfig(r),a=this._overlay.create(o),l=new ex(a,r),c=this._attachContainer(a,l,r);return l.containerInstance=c,this._attachDialogContent(t,l,c,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){ix(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){ix(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),ix(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const r=new Wp({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(r.backdropClass=t.backdropClass),r}_attachContainer(t,r,s){const o=s.injector||s.viewContainerRef?.injector,a=[{provide:Fu,useValue:s},{provide:ex,useValue:r},{provide:Ql,useValue:t}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,a.push(...s.container.providers(s))):l=Jw;const c=new Kl(l,s.viewContainerRef,kt.create({parent:o||this._injector,providers:a}),s.componentFactoryResolver);return t.attach(c).instance}_attachDialogContent(t,r,s,o){if(t instanceof Pt){const a=this._createInjector(o,r,s,void 0);let l={$implicit:o.data,dialogRef:r};o.templateContext&&(l={...l,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),s.attachTemplatePortal(new Gp(t,null,l,a))}else{const a=this._createInjector(o,r,s,this._injector),l=s.attachComponentPortal(new Kl(t,o.viewContainerRef,a,o.componentFactoryResolver));r.componentRef=l,r.componentInstance=l.instance}}_createInjector(t,r,s,o){const a=t.injector||t.viewContainerRef?.injector,l=[{provide:mee,useValue:t.data},{provide:ex,useValue:r}];return t.providers&&("function"==typeof t.providers?l.push(...t.providers(r,t,s)):l.push(...t.providers)),t.direction&&(!a||!a.get(an,null,{optional:!0}))&&l.push({provide:an,useValue:{value:t.direction,change:ee()}}),kt.create({parent:a||o,providers:l})}_removeOpenDialog(t,r){const s=this.openDialogs.indexOf(t);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const r=t.parentElement.children;for(let s=r.length-1;s>-1;s--){const o=r[s];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(kt),x(pee,8),x(e,12),x(Yp),x(jN))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function ix(e,i){let n=e.length;for(;n--;)i(e[n])}let zN=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[tx,_ee],imports:[Ou,Zl,SN,Zl]}),i})();const vee=["text"];let nx=(()=>{var e;class i{}return(e=i).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),rx=(()=>{var e;class i{}return(e=i).COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",i})();const wee=new M("mat-sanity-checks",{providedIn:"root",factory:function yee(){return!0}});let Fe=(()=>{var e;class i{constructor(t,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Bw()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return(e=i).\u0275fac=function(t){return new(t||e)(x(DN),x(wee,8),x(xe))},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Au,Au]}),i})();function no(e){return class extends e{get disabled(){return this._disabled}set disabled(i){this._disabled=re(i)}constructor(...i){super(...i),this._disabled=!1}}}function ro(e,i){return class extends e{get color(){return this._color}set color(n){const t=n||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}constructor(...n){super(...n),this.defaultColor=i,this.color=i}}}function $r(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=re(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function Nu(e,i=0){return class extends e{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(n){this._tabIndex=null!=n?Oi(n):this.defaultTabIndex}constructor(...n){super(...n),this._tabIndex=i,this.defaultTabIndex=i}}}function sx(e){return class extends e{updateErrorState(){const i=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==i&&(this.errorState=s,this.stateChanges.next())}constructor(...i){super(...i),this.errorState=!1}}}function xee(e){return class extends e{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new et(n=>{this._isInitialized?this._notifySubscriber(n):this._pendingSubscribers.push(n)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}let Pu=(()=>{var e;class i{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ox=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Lu(e,i,n){e.nativeElement.classList.toggle(i,n)}let qN=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();class Cee{constructor(i,n,t,r=!1){this._renderer=i,this.element=n,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const WN=ps({passive:!0,capture:!0});class Dee{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const n=Vn(i);n&&this._events.get(i.type)?.forEach((t,r)=>{(r===n||r.contains(n))&&t.forEach(s=>s.handleEvent(i))})}}addHandler(i,n,t,r){const s=this._events.get(n);if(s){const o=s.get(t);o?o.add(r):s.set(t,new Set([r]))}else this._events.set(n,new Map([[t,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,WN)})}removeHandler(i,n,t){const r=this._events.get(i);if(!r)return;const s=r.get(n);s&&(s.delete(t),0===s.size&&r.delete(n),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,WN)))}}const YN={enterDuration:225,exitDuration:150},KN=ps({passive:!0,capture:!0}),XN=["mousedown","touchstart"],ZN=["mouseup","mouseleave","touchend","touchcancel"];class na{constructor(i,n,t,r){this._target=i,this._ngZone=n,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=$t(t))}fadeInRipple(i,n,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...YN,...t.animation};t.centered&&(i=r.left+r.width/2,n=r.top+r.height/2);const o=t.radius||function Eee(e,i,n){const t=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(i-n.top),Math.abs(i-n.bottom));return Math.sqrt(t*t+r*r)}(i,n,r),a=i-r.left,l=n-r.top,c=s.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-o+"px",d.style.top=l-o+"px",d.style.height=2*o+"px",d.style.width=2*o+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,_="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new Cee(this,d,t,_);d.style.transform="scale3d(1, 1, 1)",g.state=0,t.persistent||(this._mostRecentTransientRipple=g);let m=null;return!_&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const b=()=>this._finishRippleTransition(g),v=()=>this._destroyRipple(g);d.addEventListener("transitionend",b),d.addEventListener("transitioncancel",v),m={onTransitionEnd:b,onTransitionCancel:v}}),this._activeRipples.set(g,m),(_||!c)&&this._finishRippleTransition(g),g}fadeOutRipple(i){if(2===i.state||3===i.state)return;const n=i.element,t={...YN,...i.config.animation};n.style.transitionDuration=`${t.exitDuration}ms`,n.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const n=$t(i);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,XN.forEach(t=>{na._eventManager.addHandler(this._ngZone,t,n,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ZN.forEach(n=>{this._triggerElement.addEventListener(n,this,KN)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const n=i===this._mostRecentTransientRipple,{persistent:t}=i.config;i.state=1,!t&&(!n||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const n=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==n&&(i.element.removeEventListener("transitionend",n.onTransitionEnd),i.element.removeEventListener("transitioncancel",n.onTransitionCancel)),i.element.remove()}_onMousedown(i){const n=Uw(i),t=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&(XN.forEach(n=>na._eventManager.removeHandler(n,i,this)),this._pointerUpEventsRegistered&&ZN.forEach(n=>i.removeEventListener(n,this,KN)))}}na._eventManager=new Dee;const Kp=new M("mat-ripple-global-options");let dr=(()=>{var e;class i{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,r,s,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new na(this,r,t,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,s){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,r,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(ce),p(Ot),p(Kp,8),p(ti,8))},e.\u0275dir=I({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),Jl=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})(),QN=(()=>{var e;class i{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,r){2&t&&fe("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),i})(),ax=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe]}),i})();const JN=new M("MAT_OPTION_PARENT_COMPONENT"),eP=new M("MatOptgroup");let Mee=0;class Tee{constructor(i,n=!1){this.source=i,this.isUserInput=n}}let Iee=(()=>{var e;class i{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=re(t)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(t,r,s,o){this._element=t,this._changeDetectorRef=r,this._parent=s,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Mee++,this.onSelectionChange=new W,this._stateChanges=new $}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,r){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!qi(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Tee(this,t))}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275dir=I({type:e,viewQuery:function(t,r){if(1&t&&Xe(vee,7),2&t){let s;Q(s=J())&&(r._text=s.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})();function tP(e,i,n){if(n.length){let t=i.toArray(),r=n.toArray(),s=0;for(let o=0;oi()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const n="start"==i?this._onStartFns:this._onDoneFns;n.forEach(t=>t()),n.length=0}}class rP{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let n=0,t=0,r=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++n==s&&this._onFinish()}),o.onDestroy(()=>{++t==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const n=i*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,n/t.totalTime):1;t.setPosition(r)})}getPosition(){const i=this.players.reduce((n,t)=>null===n||t.totalTime>n.totalTime?t:n,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const n="start"==i?this._onStartFns:this._onDoneFns;n.forEach(t=>t()),n.length=0}}class Zp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let Oee=(()=>{var e;class i extends Jw{constructor(t,r,s,o,a,l,c,d){super(t,r,s,o,a,l,c,d),this._animationStateChanged=new W}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(Zp),p(Gl),p(ce),p(Ql),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],features:[L],decls:0,vars:0,template:function(t,r){},encapsulation:2}),i})();class Fee{constructor(i,n,t){this._ref=i,this._containerInstance=t,this._afterOpened=new $,this._beforeClosed=new $,this._state=0,this.disableClose=n.disableClose,this.id=i.id,t._animationStateChanged.pipe($e(r=>"opened"===r.state),ze(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe($e(r=>"closed"===r.state),ze(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ft(this.backdropClick(),this.keydownEvents().pipe($e(r=>27===r.keyCode&&!this.disableClose&&!qi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sP(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe($e(n=>"closing"===n.state),ze(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let n=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?n.left(i.left):n.right(i.right):n.centerHorizontally(),i&&(i.top||i.bottom)?i.top?n.top(i.top):n.bottom(i.bottom):n.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",n=""){return this._ref.updateSize(i,n),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function sP(e,i,n){return e._closeInteractionType=i,e.close(n)}let Lee=0,Bee=(()=>{var e;class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,r,s,o,a,l,c,d,u,h){this._overlay=t,this._defaultOptions=s,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this._idPrefix="mat-dialog-",this.dialogConfigClass=Zp,this.afterAllClosed=us(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Di(void 0))),this._scrollStrategy=l,this._dialog=r.get(tx)}open(t,r){let s;(r={...this._defaultOptions||new Zp,...r}).id=r.id||`${this._idPrefix}${Lee++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...r,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:Fu,useValue:r}]},templateContext:()=>({dialogRef:s}),providers:(a,l,c)=>(s=new this._dialogRefConstructor(a,r,c),s.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentRef=o.componentRef,s.componentInstance=o.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(s);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let r=t.length;for(;r--;)t[r].close()}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const Qp={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Vee={dialogContainer:Si("dialogContainer",[gt("void, exit",Ee({opacity:0,transform:"scale(0.7)"})),gt("enter",Ee({transform:"none"})),_t("* => enter",Xp([St("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ee({transform:"none",opacity:1})),sa("@*",ra(),{optional:!0})]),Qp),_t("* => void, * => exit",Xp([St("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ee({opacity:0})),sa("@*",ra(),{optional:!0})]),Qp)])};function jee(e,i){}const oP_params_enterAnimationDuration="150ms",oP_params_exitAnimationDuration="75ms";class aP extends Zp{constructor(){super(...arguments),this.enterAnimationDuration=Qp.params.enterAnimationDuration,this.exitAnimationDuration=Qp.params.exitAnimationDuration}}let zee=(()=>{var e;class i extends Oee{_onAnimationDone({toState:t,totalTime:r}){"enter"===t?this._openAnimationDone(r):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:r})}_onAnimationStart({toState:t,totalTime:r}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:r}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:r})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(t,r,s,o,a,l,c,d,u){super(t,r,s,o,a,l,c,u),this._changeDetectorRef=d,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||oP_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||oP_params_exitAnimationDuration}}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(aP),p(Gl),p(ce),p(Ql),p(st),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,r){1&t&&pl("@dialogContainer.start",function(o){return r._onAnimationStart(o)})("@dialogContainer.done",function(o){return r._onAnimationDone(o)}),2&t&&(On("id",r._config.id),_e("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),_l("@dialogContainer",r._getAnimationState()))},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Z(0,jee,0,0,"ng-template",0)},dependencies:[Xl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Vee.dialogContainer]}}),i})();class so extends Fee{}const ju=new M("MatDialogData"),Hee=new M("mat-dialog-default-options"),lP=new M("mat-dialog-scroll-strategy"),Uee={provide:lP,deps:[ln],useFactory:function $ee(e){return()=>e.scrollStrategies.block()}};let oo=(()=>{var e;class i extends Bee{constructor(t,r,s,o,a,l,c,d){super(t,r,o,l,c,a,so,zee,ju,d),this.dialogConfigClass=aP}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(kt),x(Rd,8),x(Hee,8),x(lP),x(e,12),x(Yp),x(ti,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),Gee=0,qee=(()=>{var e;class i{constructor(t,r,s){this.dialogRef=t,this._elementRef=r,this._dialog=s,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=uP(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const r=t._matDialogClose||t._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(t){sP(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so,8),p(ne),p(oo))},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,r){1&t&&H("click",function(o){return r._onButtonClick(o)}),2&t&&_e("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[bt]}),i})(),cP=(()=>{var e;class i{constructor(t,r,s){this._dialogRef=t,this._elementRef=r,this._dialog=s,this.id="mat-dialog-title-"+Gee++}ngOnInit(){this._dialogRef||(this._dialogRef=uP(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so,8),p(ne),p(oo))},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,r){2&t&&On("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),dP=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),cx=(()=>{var e;class i{constructor(){this.align="start"}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(t,r){2&t&&fe("mat-dialog-actions-align-center","center"===r.align)("mat-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"}}),i})();function uP(e,i){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?i.find(t=>t.id===n.id):null}let hP=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[oo,Uee],imports:[zN,Ou,Zl,Fe,Fe]}),i})();class fP{}function Jp(e){return e&&"function"==typeof e.connect&&!(e instanceof Qm)}class dx{applyChanges(i,n,t,r,s){i.forEachOperation((o,a,l)=>{let c,d;if(null==o.previousIndex){const u=t(o,a,l);c=n.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==l?(n.remove(a),d=3):(c=n.get(a),n.move(c,l),d=2);s&&s({context:c?.context,operation:d,record:o})})}detach(){}}class ao{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,n,t=!0,r){this._multiple=i,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new $,n&&n.length&&(i?n.forEach(s=>this._markSelected(s)):this._markSelected(n[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(t=>this._markSelected(t));const n=this._hasQueuedChanges();return this._emitChangeEvent(),n}deselect(...i){this._verifyValueAssignment(i),i.forEach(t=>this._unmarkSelected(t));const n=this._hasQueuedChanges();return this._emitChangeEvent(),n}setSelection(...i){this._verifyValueAssignment(i);const n=this.selected,t=new Set(i);i.forEach(s=>this._markSelected(s)),n.filter(s=>!t.has(s)).forEach(s=>this._unmarkSelected(s));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const n=this._hasQueuedChanges();return i&&this._emitChangeEvent(),n}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let n of this._selection)if(this.compareWith(i,n))return n;return i}return i}}const oa=new M("_ViewRepeater");class Wee{constructor(){this.expansionModel=new ao(!0)}toggle(i){this.expansionModel.toggle(this._trackByValue(i))}expand(i){this.expansionModel.select(this._trackByValue(i))}collapse(i){this.expansionModel.deselect(this._trackByValue(i))}isExpanded(i){return this.expansionModel.isSelected(this._trackByValue(i))}toggleDescendants(i){this.expansionModel.isSelected(this._trackByValue(i))?this.collapseDescendants(i):this.expandDescendants(i)}collapseAll(){this.expansionModel.clear()}expandDescendants(i){let n=[i];n.push(...this.getDescendants(i)),this.expansionModel.select(...n.map(t=>this._trackByValue(t)))}collapseDescendants(i){let n=[i];n.push(...this.getDescendants(i)),this.expansionModel.deselect(...n.map(t=>this._trackByValue(t)))}_trackByValue(i){return this.trackBy?this.trackBy(i):i}}class Yee extends Wee{constructor(i,n,t){super(),this.getLevel=i,this.isExpandable=n,this.options=t,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(i){const t=[];for(let r=this.dataNodes.indexOf(i)+1;rthis._trackByValue(i)))}}const eg=new M("CDK_TREE_NODE_OUTLET_NODE");let zu=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this._node=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(eg,8))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodeOutlet",""]]}),i})();class Kee{constructor(i){this.$implicit=i}}let tg=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),i})(),_s=(()=>{var e;class i{get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}constructor(t,r){this._differs=t,this._changeDetectorRef=r,this._onDestroy=new $,this._levels=new Map,this.viewChange=new Et({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(r=>!r.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;Jp(this._dataSource)?t=this._dataSource.connect(this):Bn(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=ee(this._dataSource)),t&&(this._dataSubscription=t.pipe(ke(this._onDestroy)).subscribe(r=>this.renderNodeChanges(r)))}renderNodeChanges(t,r=this._dataDiffer,s=this._nodeOutlet.viewContainer,o){const a=r.diff(t);a&&(a.forEachOperation((l,c,d)=>{if(null==l.previousIndex)this.insertNode(t[d],d,s,o);else if(null==d)s.remove(c),this._levels.delete(l.item);else{const u=s.get(c);s.move(u,d)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,r){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(o=>o.when&&o.when(r,t))||this._defaultNodeDef}insertNode(t,r,s,o){const a=this._getNodeDef(t,r),l=new Kee(t);l.level=this.treeControl.getLevel?this.treeControl.getLevel(t):typeof o<"u"&&this._levels.has(o)?this._levels.get(o)+1:0,this._levels.set(t,l.level),(s||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,l,r),Ur.mostRecentTreeNode&&(Ur.mostRecentTreeNode.data=t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fn),p(st))},e.\u0275cmp=ie({type:e,selectors:[["cdk-tree"]],contentQueries:function(t,r,s){if(1&t&&Me(s,tg,5),2&t){let o;Q(o=J())&&(r._nodeDefs=o)}},viewQuery:function(t,r){if(1&t&&Xe(zu,7),2&t){let s;Q(s=J())&&(r._nodeOutlet=s.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[zu],encapsulation:2}),i})(),Ur=(()=>{var e;class i{get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(t,r){this._elementRef=t,this._tree=r,this._destroyed=new $,this._dataChanges=new $,i.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function Xee(e){let i=e.parentElement;for(;i&&!Zee(i);)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?Oi(i.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){i.mostRecentTreeNode===this&&(i.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return(e=i).mostRecentTreeNode=null,e.\u0275fac=function(t){return new(t||e)(p(ne),p(_s))},e.\u0275dir=I({type:e,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(t,r){2&t&&_e("aria-expanded",r.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),i})();function Zee(e){const i=e.classList;return!(!i?.contains("cdk-nested-tree-node")&&!i?.contains("cdk-tree"))}const Qee=/([A-Za-z%]+)$/;let fx=(()=>{var e;class i{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}constructor(t,r,s,o){this._treeNode=t,this._tree=r,this._element=s,this._dir=o,this._destroyed=new $,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe(ke(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,r=null==this._level?t:this._level;return"number"==typeof r?`${r*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const r=this._paddingIndent();if(r!==this._currentPadding||t){const s=this._element.nativeElement,o=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",a="paddingLeft"===o?"paddingRight":"paddingLeft";s.style[o]=r||"",s.style[a]="",this._currentPadding=r}}_setLevelInput(t){this._level=Oi(t,null),this._setPadding()}_setIndentInput(t){let r=t,s="px";if("string"==typeof t){const o=t.split(Qee);r=o[0],s=o[1]||s}this.indentUnits=s,this._indent=Oi(r),this._setPadding()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Ur),p(_s),p(ne),p(an,8))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),i})(),mx=(()=>{var e;class i{get recursive(){return this._recursive}set recursive(t){this._recursive=re(t)}constructor(t,r){this._tree=t,this._treeNode=r,this._recursive=!1}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(_s),p(Ur))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,r){1&t&&H("click",function(o){return r._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),i})(),Jee=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const ete=Nu(no(Ur));let mP=(()=>{var e;class i extends ete{constructor(t,r,s){super(t,r),this.tabIndex=Number(s)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(_s),Mi("tabindex"))},e.\u0275dir=I({type:e,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[K([{provide:Ur,useExisting:e}]),L]}),i})(),pP=(()=>{var e;class i extends tg{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[K([{provide:tg,useExisting:e}]),L]}),i})(),gP=(()=>{var e;class i extends fx{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[K([{provide:fx,useExisting:e}]),L]}),i})(),px=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this._node=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(eg,8))},e.\u0275dir=I({type:e,selectors:[["","matTreeNodeOutlet",""]],features:[K([{provide:zu,useExisting:e}])]}),i})(),_P=(()=>{var e;class i extends _s{constructor(){super(...arguments),this._nodeOutlet=void 0}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-tree"]],viewQuery:function(t,r){if(1&t&&Xe(px,7),2&t){let s;Q(s=J())&&(r._nodeOutlet=s.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[K([{provide:_s,useExisting:e}]),L],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[px],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),i})(),bP=(()=>{var e;class i extends mx{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[K([{provide:mx,useExisting:e}]),L]}),i})(),vP=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jee,Fe,Fe]}),i})();class ite{constructor(i,n,t,r){this.transformFunction=i,this.getLevel=n,this.isExpandable=t,this.getChildren=r}_flattenNode(i,n,t,r){const s=this.transformFunction(i,n);if(t.push(s),this.isExpandable(s)){const o=this.getChildren(i);o&&(Array.isArray(o)?this._flattenChildren(o,n,t,r):o.pipe(ze(1)).subscribe(a=>{this._flattenChildren(a,n,t,r)}))}return t}_flattenChildren(i,n,t,r){i.forEach((s,o)=>{let a=r.slice();a.push(o!=i.length-1),this._flattenNode(s,n+1,t,a)})}flattenNodes(i){let n=[];return i.forEach(t=>this._flattenNode(t,0,n,[])),n}expandFlattenedNodes(i,n){let t=[],r=[];return r[0]=!0,i.forEach(s=>{let o=!0;for(let a=0;a<=this.getLevel(s);a++)o=o&&r[a];o&&t.push(s),this.isExpandable(s)&&(r[this.getLevel(s)+1]=n.isExpanded(s))}),t}}class nte extends fP{get data(){return this._data.value}set data(i){this._data.next(i),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(i,n,t){super(),this._treeControl=i,this._treeFlattener=n,this._flattenedData=new Et([]),this._expandedData=new Et([]),this._data=new Et([]),t&&(this.data=t)}connect(i){return Ft(i.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(se(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}function yP(e,i,n,t,r,s,o){try{var a=e[s](o),l=a.value}catch(c){return void n(c)}a.done?i(l):Promise.resolve(l).then(t,r)}function Hu(e){return function(){var i=this,n=arguments;return new Promise(function(t,r){var s=e.apply(i,n);function o(l){yP(s,t,r,o,a,"next",l)}function a(l){yP(s,t,r,o,a,"throw",l)}o(void 0)})}}const gx=ci("[settings.language] set",{_as:"props",_p:void 0}),_x=ci("[settings.sidebar] set",{_as:"props",_p:void 0}),wP=ci("[settings.sidebar] toggle"),xP=ci("[settings.theme] toggle"),kP=ci("[settings.selectedFeedback] set",{_as:"props",_p:void 0}),CP=ci("[assignments] store",{_as:"props",_p:void 0}),rte=ci("[assignments] remove",{_as:"props",_p:void 0}),ste=ci("[assignments] clear"),DP=ci("[assignments] complete",{_as:"props",_p:void 0}),ig=ci("[graph.simulation] enable"),SP=ci("[graph.simulation] toggle"),EP=ci("[graph.labels] toggle"),bx=ci("[graphStore] store",{_as:"props",_p:void 0}),MP=ci("[graphStore] remove",{_as:"props",_p:void 0}),ote=ci("[graphStore] clear"),TP=ci("[graphCache] cache",{_as:"props",_p:void 0}),ate=ci("[graphCache] remove",{_as:"props",_p:void 0}),lte=ci("[graphCache] clear"),cte=["mat-button",""],dte=["*"],hte=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],fte=ro(no($r(class{constructor(e){this._elementRef=e}})));let Fi=(()=>{var e;class i extends fte{constructor(t,r,s){super(t),this._focusMonitor=r,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of hte)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._getHostElement(),t,r):this._getHostElement().focus(r)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(r=>this._getHostElement().hasAttribute(r))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(xn),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,r){if(1&t&&Xe(dr,5),2&t){let s;Q(s=J())&&(r.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,r){2&t&&(_e("disabled",r.disabled||null),fe("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-button-disabled",r.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[L],attrs:cte,ngContentSelectors:dte,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,r){1&t&&(ct(),k(0,"span",0),we(1),D(),be(2,"span",1)(3,"span",2)),2&t&&(C(2),fe("mat-button-ripple-round",r.isRoundButton||r.isIconButton),R("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",r.isIconButton)("matRippleTrigger",r._getHostElement()))},dependencies:[dr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),i})(),vx=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jl,Fe,Fe]}),i})();const mte=Math.pow(2,31)-1;class yx{constructor(i,n){this._overlayRef=n,this._afterDismissed=new $,this._afterOpened=new $,this._onAction=new $,this._dismissedByAction=!1,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,mte))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const IP=new M("MatSnackBarData");class ng{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const pte={snackBarState:Si("state",[gt("void, hidden",Ee({transform:"scale(0.8)",opacity:0})),gt("visible",Ee({transform:"scale(1)",opacity:1})),_t("* => visible",St("150ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void, * => hidden",St("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ee({opacity:0})))])};let gte=0,_te=(()=>{var e;class i extends qp{constructor(t,r,s,o,a){super(),this._ngZone=t,this._elementRef=r,this._changeDetectorRef=s,this._platform=o,this.snackBarConfig=a,this._document=G(xe),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new $,this._onExit=new $,this._onEnter=new $,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+gte++,this.attachDomPortal=l=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();const r=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),r}attachTemplatePortal(t){this._assertNotAttached();const r=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),r}onAnimationEnd(t){const{fromState:r,toState:s}=t;if(("void"===s&&"void"!==r||"hidden"===s)&&this._completeExit(),"visible"===s){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(ze(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const t=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(s=>t.classList.add(s)):t.classList.add(r)),this._exposeToModals()}_exposeToModals(){const t=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{const r=t.getAttribute("aria-owns");if(r){const s=r.replace(this._liveElementId,"").trim();s.length>0?t.setAttribute("aria-owns",s):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&r){let s=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(s=document.activeElement),t.removeAttribute("aria-hidden"),r.appendChild(t),s?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ce),p(ne),p(st),p(Ot),p(ng))},e.\u0275dir=I({type:e,viewQuery:function(t,r){if(1&t&&Xe(Xl,7),2&t){let s;Q(s=J())&&(r._portalOutlet=s.first)}},features:[L]}),i})();const wx=new M("mat-snack-bar-default-options",{providedIn:"root",factory:function bte(){return new ng}});let vte=(()=>{var e;class i{get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,r,s,o,a,l){this._overlay=t,this._live=r,this._injector=s,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=l,this._snackBarRefAtThisLevel=null}openFromComponent(t,r){return this._attach(t,r)}openFromTemplate(t,r){return this._attach(t,r)}open(t,r="",s){const o={...this._defaultConfig,...s};return o.data={message:t,action:r},o.announcementMessage===t&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,r){const o=kt.create({parent:r&&r.viewContainerRef&&r.viewContainerRef.injector||this._injector,providers:[{provide:ng,useValue:r}]}),a=new Kl(this.snackBarContainerComponent,r.viewContainerRef,o),l=t.attach(a);return l.instance.snackBarConfig=r,l.instance}_attach(t,r){const s={...new ng,...this._defaultConfig,...r},o=this._createOverlay(s),a=this._attachSnackBarContainer(o,s),l=new yx(a,o);if(t instanceof Pt){const c=new Gp(t,null,{$implicit:s.data,snackBarRef:l});l.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(s,l),d=new Kl(t,void 0,c),u=a.attachComponentPortal(d);l.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ke(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),s.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(l,s),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,r){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),r.duration&&r.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(r.duration))}_createOverlay(t){const r=new Wp;r.direction=t.direction;let s=this._overlay.position().global();const o="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!o||"end"===t.horizontalPosition&&o,l=!a&&"center"!==t.horizontalPosition;return a?s.left("0"):l?s.right("0"):s.centerHorizontally(),"top"===t.verticalPosition?s.top("0"):s.bottom("0"),r.positionStrategy=s,this._overlay.create(r)}_createInjector(t,r){return kt.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:yx,useValue:r},{provide:IP,useValue:t.data}]})}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(qw),x(kt),x(Mu),x(e,12),x(wx))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function yte(e,i){if(1&e){const n=Yt();k(0,"div",2)(1,"button",3),H("click",function(){return tt(n),it(ue().action())}),N(2),D()()}if(2&e){const n=ue();C(2),pe(n.data.action)}}function wte(e,i){}let xte=(()=>{var e;class i{constructor(t,r){this.snackBarRef=t,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(e=i).\u0275fac=function(t){return new(t||e)(p(yx),p(IP))},e.\u0275cmp=ie({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,r){1&t&&(k(0,"span",0),N(1),D(),Z(2,yte,3,1,"div",1)),2&t&&(C(1),pe(r.data.message),C(1),R("ngIf",r.hasAction))},dependencies:[ki,Fi],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),i})(),kte=(()=>{var e;class i extends _te{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,r){1&t&&pl("@state.done",function(o){return r.onAnimationEnd(o)}),2&t&&_l("@state",r._animationState)},features:[L],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,r){1&t&&(k(0,"div",0),Z(1,wte,0,0,"ng-template",1),D(),be(2,"div")),2&t&&(C(2),_e("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Xl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[pte.snackBarState]}}),i})(),xx=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ou,Zl,Ln,vx,Fe,Fe]}),i})(),Cte=(()=>{var e;class i extends vte{constructor(t,r,s,o,a,l){super(t,r,s,o,a,l),this.simpleSnackBarComponent=xte,this.snackBarContainerComponent=kte,this.handsetCssClass="mat-snack-bar-handset"}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(qw),x(kt),x(Mu),x(e,12),x(wx))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:xx}),i})(),aa=(()=>{var e;class i{constructor(t,r,s,o){this.snackBar=t,this.translate=r,this.store=s,this.log=o}openSnackBar(t,r,s=5e3){var o=this;return Hu(function*(){const a=o.translate.get(t.key,t.params),l=r?o.translate.get(r.key,r.params):ee(void 0),[c,d]=yield Fw(jd([a,l]));return o.log.debug(`Openend SnackBar - Message: ${c} - Action: ${d}`),o.snackBar.open(c,d,{duration:s})})()}graphDeleted(t){this.openSnackBar({key:"snackbar.graph-deleted",params:{name:t.name}},{key:"actions.undo"},1e4).then(r=>{const s=r.onAction().subscribe(()=>{this.store.dispatch(bx(t)),s.unsubscribe()})})}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Cte),x(Yo),x(on),x(hs))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function AP(e=0,i=Yd){return e<0&&(e=0),Kd(e,e,i)}function kx(e,i,n){for(let t in i)if(i.hasOwnProperty(t)){const r=i[t];r?e.setProperty(t,r,n?.has(t)?"important":""):e.removeProperty(t)}return e}function ec(e,i){const n=i?"":"none";kx(e.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function RP(e,i,n){kx(e.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},n)}function rg(e,i){return i&&"none"!=i?e+" "+i:e}function OP(e){const i=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*i}function Cx(e,i){return e.getPropertyValue(i).split(",").map(t=>t.trim())}function Dx(e){const i=e.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function Sx(e,i,n){const{top:t,bottom:r,left:s,right:o}=e;return n>=t&&n<=r&&i>=s&&i<=o}function $u(e,i,n){e.top+=i,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function FP(e,i,n,t){const{top:r,right:s,bottom:o,left:a,width:l,height:c}=e,d=l*i,u=c*i;return t>r-u&&ta-d&&n{this.positions.set(n,{scrollPosition:{top:n.scrollTop,left:n.scrollLeft},clientRect:Dx(n)})})}handleScroll(i){const n=Vn(i),t=this.positions.get(n);if(!t)return null;const r=t.scrollPosition;let s,o;if(n===this._document){const c=this.getViewportScrollPosition();s=c.top,o=c.left}else s=n.scrollTop,o=n.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&n!==d&&n.contains(d)&&$u(c.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function PP(e){const i=e.cloneNode(!0),n=i.querySelectorAll("[id]"),t=e.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rec(t,n)))}constructor(i,n,t,r,s,o){this._config=n,this._document=t,this._ngZone=r,this._viewportRuler=s,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new $,this._pointerMoveSubscription=Qe.EMPTY,this._pointerUpSubscription=Qe.EMPTY,this._scrollSubscription=Qe.EMPTY,this._resizeSubscription=Qe.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new $,this.started=new $,this.released=new $,this.ended=new $,this.entered=new $,this.exited=new $,this.dropped=new $,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!f)return void this._endDragSequence(a);(!_||!_.isDragging()&&!_.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=c.x-d.x+this._passiveTransform.x,u.y=c.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(i).withParent(n.parentDragRef||null),this._parentPositions=new NP(t),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(t=>$t(t)),this._handles.forEach(t=>ec(t,this.disabled)),this._toggleNativeDragInteractions();const n=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&n.add(t)}),this._disabledHandles=n,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const n=$t(i);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{n.addEventListener("mousedown",this._pointerDown,sg),n.addEventListener("touchstart",this._pointerDown,jP),n.addEventListener("dragstart",this._nativeDragStart,sg)}),this._initialTransform=void 0,this._rootElement=n),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?$t(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),ec(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),ec(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const n=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(n),dropPoint:n,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){Uu(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const n=this._dropContainer;if(n){const t=this._rootElement,r=t.parentNode,s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(o,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),RP(t,!1,Ex),this._document.body.appendChild(r.replaceChild(s,t)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:i}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(i,n){this._parentDragRef&&n.stopPropagation();const t=this.isDragging(),r=Uu(n),s=!r&&0!==n.button,o=this._rootElement,a=Vn(n),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Gw(n):Uw(n);if(a&&a.draggable&&"mousedown"===n.type&&n.preventDefault(),t||s||l||c)return;if(this._handles.length){const h=o.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Dx(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,n);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}_cleanupDragArtifacts(i){RP(this._rootElement,!0,Ex),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const n=this._dropContainer,t=n.getItemIndex(this),r=this._getPointerPositionOnPage(i),s=this._getDragDistance(r),o=n._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:s,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:n,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:r,event:i}),n.drop(this,t,this._initialIndex,this._initialContainer,o,s,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:n},{x:t,y:r}){let s=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,i,n,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,n):this._applyPreviewTransform(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,n=this.previewClass,t=i?i.template:null;let r;if(t&&i){const s=i.matchSize?this._initialClientRect:null,o=i.viewContainer.createEmbeddedView(t,i.context);o.detectChanges(),r=HP(o,this._document),this._previewRef=o,i.matchSize?$P(r,s):r.style.transform=og(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=PP(this._rootElement),$P(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return kx(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Ex),ec(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(s=>r.classList.add(s)):r.classList.add(n)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const n=function Dte(e){const i=getComputedStyle(e),n=Cx(i,"transition-property"),t=n.find(a=>"transform"===a||"all"===a);if(!t)return 0;const r=n.indexOf(t),s=Cx(i,"transition-duration"),o=Cx(i,"transition-delay");return OP(s[r])+OP(o[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=o=>{(!o||Vn(o)===this._preview&&"transform"===o.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(s))},s=setTimeout(r,1.5*n);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,n=i?i.template:null;let t;return n?(this._placeholderRef=i.viewContainer.createEmbeddedView(n,i.context),this._placeholderRef.detectChanges(),t=HP(this._placeholderRef,this._document)):t=PP(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(i,n,t){const r=n===this._rootElement?null:n,s=r?r.getBoundingClientRect():i,o=Uu(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-a.left),y:s.top-i.top+(o.pageY-s.top-a.top)}}_getPointerPositionOnPage(i){const n=this._getViewportScrollPosition(),t=Uu(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=t.pageX-n.left,s=t.pageY-n.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=s,a.matrixTransform(o.inverse())}}return{x:r,y:s}}_getConstrainedPointerPosition(i){const n=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===n?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===n)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:s,y:o}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),d=a.top+o,u=a.bottom-(c-o);t=zP(t,a.left+s,a.right-(l-s)),r=zP(r,d,u)}return{x:t,y:r}}_updatePointerDirectionDelta(i){const{x:n,y:t}=i,r=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(n-s.x),a=Math.abs(t-s.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=n>s.x?1:-1,s.x=n),a>this._config.pointerDirectionChangeThreshold&&(r.y=t>s.y?1:-1,s.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,ec(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,sg),i.removeEventListener("touchstart",this._pointerDown,jP),i.removeEventListener("dragstart",this._nativeDragStart,sg)}_applyRootElementTransform(i,n){const t=og(i,n),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=rg(t,this._initialTransform)}_applyPreviewTransform(i,n){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=og(i,n);this._preview.style.transform=rg(r,t)}_getDragDistance(i){const n=this._pickupPositionOnPage;return n?{x:i.x-n.x,y:i.y-n.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:n}=this._passiveTransform;if(0===i&&0===n||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const s=r.left-t.left,o=t.right-r.right,a=r.top-t.top,l=t.bottom-r.bottom;r.width>t.width?(s>0&&(i+=s),o>0&&(i-=o)):i=0,r.height>t.height?(a>0&&(n+=a),l>0&&(n-=l)):n=0,(i!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:i})}_getDragStartDelay(i){const n=this.dragStartDelay;return"number"==typeof n?n:Uu(i)?n.touch:n?n.mouse:0}_updateOnScroll(i){const n=this._parentPositions.handleScroll(i);if(n){const t=Vn(i);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&$u(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Lw(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,n){const t=this._previewContainer||"global";if("parent"===t)return i;if("global"===t){const r=this._document;return n||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return $t(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(n=>i.target&&(i.target===n||n.contains(i.target)))}}function og(e,i){return`translate3d(${Math.round(e)}px, ${Math.round(i)}px, 0)`}function zP(e,i,n){return Math.max(i,Math.min(n,e))}function Uu(e){return"t"===e.type[0]}function HP(e,i){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===i.ELEMENT_NODE)return n[0];const t=i.createElement("div");return n.forEach(r=>t.appendChild(r)),t}function $P(e,i){e.style.width=`${i.width}px`,e.style.height=`${i.height}px`,e.style.transform=og(i.left,i.top)}function Gu(e,i){return Math.max(0,Math.min(i,e))}class Ite{constructor(i,n){this._element=i,this._dragDropRegistry=n,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(i){this.withItems(i)}sort(i,n,t,r){const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(i,n,t,r);if(-1===o&&s.length>0)return null;const a="horizontal"===this.orientation,l=s.findIndex(m=>m.drag===i),c=s[o],u=c.clientRect,h=l>o?1:-1,f=this._getItemOffsetPx(s[l].clientRect,u,h),_=this._getSiblingOffsetPx(l,s,h),g=s.slice();return function Tte(e,i,n){const t=Gu(i,e.length-1),r=Gu(n,e.length-1);if(t===r)return;const s=e[t],o=r{if(g[b]===m)return;const v=m.drag===i,w=v?f:_,y=v?i.getPlaceholderElement():m.drag.getRootElement();m.offset+=w,a?(y.style.transform=rg(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),$u(m.clientRect,0,w)):(y.style.transform=rg(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),$u(m.clientRect,w,0))}),this._previousSwap.overlaps=Sx(u,n,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:o}}enter(i,n,t,r){const s=null==r||r<0?this._getItemIndexFromPointerPosition(i,n,t):r,o=this._activeDraggables,a=o.indexOf(i),l=i.getPlaceholderElement();let c=o[s];if(c===i&&(c=o[s+1]),!c&&(null==s||-1===s||s-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const d=c.getRootElement();d.parentElement.insertBefore(l,d),o.splice(s,0,i)}else $t(this._element).appendChild(l),o.push(i);l.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const n=i.getRootElement();if(n){const t=this._itemPositions.find(r=>r.drag===i)?.initialTransform;n.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===i)}updateOnScroll(i,n){this._itemPositions.forEach(({clientRect:t})=>{$u(t,i,n)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(n=>{const t=n.getVisibleElement();return{drag:n,offset:0,initialTransform:t.style.transform||"",clientRect:Dx(t)}}).sort((n,t)=>i?n.clientRect.left-t.clientRect.left:n.clientRect.top-t.clientRect.top)}_getItemOffsetPx(i,n,t){const r="horizontal"===this.orientation;let s=r?n.left-i.left:n.top-i.top;return-1===t&&(s+=r?n.width-i.width:n.height-i.height),s}_getSiblingOffsetPx(i,n,t){const r="horizontal"===this.orientation,s=n[i].clientRect,o=n[i+-1*t];let a=s[r?"width":"height"]*t;if(o){const l=r?"left":"top",c=r?"right":"bottom";-1===t?a-=o.clientRect[l]-s[c]:a+=s[l]-o.clientRect[c]}return a}_shouldEnterAsFirstChild(i,n){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const o=t[t.length-1].clientRect;return r?i>=o.right:n>=o.bottom}{const o=t[0].clientRect;return r?i<=o.left:n<=o.top}}_getItemIndexFromPointerPosition(i,n,t,r){const s="horizontal"===this.orientation,o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>a!==i&&((!r||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(s?r.x:r.y)!==this._previousSwap.delta)&&(s?n>=Math.floor(l.left)&&n=Math.floor(l.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new $,this.entered=new $,this.exited=new $,this.dropped=new $,this.sorted=new $,this.receivingStarted=new $,this.receivingStopped=new $,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Qe.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new $,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),AP(0,EN).pipe(ke(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-a):2===this._verticalScrollDirection&&o.scrollBy(0,a),1===this._horizontalScrollDirection?o.scrollBy(-a,0):2===this._horizontalScrollDirection&&o.scrollBy(a,0)})},this.element=$t(i),this._document=t,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new NP(t),this._sortStrategy=new Ite(this.element,n),this._sortStrategy.withSortPredicate((o,a)=>this.sortPredicate(o,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,n,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,n,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,n,t,r,s,o,a,l={}){this._reset(),this.dropped.next({item:i,currentIndex:n,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:s,distance:o,dropPoint:a,event:l})}withItems(i){const n=this._draggables;return this._draggables=i,i.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(n.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const n=$t(this.element);return this._scrollableElements=-1===i.indexOf(n)?[n,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,n,t,r){if(this.sortingDisabled||!this._clientRect||!FP(this._clientRect,.05,n,t))return;const s=this._sortStrategy.sort(i,n,t,r);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,n){if(this.autoScrollDisabled)return;let t,r=0,s=0;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||t||FP(o.clientRect,.05,i,n)&&([r,s]=function Rte(e,i,n,t){const r=qP(i,t),s=WP(i,n);let o=0,a=0;if(r){const l=e.scrollTop;1===r?l>0&&(o=1):e.scrollHeight-l>e.clientHeight&&(o=2)}if(s){const l=e.scrollLeft;1===s?l>0&&(a=1):e.scrollWidth-l>e.clientWidth&&(a=2)}return[o,a]}(a,o.clientRect,i,n),(r||s)&&(t=a))}),!r&&!s){const{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};r=qP(l,n),s=WP(l,i),t=window}t&&(r!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=s,this._scrollNode=t,(r||s)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=$t(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=$t(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=$t(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(n=>n._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,n){return null!=this._clientRect&&Sx(this._clientRect,i,n)}_getSiblingContainerFromPosition(i,n,t){return this._siblings.find(r=>r._canReceive(i,n,t))}_canReceive(i,n,t){if(!this._clientRect||!Sx(this._clientRect,n,t)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(n,t);if(!r)return!1;const s=$t(this.element);return r===s||s.contains(r)}_startReceiving(i,n){const t=this._activeSiblings;!t.has(i)&&n.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:n}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const n=this._parentPositions.handleScroll(i);n&&this._sortStrategy.updateOnScroll(n.top,n.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=Lw($t(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(n=>n.isDragging());this._siblings.forEach(n=>n._startReceiving(this,i))}}function qP(e,i){const{top:n,bottom:t,height:r}=e,s=.05*r;return i>=n-s&&i<=n+s?1:i>=t-s&&i<=t+s?2:0}function WP(e,i){const{left:n,right:t,width:r}=e,s=.05*r;return i>=n-s&&i<=n+s?1:i>=t-s&&i<=t+s?2:0}const ag=ps({passive:!1,capture:!0});let Ote=(()=>{var e;class i{constructor(t,r){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new $,this.pointerUp=new $,this.scroll=new $,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=r}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ag)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ag)}startDragging(t,r){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const s=r.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ag}),s||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:ag}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(t){const r=this._activeDragInstances.indexOf(t);r>-1&&(this._activeDragInstances.splice(r,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const r=[this.scroll];return t&&t!==this._document&&r.push(new et(s=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&s.next(l)};return t.addEventListener("scroll",a,!0),()=>{t.removeEventListener("scroll",a,!0)}}))),Ft(...r)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,r)=>{this._document.removeEventListener(r,t.handler,t.options)}),this._globalListeners.clear()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Fte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Mx=(()=>{var e;class i{constructor(t,r,s,o){this._document=t,this._ngZone=r,this._viewportRuler=s,this._dragDropRegistry=o}createDrag(t,r=Fte){return new Mte(t,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new Ate(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(ce),x(Yl),x(Ote))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Tx=new M("CDK_DRAG_PARENT"),Ix=new M("CdkDragHandle");let YP=(()=>{var e;class i{get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._stateChanges.next(this)}constructor(t,r){this.element=t,this._stateChanges=new $,this._disabled=!1,this._parentDrag=r}ngOnDestroy(){this._stateChanges.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tx,12))},e.\u0275dir=I({type:e,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[K([{provide:Ix,useExisting:e}])]}),i})();const KP=new M("CdkDragPlaceholder"),XP=new M("CdkDragPreview"),ZP=new M("CDK_DRAG_CONFIG"),QP=new M("CdkDropList");let JP=(()=>{var e;class i{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=re(t),this._dragRef.disabled=this._disabled}constructor(t,r,s,o,a,l,c,d,u,h,f){this.element=t,this.dropContainer=r,this._ngZone=o,this._viewContainerRef=a,this._dir=c,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new $,this.started=new W,this.released=new W,this.ended=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.moved=new et(_=>{const g=this._dragRef.moved.pipe(se(m=>({source:this,pointerPosition:m.pointerPosition,event:m.event,delta:m.delta,distance:m.distance}))).subscribe(_);return()=>{g.unsubscribe()}}),this._dragRef=d.createDrag(t,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),l&&this._assignDefaults(l),r&&(this._dragRef._withDropContainer(r._dropListRef),r.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ze(1),ke(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){const r=t.rootElementSelector,s=t.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=i._dragInstances.indexOf(this);t>-1&&i._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const t=this.element.nativeElement;let r=t;this.rootElementSelector&&(r=void 0!==t.closest?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):$t(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const r=this._dir,s=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof s&&s?s:Oi(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),r&&t.withDirection(r.value)}}),t.beforeStarted.pipe(ze(1)).subscribe(()=>{if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){t.withParent(i._dragInstances.find(s=>s.element.nativeElement===r)?._dragRef||null);break}r=r.parentElement}})}_handleEvents(t){t.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),t.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),t.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),t.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(t){const{lockAxis:r,dragStartDelay:s,constrainPosition:o,previewClass:a,boundaryElement:l,draggingDisabled:c,rootElementSelector:d,previewContainer:u}=t;this.disabled=c??!1,this.dragStartDelay=s||0,r&&(this.lockAxis=r),o&&(this.constrainPosition=o),a&&(this.previewClass=a),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(Di(this._handles),zt(t=>{const r=t.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),ei(t=>Ft(...t.map(r=>r._stateChanges.pipe(Di(r))))),ke(this._destroyed)).subscribe(t=>{const r=this._dragRef,s=t.element.nativeElement;t.disabled?r.disableHandle(s):r.enableHandle(s)})}}return(e=i)._dragInstances=[],e.\u0275fac=function(t){return new(t||e)(p(ne),p(QP,12),p(xe),p(ce),p(Vt),p(ZP,8),p(an,8),p(Mx),p(st),p(Ix,10),p(Tx,12))},e.\u0275dir=I({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,XP,5),Me(s,KP,5),Me(s,Ix,5)),2&t){let o;Q(o=J())&&(r._previewTemplate=o.first),Q(o=J())&&(r._placeholderTemplate=o.first),Q(o=J())&&(r._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,r){2&t&&fe("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[K([{provide:Tx,useExisting:e}]),bt]}),i})(),e2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Mx],imports:[ta]}),i})();const jte=["*"];let lg;function qu(e){return function zte(){if(void 0===lg&&(lg=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(lg=e.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return lg}()?.createHTML(e)||e}function t2(e){return Error(`Unable to find icon with the name "${e}"`)}function n2(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function r2(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class la{constructor(i,n,t){this.url=i,this.svgText=n,this.options=t}}let cg=(()=>{var e;class i{constructor(t,r,s,o){this._httpClient=t,this._sanitizer=r,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(t,r,s){return this.addSvgIconInNamespace("",t,r,s)}addSvgIconLiteral(t,r,s){return this.addSvgIconLiteralInNamespace("",t,r,s)}addSvgIconInNamespace(t,r,s,o){return this._addSvgIconConfig(t,r,new la(s,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,s,o){const a=this._sanitizer.sanitize(xi.HTML,s);if(!a)throw r2(s);const l=qu(a);return this._addSvgIconConfig(t,r,new la("",l,o))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,s){return this._addSvgIconSetConfig(t,new la(r,null,s))}addSvgIconSetLiteralInNamespace(t,r,s){const o=this._sanitizer.sanitize(xi.HTML,r);if(!o)throw r2(r);const a=qu(o);return this._addSvgIconSetConfig(t,new la("",a,s))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const r=this._sanitizer.sanitize(xi.RESOURCE_URL,t);if(!r)throw n2(t);const s=this._cachedIconsByUrl.get(r);return s?ee(dg(s)):this._loadSvgIconFromConfig(new la(t,null)).pipe(zt(o=>this._cachedIconsByUrl.set(r,o)),se(o=>dg(o)))}getNamedSvgIcon(t,r=""){const s=s2(r,t);let o=this._svgIconConfigs.get(s);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(r,t),o)return this._svgIconConfigs.set(s,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(t,a):Ys(t2(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?ee(dg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(se(r=>dg(r)))}_getSvgFromIconSetConfigs(t,r){const s=this._extractIconWithNameFromAnySet(t,r);return s?ee(s):jd(r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(lr(l=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(xi.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(d)),ee(null)})))).pipe(se(()=>{const a=this._extractIconWithNameFromAnySet(t,r);if(!a)throw t2(t);return a}))}_extractIconWithNameFromAnySet(t,r){for(let s=r.length-1;s>=0;s--){const o=r[s];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const a=this._svgElementFromConfig(o),l=this._extractSvgIconFromSet(a,t,o.options);if(l)return l}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(zt(r=>t.svgText=r),se(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?ee(null):this._fetchIcon(t).pipe(zt(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,s){const o=t.querySelector(`[id="${r}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,s);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),s);const l=this._svgElementFromString(qu(""));return l.appendChild(a),this._setSvgAttributes(l,s)}_svgElementFromString(t){const r=this._document.createElement("DIV");r.innerHTML=t;const s=r.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(t){const r=this._svgElementFromString(qu("")),s=t.attributes;for(let o=0;oqu(d)),Sl(()=>this._inProgressUrlFetches.delete(a)),Vh());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,r,s){return this._svgIconConfigs.set(s2(t,r),s),this}_addSvgIconSetConfig(t,r){const s=this._iconSetConfigs.get(t);return s?s.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){const r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let s=0;si?i.pathname+i.search:""}}}),o2=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Kte=o2.map(e=>`[${e}]`).join(", "),Xte=/^url\(['"]?#(.*?)['"]?\)$/;let kn=(()=>{var e;class i extends Gte{get inline(){return this._inline}set inline(t){this._inline=re(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(t,r,s,o,a,l){super(t),this._iconRegistry=r,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Qe.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let r=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const s=t.childNodes[r];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>t.classList.remove(s)),r.forEach(s=>t.classList.add(s)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const r=this._elementsWithExternalReferences;r&&r.forEach((s,o)=>{s.forEach(a=>{o.setAttribute(a.name,`url('${t}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(t){const r=t.querySelectorAll(Kte),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const l=r[o],c=l.getAttribute(a),d=c?c.match(Xte):null;if(d){let u=s.get(l);u||(u=[],s.set(l,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[r,s]=this._splitIconName(t);r&&(this._svgNamespace=r),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,r).pipe(ze(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${s}! ${o.message}`))})}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(cg),Mi("aria-hidden"),p(Wte),p(Tr),p(qte,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(t,r){2&t&&(_e("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),fe("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[L],ngContentSelectors:jte,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),i})(),a2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})(),iie=0;const nie=Nu(ro($r(no(class{constructor(e){this._elementRef=e}}))));let c2=(()=>{var e;class i extends nie{get required(){return this._required}set required(t){this._required=re(t)}get checked(){return this._checked}set checked(t){this._checked=re(t),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(t){this._hideIcon=re(t)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,r,s,o,a,l,c){super(t),this._focusMonitor=r,this._changeDetectorRef=s,this.defaults=a,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new W,this.toggleChange=new W,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===l,this.id=this._uniqueId=`${c}${++iie}`,this._hideIcon=a.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275dir=I({type:e,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[L]}),i})(),d2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const aie=["input"],lie=function(e){return{enterDuration:e}},cie=["*"],die=new M("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),uie={provide:Ci,useExisting:Ye(()=>Rx),multi:!0};class hie{constructor(i,n){this.source=i,this.checked=n}}let Rx=(()=>{var e;class i extends c2{constructor(t,r,s,o,a,l){super(t,r,s,o,a,l,"mat-slide-toggle-")}_createChangeEvent(t){return new hie(this,t)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}focus(t,r){r?this._focusMonitor.focusVia(this._inputElement,r,t):this._inputElement.nativeElement.focus(t)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(xn),p(st),Mi("tabindex"),p(die),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,r){if(1&t&&Xe(aie,5),2&t){let s;Q(s=J())&&(r._inputElement=s.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(t,r){2&t&&(On("id",r.id),_e("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),fe("mat-checked",r.checked)("mat-disabled",r.disabled)("mat-slide-toggle-label-before","before"==r.labelPosition)("_mat-animation-noopable",r._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[K([uie]),L],ngContentSelectors:cie,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,r){if(1&t&&(ct(),k(0,"label",0,1)(2,"span",2)(3,"input",3,4),H("change",function(o){return r._onChangeEvent(o)})("click",function(o){return r._onInputClick(o)}),D(),k(5,"span",5),be(6,"span",6),k(7,"span",7),be(8,"span",8),D()()(),k(9,"span",9,10),H("cdkObserveContent",function(){return r._onLabelTextChange()}),k(11,"span",11),N(12,"\xa0"),D(),we(13),D()()),2&t){const s=Rt(1),o=Rt(10);_e("for",r.inputId),C(2),fe("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),C(1),R("id",r.inputId)("required",r.required)("tabIndex",r.tabIndex)("checked",r.checked)("disabled",r.disabled),_e("name",r.name)("aria-checked",r.checked)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),C(4),R("matRippleTrigger",s)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",cm(18,lie,r._noopAnimations?0:150))}},dependencies:[dr,Bp],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),i})(),u2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[d2,Jl,Fe,Vp,d2,Fe]}),i})();const fie=["trace",""];let mie=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["apollo-trace","trace",""]],inputs:{trace:"trace"},attrs:fie,decls:6,vars:7,consts:[[1,"trace"],[1,"formula"],[1,"descriprion"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"span",1),N(2),D(),k(3,"span",2),N(4),U(5,"translate"),D()()),2&t&&(fe("invalid",r.trace.isModel!==r.trace.shouldBeModel),C(2),pe(r.trace.formula),C(2),pe(yl(5,4,r.trace.description.key,r.trace.description.params)))},dependencies:[di],styles:["[_nghost-%COMP%]{width:100%}.trace[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.trace.invalid[_ngcontent-%COMP%]{color:#f44336}.trace[_ngcontent-%COMP%] .formula[_ngcontent-%COMP%]{margin-right:1rem}"]}),i})();function pie(e,i){if(1&e&&(k(0,"mat-tree-node",12),be(1,"button",13)(2,"apollo-trace",14),D()),2&e){const n=i.$implicit;fe("result-tree-invisible",!n.visible),C(2),R("trace",n.trace)}}function gie(e,i){if(1&e&&(k(0,"mat-tree-node",12)(1,"button",15)(2,"mat-icon",16),N(3),D()(),be(4,"apollo-trace",14),D()),2&e){const n=i.$implicit,t=ue(2);fe("result-tree-invisible",!n.visible),C(2),fe("invalid",n.trace.isModel!==n.trace.shouldBeModel),C(1),ot(" ",t.treeControl.isExpanded(n)?"expand_more":"chevron_right"," "),C(1),R("trace",n.trace)}}function _ie(e,i){if(1&e&&(k(0,"mat-dialog-content",8)(1,"mat-tree",9),Z(2,pie,3,3,"mat-tree-node",10),Z(3,gie,5,6,"mat-tree-node",11),D()()),2&e){const n=ue();C(1),R("dataSource",n.dataSource)("treeControl",n.treeControl),C(2),R("matTreeNodeDefWhen",n.hasChild)}}function bie(e,i){if(1&e){const n=Yt();k(0,"mat-slide-toggle",19),H("change",function(r){return tt(n),it(ue(2).updateFilter(r.checked))}),N(1),U(2,"translate"),D()}2&e&&(C(1),ot(" ",Y(2,1,"actions.filter-causes")," "))}function vie(e,i){if(1&e){const n=Yt();k(0,"mat-dialog-actions")(1,"button",17),H("click",function(){return tt(n),it(ue().expandAll())}),N(2),U(3,"translate"),D(),k(4,"button",17),H("click",function(){return tt(n),it(ue().treeControl.collapseAll())}),N(5),U(6,"translate"),D(),Z(7,bie,3,3,"mat-slide-toggle",18),D()}if(2&e){const n=ue();C(2),pe(Y(3,3,"actions.expand")),C(3),pe(Y(6,5,"actions.collapse")),C(2),R("ngIf","full"===n.result.feedback)}}let h2=(()=>{var e;class i{constructor(t,r,s){this.dialogRef=t,this.result=r,this.snackBarService=s,this.treeControl=new Yee(o=>o.level,o=>o.expandable),this.dataSource=new nte(this.treeControl,new ite(yie,o=>o.level,o=>o.expandable,o=>o.children))}ngOnInit(){this.dataSource.data=[this.result.rootTrace],"relevant"===this.result.feedback&&this.expandAll()}closeDialog(){this.dialogRef.close()}hasChild(t,r){return r.expandable}expandAll(){try{this.treeControl.expandAll()}catch{this.snackBarService.openSnackBar({key:"result-tree.expand-error"})}}updateFilter(t){t?this.filterCauses(this.treeControl.dataNodes[0],this.result.rootTrace.isModel,!0):this.treeControl.dataNodes.forEach(r=>r.visible=!0)}filterCauses(t,r,s){const a=s&&t.trace.isModel===t.trace.shouldBeModel===r;t.visible=a,this.treeControl.getDescendants(t).forEach(l=>{l.level===t.level+1&&this.filterCauses(l,r,a)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so),p(ju),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:18,vars:11,consts:[["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragBoundary",".cdk-overlay-container",1,"header-container"],[1,"title-container"],["mat-dialog-title",""],[1,"icon-container"],["mat-icon-button","","color","primary","disableRipple","","cdkDragHandle","",1,"drag-handle"],["mat-icon-button","","color","warn",3,"click"],["class","tree-container",4,"ngIf"],[4,"ngIf"],[1,"tree-container"],[3,"dataSource","treeControl"],["matTreeNodePadding","",3,"result-tree-invisible",4,"matTreeNodeDef"],["matTreeNodePadding","",3,"result-tree-invisible",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodePadding",""],["mat-icon-button","","disabled",""],[3,"trace"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["mat-raised-button","","color","primary",3,"click"],["color","accent",3,"change",4,"ngIf"],["color","accent",3,"change"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"div",1)(2,"h2",2)(3,"mat-icon"),N(4),D(),N(5),U(6,"translate"),D(),k(7,"h2",2),N(8),D()(),k(9,"div",3)(10,"button",4)(11,"mat-icon"),N(12,"open_with"),D()(),k(13,"button",5),H("click",function(){return r.closeDialog()}),k(14,"mat-icon"),N(15,"cancel"),D()()()(),Z(16,_ie,4,3,"mat-dialog-content",6),Z(17,vie,8,7,"mat-dialog-actions",7)),2&t&&(fe("no-bottom-margin","minimal"===r.result.feedback),C(3),function uM(e){ir(z8,Or,e,!0)}(r.result.rootTrace.isModel===r.result.rootTrace.shouldBeModel?"valid-trace":"invalid"),C(1),pe(r.result.rootTrace.isModel===r.result.rootTrace.shouldBeModel?"done":"close"),C(1),ot(" ",Y(6,9,r.result.rootTrace.isModel?"api.valid":"api.invalid")," "),C(3),pe(r.result.rootTrace.formula),C(8),R("ngIf","minimal"!==r.result.feedback),C(1),R("ngIf",r.result.rootTrace.children))},dependencies:[ki,JP,YP,Fi,cP,dP,cx,kn,Rx,pP,gP,bP,_P,mP,mie,di],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.header-container.no-bottom-margin[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-bottom:0!important}.header-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}.header-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:1rem}.header-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.5rem}.header-container[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;vertical-align:top;margin-bottom:1rem}.header-container[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{cursor:move}.invalid[_ngcontent-%COMP%]{color:#f44336}.tree-container[_ngcontent-%COMP%]{flex-grow:1;max-height:unset}.tree-container[_ngcontent-%COMP%] .result-tree-invisible[_ngcontent-%COMP%]{display:none}.tree-container[_ngcontent-%COMP%] .result-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .tree-container[_ngcontent-%COMP%] .result-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.mat-slide-toggle[_ngcontent-%COMP%]{margin-left:.5rem}"]}),i})();function yie(e,i){return{trace:e,expandable:!!e.children&&e.children.length>0,visible:!0,level:i}}const wie=["*",[["mat-card-footer"]]],xie=["*","mat-card-footer"];let tc=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),Wu=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),Ox=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),i})(),ug=(()=>{var e;class i{constructor(){this.align="start"}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-card-actions-align-end","end"===r.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),i})(),Yu=(()=>{var e;class i{constructor(t){this._animationMode=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,r){2&t&&fe("_mat-animation-noopable","NoopAnimations"===r._animationMode)},exportAs:["matCard"],ngContentSelectors:xie,decls:2,vars:0,template:function(t,r){1&t&&(ct(wie),we(0),we(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),i})(),f2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();const kie=function(){return{condition:"A \u22a7 \u03c6"}};function Cie(e,i){if(1&e){const n=Yt();k(0,"mat-card-content",4),N(1),U(2,"translate"),k(3,"button",5),H("click",function(){tt(n);const r=ue();return it(r.showResultTreeDialog(r.result.firstTrace))}),N(4),U(5,"translate"),D()()}2&e&&(C(1),ot(" ",yl(2,2,"assignments.solution.condition-not-met",sy(7,kie))," "),C(3),pe(Y(5,5,"actions.show-reason")))}const Die=function(){return{condition:"B \u22ad \u03c6"}};function Sie(e,i){if(1&e){const n=Yt();k(0,"mat-card-content",4),N(1),U(2,"translate"),k(3,"button",5),H("click",function(){tt(n);const r=ue();return it(r.showResultTreeDialog(r.result.secondTrace))}),N(4),U(5,"translate"),D()()}2&e&&(C(1),ot(" ",yl(2,2,"assignments.solution.condition-not-met",sy(7,Die))," "),C(3),pe(Y(5,5,"actions.show-reason")))}function Eie(e,i){if(1&e){const n=Yt();k(0,"div",6)(1,"button",5),H("click",function(){return tt(n),it(ue().navigateToOverview())}),N(2),U(3,"translate"),D()()}2&e&&(C(2),pe(Y(3,1,"actions.back-to-overview")))}let Mie=(()=>{var e;class i{constructor(t,r,s,o){this.dialog=t,this.dialogRef=r,this.result=s,this.router=o}showResultTreeDialog(t){this.dialog.open(h2,{data:{rootTrace:t,feedback:"relevant"}})}navigateToOverview(){this.dialogRef.close(),this.router.navigateByUrl("/assignments")}}return(e=i).\u0275fac=function(t){return new(t||e)(p(oo),p(so),p(ju),p(Ri))},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignment-solution"]],decls:8,vars:8,consts:[[2,"display","flex","align-items","center"],[2,"margin-right","0.5rem",3,"color"],["class","trace-section",4,"ngIf"],["style","display: flex; justify-content: flex-end",4,"ngIf"],[1,"trace-section"],["mat-raised-button","","color","primary",3,"click"],[2,"display","flex","justify-content","flex-end"]],template:function(t,r){1&t&&(k(0,"mat-card-title",0)(1,"mat-icon",1),N(2),D(),N(3),U(4,"translate"),D(),Z(5,Cie,6,8,"mat-card-content",2),Z(6,Sie,6,8,"mat-card-content",2),Z(7,Eie,4,3,"div",3)),2&t&&(C(1),R("color",r.result.correct?"primary":"warn"),C(1),ot(" ",r.result.correct?"done":"close"," "),C(1),ot(" ",Y(4,6,r.result.correct?"assignments.solution.correct":"assignments.solution.not-correct"),"\n"),C(2),R("ngIf",r.result.firstTrace),C(1),R("ngIf",r.result.secondTrace),C(1),R("ngIf",r.result.correct))},dependencies:[ki,Fi,tc,Wu,kn,di],styles:[".trace-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:1rem;margin-bottom:0}.trace-section[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:.5rem}@media screen and (min-width: 801px){.trace-section[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}.trace-section[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-left:1rem;margin-top:0}}"]}),i})();const Tie=new M("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Iie=new M("mat-progress-bar-location",{providedIn:"root",factory:function Aie(){const e=G(xe),i=e?e.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),Rie=["primaryValueBar"],Oie=ro(class{constructor(e){this._elementRef=e}},"primary");let Fie=0,Nie=(()=>{var e;class i extends Oie{constructor(t,r,s,o,a,l){super(t),this._ngZone=r,this._animationMode=s,this._changeDetectorRef=l,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new W,this._animationEndSubscription=Qe.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+Fie++;const c=o?o.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${c}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===s,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(t){this._value=m2(Oi(t)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=m2(t||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Br(t,"transitionend").pipe($e(r=>r.target===t)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(ce),p(ti,8),p(Iie,8),p(Tie,8),p(st))},e.\u0275cmp=ie({type:e,selectors:[["mat-progress-bar"]],viewQuery:function(t,r){if(1&t&&Xe(Rie,5),2&t){let s;Q(s=J())&&(r._primaryValueBar=s.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,r){2&t&&(_e("aria-valuenow","indeterminate"===r.mode||"query"===r.mode?null:r.value)("mode",r.mode),fe("_mat-animation-noopable",r._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[L],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,r){1&t&&(k(0,"div",0),Eo(),k(1,"svg",1)(2,"defs")(3,"pattern",2),be(4,"circle",3),D()(),be(5,"rect",4),D(),La(),be(6,"div",5)(7,"div",6,7)(9,"div",8),D()),2&t&&(C(3),R("id",r.progressbarId),C(2),_e("fill",r._rectangleFillValue),C(1),R("ngStyle",r._bufferTransform()),C(1),R("ngStyle",r._primaryTransform()))},dependencies:[sA],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),i})();function m2(e,i=0,n=100){return Math.max(i,Math.min(n,e))}let p2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ln,Fe,Fe]}),i})(),g2=(()=>{var e;class i{constructor(t,r,s){this.dialogRef=t,this.request=r,this.snackBarService=s,this.progress$=new W,this.state=new W,this.progressMode$=this.state.pipe(se(o=>{switch(o){case"sending":return"buffer";case"querying":return"query";default:return"determinate"}})),t.disableClose=!0,this.requestSubscription=this.request.pipe(lr(o=>this.onError(o))).subscribe(o=>{switch(o.type){case Lr.Sent:this.onSent();break;case Lr.ResponseHeader:this.onHeaderReceived();break;case Lr.DownloadProgress:this.onProgress(o);break;case Lr.Response:this.onResponse(o)}})}ngOnDestroy(){this.requestSubscription?.unsubscribe()}cancelRequest(){this.dialogRef.close()}onSent(){this.state.emit("querying")}onHeaderReceived(){this.state.emit("fetching")}onProgress(t){this.progress$.emit(100*t.loaded/(t.total??Number.MAX_SAFE_INTEGER))}onResponse(t){null==t.body?this.onError({error:{message:"api.error.unknown"}}):this.dialogRef.close(t.body)}onError(t){setTimeout(()=>this.dialogRef.close(),250);const r=t?.error?.message??"api.error.unknown";return this.snackBarService.openSnackBar("string"==typeof r?{key:r}:r,void 0,1e4),ee()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so),p(ju),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:6,vars:6,consts:[[3,"mode","value"],["mat-icon-button","","color","warn",3,"click"]],template:function(t,r){1&t&&(be(0,"mat-progress-bar",0),U(1,"async"),U(2,"async"),k(3,"button",1),H("click",function(){return r.cancelRequest()}),k(4,"mat-icon"),N(5,"cancel"),D()()),2&t&&R("mode",Y(1,2,r.progressMode$)||"buffer")("value",Y(2,4,r.progress$)||0)},dependencies:[Fi,kn,Nie,Pr],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between}"]}),i})();class Pie{constructor(i,n,t,r){this.source=i,this.target=n,this.relations=new Set,this.functions=new Set,t?.forEach(s=>this.relations.add(s)),r?.forEach(s=>this.functions.add(s))}}class Lie{constructor(i,n,t,r,s){this.id=i,this.x=r,this.y=s,this.relations=new Set,this.constants=new Set,n?.forEach(o=>this.relations.add(o)),t?.forEach(o=>this.constants.add(o))}}class Cn{constructor(i=`graph_${Date.now().toString()}`,n=""){this.name=i,this.description=n,this.nodes=[],this.links=[]}static fromDomainGraph(i){return Hu(function*(){const n=new Cn(i.name,i.description);return yield Promise.all(i.nodes.map(t=>n.createNode(t.name,t.relations,t.constants))),yield Promise.all(i.edges.map(t=>n.createLink(t.source,t.target,t.relations,t.functions))),Promise.resolve(n)})()}static relationsAreValid(i){return i?.every(n=>n.charAt(0)===n.charAt(0).toUpperCase())??!0}static functionsAreValid(i){return i?.every(n=>n.charAt(0)===n.charAt(0).toLowerCase())??!0}toDomainGraph(){return{name:this.name,description:this.description,lastEdit:Date.now(),nodes:this.nodes.map(i=>({name:i.id,relations:[...i.relations],constants:[...i.constants]})),edges:this.links.map(i=>({source:i.source.id,target:i.target.id,relations:[...i.relations],functions:[...i.functions]}))}}createNodeWithGeneratedId(i,n){const t=this.nodes.map(r=>+r.id).filter(r=>!isNaN(r)).reduce((r,s)=>r>=s?r:s,-1);return this.createNode(`${t+1}`,void 0,void 0,i,n)}createNode(i,n,t,r,s){if(this.nodes.some(a=>a.id===i))return Promise.reject({key:"validation.node.duplicate",params:{node:i}});if(!Cn.relationsAreValid(n))return Promise.reject({key:"validation.node.invalid-relations",params:{node:i}});if(!Cn.functionsAreValid(t))return Promise.reject({key:"validation.node.invalid-constants",params:{node:i}});const o=new Lie(i,n,t,r,s);return this.nodes.push(o),Promise.resolve(o)}createLink(i,n,t,r){const s=this.links.find(c=>c.source.id===i&&c.target.id===n);if(void 0!==s)return Promise.reject(s);const o=this.nodes.find(c=>c.id===i);if(void 0===o)return Promise.reject({key:"validation.node.missing",params:{node:i}});const a=this.nodes.find(c=>c.id===n);if(void 0===a)return Promise.reject({key:"validation.node.missing",params:{node:n}});if(!Cn.relationsAreValid(t))return Promise.reject({key:"validation.edge.invalid-relations",params:{source:i,target:n}});if(!Cn.functionsAreValid(r))return Promise.reject({key:"validation.edge.invalid-functions",params:{source:i,target:n}});const l=new Pie(o,a,t,r);return this.links.push(l),Promise.resolve(l)}removeNode(i){const n=this.nodes.findIndex(r=>r.id===i.id);if(-1===n)return Promise.reject("validation.node.missing");this.nodes.splice(n,1);const t=this.links.filter(r=>r.source.id===i.id||r.target.id===i.id);return t.forEach(r=>{const s=this.links.indexOf(r,0);this.links.splice(s,1)}),Promise.resolve([i,t])}removeLink(i){const n=this.links.findIndex(t=>t.source.id===i.source.id&&t.target.id===i.target.id);return-1===n?Promise.reject("validation.edge.missing"):(this.links.splice(n,1),Promise.resolve(i))}}const Fx="https://apollo-backend-biem.onrender.com";let Nx=(()=>{var e;class i{constructor(t,r,s){this.http=t,this.store=r,this.translate=s}checkModel(t,r,s){return this.http.post(`${Fx}/model-checker`,{formula:r,graph:t,language:"de"===this.translate.currentLang?"de":"en",feedback:s},{reportProgress:!0,observe:"events"})}checkAssignmentSolution(t){return this.http.post(`${Fx}/assignments/${t.assignmentId}/solution`,t,{reportProgress:!0,observe:"events"})}fetchAssignments(){this.http.get(`${Fx}/assignments`).subscribe(t=>t.forEach(r=>this.store.dispatch(CP(r))))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Vm),x(on),x(Yo))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function Bie(){}function Px(e){return null==e?Bie:function(){return this.querySelector(e)}}function zie(){return[]}function _2(e){return null==e?zie:function(){return this.querySelectorAll(e)}}function b2(e){return function(){return this.matches(e)}}function v2(e){return function(i){return i.matches(e)}}var Uie=Array.prototype.find;function qie(){return this.firstElementChild}var Yie=Array.prototype.filter;function Kie(){return Array.from(this.children)}function y2(e){return new Array(e.length)}function hg(e,i){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=i}function tne(e,i,n,t,r,s){for(var a,o=0,l=i.length,c=s.length;oi?1:e>=i?0:NaN}hg.prototype={constructor:hg,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,i){return this._parent.insertBefore(e,i)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Lx="http://www.w3.org/1999/xhtml";const w2={svg:"http://www.w3.org/2000/svg",xhtml:Lx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fg(e){var i=e+="",n=i.indexOf(":");return n>=0&&"xmlns"!==(i=e.slice(0,n))&&(e=e.slice(n+1)),w2.hasOwnProperty(i)?{space:w2[i],local:e}:e}function bne(e){return function(){this.removeAttribute(e)}}function vne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function yne(e,i){return function(){this.setAttribute(e,i)}}function wne(e,i){return function(){this.setAttributeNS(e.space,e.local,i)}}function xne(e,i){return function(){var n=i.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function kne(e,i){return function(){var n=i.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function x2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Dne(e){return function(){this.style.removeProperty(e)}}function Sne(e,i,n){return function(){this.style.setProperty(e,i,n)}}function Ene(e,i,n){return function(){var t=i.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,n)}}function ic(e,i){return e.style.getPropertyValue(i)||x2(e).getComputedStyle(e,null).getPropertyValue(i)}function Tne(e){return function(){delete this[e]}}function Ine(e,i){return function(){this[e]=i}}function Ane(e,i){return function(){var n=i.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function k2(e){return e.trim().split(/^|\s+/)}function Bx(e){return e.classList||new C2(e)}function C2(e){this._node=e,this._names=k2(e.getAttribute("class")||"")}function D2(e,i){for(var n=Bx(e),t=-1,r=i.length;++t=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var T2=[null];function Dn(e,i){this._groups=e,this._parents=i}function I2(){return new Dn([[document.documentElement]],T2)}Dn.prototype=I2.prototype={constructor:Dn,select:function Vie(e){"function"!=typeof e&&(e=Px(e));for(var i=this._groups,n=i.length,t=new Array(n),r=0;r=w&&(w=v+1);!(E=m[w])&&++w<_;);y._next=E||null}}return(o=new Dn(o,t))._enter=a,o._exit=l,o},enter:function Jie(){return new Dn(this._enter||this._groups.map(y2),this._parents)},exit:function one(){return new Dn(this._exit||this._groups.map(y2),this._parents)},join:function ane(e,i,n){var t=this.enter(),r=this,s=this.exit();return"function"==typeof e?(t=e(t))&&(t=t.selection()):t=t.append(e+""),null!=i&&(r=i(r))&&(r=r.selection()),null==n?s.remove():n(s),t&&r?t.merge(r).order():r},merge:function lne(e){for(var i=e.selection?e.selection():e,n=this._groups,t=i._groups,r=n.length,o=Math.min(r,t.length),a=new Array(r),l=0;l=0;)(o=t[r])&&(s&&4^o.compareDocumentPosition(s)&&s.parentNode.insertBefore(o,s),s=o);return this},sort:function dne(e){function i(u,h){return u&&h?e(u.__data__,h.__data__):!u-!h}e||(e=une);for(var n=this._groups,t=n.length,r=new Array(t),s=0;s1?this.each((null==i?Dne:"function"==typeof i?Ene:Sne)(e,i,n??"")):ic(this.node(),e)},property:function Rne(e,i){return arguments.length>1?this.each((null==i?Tne:"function"==typeof i?Ane:Ine)(e,i)):this.node()[e]},classed:function Pne(e,i){var n=k2(e+"");if(arguments.length<2){for(var t=Bx(this.node()),r=-1,s=n.length;++r=0&&(n=i.slice(t+1),i=i.slice(0,t)),{type:i,name:n}})}(e+""),s=t.length;if(!(arguments.length<2)){for(a=i?cre:lre,r=0;r{}};function A2(){for(var t,e=0,i=arguments.length,n={};e=0&&(t=n.slice(r+1),n=n.slice(0,r)),n&&!i.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:t}})}(e+"",n),s=-1,o=t.length;if(!(arguments.length<2)){if(null!=i&&"function"!=typeof i)throw new Error("invalid callback: "+i);for(;++s0)for(var r,s,n=new Array(r),t=0;t=0&&e._call.call(void 0,i),e=e._next;--nc}()}finally{nc=0,function xre(){for(var e,n,i=gg,t=1/0;i;)i._call?(t>i._time&&(t=i._time),e=i,i=i._next):(n=i._next,i._next=null,i=e?e._next=n:gg=n);Ju=e,zx(t)}(),ca=0}}function wre(){var e=eh.now(),i=e-_g;i>O2&&(bg-=i,_g=e)}function zx(e){nc||(Zu&&(Zu=clearTimeout(Zu)),e-ca>24?(e<1/0&&(Zu=setTimeout(N2,e-eh.now()-bg)),Qu&&(Qu=clearInterval(Qu))):(Qu||(_g=eh.now(),Qu=setInterval(wre,O2)),nc=1,F2(N2)))}function P2(e,i,n){var t=new vg;return t.restart(r=>{t.stop(),e(r+i)},i=null==i?0:+i,n),t}vg.prototype=jx.prototype={constructor:vg,restart:function(e,i,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Vx():+n)+(null==i?0:+i),!this._next&&Ju!==this&&(Ju?Ju._next=this:gg=this,Ju=this),this._call=e,this._time=n,zx()},stop:function(){this._call&&(this._call=null,this._time=1/0,zx())}};var kre=pg("start","end","cancel","interrupt"),Cre=[],L2=0,Hx=2,yg=3,$x=5,wg=6;function xg(e,i,n,t,r,s){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function Dre(e,i,n){var r,t=e.__transition;function o(c){var d,u,h,f;if(1!==n.state)return l();for(d in t)if((f=t[d]).name===n.name){if(f.state===yg)return P2(o);4===f.state?(f.state=wg,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete t[d]):+dL2)throw new Error("too late; already scheduled");return n}function Gr(e,i){var n=ur(e,i);if(n.state>yg)throw new Error("too late; already running");return n}function ur(e,i){var n=e.__transition;if(!n||!(n=n[i]))throw new Error("transition not found");return n}function kg(e,i){var t,r,o,n=e.__transition,s=!0;if(n){for(o in i=null==i?null:i+"",n)(t=n[o]).name===i?(r=t.state>Hx&&t.state<$x,t.state=wg,t.timer.stop(),t.on.call(r?"interrupt":"cancel",e,e.__data__,t.index,t.group),delete n[o]):s=!1;s&&delete e.__transition}}function lo(e,i){return e=+e,i=+i,function(n){return e*(1-n)+i*n}}var Cg,j2=180/Math.PI,Gx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function z2(e,i,n,t,r,s){var o,a,l;return(o=Math.sqrt(e*e+i*i))&&(e/=o,i/=o),(l=e*n+i*t)&&(n-=e*l,t-=i*l),(a=Math.sqrt(n*n+t*t))&&(n/=a,t/=a,l/=a),e*t180?d+=360:d-c>180&&(c+=360),h.push({i:u.push(r(u)+"rotate(",null,t)-2,x:lo(c,d)})):d&&u.push(r(u)+"rotate("+d+t)}(c.rotate,d.rotate,u,h),function a(c,d,u,h){c!==d?h.push({i:u.push(r(u)+"skewX(",null,t)-2,x:lo(c,d)}):d&&u.push(r(u)+"skewX("+d+t)}(c.skewX,d.skewX,u,h),function l(c,d,u,h,f,_){if(c!==u||d!==h){var g=f.push(r(f)+"scale(",null,",",null,")");_.push({i:g-4,x:lo(c,u)},{i:g-2,x:lo(d,h)})}else(1!==u||1!==h)&&f.push(r(f)+"scale("+u+","+h+")")}(c.scaleX,c.scaleY,d.scaleX,d.scaleY,u,h),c=d=null,function(f){for(var m,_=-1,g=h.length;++_>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):8===n?Sg(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):4===n?Sg(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=Nre.exec(e))?new cn(i[1],i[2],i[3],1):(i=Pre.exec(e))?new cn(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=Lre.exec(e))?Sg(i[1],i[2],i[3],i[4]):(i=Bre.exec(e))?Sg(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=Vre.exec(e))?X2(i[1],i[2]/100,i[3]/100,1):(i=jre.exec(e))?X2(i[1],i[2]/100,i[3]/100,i[4]):U2.hasOwnProperty(e)?W2(U2[e]):"transparent"===e?new cn(NaN,NaN,NaN,0):null}function W2(e){return new cn(e>>16&255,e>>8&255,255&e,1)}function Sg(e,i,n,t){return t<=0&&(e=i=n=NaN),new cn(e,i,n,t)}function Eg(e,i,n,t){return 1===arguments.length?function $re(e){return e instanceof th||(e=rh(e)),e?new cn((e=e.rgb()).r,e.g,e.b,e.opacity):new cn}(e):new cn(e,i,n,t??1)}function cn(e,i,n,t){this.r=+e,this.g=+i,this.b=+n,this.opacity=+t}function Y2(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}`}function K2(){const e=Mg(this.opacity);return`${1===e?"rgb(":"rgba("}${da(this.r)}, ${da(this.g)}, ${da(this.b)}${1===e?")":`, ${e})`}`}function Mg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function da(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ua(e){return((e=da(e))<16?"0":"")+e.toString(16)}function X2(e,i,n,t){return t<=0?e=i=n=NaN:n<=0||n>=1?e=i=NaN:i<=0&&(e=NaN),new hr(e,i,n,t)}function Z2(e){if(e instanceof hr)return new hr(e.h,e.s,e.l,e.opacity);if(e instanceof th||(e=rh(e)),!e)return new hr;if(e instanceof hr)return e;var i=(e=e.rgb()).r/255,n=e.g/255,t=e.b/255,r=Math.min(i,n,t),s=Math.max(i,n,t),o=NaN,a=s-r,l=(s+r)/2;return a?(o=i===s?(n-t)/a+6*(n0&&l<1?0:o,new hr(o,a,l,e.opacity)}function hr(e,i,n,t){this.h=+e,this.s=+i,this.l=+n,this.opacity=+t}function Q2(e){return(e=(e||0)%360)<0?e+360:e}function Tg(e){return Math.max(0,Math.min(1,e||0))}function Yx(e,i,n){return 255*(e<60?i+(n-i)*e/60:e<180?n:e<240?i+(n-i)*(240-e)/60:i)}function J2(e,i,n,t,r){var s=e*e,o=s*e;return((1-3*e+3*s-o)*i+(4-6*s+3*o)*n+(1+3*e+3*s-3*o)*t+o*r)/6}Wx(th,rh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:G2,formatHex:G2,formatHex8:function zre(){return this.rgb().formatHex8()},formatHsl:function Hre(){return Z2(this).formatHsl()},formatRgb:q2,toString:q2}),Wx(cn,Eg,$2(th,{brighter(e){return e=null==e?Dg:Math.pow(Dg,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(da(this.r),da(this.g),da(this.b),Mg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Y2,formatHex:Y2,formatHex8:function Ure(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}${ua(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:K2,toString:K2})),Wx(hr,function Gre(e,i,n,t){return 1===arguments.length?Z2(e):new hr(e,i,n,t??1)},$2(th,{brighter(e){return e=null==e?Dg:Math.pow(Dg,e),new hr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new hr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),i=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,t=n+(n<.5?n:1-n)*i,r=2*n-t;return new cn(Yx(e>=240?e-240:e+120,r,t),Yx(e,r,t),Yx(e<120?e+240:e-120,r,t),this.opacity)},clamp(){return new hr(Q2(this.h),Tg(this.s),Tg(this.l),Mg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mg(this.opacity);return`${1===e?"hsl(":"hsla("}${Q2(this.h)}, ${100*Tg(this.s)}%, ${100*Tg(this.l)}%${1===e?")":`, ${e})`}`}}));const eL=e=>()=>e;function iL(e,i){var n=i-e;return n?function tL(e,i){return function(n){return e+n*i}}(e,n):eL(isNaN(e)?i:e)}const nL=function e(i){var n=function Kre(e){return 1==(e=+e)?iL:function(i,n){return n-i?function Yre(e,i,n){return e=Math.pow(e,n),i=Math.pow(i,n)-e,n=1/n,function(t){return Math.pow(e+t*i,n)}}(i,n,e):eL(isNaN(i)?n:i)}}(i);function t(r,s){var o=n((r=Eg(r)).r,(s=Eg(s)).r),a=n(r.g,s.g),l=n(r.b,s.b),c=iL(r.opacity,s.opacity);return function(d){return r.r=o(d),r.g=a(d),r.b=l(d),r.opacity=c(d),r+""}}return t.gamma=e,t}(1);function rL(e){return function(i){var o,a,n=i.length,t=new Array(n),r=new Array(n),s=new Array(n);for(o=0;o=1?(n=1,i-1):Math.floor(n*i),r=e[t],s=e[t+1];return J2((n-t/i)*i,t>0?e[t-1]:2*r-s,r,s,tn&&(s=i.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(t=t[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:lo(t,r)})),n=Xx.lastIndex;return n=0&&(i=i.slice(0,n)),!i||"start"===i})}(i)?Ux:Gr;return function(){var o=s(this,e),a=o.on;a!==t&&(r=(t=a).copy()).on(i,n),o.on=r}}(n,e,i))},attr:function sse(e,i){var n=fg(e),t="transform"===n?Ire:sL;return this.attrTween(e,"function"==typeof i?(n.local?rse:nse)(n,t,qx(this,"attr."+e,i)):null==i?(n.local?ese:Jre)(n):(n.local?ise:tse)(n,t,i))},attrTween:function dse(e,i){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==i)return this.tween(n,null);if("function"!=typeof i)throw new Error;var t=fg(e);return this.tween(n,(t.local?lse:cse)(t,i))},style:function Pse(e,i,n){var t="transform"==(e+="")?Tre:sL;return null==i?this.styleTween(e,function Rse(e,i){var n,t,r;return function(){var s=ic(this,e),o=(this.style.removeProperty(e),ic(this,e));return s===o?null:s===n&&o===t?r:r=i(n=s,t=o)}}(e,t)).on("end.style."+e,oL(e)):"function"==typeof i?this.styleTween(e,function Fse(e,i,n){var t,r,s;return function(){var o=ic(this,e),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(e),l=a=ic(this,e)),o===l?null:o===t&&l===r?s:(r=l,s=i(t=o,a))}}(e,t,qx(this,"style."+e,i))).each(function Nse(e,i){var n,t,r,a,s="style."+i,o="end."+s;return function(){var l=Gr(this,e),c=l.on,d=null==l.value[s]?a||(a=oL(i)):void 0;(c!==n||r!==d)&&(t=(n=c).copy()).on(o,r=d),l.on=t}}(this._id,e)):this.styleTween(e,function Ose(e,i,n){var t,s,r=n+"";return function(){var o=ic(this,e);return o===r?null:o===t?s:s=i(t=o,n)}}(e,t,i),n).on("end.style."+e,null)},styleTween:function Vse(e,i,n){var t="style."+(e+="");if(arguments.length<2)return(t=this.tween(t))&&t._value;if(null==i)return this.tween(t,null);if("function"!=typeof i)throw new Error;return this.tween(t,function Bse(e,i,n){var t,r;function s(){var o=i.apply(this,arguments);return o!==r&&(t=(r=o)&&function Lse(e,i,n){return function(t){this.style.setProperty(e,i.call(this,t),n)}}(e,o,n)),t}return s._value=i,s}(e,i,n??""))},text:function Hse(e){return this.tween("text","function"==typeof e?function zse(e){return function(){var i=e(this);this.textContent=i??""}}(qx(this,"text",e)):function jse(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function Gse(e){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function Use(e){var i,n;function t(){var r=e.apply(this,arguments);return r!==n&&(i=(n=r)&&function $se(e){return function(i){this.textContent=e.call(this,i)}}(r)),i}return t._value=e,t}(e))},remove:function Ese(){return this.on("end.remove",function Sse(e){return function(){var i=this.parentNode;for(var n in this.__transition)if(+n!==e)return;i&&i.removeChild(this)}}(this._id))},tween:function Ore(e,i){var n=this._id;if(e+="",arguments.length<2){for(var o,t=ur(this.node(),n).tween,r=0,s=t.length;r()=>e;function ik(e,{sourceEvent:i,subject:n,target:t,identifier:r,active:s,x:o,y:a,dx:l,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function loe(e){return!e.ctrlKey&&!e.button}function coe(){return this.parentNode}function doe(e,i){return i??{x:e.x,y:e.y}}function uoe(){return navigator.maxTouchPoints||"ontouchstart"in this}function gL(e,i,n,t){if(isNaN(i)||isNaN(n))return e;var r,u,h,f,_,g,m,b,v,s=e._root,o={data:t},a=e._x0,l=e._y0,c=e._x1,d=e._y1;if(!s)return e._root=o,e;for(;s.length;)if((g=i>=(u=(a+c)/2))?a=u:c=u,(m=n>=(h=(l+d)/2))?l=h:d=h,r=s,!(s=s[b=m<<1|g]))return r[b]=o,e;if(f=+e._x.call(null,s.data),_=+e._y.call(null,s.data),i===f&&n===_)return o.next=s,r?r[b]=o:e._root=o,e;do{r=r?r[b]=new Array(4):e._root=new Array(4),(g=i>=(u=(a+c)/2))?a=u:c=u,(m=n>=(h=(l+d)/2))?l=h:d=h}while((b=m<<1|g)==(v=(_>=h)<<1|f>=u));return r[v]=s,r[b]=o,e}function Wi(e,i,n,t,r){this.node=e,this.x0=i,this.y0=n,this.x1=t,this.y1=r}function Doe(e){return e[0]}function Eoe(e){return e[1]}function nk(e,i,n){var t=new rk(i??Doe,n??Eoe,NaN,NaN,NaN,NaN);return null==e?t:t.addAll(e)}function rk(e,i,n,t,r,s){this._x=e,this._y=i,this._x0=n,this._y0=t,this._x1=r,this._y1=s,this._root=void 0}function _L(e){for(var i={data:e.data},n=i;e=e.next;)n=n.next={data:e.data};return i}ik.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Yi=nk.prototype=rk.prototype;function Ki(e){return function(){return e}}function co(e){return 1e-6*(e()-.5)}function Toe(e){return e.x+e.vx}function Ioe(e){return e.y+e.vy}function Roe(e){return e.index}function bL(e,i){var n=e.get(i);if(!n)throw new Error("node not found: "+i);return n}Yi.copy=function(){var n,t,e=new rk(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return e;if(!i.length)return e._root=_L(i),e;for(n=[{source:i,target:e._root=new Array(4)}];i=n.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?n.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=_L(t));return e},Yi.add=function foe(e){const i=+this._x.call(null,e),n=+this._y.call(null,e);return gL(this.cover(i,n),i,n,e)},Yi.addAll=function moe(e){var i,n,r,s,t=e.length,o=new Array(t),a=new Array(t),l=1/0,c=1/0,d=-1/0,u=-1/0;for(n=0;nd&&(d=r),su&&(u=s));if(l>d||c>u)return this;for(this.cover(l,c).cover(d,u),n=0;ne||e>=r||t>i||i>=s;)switch(c=(id||(a=_.y0)>u||(l=_.x1)=b)<<1|e>=m)&&(_=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=_)}else{var v=e-+this._x.call(null,f.data),w=i-+this._y.call(null,f.data),y=v*v+w*w;if(y=(h=(o+l)/2))?o=h:l=h,(g=u>=(f=(a+c)/2))?a=f:c=f,i=n,!(n=n[m=g<<1|_]))return this;if(!n.length)break;(i[m+1&3]||i[m+2&3]||i[m+3&3])&&(t=i,b=m)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(s=n.next)&&delete n.next,r?(s?r.next=s:delete r.next,this):i?(s?i[m]=s:delete i[m],(n=i[0]||i[1]||i[2]||i[3])&&n===(i[3]||i[2]||i[1]||i[0])&&!n.length&&(t?t[b]=n:this._root=n),this):(this._root=s,this)},Yi.removeAll=function yoe(e){for(var i=0,n=e.length;i=0))throw new Error(`invalid digits: ${e}`);if(i>15)return wL;const n=10**i;return function(t){this._+=t[0];for(let r=1,s=t.length;rha)if(Math.abs(u*l-c*d)>ha&&s){let f=t-o,_=r-a,g=l*l+c*c,m=f*f+_*_,b=Math.sqrt(g),v=Math.sqrt(h),w=s*Math.tan((sk-Math.acos((g+h-m)/(2*b*v)))/2),y=w/v,E=w/b;Math.abs(y-1)>ha&&this._append`L${i+y*d},${n+y*u}`,this._append`A${s},${s},0,0,${+(u*f>d*_)},${this._x1=i+E*l},${this._y1=n+E*c}`}else this._append`L${this._x1=i},${this._y1=n}`}arc(i,n,t,r,s,o){if(i=+i,n=+n,o=!!o,(t=+t)<0)throw new Error(`negative radius: ${t}`);let a=t*Math.cos(r),l=t*Math.sin(r),c=i+a,d=n+l,u=1^o,h=o?r-s:s-r;null===this._x1?this._append`M${c},${d}`:(Math.abs(this._x1-c)>ha||Math.abs(this._y1-d)>ha)&&this._append`L${c},${d}`,t&&(h<0&&(h=h%ok+ok),h>Yoe?this._append`A${t},${t},0,1,${u},${i-a},${n-l}A${t},${t},0,1,${u},${this._x1=c},${this._y1=d}`:h>ha&&this._append`A${t},${t},0,${+(h>=sk)},${u},${this._x1=i+t*Math.cos(s)},${this._y1=n+t*Math.sin(s)}`)}rect(i,n,t,r){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+n}h${t=+t}v${+r}h${-t}Z`}toString(){return this._}}function Qoe(e){return e[0]}function Joe(e){return e[1]}function xL(e){return((e=Math.exp(e))+1/e)/2}const rae=function e(i,n,t){function r(s,o){var m,b,a=s[0],l=s[1],c=s[2],h=o[2],f=o[0]-a,_=o[1]-l,g=f*f+_*_;if(g<1e-12)b=Math.log(h/c)/i,m=function(B){return[a+B*f,l+B*_,c*Math.exp(i*B*b)]};else{var v=Math.sqrt(g),w=(h*h-c*c+t*g)/(2*c*n*v),y=(h*h-c*c-t*g)/(2*h*n*v),E=Math.log(Math.sqrt(w*w+1)-w),T=Math.log(Math.sqrt(y*y+1)-y);b=(T-E)/i,m=function(B){var z=B*b,oe=xL(E),te=c/(n*v)*(oe*function nae(e){return((e=Math.exp(2*e))-1)/(e+1)}(i*z+E)-function iae(e){return((e=Math.exp(e))-1/e)/2}(E));return[a+te*f,l+te*_,c*oe/xL(i*z+E)]}}return m.duration=1e3*b*i/Math.SQRT2,m}return r.rho=function(s){var o=Math.max(.001,+s),a=o*o;return e(o,a,a*a)},r}(Math.SQRT2,2,4),Fg=e=>()=>e;function sae(e,{sourceEvent:i,target:n,transform:t,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:t,enumerable:!0,configurable:!0},_:{value:r}})}function ws(e,i,n){this.k=e,this.x=i,this.y=n}ws.prototype={constructor:ws,scale:function(e){return 1===e?this:new ws(this.k*e,this.x,this.y)},translate:function(e,i){return 0===e&0===i?this:new ws(this.k,this.x+this.k*e,this.y+this.k*i)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ak=new ws(1,0,0);function lk(e){e.stopImmediatePropagation()}function ah(e){e.preventDefault(),e.stopImmediatePropagation()}function aae(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function lae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function kL(){return this.__zoom||ak}function cae(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function dae(){return navigator.maxTouchPoints||"ontouchstart"in this}function uae(e,i,n){var t=e.invertX(i[0][0])-n[0][0],r=e.invertX(i[1][0])-n[1][0],s=e.invertY(i[0][1])-n[0][1],o=e.invertY(i[1][1])-n[1][1];return e.translate(r>t?(t+r)/2:Math.min(0,t)||Math.max(0,r),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function fae(e,i){}const mae={bottomSheetState:Si("state",[gt("void, hidden",Ee({transform:"translateY(100%)"})),gt("visible",Ee({transform:"translateY(0%)"})),_t("visible => void, visible => hidden",Xp([St(`${rx.COMPLEX} ${nx.ACCELERATION_CURVE}`),sa("@*",ra(),{optional:!0})])),_t("void => visible",Xp([St(`${rx.EXITING} ${nx.DECELERATION_CURVE}`),sa("@*",ra(),{optional:!0})]))])};let pae=(()=>{var e;class i extends Jw{constructor(t,r,s,o,a,l,c,d,u,h){super(t,r,s,o,a,l,c,h),this._changeDetectorRef=u,this._animationState="void",this._animationStateChanged=new W,this._breakpointSubscription=d.observe([io_Medium,io_Large,"(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",d.isMatched(io_Medium)),this._toggleClass("mat-bottom-sheet-container-large",d.isMatched(io_Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",d.isMatched("(min-width: 1920px)"))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(t){"visible"===t.toState&&this._trapFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_captureInitialFocus(){}_toggleClass(t,r){this._elementRef.nativeElement.classList.toggle(t,r)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(Fu),p(Gl),p(ce),p(Ql),p(Mu),p(st),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(t,r){1&t&&pl("@state.start",function(o){return r._onAnimationStart(o)})("@state.done",function(o){return r._onAnimationDone(o)}),2&t&&(_e("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-label",r._config.ariaLabel),_l("@state",r._animationState))},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Z(0,fae,0,0,"ng-template",0)},dependencies:[Xl],styles:[".mat-bottom-sheet-container{--mat-bottom-sheet-container-shape:4px;box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[mae.bottomSheetState]}}),i})(),ck=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[zN,Fe,Zl,Fe]}),i})();const CL=new M("MatBottomSheetData");class gae{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}}class dk{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(i,n,t){this._ref=i,this._afterOpened=new $,this.containerInstance=t,this.disableClose=n.disableClose,t._animationStateChanged.pipe($e(r=>"done"===r.phaseName&&"visible"===r.toState),ze(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe($e(r=>"done"===r.phaseName&&"hidden"===r.toState),ze(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),i.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),Ft(this.backdropClick(),this.keydownEvents().pipe($e(r=>27===r.keyCode))).subscribe(r=>{!this.disableClose&&("keydown"!==r.type||!qi(r))&&(r.preventDefault(),this.dismiss())})}dismiss(i){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe($e(n=>"start"===n.phaseName),ze(1)).subscribe(n=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},n.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=i,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}}const _ae=new M("mat-bottom-sheet-default-options");let DL=(()=>{var e;class i{get _openedBottomSheetRef(){const t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t}constructor(t,r,s,o){this._overlay=t,this._parentBottomSheet=s,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=r.get(tx)}open(t,r){const s={...this._defaultOptions||new gae,...r};let o;return this._dialog.open(t,{...s,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:pae,scrollStrategy:s.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:o}),providers:(a,l,c)=>(o=new dk(a,s,c),[{provide:dk,useValue:o},{provide:CL,useValue:s.data}])}),o.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===o&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>o.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):o.containerInstance.enter(),this._openedBottomSheetRef=o,o}dismiss(t){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(t)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(kt),x(e,12),x(_ae,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:ck}),i})();const uk=Symbol.for("yaml.alias"),hk=Symbol.for("yaml.document"),uo=Symbol.for("yaml.map"),SL=Symbol.for("yaml.pair"),xs=Symbol.for("yaml.scalar"),cc=Symbol.for("yaml.seq"),Hn=Symbol.for("yaml.node.type"),dc=e=>!!e&&"object"==typeof e&&e[Hn]===uk,lh=e=>!!e&&"object"==typeof e&&e[Hn]===hk,ch=e=>!!e&&"object"==typeof e&&e[Hn]===uo,Lt=e=>!!e&&"object"==typeof e&&e[Hn]===SL,Mt=e=>!!e&&"object"==typeof e&&e[Hn]===xs,dh=e=>!!e&&"object"==typeof e&&e[Hn]===cc;function Ut(e){if(e&&"object"==typeof e)switch(e[Hn]){case uo:case cc:return!0}return!1}function ri(e){if(e&&"object"==typeof e)switch(e[Hn]){case uk:case uo:case xs:case cc:return!0}return!1}const bae=e=>(Mt(e)||Ut(e))&&!!e.anchor,dn=Symbol("break visit"),EL=Symbol("skip children"),Wr=Symbol("remove node");function fa(e,i){const n=ML(i);lh(e)?uc(null,e.contents,n,Object.freeze([e]))===Wr&&(e.contents=null):uc(null,e,n,Object.freeze([]))}function uc(e,i,n,t){const r=TL(e,i,n,t);if(ri(r)||Lt(r))return IL(e,t,r),uc(e,r,n,t);if("symbol"!=typeof r)if(Ut(i)){t=Object.freeze(t.concat(i));for(let s=0;se.replace(/[!,[\]{}]/g,i=>vae[i]);let Ng=(()=>{class e{constructor(n,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,n),this.tags=Object.assign({},e.defaultTags,t)}clone(){const n=new e(this.yaml,this.tags);return n.docStart=this.docStart,n}atDocument(){const n=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags)}return n}add(n,t){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);const r=n.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[o,a]=r;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[o]=r;return"1.1"===o||"1.2"===o?(this.yaml.version=o,!0):(t(6,`Unsupported YAML version ${o}`,/^\d+\.\d+$/.test(o)),!1)}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(n,t){if("!"===n)return"!";if("!"!==n[0])return t(`Not a valid tag: ${n}`),null;if("<"===n[1]){const a=n.slice(2,-1);return"!"===a||"!!"===a?(t(`Verbatim tags aren't resolved, so ${n} is invalid.`),null):(">"!==n[n.length-1]&&t("Verbatim tags must end with a >"),a)}const[,r,s]=n.match(/^(.*!)([^!]*)$/);s||t(`The ${n} tag has no suffix`);const o=this.tags[r];return o?o+decodeURIComponent(s):"!"===r?n:(t(`Could not resolve tag: ${n}`),null)}tagString(n){for(const[t,r]of Object.entries(this.tags))if(n.startsWith(r))return t+yae(n.substring(r.length));return"!"===n[0]?n:`!<${n}>`}toString(n){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(n&&r.length>0&&ri(n.contents)){const o={};fa(n.contents,(a,l)=>{ri(l)&&l.tag&&(o[l.tag]=!0)}),s=Object.keys(o)}else s=[];for(const[o,a]of r)"!!"===o&&"tag:yaml.org,2002:"===a||(!n||s.some(l=>l.startsWith(a)))&&t.push(`%TAG ${o} ${a}`);return t.join("\n")}}return e.defaultYaml={explicit:!1,version:"1.2"},e.defaultTags={"!!":"tag:yaml.org,2002:"},e})();function AL(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function RL(e){const i=new Set;return fa(e,{Value(n,t){t.anchor&&i.add(t.anchor)}}),i}function OL(e,i){for(let n=1;;++n){const t=`${e}${n}`;if(!i.has(t))return t}}function fc(e,i,n,t){if(t&&"object"==typeof t)if(Array.isArray(t))for(let r=0,s=t.length;r$n(t,String(r),n));if(e&&"function"==typeof e.toJSON){if(!n||!bae(e))return e.toJSON(i,n);const t={aliasCount:0,count:1,res:void 0};n.anchors.set(e,t),n.onCreate=s=>{t.res=s,delete n.onCreate};const r=e.toJSON(i,n);return n.onCreate&&n.onCreate(r),r}return"bigint"!=typeof e||n?.keep?e:Number(e)}class gk{constructor(i){Object.defineProperty(this,Hn,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(i.range=this.range.slice()),i}toJS(i,{mapAsMap:n,maxAliasCount:t,onAnchor:r,reviver:s}={}){if(!lh(i))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:i,keep:!0,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof t?t:100},a=$n(this,"",o);if("function"==typeof r)for(const{count:l,res:c}of o.anchors.values())r(c,l);return"function"==typeof s?fc(s,{"":a},"",a):a}}class _k extends gk{constructor(i){super(uk),this.source=i,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i){let n;return fa(i,{Node:(t,r)=>{if(r===this)return fa.BREAK;r.anchor===this.source&&(n=r)}}),n}toJSON(i,n){if(!n)return{source:this.source};const{anchors:t,doc:r,maxAliasCount:s}=n,o=this.resolve(r);if(!o)throw new ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let a=t.get(o);if(a||($n(o,null,n),a=t.get(o)),!a||void 0===a.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(s>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=Pg(r,o,t)),a.count*a.aliasCount>s))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(i,n,t){const r=`*${this.source}`;if(i){if(AL(this.source),i.options.verifyAliasOrder&&!i.anchors.has(this.source))throw new Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(i.implicitKey)return`${r} `}return r}}function Pg(e,i,n){if(dc(i)){const t=i.resolve(e),r=n&&t&&n.get(t);return r?r.count*r.aliasCount:0}if(Ut(i)){let t=0;for(const r of i.items){const s=Pg(e,r,n);s>t&&(t=s)}return t}if(Lt(i)){const t=Pg(e,i.key,n),r=Pg(e,i.value,n);return Math.max(t,r)}return 1}const FL=e=>!e||"function"!=typeof e&&"object"!=typeof e;let Je=(()=>{class e extends gk{constructor(n){super(xs),this.value=n}toJSON(n,t){return t?.keep?this.value:$n(this.value,n,t)}toString(){return String(this.value)}}return e.BLOCK_FOLDED="BLOCK_FOLDED",e.BLOCK_LITERAL="BLOCK_LITERAL",e.PLAIN="PLAIN",e.QUOTE_DOUBLE="QUOTE_DOUBLE",e.QUOTE_SINGLE="QUOTE_SINGLE",e})();const xae="tag:yaml.org,2002:";function uh(e,i,n){if(lh(e)&&(e=e.contents),ri(e))return e;if(Lt(e)){const u=n.schema[uo].createNode?.(n.schema,null,n);return u.items.push(e),u}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:t,onAnchor:r,onTagObj:s,schema:o,sourceObjects:a}=n;let l;if(t&&e&&"object"==typeof e){if(l=a.get(e),l)return l.anchor||(l.anchor=r(e)),new _k(l.anchor);l={anchor:null,node:null},a.set(e,l)}i?.startsWith("!!")&&(i=xae+i.slice(2));let c=function kae(e,i,n){if(i){const t=n.filter(s=>s.tag===i),r=t.find(s=>!s.format)??t[0];if(!r)throw new Error(`Tag ${i} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,i,o.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const u=new Je(e);return l&&(l.node=u),u}c=e instanceof Map?o[uo]:Symbol.iterator in Object(e)?o[cc]:o[uo]}s&&(s(c),delete n.onTagObj);const d=c?.createNode?c.createNode(n.schema,e,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,e,n):new Je(e);return i?d.tag=i:c.default||(d.tag=c.tag),l&&(l.node=d),d}function Lg(e,i,n){let t=n;for(let r=i.length-1;r>=0;--r){const s=i[r];if("number"==typeof s&&Number.isInteger(s)&&s>=0){const o=[];o[s]=t,t=o}else t=new Map([[s,t]])}return uh(t,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const hh=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;let bk=(()=>{class e extends gk{constructor(n,t){super(n),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(n){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return n&&(t.schema=n),t.items=t.items.map(r=>ri(r)||Lt(r)?r.clone(n):r),this.range&&(t.range=this.range.slice()),t}addIn(n,t){if(hh(n))this.add(t);else{const[r,...s]=n,o=this.get(r,!0);if(Ut(o))o.addIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,Lg(this.schema,s,t))}}}deleteIn(n){const[t,...r]=n;if(0===r.length)return this.delete(t);const s=this.get(t,!0);if(Ut(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(n,t){const[r,...s]=n,o=this.get(r,!0);return 0===s.length?!t&&Mt(o)?o.value:o:Ut(o)?o.getIn(s,t):void 0}hasAllNullValues(n){return this.items.every(t=>{if(!Lt(t))return!1;const r=t.value;return null==r||n&&Mt(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(n){const[t,...r]=n;if(0===r.length)return this.has(t);const s=this.get(t,!0);return!!Ut(s)&&s.hasIn(r)}setIn(n,t){const[r,...s]=n;if(0===s.length)this.set(r,t);else{const o=this.get(r,!0);if(Ut(o))o.setIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,Lg(this.schema,s,t))}}}}return e.maxFlowStringSingleLineLength=60,e})();const Cae=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ks(e,i){return/^\n+$/.test(e)?e.substring(1):i?e.replace(/^(?! *$)/gm,i):e}const ho=(e,i,n)=>e.endsWith("\n")?ks(n,i):n.includes("\n")?"\n"+ks(n,i):(e.endsWith(" ")?"":" ")+n,NL="flow",vk="block",Bg="quoted";function Vg(e,i,n="flow",{indentAtStart:t,lineWidth:r=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!r||r<0)return e;const l=Math.max(1+s,1+r-i.length);if(e.length<=l)return e;const c=[],d={};let u=r-i.length;"number"==typeof t&&(t>r-Math.max(2,s)?c.push(0):u=r-t);let h,f,_=!1,g=-1,m=-1,b=-1;n===vk&&(g=PL(e,g),-1!==g&&(u=g+l));for(let w;w=e[g+=1];){if(n===Bg&&"\\"===w){switch(m=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===w)n===vk&&(g=PL(e,g)),u=g+l,h=void 0;else{if(" "===w&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const y=e[g+1];y&&" "!==y&&"\n"!==y&&"\t"!==y&&(h=g)}if(g>=u)if(h)c.push(h),u=h+l,h=void 0;else if(n===Bg){for(;" "===f||"\t"===f;)f=w,w=e[g+=1],_=!0;const y=g>b+1?g-2:m-1;if(d[y])return e;c.push(y),d[y]=!0,u=y+l,h=void 0}else _=!0}f=w}if(_&&a&&a(),0===c.length)return e;o&&o();let v=e.slice(0,c[0]);for(let w=0;w({indentAtStart:i?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),zg=e=>/^(%|---|\.\.\.)/m.test(e);function fh(e,i){const n=JSON.stringify(e);if(i.options.doubleQuotedAsJSON)return n;const{implicitKey:t}=i,r=i.options.doubleQuotedMinMultiLineLength,s=i.indent||(zg(e)?" ":"");let o="",a=0;for(let l=0,c=n[l];c;c=n[++l])if(" "===c&&"\\"===n[l+1]&&"n"===n[l+2]&&(o+=n.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),"\\"===c)switch(n[l+1]){case"u":{o+=n.slice(a,l);const d=n.substr(l+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===d.substr(0,2)?o+="\\x"+d.substr(2):o+=n.substr(l,6)}l+=5,a=l+1}break;case"n":if(t||'"'===n[l+2]||n.lengtht)return!0;if(o=s+1,r-o<=t)return!1}return!0}(n,l,c.length));if(!n)return d?"|\n":">\n";let u,h;for(h=n.length;h>0;--h){const T=n[h-1];if("\n"!==T&&"\t"!==T&&" "!==T)break}let f=n.substring(h);const _=f.indexOf("\n");-1===_?u="-":n===f||_!==f.length-1?(u="+",s&&s()):u="",f&&(n=n.slice(0,-f.length),"\n"===f[f.length-1]&&(f=f.slice(0,-1)),f=f.replace(wk,`$&${c}`));let m,g=!1,b=-1;for(m=0;m")+(g?c?"2":"1":"")+u;return e&&(y+=" "+a(e.replace(/ ?[\r\n]+/g," ")),r&&r()),d?`${y}\n${c}${v}${n=n.replace(/\n+/g,`$&${c}`)}${f}`:`${y}\n${c}${Vg(`${v}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${f}`,c,vk,jg(t,!0))}`}function xk(e,i,n,t){const{implicitKey:r,inFlow:s}=i,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Je.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Je.QUOTE_DOUBLE);const l=d=>{switch(d){case Je.BLOCK_FOLDED:case Je.BLOCK_LITERAL:return r||s?mc(o.value,i):Hg(o,i,n,t);case Je.QUOTE_DOUBLE:return fh(o.value,i);case Je.QUOTE_SINGLE:return yk(o.value,i);case Je.PLAIN:return function Sae(e,i,n,t){const{type:r,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:d}=i;if(a&&/[\n[\]{},]/.test(s)||d&&/[[\]{},]/.test(s))return mc(s,i);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||d||!s.includes("\n")?mc(s,i):Hg(e,i,n,t);if(!a&&!d&&r!==Je.PLAIN&&s.includes("\n"))return Hg(e,i,n,t);if(zg(s)){if(""===l)return i.forceBlockIndent=!0,Hg(e,i,n,t);if(a&&l===c)return mc(s,i)}const u=s.replace(/\n+/g,`$&\n${l}`);if(o){const h=g=>g.default&&"tag:yaml.org,2002:str"!==g.tag&&g.test?.test(u),{compat:f,tags:_}=i.doc.schema;if(_.some(h)||f?.some(h))return mc(s,i)}return a?u:Vg(u,l,NL,jg(i,!1))}(o,i,n,t);default:return null}};let c=l(a);if(null===c){const{defaultKeyType:d,defaultStringType:u}=i.options,h=r&&d||u;if(c=l(h),null===c)throw new Error(`Unsupported default string type ${h}`)}return c}function LL(e,i){const n=Object.assign({blockQuote:!0,commentString:Cae,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,i);let t;switch(n.collectionStyle){case"block":t=!1;break;case"flow":t=!0;break;default:t=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:t,options:n}}function pc(e,i,n,t){if(Lt(e))return e.toString(i,n,t);if(dc(e)){if(i.doc.directives)return e.toString(i);if(i.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");i.resolvedAliases?i.resolvedAliases.add(e):i.resolvedAliases=new Set([e]),e=e.resolve(i.doc)}let r;const s=ri(e)?e:i.doc.createNode(e,{onTagObj:l=>r=l});r||(r=function Eae(e,i){if(i.tag){const r=e.filter(s=>s.tag===i.tag);if(r.length>0)return r.find(s=>s.format===i.format)??r[0]}let n,t;if(Mt(i)){t=i.value;const r=e.filter(s=>s.identify?.(t));n=r.find(s=>s.format===i.format)??r.find(s=>!s.format)}else t=i,n=e.find(r=>r.nodeClass&&t instanceof r.nodeClass);if(!n)throw new Error(`Tag not resolved for ${t?.constructor?.name??typeof t} value`);return n}(i.doc.schema.tags,s));const o=function Mae(e,i,{anchors:n,doc:t}){if(!t.directives)return"";const r=[],s=(Mt(e)||Ut(e))&&e.anchor;s&&AL(s)&&(n.add(s),r.push(`&${s}`));const o=e.tag?e.tag:i.default?null:i.tag;return o&&r.push(t.directives.tagString(o)),r.join(" ")}(s,r,i);o.length>0&&(i.indentAtStart=(i.indentAtStart??0)+o.length+1);const a="function"==typeof r.stringify?r.stringify(s,i,n,t):Mt(s)?xk(s,i,n,t):s.toString(i,n,t);return o?Mt(s)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o}\n${i.indent}${a}`:a}function BL(e,i){("debug"===e||"warn"===e)&&(typeof process<"u"&&process.emitWarning?process.emitWarning(i):console.warn(i))}function jL(e,i,{key:n,value:t}){if(e?.doc.schema.merge&&Iae(n))if(t=dc(t)?t.resolve(e.doc):t,dh(t))for(const r of t.items)kk(e,i,r);else if(Array.isArray(t))for(const r of t)kk(e,i,r);else kk(e,i,t);else{const r=$n(n,"",e);if(i instanceof Map)i.set(r,$n(t,r,e));else if(i instanceof Set)i.add(r);else{const s=function Aae(e,i,n){if(null===i)return"";if("object"!=typeof i)return String(i);if(ri(e)&&n&&n.doc){const t=LL(n.doc,{});t.anchors=new Set;for(const s of n.anchors.keys())t.anchors.add(s.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let s=JSON.stringify(r);s.length>40&&(s=s.substring(0,36)+'..."'),BL(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(i)}(n,r,e),o=$n(t,s,e);s in i?Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):i[s]=o}}return i}const Iae=e=>"<<"===e||Mt(e)&&"<<"===e.value&&(!e.type||e.type===Je.PLAIN);function kk(e,i,n){const t=e&&dc(n)?n.resolve(e.doc):n;if(!ch(t))throw new Error("Merge sources must be maps or map aliases");const r=t.toJSON(null,e,Map);for(const[s,o]of r)i instanceof Map?i.has(s)||i.set(s,o):i instanceof Set?i.add(s):Object.prototype.hasOwnProperty.call(i,s)||Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return i}function Ck(e,i,n){const t=uh(e,void 0,n),r=uh(i,void 0,n);return new Xi(t,r)}class Xi{constructor(i,n=null){Object.defineProperty(this,Hn,{value:SL}),this.key=i,this.value=n}clone(i){let{key:n,value:t}=this;return ri(n)&&(n=n.clone(i)),ri(t)&&(t=t.clone(i)),new Xi(n,t)}toJSON(i,n){return jL(n,n?.mapAsMap?new Map:{},this)}toString(i,n,t){return i?.doc?function Tae({key:e,value:i},n,t,r){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:d,simpleKeys:u}}=n;let h=ri(e)&&e.comment||null;if(u){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Ut(e))throw new Error("With simple keys, collection cannot be used as a key value")}let f=!u&&(!e||h&&null==i&&!n.inFlow||Ut(e)||(Mt(e)?e.type===Je.BLOCK_FOLDED||e.type===Je.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!f&&(u||!s),indent:a+l});let b,v,w,_=!1,g=!1,m=pc(e,n,()=>_=!0,()=>g=!0);if(!f&&!n.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(n.inFlow){if(s||null==i)return _&&t&&t(),""===m?"?":f?`? ${m}`:m}else if(s&&!u||null==i&&f)return m=`? ${m}`,h&&!_?m+=ho(m,n.indent,c(h)):g&&r&&r(),m;_&&(h=null),f?(h&&(m+=ho(m,n.indent,c(h))),m=`? ${m}\n${a}:`):(m=`${m}:`,h&&(m+=ho(m,n.indent,c(h)))),ri(i)?(b=!!i.spaceBefore,v=i.commentBefore,w=i.comment):(b=!1,v=null,w=null,i&&"object"==typeof i&&(i=o.createNode(i))),n.implicitKey=!1,!f&&!h&&Mt(i)&&(n.indentAtStart=m.length+1),g=!1,!d&&l.length>=2&&!n.inFlow&&!f&&dh(i)&&!i.flow&&!i.tag&&!i.anchor&&(n.indent=n.indent.substring(2));let y=!1;const E=pc(i,n,()=>y=!0,()=>g=!0);let T=" ";if(h||b||v)T=b?"\n":"",v&&(T+=`\n${ks(c(v),n.indent)}`),""!==E||n.inFlow?T+=`\n${n.indent}`:"\n"===T&&(T="\n\n");else if(!f&&Ut(i)){const B=E[0],z=E.indexOf("\n"),oe=-1!==z;if(oe||!(n.inFlow??i.flow??0===i.items.length)){let ve=!1;if(oe&&("&"===B||"!"===B)){let Ce=E.indexOf(" ");"&"===B&&-1!==Ce&&Cem=null,()=>u=!0);m&&(b+=ho(b,s,c(m))),u&&m&&(u=!1),h.push(t+b)}let f;if(0===h.length)f=r.start+r.end;else{f=h[0];for(let _=1;_w=null);bh||y.includes("\n"))&&(u=!0),f.push(y),h=f.length}let _;const{start:g,end:m}=t;if(0===f.length)_=g+m;else if(u||(u=f.reduce((v,w)=>v+w.length+2,2)>bk.maxFlowStringSingleLineLength),u){_=g;for(const b of f)_+=b?`\n${a}${o}${b}`:"\n";_+=`\n${o}${m}`}else _=`${g}${l}${f.join(" ")}${l}${m}`;return e&&(_+=ho(_,o,c(e)),s&&s()),_}function $g({indent:e,options:{commentString:i}},n,t,r){if(t&&r&&(t=t.replace(/^\n+/,"")),t){const s=ks(i(t),e);n.push(s.trimStart())}}function ma(e,i){const n=Mt(i)?i.value:i;for(const t of e)if(Lt(t)&&(t.key===i||t.key===n||Mt(t.key)&&t.key.value===n))return t}class Un extends bk{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(uo,i),this.items=[]}static from(i,n,t){const{keepUndefined:r,replacer:s}=t,o=new this(i),a=(l,c)=>{if("function"==typeof s)c=s.call(n,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(void 0!==c||r)&&o.items.push(Ck(l,c,t))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&"object"==typeof n)for(const l of Object.keys(n))a(l,n[l]);return"function"==typeof i.sortMapEntries&&o.items.sort(i.sortMapEntries),o}add(i,n){let t;t=Lt(i)?i:i&&"object"==typeof i&&"key"in i?new Xi(i.key,i.value):new Xi(i,i?.value);const r=ma(this.items,t.key),s=this.schema?.sortMapEntries;if(r){if(!n)throw new Error(`Key ${t.key} already set`);Mt(r.value)&&FL(t.value)?r.value.value=t.value:r.value=t.value}else if(s){const o=this.items.findIndex(a=>s(t,a)<0);-1===o?this.items.push(t):this.items.splice(o,0,t)}else this.items.push(t)}delete(i){const n=ma(this.items,i);return!!n&&this.items.splice(this.items.indexOf(n),1).length>0}get(i,n){const r=ma(this.items,i)?.value;return(!n&&Mt(r)?r.value:r)??void 0}has(i){return!!ma(this.items,i)}set(i,n){this.add(new Xi(i,n),!0)}toJSON(i,n,t){const r=t?new t:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(r);for(const s of this.items)jL(n,r,s);return r}toString(i,n,t){if(!i)return JSON.stringify(this);for(const r of this.items)if(!Lt(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!i.allNullValues&&this.hasAllNullValues(!1)&&(i=Object.assign({},i,{allNullValues:!0})),zL(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:t,onComment:n})}}const gc={collection:"map",default:!0,nodeClass:Un,tag:"tag:yaml.org,2002:map",resolve:(e,i)=>(ch(e)||i("Expected a mapping for this tag"),e),createNode:(e,i,n)=>Un.from(e,i,n)};class pa extends bk{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(cc,i),this.items=[]}add(i){this.items.push(i)}delete(i){const n=Ug(i);return"number"==typeof n&&this.items.splice(n,1).length>0}get(i,n){const t=Ug(i);if("number"!=typeof t)return;const r=this.items[t];return!n&&Mt(r)?r.value:r}has(i){const n=Ug(i);return"number"==typeof n&&n=0?i:null}const _c={collection:"seq",default:!0,nodeClass:pa,tag:"tag:yaml.org,2002:seq",resolve:(e,i)=>(dh(e)||i("Expected a sequence for this tag"),e),createNode:(e,i,n)=>pa.from(e,i,n)},Gg={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,i,n,t)=>xk(e,i=Object.assign({actualString:!0},i),n,t)},qg={identify:e=>null==e,createNode:()=>new Je(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Je(null),stringify:({source:e},i)=>"string"==typeof e&&qg.test.test(e)?e:i.options.nullStr},Dk={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Je("t"===e[0]||"T"===e[0]),stringify:({source:e,value:i},n)=>e&&Dk.test.test(e)&&i===("t"===e[0]||"T"===e[0])?e:i?n.options.trueStr:n.options.falseStr};function fr({format:e,minFractionDigits:i,tag:n,value:t}){if("bigint"==typeof t)return String(t);const r="number"==typeof t?t:Number(t);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(t);if(!e&&i&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=i-(s.length-o-1);for(;a-- >0;)s+="0"}return s}const HL={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:fr},$L={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const i=Number(e.value);return isFinite(i)?i.toExponential():fr(e)}},UL={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const i=new Je(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(i.minFractionDigits=e.length-n-1),i},stringify:fr},Wg=e=>"bigint"==typeof e||Number.isInteger(e),Sk=(e,i,n,{intAsBigInt:t})=>t?BigInt(e):parseInt(e.substring(i),n);function GL(e,i,n){const{value:t}=e;return Wg(t)&&t>=0?n+t.toString(i):fr(e)}const qL={identify:e=>Wg(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,i,n)=>Sk(e,2,8,n),stringify:e=>GL(e,8,"0o")},WL={identify:Wg,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,i,n)=>Sk(e,0,10,n),stringify:fr},YL={identify:e=>Wg(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,i,n)=>Sk(e,2,16,n),stringify:e=>GL(e,16,"0x")},Fae=[gc,_c,Gg,qg,Dk,qL,WL,YL,HL,$L,UL];function KL(e){return"bigint"==typeof e||Number.isInteger(e)}const Yg=({value:e})=>JSON.stringify(e),Nae=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Yg},{identify:e=>null==e,createNode:()=>new Je(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Yg},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Yg},{identify:KL,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,i,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>KL(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Yg}],Pae={default:!0,tag:"",test:/^/,resolve:(e,i)=>(i(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},Lae=[gc,_c].concat(Nae,Pae),Ek={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,i){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const n=atob(e.replace(/[\n\r]/g,"")),t=new Uint8Array(n.length);for(let r=0;r1&&i("Each pair must have its own sequence indicator");const r=t.items[0]||new Xi(new Je(null));if(t.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${t.commentBefore}\n${r.key.commentBefore}`:t.commentBefore),t.comment){const s=r.value??r.key;s.comment=s.comment?`${t.comment}\n${s.comment}`:t.comment}t=r}e.items[n]=Lt(t)?t:new Xi(t)}}else i("Expected a sequence for this tag");return e}function ZL(e,i,n){const{replacer:t}=n,r=new pa(e);r.tag="tag:yaml.org,2002:pairs";let s=0;if(i&&Symbol.iterator in Object(i))for(let o of i){let a,l;if("function"==typeof t&&(o=t.call(i,String(s++),o)),Array.isArray(o)){if(2!==o.length)throw new TypeError(`Expected [key, value] tuple: ${o}`);a=o[0],l=o[1]}else if(o&&o instanceof Object){const c=Object.keys(o);if(1!==c.length)throw new TypeError(`Expected { key: value } tuple: ${o}`);a=c[0],l=o[a]}else a=o;r.items.push(Ck(a,l,n))}return r}const Mk={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:XL,createNode:ZL};let Tk=(()=>{class e extends pa{constructor(){super(),this.add=Un.prototype.add.bind(this),this.delete=Un.prototype.delete.bind(this),this.get=Un.prototype.get.bind(this),this.has=Un.prototype.has.bind(this),this.set=Un.prototype.set.bind(this),this.tag=e.tag}toJSON(n,t){if(!t)return super.toJSON(n);const r=new Map;t?.onCreate&&t.onCreate(r);for(const s of this.items){let o,a;if(Lt(s)?(o=$n(s.key,"",t),a=$n(s.value,o,t)):o=$n(s,"",t),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,a)}return r}static from(n,t,r){const s=ZL(n,t,r),o=new this;return o.items=s.items,o}}return e.tag="tag:yaml.org,2002:omap",e})();const Ik={collection:"seq",identify:e=>e instanceof Map,nodeClass:Tk,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,i){const n=XL(e,i),t=[];for(const{key:r}of n.items)Mt(r)&&(t.includes(r.value)?i(`Ordered maps must not include duplicate keys: ${r.value}`):t.push(r.value));return Object.assign(new Tk,n)},createNode:(e,i,n)=>Tk.from(e,i,n)};function QL({value:e,source:i},n){return i&&(e?JL:eB).test.test(i)?i:e?n.options.trueStr:n.options.falseStr}const JL={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Je(!0),stringify:QL},eB={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Je(!1),stringify:QL},Bae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:fr},Vae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const i=Number(e.value);return isFinite(i)?i.toExponential():fr(e)}},jae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const i=new Je(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const t=e.substring(n+1).replace(/_/g,"");"0"===t[t.length-1]&&(i.minFractionDigits=t.length)}return i},stringify:fr},mh=e=>"bigint"==typeof e||Number.isInteger(e);function Kg(e,i,n,{intAsBigInt:t}){const r=e[0];if(("-"===r||"+"===r)&&(i+=1),e=e.substring(i).replace(/_/g,""),t){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const o=BigInt(e);return"-"===r?BigInt(-1)*o:o}const s=parseInt(e,n);return"-"===r?-1*s:s}function Ak(e,i,n){const{value:t}=e;if(mh(t)){const r=t.toString(i);return t<0?"-"+n+r.substr(1):n+r}return fr(e)}const zae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,i,n)=>Kg(e,2,2,n),stringify:e=>Ak(e,2,"0b")},Hae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,i,n)=>Kg(e,1,8,n),stringify:e=>Ak(e,8,"0")},$ae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,i,n)=>Kg(e,0,10,n),stringify:fr},Uae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,i,n)=>Kg(e,2,16,n),stringify:e=>Ak(e,16,"0x")};let Rk=(()=>{class e extends Un{constructor(n){super(n),this.tag=e.tag}add(n){let t;t=Lt(n)?n:new Xi(n&&"object"==typeof n&&"key"in n&&"value"in n&&null===n.value?n.key:n,null),ma(this.items,t.key)||this.items.push(t)}get(n,t){const r=ma(this.items,n);return!t&&Lt(r)?Mt(r.key)?r.key.value:r.key:r}set(n,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=ma(this.items,n);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new Xi(n))}toJSON(n,t){return super.toJSON(n,t,Set)}toString(n,t,r){if(!n)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},n,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(n,t,r){const{replacer:s}=r,o=new this(n);if(t&&Symbol.iterator in Object(t))for(let a of t)"function"==typeof s&&(a=s.call(t,a,a)),o.items.push(Ck(a,null,r));return o}}return e.tag="tag:yaml.org,2002:set",e})();const Ok={collection:"map",identify:e=>e instanceof Set,nodeClass:Rk,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,i,n)=>Rk.from(e,i,n),resolve(e,i){if(ch(e)){if(e.hasAllNullValues(!0))return Object.assign(new Rk,e);i("Set items must all have null values")}else i("Expected a mapping for this tag");return e}};function Fk(e,i){const n=e[0],t="-"===n||"+"===n?e.substring(1):e,r=o=>i?BigInt(o):Number(o),s=t.replace(/_/g,"").split(":").reduce((o,a)=>o*r(60)+r(a),r(0));return"-"===n?r(-1)*s:s}function tB(e){let{value:i}=e,n=o=>o;if("bigint"==typeof i)n=o=>BigInt(o);else if(isNaN(i)||!isFinite(i))return fr(e);let t="";i<0&&(t="-",i*=n(-1));const r=n(60),s=[i%r];return i<60?s.unshift(0):(i=(i-s[0])/r,s.unshift(i%r),i>=60&&(i=(i-s[0])/r,s.unshift(i))),t+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const iB={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,i,{intAsBigInt:n})=>Fk(e,n),stringify:tB},nB={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Fk(e,!1),stringify:tB},Xg={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const i=e.match(Xg.test);if(!i)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,t,r,s,o,a]=i.map(Number),l=i[7]?Number((i[7]+"00").substr(1,3)):0;let c=Date.UTC(n,t-1,r,s||0,o||0,a||0,l);const d=i[8];if(d&&"Z"!==d){let u=Fk(d,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},rB=[gc,_c,Gg,qg,JL,eB,zae,Hae,$ae,Uae,Bae,Vae,jae,Ek,Ik,Mk,Ok,iB,nB,Xg],sB=new Map([["core",Fae],["failsafe",[gc,_c,Gg]],["json",Lae],["yaml11",rB],["yaml-1.1",rB]]),oB={binary:Ek,bool:Dk,float:UL,floatExp:$L,floatNaN:HL,floatTime:nB,int:WL,intHex:YL,intOct:qL,intTime:iB,map:gc,null:qg,omap:Ik,pairs:Mk,seq:_c,set:Ok,timestamp:Xg},Gae={"tag:yaml.org,2002:binary":Ek,"tag:yaml.org,2002:omap":Ik,"tag:yaml.org,2002:pairs":Mk,"tag:yaml.org,2002:set":Ok,"tag:yaml.org,2002:timestamp":Xg};function Nk(e,i){let n=sB.get(i);if(!n){if(!Array.isArray(e)){const t=Array.from(sB.keys()).filter(r=>"yaml11"!==r).map(r=>JSON.stringify(r)).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${t} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map(t=>{if("string"!=typeof t)return t;const r=oB[t];if(r)return r;const s=Object.keys(oB).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${t}"; use one of ${s}`)})}const qae=(e,i)=>e.keyi.key?1:0;class Pk{constructor({compat:i,customTags:n,merge:t,resolveKnownTags:r,schema:s,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(i)?Nk(i,"compat"):i?Nk(null,i):null,this.merge=!!t,this.name="string"==typeof s&&s||"core",this.knownTags=r?Gae:{},this.tags=Nk(n,this.name),this.toStringOptions=a??null,Object.defineProperty(this,uo,{value:gc}),Object.defineProperty(this,xs,{value:Gg}),Object.defineProperty(this,cc,{value:_c}),this.sortMapEntries="function"==typeof o?o:!0===o?qae:null}clone(){const i=Object.create(Pk.prototype,Object.getOwnPropertyDescriptors(this));return i.tags=this.tags.slice(),i}}class ph{constructor(i,n,t){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Hn,{value:hk});let r=null;"function"==typeof n||Array.isArray(n)?r=n:void 0===t&&n&&(t=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},t);this.options=s;let{version:o}=s;t?._directives?(this.directives=t._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Ng({version:o}),this.setSchema(o,t),this.contents=void 0===i?null:this.createNode(i,r,t)}clone(){const i=Object.create(ph.prototype,{[Hn]:{value:hk}});return i.commentBefore=this.commentBefore,i.comment=this.comment,i.errors=this.errors.slice(),i.warnings=this.warnings.slice(),i.options=Object.assign({},this.options),this.directives&&(i.directives=this.directives.clone()),i.schema=this.schema.clone(),i.contents=ri(this.contents)?this.contents.clone(i.schema):this.contents,this.range&&(i.range=this.range.slice()),i}add(i){bc(this.contents)&&this.contents.add(i)}addIn(i,n){bc(this.contents)&&this.contents.addIn(i,n)}createAlias(i,n){if(!i.anchor){const t=RL(this);i.anchor=!n||t.has(n)?OL(n||"a",t):n}return new _k(i.anchor)}createNode(i,n,t){let r;if("function"==typeof n)i=n.call({"":i},"",i),r=n;else if(Array.isArray(n)){const b=n.filter(v=>"number"==typeof v||v instanceof String||v instanceof Number).map(String);b.length>0&&(n=n.concat(b)),r=n}else void 0===t&&n&&(t=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:d}=t??{},{onAnchor:u,setAnchors:h,sourceObjects:f}=function wae(e,i){const n=[],t=new Map;let r=null;return{onAnchor:s=>{n.push(s),r||(r=RL(e));const o=OL(i,r);return r.add(o),o},setAnchors:()=>{for(const s of n){const o=t.get(s);if("object"!=typeof o||!o.anchor||!Mt(o.node)&&!Ut(o.node)){const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}o.node.anchor=o.anchor}},sourceObjects:t}}(this,o||"a"),g=uh(i,d,{aliasDuplicateObjects:s??!0,keepUndefined:l??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f});return a&&Ut(g)&&(g.flow=!0),h(),g}createPair(i,n,t={}){const r=this.createNode(i,null,t),s=this.createNode(n,null,t);return new Xi(r,s)}delete(i){return!!bc(this.contents)&&this.contents.delete(i)}deleteIn(i){return hh(i)?null!=this.contents&&(this.contents=null,!0):!!bc(this.contents)&&this.contents.deleteIn(i)}get(i,n){return Ut(this.contents)?this.contents.get(i,n):void 0}getIn(i,n){return hh(i)?!n&&Mt(this.contents)?this.contents.value:this.contents:Ut(this.contents)?this.contents.getIn(i,n):void 0}has(i){return!!Ut(this.contents)&&this.contents.has(i)}hasIn(i){return hh(i)?void 0!==this.contents:!!Ut(this.contents)&&this.contents.hasIn(i)}set(i,n){null==this.contents?this.contents=Lg(this.schema,[i],n):bc(this.contents)&&this.contents.set(i,n)}setIn(i,n){hh(i)?this.contents=n:null==this.contents?this.contents=Lg(this.schema,Array.from(i),n):bc(this.contents)&&this.contents.setIn(i,n)}setSchema(i,n={}){let t;switch("number"==typeof i&&(i=String(i)),i){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Ng({version:"1.1"}),t={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=i:this.directives=new Ng({version:i}),t={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,t=null;break;default:{const r=JSON.stringify(i);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(n.schema instanceof Object)this.schema=n.schema;else{if(!t)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new Pk(Object.assign(t,n))}}toJS({json:i,jsonArg:n,mapAsMap:t,maxAliasCount:r,onAnchor:s,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!i,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},l=$n(this.contents,n??"",a);if("function"==typeof s)for(const{count:c,res:d}of a.anchors.values())s(d,c);return"function"==typeof o?fc(o,{"":l},"",l):l}toJSON(i,n){return this.toJS({json:!0,jsonArg:i,mapAsMap:!1,onAnchor:n})}toString(i={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in i&&(!Number.isInteger(i.indent)||Number(i.indent)<=0)){const n=JSON.stringify(i.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return function Wae(e,i){const n=[];let t=!0===i.directives;if(!1!==i.directives&&e.directives){const l=e.directives.toString(e);l?(n.push(l),t=!0):e.directives.docStart&&(t=!0)}t&&n.push("---");const r=LL(e,i),{commentString:s}=r.options;if(e.commentBefore){1!==n.length&&n.unshift("");const l=s(e.commentBefore);n.unshift(ks(l,""))}let o=!1,a=null;if(e.contents){if(ri(e.contents)){if(e.contents.spaceBefore&&t&&n.push(""),e.contents.commentBefore){const d=s(e.contents.commentBefore);n.push(ks(d,""))}r.forceBlockIndent=!!e.comment,a=e.contents.comment}let c=pc(e.contents,r,()=>a=null,a?void 0:()=>o=!0);a&&(c+=ho(c,"",s(a))),"|"!==c[0]&&">"!==c[0]||"---"!==n[n.length-1]?n.push(c):n[n.length-1]=`--- ${c}`}else n.push(pc(e.contents,r));if(e.directives?.docEnd)if(e.comment){const l=s(e.comment);l.includes("\n")?(n.push("..."),n.push(ks(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(ks(s(l),"")))}return n.join("\n")+"\n"}(this,i)}}function bc(e){if(Ut(e))return!0;throw new Error("Expected a YAML collection as document contents")}class aB extends Error{constructor(i,n,t,r){super(),this.name=i,this.code=t,this.message=r,this.pos=n}}class gh extends aB{constructor(i,n,t){super("YAMLParseError",i,n,t)}}class Yae extends aB{constructor(i,n,t){super("YAMLWarning",i,n,t)}}const lB=(e,i)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(a=>i.linePos(a));const{line:t,col:r}=n.linePos[0];n.message+=` at line ${t}, column ${r}`;let s=r-1,o=e.substring(i.lineStarts[t-1],i.lineStarts[t]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const a=Math.min(s-39,o.length-79);o="\u2026"+o.substring(a),s-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),t>1&&/^ *$/.test(o.substring(0,s))){let a=e.substring(i.lineStarts[t-2],i.lineStarts[t-1]);a.length>80&&(a=a.substring(0,79)+"\u2026\n"),o=a+o}if(/[^ ]/.test(o)){let a=1;const l=n.linePos[1];l&&l.line===t&&l.col>r&&(a=Math.max(1,Math.min(l.col-r,80-s)));const c=" ".repeat(s)+"^".repeat(a);n.message+=`:\n\n${o}\n${c}\n`}};function vc(e,{flow:i,indicator:n,next:t,offset:r,onError:s,startOnNewline:o}){let a=!1,l=o,c=o,d="",u="",h=!1,f=!1,_=!1,g=null,m=null,b=null,v=null,w=null;for(const T of e)switch(_&&("space"!==T.type&&"newline"!==T.type&&"comma"!==T.type&&s(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),_=!1),T.type){case"space":!i&&l&&"doc-start"!==n&&"\t"===T.source[0]&&s(T,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const B=T.source.substring(1)||" ";d?d+=u+B:d=B,u="",l=!1;break}case"newline":l?d?d+=T.source:a=!0:u+=T.source,l=!0,h=!0,(g||m)&&(f=!0),c=!0;break;case"anchor":g&&s(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&s(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=T,null===w&&(w=T.offset),l=!1,c=!1,_=!0;break;case"tag":m&&s(T,"MULTIPLE_TAGS","A node can have at most one tag"),m=T,null===w&&(w=T.offset),l=!1,c=!1,_=!0;break;case n:(g||m)&&s(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),v&&s(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${i??"collection"}`),v=T,l=!1,c=!1;break;case"comma":if(i){b&&s(T,"UNEXPECTED_TOKEN",`Unexpected , in ${i}`),b=T,l=!1,c=!1;break}default:s(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),l=!1,c=!1}const y=e[e.length-1],E=y?y.offset+y.source.length:r;return _&&t&&"space"!==t.type&&"newline"!==t.type&&"comma"!==t.type&&("scalar"!==t.type||""!==t.source)&&s(t.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:b,found:v,spaceBefore:a,comment:d,hasNewline:h,hasNewlineAfterProp:f,anchor:g,tag:m,end:E,start:w??E}}function _h(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const i of e.end)if("newline"===i.type)return!0;return!1;case"flow-collection":for(const i of e.items){for(const n of i.start)if("newline"===n.type)return!0;if(i.sep)for(const n of i.sep)if("newline"===n.type)return!0;if(_h(i.key)||_h(i.value))return!0}return!1;default:return!0}}function Lk(e,i,n){if("flow-collection"===i?.type){const t=i.end[0];t.indent===e&&("]"===t.source||"}"===t.source)&&_h(i)&&n(t,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function cB(e,i,n){const{uniqueKeys:t}=e.options;if(!1===t)return!1;const r="function"==typeof t?t:(s,o)=>s===o||Mt(s)&&Mt(o)&&s.value===o.value&&!("<<"===s.value&&e.schema.merge);return i.some(s=>r(s.key,n))}const dB="All mapping items must start at the same column";function bh(e,i,n,t){let r="";if(e){let s=!1,o="";for(const a of e){const{source:l,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&t(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const d=l.substring(1)||" ";r?r+=o+d:r=d,o="";break}case"newline":r&&(o+=l),s=!0;break;default:t(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}i+=l.length}}return{comment:r,offset:i}}const Bk="Block collections are not allowed within flow collections",Vk=e=>e&&("block-map"===e.type||"block-seq"===e.type);function jk(e,i,n,t,r,s){const o="block-map"===n.type?function Kae({composeNode:e,composeEmptyNode:i},n,t,r,s){const a=new(s?.nodeClass??Un)(n.schema);n.atRoot&&(n.atRoot=!1);let l=t.offset,c=null;for(const d of t.items){const{start:u,key:h,sep:f,value:_}=d,g=vc(u,{indicator:"explicit-key-ind",next:h??f?.[0],offset:l,onError:r,startOnNewline:!0}),m=!g.found;if(m){if(h&&("block-seq"===h.type?r(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==t.indent&&r(l,"BAD_INDENT",dB)),!g.anchor&&!g.tag&&!f){c=g.end,g.comment&&(a.comment?a.comment+="\n"+g.comment:a.comment=g.comment);continue}(g.hasNewlineAfterProp||_h(h))&&r(h??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==t.indent&&r(l,"BAD_INDENT",dB);const b=g.end,v=h?e(n,h,g,r):i(n,b,u,null,g,r);n.schema.compat&&Lk(t.indent,h,r),cB(n,a.items,v)&&r(b,"DUPLICATE_KEY","Map keys must be unique");const w=vc(f??[],{indicator:"map-value-ind",next:_,offset:v.range[2],onError:r,startOnNewline:!h||"block-scalar"===h.type});if(l=w.end,w.found){m&&("block-map"===_?.type&&!w.hasNewline&&r(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&g.start0){const m=bh(_,g,n.options.strict,r);m.comment&&(c.comment?c.comment+="\n"+m.comment:c.comment=m.comment),c.range=[t.offset,g,m.offset]}else c.range=[t.offset,g,g];return c}(e,i,n,t,s),a=o.constructor;return"!"===r||r===a.tagName?(o.tag=a.tagName,o):(r&&(o.tag=r),o)}function uB(e){let i,n;try{i=new RegExp("(.*?)(?"===r.mode?Je.BLOCK_FOLDED:Je.BLOCK_LITERAL,o=e.source?function tle(e){const i=e.split(/\n( *)/),n=i[0],t=n.match(/^( *)/),s=[t?.[1]?[t[1],n.slice(t[1].length)]:["",n]];for(let o=1;o=0;--g){const m=o[g][1];if(""!==m&&"\r"!==m)break;a=g}if(0===a){const g="+"===r.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let m=t+r.length;return e.source&&(m+=e.source.length),{value:g,type:s,comment:r.comment,range:[t,m,m]}}let l=e.indent+r.indent,c=e.offset+r.length,d=0;for(let g=0;gl&&(l=m.length),c+=m.length+b.length+1}for(let g=o.length-1;g>=a;--g)o[g][0].length>l&&(a=g+1);let u="",h="",f=!1;for(let g=0;gl||"\t"===b[0]?(" "===h?h="\n":!f&&"\n"===h&&(h="\n\n"),u+=h+m.slice(l)+b,h="\n",f=!0):""===b?"\n"===h?u+="\n":h="\n":(u+=h+b,h=" ",f=!1)}switch(r.chomp){case"-":break;case"+":for(let g=a;gn(t+h,f,_);switch(r){case"scalar":a=Je.PLAIN,l=function nle(e,i){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&i(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),uB(e)}(s,c);break;case"single-quoted-scalar":a=Je.QUOTE_SINGLE,l=function rle(e,i){return("'"!==e[e.length-1]||1===e.length)&&i(e.length,"MISSING_CHAR","Missing closing 'quote"),uB(e.slice(1,-1)).replace(/''/g,"'")}(s,c);break;case"double-quoted-scalar":a=Je.QUOTE_DOUBLE,l=function sle(e,i){let n="";for(let t=1;ts?e.slice(s,t+1):r)}else n+=r}return('"'!==e[e.length-1]||1===e.length)&&i(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[t,t+s.length,t+s.length]}}const d=t+s.length,u=bh(o,d,i,n);return{value:l,type:a,comment:u.comment,range:[t,d,u.offset]}}(i,e.options.strict,t),l=n?e.directives.tagName(n.source,u=>t(n,"TAG_RESOLVE_FAILED",u)):null,c=n&&l?function cle(e,i,n,t,r){if("!"===n)return e[xs];const s=[];for(const a of e.tags)if(!a.collection&&a.tag===n){if(!a.default||!a.test)return a;s.push(a)}for(const a of s)if(a.test?.test(i))return a;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(t,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[xs])}(e.schema,r,l,n,t):"scalar"===i.type?function dle({directives:e,schema:i},n,t,r){const s=i.tags.find(o=>o.default&&o.test?.test(n))||i[xs];if(i.compat){const o=i.compat.find(a=>a.default&&a.test?.test(n))??i[xs];s.tag!==o.tag&&r(t,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(o.tag)}`,!0)}return s}(e,r,i,t):e.schema[xs];let d;try{const u=c.resolve(r,h=>t(n??i,"TAG_RESOLVE_FAILED",h),e.options);d=Mt(u)?u:new Je(u)}catch(u){const h=u instanceof Error?u.message:String(u);t(n??i,"TAG_RESOLVE_FAILED",h),d=new Je(r)}return d.range=a,d.source=r,s&&(d.type=s),l&&(d.tag=l),c.format&&(d.format=c.format),o&&(d.comment=o),d}function ule(e,i,n){if(i){null===n&&(n=i.length);for(let t=n-1;t>=0;--t){let r=i[t];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=i[++t];"space"===r?.type;)e+=r.source.length,r=i[++t];break}}return e}const hle={composeNode:fB,composeEmptyNode:zk};function fB(e,i,n,t){const{spaceBefore:r,comment:s,anchor:o,tag:a}=n;let l,c=!0;switch(i.type){case"alias":l=function fle({options:e},{offset:i,source:n,end:t},r){const s=new _k(n.substring(1));""===s.source&&r(i,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&r(i+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=i+n.length,a=bh(t,o,e.strict,r);return s.range=[i,o,a.offset],a.comment&&(s.comment=a.comment),s}(e,i,t),(o||a)&&t(i,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=hB(e,i,a,t),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=function Qae(e,i,n,t,r){const s=t?i.directives.tagName(t.source,u=>r(t,"TAG_RESOLVE_FAILED",u)):null,o="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!t||!s||"!"===s||s===Un.tagName&&"map"===o||s===pa.tagName&&"seq"===o||!o)return jk(e,i,n,r,s);let a=i.schema.tags.find(u=>u.tag===s&&u.collection===o);if(!a){const u=i.schema.knownTags[s];if(!u||u.collection!==o)return u?.collection?r(t,"BAD_COLLECTION_TYPE",`${u.tag} used for ${o} collection, but expects ${u.collection}`,!0):r(t,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),jk(e,i,n,r,s);i.schema.tags.push(Object.assign({},u,{default:!1})),a=u}const l=jk(e,i,n,r,s,a),c=a.resolve?.(l,u=>r(t,"TAG_RESOLVE_FAILED",u),i.options)??l,d=ri(c)?c:new Je(c);return d.range=l.range,d.tag=s,a?.format&&(d.format=a.format),d}(hle,e,i,a,t),o&&(l.anchor=o.source.substring(1));break;default:t(i,"UNEXPECTED_TOKEN","error"===i.type?i.message:`Unsupported token (type: ${i.type})`),l=zk(e,i.offset,void 0,null,n,t),c=!1}return o&&""===l.anchor&&t(o,"BAD_ALIAS","Anchor cannot be an empty string"),r&&(l.spaceBefore=!0),s&&("scalar"===i.type&&""===i.source?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&c&&(l.srcToken=i),l}function zk(e,i,n,t,{spaceBefore:r,comment:s,anchor:o,tag:a,end:l},c){const u=hB(e,{type:"scalar",offset:ule(i,n,t),indent:-1,source:""},a,c);return o&&(u.anchor=o.source.substring(1),""===u.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(u.spaceBefore=!0),s&&(u.comment=s,u.range[2]=l),u}function vh(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:i,source:n}=e;return[i,i+("string"==typeof n?n.length:1)]}function mB(e){let i="",n=!1,t=!1;for(let r=0;r{const o=vh(n);s?this.warnings.push(new Yae(o,t,r)):this.errors.push(new gh(o,t,r))},this.directives=new Ng({version:i.version||"1.2"}),this.options=i}decorate(i,n){const{comment:t,afterEmptyLine:r}=mB(this.prelude);if(t){const s=i.contents;if(n)i.comment=i.comment?`${i.comment}\n${t}`:t;else if(r||i.directives.docStart||!s)i.commentBefore=t;else if(Ut(s)&&!s.flow&&s.items.length>0){let o=s.items[0];Lt(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${t}\n${a}`:t}else{const o=s.commentBefore;s.commentBefore=o?`${t}\n${o}`:t}}n?(Array.prototype.push.apply(i.errors,this.errors),Array.prototype.push.apply(i.warnings,this.warnings)):(i.errors=this.errors,i.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:mB(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(i,n=!1,t=-1){for(const r of i)yield*this.next(r);yield*this.end(n,t)}*next(i){switch(i.type){case"directive":this.directives.add(i.source,(n,t,r)=>{const s=vh(i);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",t,r)}),this.prelude.push(i.source),this.atDirectives=!0;break;case"document":{const n=function mle(e,i,{offset:n,start:t,value:r,end:s},o){const a=Object.assign({_directives:i},e),l=new ph(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},d=vc(t,{indicator:"doc-start",next:r??s?.[0],offset:n,onError:o,startOnNewline:!0});d.found&&(l.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=r?fB(c,r,d,o):zk(c,d.end,t,null,d,o);const u=l.contents.range[2],h=bh(s,u,!1,o);return h.comment&&(l.comment=h.comment),l.range=[n,u,h.offset],l}(this.options,this.directives,i,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(i,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(i.source);break;case"error":{const n=i.source?`${i.message}: ${JSON.stringify(i.source)}`:i.message,t=new gh(vh(i),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(t):this.doc.errors.push(t);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new gh(vh(i),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const n=bh(i.end,i.offset+i.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const t=this.doc.comment;this.doc.comment=t?`${t}\n${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new gh(vh(i),"UNEXPECTED_TOKEN",`Unsupported token ${i.type}`))}}*end(i=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(i){const t=Object.assign({_directives:this.directives},this.options),r=new ph(void 0,t);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,n,n],this.decorate(r,!1),yield r}}}const $k=Symbol("break visit"),_le=Symbol("skip children"),gB=Symbol("remove item");function yc(e,i){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),_B(Object.freeze([]),e,i)}function _B(e,i,n){let t=n(i,e);if("symbol"==typeof t)return t;for(const r of["key","value"]){const s=i[r];if(s&&"items"in s){for(let o=0;o{let n=e;for(const[t,r]of i){const s=n?.[t];if(!s||!("items"in s))return;n=s.items[r]}return n},yc.parentCollection=(e,i)=>{const n=yc.itemAtPath(e,i.slice(0,-1)),t=i[i.length-1][0],r=n?.[t];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};const bB="0123456789ABCDEFabcdef".split(""),vle="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Wk=",[]{}".split(""),yle=" ,[]{}\n\r\t".split(""),Yk=e=>!e||yle.includes(e);class wle{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(i,n=!1){i&&(this.buffer=this.buffer?this.buffer+i:i,this.lineEndPos=null),this.atEnd=!n;let t=this.next??"stream";for(;t&&(n||this.hasChars(1));)t=yield*this.parseNext(t)}atLineEnd(){let i=this.pos,n=this.buffer[i];for(;" "===n||"\t"===n;)n=this.buffer[++i];return!n||"#"===n||"\n"===n||"\r"===n&&"\n"===this.buffer[i+1]}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let n=this.buffer[i];if(this.indentNext>0){let t=0;for(;" "===n;)n=this.buffer[++t+i];if("\r"===n){const r=this.buffer[t+i+1];if("\n"===r||!r&&!this.atEnd)return i+t+1}return"\n"===n||t>=this.indentNext||!n&&!this.atEnd?i+t:-1}if("-"===n||"."===n){const t=this.buffer.substr(i,3);if(("---"===t||"..."===t)&&Gn(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;return("number"!=typeof i||-1!==i&&ithis.indentValue&&!Gn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[i,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if(("-"===i||"?"===i||":"===i)&&Gn(n)){const t=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=t,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const i=this.getLine();if(null===i)return this.setNext("doc");let n=yield*this.pushIndicators();switch(i[n]){case"#":yield*this.pushCount(i.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Yk),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=(yield*this.parseBlockScalarHeader()),n+=(yield*this.pushSpaces(!0)),yield*this.pushCount(i.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,n,t=-1;do{i=yield*this.pushNewline(),i>0?(n=yield*this.pushSpaces(!1),this.indentValue=t=n):n=0,n+=(yield*this.pushSpaces(!0))}while(i+n>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==t&&t"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if("-"!==n)break}return yield*this.pushUntil(n=>Gn(n)||"#"===n)}*parseBlockScalar(){let t,i=this.pos-1,n=0;e:for(let r=this.pos;t=this.buffer[r];++r)switch(t){case" ":n+=1;break;case"\n":i=r,n=0;break;case"\r":{const s=this.buffer[r+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if("\n"===s)break}default:break e}if(!t&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const r=this.continueScalar(i+1);if(-1===r)break;i=this.buffer.indexOf("\n",r)}while(-1!==i);if(-1===i){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let r=i-1,s=this.buffer[r];"\r"===s&&(s=this.buffer[--r]);const o=r;for(;" "===s||"\t"===s;)s=this.buffer[--r];if(!("\n"===s&&r>=this.pos&&r+1+n>o))break;i=r}return yield"\x1f",yield*this.pushToIndex(i+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const i=this.flowLevel>0;let r,n=this.pos-1,t=this.pos-1;for(;r=this.buffer[++t];)if(":"===r){const s=this.buffer[t+1];if(Gn(s)||i&&","===s)break;n=t}else if(Gn(r)){let s=this.buffer[t+1];if("\r"===r&&("\n"===s?(t+=1,r="\n",s=this.buffer[t+1]):n=t),"#"===s||i&&Wk.includes(s))break;if("\n"===r){const o=this.continueScalar(t+1);if(-1===o)break;t=Math.max(t,o-2)}}else{if(i&&Wk.includes(r))break;n=t}return r||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),i?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(i){return i>0?(yield this.buffer.substr(this.pos,i),this.pos+=i,i):0}*pushToIndex(i,n){const t=this.buffer.slice(this.pos,i);return t?(yield t,this.pos+=t.length,t.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Yk))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const i=this.flowLevel>0,n=this.charAt(1);if(Gn(n)||i&&Wk.includes(n))return i?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let i=this.pos+2,n=this.buffer[i];for(;!Gn(n)&&">"!==n;)n=this.buffer[++i];return yield*this.pushToIndex(">"===n?i+1:i,!1)}{let i=this.pos+1,n=this.buffer[i];for(;n;)if(vle.includes(n))n=this.buffer[++i];else{if("%"!==n||!bB.includes(this.buffer[i+1])||!bB.includes(this.buffer[i+2]))break;n=this.buffer[i+=3]}return yield*this.pushToIndex(i,!1)}}*pushNewline(){const i=this.buffer[this.pos];return"\n"===i?yield*this.pushCount(1):"\r"===i&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(i){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||i&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(i){let n=this.pos,t=this.buffer[n];for(;!i(t);)t=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}function mr(e,i){for(let n=0;n=0;)switch(e[i].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++i]?.type;);return e.splice(i,e.length)}function wB(e){if("flow-seq-start"===e.start.type)for(const i of e.items)i.sep&&!i.value&&!mr(i.start,"explicit-key-ind")&&!mr(i.sep,"map-value-ind")&&(i.key&&(i.value=i.key),delete i.key,yB(i.value)?i.value.end?Array.prototype.push.apply(i.value.end,i.sep):i.value.end=i.sep:Array.prototype.push.apply(i.start,i.sep),delete i.sep)}class xle{constructor(i){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new wle,this.onNewLine=i}*parse(i,n=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const t of this.lexer.lex(i,n))yield*this.next(t);n||(yield*this.end())}*next(i){if(this.source=i,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=i.length);const n=function ble(e){switch(e){case"\ufeff":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(i);if(n)if("scalar"===n)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+i.length);break;case"space":this.atNewLine&&" "===i[0]&&(this.indent+=i.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=i.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=i.length}else{const t=`Not a YAML token: ${i}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:i}),this.offset+=i.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const i=this.peek(1);if("doc-end"!==this.type||i&&"doc-end"===i.type){if(!i)return yield*this.stream();switch(i.type){case"document":return yield*this.document(i);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(i);case"block-scalar":return yield*this.blockScalar(i);case"block-map":return yield*this.blockMap(i);case"block-seq":return yield*this.blockSequence(i);case"flow-collection":return yield*this.flowCollection(i);case"doc-end":return yield*this.documentEnd(i)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(i){return this.stack[this.stack.length-i]}*pop(i){const n=i??this.stack.pop();if(n)if(0===this.stack.length)yield n;else{const t=this.peek(1);switch("block-scalar"===n.type?n.indent="indent"in t?t.indent:0:"flow-collection"===n.type&&"document"===t.type&&(n.indent=0),"flow-collection"===n.type&&wB(n),t.type){case"document":t.value=n;break;case"block-scalar":t.props.push(n);break;case"block-map":{const r=t.items[t.items.length-1];if(r.value)return t.items.push({start:[],key:n,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:n,sep:[]}),void(this.onKeyLine=!mr(r.start,"explicit-key-ind"));r.value=n;break}case"block-seq":{const r=t.items[t.items.length-1];r.value?t.items.push({start:[],value:n}):r.value=n;break}case"flow-collection":{const r=t.items[t.items.length-1];return void(!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?r.value=n:Object.assign(r,{key:n,sep:[]}))}default:yield*this.pop(),yield*this.pop(n)}if(!("document"!==t.type&&"block-map"!==t.type&&"block-seq"!==t.type||"block-map"!==n.type&&"block-seq"!==n.type)){const r=n.items[n.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===vB(r.start)&&(0===n.indent||r.start.every(s=>"comment"!==s.type||s.indent=i.indent){const t=!this.onKeyLine&&this.indent===i.indent&&n.sep;let r=[];if(t&&n.sep&&!n.value){const s=[];for(let o=0;oi.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(r=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":return void(t||n.value?(r.push(this.sourceToken),i.items.push({start:r}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"explicit-key-ind":return n.sep||mr(n.start,"explicit-key-ind")?t||n.value?(r.push(this.sourceToken),i.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):n.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(mr(n.start,"explicit-key-ind"))if(n.sep)if(n.value)i.items.push({start:[],key:null,sep:[this.sourceToken]});else if(mr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(yB(n.key)&&!mr(n.sep,"newline")){const s=wc(n.start),o=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:o,sep:a}]})}else r.length>0?n.sep=n.sep.concat(r,this.sourceToken):n.sep.push(this.sourceToken);else if(mr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=wc(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||t?i.items.push({start:r,key:null,sep:[this.sourceToken]}):mr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);return void(t||n.value?(i.items.push({start:r,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0))}default:{const s=this.startBlockValue(i);if(s)return t&&"block-seq"!==s.type&&mr(n.start,"explicit-key-ind")&&i.items.push({start:r}),void this.stack.push(s)}}}yield*this.pop(),yield*this.step()}*blockSequence(i){const n=i.items[i.items.length-1];switch(this.type){case"newline":if(n.value){const t="end"in n.value?n.value.end:void 0;"comment"===(Array.isArray(t)?t[t.length-1]:void 0)?.type?t?.push(this.sourceToken):i.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)i.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,i.indent)){const r=i.items[i.items.length-2]?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),void i.items.pop()}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=i.indent)break;return void n.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==i.indent)break;return void(n.value||mr(n.start,"seq-item-ind")?i.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken))}if(this.indent>i.indent){const t=this.startBlockValue(i);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(i){const n=i.items[i.items.length-1];if("flow-error-end"===this.type){let t;do{yield*this.pop(),t=this.peek(1)}while(t&&"flow-collection"===t.type)}else if(0===i.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!n||n.sep?i.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken));case"map-value-ind":return void(!n||n.value?i.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!n||n.value?i.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?this.stack.push(r):Object.assign(n,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void i.end.push(this.sourceToken)}const t=this.startBlockValue(i);t?this.stack.push(t):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===i.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const s=wc(Qg(t));wB(i);const o=i.end.splice(1,i.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:s,key:i,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(i)}}flowScalar(i){if(this.onNewLine){let n=this.source.indexOf("\n")+1;for(;0!==n;)this.onNewLine(this.offset+n),n=this.source.indexOf("\n",n)+1}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=wc(Qg(i));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=wc(Qg(i));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,n){return!("comment"!==this.type||this.indent<=n)&&i.every(t=>"newline"===t.type||"space"===t.type)}*documentEnd(i){"doc-mode"!==this.type&&(i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class kle{constructor(){this.lineStarts=[],this.addNewLine=i=>this.lineStarts.push(i),this.linePos=i=>{let n=0,t=this.lineStarts.length;for(;n>1;this.lineStarts[s]BL(r.options.logLevel,s)),r.errors.length>0){if("silent"!==r.options.logLevel)throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:t},n))}function kB(e,i,n){let t=null;if("function"==typeof i||Array.isArray(i)?t=i:void 0===n&&i&&(n=i),"string"==typeof n&&(n=n.length),"number"==typeof n){const r=Math.round(n);n=r<1?void 0:r>8?{indent:8}:{indent:r}}if(void 0===e){const{keepUndefined:r}=n??i??{};if(!r)return}return new ph(e,t,n).toString(n)}function Yr(e){e.preventDefault(),e.stopPropagation()}const Zle=new M("MatList"),MB=new M("MatNavList");let ice=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();const TB=["*"],rce=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],sce=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],dce=no($r(class{})),uce=$r(class{});let IB=(()=>{var e;class i extends dce{constructor(){super(...arguments),this._stateChanges=new $}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[K([{provide:MB,useExisting:e}]),L,bt],ngContentSelectors:TB,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),AB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),RB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),OB=(()=>{var e;class i extends uce{constructor(t,r,s,o){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new $,this._disabled=!1,this._isInteractiveList=!!(s||o&&"action-list"===o._getListType()),this._list=s||o;const a=this._getHostElement();"button"===a.nodeName.toLowerCase()&&!a.hasAttribute("type")&&a.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(ke(this._destroyed)).subscribe(()=>{r.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=re(t)}ngAfterContentInit(){!function GN(e,i,n="mat"){e.changes.pipe(Di(e)).subscribe(({length:t})=>{Lu(i,`${n}-2-line`,!1),Lu(i,`${n}-3-line`,!1),Lu(i,`${n}-multi-line`,!1),2===t||3===t?Lu(i,`${n}-${t}-line`,!0):t>3&&Lu(i,`${n}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(st),p(MB,8),p(Zle,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,AB,5),Me(s,RB,5),Me(s,ox,5)),2&t){let o;Q(o=J())&&(r._avatar=o.first),Q(o=J())&&(r._icon=o.first),Q(o=J())&&(r._lines=o)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(t,r){2&t&&fe("mat-list-item-disabled",r.disabled)("mat-list-item-with-avatar",r._avatar||r._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[L],ngContentSelectors:sce,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,r){1&t&&(ct(rce),k(0,"span",0),be(1,"span",1),we(2),k(3,"span",2),we(4,1),D(),we(5,2),D()),2&t&&(C(1),R("matRippleTrigger",r._getHostElement())("matRippleDisabled",r._isRippleDisabled()))},dependencies:[dr],encapsulation:2,changeDetection:0}),i})(),NB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[qN,Jl,Fe,ax,Ln,qN,Fe,ax,ice]}),i})(),PB=(()=>{var e;class i{constructor(t,r,s,o){this.bottomSheetRef=t,this.graph=r,this.clipboard=s,this.snackBarService=o}downloadGraph(t,r){Yr(t),this.bottomSheetRef.dismiss();const s=this.sanitizeGraph(this.graph);let o="";"json"===r?o=JSON.stringify(s,null,2):"yml"===r&&(o=kB(s));const a=document.createElement("a");a.setAttribute("href",`data:text/${r};charset=UTF-8,`+encodeURIComponent(o)),a.setAttribute("download",`${s.name}.${r}`),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}copyGraph(t,r){Yr(t),this.bottomSheetRef.dismiss();const s=this.sanitizeGraph(this.graph);let o="";"json"===r?o=JSON.stringify(s,null,2):"yml"===r&&(o=kB(s)),this.clipboard.copy(o)?this.snackBarService.openSnackBar({key:"export.copy-success"}):this.snackBarService.openSnackBar({key:"export.copy-failure"},void 0,5e3)}sanitizeGraph(t){return{name:t.name,description:t.description,nodes:t.nodes,edges:t.edges}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(dk),p(CL),p(iW),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["apollo-export-graph"]],decls:32,vars:18,consts:[[1,"title"],["mat-list-item","",3,"click"],["mat-line",""]],template:function(t,r){1&t&&(k(0,"mat-nav-list")(1,"h1",0),N(2),U(3,"translate"),D(),k(4,"a",1),H("click",function(o){return r.downloadGraph(o,"json")}),k(5,"mat-icon"),N(6,"get_app"),D(),k(7,"span",2),N(8),U(9,"translate"),D()(),k(10,"a",1),H("click",function(o){return r.copyGraph(o,"json")}),k(11,"mat-icon"),N(12,"content_copy"),D(),k(13,"span",2),N(14),U(15,"translate"),D()()(),k(16,"mat-nav-list")(17,"h1",0),N(18),U(19,"translate"),D(),k(20,"a",1),H("click",function(o){return r.downloadGraph(o,"yml")}),k(21,"mat-icon"),N(22,"get_app"),D(),k(23,"span",2),N(24),U(25,"translate"),D()(),k(26,"a",1),H("click",function(o){return r.copyGraph(o,"yml")}),k(27,"mat-icon"),N(28,"content_copy"),D(),k(29,"span",2),N(30),U(31,"translate"),D()()()),2&t&&(C(2),pe(Y(3,6,"export.json")),C(6),pe(Y(9,8,"export.download")),C(6),pe(Y(15,10,"export.copy")),C(4),pe(Y(19,12,"export.yaml")),C(6),pe(Y(25,14,"export.download")),C(6),pe(Y(31,16,"export.copy")))},dependencies:[kn,IB,OB,ox,di],styles:[".title[_ngcontent-%COMP%]{margin:0}"]}),i})();const fo=4,yce={nodeRadius:24,tooltipOpacity:1,tooltipFadeInTame:500,tooltipFadeOutTime:200,markerBoxSize:fo,markerPadding:24+2*fo,markerRef:fo/2,arrowPoints:[[0,0],[0,fo],[fo,fo/2]],markerPath:[0,0,fo,fo].join(",")},BB=new M("MatError"),Ece=new M("MatPrefix"),VB=new M("MatSuffix"),Mce={transitionMessages:Si("transitionMessages",[gt("enter",Ee({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Ee({opacity:0,transform:"translateY(-5px)"}),St("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let xc=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e}),i})();const Jg=new M("MatFormField"),Tce=["connectionContainer"],Ice=["inputContainer"],Ace=["label"];function Rce(e,i){1&e&&(fi(0),k(1,"div",14),be(2,"div",15)(3,"div",16)(4,"div",17),D(),k(5,"div",18),be(6,"div",15)(7,"div",16)(8,"div",17),D(),mi())}function Oce(e,i){if(1&e){const n=Yt();k(0,"div",19),H("cdkObserveContent",function(){return tt(n),it(ue().updateOutlineGap())}),we(1,1),D()}2&e&&R("cdkObserveContentDisabled","outline"!=ue().appearance)}function Fce(e,i){if(1&e&&(fi(0),we(1,2),k(2,"span"),N(3),D(),mi()),2&e){const n=ue(2);C(3),pe(n._control.placeholder)}}function Nce(e,i){1&e&&we(0,3,["*ngSwitchCase","true"])}function Pce(e,i){1&e&&(k(0,"span",23),N(1," *"),D())}function Lce(e,i){if(1&e){const n=Yt();k(0,"label",20,21),H("cdkObserveContent",function(){return tt(n),it(ue().updateOutlineGap())}),Z(2,Fce,4,1,"ng-container",12),Z(3,Nce,1,0,"ng-content",12),Z(4,Pce,2,0,"span",22),D()}if(2&e){const n=ue();fe("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),R("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),_e("for",n._control.id)("aria-owns",n._control.id),C(2),R("ngSwitchCase",!1),C(1),R("ngSwitchCase",!0),C(1),R("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function Bce(e,i){1&e&&(k(0,"div",24),we(1,4),D())}function Vce(e,i){if(1&e&&(k(0,"div",25),be(1,"span",26),D()),2&e){const n=ue();C(1),fe("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function jce(e,i){1&e&&(k(0,"div"),we(1,5),D()),2&e&&R("@transitionMessages",ue()._subscriptAnimationState)}function zce(e,i){if(1&e&&(k(0,"div",30),N(1),D()),2&e){const n=ue(2);R("id",n._hintLabelId),C(1),pe(n.hintLabel)}}function Hce(e,i){if(1&e&&(k(0,"div",27),Z(1,zce,2,2,"div",28),we(2,6),be(3,"div",29),we(4,7),D()),2&e){const n=ue();R("@transitionMessages",n._subscriptAnimationState),C(1),R("ngIf",n.hintLabel)}}const $ce=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Uce=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Gce=0,qce=(()=>{var e;class i{constructor(t,r){this.id="mat-error-"+Gce++,t||r.nativeElement.setAttribute("aria-live","polite")}}return(e=i).\u0275fac=function(t){return new(t||e)(Mi("aria-live"),p(ne))},e.\u0275dir=I({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,r){2&t&&_e("id",r.id)},inputs:{id:"id"},features:[K([{provide:BB,useExisting:e}])]}),i})();const Wce=new M("MatHint");let ga=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-label"]]}),i})(),Yce=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-placeholder"]]}),i})(),jB=0;const Xce=ro(class{constructor(e){this._elementRef=e}},"primary"),Zce=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS");let yh=(()=>{var e;class i extends Xce{get appearance(){return this._appearance}set appearance(t){const r=this._appearance;this._appearance=t||this._defaults?.appearance||"legacy","outline"===this._appearance&&r!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=re(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}constructor(t,r,s,o,a,l,c){super(t),this._changeDetectorRef=r,this._dir=s,this._defaults=o,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new $,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+jB++,this._labelId="mat-form-field-label-"+jB++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=!!o.hideRequiredMarker,o.color&&(this.color=this.defaultColor=o.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Di(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ft(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Di(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Di(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ke(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const r=this._control?this._control.ngControl:null;return r&&r[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Br(this._label.nativeElement,"transitionend").pipe(ze(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const r=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,s=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;r?t.push(r.id):this._hintLabel&&t.push(this._hintLabelId),s&&t.push(s.id)}else this._errorChildren&&t.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null,r=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!t||!t.children.length||!t.textContent.trim()){const u=r.querySelectorAll(`${s}, ${o}`);for(let h=0;h0?.75*g+10:0}for(let u=0;u{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","matSuffix",""]],features:[K([{provide:VB,useExisting:e}])]}),i})(),wh=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ln,Fe,Vp,Fe]}),i})();const HB=ps({passive:!0});let Jce=(()=>{var e;class i{constructor(t,r){this._platform=t,this._ngZone=r,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Xn;const r=$t(t),s=this._monitoredElements.get(r);if(s)return s.subject;const o=new $,a="cdk-text-field-autofilled",l=c=>{"cdk-text-field-autofill-start"!==c.animationName||r.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(r.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",l,HB),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:o,unlisten:()=>{r.removeEventListener("animationstart",l,HB)}}),o}stopMonitoring(t){const r=$t(t),s=this._monitoredElements.get(r);s&&(s.unlisten(),s.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((t,r)=>this.stopMonitoring(r))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ede=(()=>{var e;class i{get minRows(){return this._minRows}set minRows(t){this._minRows=Oi(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Oi(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=re(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,t?this._textareaElement.setAttribute("placeholder",t):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(t,r,s,o){this._elementRef=t,this._platform=r,this._ngZone=s,this._destroyed=new $,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Br(this._getWindow(),"resize").pipe(Kw(16),ke(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,t.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const t=this._textareaElement,r=t.style.marginBottom||"",s=this._platform.FIREFOX,o=s&&this._hasFocus,a=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(t.style.marginBottom=`${t.clientHeight}px`),t.classList.add(a);const l=t.scrollHeight-4;return t.classList.remove(a),o&&(t.style.marginBottom=r),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const r=this._elementRef.nativeElement,s=r.value;if(!t&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);r.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(r)):setTimeout(()=>this._scrollToCaretPosition(r))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:r,selectionEnd:s}=t;!this._destroyed.isStopped&&this._hasFocus&&t.setSelectionRange(r,s)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ot),p(ce),p(xe,8))},e.\u0275dir=I({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,r){1&t&&H("input",function(){return r._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),$B=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const tde=new M("MAT_INPUT_VALUE_ACCESSOR"),ide=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let nde=0;const rde=sx(class{constructor(e,i,n,t){this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=t,this.stateChanges=new $}});let sde=(()=>{var e;class i extends rde{get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ml.required)??!1}set required(t){this._required=re(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&rN().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=re(t)}constructor(t,r,s,o,a,l,c,d,u,h){super(l,o,a,s),this._elementRef=t,this._platform=r,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+nde++,this.focused=!1,this.stateChanges=new $,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>rN().has(g)),this._iOSKeyupListener=g=>{const m=g.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,_=f.nodeName.toLowerCase();this._inputValueAccessor=c||f,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===_,this._isTextarea="textarea"===_,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){const t=this._getPlaceholder();if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ide.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,r=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&r&&r.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ot),p(or,10),p(Il,8),p(Ol,8),p(Pu),p(tde,10),p(Jce),p(ce),p(Jg,8))},e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,r){1&t&&H("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&t&&(On("id",r.id)("disabled",r.disabled)("required",r.required),_e("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),fe("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[K([{provide:xc,useExisting:e}]),L,bt]}),i})(),Xk=(()=>{var e;class i extends sde{constructor(){super(...arguments),this._legacyFormField=G(Jg,{optional:!0})}_getPlaceholder(){const t=this._legacyFormField;return t&&"legacy"===t.appearance&&!t._hasLabel?.()?null:this.placeholder}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(t,r){2&t&&(_e("data-placeholder",r.placeholder),fe("mat-input-server",r._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",r._isInlineSelect()))},exportAs:["matInput"],features:[K([{provide:xc,useExisting:e}]),L]}),i})(),UB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Pu],imports:[$B,wh,Fe,$B,wh]}),i})(),ode=(()=>{var e;class i{constructor(t,r){this.dialogRef=t,this.graph=r,this.graphName=new Al(r.name,Ml.required),this.graphDescription=new Al(r.description)}updatedGraph(){if(!this.graphName.invalid)return{...this.graph,name:this.graphName.value,description:this.graphDescription.value,lastEdit:Date.now()}}closeDialog(){this.dialogRef.close()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so),p(ju))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:24,vars:22,consts:[["mat-dialog-content",""],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"mat-form-field")(2,"mat-label"),N(3),U(4,"translate"),D(),be(5,"input",1),U(6,"translate"),D(),k(7,"mat-form-field")(8,"mat-label"),N(9),U(10,"translate"),D(),be(11,"input",2),U(12,"translate"),D()(),k(13,"div",3)(14,"button",4),H("click",function(){return r.closeDialog()}),k(15,"mat-icon"),N(16,"cancel"),D(),N(17),U(18,"translate"),D(),k(19,"button",5)(20,"mat-icon"),N(21,"save"),D(),N(22),U(23,"translate"),D()()),2&t&&(C(3),pe(Y(4,10,"misc.name")),C(2),nn("placeholder",Y(6,12,"misc.name")),R("formControl",r.graphName),C(4),pe(Y(10,14,"misc.description")),C(2),nn("placeholder",Y(12,16,"misc.description")),R("formControl",r.graphDescription),C(6),ot(" ",Y(18,18,"actions.cancel")," "),C(2),R("mat-dialog-close",r.updatedGraph())("disabled",r.graphName.invalid),C(3),ot(" ",Y(23,20,"actions.save")," "))},dependencies:[Uo,zd,Xm,Fi,qee,dP,cx,yh,ga,kn,Xk,Rl,di],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i})();function GB(e,i,n,t){e.append("defs").append("marker").attr("id",n).attr("viewBox",i.markerPath).attr("refX",i.markerRef).attr("refY",i.markerRef).attr("markerWidth",i.markerBoxSize).attr("markerHeight",i.markerBoxSize).attr("orient","auto").classed(t,!0).append("path").attr("d",`${function eae(e,i){var n=lc(!0),t=null,r=Woe,s=null,o=function Zoe(e){let i=3;return e.digits=function(n){if(!arguments.length)return i;if(null==n)i=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);i=t}return e},()=>new Og(i)}(a);function a(l){var c,u,f,d=(l=function qoe(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(l)).length,h=!1;for(null==t&&(s=r(f=o())),c=0;c<=d;++c)!(c1&&void 0!==arguments[1]?arguments[1]:{};if(!Sn(e))throw new TypeError("input must be an array");if(0===e.length)throw new TypeError("input must not be empty");if(void 0!==i.output){if(!Sn(i.output))throw new TypeError("output option must be an array if specified");n=i.output}else n=new Array(e.length);var t=function pde(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Sn(e))throw new TypeError("input must be an array");if(0===e.length)throw new TypeError("input must not be empty");var n=i.fromIndex,t=void 0===n?0:n,r=i.toIndex,s=void 0===r?e.length:r;if(t<0||t>=e.length||!Number.isInteger(t))throw new Error("fromIndex must be a positive integer smaller than length");if(s<=t||s>e.length||!Number.isInteger(s))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=e[t],a=t+1;a1&&void 0!==arguments[1]?arguments[1]:{};if(!Sn(e))throw new TypeError("input must be an array");if(0===e.length)throw new TypeError("input must not be empty");var n=i.fromIndex,t=void 0===n?0:n,r=i.toIndex,s=void 0===r?e.length:r;if(t<0||t>=e.length||!Number.isInteger(t))throw new Error("fromIndex must be a positive integer smaller than length");if(s<=t||s>e.length||!Number.isInteger(s))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=e[t],a=t+1;ao&&(o=e[a]);return o}(e);if(t===r)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var s=i.min,o=void 0===s?i.autoMinMax?t:0:s,a=i.max,l=void 0===a?i.autoMinMax?r:1:a;if(o>=l)throw new RangeError("min option must be smaller than max option");for(var c=(l-o)/(r-t),d=0;d=0&&n?` ${KB(e,i-1)}`:KB(e,i)).padEnd(i)}function KB(e,i){let n=e.toString();if(n.length<=i)return n;let t=e.toFixed(i);if(t.length>i&&(t=e.toFixed(Math.max(0,i-(t.length-i)))),t.length<=i&&!t.startsWith("0.000")&&!t.startsWith("-0.000"))return t;let r=e.toExponential(i);return r.length>i&&(r=e.toExponential(Math.max(0,i-(r.length-i)))),r.slice(0)}function pr(e,i,n){if(i<0||i>(n?e.rows:e.rows-1))throw new RangeError("Row index out of range")}function gr(e,i,n){if(i<0||i>(n?e.columns:e.columns-1))throw new RangeError("Column index out of range")}function kc(e,i){if(i.to1DArray&&(i=i.to1DArray()),i.length!==e.columns)throw new RangeError("vector size must be the same as the number of columns");return i}function Cc(e,i){if(i.to1DArray&&(i=i.to1DArray()),i.length!==e.rows)throw new RangeError("vector size must be the same as the number of rows");return i}function XB(e,i,n,t,r){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(i_("startRow",i),i_("endRow",n),i_("startColumn",t),i_("endColumn",r),i>n||t>r||i<0||i>=e.rows||n<0||n>=e.rows||t<0||t>=e.columns||r<0||r>=e.columns)throw new RangeError("Submatrix indices are out of range")}function t_(e,i=0){let n=[];for(let t=0;t=s)throw new RangeError("min must be smaller than max");let a=s-r,l=new De(i,n);for(let c=0;ct?(s=!0,t=n):(r=!1,s=!0);i++}return r}isReducedEchelonForm(){let i=0,n=0,t=-1,r=!0,s=!1;for(;it?(s=!0,t=n):(r=!1,s=!0);for(let o=n+1;oi.get(r,t)&&(r=s);if(0===i.get(r,t))t++;else{i.swapRows(n,r);let s=i.get(n,t);for(let o=t;o=0;)if(0===i.maxRow(r))r--;else{let s=0,o=!1;for(;sn[t]&&(n[t]=this.get(t,r));return n}case"column":{const n=new Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let t=0;tn[r]&&(n[r]=this.get(t,r));return n}case void 0:{let n=this.get(0,0);for(let t=0;tn&&(n=this.get(t,r));return n}default:throw new Error(`invalid option: ${i}`)}}maxIndex(){Dc(this);let i=this.get(0,0),n=[0,0];for(let t=0;ti&&(i=this.get(t,r),n[0]=t,n[1]=r);return n}min(i){if(this.isEmpty())return NaN;switch(i){case"row":{const n=new Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let t=0;tn&&(n=this.get(i,t));return n}maxRowIndex(i){pr(this,i),Dc(this);let n=this.get(i,0),t=[i,0];for(let r=1;rn&&(n=this.get(i,r),t[1]=r);return t}minRow(i){if(pr(this,i),this.isEmpty())return NaN;let n=this.get(i,0);for(let t=1;tn&&(n=this.get(t,i));return n}maxColumnIndex(i){gr(this,i),Dc(this);let n=this.get(0,i),t=[0,i];for(let r=1;rn&&(n=this.get(r,i),t[0]=r);return t}minColumn(i){if(gr(this,i),this.isEmpty())return NaN;let n=this.get(0,i);for(let t=1;t=t)throw new RangeError("min must be smaller than max");let r=new De(this.rows,this.columns);for(let s=0;s0&&qB(o,{min:n,max:t,output:o}),r.setRow(s,o)}return r}scaleColumns(i={}){if("object"!=typeof i)throw new TypeError("options must be an object");const{min:n=0,max:t=1}=i;if(!Number.isFinite(n))throw new TypeError("min must be a number");if(!Number.isFinite(t))throw new TypeError("max must be a number");if(n>=t)throw new RangeError("min must be smaller than max");let r=new De(this.rows,this.columns);for(let s=0;st||n<0||n>=this.columns||t<0||t>=this.columns)throw new RangeError("Argument out of range");let r=new De(i.length,t-n+1);for(let s=0;s=this.rows)throw new RangeError(`Row index out of range: ${i[s]}`);r.set(s,o-n,this.get(i[s],o))}return r}subMatrixColumn(i,n,t){if(void 0===n&&(n=0),void 0===t&&(t=this.rows-1),n>t||n<0||n>=this.rows||t<0||t>=this.rows)throw new RangeError("Argument out of range");let r=new De(t-n+1,i.length);for(let s=0;s=this.columns)throw new RangeError(`Column index out of range: ${i[s]}`);r.set(o-n,s,this.get(o,i[s]))}return r}setSubMatrix(i,n,t){if((i=De.checkMatrix(i)).isEmpty())return this;XB(this,n,n+i.rows-1,t,t+i.columns-1);for(let o=0;o=e.rows)throw new RangeError("row indices are out of range")})(this,i),function wde(e,i){if(!Sn(i))throw new TypeError("column indices must be an array");for(let n=0;n=e.columns)throw new RangeError("column indices are out of range")}(this,n);let t=new De(i.length,n.length);for(let r=0;r=0){if(this.data=[],!(Number.isInteger(n)&&n>=0))throw new TypeError("nColumns must be a positive integer");for(let t=0;t"number"==typeof i))throw new TypeError("Input data contains non-numeric values");this.data.push(Float64Array.from(t[r]))}}}this.rows=i,this.columns=n}set(i,n,t){return this.data[i][n]=t,this}get(i,n){return this.data[i][n]}removeRow(i){return pr(this,i),this.data.splice(i,1),this.rows-=1,this}addRow(i,n){return void 0===n&&(n=i,i=this.rows),pr(this,i,!0),n=Float64Array.from(kc(this,n)),this.data.splice(i,0,n),this.rows+=1,this}removeColumn(i){gr(this,i);for(let n=0;n"u"&&(n=i,i=this.columns),gr(this,i,!0),n=Cc(this,n);for(let t=0;t(e=(Foe*e+Noe)%vL)/vL}();function u(){h(),c.call("tick",i),n1?(null==m?a.delete(g):a.set(g,_(m)),i):a.get(g)},find:function(g,m,b){var y,E,T,B,z,v=0,w=e.length;for(null==b?b=1/0:b*=b,v=0;v1?(c.on(g,m),i):c.on(g)}}}(e.nodes).on("tick",()=>s());return r&&o.force("charge",function Hoe(){var e,i,n,t,s,r=Ki(-30),o=1,a=1/0,l=.81;function c(f){var _,g=e.length,m=nk(e,Loe,Boe).visitAfter(u);for(t=f,_=0;_=a)){(f.data!==i||f.next)&&(0===b&&(y+=(b=co(n))*b),0===v&&(y+=(v=co(n))*v),yf+te||T_+te||B<_-te;if(z.index>h.index){var ve=f-z.x-z.vx,Ce=_-z.y-z.vy,Ne=ve*ve+Ce*Ce;Nec.r&&(c.r=c[d].r)}function l(){if(i){var c,u,d=i.length;for(n=new Array(d),c=0;c[i(E,T,o),E]));for(m=0,a=new Array(b);ma.id).distance(10*i.nodeRadius)).force("x",function $oe(e){var n,t,r,i=Ki(.1);function s(a){for(var d,l=0,c=n.length;l>t);return this},e.prototype.signPropagatingRightShiftM=function(t){if(t=i.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let r=0;r>t.get(r,s));return this},e.signPropagatingRightShift=function(t,r){return new i(t).signPropagatingRightShift(r)},e.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},e.prototype.rightShiftS=function(t){for(let r=0;r>>t);return this},e.prototype.rightShiftM=function(t){if(t=i.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let r=0;r>>t.get(r,s));return this},e.rightShift=function(t,r){return new i(t).rightShift(r)},e.prototype.zeroFillRightShift=e.prototype.rightShift,e.prototype.zeroFillRightShiftS=e.prototype.rightShiftS,e.prototype.zeroFillRightShiftM=e.prototype.rightShiftM,e.zeroFillRightShift=e.rightShift,e.prototype.not=function(){for(let t=0;te.scrollStrategies.reposition({scrollThrottle:20})}},Xde=new M("mat-tooltip-default-options",{providedIn:"root",factory:function Kde(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),r3="tooltip-panel",s3=ps({passive:!0});let Qde=(()=>{var e;class i{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=re(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Oi(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Oi(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,r,s,o,a,l,c,d,u,h,f,_){this._overlay=t,this._elementRef=r,this._scrollDispatcher=s,this._viewContainerRef=o,this._ngZone=a,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new $,this._scrollStrategy=u,this._document=_,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ke(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,s])=>{t.removeEventListener(r,s,s3)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const s=this._createOverlay(r);this._detach(),this._portal=this._portal||new Kl(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=s.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const r=this._tooltipInstance;r&&(r.isVisible()?r.hide(t):(r._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof ne)return this._overlayRef;this._detach()}const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return s.positionChanges.pipe(ke(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${r3}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ke(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!qi(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const r=t.getConfig().positionStrategy,s=this._getOrigin(),o=this._getOverlayPosition();r.withPositions([this._addOffset({...s.main,...o.main}),this._addOffset({...s.fallback,...o.fallback})])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,r=this.position;let s;"above"==r||"below"==r?s={originX:"center",originY:"above"==r?"top":"bottom"}:"before"==r||"left"==r&&t||"right"==r&&!t?s={originX:"start",originY:"center"}:("after"==r||"right"==r&&t||"left"==r&&!t)&&(s={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,r=this.position;let s;"above"==r?s={overlayX:"center",overlayY:"bottom"}:"below"==r?s={overlayX:"center",overlayY:"top"}:"before"==r||"left"==r&&t||"right"==r&&!t?s={overlayX:"end",overlayY:"center"}:("after"==r||"right"==r&&t||"left"==r&&!t)&&(s={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ze(1),ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,r){return"above"===this.position||"below"===this.position?"top"===r?r="bottom":"bottom"===r&&(r="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:r}}_updateCurrentPositionClass(t){const{overlayY:r,originX:s,originY:o}=t;let a;if(a="center"===r?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===r&&"top"===o?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const c=`${this._cssClassPrefix}-${r3}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let r;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(r=t),this.show(void 0,r)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const r=t.targetTouches?.[0],s=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",r=>{const s=r.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",r],["touchcancel",r])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([r,s])=>{this._elementRef.nativeElement.addEventListener(r,s,s3)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const r=this._document.elementFromPoint(t.clientX,t.clientY),s=this._elementRef.nativeElement;r!==s&&!s.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const r=this._elementRef.nativeElement,s=r.style;("on"===t||"INPUT"!==r.nodeName&&"TEXTAREA"!==r.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===t||!r.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275dir=I({type:e,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),Jde=(()=>{var e;class i{constructor(t,r){this._changeDetectorRef=t,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new $,this._animationsDisabled="NoopAnimations"===r}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const r=this._tooltip.nativeElement,s=this._showAnimation,o=this._hideAnimation;if(r.classList.remove(t?o:s),r.classList.add(t?s:o),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(r);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(ti,8))},e.\u0275dir=I({type:e}),i})();const eue=["tooltip"];let xh=(()=>{var e;class i extends Qde{constructor(t,r,s,o,a,l,c,d,u,h,f,_){super(t,r,s,o,a,l,c,d,u,h,f,_),this._tooltipComponent=tue}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ln),p(ne),p(Wl),p(Vt),p(ce),p(Ot),p(_N),p(xn),p(n3),p(an,8),p(Xde,8),p(xe))},e.\u0275dir=I({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[L]}),i})(),tue=(()=>{var e;class i extends Jde{constructor(t,r,s){super(t,s),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide",this._isHandset=r.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(Mu),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(t,r){if(1&t&&Xe(eue,7),2&t){let s;Q(s=J())&&(r._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(t,r){1&t&&H("mouseleave",function(o){return r._handleMouseLeave(o)}),2&t&&(_e("mat-id-collision",null),yn("zoom",r.isVisible()?1:null))},features:[L],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,r){if(1&t&&(k(0,"div",0,1),H("animationend",function(o){return r._handleAnimationEnd(o)}),U(2,"async"),N(3),D()),2&t){let s;fe("mat-tooltip-handset",null==(s=Y(2,4,r._isHandset))?null:s.matches),R("ngClass",r.tooltipClass),C(3),pe(r.message)}},dependencies:[Wy,Pr],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),o3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Yde],imports:[SN,Ln,Ou,Fe,Fe,ta]}),i})();const iue=["graphHost"],nue=["graph","","allowEditing",""];function rue(e,i){if(1&e){const n=Yt();k(0,"button",8),H("click",function(){return tt(n),it(ue().createNode())}),U(1,"translate"),k(2,"mat-icon"),N(3,"add"),D()()}2&e&&nn("matTooltip",Y(1,1,"graph.create-node"))}let sue=(()=>{var e;class i{constructor(t,r,s,o){this.store=t,this.translate=r,this.dialog=s,this.bottomSheet=o,this.graph=new Cn,this.config=yce,this.linkSelected=new W,this.nodeSelected=new W,this.linkDeleted=new W,this.nodeDeleted=new W,this.saveRequested=new W,this.graphExported=new W,this.controlsTooltipText=Vr(ee(!0),this.translate.onLangChange).pipe(Bt(()=>jd([this.translate.get("graph.controls.view"),this.translate.get("graph.controls.graph")])),se(([a,l])=>this.allowEditing?a+"\n"+l:a)),this.graphSettings=this.store.select("graphSettings"),this.enableSimulation=!0,this.showLabels=!0,this.width=0,this.height=0,this.xOffset=0,this.yOffset=0,this.scale=1}ngAfterViewChecked(){const t=this.graphHost.nativeElement.offsetWidth,r=this.graphHost.nativeElement.offsetHeight,s=this.width.toFixed(2)!==t.toFixed(2),o=this.height.toFixed(2)!==r.toFixed(2);!s&&!o||(window.innerWidth<=800&&!this.enableSimulation?this.store.dispatch(ig()):this.cleanInitGraph(t,r))}ngAfterViewInit(){this.initGraph(),this.graphSettingsSubscription=this.graphSettings.subscribe(t=>this.onSettingsChanged(t))}ngOnChanges(t){t.graph.currentValue&&void 0!==this.graphHost?(this.cleanInitGraph(),this.enableSimulation?this.restart(1):this.store.dispatch(ig())):null===t.graph.currentValue&&(this.graph=new Cn),t.graphExportRequests&&(this.graphExportRequestsSubscription?.unsubscribe(),this.graphExportRequestsSubscription=this.graphExportRequests?.subscribe(()=>this.graphExported.emit(this.graph.toDomainGraph())))}ngOnDestroy(){this.graphSettingsSubscription?.unsubscribe(),this.graphExportRequestsSubscription?.unsubscribe()}saveGraph(){Fw(this.dialog.open(ode,{data:this.graph.toDomainGraph()}).afterClosed()).then(t=>{void 0!==t&&this.saveRequested.emit(t)})}exportGraph(){this.bottomSheet.open(PB,{data:this.graph.toDomainGraph()})}toggleLabels(){this.store.dispatch(EP())}toggleSimulation(){this.store.dispatch(SP())}resetGraph(){this.cleanInitGraph(),this.store.dispatch(ig())}cleanInitGraph(t,r){this.resetView(),this.initGraph(t,r)}restart(t=.5){this.linkSelection=this.linkSelection.data(this.graph.links,r=>`${r.source.id}-${r.target.id}`).join(r=>{const s=r.append("g");return s.append("path").classed("link",!0).style("marker-end","url(#link-arrow"),s.append("path").classed("clickbox",!0).on("contextmenu",(o,a)=>{Yr(o),this.linkSelected.emit(a)}),s.append("text").classed("link-details",!0),s}),this.nodeSelection=this.nodeSelection.data(this.graph.nodes,r=>r.id).join(r=>{const s=r.append("g").call(this.drag).on("contextmenu",(o,a)=>{Yr(o),this.nodeSelected.emit(a)});return s.append("circle").classed("node",!0).attr("r",this.config.nodeRadius).on("mouseenter",(o,a)=>this.draggableLinkTargetNode=a).on("mouseout",()=>this.draggableLinkTargetNode=void 0).on("pointerdown",(o,a)=>this.onPointerDown(o,a)).on("pointerup",o=>this.onPointerUp(o)),s.append("text").text(o=>o.id).classed("node-id",!0).attr("dy","0.33em"),s.append("text").classed("node-details",!0).attr("dy","-2em"),s}),this.linkSelection.select(".link-details").attr("opacity",this.showLabels?1:0).text(r=>[...r.relations,...r.functions].join(", ")),this.nodeSelection.select(".node-details").attr("opacity",this.showLabels?1:0).text(r=>[...r.relations,...r.constants].join(", ")),this.simulation.nodes(this.graph.nodes),this.simulation.alpha(t).restart()}createNode(t=this.width/2-this.xOffset,r=this.height/2-this.yOffset){var s=this;return Hu(function*(){if(!s.allowEditing)return Promise.reject("Graph is not in edit mode.");const o=yield s.graph.createNodeWithGeneratedId(t,r);s.restart(),s.nodeSelected.emit(o)})()}removeNode(t){this.allowEditing&&(this.resetDraggableLink(),this.graph.removeNode(t).then(([r,s])=>{this.restart(),this.nodeDeleted.emit(r),s.forEach(o=>this.linkDeleted.emit(o))}))}createLink(t,r){return this.allowEditing?this.graph.createLink(t.id,r.id).then(s=>{this.restart(),this.linkSelected.emit(s)}).catch(s=>this.linkSelected.emit(s)):Promise.reject("Graph is not in edit mode.")}removeLink(t){this.allowEditing&&this.graph.removeLink(t).then(r=>{this.restart(),this.linkDeleted.emit(r)})}initGraph(t=this.graphHost.nativeElement.clientWidth,r=this.graphHost.nativeElement.clientHeight){this.width=t,this.height=r,this.zoom=function Gde(e){return function hae(){var d,u,h,e=aae,i=lae,n=uae,t=cae,r=dae,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,l=rae,c=pg("start","zoom","end"),f=500,_=150,g=0,m=10;function b(A){A.property("__zoom",kL).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",oe).on("dblclick.zoom",te).filter(r).on("touchstart.zoom",ve).on("touchmove.zoom",Ce).on("touchend.zoom touchcancel.zoom",Ne).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(A,ae){return(ae=Math.max(s[0],Math.min(s[1],ae)))===A.k?A:new ws(ae,A.x,A.y)}function w(A,ae,S){var F=ae[0]-S[0]*A.k,V=ae[1]-S[1]*A.k;return F===A.x&&V===A.y?A:new ws(A.k,F,V)}function y(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function E(A,ae,S,F){A.on("start.zoom",function(){T(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){T(this,arguments).event(F).end()}).tween("zoom",function(){var V=this,q=arguments,X=T(V,q).event(F),ge=i.apply(V,q),ye=null==S?y(ge):"function"==typeof S?S.apply(V,q):S,Tt=Math.max(ge[1][0]-ge[0][0],ge[1][1]-ge[0][1]),Ae=V.__zoom,Xt="function"==typeof ae?ae.apply(V,q):ae,bi=l(Ae.invert(ye).concat(Tt/Ae.k),Xt.invert(ye).concat(Tt/Xt.k));return function(Be){if(1===Be)Be=Xt;else{var It=bi(Be),Zt=Tt/It[2];Be=new ws(Zt,ye[0]-It[0]*Zt,ye[1]-It[1]*Zt)}X.zoom(null,Be)}})}function T(A,ae,S){return!S&&A.__zooming||new B(A,ae)}function B(A,ae){this.that=A,this.args=ae,this.active=0,this.sourceEvent=null,this.extent=i.apply(A,ae),this.taps=0}function z(A,...ae){if(e.apply(this,arguments)){var S=T(this,ae).event(A),F=this.__zoom,V=Math.max(s[0],Math.min(s[1],F.k*Math.pow(2,t.apply(this,arguments)))),q=zn(A);if(S.wheel)(S.mouse[0][0]!==q[0]||S.mouse[0][1]!==q[1])&&(S.mouse[1]=F.invert(S.mouse[0]=q)),clearTimeout(S.wheel);else{if(F.k===V)return;S.mouse=[q,F.invert(q)],kg(this),S.start()}ah(A),S.wheel=setTimeout(function X(){S.wheel=null,S.end()},_),S.zoom("mouse",n(w(v(F,V),S.mouse[0],S.mouse[1]),S.extent,o))}}function oe(A,...ae){if(!h&&e.apply(this,arguments)){var S=A.currentTarget,F=T(this,ae,!0).event(A),V=jn(A.view).on("mousemove.zoom",function ye(Ae){if(ah(Ae),!F.moved){var Xt=Ae.clientX-X,bi=Ae.clientY-ge;F.moved=Xt*Xt+bi*bi>g}F.event(Ae).zoom("mouse",n(w(F.that.__zoom,F.mouse[0]=zn(Ae,S),F.mouse[1]),F.extent,o))},!0).on("mouseup.zoom",function Tt(Ae){V.on("mousemove.zoom mouseup.zoom",null),pL(Ae.view,F.moved),ah(Ae),F.event(Ae).end()},!0),q=zn(A,S),X=A.clientX,ge=A.clientY;mL(A.view),lk(A),F.mouse=[q,this.__zoom.invert(q)],kg(this),F.start()}}function te(A,...ae){if(e.apply(this,arguments)){var S=this.__zoom,F=zn(A.changedTouches?A.changedTouches[0]:A,this),V=S.invert(F),X=n(w(v(S,S.k*(A.shiftKey?.5:2)),F,V),i.apply(this,ae),o);ah(A),a>0?jn(this).transition().duration(a).call(E,X,F,A):jn(this).call(b.transform,X,F,A)}}function ve(A,...ae){if(e.apply(this,arguments)){var q,X,ge,ye,S=A.touches,F=S.length,V=T(this,ae,A.changedTouches.length===F).event(A);for(lk(A),X=0;X0===i.button||i.touches?.length>=2).on("zoom",i=>e(i))}(s=>this.onZoom(s)),this.canvas=function ade(e,i,n,t,r){return e.append("svg").attr("width","100%").attr("height","100%").on("pointermove",s=>n(s)).on("pointerup",s=>t(s)).on("contextmenu",s=>Yr(s)).on("dblclick",s=>r(s)).call(i).on("dblclick.zoom",null).append("g")}(jn(this.graphHost.nativeElement),this.zoom,s=>this.onPointerMoved(s),s=>this.onPointerUp(s),s=>this.createNode(zn(s,this.canvas.node())[0],zn(s,this.canvas.node())[1])),function ude(e,i){GB(e,i,"link-arrow","arrow"),GB(e,i,"draggable-link-arrow","arrow draggable")}(this.canvas,this.config),this.allowEditing&&(this.draggableLink=function cde(e){return e.append("path").classed("link draggable hidden",!0).attr("d","M0,0L0,0")}(this.canvas)),this.linkSelection=function dde(e){return e.append("g").classed("links",!0).selectAll("path")}(this.canvas),this.nodeSelection=function hde(e){return e.append("g").classed("nodes",!0).selectAll("circle")}(this.canvas),this.simulation=this.createSimulation(),this.drag=this.createDrag(),this.restart()}createSimulation(){return Ude(this.graph,this.config,this.width,this.height,this.enableSimulation,()=>this.onTick())}onTick(){this.nodeSelection.attr("transform",t=>`translate(${t.x},${t.y})`),this.linkSelection.selectAll("path").attr("d",t=>t.source.id===t.target.id?e3(t.source,[this.width/2,this.height/2],this.config):this.isBidirectional(t.source,t.target)?JB(t.source,t.target,this.config):QB(t.source,t.target,this.config)),this.linkSelection.select(".link-details").attr("transform",t=>t.source.id===t.target.id?function $de(e,i,n){const t=new De([[e.x,e.y]]),r=new De([i]);t.get(0,0)===r.get(0,0)&&t.get(0,1)===r.get(0,1)&&r.add([[0,1]]);const s=De.subtract(t,r),o=s.divide(s.norm("frobenius")).multiply(3*n.nodeRadius+8).add(t);return`translate(${o.get(0,0)},${o.get(0,1)})`}(t.source,[this.width/2,this.height/2],this.config):this.isBidirectional(t.source,t.target)?function Hde(e,i,n){const t=new De([[e.x,e.y]]),r=new De([[i.x,i.y]]),s=De.subtract(r,t),o=s.norm("frobenius"),a=s.divide(o),l=Zk(10),c=De.multiply(a,-1),d=.3*o>2*n.nodeRadius?.3*o:2*n.nodeRadius,u=_a(c,l).multiply(d).add(r);return`translate(${u.get(0,0)},${u.get(0,1)})`}(t.source,t.target,this.config):function zde(e,i){return`translate(${(e.x+i.x)/2},${(e.y+i.y)/2-8})`}(t.source,t.target)),this.updateDraggableLinkPath()}updateDraggableLinkPath(){const t=this.draggableLinkSourceNode;if(void 0!==t){const r=this.draggableLinkTargetNode;void 0!==r?this.draggableLink.attr("d",()=>t.id===r.id?e3(t,[this.width/2,this.height/2],this.config):this.isBidirectional(t,r)?QB(t,r,this.config):JB(t,r,this.config)):void 0!==this.draggableLinkEnd&&this.draggableLink.attr("d",t3([t.x,t.y],this.draggableLinkEnd))}}createDrag(){return function lde(e,i,n){return function hoe(){var a,l,c,d,e=loe,i=coe,n=doe,t=uoe,r={},s=pg("start","drag","end"),o=0,u=0;function h(y){y.on("mousedown.drag",f).filter(t).on("touchstart.drag",m).on("touchmove.drag",b,aoe).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(y,E){if(!d&&e.call(this,y,E)){var T=w(this,i.call(this,y,E),y,E,"mouse");T&&(jn(y.view).on("mousemove.drag",_,oh).on("mouseup.drag",g,oh),mL(y.view),tk(y),c=!1,a=y.clientX,l=y.clientY,T("start",y))}}function _(y){if(ac(y),!c){var E=y.clientX-a,T=y.clientY-l;c=E*E+T*T>u}r.mouse("drag",y)}function g(y){jn(y.view).on("mousemove.drag mouseup.drag",null),pL(y.view,c),ac(y),r.mouse("end",y)}function m(y,E){if(e.call(this,y,E)){var oe,te,T=y.changedTouches,B=i.call(this,y,E),z=T.length;for(oe=0;oe1===t.button).on("start",e).on("drag",i).on("end",n)}((t,r)=>this.onDragStart(t,r),(t,r)=>this.onDrag(t,r),(t,r)=>this.onDragEnd(t,r))}onDragStart(t,r){Yr(t.sourceEvent),0===t.active&&this.simulation?.alphaTarget(.5).restart(),r.fx=r.x,r.fy=r.y}onDrag(t,r){r.fx=t.x,r.fy=t.y}onDragEnd(t,r){0===t.active&&this.simulation?.alphaTarget(0),r.fx=void 0,r.fy=void 0}onPointerDown(t,r){if(!this.allowEditing||0!==t.button)return;Yr(t);const s=[r.x,r.y];this.draggableLinkEnd=s,this.draggableLinkSourceNode=r,this.draggableLink.style("marker-end","url(#draggable-link-arrow").classed("hidden",!1).attr("d",t3(s,s)),this.restart()}onPointerMoved(t){if(Yr(t),void 0!==this.draggableLinkSourceNode){const r=function Goe(e,i){return e.target&&(e=fL(e),void 0===i&&(i=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>zn(n,i))}(t,this.graphHost.nativeElement)[0],s=[(r[0]-this.xOffset)/this.scale,(r[1]-this.yOffset)/this.scale];"touch"===t.pointerType&&(s[1]=s[1]-4*this.config.nodeRadius,this.draggableLinkTargetNode=this.graph.nodes.find(o=>Math.sqrt(Math.pow(o.x-s[0],2)+Math.pow(o.y-s[1],2))s.target.id===t.id&&s.source.id===r.id)&&this.graph.links.some(s=>s.target.id===r.id&&s.source.id===t.id)}onSettingsChanged(t){const r=this.enableSimulation!==t.enableSimulation,s=this.showLabels!==t.showLabels;this.enableSimulation=t.enableSimulation,this.showLabels=t.showLabels,r&&(this.simulation?.stop(),this.simulation=this.createSimulation()),(r||s)&&this.restart(1)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on),p(Yo),p(oo),p(DL))},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph","graph","","allowEditing",""]],viewQuery:function(t,r){if(1&t&&Xe(iue,5),2&t){let s;Q(s=J())&&(r.graphHost=s.first)}},hostBindings:function(t,r){1&t&&H("resize",function(o){return r.ngAfterViewChecked(o)},0,US)},inputs:{graph:"graph",allowEditing:"allowEditing",config:"config",graphExportRequests:"graphExportRequests"},outputs:{linkSelected:"linkSelected",nodeSelected:"nodeSelected",linkDeleted:"linkDeleted",nodeDeleted:"nodeDeleted",saveRequested:"saveRequested",graphExported:"graphExported"},features:[bt],attrs:nue,decls:27,vars:25,consts:[[1,"graph-tool-container"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["color","primary","matTooltipClass","multiline-tooltip",1,"help-icon",3,"matTooltip"],["color","accent",1,"automatic-layout-toggle",3,"checked","change"],["color","accent",3,"checked","change"],["mat-mini-fab","","color","primary","class","create-node-button","matTooltipPosition","left",3,"matTooltip","click",4,"ngIf"],[1,"graph"],["graphHost",""],["mat-mini-fab","","color","primary","matTooltipPosition","left",1,"create-node-button",3,"matTooltip","click"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"button",1),H("click",function(){return r.saveGraph()}),U(2,"translate"),k(3,"mat-icon"),N(4,"save"),D()(),k(5,"button",1),H("click",function(){return r.exportGraph()}),U(6,"translate"),k(7,"mat-icon"),N(8,"get_app"),D()(),k(9,"button",1),H("click",function(){return r.resetGraph()}),U(10,"translate"),k(11,"mat-icon"),N(12,"location_searching"),D()(),k(13,"mat-icon",2),U(14,"async"),N(15,"help_outlined"),D(),k(16,"mat-slide-toggle",3),H("change",function(){return r.toggleSimulation()}),U(17,"async"),N(18),U(19,"translate"),D(),k(20,"mat-slide-toggle",4),H("change",function(){return r.toggleLabels()}),U(21,"async"),N(22),U(23,"translate"),D()(),Z(24,rue,4,3,"button",5),be(25,"div",6,7)),2&t&&(C(1),nn("matTooltip",Y(2,9,"actions.save")),C(4),nn("matTooltip",Y(6,11,"actions.export")),C(4),nn("matTooltip",Y(10,13,"graph.reset-graph")),C(4),R("matTooltip",Y(14,15,r.controlsTooltipText)||""),C(3),R("checked",Y(17,17,r.graphSettings).enableSimulation),C(2),ot(" ",Y(19,19,"graph.simulation")," "),C(2),R("checked",Y(21,21,r.graphSettings).showLabels),C(2),ot(" ",Y(23,23,"graph.labels")," "),C(2),R("ngIf",r.allowEditing))},dependencies:[ki,Fi,kn,Rx,xh,Pr,di],styles:["[_nghost-%COMP%]{height:100%}[_nghost-%COMP%], .graph[_ngcontent-%COMP%], .graph[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{display:block;min-height:400px}"]}),i})();const a3={title:"fol.relation.plural",placeholder:"editor.symbols.new-relation",symbolPattern:"[A-Z]+([a-z]|[A-Z])*",patternError:"validation.relation-pattern-error"},oue={title:"fol.function.plural",placeholder:"editor.symbols.new-function",symbolPattern:"[a-z]+([a-z]|[A-Z])*",patternError:"validation.function-pattern-error"},aue={title:"fol.constant.plural",placeholder:"editor.symbols.new-constant",symbolPattern:"[a-z]+([a-z]|[A-Z])*",patternError:"validation.constant-pattern-error"},lue=["*"],l3=new M("MatChipRemove"),c3=new M("MatChipAvatar"),d3=new M("MatChipTrailingIcon");class cue{constructor(i){this._elementRef=i}}const due=Nu(ro($r(cue),"primary"),-1);let n_=(()=>{var e;class i extends due{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const r=re(t);r!==this._selected&&(this._selected=r,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=re(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=re(t)}get removable(){return this._removable}set removable(t){this._removable=re(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(t,r,s,o,a,l,c,d){super(t),this._ngZone=r,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new $,this._onBlur=new $,this.selectionChange=new W,this.destroyed=new W,this.removed=new W,this._addHostClassName(),this._chipRippleTarget=l.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new na(this,r,this._chipRippleTarget,s),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=d&&parseInt(d)||-1}_addHostClassName(){const t="mat-basic-chip",r=this._elementRef.nativeElement;r.hasAttribute(t)||r.tagName.toLowerCase()===t?r.classList.add(t):r.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled&&t.preventDefault()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(ze(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(ce),p(Ot),p(Kp,8),p(st),p(xe),p(ti,8),Mi("tabindex"))},e.\u0275dir=I({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,c3,5),Me(s,d3,5),Me(s,l3,5)),2&t){let o;Q(o=J())&&(r.avatar=o.first),Q(o=J())&&(r.trailingIcon=o.first),Q(o=J())&&(r.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(t,r){1&t&&H("click",function(o){return r._handleClick(o)})("keydown",function(o){return r._handleKeydown(o)})("focus",function(){return r.focus()})("blur",function(){return r._blur()}),2&t&&(_e("tabindex",r.disabled?null:r.tabIndex)("role",r.role)("disabled",r.disabled||null)("aria-disabled",r.disabled.toString())("aria-selected",r.ariaSelected),fe("mat-chip-selected",r.selected)("mat-chip-with-avatar",r.avatar)("mat-chip-with-trailing-icon",r.trailingIcon||r.removeIcon)("mat-chip-disabled",r.disabled)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[L]}),i})(),u3=(()=>{var e;class i{constructor(t,r){this._parentChip=t,"BUTTON"===r.nativeElement.nodeName&&r.nativeElement.setAttribute("type","button")}_handleClick(t){const r=this._parentChip;r.removable&&!r.disabled&&r.remove(),t.stopPropagation(),t.preventDefault()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(n_),p(ne))},e.\u0275dir=I({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,r){1&t&&H("click",function(o){return r._handleClick(o)})},features:[K([{provide:l3,useExisting:e}])]}),i})();const Qk=new M("mat-chips-default-options"),fue=sx(class{constructor(e,i,n,t){this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=t,this.stateChanges=new $}});let mue=0;class pue{constructor(i,n){this.source=i,this.value=n}}let h3=(()=>{var e;class i extends fue{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(t){this._explicitRole=t}get multiple(){return this._multiple}set multiple(t){this._multiple=re(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ml.required)??!1}set required(t){this._required=re(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=re(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=re(t),this._syncChipsState()}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Ft(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Ft(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Ft(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Ft(...this.chips.map(t=>t.destroyed))}constructor(t,r,s,o,a,l,c){super(l,o,a,c),this._elementRef=t,this._changeDetectorRef=r,this._dir=s,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new $,this._uid="mat-chip-list-"+mue++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new W,this.valueChange=new W,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new $w(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(ke(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe(Di(null),ke(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new ao(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const r=t.target;r&&r.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&ts.deselect()),Array.isArray(t))t.forEach(s=>this._selectValue(s,r)),this._sortValues();else{const s=this._selectValue(t,r);s&&r&&this._keyManager.setActiveItem(s)}}_selectValue(t,r=!0){const s=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,t));return s&&(r?s.selectViaInteraction():s.select(),this._selectionModel.select(s)),s}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(r=>{r!==t&&r.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let r=null;r=Array.isArray(this.selected)?this.selected.map(s=>s.value):this.selected?this.selected.value:t,this._value=r,this.change.emit(new pue(this,r)),this.valueChange.emit(r),this._onChange(r),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(r=>{!this._selectionModel.isSelected(r)&&r.selected&&r.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let r=this.chips.toArray().indexOf(t.chip);this._isValidIndex(r)&&this._keyManager.updateActiveItem(r),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const r=t.chip,s=this.chips.toArray().indexOf(t.chip);this._isValidIndex(s)&&r._hasFocus&&(this._lastDestroyedChipIndex=s)})}_originatesFromChip(t){let r=t.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-chip"))return!0;r=r.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(st),p(an,8),p(Il,8),p(Ol,8),p(Pu),p(or,10))},e.\u0275cmp=ie({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,r,s){if(1&t&&Me(s,n_,5),2&t){let o;Q(o=J())&&(r.chips=o)}},hostAttrs:["ngSkipHydration","",1,"mat-chip-list"],hostVars:14,hostBindings:function(t,r){1&t&&H("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(o){return r._keydown(o)}),2&t&&(On("id",r._uid),_e("tabindex",r.disabled?null:r._tabIndex)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-multiselectable",r.multiple)("role",r.role)("aria-orientation",r.ariaOrientation),fe("mat-chip-list-disabled",r.disabled)("mat-chip-list-invalid",r.errorState)("mat-chip-list-required",r.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[K([{provide:xc,useExisting:e}]),L],ngContentSelectors:lue,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,r){1&t&&(ct(),k(0,"div",0),we(1),D())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),i})(),gue=0,f3=(()=>{var e;class i{set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=re(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=re(t)}get empty(){return!this.inputElement.value}constructor(t,r){this._elementRef=t,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new W,this.placeholder="",this.id="mat-chip-list-input-"+gue++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=r.separatorKeyCodes}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(9===t.keyCode&&!qi(t,"shiftKey")&&this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),(!t||this._isSeparatorKey(t))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!qi(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Qk))},e.\u0275dir=I({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,r){1&t&&H("keydown",function(o){return r._keydown(o)})("keyup",function(o){return r._keyup(o)})("blur",function(){return r._blur()})("focus",function(){return r._focus()})("input",function(){return r._onInput()}),2&t&&(On("id",r.id),_e("disabled",r.disabled||null)("placeholder",r.placeholder||null)("aria-invalid",r._chipList&&r._chipList.ngControl?r._chipList.ngControl.invalid:null)("aria-required",r._chipList&&r._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[bt]}),i})(),m3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Pu,{provide:Qk,useValue:{separatorKeyCodes:[13]}}],imports:[Fe]}),i})();const _ue=["symbols","","config",""];function bue(e,i){if(1&e){const n=Yt();k(0,"mat-chip",5),H("removed",function(){const s=tt(n).$implicit;return it(ue().removeSymbol(s))}),N(1),k(2,"mat-icon",6),N(3,"cancel"),D()()}if(2&e){const n=i.$implicit;R("selectable",!1)("removable",!0),C(1),ot(" ",n," ")}}function vue(e,i){if(1&e&&(k(0,"mat-error"),N(1),U(2,"translate"),D()),2&e){const n=ue();C(1),pe(Y(2,1,n.config.patternError))}}let p3=(()=>{var e;class i{constructor(t){this.log=t,this.symbolsUpdated=new W,this.formControl=new Al("")}ngOnChanges(t){void 0!==t.config&&(this.formControl=new Al("",Ml.pattern(this.config.symbolPattern)))}addSymbol(t){this.formControl.invalid||t.value.split(",").map(r=>r.trim()).forEach(r=>{r.length>=1&&(this.log.debug(`Adding symbol ${r}.`),t.input.value="",this.symbols.add(r),this.symbolsUpdated.emit())})}removeSymbol(t){this.log.debug(`Removing symbol ${t}.`),this.symbols.delete(t),this.symbolsUpdated.emit()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs))},e.\u0275cmp=ie({type:e,selectors:[["apollo-symbol-editor","symbols","","config",""]],inputs:{symbols:"symbols",config:"config"},outputs:{symbolsUpdated:"symbolsUpdated"},features:[bt],attrs:_ue,decls:10,vars:10,consts:[[1,"symbol-chip-input"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["autocomplete","off",3,"placeholder","matChipInputFor","formControl","matChipInputTokenEnd"],[4,"ngIf"],[3,"selectable","removable","removed"],["matChipRemove",""]],template:function(t,r){if(1&t&&(k(0,"mat-form-field",0)(1,"mat-label"),N(2),U(3,"translate"),D(),k(4,"mat-chip-list",null,1),Z(6,bue,4,3,"mat-chip",2),k(7,"input",3),H("matChipInputTokenEnd",function(o){return r.addSymbol(o)}),U(8,"translate"),D(),Z(9,vue,3,3,"mat-error",4),D()()),2&t){const s=Rt(5);C(2),pe(Y(3,6,r.config.title)),C(4),R("ngForOf",r.symbols),C(1),nn("placeholder",Y(8,8,r.config.placeholder)),R("matChipInputFor",s)("formControl",r.formControl),C(2),R("ngIf",r.formControl.invalid)}},dependencies:[Nd,ki,Uo,zd,h3,n_,f3,u3,qce,yh,ga,kn,Rl,di],styles:["[_nghost-%COMP%]{display:block}.symbol-chip-input[_ngcontent-%COMP%]{width:100%}"]}),i})();const yue=["link",""];function wue(e,i){1&e&&(fi(0),k(1,"mat-card-subtitle"),N(2),U(3,"translate"),D(),mi()),2&e&&(C(2),pe(Y(3,1,"editor.link.none-selected")))}function xue(e,i){if(1&e){const n=Yt();fi(0),k(1,"mat-card-title")(2,"span",2),N(3),U(4,"translate"),k(5,"mat-icon"),N(6,"arrow_right_alt"),D(),N(7),D()(),k(8,"mat-card-content")(9,"div")(10,"apollo-symbol-editor",3),H("symbolsUpdated",function(){return tt(n),it(ue().onLinkUpdated())}),D()(),k(11,"div")(12,"apollo-symbol-editor",3),H("symbolsUpdated",function(){return tt(n),it(ue().onLinkUpdated())}),D()()(),k(13,"mat-card-actions")(14,"div",4)(15,"button",5),H("click",function(){return tt(n),it(ue().requestLinkDeletion())}),U(16,"translate"),k(17,"mat-icon"),N(18,"delete"),D()()()(),mi()}if(2&e){const n=ue();C(3),rm("",Y(4,8,"editor.link.title")," ",n.link.source.id,""),C(4),pe(n.link.target.id),C(3),R("symbols",n.link.relations)("config",n.relationEditorConfig),C(2),R("symbols",n.link.functions)("config",n.functionEditorConfig),C(3),R("matTooltip",Y(16,10,"actions.delete"))}}let kue=(()=>{var e;class i{constructor(t){this.log=t,this.linkDeletionRequested=new W,this.linkUpdated=new W,this.relationEditorConfig=a3,this.functionEditorConfig=oue}requestLinkDeletion(){if(null!==this.link){const t=this.link;this.link=null,this.linkDeletionRequested.emit(t)}}onLinkUpdated(){this.linkUpdated.emit()}onLinkDeleted(t){null!==this.link&&this.link.source.id===t.source.id&&this.link.target.id===t.target.id&&(this.log.debug(`Removing Link ${this.link.source.id}-${this.link.target.id}, because it has been deleted.`),this.link=null)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs))},e.\u0275cmp=ie({type:e,selectors:[["apollo-link-form","link",""]],inputs:{link:"link"},outputs:{linkDeletionRequested:"linkDeletionRequested",linkUpdated:"linkUpdated"},attrs:yue,decls:3,vars:2,consts:[[1,"link-form-card","mat-elevation-z4"],[4,"ngIf"],[1,"link-title"],[3,"symbols","config","symbolsUpdated"],[1,"form-button-container"],["type","button","mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,r){1&t&&(k(0,"mat-card",0),Z(1,wue,4,3,"ng-container",1),Z(2,xue,19,12,"ng-container",1),D()),2&t&&(C(1),R("ngIf",!r.link),C(1),R("ngIf",!!r.link))},dependencies:[ki,Fi,Yu,tc,Wu,Ox,ug,kn,xh,p3,di],styles:["[_nghost-%COMP%]{display:block}.link-form-card[_ngcontent-%COMP%]{overflow:auto}.form-button-container[_ngcontent-%COMP%]{text-align:right}.link-title[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}"]}),i})();const Cue=["node",""];function Due(e,i){1&e&&(fi(0),k(1,"mat-card-subtitle"),N(2),U(3,"translate"),D(),mi()),2&e&&(C(2),pe(Y(3,1,"editor.node.none-selected")))}function Sue(e,i){if(1&e){const n=Yt();fi(0),k(1,"mat-card-title"),N(2),U(3,"translate"),D(),k(4,"mat-card-content")(5,"div")(6,"apollo-symbol-editor",2),H("symbolsUpdated",function(){return tt(n),it(ue().onNodeUpdated())}),D()(),k(7,"div")(8,"apollo-symbol-editor",2),H("symbolsUpdated",function(){return tt(n),it(ue().onNodeUpdated())}),D()()(),k(9,"mat-card-actions")(10,"div",3)(11,"button",4),H("click",function(){return tt(n),it(ue().requestNodeDeletion())}),U(12,"translate"),k(13,"mat-icon"),N(14,"delete"),D()()()(),mi()}if(2&e){const n=ue();C(2),rm("",Y(3,7,"editor.node.title")," ",n.node.id,""),C(4),R("symbols",n.node.relations)("config",n.relationEditorConfig),C(2),R("symbols",n.node.constants)("config",n.constantEditorConfig),C(3),R("matTooltip",Y(12,9,"actions.delete"))}}let Eue=(()=>{var e;class i{constructor(t){this.log=t,this.nodeDeletionRequested=new W,this.nodeUpdated=new W,this.relationEditorConfig=a3,this.constantEditorConfig=aue}requestNodeDeletion(){if(null!==this.node){const t=this.node;this.node=null,this.nodeDeletionRequested.emit(t)}}onNodeUpdated(){this.nodeUpdated.emit()}onNodeDeleted(t){null!==this.node&&this.node.id===t.id&&(this.log.debug(`Removing Node ${this.node.id}, because it has been deleted.`),this.node=null)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs))},e.\u0275cmp=ie({type:e,selectors:[["apollo-node-form","node",""]],inputs:{node:"node"},outputs:{nodeDeletionRequested:"nodeDeletionRequested",nodeUpdated:"nodeUpdated"},attrs:Cue,decls:3,vars:2,consts:[[1,"node-form-card","mat-elevation-z4"],[4,"ngIf"],[3,"symbols","config","symbolsUpdated"],[1,"form-button-container"],["type","button","mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,r){1&t&&(k(0,"mat-card",0),Z(1,Due,4,3,"ng-container",1),Z(2,Sue,15,11,"ng-container",1),D()),2&t&&(C(1),R("ngIf",!r.node),C(1),R("ngIf",!!r.node))},dependencies:[ki,Fi,Yu,tc,Wu,Ox,ug,kn,xh,p3,di],styles:["[_nghost-%COMP%]{display:block}.node-form-card[_ngcontent-%COMP%]{overflow:auto}.form-button-container[_ngcontent-%COMP%]{text-align:right}"]}),i})();const Mue=["graph",""];let g3=(()=>{var e;class i{constructor(){this.saveRequested=new W,this.graphExported=new W}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph-editor","graph",""]],inputs:{graph:"graph",graphExportRequests:"graphExportRequests"},outputs:{saveRequested:"saveRequested",graphExported:"graphExported"},attrs:Mue,decls:13,vars:11,consts:[[1,"graph-container"],[1,"graph-card","mat-elevation-z4"],[1,"graph-card-content"],[3,"graph","allowEditing","graphExportRequests","nodeDeleted","linkDeleted","saveRequested","graphExported"],["graphComponent",""],[1,"form-container"],[3,"node","nodeUpdated","nodeDeletionRequested"],["nodeForm",""],[3,"link","linkUpdated","linkDeletionRequested"],["linkForm",""]],template:function(t,r){if(1&t){const s=Yt();k(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"apollo-graph",3,4),H("nodeDeleted",function(a){return tt(s),it(Rt(8).onNodeDeleted(a))})("linkDeleted",function(a){return tt(s),it(Rt(11).onLinkDeleted(a))})("saveRequested",function(a){return r.saveRequested.emit(a)})("graphExported",function(a){return r.graphExported.emit(a)}),U(5,"async"),D()()()(),k(6,"div",5)(7,"apollo-node-form",6,7),H("nodeUpdated",function(){return tt(s),it(Rt(4).restart())})("nodeDeletionRequested",function(a){return tt(s),it(Rt(4).removeNode(a))}),U(9,"async"),D(),k(10,"apollo-link-form",8,9),H("linkUpdated",function(){return tt(s),it(Rt(4).restart())})("linkDeletionRequested",function(a){return tt(s),it(Rt(4).removeLink(a))}),U(12,"async"),D()()}if(2&t){const s=Rt(4);C(3),R("graph",Y(5,5,r.graph))("allowEditing",!0)("graphExportRequests",r.graphExportRequests),C(4),R("node",Y(9,7,s.nodeSelected)),C(3),R("link",Y(12,9,s.linkSelected))}},dependencies:[Yu,tc,sue,kue,Eue,Pr],styles:["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:row}.graph-container[_ngcontent-%COMP%]{display:block;margin-right:1rem;flex-grow:4}.graph-card-content[_ngcontent-%COMP%], .graph-card[_ngcontent-%COMP%], .graph-container[_ngcontent-%COMP%]{display:block;min-height:400px}.graph-card[_ngcontent-%COMP%]{padding:0;height:100%;overflow:hidden}.graph-card-content[_ngcontent-%COMP%]{height:100%;overflow:hidden}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;flex-grow:1;flex-shrink:0}.form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}@media screen and (max-width: 800px){[_nghost-%COMP%]{flex-direction:column}.graph-container[_ngcontent-%COMP%]{margin-right:0;margin-bottom:1rem}.form-container[_ngcontent-%COMP%]{flex-grow:0;margin-bottom:1rem}}"]}),i})(),Tue=(()=>{var e;class i{constructor(t,r,s,o,a,l){this.backendService=t,this.dialog=r,this.route=s,this.router=o,this.snackBarService=a,this.store=l,this.assignment=this.store.select("assignments").pipe(se(c=>c[this.slug]),zt(c=>{void 0===c&&this.router.navigateByUrl("/assignments")})),this.firstGraph=new Cn,this.firstGraph$=ee(this.firstGraph),this.secondGraph=new Cn,this.secondGraph$=ee(this.secondGraph),this.slug=this.route.snapshot.params.slug}submit(){Fw(this.assignment).then(t=>{const r={assignmentId:t.id,firstGraph:this.firstGraph.toDomainGraph(),secondGraph:this.secondGraph.toDomainGraph()};this.checkSolution(r)})}checkSolution(t){const r=this.backendService.checkAssignmentSolution(t);this.dialog.open(g2,{width:"90%",data:r,autoFocus:!1}).afterClosed().pipe($e(o=>void 0!==o)).subscribe(o=>{o.correct&&this.store.dispatch(DP({key:t.assignmentId})),this.dialog.open(Mie,{autoFocus:!1,data:o,width:"50vw",minWidth:"250px",maxWidth:"750px"})})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Nx),p(oo),p(Js),p(Ri),p(aa),p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignment"]],decls:23,vars:20,consts:[[2,"display","flex","justify-content","flex-end"],["mat-raised-button","","color","accent",3,"click"],[1,"title-a"],[1,"editor-a",3,"graph"],[1,"title-b"],[1,"editor-b",3,"graph"]],template:function(t,r){if(1&t&&(k(0,"mat-card")(1,"mat-card-title"),N(2),U(3,"async"),D(),k(4,"mat-card-content")(5,"p"),N(6),U(7,"async"),D(),k(8,"p"),N(9),U(10,"translate"),D()(),k(11,"mat-card-actions",0)(12,"button",1),H("click",function(){return r.submit()}),N(13),U(14,"translate"),D()()(),k(15,"h1",2),N(16),U(17,"translate"),D(),be(18,"apollo-graph-editor",3),k(19,"h1",4),N(20),U(21,"translate"),D(),be(22,"apollo-graph-editor",5)),2&t){let s,o;C(2),ot(" ",null==(s=Y(3,8,r.assignment))?null:s.title," "),C(4),ot("\u03c6 = ",null==(o=Y(7,10,r.assignment))?null:o.formula,""),C(3),pe(Y(10,12,"assignments.hint")),C(4),pe(Y(14,14,"actions.submit")),C(3),ot("",Y(17,16,"graph.title")," A"),C(2),R("graph",r.firstGraph$),C(2),ot("",Y(21,18,"graph.title")," B"),C(2),R("graph",r.secondGraph$)}},dependencies:[Fi,Yu,tc,Wu,ug,g3,Pr,di],styles:["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}.editor-a[_ngcontent-%COMP%], .editor-b[_ngcontent-%COMP%]{flex-grow:1}.title-a[_ngcontent-%COMP%], .title-b[_ngcontent-%COMP%]{margin-bottom:.5rem}.title-a[_ngcontent-%COMP%]{margin-top:1rem}@media screen and (min-width: 801px){.title-b[_ngcontent-%COMP%]{margin-top:1rem}}"]}),i})();const Iue=["assignment",""];function Aue(e,i){if(1&e&&(k(0,"mat-card-content"),N(1),D()),2&e){const n=ue();C(1),ot(" ",n.shortenedDescription," ")}}const Rue=function(e){return{date:e}};let Oue=(()=>{var e;class i{ngOnInit(){const t=this.assignment.description;if(void 0!==t){if(t.length<=100)return void(this.shortenedDescription=t);this.shortenedDescription=t.substring(0,97).concat("...")}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignment-card","assignment",""]],inputs:{assignment:"assignment"},attrs:Iue,decls:14,vars:16,consts:[[4,"ngIf"],[2,"display","flex","justify-content","flex-end"],["mat-button","","color","accent",3,"routerLink"]],template:function(t,r){1&t&&(k(0,"div")(1,"mat-card")(2,"mat-card-title"),N(3),D(),k(4,"mat-card-subtitle"),N(5),U(6,"translate"),U(7,"date"),U(8,"translate"),D(),Z(9,Aue,2,1,"mat-card-content",0),k(10,"mat-card-actions",1)(11,"button",2),N(12),U(13,"translate"),D()()()()),2&t&&(C(3),ot(" ",r.assignment.title," "),C(2),ot(" ",r.assignment.completedOn?yl(6,5,"assignments.completed-on",cm(14,Rue,Y(7,8,r.assignment.completedOn))):Y(8,10,"assignments.not-completed")," "),C(4),R("ngIf",r.shortenedDescription),C(2),R("routerLink",r.assignment.id),C(1),pe(Y(13,12,"actions.open")))},dependencies:[Hl,ki,Fi,Yu,tc,Wu,Ox,ug,Rm,di],styles:["[_nghost-%COMP%]{display:block}"]}),i})();function Fue(e,i){1&e&&be(0,"apollo-assignment-card",2),2&e&&R("assignment",i.$implicit)}let Nue=(()=>{var e;class i{constructor(t,r){this.backendService=t,this.store=r,this.assignments=this.store.select("assignments").pipe(se(s=>Object.values(s)))}ngOnInit(){this.backendService.fetchAssignments()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Nx),p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignments"]],decls:3,vars:3,consts:[[1,"assignment-grid"],["class","grid-item",3,"assignment",4,"ngFor","ngForOf"],[1,"grid-item",3,"assignment"]],template:function(t,r){1&t&&(k(0,"div",0),Z(1,Fue,1,1,"apollo-assignment-card",1),U(2,"async"),D()),2&t&&(C(1),R("ngForOf",Y(2,1,r.assignments)))},dependencies:[Nd,Oue,Pr],styles:["[_nghost-%COMP%]{display:block}.assignment-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.assignment-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}@media screen and (min-width: 801px){.assignment-grid[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.assignment-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:1rem;flex-grow:1;max-width:16rem}}"]}),i})();const Jk={name:"Example Graph",description:"An example graph.",lastEdit:Date.now(),nodes:[{name:"0",relations:[],constants:["a","b"]},{name:"1",relations:[],constants:["c"]},{name:"2",relations:[],constants:["d"]},{name:"3",relations:[],constants:["e","f"]}],edges:[{source:"0",target:"0",relations:["R"],functions:[]},{source:"0",target:"1",relations:["A"],functions:[]},{source:"1",target:"2",relations:["B"],functions:[]},{source:"2",target:"1",relations:["B"],functions:[]}]};var Pue=Function.prototype.toString,eC=Object.create,Lue=Object.prototype.toString,Bue=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(i){return!!~this._keys.indexOf(i)},e.prototype.get=function(i){return this._values[this._keys.indexOf(i)]},e.prototype.set=function(i,n){this._keys.push(i),this._values.push(n)},e}(),zue=typeof WeakMap<"u"?function jue(){return new WeakMap}:function Vue(){return new Bue};function tC(e){if(!e)return eC(null);var i=e.constructor;if(i===Object)return e===Object.prototype?{}:eC(e);if(~Pue.call(i).indexOf("[native code]"))try{return new i}catch{}return eC(e)}var Uue="g"===/test/g.flags?function $ue(e){return e.flags}:function Hue(e){var i="";return e.global&&(i+="g"),e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),e.sticky&&(i+="y"),i};function b3(e){var i=Lue.call(e);return i.substring(8,i.length-1)}var que=typeof Symbol<"u"?function Gue(e){return e[Symbol.toStringTag]||b3(e)}:b3,Wue=Object.defineProperty,Yue=Object.getOwnPropertyDescriptor,v3=Object.getOwnPropertyNames,iC=Object.getOwnPropertySymbols,y3=Object.prototype,w3=y3.hasOwnProperty,Kue=y3.propertyIsEnumerable,x3="function"==typeof iC,Zue=x3?function Xue(e){return v3(e).concat(iC(e))}:v3;function r_(e,i,n){for(var t=Zue(e),r=0,s=t.length,o=void 0,a=void 0;r{var e;class i{constructor(t){this.snackBarService=t,this.graphImport=new W,this.textInputFormControl=new Al("")}ngAfterViewInit(){this.textInput.nativeElement.addEventListener("keydown",t=>{const r=this.textInput.nativeElement;if("Tab"===t.key){Yr(t);const s=r.selectionStart??0,o=r.selectionEnd??0;r.value=r.value.substring(0,s)+"\t"+r.value.substring(o),r.selectionStart=r.selectionEnd=s+1}})}onPaste(t){this.handleTextInput(t.clipboardData?.getData("text")??"")}triggerFileImport(){this.fileInput.nativeElement.click()}onFileInput(){const t=this.fileInput.nativeElement.files;null===t||t.length<1?this.snackBarService.openSnackBar({key:"import.file-error"},void 0,1e4):t[0].text().then(r=>this.handleTextInput(r)),this.fileInput.nativeElement.value=""}handleTextInput(t=this.textInputFormControl.value){try{const r=Dle(t);Cn.fromDomainGraph(r).then(()=>this.graphImport.emit(r)).catch(s=>{void 0!==s.key?this.snackBarService.openSnackBar(s,void 0):this.snackBarService.openSnackBar({key:"validation.parse-error"},void 0,1e4)})}catch{this.snackBarService.openSnackBar({key:"validation.parse-error"},void 0,1e4)}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(aa))},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph-import"]],viewQuery:function(t,r){if(1&t&&(Xe(_he,5),Xe(bhe,5)),2&t){let s;Q(s=J())&&(r.textInput=s.first),Q(s=J())&&(r.fileInput=s.first)}},outputs:{graphImport:"graphImport"},decls:17,vars:13,consts:[[1,"import-form-field",2,"margin-bottom","-0.25rem",3,"keyup.enter"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","50",3,"formControl","placeholder","paste"],["textInput","","autosize","cdkTextareaAutosize"],["type","file","id","file","accept",".json,.yml,text/json,application/json,text/yml",2,"display","none",3,"change"],["fileInput",""],["mat-raised-button","","color","primary",3,"click"]],template:function(t,r){1&t&&(k(0,"div")(1,"mat-form-field",0),H("keyup.enter",function(){return r.handleTextInput()}),k(2,"mat-label"),N(3),U(4,"translate"),D(),k(5,"textarea",1,2),H("paste",function(o){return r.onPaste(o)}),U(8,"translate"),D()(),k(9,"input",3,4),H("change",function(){return r.onFileInput()}),D(),k(11,"span"),N(12),U(13,"translate"),D(),k(14,"button",5),H("click",function(){return r.triggerFileImport()}),N(15),U(16,"translate"),D()()),2&t&&(C(3),pe(Y(4,5,"import.text")),C(2),nn("placeholder",Y(8,7,"import.format-hint")),R("formControl",r.textInputFormControl),C(7),pe(Y(13,9,"misc.or")),C(3),pe(Y(16,11,"import.file")))},dependencies:[Uo,zd,Fi,yh,ga,ede,Xk,Rl,di],styles:["[_nghost-%COMP%]{display:block}h1[_ngcontent-%COMP%]{margin:0}div[_ngcontent-%COMP%]{display:flex;flex-direction:column}div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{max-width:-moz-fit-content;max-width:fit-content}"]}),i})();const yhe=[[["caption"]],[["colgroup"],["col"]]],whe=["caption","colgroup, col"];function sC(e){return class extends e{get sticky(){return this._sticky}set sticky(i){const n=this._sticky;this._sticky=re(i),this._hasStickyChanged=n!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const ba=new M("CDK_TABLE");let mo=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkCellDef",""]]}),i})(),po=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderCellDef",""]]}),i})(),Ec=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterCellDef",""]]}),i})();class Dhe{}const She=sC(Dhe);let _r=(()=>{var e;class i extends She{get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const r=this._stickyEnd;this._stickyEnd=re(t),this._hasStickyChanged=r!==this._stickyEnd}constructor(t){super(),this._table=t,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,mo,5),Me(s,po,5),Me(s,Ec,5)),2&t){let o;Q(o=J())&&(r.cell=o.first),Q(o=J())&&(r.headerCell=o.first),Q(o=J())&&(r.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[K([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),L]}),i})();class oC{constructor(i,n){n.nativeElement.classList.add(...i._columnCssClassName)}}let a_=(()=>{var e;class i extends oC{constructor(t,r){super(t,r)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(_r),p(ne))},e.\u0275dir=I({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[L]}),i})(),l_=(()=>{var e;class i extends oC{constructor(t,r){if(super(t,r),1===t._table?._elementRef.nativeElement.nodeType){const s=t._table._elementRef.nativeElement.getAttribute("role");r.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(_r),p(ne))},e.\u0275dir=I({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[L]}),i})();class I3{constructor(){this.tasks=[],this.endTasks=[]}}const c_=new M("_COALESCED_STYLE_SCHEDULER");let lC=(()=>{var e;class i{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new $}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new I3,this._getScheduleObservable().pipe(ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new I3;for(const r of t.tasks)r();for(const r of t.endTasks)r()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Jt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ze(1))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),cC=(()=>{var e;class i{constructor(t,r){this.template=t,this._differs=r}ngOnChanges(t){if(!this._columnsDiffer){const r=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof va?t.headerCell.template:this instanceof ya?t.footerCell.template:t.cell.template}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn))},e.\u0275dir=I({type:e,features:[bt]}),i})();class Ehe extends cC{}const Mhe=sC(Ehe);let va=(()=>{var e;class i extends Mhe{constructor(t,r,s){super(t,r),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn),p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[L,bt]}),i})();class The extends cC{}const Ihe=sC(The);let ya=(()=>{var e;class i extends Ihe{constructor(t,r,s){super(t,r),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn),p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[L,bt]}),i})(),Mc=(()=>{var e;class i extends cC{constructor(t,r,s){super(t,r),this._table=s}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn),p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[L]}),i})(),qn=(()=>{var e;class i{constructor(t){this._viewContainer=t,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return(e=i).mostRecentCellOutlet=null,e.\u0275fac=function(t){return new(t||e)(p(Vt))},e.\u0275dir=I({type:e,selectors:[["","cdkCellOutlet",""]]}),i})(),kh=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),Dh=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),Tc=(()=>{var e;class i{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const A3=["top","bottom","left","right"];class Ahe{constructor(i,n,t,r,s=!0,o=!0,a){this._isNativeHtmlTable=i,this._stickCellCss=n,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${n}-border-elem-top`,bottom:`${n}-border-elem-bottom`,left:`${n}-border-elem-left`,right:`${n}-border-elem-right`}}clearStickyPositioning(i,n){const t=[];for(const r of i)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let s=0;s{for(const r of t)this._removeStickyStyle(r,n)})}updateStickyColumns(i,n,t,r=!0){if(!i.length||!this._isBrowser||!n.some(h=>h)&&!t.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=i[0],o=s.children.length,a=this._getCellWidths(s,r),l=this._getStickyStartColumnPositions(a,n),c=this._getStickyEndColumnPositions(a,t),d=n.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",_=h?"left":"right";for(const g of i)for(let m=0;mn[m]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((g,m)=>t[m+u]?g:null).reverse()}))})}stickRows(i,n,t){if(!this._isBrowser)return;const r="bottom"===t?i.slice().reverse():i,s="bottom"===t?n.slice().reverse():n,o=[],a=[],l=[];for(let d=0,u=0;d{for(let d=0;d{n.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(i,n){for(const r of n)i.style[r]="",i.classList.remove(this._borderCellCss[r]);A3.some(r=>-1===n.indexOf(r)&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,n,t,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[n]),i.style[n]=`${t}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const n={top:100,bottom:10,left:1,right:1};let t=0;for(const r of A3)i.style[r]&&(t+=n[r]);return t?`${t}`:""}_getCellWidths(i,n=!0){if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=i.children;for(let s=0;s0;s--)n[s]&&(t[s]=r,r+=i[s]);return t}}const d_=new M("CDK_SPL");let Sh=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","rowOutlet",""]]}),i})(),Eh=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","headerRowOutlet",""]]}),i})(),Mh=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","footerRowOutlet",""]]}),i})(),Th=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","noDataRowOutlet",""]]}),i})(),Ic=(()=>{var e;class i{get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=re(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=re(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,r,s,o,a,l,c,d,u,h,f,_){this._differs=t,this._changeDetectorRef=r,this._elementRef=s,this._dir=a,this._platform=c,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=_,this._onDestroy=new $,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new W,this.viewChange=new Et({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jp(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,r,(s,o,a)=>this._getEmbeddedViewArgs(s.item,a),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(s=>{r.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this._ngZone&&ce.isInAngularZone()?this._ngZone.onStable.pipe(ze(1),ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=t.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,o,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=t.length?"":"none");const o=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...r,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let l=0;l{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const t=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const l=s&&s.has(a)?s.get(a):[];if(l.length){const c=l.shift();return c.dataIndex=r,c}return{data:t,rowDef:a,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),u_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=u_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=u_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=u_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(a,l)=>a||!!l.getColumnsDiff(),r=this._rowDefs.reduce(t,!1);r&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(t,!1);s&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(t,!1);return o&&this._forceRenderFooterRows(),r||s||o}_switchDataSource(t){this._data=[],Jp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Jp(this.dataSource)?t=this.dataSource.connect(this):Bn(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=ee(this.dataSource)),this._renderChangeSubscription=t.pipe(ke(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,r)=>this._renderRow(this._headerRowOutlet,t,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,r)=>this._renderRow(this._footerRowOutlet,t,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,r){const s=Array.from(r.columns||[]).map(l=>this._columnDefsByName.get(l)),o=s.map(l=>l.sticky),a=s.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const r=[];for(let s=0;s!o.when||o.when(r,t));else{let o=this._rowDefs.find(a=>a.when&&a.when(r,t))||this._defaultRowDef;o&&s.push(o)}return s}_getEmbeddedViewArgs(t,r){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:r}}_renderRow(t,r,s,o={}){const a=t.viewContainer.createEmbeddedView(r.template,o,s);return this._renderCellTemplateForItem(r,o),a}_renderCellTemplateForItem(t,r){for(let s of this._getCellTemplates(t))qn.mostRecentCellOutlet&&qn.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let r=0,s=t.length;r{const s=this._columnDefsByName.get(r);return t.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),r=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of r){const o=this._document.createElement(s.tag);o.setAttribute("role","rowgroup");for(const a of s.outlets)o.appendChild(a.elementRef.nativeElement);t.appendChild(o)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(r,s)=>r||s.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ahe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:ee()).pipe(ke(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(!t)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const s=this._noDataRowOutlet.viewContainer;if(r){const o=s.createEmbeddedView(t.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(t._contentClassName))}else s.clear();this._isShowingNoDataRow=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fn),p(st),p(ne),Mi("role"),p(an,8),p(xe),p(Ot),p(oa),p(c_),p(Yl),p(d_,12),p(ce,8))},e.\u0275cmp=ie({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,Tc,5),Me(s,_r,5),Me(s,Mc,5),Me(s,va,5),Me(s,ya,5)),2&t){let o;Q(o=J())&&(r._noDataRow=o.first),Q(o=J())&&(r._contentColumnDefs=o),Q(o=J())&&(r._contentRowDefs=o),Q(o=J())&&(r._contentHeaderRowDefs=o),Q(o=J())&&(r._contentFooterRowDefs=o)}},viewQuery:function(t,r){if(1&t&&(Xe(Sh,7),Xe(Eh,7),Xe(Mh,7),Xe(Th,7)),2&t){let s;Q(s=J())&&(r._rowOutlet=s.first),Q(s=J())&&(r._headerRowOutlet=s.first),Q(s=J())&&(r._footerRowOutlet=s.first),Q(s=J())&&(r._noDataRowOutlet=s.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(t,r){2&t&&fe("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[K([{provide:ba,useExisting:e},{provide:oa,useClass:dx},{provide:c_,useClass:lC},{provide:d_,useValue:null}])],ngContentSelectors:whe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,r){1&t&&(ct(yhe),we(0),we(1,1),Ai(2,0)(3,1)(4,2)(5,3))},dependencies:[Sh,Eh,Mh,Th],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function u_(e,i){return e.concat(Array.from(i))}let Ohe=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Xw]}),i})();class $he extends fP{get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}constructor(i=[]){super(),this._renderData=new Et([]),this._filter=new Et(""),this._internalPageChanges=new $,this._renderChangesSubscription=null,this.sortingDataAccessor=(n,t)=>{const r=n[t];if(dN(r)){const s=Number(r);return s<9007199254740991?s:r}return r},this.sortData=(n,t)=>{const r=t.active,s=t.direction;return r&&""!=s?n.sort((o,a)=>{let l=this.sortingDataAccessor(o,r),c=this.sortingDataAccessor(a,r);const d=typeof l,u=typeof c;d!==u&&("number"===d&&(l+=""),"number"===u&&(c+=""));let h=0;return null!=l&&null!=c?l>c?h=1:l{const r=Object.keys(n).reduce((o,a)=>o+n[a]+"\u25ec","").toLowerCase(),s=t.trim().toLowerCase();return-1!=r.indexOf(s)},this._data=new Et(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Ft(this._sort.sortChange,this._sort.initialized):ee(null),n=this._paginator?Ft(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ee(null),r=Ko([this._data,this._filter]).pipe(se(([a])=>this._filterData(a))),s=Ko([r,i]).pipe(se(([a])=>this._orderData(a))),o=Ko([s,n]).pipe(se(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=o.subscribe(a=>this._renderData.next(a))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(n=>this.filterPredicate(n,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const n=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(n,n+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const n=this.paginator;if(n&&(n.length=i,n.pageIndex>0)){const t=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,t);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}const Uhe=[[["caption"]],[["colgroup"],["col"]]],Ghe=["caption","colgroup, col"];let uC=(()=>{var e;class i extends Ic{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-table"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[K([{provide:oa,useClass:dx},{provide:Ic,useExisting:e},{provide:ba,useExisting:e},{provide:c_,useClass:lC},{provide:d_,useValue:null}]),L],ngContentSelectors:Ghe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,r){1&t&&(ct(Uhe),we(0),we(1,1),Ai(2,0)(3,1)(4,2)(5,3))},dependencies:[Sh,Eh,Mh,Th],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),h_=(()=>{var e;class i extends mo{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matCellDef",""]],features:[K([{provide:mo,useExisting:e}]),L]}),i})(),f_=(()=>{var e;class i extends po{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matHeaderCellDef",""]],features:[K([{provide:po,useExisting:e}]),L]}),i})(),m_=(()=>{var e;class i extends _r{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[K([{provide:_r,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),L]}),i})(),p_=(()=>{var e;class i extends a_{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[L]}),i})(),g_=(()=>{var e;class i extends l_{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[L]}),i})(),hC=(()=>{var e;class i extends va{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[K([{provide:va,useExisting:e}]),L]}),i})(),fC=(()=>{var e;class i extends Mc{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[K([{provide:Mc,useExisting:e}]),L]}),i})(),mC=(()=>{var e;class i extends kh{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[K([{provide:kh,useExisting:e}]),L],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),pC=(()=>{var e;class i extends Dh{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[K([{provide:Dh,useExisting:e}]),L],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),L3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ohe,Fe,Fe]}),i})();class B3 extends $he{}const Jhe=["mat-sort-header",""];function efe(e,i){if(1&e){const n=Yt();k(0,"div",3),H("@arrowPosition.start",function(){return tt(n),it(ue()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return tt(n),it(ue()._disableViewStateAnimation=!1)}),be(1,"div",4),k(2,"div",5),be(3,"div",6)(4,"div",7)(5,"div",8),D()()}if(2&e){const n=ue();R("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),C(2),R("@indicator",n._getArrowDirectionState()),C(1),R("@leftPointer",n._getArrowDirectionState()),C(1),R("@rightPointer",n._getArrowDirectionState())}}const tfe=["*"],V3=new M("MAT_SORT_DEFAULT_OPTIONS"),ife=xee(no(class{}));let gC=(()=>{var e;class i extends ife{get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=re(t)}constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new $,this.start="asc",this._direction="",this.sortChange=new W}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let s=function nfe(e,i){let n=["asc","desc"];return"desc"==e&&n.reverse(),i||n.push(""),n}(t.start||this.start,t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(V3,8))},e.\u0275dir=I({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[L,bt]}),i})();const go=rx.ENTERING+" "+nx.STANDARD_CURVE,Ac={indicator:Si("indicator",[gt("active-asc, asc",Ee({transform:"translateY(0px)"})),gt("active-desc, desc",Ee({transform:"translateY(10px)"})),_t("active-asc <=> active-desc",St(go))]),leftPointer:Si("leftPointer",[gt("active-asc, asc",Ee({transform:"rotate(-45deg)"})),gt("active-desc, desc",Ee({transform:"rotate(45deg)"})),_t("active-asc <=> active-desc",St(go))]),rightPointer:Si("rightPointer",[gt("active-asc, asc",Ee({transform:"rotate(45deg)"})),gt("active-desc, desc",Ee({transform:"rotate(-45deg)"})),_t("active-asc <=> active-desc",St(go))]),arrowOpacity:Si("arrowOpacity",[gt("desc-to-active, asc-to-active, active",Ee({opacity:1})),gt("desc-to-hint, asc-to-hint, hint",Ee({opacity:.54})),gt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ee({opacity:0})),_t("* => asc, * => desc, * => active, * => hint, * => void",St("0ms")),_t("* <=> *",St(go))]),arrowPosition:Si("arrowPosition",[_t("* => desc-to-hint, * => desc-to-active",St(go,Bu([Ee({transform:"translateY(-25%)"}),Ee({transform:"translateY(0)"})]))),_t("* => hint-to-desc, * => active-to-desc",St(go,Bu([Ee({transform:"translateY(0)"}),Ee({transform:"translateY(25%)"})]))),_t("* => asc-to-hint, * => asc-to-active",St(go,Bu([Ee({transform:"translateY(25%)"}),Ee({transform:"translateY(0)"})]))),_t("* => hint-to-asc, * => active-to-asc",St(go,Bu([Ee({transform:"translateY(0)"}),Ee({transform:"translateY(-25%)"})]))),gt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ee({transform:"translateY(0)"})),gt("hint-to-desc, active-to-desc, desc",Ee({transform:"translateY(-25%)"})),gt("hint-to-asc, active-to-asc, asc",Ee({transform:"translateY(25%)"}))]),allowChildren:Si("allowChildren",[_t("* <=> *",[sa("@*",ra(),{optional:!0})])])};let __=(()=>{var e;class i{constructor(){this.changes=new $}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const sfe={provide:__,deps:[[new Ls,new qa,__]],useFactory:function rfe(e){return e||new __}},ofe=no(class{});let afe=(()=>{var e;class i extends ofe{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=re(t)}constructor(t,r,s,o,a,l,c,d){super(),this._intl=t,this._changeDetectorRef=r,this._sort=s,this._columnDef=o,this._focusMonitor=a,this._elementRef=l,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const r=!!t;r!==this._showIndicatorHint&&(this._setIndicatorHintVisible(r),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(32===t.keyCode||13===t.keyCode)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=Ft(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(__),p(st),p(gC,8),p("MAT_SORT_HEADER_COLUMN_DEF",8),p(xn),p(ne),p(_N,8),p(V3,8))},e.\u0275cmp=ie({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,r){1&t&&H("click",function(){return r._handleClick()})("keydown",function(o){return r._handleKeydown(o)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),2&t&&(_e("aria-sort",r._getAriaSortAttribute()),fe("mat-sort-header-disabled",r._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[L],attrs:Jhe,ngContentSelectors:tfe,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,r){1&t&&(ct(),k(0,"div",0)(1,"div",1),we(2),D(),Z(3,efe,6,6,"div",2),D()),2&t&&(fe("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before","before"===r.arrowPosition),_e("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),C(3),R("ngIf",r._renderArrow()))},dependencies:[ki],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Ac.indicator,Ac.leftPointer,Ac.rightPointer,Ac.arrowOpacity,Ac.arrowPosition,Ac.allowChildren]},changeDetection:0}),i})(),j3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[sfe],imports:[Ln,Fe]}),i})();const lfe=["graphs",""];function cfe(e,i){1&e&&(k(0,"th",10),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.name")))}function dfe(e,i){if(1&e&&(k(0,"td",11),N(1),D()),2&e){const n=i.$implicit;C(1),pe(n.name)}}function ufe(e,i){1&e&&(k(0,"th",10),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.description")))}function hfe(e,i){if(1&e&&(k(0,"td",11),N(1),D()),2&e){const n=i.$implicit;C(1),pe(n.description)}}function ffe(e,i){1&e&&(k(0,"th",10),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.last-edit")))}function mfe(e,i){if(1&e&&(k(0,"td",11),N(1),U(2,"date"),D()),2&e){const n=i.$implicit;C(1),pe(yl(2,1,n.lastEdit,"dd.MM.yyyy hh:mm"))}}function pfe(e,i){1&e&&(k(0,"th",12),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"actions.title")))}function gfe(e,i){if(1&e){const n=Yt();k(0,"td",11)(1,"button",13),H("click",function(){const s=tt(n).$implicit;return it(ue().graphSelected.emit(s))}),U(2,"translate"),k(3,"mat-icon"),N(4,"launch"),D()(),k(5,"button",13),H("click",function(){const s=tt(n).$implicit;return it(ue().exportGraph(s))}),U(6,"translate"),k(7,"mat-icon"),N(8,"get_app"),D()(),k(9,"button",14),H("click",function(){const s=tt(n).$implicit;return it(ue().graphDeletionRequested.emit(s))}),U(10,"translate"),k(11,"mat-icon"),N(12,"delete"),D()()()}2&e&&(C(1),nn("matTooltip",Y(2,3,"actions.open")),C(4),nn("matTooltip",Y(6,5,"actions.export")),C(4),nn("matTooltip",Y(10,7,"actions.delete")))}function _fe(e,i){1&e&&be(0,"tr",15)}function bfe(e,i){1&e&&be(0,"tr",16)}let vfe=(()=>{var e;class i{constructor(t){this.bottomSheet=t,this.graphSelected=new W,this.graphDeletionRequested=new W,this.columns=["name","description","lastEdit","actions"],this.dataSource=new B3([])}ngOnChanges(t){null!==this.graphs&&(this.dataSource.data=this.graphs)}ngAfterViewInit(){this.dataSource.sort=this.sort}exportGraph(t){this.bottomSheet.open(PB,{data:t})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(DL))},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph-list","graphs",""]],viewQuery:function(t,r){if(1&t&&Xe(gC,5),2&t){let s;Q(s=J())&&(r.sort=s.first)}},inputs:{graphs:"graphs"},outputs:{graphSelected:"graphSelected",graphDeletionRequested:"graphDeletionRequested"},features:[bt],attrs:lfe,decls:15,vars:3,consts:[["mat-table","","matSort","",1,"mat-elevation-z4",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","lastEdit"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","","color","primary",1,"action-button",3,"matTooltip","click"],["mat-icon-button","","color","warn",1,"action-button",3,"matTooltip","click"],["mat-header-row",""],["mat-row",""]],template:function(t,r){1&t&&(k(0,"table",0),fi(1,1),Z(2,cfe,3,3,"th",2),Z(3,dfe,2,1,"td",3),mi(),fi(4,4),Z(5,ufe,3,3,"th",2),Z(6,hfe,2,1,"td",3),mi(),fi(7,5),Z(8,ffe,3,3,"th",2),Z(9,mfe,3,4,"td",3),mi(),fi(10,6),Z(11,pfe,3,3,"th",7),Z(12,gfe,13,9,"td",3),mi(),Z(13,_fe,1,0,"tr",8),Z(14,bfe,1,0,"tr",9),D()),2&t&&(R("dataSource",r.dataSource),C(13),R("matHeaderRowDef",r.columns),C(1),R("matRowDefColumns",r.columns))},dependencies:[Fi,kn,gC,afe,uC,f_,hC,m_,h_,fC,p_,g_,mC,pC,xh,Rm,di],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}table[_ngcontent-%COMP%]{width:100%}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}[_ngcontent-%COMP%]:is(.mat-column-name, .mat-column-description)[_ngcontent-%COMP%]{word-break:break-all}[_ngcontent-%COMP%]:is(.mat-column-description, .mat-column-lastEdit)[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-header-cell[_ngcontent-%COMP%]{word-break:keep-all!important}"]}),i})(),yfe=(()=>{var e;class i{constructor(t,r,s){this.store=t,this.router=r,this.snackBarService=s,this.storedGraphs=this.store.select("graphStore").pipe(se(o=>Object.values(o)))}onGraphSelected(t){this.router.navigate(["model-checker"],{queryParams:o_("graphStore",t.name)})}onGraphDeletionRequested(t){this.store.dispatch(MP({key:t.name})),this.snackBarService.graphDeleted(t)}onGraphImport(t){this.store.dispatch(TP(t)),this.router.navigate(["model-checker"],{queryParams:o_("graphCache",t.name)})}navigateToExampleGraph(){this.router.navigate(["model-checker"],{queryParams:o_("graphCache",Jk.name)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on),p(Ri),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["apollo-home"]],decls:30,vars:23,consts:[[1,"section","graphs"],[3,"graphs","graphSelected","graphDeletionRequested"],[1,"section","import"],[2,"margin-bottom","0"],[3,"graphImport"],[1,"section","quick-access"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"routerLink"]],template:function(t,r){1&t&&(k(0,"section",0)(1,"h1"),N(2),U(3,"translate"),D(),k(4,"apollo-graph-list",1),H("graphSelected",function(o){return r.onGraphSelected(o)})("graphDeletionRequested",function(o){return r.onGraphDeletionRequested(o)}),U(5,"async"),D()(),k(6,"section",2)(7,"h1",3),N(8),U(9,"translate"),D(),k(10,"apollo-graph-import",4),H("graphImport",function(o){return r.onGraphImport(o)}),D()(),k(11,"section",5)(12,"h1"),N(13),U(14,"translate"),D(),k(15,"button",6),H("click",function(){return r.navigateToExampleGraph()}),N(16),U(17,"translate"),k(18,"mat-icon"),N(19,"open_in_new"),D()(),k(20,"button",7),N(21),U(22,"translate"),k(23,"mat-icon"),N(24,"open_in_new"),D()(),k(25,"button",7),N(26),U(27,"translate"),k(28,"mat-icon"),N(29,"open_in_new"),D()()()),2&t&&(C(2),pe(Y(3,9,"home.saved-graphs")),C(2),R("graphs",Y(5,11,r.storedGraphs)),C(4),pe(Y(9,13,"import.title")),C(5),pe(Y(14,15,"home.quick-access")),C(3),ot(" ",Y(17,17,"home.example-graph")," "),C(4),R("routerLink","/model-checker"),C(1),ot(" ",Y(22,19,"model-checker.title")," "),C(4),R("routerLink","/assignments"),C(1),ot(" ",Y(27,21,"assignments.title")," "))},dependencies:[Hl,Fi,kn,vhe,vfe,Pr,di],styles:["[_nghost-%COMP%]{display:block}.section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3rem}.section.quick-access[_ngcontent-%COMP%]{display:flex;flex-direction:column}.section.quick-access[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{max-width:-moz-fit-content;max-width:fit-content}.section.quick-access[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}"]}),i})();function wfe(e,i){1&e&&(k(0,"th",7),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.semantics")))}function xfe(e,i){if(1&e&&(k(0,"td",8),N(1),U(2,"translate"),D()),2&e){const n=i.$implicit;C(1),pe(Y(2,1,n.semantics))}}function kfe(e,i){1&e&&(k(0,"th",7),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.syntax")))}function Cfe(e,i){if(1&e&&(k(0,"td",8),N(1),D()),2&e){const n=i.$implicit;C(1),pe(n.syntax)}}function Dfe(e,i){1&e&&be(0,"tr",9)}function Sfe(e,i){1&e&&be(0,"tr",10)}const Efe=[{semantics:"misc.true",syntax:"tt"},{semantics:"misc.false",syntax:"ff"},{semantics:"\u2200",syntax:"forall"},{semantics:"\u2203",syntax:"exists"},{semantics:"\xac",syntax:"!"},{semantics:"\u2228",syntax:"|, ||"},{semantics:"\u2227",syntax:"&, &&"},{semantics:"\u2192",syntax:"->"},{semantics:"\u2194",syntax:"<->"},{semantics:"\u2250",syntax:"="}];let Mfe=(()=>{var e;class i{constructor(){this.columns=["semantics","syntax"],this.dataSource=new B3(Efe)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:9,vars:3,consts:[["mat-table","",3,"dataSource"],["matColumnDef","semantics"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","syntax"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,r){1&t&&(k(0,"table",0),fi(1,1),Z(2,wfe,3,3,"th",2),Z(3,xfe,3,3,"td",3),mi(),fi(4,4),Z(5,kfe,3,3,"th",2),Z(6,Cfe,2,1,"td",3),mi(),Z(7,Dfe,1,0,"tr",5),Z(8,Sfe,1,0,"tr",6),D()),2&t&&(R("dataSource",r.dataSource),C(7),R("matHeaderRowDef",r.columns),C(1),R("matRowDefColumns",r.columns))},dependencies:[uC,f_,hC,m_,h_,fC,p_,g_,mC,pC,di],styles:[".mat-table[_ngcontent-%COMP%]{width:100%;height:100%}"]}),i})();function Tfe(e,i){if(1&e&&be(0,"mat-pseudo-checkbox",5),2&e){const n=ue();R("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Ife(e,i){if(1&e&&(k(0,"span",6),N(1),D()),2&e){const n=ue();C(1),ot("(",n.group.label,")")}}const Afe=["*"];let z3=(()=>{var e;class i extends Iee{constructor(t,r,s,o){super(t,r,s,o)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(st),p(JN,8),p(eP,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,r){1&t&&H("click",function(){return r._selectViaInteraction()})("keydown",function(o){return r._handleKeydown(o)}),2&t&&(On("id",r.id),_e("tabindex",r._getTabIndex())("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),fe("mat-selected",r.selected)("mat-option-multiple",r.multiple)("mat-active",r.active)("mat-option-disabled",r.disabled))},exportAs:["matOption"],features:[L],ngContentSelectors:Afe,decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,r){1&t&&(ct(),Z(0,Tfe,1,2,"mat-pseudo-checkbox",0),k(1,"span",1,2),we(3),D(),Z(4,Ife,2,1,"span",3),be(5,"div",4)),2&t&&(R("ngIf",r.multiple),C(4),R("ngIf",r.group&&r.group._inert),C(1),R("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[dr,ki,QN],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})(),H3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jl,Ln,Fe,ax]}),i})();const Rfe=["trigger"],Ofe=["panel"];let $3=0;const U3=new M("mat-select-scroll-strategy"),Lfe=new M("MAT_SELECT_CONFIG"),Bfe={provide:U3,deps:[ln],useFactory:function Pfe(e){return()=>e.scrollStrategies.reposition()}},Vfe=new M("MatSelectTrigger"),jfe=$r(Nu(no(sx(class{constructor(e,i,n,t,r){this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new $}}))));let zfe=(()=>{var e;class i extends jfe{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ml.required)??!1}set required(t){this._required=re(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=re(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=re(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Oi(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}constructor(t,r,s,o,a,l,c,d,u,h,f,_,g,m){super(a,o,c,d,h),this._viewportRuler=t,this._changeDetectorRef=r,this._ngZone=s,this._dir=l,this._parentFormField=u,this._liveAnnouncer=g,this._defaultOptions=m,this._panelOpen=!1,this._compareWith=(b,v)=>b===v,this._uid="mat-select-"+$3++,this._triggerAriaLabelledBy=null,this._destroy=new $,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+$3++,this._panelDoneAnimatingStream=new $,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=us(()=>{const b=this.options;return b?b.changes.pipe(Di(b),ei(()=>Ft(...b.map(v=>v.onSelectionChange)))):this._ngZone.onStable.pipe(ze(1),ei(()=>this.optionSelectionChanges))}),this.openedChange=new W,this._openedStream=this.openedChange.pipe($e(b=>b),se(()=>{})),this._closedStream=this.openedChange.pipe($e(b=>!b),se(()=>{})),this.selectionChange=new W,this.valueChange=new W,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=m?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=m.typeaheadDebounceInterval),this._scrollStrategyFactory=_,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new ao(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(xo(),ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ke(this._destroy)).subscribe(t=>{t.added.forEach(r=>r.select()),t.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(Di(null),ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby(),r=this.ngControl;if(t!==this._triggerAriaLabelledBy){const s=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?s.setAttribute("aria-labelledby",t):s.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(void 0!==this._previousControl&&null!==r.disabled&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;const r=`${this.id}-panel`;this._trackedModal&&jw(this._trackedModal,"aria-owns",r),pN(t,"aria-owns",r),this._trackedModal=t}_clearFromModal(){this._trackedModal&&(jw(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const r=t.keyCode,s=40===r||38===r||37===r||39===r,o=13===r||32===r,a=this._keyManager;if(!a.isTyping()&&o&&!qi(t)||(this.multiple||t.altKey)&&s)t.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;a.onKeydown(t);const c=this.selected;c&&l!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(t){const r=this._keyManager,s=t.keyCode,o=40===s||38===s,a=r.isTyping();if(o&&t.altKey)t.preventDefault(),this.close();else if(a||13!==s&&32!==s||!r.activeItem||qi(t))if(!a&&this._multiple&&65===s&&t.ctrlKey){t.preventDefault();const l=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(l?c.select():c.deselect())})}else{const l=r.activeItemIndex;r.onKeydown(t),this._multiple&&o&&t.shiftKey&&r.activeItem&&r.activeItemIndex!==l&&r.activeItem._selectViaInteraction()}else t.preventDefault(),r.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ze(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{const r=this._selectOptionByValue(t);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){const r=this.options.find(s=>{if(this._selectionModel.isSelected(s))return!1;try{return null!=s.value&&this._compareWith(s.value,t)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(t){return!!(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t,!0)}_skipPredicate(t){return t.disabled}_initKeyManager(){this._keyManager=new fJ(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Ft(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ke(t)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ft(...this.options.map(r=>r._stateChanges)).pipe(ke(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,r){const s=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(s!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),r&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),r&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),s!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((r,s)=>this.sortComparator?this.sortComparator(r,s,t):t.indexOf(r)-t.indexOf(s)),this.stateChanges.next()}}_propagateChanges(t){let r=null;r=this.multiple?this.selected.map(s=>s.value):this.selected?this.selected.value:t,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let r=0;r0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._parentFormField?.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const t=this._parentFormField?.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Yl),p(st),p(ce),p(Pu),p(ne),p(an,8),p(Il,8),p(Ol,8),p(Jg,8),p(or,10),Mi("tabindex"),p(U3),p(qw),p(Lfe,8))},e.\u0275dir=I({type:e,viewQuery:function(t,r){if(1&t&&(Xe(Rfe,5),Xe(Ofe,5),Xe(VN,5)),2&t){let s;Q(s=J())&&(r.trigger=s.first),Q(s=J())&&(r.panel=s.first),Q(s=J())&&(r._overlayDir=s.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[L,bt]}),i})();function Hfe(e,i){if(1&e&&(k(0,"span",8),N(1),D()),2&e){const n=ue();C(1),pe(n.placeholder)}}function $fe(e,i){if(1&e&&(k(0,"span",12),N(1),D()),2&e){const n=ue(2);C(1),pe(n.triggerValue)}}function Ufe(e,i){1&e&&we(0,0,["*ngSwitchCase","true"])}function Gfe(e,i){1&e&&(k(0,"span",9),Z(1,$fe,2,1,"span",10),Z(2,Ufe,1,0,"ng-content",11),D()),2&e&&(R("ngSwitch",!!ue().customTrigger),C(2),R("ngSwitchCase",!0))}function qfe(e,i){if(1&e){const n=Yt();k(0,"div",13)(1,"div",14,15),H("@transformPanel.done",function(r){return tt(n),it(ue()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return tt(n),it(ue()._handleKeydown(r))}),we(3,1),D()()}if(2&e){const n=ue();R("@transformPanelWrap",void 0),C(1),function SM(e,i,n){ir(gn,Or,al(j(),e,i,n),!0)}("mat-select-panel ",n._getPanelTheme(),""),yn("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),R("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing"),_e("id",n.id+"-panel")("aria-multiselectable",n.multiple)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby())}}const Wfe=[[["mat-select-trigger"]],"*"],Yfe=["mat-select-trigger","*"],G3={transformPanelWrap:Si("transformPanelWrap",[_t("* => void",sa("@transformPanel",[ra()],{optional:!0}))]),transformPanel:Si("transformPanel",[gt("void",Ee({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),gt("showing",Ee({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),gt("showing-multiple",Ee({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_t("void => *",St("120ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void",St("100ms 25ms linear",Ee({opacity:0})))])};class Zfe{constructor(i,n){this.source=i,this.value=n}}let Qfe=(()=>{var e;class i extends zfe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,r,s){const o=this._getItemHeight();return Math.min(Math.max(0,o*t-r+o/2),s)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ke(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(ze(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const r=tP(t,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===r?0:function Aee(e,i,n,t){return en+t?Math.max(0,e-t+i):n}((t+r)*s,s,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Zfe(this,t)}_getOverlayMinWidth(){return this._triggerRect?.width}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),r=this._viewportRuler.getViewportSize(),s=this._isRtl(),o=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let d=this._selectionModel.selected[0]||this.options.first;a=d&&d.group?32:16}s||(a*=-1);const l=0-(t.left+a-(s?o:0)),c=t.right+a-r.width+(s?0:o);l>0?a+=l+8:c>0&&(a-=c+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,r,s){const o=this._getItemHeight(),a=(o-this._triggerRect.height)/2,l=Math.floor(256/o);let c;return this.disableOptionCentering?0:(c=0===this._scrollTop?t*o:this._scrollTop===s?(t-(this._getItemCount()-l))*o+(o-(this._getItemCount()*o-256)%o):r-o/2,Math.round(-1*c-a))}_checkOverlayWithinViewport(t){const r=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,a=s.height-this._triggerRect.bottom-8,l=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*r,256)-l-this._triggerRect.height;d>a?this._adjustPanelUp(d,a):l>o?this._adjustPanelDown(l,o,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,r){const s=Math.round(t-r);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,r,s){const o=Math.round(t-r);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),r=this._getItemCount(),s=Math.min(r*t,256),a=r*t-s;let l;l=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),l+=tP(l,this.options,this.optionGroups);const c=s/2;this._scrollTop=this._calculateOverlayScroll(l,c,a),this._offsetY=this._calculateOverlayOffsetY(l,c,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const t=this._getItemHeight(),r=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-r+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-select"]],contentQueries:function(t,r,s){if(1&t&&(Me(s,Vfe,5),Me(s,z3,5),Me(s,eP,5)),2&t){let o;Q(o=J())&&(r.customTrigger=o.first),Q(o=J())&&(r.options=o),Q(o=J())&&(r.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true","ngSkipHydration","",1,"mat-select"],hostVars:19,hostBindings:function(t,r){1&t&&H("keydown",function(o){return r._handleKeydown(o)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&t&&(_e("id",r.id)("tabindex",r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),fe("mat-select-disabled",r.disabled)("mat-select-invalid",r.errorState)("mat-select-required",r.required)("mat-select-empty",r.empty)("mat-select-multiple",r.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[K([{provide:xc,useExisting:e},{provide:JN,useExisting:e}]),L],ngContentSelectors:Yfe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,r){if(1&t&&(ct(Wfe),k(0,"div",0,1),H("click",function(){return r.toggle()}),k(3,"div",2),Z(4,Hfe,2,1,"span",3),Z(5,Gfe,3,2,"span",4),D(),k(6,"div",5),be(7,"div",6),D()(),Z(8,qfe,4,14,"ng-template",7),H("backdropClick",function(){return r.close()})("attach",function(){return r._onAttached()})("detach",function(){return r.close()})),2&t){const s=Rt(1);_e("aria-owns",r.panelOpen?r.id+"-panel":null),C(3),R("ngSwitch",r.empty),_e("id",r._valueId),C(1),R("ngSwitchCase",!0),C(1),R("ngSwitchCase",!1),C(3),R("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayMinWidth",r._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",r._offsetY)}},dependencies:[Wy,Pd,Ky,nA,VN,BN],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[G3.transformPanelWrap,G3.transformPanel]},changeDetection:0}),i})(),W3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Bfe],imports:[Ln,Ou,H3,Fe,ta,wh,H3,Fe]}),i})();const Jfe=["selectionInput"];function eme(e,i){if(1&e&&(k(0,"mat-option",3),U(1,"translate"),N(2),U(3,"translate"),D()),2&e){const n=i.$implicit;R("value",n.feedback)("matTooltip",Y(1,3,n.description)),C(2),ot(" ",Y(3,5,n.name)," ")}}const tme=[{feedback:"full",name:"feedback.full.name",description:"feedback.full.description"},{feedback:"relevant",name:"feedback.relevant.name",description:"feedback.relevant.description"},{feedback:"minimal",name:"feedback.minimal.name",description:"feedback.minimal.description"}];let ime=(()=>{var e;class i{constructor(t){this.store=t,this.feedbackOptions=tme,this.selectedFeedback$=this.store.select("settings").pipe(se(r=>r.selectedFeedback))}get selectedFeedback(){return this.selectionInput.value}onSelectionChange(t){this.store.dispatch(kP({feedback:t.value}))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-feedback-selection"]],viewQuery:function(t,r){if(1&t&&Xe(Jfe,5),2&t){let s;Q(s=J())&&(r.selectionInput=s.first)}},decls:8,vars:7,consts:[[3,"value","selectionChange"],["selectionInput",""],["matTooltipPosition","left","matTooltipShowDelay","250","matTooltipHideDelay","250",3,"value","matTooltip",4,"ngFor","ngForOf"],["matTooltipPosition","left","matTooltipShowDelay","250","matTooltipHideDelay","250",3,"value","matTooltip"]],template:function(t,r){1&t&&(k(0,"mat-form-field")(1,"mat-label"),N(2),U(3,"translate"),D(),k(4,"mat-select",0,1),H("selectionChange",function(o){return r.onSelectionChange(o)}),U(6,"async"),Z(7,eme,4,7,"mat-option",2),D()()),2&t&&(C(2),pe(Y(3,3,"feedback.title")),C(2),R("value",Y(6,5,r.selectedFeedback$)),C(3),R("ngForOf",r.feedbackOptions))},dependencies:[Nd,yh,ga,Qfe,z3,xh,Pr,di],styles:["[_nghost-%COMP%]{display:block}"]}),i})();const Y3=[{path:"",name:"home.title",component:yfe},{path:"model-checker",name:"model-checker.title",component:(()=>{var e;class i{constructor(t,r,s,o,a,l){this.store=t,this.router=r,this.route=s,this.snackBarService=o,this.backendService=a,this.dialog=l,this.formula=new Al("",Ml.required),this.graphExportRequests=new W,this.graph=this.route.queryParams.pipe(se(c=>[c.graphSource,c.graphKey]),$e(([c,d])=>void 0!==c&&void 0!==d),Bt(([c,d])=>this.store.select(c).pipe(se(u=>u[d]),$e(u=>{const h=void 0!==u;return h||this.snackBarService.openSnackBar({key:"misc.graph-not-found"}),h}),Bt(u=>Cn.fromDomainGraph(u).catch(h=>(this.snackBarService.openSnackBar(h),new Cn))))))}ngOnDestroy(){this.activeResultDialog?.close()}onSaveRequested(t){this.store.dispatch(bx(t)),this.router.navigate(["model-checker"],{queryParams:o_("graphStore",t.name)})}requestGraphExport(){this.formula.invalid||(this.activeResultDialog?.close(),this.graphExportRequests.emit())}checkModel(t,r){const s=this.backendService.checkModel(t,this.formula.value,r),o=this.dialog.open(g2,{width:"90%",data:s,autoFocus:!1});o.afterOpened().subscribe(()=>{this.activeResultDialog?.close(),this.activeResultDialog=void 0}),o.afterClosed().pipe($e(a=>void 0!==a)).subscribe(a=>{this.activeResultDialog=this.dialog.open(h2,{width:a.rootTrace.children?"70%":void 0,height:a.rootTrace.children?"90%":void 0,data:a,autoFocus:!1,hasBackdrop:!1})})}showFormulaSyntaxDialog(){this.dialog.open(Mfe,{minWidth:"50%",panelClass:"unpadded-dialog"})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on),p(Ri),p(Js),p(aa),p(Nx),p(oo))},e.\u0275cmp=ie({type:e,selectors:[["apollo-model-checker"]],decls:18,vars:13,consts:[[1,"model-checker-container"],[1,"formula-section"],["matInput","","autocomplete","off",3,"formControl","placeholder","keyup.enter"],["mat-icon-button","","matSuffix","","color","primary",3,"click"],["mat-raised-button","","color","primary",1,"check-button",3,"disabled","click"],["feedbackSelection",""],[1,"graph-section"],[3,"graph","graphExportRequests","saveRequested","graphExported"]],template:function(t,r){if(1&t){const s=Yt();k(0,"div",0)(1,"div",1)(2,"mat-form-field")(3,"mat-label"),N(4),U(5,"translate"),D(),k(6,"input",2),H("keyup.enter",function(){return r.requestGraphExport()}),U(7,"translate"),D(),k(8,"button",3),H("click",function(){return r.showFormulaSyntaxDialog()}),k(9,"mat-icon"),N(10,"help_outlined"),D()()(),k(11,"button",4),H("click",function(){return r.requestGraphExport()}),N(12),U(13,"translate"),D(),be(14,"apollo-feedback-selection",null,5),D(),k(16,"div",6)(17,"apollo-graph-editor",7),H("saveRequested",function(a){return r.onSaveRequested(a)})("graphExported",function(a){tt(s);const l=Rt(15);return it(r.checkModel(a,l.selectedFeedback))}),D()()()}2&t&&(C(4),pe(Y(5,7,"fol.formula")),C(2),nn("placeholder",Y(7,9,"fol.formula")),R("formControl",r.formula),C(5),R("disabled",r.formula.invalid),C(1),pe(Y(13,11,"actions.check")),C(5),R("graph",r.graph)("graphExportRequests",r.graphExportRequests))},dependencies:[Uo,zd,Fi,yh,ga,Qce,kn,Xk,Rl,ime,g3,di],styles:["[_nghost-%COMP%]{display:block;height:100%}.model-checker-container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.formula-section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.formula-section[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1;margin-right:1rem}.formula-section[_ngcontent-%COMP%] .check-button[_ngcontent-%COMP%]{margin-right:1rem}.graph-section[_ngcontent-%COMP%]{flex-grow:1}"]}),i})()},{path:"assignments",name:"assignments.title",component:Nue},{path:"assignments/:slug",component:Tue},{path:"**",redirectTo:"/",pathMatch:"full"}];let nme=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[tN.forRoot(Y3),KO,tN]}),i})();const _i=void 0,sme=["de",[["AM","PM"],_i,_i],_i,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],_i,_i],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",_i,"{1} 'um' {0}",_i],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[_i,"\u0440."],CUC:[_i,"Cub$"],DEM:["DM"],FKP:[_i,"Fl\xa3"],GHS:[_i,"\u20b5"],GNF:[_i,"F.G."],KMF:[_i,"FC"],PHP:[_i,"\u20b1"],RON:[_i,"L"],RUR:[_i,"\u0440."],RWF:[_i,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[_i,"K"]},"ltr",function rme(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}],wa=void 0,ame=["en",[["a","p"],["AM","PM"],wa],[["AM","PM"],wa,wa],[["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"]],wa,[["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"]],wa,[["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}",wa,"{1} 'at' {0}",wa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ome(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let lme=(()=>{var e;class i{constructor(t){this.dialogRef=t,t.disableClose=!0}close(){this.dialogRef.close()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so))},e.\u0275cmp=ie({type:e,selectors:[["apollo-update-available"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(t,r){1&t&&(k(0,"h1",0),N(1),U(2,"translate"),D(),k(3,"div",1)(4,"button",2),H("click",function(){return r.close()}),N(5),U(6,"translate"),D()()),2&t&&(C(1),pe(Y(2,2,"misc.update-available")),C(4),pe(Y(6,4,"actions.update")))},dependencies:[Fi,cP,cx,di],styles:["div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}"]}),i})(),cme=(()=>{var e;class i{constructor(t,r,s,o){this.appRef=t,this.dialog=r,this.log=s,this.swUpdate=o}start(){if(!this.swUpdate.isEnabled)return;(void 0!==this.checkForUpdateSubscription||void 0!==this.updateAvailableSubscription||void 0!==this.updateActivatedSubscription)&&this.stop();const s=Vr(this.appRef.isStable.pipe(Zs(o=>o)),AP(18e5));this.checkForUpdateSubscription=s.subscribe(()=>(this.log.debug("Checking for updates"),this.swUpdate.checkForUpdate())),this.updateAvailableSubscription=this.swUpdate.available.subscribe(()=>{this.log.debug("Update available"),this.dialog.open(lme).afterClosed().subscribe(()=>(this.log.debug("Updating"),this.swUpdate.activateUpdate().then(()=>document.location.reload())))}),this.updateActivatedSubscription=this.swUpdate.activated.subscribe(()=>this.log.info("Updated")),this.log.debug("UpdateService started")}stop(){this.checkForUpdateSubscription?.unsubscribe(),this.updateAvailableSubscription?.unsubscribe(),this.updateActivatedSubscription?.unsubscribe(),this.log.debug("UpdateService stopped")}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Nr),x(oo),x(hs),x(P0))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const dme=["button"],ume=["*"],K3=new M("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),X3=new M("MatButtonToggleGroup"),hme={provide:Ci,useExisting:Ye(()=>J3),multi:!0};let Z3=0;class Q3{constructor(i,n){this.source=i,this.value=n}}let J3=(()=>{var e;class i{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(t){this._vertical=re(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(r=>r.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=re(t),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._markButtonsForCheck()}constructor(t,r){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+Z3++,this.valueChange=new W,this.change=new W,this.appearance=r&&r.appearance?r.appearance:"standard"}ngOnInit(){this._selectionModel=new ao(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(t){const r=new Q3(t,this.value);this._rawValue=r.value,this._controlValueAccessorChangeFn(r.value),this.change.emit(r)}_syncButtonToggle(t,r,s=!1,o=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?r?this._selectionModel.select(t):this._selectionModel.deselect(t):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(t,s)):this._updateModelValue(t,s)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(r=>null!=t.value&&r===t.value):t.value===this._rawValue)}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(r=>this._selectValue(r))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const r=this._buttonToggles.find(s=>null!=s.value&&s.value===t);r&&(r.checked=!0,this._selectionModel.select(r))}_updateModelValue(t,r){r&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(K3,8))},e.\u0275dir=I({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,r,s){if(1&t&&Me(s,eV,5),2&t){let o;Q(o=J())&&(r._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,r){2&t&&(_e("aria-disabled",r.disabled),fe("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard","standard"===r.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[K([hme,{provide:X3,useExisting:e}])]}),i})();const fme=$r(class{});let eV=(()=>{var e;class i extends fme{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const r=re(t);r!==this._checked&&(this._checked=r,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=re(t)}constructor(t,r,s,o,a,l){super(),this._changeDetectorRef=r,this._elementRef=s,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new W;const c=Number(a);this.tabIndex=c||0===c?c:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard"}ngOnInit(){const t=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+Z3++,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector()||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Q3(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return(e=i).\u0275fac=function(t){return new(t||e)(p(X3,8),p(st),p(ne),p(xn),Mi("tabindex"),p(K3,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,r){if(1&t&&Xe(dme,5),2&t){let s;Q(s=J())&&(r._buttonElement=s.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,r){1&t&&H("focus",function(){return r.focus()}),2&t&&(_e("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),fe("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard","standard"===r.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[L],ngContentSelectors:ume,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,r){if(1&t&&(ct(),k(0,"button",0,1),H("click",function(){return r._onButtonClick()}),k(2,"span",2),we(3),D()(),be(4,"span",3)(5,"span",4)),2&t){const s=Rt(1);R("id",r.buttonId)("disabled",r.disabled||null),_e("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),C(5),R("matRippleTrigger",s)("matRippleDisabled",r.disableRipple||r.disabled)}},dependencies:[dr],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{--mat-legacy-button-toggle-height:36px;--mat-legacy-button-toggle-shape:2px;--mat-legacy-button-toggle-focus-state-layer-opacity:1;position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-text-font)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-text-font)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),i})(),tV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Jl,Fe]}),i})();const v_=["*"],mme=["content"];function pme(e,i){if(1&e){const n=Yt();k(0,"div",2),H("click",function(){return tt(n),it(ue()._onBackdropClicked())}),D()}2&e&&fe("mat-drawer-shown",ue()._isShowingBackdrop())}function gme(e,i){1&e&&(k(0,"mat-drawer-content"),we(1,2),D())}const _me=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],bme=["mat-drawer","mat-drawer-content","*"];function vme(e,i){if(1&e){const n=Yt();k(0,"div",2),H("click",function(){return tt(n),it(ue()._onBackdropClicked())}),D()}2&e&&fe("mat-drawer-shown",ue()._isShowingBackdrop())}function yme(e,i){1&e&&(k(0,"mat-sidenav-content"),we(1,2),D())}const wme=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],xme=["mat-sidenav","mat-sidenav-content","*"],iV={transformDrawer:Si("transform",[gt("open, open-instant",Ee({transform:"none",visibility:"visible"})),gt("void",Ee({"box-shadow":"none",visibility:"hidden"})),_t("void => open-instant",St("0ms")),_t("void <=> open, open-instant => void",St("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Cme=new M("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Dme(){return!1}}),_C=new M("MAT_DRAWER_CONTAINER");let y_=(()=>{var e;class i extends Ru{constructor(t,r,s,o,a){super(s,o,a),this._changeDetectorRef=t,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(Ye(()=>rV)),p(ne),p(Wl),p(ce))},e.\u0275cmp=ie({type:e,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,r){2&t&&yn("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[K([{provide:Ru,useExisting:e}]),L],ngContentSelectors:v_,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},encapsulation:2,changeDetection:0}),i})(),nV=(()=>{var e;class i{get position(){return this._position}set position(t){(t="end"===t?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(t),this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=re(t)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(t){("true"===t||"false"===t||null==t)&&(t=re(t)),this._autoFocus=t}get opened(){return this._opened}set opened(t){this.toggle(re(t))}constructor(t,r,s,o,a,l,c,d){this._elementRef=t,this._focusTrapFactory=r,this._focusMonitor=s,this._platform=o,this._ngZone=a,this._interactivityChecker=l,this._doc=c,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new $,this._animationEnd=new $,this._animationState="void",this.openedChange=new W(!0),this._openedStream=this.openedChange.pipe($e(u=>u),se(()=>{})),this.openedStart=this._animationStarted.pipe($e(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),ip(void 0)),this._closedStream=this.openedChange.pipe($e(u=>!u),se(()=>{})),this.closedStart=this._animationStarted.pipe($e(u=>u.fromState!==u.toState&&"void"===u.toState),ip(void 0)),this._destroyed=new $,this.onPositionChanged=new W,this._modeChanged=new $,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Br(this._elementRef.nativeElement,"keydown").pipe($e(u=>27===u.keyCode&&!this.disableClose&&!qi(u)),ke(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(xo((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{t.removeEventListener("blur",s),t.removeEventListener("mousedown",s),t.removeAttribute("tabindex")};t.addEventListener("blur",s),t.addEventListener("mousedown",s)})),t.focus(r)}_focusByCssSelector(t,r){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,r)}_takeFocus(){if(!this._focusTrap)return;const t=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{!r&&"function"==typeof this._elementRef.nativeElement.focus&&t.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(t){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,t):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const t=this._doc.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(t=!this.opened,r){t&&r&&(this._openedVia=r);const s=this._setOpen(t,!t&&this._isFocusWithinDrawer(),this._openedVia||"program");return t||(this._openedVia=null),s}_setOpen(t,r,s){return this._opened=t,t?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(s)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(ze(1)).subscribe(a=>o(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(t){const r=this._elementRef.nativeElement,s=r.parentNode;"end"===t?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),s.insertBefore(this._anchor,r)),s.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xn),p(Ot),p(ce),p(Gl),p(xe,8),p(_C,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-drawer"]],viewQuery:function(t,r){if(1&t&&Xe(mme,5),2&t){let s;Q(s=J())&&(r._content=s.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(t,r){1&t&&pl("@transform.start",function(o){return r._animationStarted.next(o)})("@transform.done",function(o){return r._animationEnd.next(o)}),2&t&&(_e("align",null),_l("@transform",r._animationState),fe("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:v_,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,r){1&t&&(ct(),k(0,"div",0,1),we(2),D())},dependencies:[Ru],encapsulation:2,data:{animation:[iV.transformDrawer]},changeDetection:0}),i})(),rV=(()=>{var e;class i{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=re(t)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(t){this._backdropOverride=null==t?null:re(t)}get scrollable(){return this._userContent||this._content}constructor(t,r,s,o,a,l=!1,c){this._dir=t,this._element=r,this._ngZone=s,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new wl,this.backdropClick=new W,this._destroyed=new $,this._doCheckSubject=new $,this._contentMargins={left:null,right:null},this._contentMarginChanges=new $,t&&t.change.pipe(ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}ngAfterContentInit(){this._allDrawers.changes.pipe(Di(this._allDrawers),ke(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Di(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Lp(10),ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,r=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const s=this._left._getWidth();t+=s,r-=s}if(this._right&&this._right.opened)if("side"==this._right.mode)r+=this._right._getWidth();else if("push"==this._right.mode){const s=this._right._getWidth();r+=s,t-=s}t=t||null,r=r||null,(t!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:t,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe($e(r=>r.fromState!==r.toState),ke(this._drawers.changes)).subscribe(r=>{"open-instant"!==r.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(ze(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(ke(Ft(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const r=this._element.nativeElement.classList,s="mat-drawer-container-has-open";t?r.add(s):r.remove(s)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._drawerHasBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(t){return null!=t&&t.opened}_drawerHasBackdrop(t){return null==this._backdropOverride?!!t&&"side"!==t.mode:this._backdropOverride}}return(e=i).\u0275fac=function(t){return new(t||e)(p(an,8),p(ne),p(ce),p(st),p(Yl),p(Cme),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(t,r,s){if(1&t&&(Me(s,y_,5),Me(s,nV,5)),2&t){let o;Q(o=J())&&(r._content=o.first),Q(o=J())&&(r._allDrawers=o)}},viewQuery:function(t,r){if(1&t&&Xe(y_,5),2&t){let s;Q(s=J())&&(r._userContent=s.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[K([{provide:_C,useExisting:e}])],ngContentSelectors:bme,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){1&t&&(ct(_me),Z(0,pme,1,2,"div",0),we(1),we(2,1),Z(3,gme,2,0,"mat-drawer-content",1)),2&t&&(R("ngIf",r.hasBackdrop),C(3),R("ngIf",!r._content))},dependencies:[ki,y_],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),bC=(()=>{var e;class i extends y_{constructor(t,r,s,o,a){super(t,r,s,o,a)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(Ye(()=>oV)),p(ne),p(Wl),p(ce))},e.\u0275cmp=ie({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,r){2&t&&yn("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[K([{provide:Ru,useExisting:e}]),L],ngContentSelectors:v_,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},encapsulation:2,changeDetection:0}),i})(),sV=(()=>{var e;class i extends nV{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=re(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Oi(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Oi(t)}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,r){2&t&&(_e("align",null),yn("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),fe("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[L],ngContentSelectors:v_,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,r){1&t&&(ct(),k(0,"div",0,1),we(2),D())},dependencies:[Ru],encapsulation:2,data:{animation:[iV.transformDrawer]},changeDetection:0}),i})(),oV=(()=>{var e;class i extends rV{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,r,s){if(1&t&&(Me(s,bC,5),Me(s,sV,5)),2&t){let o;Q(o=J())&&(r._content=o.first),Q(o=J())&&(r._allDrawers=o)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[K([{provide:_C,useExisting:e}]),L],ngContentSelectors:xme,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){1&t&&(ct(wme),Z(0,vme,1,2,"div",0),we(1),we(2,1),Z(3,yme,2,0,"mat-sidenav-content",1)),2&t&&(R("ngIf",r.hasBackdrop),C(3),R("ngIf",!r._content))},dependencies:[ki,bC],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),aV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ln,Fe,ta,ta,Fe]}),i})();const Sme=["*",[["mat-toolbar-row"]]],Eme=["*","mat-toolbar-row"],Mme=ro(class{constructor(e){this._elementRef=e}});let Tme=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),Ime=(()=>{var e;class i extends Mme{constructor(t,r,s){super(t),this._platform=r,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ot),p(xe))},e.\u0275cmp=ie({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,r,s){if(1&t&&Me(s,Tme,5),2&t){let o;Q(o=J())&&(r._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,r){2&t&&fe("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[L],ngContentSelectors:Eme,decls:2,vars:0,template:function(t,r){1&t&&(ct(Sme),we(0),we(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),i})(),lV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();function Ame(e,i){if(1&e){const n=Yt();k(0,"a",16),H("click",function(){return tt(n),it(ue().setSidebar(!1))}),N(1),U(2,"translate"),D()}if(2&e){const n=i.$implicit;R("routerLink",n.path),C(1),pe(Y(2,2,n.name))}}const Rme=["*"];let Ome=(()=>{var e;class i{constructor(t){this.store=t,this.routes=Y3.filter(r=>void 0!==r.name),this.language$=this.store.select("settings").pipe(se(r=>r.language)),this.sidebar$=this.store.select("settings").pipe(se(r=>r.sidebar)),this.themeButtonIcon$=this.store.select("settings").pipe(se(r=>"dark-theme"===r.theme?"light_mode":"dark_mode"))}setSidebar(t){this.store.dispatch(_x({expanded:t}))}toggleSidebar(){this.store.dispatch(wP())}setLanguage(t){this.store.dispatch(gx({language:t.value}))}toggleTheme(){this.store.dispatch(xP())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-dashboard"]],ngContentSelectors:Rme,decls:38,vars:26,consts:[[1,"container"],["color","primary",1,"toolbar","mat-elevation-z8"],["mat-icon-button","",3,"click"],[1,"title"],["src","/assets/icons/logo.svg","alt","Logo","width","36px","height","36px",1,"logo",3,"routerLink"],["autosize","",1,"sidenav-container"],["mode","over",1,"sidenav","mat-elevation-z6",3,"opened","closed"],["mat-list-item","",3,"routerLink","click",4,"ngFor","ngForOf"],["name","language",1,"language-button-group",3,"change"],["value","en",1,"language-button",3,"checked"],["value","de",1,"language-button",3,"checked"],[1,"theme-button-container"],["href","https://github.com/DerYeger/apollo-frontend","target","_blank","rel","noopener noreferrer",1,"repository-link"],["height","2rem","width","2rem","xmlns","http://www.w3.org/2000/svg",1,"github-logo"],["transform","scale(2)","d","M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"],[2,"padding","1rem","height","calc(100% - 2rem)"],["mat-list-item","",3,"routerLink","click"]],template:function(t,r){1&t&&(ct(),k(0,"div",0)(1,"mat-toolbar",1)(2,"button",2),H("click",function(){return r.toggleSidebar()}),k(3,"mat-icon"),N(4,"menu"),D()(),k(5,"h1",3),N(6),U(7,"translate"),D(),be(8,"img",4),D(),k(9,"mat-sidenav-container",5)(10,"mat-sidenav",6),H("closed",function(){return r.setSidebar(!1)}),U(11,"async"),k(12,"mat-nav-list"),Z(13,Ame,3,4,"a",7),D(),k(14,"mat-button-toggle-group",8),H("change",function(o){return r.setLanguage(o)}),k(15,"mat-button-toggle",9),U(16,"async"),N(17),U(18,"translate"),D(),k(19,"mat-button-toggle",10),U(20,"async"),N(21),U(22,"translate"),D()(),k(23,"div",11)(24,"button",2),H("click",function(){return r.toggleTheme()}),k(25,"mat-icon"),N(26),U(27,"async"),D()()(),k(28,"a",12),Eo(),k(29,"svg",13),be(30,"path",14),D(),La(),k(31,"span"),N(32),U(33,"translate"),D(),k(34,"mat-icon"),N(35,"open_in_new"),D()()(),k(36,"mat-sidenav-content",15),we(37),D()()()),2&t&&(C(6),pe(Y(7,10,"app.title")),C(2),R("routerLink","/"),C(2),R("opened",Y(11,12,r.sidebar$)),C(3),R("ngForOf",r.routes),C(2),R("checked","en"===Y(16,14,r.language$)),C(2),pe(Y(18,16,"lang.en")),C(2),R("checked","de"===Y(20,18,r.language$)),C(2),pe(Y(22,20,"lang.de")),C(5),pe(Y(27,22,r.themeButtonIcon$)),C(6),pe(Y(33,24,"dashboard.github-repository")))},dependencies:[Hl,Nd,Fi,J3,eV,kn,IB,OB,sV,oV,bC,Ime,Pr,di],styles:["[_nghost-%COMP%]{display:block;height:100%}.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0}.toolbar[_ngcontent-%COMP%]{z-index:2;height:48px}.toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-left:-.5rem}h1.title[_ngcontent-%COMP%]{margin-left:.5rem}.logo[_ngcontent-%COMP%]{justify-self:flex-end;position:absolute;right:1rem;cursor:pointer}.sidenav-container[_ngcontent-%COMP%]{flex:1}.sidenav[_ngcontent-%COMP%]{min-width:12.5rem}.mat-drawer-transition[_ngcontent-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{transition-duration:0s!important}mat-nav-list[_ngcontent-%COMP%]{padding:0}.language-button-group[_ngcontent-%COMP%]{width:100%;border-radius:0;border-left:0;border-right:0}.language-button[_ngcontent-%COMP%]{width:50%}.theme-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:1rem}"]}),i})(),Fme=(()=>{var e;class i{constructor(t,r,s,o){this.log=t,this.store=r,this.translate=s,this.updateService=o,this.languages={en:ame,de:sme},Object.entries(this.languages).forEach(([a,l])=>{s.setTranslation(a,Ss(574)(`./${a}.json`)),function M7(e,i,n){return function uU(e,i,n){"string"!=typeof i&&(n=i,i=e[Ct.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),bl[i]=e,n&&(bl[i][Ct.ExtraData]=n)}(e,i,n)}(l),t.debug(`Language ${a} registered.`)}),this.updateService.start()}ngOnInit(){this.languageSubscription=this.store.select("settings").pipe(se(t=>t.language),xo()).subscribe(t=>{if(void 0===t){const r=this.translate.getBrowserLang();this.store.dispatch(gx({language:"en"===r||"de"===r?r:"en"}))}else this.log.info(`Set ${t} as current language.`),this.translate.use(t)}),this.themeSubscription=this.store.select("settings").pipe(se(t=>t.theme),xo()).subscribe(t=>jn(document.body).classed("dark-theme","dark-theme"===t).classed("light-theme","light-theme"===t)),this.store.dispatch(_x({expanded:!1}))}ngOnDestroy(){this.languageSubscription?.unsubscribe(),this.themeSubscription?.unsubscribe(),this.updateService.stop()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs),p(on),p(Yo),p(cme))},e.\u0275cmp=ie({type:e,selectors:[["apollo-root"]],decls:2,vars:0,template:function(t,r){1&t&&(k(0,"apollo-dashboard"),be(1,"router-outlet"),D())},dependencies:[Dw,Ome],styles:["[_nghost-%COMP%]{display:block;height:100%}"]}),i})(),fV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),mV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jl,Fe,Vp,fV,Fe,fV]}),i})();function pV(e){return new O(3e3,!1)}function _o(e){switch(e.length){case 0:return new Vu;case 1:return e[0];default:return new rP(e)}}function gV(e,i,n=new Map,t=new Map){const r=[],s=[];let o=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((h,f)=>{let _=f,g=h;if("offset"!==f)switch(_=e.normalizePropertyName(_,r),g){case"!":g=n.get(f);break;case gs:g=t.get(f);break;default:g=e.normalizeStyleValue(f,_,g,r)}u.set(_,g)}),d||s.push(u),a=u,o=c}),r.length)throw function bpe(e){return new O(3502,!1)}();return s}function vC(e,i,n,t){switch(i){case"start":e.onStart(()=>t(n&&yC(n,"start",e)));break;case"done":e.onDone(()=>t(n&&yC(n,"done",e)));break;case"destroy":e.onDestroy(()=>t(n&&yC(n,"destroy",e)))}}function yC(e,i,n){const s=wC(e.element,e.triggerName,e.fromState,e.toState,i||e.phaseName,n.totalTime??e.totalTime,!!n.disabled),o=e._data;return null!=o&&(s._data=o),s}function wC(e,i,n,t,r="",s=0,o){return{element:e,triggerName:i,fromState:n,toState:t,phaseName:r,totalTime:s,disabled:!!o}}function En(e,i,n){let t=e.get(i);return t||e.set(i,t=n),t}function _V(e){const i=e.indexOf(":");return[e.substring(1,i),e.slice(i+1)]}const Ipe=(()=>typeof document>"u"?null:document.documentElement)();function xC(e){const i=e.parentNode||e.host||null;return i===Ipe?null:i}let xa=null,bV=!1;function vV(e,i){for(;i;){if(i===e)return!0;i=xC(i)}return!1}function yV(e,i,n){if(n)return Array.from(e.querySelectorAll(i));const t=e.querySelector(i);return t?[t]:[]}let wV=(()=>{var e;class i{validateStyleProperty(t){return function Rpe(e){xa||(xa=function Ope(){return typeof document<"u"?document.body:null}()||{},bV=!!xa.style&&"WebkitAppearance"in xa.style);let i=!0;return xa.style&&!function Ape(e){return"ebkit"==e.substring(1,6)}(e)&&(i=e in xa.style,!i&&bV&&(i="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in xa.style)),i}(t)}matchesElement(t,r){return!1}containsElement(t,r){return vV(t,r)}getParentElement(t){return xC(t)}query(t,r,s){return yV(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,o,a,l=[],c){return new Vu(s,o)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),kC=(()=>{class i{}return i.NOOP=new wV,i})();const Fpe=1e3,CC="ng-enter",w_="ng-leave",x_="ng-trigger",k_=".ng-trigger",kV="ng-animating",DC=".ng-animating";function Cs(e){if("number"==typeof e)return e;const i=e.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:SC(parseFloat(i[1]),i[2])}function SC(e,i){return"s"===i?e*Fpe:e}function C_(e,i,n){return e.hasOwnProperty("duration")?e:function Ppe(e,i,n){let r,s=0,o="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(pV()),{duration:0,delay:0,easing:""};r=SC(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=SC(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=e;if(!n){let a=!1,l=i.length;r<0&&(i.push(function Xme(){return new O(3100,!1)}()),a=!0),s<0&&(i.push(function Zme(){return new O(3101,!1)}()),a=!0),a&&i.splice(l,0,pV())}return{duration:r,delay:s,easing:o}}(e,i,n)}function Ah(e,i={}){return Object.keys(e).forEach(n=>{i[n]=e[n]}),i}function CV(e){const i=new Map;return Object.keys(e).forEach(n=>{i.set(n,e[n])}),i}function bo(e,i=new Map,n){if(n)for(let[t,r]of n)i.set(t,r);for(let[t,r]of e)i.set(t,r);return i}function Kr(e,i,n){i.forEach((t,r)=>{const s=MC(r);n&&!n.has(r)&&n.set(r,e.style[s]),e.style[s]=t})}function ka(e,i){i.forEach((n,t)=>{const r=MC(t);e.style[r]=""})}function Rh(e){return Array.isArray(e)?1==e.length?e[0]:nP(e):e}const EC=new RegExp("{{\\s*(.+?)\\s*}}","g");function SV(e){let i=[];if("string"==typeof e){let n;for(;n=EC.exec(e);)i.push(n[1]);EC.lastIndex=0}return i}function Oh(e,i,n){const t=e.toString(),r=t.replace(EC,(s,o)=>{let a=i[o];return null==a&&(n.push(function Jme(e){return new O(3003,!1)}()),a=""),a.toString()});return r==t?e:r}function D_(e){const i=[];let n=e.next();for(;!n.done;)i.push(n.value),n=e.next();return i}const Vpe=/-+([a-z0-9])/g;function MC(e){return e.replace(Vpe,(...i)=>i[1].toUpperCase())}function Mn(e,i,n){switch(i.type){case 7:return e.visitTrigger(i,n);case 0:return e.visitState(i,n);case 1:return e.visitTransition(i,n);case 2:return e.visitSequence(i,n);case 3:return e.visitGroup(i,n);case 4:return e.visitAnimate(i,n);case 5:return e.visitKeyframes(i,n);case 6:return e.visitStyle(i,n);case 8:return e.visitReference(i,n);case 9:return e.visitAnimateChild(i,n);case 10:return e.visitAnimateRef(i,n);case 11:return e.visitQuery(i,n);case 12:return e.visitStagger(i,n);default:throw function epe(e){return new O(3004,!1)}()}}function EV(e,i){return window.getComputedStyle(e)[i]}const S_="*";function Hpe(e,i){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(t=>function $pe(e,i,n){if(":"==e[0]){const l=function Upe(e,i){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,t)=>parseFloat(t)>parseFloat(n);case":decrement":return(n,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof l)return void i.push(l);e=l}const t=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return n.push(function fpe(e){return new O(3015,!1)}()),i;const r=t[1],s=t[2],o=t[3];i.push(MV(r,o));"<"==s[0]&&!(r==S_&&o==S_)&&i.push(MV(o,r))}(t,n,i)):n.push(e),n}const E_=new Set(["true","1"]),M_=new Set(["false","0"]);function MV(e,i){const n=E_.has(e)||M_.has(e),t=E_.has(i)||M_.has(i);return(r,s)=>{let o=e==S_||e==r,a=i==S_||i==s;return!o&&n&&"boolean"==typeof r&&(o=r?E_.has(e):M_.has(e)),!a&&t&&"boolean"==typeof s&&(a=s?E_.has(i):M_.has(i)),o&&a}}const Gpe=new RegExp("s*:selfs*,?","g");function TC(e,i,n,t){return new qpe(e).build(i,n,t)}class qpe{constructor(i){this._driver=i}build(i,n,t){const r=new Kpe(n);return this._resetContextStyleTimingState(r),Mn(this,Rh(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,n){let t=n.queryCount=0,r=n.depCount=0;const s=[],o=[];return"@"==i.name.charAt(0)&&n.errors.push(function ipe(){return new O(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,n))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,n);t+=l.queryCount,r+=l.depCount,o.push(l)}else n.errors.push(function npe(){return new O(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:o,queryCount:t,depCount:r,options:null}}visitState(i,n){const t=this.visitStyle(i.styles,n),r=i.options&&i.options.params||null;if(t.containsDynamicStyles){const s=new Set,o=r||{};t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{SV(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(D_(s.values()),n.errors.push(function rpe(e,i){return new O(3008,!1)}()))}return{type:0,name:i.name,style:t,options:r?{params:r}:null}}visitTransition(i,n){n.queryCount=0,n.depCount=0;const t=Mn(this,Rh(i.animation),n);return{type:1,matchers:Hpe(i.expr,n.errors),animation:t,queryCount:n.queryCount,depCount:n.depCount,options:Ca(i.options)}}visitSequence(i,n){return{type:2,steps:i.steps.map(t=>Mn(this,t,n)),options:Ca(i.options)}}visitGroup(i,n){const t=n.currentTime;let r=0;const s=i.steps.map(o=>{n.currentTime=t;const a=Mn(this,o,n);return r=Math.max(r,n.currentTime),a});return n.currentTime=r,{type:3,steps:s,options:Ca(i.options)}}visitAnimate(i,n){const t=function Zpe(e,i){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return IC(C_(e,i).duration,0,"");const n=e;if(n.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=IC(0,0,"");return s.dynamic=!0,s.strValue=n,s}const r=C_(n,i);return IC(r.duration,r.delay,r.easing)}(i.timings,n.errors);n.currentAnimateTimings=t;let r,s=i.styles?i.styles:Ee({});if(5==s.type)r=this.visitKeyframes(s,n);else{let o=i.styles,a=!1;if(!o){a=!0;const c={};t.easing&&(c.easing=t.easing),o=Ee(c)}n.currentTime+=t.duration+t.delay;const l=this.visitStyle(o,n);l.isEmptyStep=a,r=l}return n.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(i,n){const t=this._makeStyleAst(i,n);return this._validateStyleAst(t,n),t}_makeStyleAst(i,n){const t=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of r)"string"==typeof a?a===gs?t.push(a):n.errors.push(new O(3002,!1)):t.push(CV(a));let s=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:t,easing:o,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,n){const t=n.currentAnimateTimings;let r=n.currentTime,s=n.currentTime;t&&s>0&&(s-=t.duration+t.delay),i.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=n.collectedStyles.get(n.currentQuerySelector),d=c.get(l);let u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(n.errors.push(function ope(e,i,n,t,r){return new O(3010,!1)}()),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),n.options&&function Bpe(e,i,n){const t=i.params||{},r=SV(e);r.length&&r.forEach(s=>{t.hasOwnProperty(s)||n.push(function Qme(e){return new O(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(i,n){const t={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function ape(){return new O(3011,!1)}()),t;let s=0;const o=[];let a=!1,l=!1,c=0;const d=i.steps.map(b=>{const v=this._makeStyleAst(b,n);let w=null!=v.offset?v.offset:function Xpe(e){if("string"==typeof e)return null;let i=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){const t=n;i=parseFloat(t.get("offset")),t.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}return i}(v.styles),y=0;return null!=w&&(s++,y=v.offset=w),l=l||y<0||y>1,a=a||y0&&s{const w=h>0?v==f?1:h*v:o[v],y=w*m;n.currentTime=_+g.delay+y,g.duration=y,this._validateStyleAst(b,n),b.offset=w,t.styles.push(b)}),t}visitReference(i,n){return{type:8,animation:Mn(this,Rh(i.animation),n),options:Ca(i.options)}}visitAnimateChild(i,n){return n.depCount++,{type:9,options:Ca(i.options)}}visitAnimateRef(i,n){return{type:10,animation:this.visitReference(i.animation,n),options:Ca(i.options)}}visitQuery(i,n){const t=n.currentQuerySelector,r=i.options||{};n.queryCount++,n.currentQuery=i;const[s,o]=function Wpe(e){const i=!!e.split(/\s*,\s*/).find(n=>":self"==n);return i&&(e=e.replace(Gpe,"")),e=e.replace(/@\*/g,k_).replace(/@\w+/g,n=>k_+"-"+n.slice(1)).replace(/:animating/g,DC),[e,i]}(i.selector);n.currentQuerySelector=t.length?t+" "+s:s,En(n.collectedStyles,n.currentQuerySelector,new Map);const a=Mn(this,Rh(i.animation),n);return n.currentQuery=null,n.currentQuerySelector=t,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:i.selector,options:Ca(i.options)}}visitStagger(i,n){n.currentQuery||n.errors.push(function upe(){return new O(3013,!1)}());const t="full"===i.timings?{duration:0,delay:0,easing:"full"}:C_(i.timings,n.errors,!0);return{type:12,animation:Mn(this,Rh(i.animation),n),timings:t,options:null}}}class Kpe{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ca(e){return e?(e=Ah(e)).params&&(e.params=function Ype(e){return e?Ah(e):null}(e.params)):e={},e}function IC(e,i,n){return{duration:e,delay:i,easing:n}}function AC(e,i,n,t,r,s,o=null,a=!1){return{type:1,element:e,keyframes:i,preStyleProps:n,postStyleProps:t,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class T_{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,n){let t=this._map.get(i);t||this._map.set(i,t=[]),t.push(...n)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const ege=new RegExp(":enter","g"),ige=new RegExp(":leave","g");function RC(e,i,n,t,r,s=new Map,o=new Map,a,l,c=[]){return(new nge).buildKeyframes(e,i,n,t,r,s,o,a,l,c)}class nge{buildKeyframes(i,n,t,r,s,o,a,l,c,d=[]){c=c||new T_;const u=new OC(i,n,c,r,s,d,[]);u.options=l;const h=l.delay?Cs(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([o],null,u.errors,l),Mn(this,t,u);const f=u.timelines.filter(_=>_.containsAnimation());if(f.length&&a.size){let _;for(let g=f.length-1;g>=0;g--){const m=f[g];if(m.element===n){_=m;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,u.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[AC(n,[],[],[],0,h,"",!1)]}visitTrigger(i,n){}visitState(i,n){}visitTransition(i,n){}visitAnimateChild(i,n){const t=n.subInstructions.get(n.element);if(t){const r=n.createSubContext(i.options),s=n.currentTimeline.currentTime,o=this._visitSubInstructions(t,r,r.options);s!=o&&n.transformIntoNewTimeline(o)}n.previousNode=i}visitAnimateRef(i,n){const t=n.createSubContext(i.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],n,t),this.visitReference(i.animation,t),n.transformIntoNewTimeline(t.currentTimeline.currentTime),n.previousNode=i}_applyAnimationRefDelays(i,n,t){for(const r of i){const s=r?.delay;if(s){const o="number"==typeof s?s:Cs(Oh(s,r?.params??{},n.errors));t.delayNextStep(o)}}}_visitSubInstructions(i,n,t){let s=n.currentTimeline.currentTime;const o=null!=t.duration?Cs(t.duration):null,a=null!=t.delay?Cs(t.delay):null;return 0!==o&&i.forEach(l=>{const c=n.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,n){n.updateOptions(i.options,!0),Mn(this,i.animation,n),n.previousNode=i}visitSequence(i,n){const t=n.subContextCount;let r=n;const s=i.options;if(s&&(s.params||s.delay)&&(r=n.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=I_);const o=Cs(s.delay);r.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>Mn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),n.previousNode=i}visitGroup(i,n){const t=[];let r=n.currentTimeline.currentTime;const s=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(o=>{const a=n.createSubContext(i.options);s&&a.delayNextStep(s),Mn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(o=>n.currentTimeline.mergeTimelineCollectedStyles(o)),n.transformIntoNewTimeline(r),n.previousNode=i}_visitTiming(i,n){if(i.dynamic){const t=i.strValue;return C_(n.params?Oh(t,n.params,n.errors):t,n.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,n){const t=n.currentAnimateTimings=this._visitTiming(i.timings,n),r=n.currentTimeline;t.delay&&(n.incrementTime(t.delay),r.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,n):(n.incrementTime(t.duration),this.visitStyle(s,n),r.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=i}visitStyle(i,n){const t=n.currentTimeline,r=n.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const s=r&&r.easing||i.easing;i.isEmptyStep?t.applyEmptyStep(s):t.setStyles(i.styles,s,n.errors,n.options),n.previousNode=i}visitKeyframes(i,n){const t=n.currentAnimateTimings,r=n.currentTimeline.duration,s=t.duration,a=n.createSubContext().currentTimeline;a.easing=t.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(r+s),n.previousNode=i}visitQuery(i,n){const t=n.currentTimeline.currentTime,r=i.options||{},s=r.delay?Cs(r.delay):0;s&&(6===n.previousNode.type||0==t&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=I_);let o=t;const a=n.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{n.currentQueryIndex=d;const u=n.createSubContext(i.options,c);s&&u.delayNextStep(s),c===n.element&&(l=u.currentTimeline),Mn(this,i.animation,u),u.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,u.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(o),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=i}visitStagger(i,n){const t=n.parentContext,r=n.currentTimeline,s=i.timings,o=Math.abs(s.duration),a=o*(n.currentQueryTotal-1);let l=o*n.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime}const d=n.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;Mn(this,i.animation,n),n.previousNode=i,t.currentStaggerTime=r.currentTime-u+(r.startTime-t.currentTimeline.startTime)}}const I_={};class OC{constructor(i,n,t,r,s,o,a,l){this._driver=i,this.element=n,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=I_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new A_(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,n){if(!i)return;const t=i;let r=this.options;null!=t.duration&&(r.duration=Cs(t.duration)),null!=t.delay&&(r.delay=Cs(t.delay));const s=t.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!n||!o.hasOwnProperty(a))&&(o[a]=Oh(s[a],o,this.errors))})}}_copyOptions(){const i={};if(this.options){const n=this.options.params;if(n){const t=i.params={};Object.keys(n).forEach(r=>{t[r]=n[r]})}}return i}createSubContext(i=null,n,t){const r=n||this.element,s=new OC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=I_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,n,t){const r={duration:n??i.duration,delay:this.currentTimeline.currentTime+(t??0)+i.delay,easing:""},s=new rge(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,n,t,r,s,o){let a=[];if(r&&a.push(this.element),i.length>0){i=(i=i.replace(ege,"."+this._enterClassName)).replace(ige,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c)}return!s&&0==a.length&&o.push(function hpe(e){return new O(3014,!1)}()),a}}class A_{constructor(i,n,t,r){this._driver=i,this.element=n,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+i),n&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,n){return this.applyStylesToKeyframe(),new A_(this._driver,i,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,n){this._localTimelineStyles.set(i,n),this._globalTimelineStyles.set(i,n),this._styleSummary.set(i,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[n,t]of this._globalTimelineStyles)this._backFill.set(n,t||gs),this._currentKeyframe.set(n,gs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,n,t,r){n&&this._previousKeyframe.set("easing",n);const s=r&&r.params||{},o=function sge(e,i){const n=new Map;let t;return e.forEach(r=>{if("*"===r){t=t||i.keys();for(let s of t)n.set(s,gs)}else bo(r,n)}),n}(i,this._globalTimelineStyles);for(let[a,l]of o){const c=Oh(l,s,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??gs),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,n)=>{this._currentKeyframe.set(n,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,i)}))}snapshotCurrentStyles(){for(let[i,n]of this._localTimelineStyles)this._pendingStyles.set(i,n),this._updateStyle(i,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let n in this._currentKeyframe)i.push(n);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((n,t)=>{const r=this._styleSummary.get(t);(!r||n.time>r.time)&&this._updateStyle(t,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,n=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=bo(a,new Map,this._backFill);c.forEach((d,u)=>{"!"===d?i.add(u):d===gs&&n.add(u)}),t||c.set("offset",l/this.duration),r.push(c)});const s=i.size?D_(i.values()):[],o=n.size?D_(n.values()):[];if(t){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return AC(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class rge extends A_{constructor(i,n,t,r,s,o,a=!1){super(i,n,o.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:n,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){const s=[],o=t+n,a=n/o,l=bo(i[0]);l.set("offset",0),s.push(l);const c=bo(i[0]);c.set("offset",AV(a)),s.push(c);const d=i.length-1;for(let u=1;u<=d;u++){let h=bo(i[u]);const f=h.get("offset");h.set("offset",AV((n+f*t)/o)),s.push(h)}t=o,n=0,r="",i=s}return AC(this.element,i,this.preStyleProps,this.postStyleProps,t,n,r,!0)}}function AV(e,i=3){const n=Math.pow(10,i-1);return Math.round(e*n)/n}class FC{}const oge=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class age extends FC{normalizePropertyName(i,n){return MC(i)}normalizeStyleValue(i,n,t,r){let s="";const o=t.toString().trim();if(oge.has(n)&&0!==t&&"0"!==t)if("number"==typeof t)s="px";else{const a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function tpe(e,i){return new O(3005,!1)}())}return o+s}}function RV(e,i,n,t,r,s,o,a,l,c,d,u,h){return{type:0,element:e,triggerName:i,isRemovalTransition:r,fromState:n,fromStyles:s,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const NC={};class OV{constructor(i,n,t){this._triggerName=i,this.ast=n,this._stateStyles=t}match(i,n,t,r){return function lge(e,i,n,t,r){return e.some(s=>s(i,n,t,r))}(this.ast.matchers,i,n,t,r)}buildStyles(i,n,t){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(n,t):new Map}build(i,n,t,r,s,o,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||NC,_=this.buildStyles(t,a&&a.params||NC,u),g=l&&l.params||NC,m=this.buildStyles(r,g,u),b=new Set,v=new Map,w=new Map,y="void"===r,E={params:cge(g,h),delay:this.ast.options?.delay},T=d?[]:RC(i,n,this.ast.animation,s,o,_,m,E,c,u);let B=0;if(T.forEach(oe=>{B=Math.max(oe.duration+oe.delay,B)}),u.length)return RV(n,this._triggerName,t,r,y,_,m,[],[],v,w,B,u);T.forEach(oe=>{const te=oe.element,ve=En(v,te,new Set);oe.preStyleProps.forEach(Ne=>ve.add(Ne));const Ce=En(w,te,new Set);oe.postStyleProps.forEach(Ne=>Ce.add(Ne)),te!==n&&b.add(te)});const z=D_(b.values());return RV(n,this._triggerName,t,r,y,_,m,T,z,v,w,B)}}function cge(e,i){const n=Ah(i);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(n[t]=e[t]);return n}class dge{constructor(i,n,t){this.styles=i,this.defaultParams=n,this.normalizer=t}buildStyles(i,n){const t=new Map,r=Ah(this.defaultParams);return Object.keys(i).forEach(s=>{const o=i[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Oh(o,r,n));const l=this.normalizer.normalizePropertyName(a,n);o=this.normalizer.normalizeStyleValue(a,l,o,n),t.set(a,o)})}),t}}class hge{constructor(i,n,t){this.name=i,this.ast=n,this._normalizer=t,this.transitionFactories=[],this.states=new Map,n.states.forEach(r=>{this.states.set(r.name,new dge(r.style,r.options&&r.options.params||{},t))}),FV(this.states,"true","1"),FV(this.states,"false","0"),n.transitions.forEach(r=>{this.transitionFactories.push(new OV(i,r,this.states))}),this.fallbackTransition=function fge(e,i,n){return new OV(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,n,t,r){return this.transitionFactories.find(o=>o.match(i,n,t,r))||null}matchStyles(i,n,t){return this.fallbackTransition.buildStyles(i,n,t)}}function FV(e,i,n){e.has(i)?e.has(n)||e.set(n,e.get(i)):e.has(n)&&e.set(i,e.get(n))}const mge=new T_;class pge{constructor(i,n,t){this.bodyNode=i,this._driver=n,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,n){const t=[],s=TC(this._driver,n,t,[]);if(t.length)throw function vpe(e){return new O(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,n,t){const r=i.element,s=gV(this._normalizer,i.keyframes,n,t);return this._driver.animate(r,s,i.duration,i.delay,i.easing,[],!0)}create(i,n,t={}){const r=[],s=this._animations.get(i);let o;const a=new Map;if(s?(o=RC(this._driver,n,s,CC,w_,new Map,new Map,t,mge,r),o.forEach(d=>{const u=En(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function ype(){return new O(3300,!1)}()),o=[]),r.length)throw function wpe(e){return new O(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,gs))})});const c=_o(o.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const n=this._getPlayer(i);n.destroy(),this._playersById.delete(i);const t=this.players.indexOf(n);t>=0&&this.players.splice(t,1)}_getPlayer(i){const n=this._playersById.get(i);if(!n)throw function xpe(e){return new O(3301,!1)}();return n}listen(i,n,t,r){const s=wC(n,"","","");return vC(this._getPlayer(i),t,s,r),()=>{}}command(i,n,t,r){if("register"==t)return void this.register(i,r[0]);if("create"==t)return void this.create(i,n,r[0]||{});const s=this._getPlayer(i);switch(t){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i)}}}const NV="ng-animate-queued",PC="ng-animate-disabled",yge=[],PV={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wge={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},br="__ng_removed";class LC{get params(){return this.options.params}constructor(i,n=""){this.namespaceId=n;const t=i&&i.hasOwnProperty("value");if(this.value=function Dge(e){return e??null}(t?i.value:i),t){const s=Ah(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const n=i.params;if(n){const t=this.options.params;Object.keys(n).forEach(r=>{null==t[r]&&(t[r]=n[r])})}}}const Fh="void",BC=new LC(Fh);class xge{constructor(i,n,t){this.id=i,this.hostElement=n,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Wn(n,this._hostClassName)}listen(i,n,t,r){if(!this._triggers.has(n))throw function kpe(e,i){return new O(3302,!1)}();if(null==t||0==t.length)throw function Cpe(e){return new O(3303,!1)}();if(!function Sge(e){return"start"==e||"done"==e}(t))throw function Dpe(e,i){return new O(3400,!1)}();const s=En(this._elementListeners,i,[]),o={name:n,phase:t,callback:r};s.push(o);const a=En(this._engine.statesByElement,i,new Map);return a.has(n)||(Wn(i,x_),Wn(i,x_+"-"+n),a.set(n,BC)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(i,n){return!this._triggers.has(i)&&(this._triggers.set(i,n),!0)}_getTrigger(i){const n=this._triggers.get(i);if(!n)throw function Spe(e){return new O(3401,!1)}();return n}trigger(i,n,t,r=!0){const s=this._getTrigger(n),o=new VC(this.id,n,i);let a=this._engine.statesByElement.get(i);a||(Wn(i,x_),Wn(i,x_+"-"+n),this._engine.statesByElement.set(i,a=new Map));let l=a.get(n);const c=new LC(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(n,c),l||(l=BC),c.value!==Fh&&l.value===c.value){if(!function Tge(e,i){const n=Object.keys(e),t=Object.keys(i);if(n.length!=t.length)return!1;for(let r=0;r{ka(i,m),Kr(i,b)})}return}const h=En(this._engine.playersByElement,i,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,i,c.params),_=!1;if(!f){if(!r)return;f=s.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:n,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:_}),_||(Wn(i,NV),o.onStart(()=>{Oc(i,NV)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(i);if(m){let b=m.indexOf(o);b>=0&&m.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(n=>n.delete(i)),this._elementListeners.forEach((n,t)=>{this._elementListeners.set(t,n.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const n=this._engine.playersByElement.get(i);n&&(n.forEach(t=>t.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,n){const t=this._engine.driver.query(i,k_,!0);t.forEach(r=>{if(r[br])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,n,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,n,t,r){const s=this._engine.statesByElement.get(i),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const d=this.trigger(i,c,Fh,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,n,o),t&&_o(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const n=this._elementListeners.get(i),t=this._engine.statesByElement.get(i);if(n&&t){const r=new Set;n.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=t.get(o)||BC,d=new LC(Fh),u=new VC(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(i,n){const t=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,n),this.triggerLeaveAnimation(i,n,!0))return;let r=!1;if(t.totalAnimations){const s=t.players.length?t.playersByQueriedElement.get(i):[];if(s&&s.length)r=!0;else{let o=i;for(;o=o.parentNode;)if(t.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)t.markElementAsRemoved(this.id,i,!1,n);else{const s=i[br];(!s||s===PV)&&(t.afterFlush(()=>this.clearElementCache(i)),t.destroyInnerAnimations(i),t._onRemovalComplete(i,n))}}insertNode(i,n){Wn(i,this._hostClassName)}drainQueuedTransitions(i){const n=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const s=t.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==t.triggerName){const l=wC(s,t.triggerName,t.fromState.value,t.toState.value);l._data=i,vC(t.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):n.push(t)}),this._queue=[],n.sort((t,r)=>{const s=t.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(i){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class kge{_onRemovalComplete(i,n){this.onRemovalComplete(i,n)}constructor(i,n,t){this.bodyNode=i,this.driver=n,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(n=>{n.players.forEach(t=>{t.queued&&i.push(t)})}),i}createNamespace(i,n){const t=new xge(i,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(t,n):(this.newHostElements.set(n,t),this.collectEnterElement(n)),this._namespaceLookup[i]=t}_balanceNamespaceList(i,n){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(n);for(;a;){const l=r.get(a);if(l){const c=t.indexOf(l);t.splice(c+1,0,i),o=!0;break}a=this.driver.getParentElement(a)}o||t.unshift(i)}else t.push(i);return r.set(n,i),i}register(i,n){let t=this._namespaceLookup[i];return t||(t=this.createNamespace(i,n)),t}registerTrigger(i,n,t){let r=this._namespaceLookup[i];r&&r.register(n,t)&&this.totalAnimations++}destroy(i,n){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const t=this._fetchNamespace(i);this.namespacesByHostElement.delete(t.hostElement);const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1),t.destroy(n),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const n=new Set,t=this.statesByElement.get(i);if(t)for(let r of t.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&n.add(s)}return n}trigger(i,n,t,r){if(R_(n)){const s=this._fetchNamespace(i);if(s)return s.trigger(n,t,r),!0}return!1}insertNode(i,n,t,r){if(!R_(n))return;const s=n[br];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(n);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const o=this._fetchNamespace(i);o&&o.insertNode(n,t)}r&&this.collectEnterElement(n)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,n){n?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Wn(i,PC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Oc(i,PC))}removeNode(i,n,t){if(R_(n)){const r=i?this._fetchNamespace(i):null;r?r.removeNode(n,t):this.markElementAsRemoved(i,n,!1,t);const s=this.namespacesByHostElement.get(n);s&&s.id!==i&&s.removeNode(n,t)}else this._onRemovalComplete(n,t)}markElementAsRemoved(i,n,t,r,s){this.collectedLeaveElements.push(n),n[br]={namespaceId:i,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,n,t,r,s){return R_(n)?this._fetchNamespace(i).listen(n,t,r,s):()=>{}}_buildInstruction(i,n,t,r,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,t,r,i.fromState.options,i.toState.options,n,s)}destroyInnerAnimations(i){let n=this.driver.query(i,k_,!0);n.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(i,DC,!0),n.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(i){const n=this.playersByElement.get(i);n&&n.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(i){const n=this.playersByQueriedElement.get(i);n&&n.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return _o(this.players).onDone(()=>i());i()})}processLeaveNode(i){const n=i[br];if(n&&n.setForRemoval){if(i[br]=PV,n.namespaceId){this.destroyInnerAnimations(i);const t=this._fetchNamespace(n.namespaceId);t&&t.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}i.classList?.contains(PC)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(i=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],n.length?_o(n).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(i){throw function Epe(e){return new O(3402,!1)}()}_flushAnimations(i,n){const t=new T_,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(S=>{d.add(S);const F=this.driver.query(S,".ng-animate-queued",!0);for(let V=0;V{const V=CC+g++;_.set(F,V),S.forEach(q=>Wn(q,V))});const m=[],b=new Set,v=new Set;for(let S=0;Sb.add(q)):v.add(F))}const w=new Map,y=VV(h,Array.from(b));y.forEach((S,F)=>{const V=w_+g++;w.set(F,V),S.forEach(q=>Wn(q,V))}),i.push(()=>{f.forEach((S,F)=>{const V=_.get(F);S.forEach(q=>Oc(q,V))}),y.forEach((S,F)=>{const V=w.get(F);S.forEach(q=>Oc(q,V))}),m.forEach(S=>{this.processLeaveNode(S)})});const E=[],T=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(n).forEach(V=>{const q=V.player,X=V.element;if(E.push(q),this.collectedEnterElements.length){const Be=X[br];if(Be&&Be.setForMove){if(Be.previousTriggersValues&&Be.previousTriggersValues.has(V.triggerName)){const It=Be.previousTriggersValues.get(V.triggerName),Zt=this.statesByElement.get(V.element);if(Zt&&Zt.has(V.triggerName)){const Yn=Zt.get(V.triggerName);Yn.value=It,Zt.set(V.triggerName,Yn)}}return void q.destroy()}}const ge=!u||!this.driver.containsElement(u,X),ye=w.get(X),Tt=_.get(X),Ae=this._buildInstruction(V,t,Tt,ye,ge);if(Ae.errors&&Ae.errors.length)return void T.push(Ae);if(ge)return q.onStart(()=>ka(X,Ae.fromStyles)),q.onDestroy(()=>Kr(X,Ae.toStyles)),void r.push(q);if(V.isFallbackTransition)return q.onStart(()=>ka(X,Ae.fromStyles)),q.onDestroy(()=>Kr(X,Ae.toStyles)),void r.push(q);const Xt=[];Ae.timelines.forEach(Be=>{Be.stretchStartingKeyframe=!0,this.disabledNodes.has(Be.element)||Xt.push(Be)}),Ae.timelines=Xt,t.append(X,Ae.timelines),o.push({instruction:Ae,player:q,element:X}),Ae.queriedElements.forEach(Be=>En(a,Be,[]).push(q)),Ae.preStyleProps.forEach((Be,It)=>{if(Be.size){let Zt=l.get(It);Zt||l.set(It,Zt=new Set),Be.forEach((Yn,vo)=>Zt.add(vo))}}),Ae.postStyleProps.forEach((Be,It)=>{let Zt=c.get(It);Zt||c.set(It,Zt=new Set),Be.forEach((Yn,vo)=>Zt.add(vo))})});if(T.length){const S=[];T.forEach(F=>{S.push(function Mpe(e,i){return new O(3505,!1)}())}),E.forEach(F=>F.destroy()),this.reportError(S)}const B=new Map,z=new Map;o.forEach(S=>{const F=S.element;t.has(F)&&(z.set(F,F),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,B))}),r.forEach(S=>{const F=S.element;this._getPreviousPlayers(F,!1,S.namespaceId,S.triggerName,null).forEach(q=>{En(B,F,[]).push(q),q.destroy()})});const oe=m.filter(S=>zV(S,l,c)),te=new Map;BV(te,this.driver,v,c,gs).forEach(S=>{zV(S,l,c)&&oe.push(S)});const Ce=new Map;f.forEach((S,F)=>{BV(Ce,this.driver,new Set(S),l,"!")}),oe.forEach(S=>{const F=te.get(S),V=Ce.get(S);te.set(S,new Map([...F?.entries()??[],...V?.entries()??[]]))});const Ne=[],A=[],ae={};o.forEach(S=>{const{element:F,player:V,instruction:q}=S;if(t.has(F)){if(d.has(F))return V.onDestroy(()=>Kr(F,q.toStyles)),V.disabled=!0,V.overrideTotalTime(q.totalTime),void r.push(V);let X=ae;if(z.size>1){let ye=F;const Tt=[];for(;ye=ye.parentNode;){const Ae=z.get(ye);if(Ae){X=Ae;break}Tt.push(ye)}Tt.forEach(Ae=>z.set(Ae,X))}const ge=this._buildAnimation(V.namespaceId,q,B,s,Ce,te);if(V.setRealPlayer(ge),X===ae)Ne.push(V);else{const ye=this.playersByElement.get(X);ye&&ye.length&&(V.parentPlayer=_o(ye)),r.push(V)}}else ka(F,q.fromStyles),V.onDestroy(()=>Kr(F,q.toStyles)),A.push(V),d.has(F)&&r.push(V)}),A.forEach(S=>{const F=s.get(S.element);if(F&&F.length){const V=_o(F);S.setRealPlayer(V)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S!ge.destroyed);X.length?Ege(this,F,X):this.processLeaveNode(F)}return m.length=0,Ne.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();const F=this.players.indexOf(S);this.players.splice(F,1)}),S.play()}),Ne}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,n,t,r,s){let o=[];if(n){const a=this.playersByQueriedElement.get(i);a&&(o=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Fh;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(t||r)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(i,n,t){const s=n.element,o=n.isRemovalTransition?void 0:i,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const c=l.element,d=c!==s,u=En(t,c,[]);this._getPreviousPlayers(c,d,o,a,n.toState).forEach(f=>{const _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),u.push(f)})}ka(s,n.fromStyles)}_buildAnimation(i,n,t,r,s,o){const a=n.triggerName,l=n.element,c=[],d=new Set,u=new Set,h=n.timelines.map(_=>{const g=_.element;d.add(g);const m=g[br];if(m&&m.removedBeforeQueried)return new Vu(_.duration,_.delay);const b=g!==l,v=function Mge(e){const i=[];return jV(e,i),i}((t.get(g)||yge).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===g),w=s.get(g),y=o.get(g),E=gV(this._normalizer,_.keyframes,w,y),T=this._buildPlayer(_,E,v);if(_.subTimeline&&r&&u.add(g),b){const B=new VC(i,a,g);B.setRealPlayer(T),c.push(B)}return T});c.forEach(_=>{En(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function Cge(e,i,n){let t=e.get(i);if(t){if(t.length){const r=t.indexOf(n);t.splice(r,1)}0==t.length&&e.delete(i)}return t}(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>Wn(_,kV));const f=_o(h);return f.onDestroy(()=>{d.forEach(_=>Oc(_,kV)),Kr(l,n.toStyles)}),u.forEach(_=>{En(r,_,[]).push(f)}),f}_buildPlayer(i,n,t){return n.length>0?this.driver.animate(i.element,n,i.duration,i.delay,i.easing,t):new Vu(i.duration,i.delay)}}class VC{constructor(i,n,t){this.namespaceId=i,this.triggerName=n,this.element=t,this._player=new Vu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((n,t)=>{n.forEach(r=>vC(i,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const n=this._player;n.triggerCallback&&i.onStart(()=>n.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,n){En(this._queuedCallbacks,i,[]).push(n)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const n=this._player;n.triggerCallback&&n.triggerCallback(i)}}function R_(e){return e&&1===e.nodeType}function LV(e,i){const n=e.style.display;return e.style.display=i??"none",n}function BV(e,i,n,t,r){const s=[];n.forEach(l=>s.push(LV(l)));const o=[];t.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=i.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[br]=wge,o.push(c))}),e.set(c,d)});let a=0;return n.forEach(l=>LV(l,s[a++])),o}function VV(e,i){const n=new Map;if(e.forEach(a=>n.set(a,[])),0==i.length)return n;const r=new Set(i),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=n.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return i.forEach(a=>{const l=o(a);1!==l&&n.get(l).push(a)}),n}function Wn(e,i){e.classList?.add(i)}function Oc(e,i){e.classList?.remove(i)}function Ege(e,i,n){_o(n).onDone(()=>e.processLeaveNode(i))}function jV(e,i){for(let n=0;nr.add(s)):i.set(e,t),n.delete(e),!0}class O_{constructor(i,n,t){this.bodyNode=i,this._driver=n,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new kge(i,n,t),this._timelineEngine=new pge(i,n,t),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(i,n,t,r,s){const o=i+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],d=TC(this._driver,s,l,[]);if(l.length)throw function _pe(e,i){return new O(3404,!1)}();a=function uge(e,i,n){return new hge(e,i,n)}(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(n,r,a)}register(i,n){this._transitionEngine.register(i,n)}destroy(i,n){this._transitionEngine.destroy(i,n)}onInsert(i,n,t,r){this._transitionEngine.insertNode(i,n,t,r)}onRemove(i,n,t){this._transitionEngine.removeNode(i,n,t)}disableAnimations(i,n){this._transitionEngine.markElementAsDisabled(i,n)}process(i,n,t,r){if("@"==t.charAt(0)){const[s,o]=_V(t);this._timelineEngine.command(s,n,o,r)}else this._transitionEngine.trigger(i,n,t,r)}listen(i,n,t,r,s){if("@"==t.charAt(0)){const[o,a]=_V(t);return this._timelineEngine.listen(o,n,a,s)}return this._transitionEngine.listen(i,n,t,r,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let Age=(()=>{class i{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let o=i.initialStylesByElement.get(t);o||i.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Kr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kr(this._element,this._initialStyles),this._endStyles&&(Kr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(ka(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ka(this._element,this._endStyles),this._endStyles=null),Kr(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function jC(e){let i=null;return e.forEach((n,t)=>{(function Rge(e){return"display"===e||"position"===e})(t)&&(i=i||new Map,i.set(t,n))}),i}class HV{constructor(i,n,t,r){this.element=i,this.keyframes=n,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const n=[];return i.forEach(t=>{n.push(Object.fromEntries(t))}),n}_triggerWebAnimation(i,n,t){return i.animate(this._convertKeyframesToObject(n),t)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&i.set(r,this._finished?t:EV(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const n="start"===i?this._onStartFns:this._onDoneFns;n.forEach(t=>t()),n.length=0}}class Oge{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,n){return!1}containsElement(i,n){return vV(i,n)}getParentElement(i){return xC(i)}query(i,n,t){return yV(i,n,t)}computeStyle(i,n,t){return window.getComputedStyle(i)[n]}animate(i,n,t,r,s,o=[]){const l={duration:t,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c=new Map,d=o.filter(f=>f instanceof HV);(function jpe(e,i){return 0===e||0===i})(t,r)&&d.forEach(f=>{f.currentSnapshot.forEach((_,g)=>c.set(g,_))});let u=function Lpe(e){return e.length?e[0]instanceof Map?e:e.map(i=>CV(i)):[]}(n).map(f=>bo(f));u=function zpe(e,i,n){if(n.size&&i.length){let t=i[0],r=[];if(n.forEach((s,o)=>{t.has(o)||r.push(o),t.set(o,s)}),r.length)for(let s=1;so.set(a,EV(e,a)))}}return i}(i,u,c);const h=function Ige(e,i){let n=null,t=null;return Array.isArray(i)&&i.length?(n=jC(i[0]),i.length>1&&(t=jC(i[i.length-1]))):i instanceof Map&&(n=jC(i)),n||t?new Age(e,n,t):null}(i,u);return new HV(i,u,l,h)}}let Fge=(()=>{var e;class i extends iP{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:In.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?nP(t):t;return $V(this._renderer,null,r,"register",[s]),new Nge(r,this._renderer)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dd),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class Nge extends Ree{constructor(i,n){super(),this._id=i,this._renderer=n}create(i,n){return new Pge(this._id,i,n||{},this._renderer)}}class Pge{constructor(i,n,t,r){this.id=i,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(i,n){return this._renderer.listen(this.element,`@@${this.id}:${i}`,n)}_command(i,...n){return $V(this._renderer,this.element,this.id,i,n)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function $V(e,i,n,t,r){return e.setProperty(i,`@@${n}:${t}`,r)}const UV="@.disabled";let Lge=(()=>{var e;class i{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,a)=>{const l=a?.parentNode(o);l&&a.removeChild(l,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new GV("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const a=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,t);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(a,l,t,u.name,u)};return r.data.animation.forEach(c),new Bge(this,l,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&tr(s)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,l]=o;a(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dd),x(O_),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class GV{constructor(i,n,t,r){this.namespaceId=i,this.delegate=n,this.engine=t,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,n){return this.delegate.createElement(i,n)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,n){this.delegate.appendChild(i,n),this.engine.onInsert(this.namespaceId,n,i,!1)}insertBefore(i,n,t,r=!0){this.delegate.insertBefore(i,n,t),this.engine.onInsert(this.namespaceId,n,i,r)}removeChild(i,n,t){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(i,n){return this.delegate.selectRootElement(i,n)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,n,t,r){this.delegate.setAttribute(i,n,t,r)}removeAttribute(i,n,t){this.delegate.removeAttribute(i,n,t)}addClass(i,n){this.delegate.addClass(i,n)}removeClass(i,n){this.delegate.removeClass(i,n)}setStyle(i,n,t,r){this.delegate.setStyle(i,n,t,r)}removeStyle(i,n,t){this.delegate.removeStyle(i,n,t)}setProperty(i,n,t){"@"==n.charAt(0)&&n==UV?this.disableAnimations(i,!!t):this.delegate.setProperty(i,n,t)}setValue(i,n){this.delegate.setValue(i,n)}listen(i,n,t){return this.delegate.listen(i,n,t)}disableAnimations(i,n){this.engine.disableAnimations(i,n)}}class Bge extends GV{constructor(i,n,t,r,s){super(n,t,r,s),this.factory=i,this.namespaceId=n}setProperty(i,n,t){"@"==n.charAt(0)?"."==n.charAt(1)&&n==UV?this.disableAnimations(i,t=void 0===t||!!t):this.engine.process(this.namespaceId,i,n.slice(1),t):this.delegate.setProperty(i,n,t)}listen(i,n,t){if("@"==n.charAt(0)){const r=function Vge(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i);let s=n.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function jge(e){const i=e.indexOf(".");return[e.substring(0,i),e.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,t,a)})}return this.delegate.listen(i,n,t)}}let zge=(()=>{var e;class i extends O_{constructor(t,r,s,o){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(kC),x(FC),x(Nr))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const qV=[{provide:iP,useClass:Fge},{provide:FC,useFactory:function Hge(){return new age}},{provide:O_,useClass:zge},{provide:dd,useFactory:function $ge(e,i,n){return new Lge(e,i,n)},deps:[o0,O_,ce]}],zC=[{provide:kC,useFactory:()=>new Oge},{provide:ti,useValue:"BrowserAnimations"},...qV],WV=[{provide:kC,useClass:wV},{provide:ti,useValue:"NoopAnimations"},...qV];let YV=(()=>{var e;class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?WV:zC}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:zC,imports:[EA]}),i})();const Uge=[YV,e2,ck,vx,tV,f2,mV,m3,hP,wh,a2,UB,NB,p2,W3,aV,xx,u2,j3,L3,lV,o3,vP];let Gge=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[{provide:Qk,useValue:{separatorKeyCodes:[13,188,32]}},{provide:wx,useValue:{duration:2500}}],imports:[Uge,YV,e2,ck,vx,tV,f2,mV,m3,hP,wh,a2,UB,NB,p2,W3,aV,xx,u2,j3,L3,lV,o3,vP]}),i})();var qge=Ss(973);const HC="@ngrx/store/init",Yge=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Kge=(e,i)=>"string"==typeof i&&Yge.test(i)?new Date(i):i,Xge=(e,i)=>i;function KV(e,i){return i.reduce((n,t)=>{if("string"==typeof t||"number"==typeof t){const r=e?.[t];void 0!==r&&(n[t]=r)}else for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=KV(e[r],t[r]));return n},{})}const e_e=(e,i,n,t,r,s)=>{if(s)try{if(!0!==s(e))return}catch(o){if(o instanceof TypeError)return;throw o}i.forEach(o=>{let l,c,d,a=e[o];if("object"==typeof o){let u=Object.keys(o)[0];if(a=e[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let h;o[u].reduce?h=o[u]:o[u].filter&&(h=o[u].filter),h&&(a=KV(a,h)),o[u].encrypt&&o[u].decrypt?"function"==typeof o[u].encrypt&&(d=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&void 0!==n)try{d&&(a=d("string"==typeof a?a:JSON.stringify(a,l,c))),n.setItem(t(o),"string"==typeof a?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&r&&void 0!==n)try{n.removeItem(t(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},t_e=(e,i,n)=>((n.type===HC||"@ngrx/store/update-reducers"===n.type)&&i&&(e=qge(e,i,{arrayMerge:(s,o,a)=>o})),e),XV={settings:tu({language:void 0,sidebar:!0,theme:"dark-theme",selectedFeedback:"relevant"},gi(gx,(e,{language:i})=>({...e,language:i})),gi(_x,(e,{expanded:i})=>({...e,sidebar:i})),gi(wP,e=>({...e,sidebar:!e.sidebar})),gi(xP,e=>({...e,theme:"dark-theme"===e.theme?"light-theme":"dark-theme"})),gi(kP,(e,{feedback:i})=>({...e,selectedFeedback:i}))),assignments:tu({},gi(CP,(e,i)=>function n_e(e,i){const n=e[i.id],t=Sc(e);return t[i.id]={...i,...n},t}(e,i)),gi(rte,(e,{key:i})=>function r_e(e,i){const n=Sc(e);return delete n[i],n}(e,i)),gi(DP,(e,{key:i})=>function s_e(e,i){const n=e[i];if(void 0===n)return e;const t=Sc(e),r=Sc(n);return r.completedOn=Date.now(),t[i]=r,t}(e,i)),gi(ste,e=>({}))),graphSettings:tu({enableSimulation:!0,showLabels:!0},gi(ig,e=>({...e,enableSimulation:!0})),gi(SP,e=>({...e,enableSimulation:!e.enableSimulation})),gi(EP,e=>({...e,showLabels:!e.showLabels}))),graphStore:tu({},gi(bx,(e,i)=>M3(e,i)),gi(MP,(e,{key:i})=>T3(e,i)),gi(ote,e=>({}))),graphCache:tu({[Jk.name]:Jk},gi(TP,(e,i)=>M3(e,i)),gi(ate,(e,{key:i})=>T3(e,i)),gi(lte,e=>({})))},o_e=["graphCache"],a_e=[(e={keys:Object.keys(XV).filter(e=>!o_e.includes(e)),rehydrate:!0,removeOnUndefined:!0},i=>{(void 0===e.storage&&!e.checkStorageAvailability||e.checkStorageAvailability&&typeof window<"u")&&(e.storage=localStorage||window.localStorage),void 0===e.storageKeySerializer&&(e.storageKeySerializer=s=>s),void 0===e.restoreDates&&(e.restoreDates=!0);let n=e.mergeReducer;(void 0===n||"function"!=typeof n)&&(n=t_e);const t=(e=>e.map(i=>{let n=i;if("object"==typeof i&&(n=Object.keys(i)[0]),"string"!=typeof n)throw new TypeError("localStorageSync Unknown Parameter Type: Expected type of string, got "+typeof n);return i}))(e.keys),r=e.rehydrate?((e,i,n,t)=>e.reduce((r,s)=>{let l,c,o=s,a=t?Kge:Xge;if("object"==typeof o&&(o=Object.keys(o)[0],"function"==typeof s[o]?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?"function"==typeof s[o].encrypt&&"function"==typeof s[o].decrypt?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),void 0!==i){let d=i.getItem(n(o));if(d){c&&(d=c(d));const u=new RegExp("{|\\[");let h=d;return("null"===d||"true"===d||"false"===d||u.test(d.charAt(0)))&&(h=JSON.parse(d,a)),Object.assign({},r,{[o]:l?l(h):h})}}return r},{}))(t,e.storage,e.storageKeySerializer,e.restoreDates):void 0;return function(s,o){let a;return a=o.type!==HC||s?{...s}:i(s,o),a=n(a,r,o),a=i(a,o),o.type!==HC&&e_e(a,t,e.storage,e.storageKeySerializer,e.removeOnUndefined,e.syncCondition),a}})];var e;let l_e=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e,bootstrap:[Fme]}),e.\u0275inj=he({imports:[nme,EA,nW,Ln,PY,EW,TX.forRoot({level:Ht.INFO,serverLogLevel:Ht.OFF,serverLoggingUrl:void 0,disableConsoleLogging:!1,enableSourceMaps:!1,timestampFormat:void 0,colorScheme:JO,httpResponseType:"json"}),Gge,LY,rK.register("ngsw-worker.js",{enabled:true}),pX.forRoot(XV,{metaReducers:a_e}),KO.forRoot({})]}),i})();W9().bootstrapModule(l_e).catch(e=>console.error(e))},973:Kn=>{"use strict";var Fc=function(He){return function Ss(Re){return!!Re&&"object"==typeof Re}(He)&&!function Ue(Re){var He=Object.prototype.toString.call(Re);return"[object RegExp]"===He||"[object Date]"===He||function un(Re){return Re.$$typeof===Es}(Re)}(He)},Es="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ms(Re,He){return!1!==He.clone&&He.isMergeableObject(Re)?Is(function Qe(Re){return Array.isArray(Re)?[]:{}}(Re),Re,He):Re}function Ph(Re,He,lt){return Re.concat(He).map(function(hn){return Ms(hn,lt)})}function wo(Re){return Object.keys(Re).concat(function Xr(Re){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Re).filter(function(He){return Object.propertyIsEnumerable.call(Re,He)}):[]}(Re))}function Nc(Re,He){try{return He in Re}catch{return!1}}function Is(Re,He,lt){(lt=lt||{}).arrayMerge=lt.arrayMerge||Ph,lt.isMergeableObject=lt.isMergeableObject||Fc,lt.cloneUnlessOtherwiseSpecified=Ms;var hn=Array.isArray(He);return hn===Array.isArray(Re)?hn?lt.arrayMerge(Re,He,lt):function L_(Re,He,lt){var hn={};return lt.isMergeableObject(Re)&&wo(Re).forEach(function(Qt){hn[Qt]=Ms(Re[Qt],lt)}),wo(He).forEach(function(Qt){(function Ts(Re,He){return Nc(Re,He)&&!(Object.hasOwnProperty.call(Re,He)&&Object.propertyIsEnumerable.call(Re,He))})(Re,Qt)||(hn[Qt]=Nc(Re,Qt)&<.isMergeableObject(He[Qt])?function Lh(Re,He){if(!He.customMerge)return Is;var lt=He.customMerge(Re);return"function"==typeof lt?lt:Is}(Qt,lt)(Re[Qt],He[Qt],lt):Ms(He[Qt],lt))}),hn}(Re,He,lt):Ms(He,lt)}Is.all=function(He,lt){if(!Array.isArray(He))throw new Error("first argument should be an array");return He.reduce(function(hn,Qt){return Is(hn,Qt,lt)},{})},Kn.exports=Is},574:(Kn,Fc,Ss)=>{var Ue={"./de.json":634,"./en.json":502};function vr(un){var Qe=Es(un);return Ss(Qe)}function Es(un){if(!Ss.o(Ue,un)){var Qe=new Error("Cannot find module '"+un+"'");throw Qe.code="MODULE_NOT_FOUND",Qe}return Ue[un]}vr.keys=function(){return Object.keys(Ue)},vr.resolve=Es,Kn.exports=vr,vr.id=574},634:Kn=>{"use strict";Kn.exports=JSON.parse('{"actions":{"apply":"Anwenden","back-to-overview":"Zur \xdcbersicht","cancel":"Abbrechen","check":"Pr\xfcfen","collapse":"Einklappen","delete":"L\xf6schen","expand":"Erweitern","export":"Exportieren","filter-causes":"Relevantes filtern","open":"\xd6ffnen","save":"Speichern","show-reason":"Grund anzeigen","submit":"Absenden","title":"Aktionen","undo":"R\xfcckg\xe4ngig machen","update":"Aktualisieren"},"api":{"and":{"both":"Beide Konjunkte gelten","left":"Erstes Konjunkt gilt nicht","neither":"Kein Konjunkt gilt","right":"Zweites Konjunkt gilt nicht"},"bi-implication":{"invalid":"Antezedens gilt genau dann nicht, wenn Konsequenz gilt","negative":{"invalid":"Antezedens gilt genau dann, wenn Konsequenz gilt","left":"Konsequenz gilt nicht, aber Antezedens gilt","right":"Antezedens gilt nicht, aber Konsequenz gilt","valid":"Antezedens und Konsequenz gelten nicht"},"positive":{"invalid":"Antezedens gilt genau dann nicht, wenn Konsequenz nicht gilt","left":"Konsequens gilt, aber Antezedens gilt nicht","right":"Antezedens gilt, aber Konsequenz gilt nicht","valid":"Antezedens und Konsequenz gelten"},"valid":"Antezedens gilt genau dann, wenn Konsequenz gilt"},"constant":{"false":"Konstante ist falsch","true":"Konstante ist wahr"},"error":{"bound-variable-reuse":"In der Formel wird das Symbol \\"{{symbol}}\\" als gebundene Variable definiert, im Graphen jedoch als Funktionssymbol verwendet.","different-arities":"Das Symbol \\"{{symbol}}\\" wird innerhalb des Graphens mit verschiedenen Arit\xe4ten definiert.","different-arities-formula":"Die Arit\xe4t des Symbols \\"{{symbol}}\\" unterscheidet sich zwischen Graph und Formel.","different-function-values":"Die un\xe4re Funktion \\"{{function}}\\" hat zwei Funktionswerte f\xfcr mindestens einen Knoten. Eine Funktion muss rechtseindeutig sein.","duplicate-constant":"Die Konstante \\"{{constant}}\\" kann nur einem Knoten zugewiesen werden.","empty-graph":"Der Graph muss mindestens einen Knoten enthalten.","function-totality":"Die un\xe4re Funktion \\"{{function}}\\" muss total sein.","invalid-constant":"Die Konstante \\"{{constant}}\\" ist ung\xfcltig. Konstantensymbole d\xfcrfen nicht leer sein und m\xfcssen mit einem Kleinbuchstaben beginnen.","invalid-function":"Die Funktion \\"{{function}}\\" ist ung\xfcltig. Funktionssymbole d\xfcrfen nicht leer sein und m\xfcssen mit einem Kleinbuchstaben beginnen.","invalid-relation":"Die Relation \\"{{relation}}\\" ist ung\xfcltig. Relationssymbole d\xfcrfen nicht leer sein und m\xfcssen mit einem Gro\xdfbuchstaben beginnen.","missing-node":"Der Knoten \\"{{node}}\\" fehlt im Graphen.","request-too-big":"Die Berechnung ist zu gro\xdf f\xfcr den Server. Probiere eine niedrigere Feedback-Einstellung.","response-too-big":"Die Antwort ist zu gro\xdf f\xfcr den Server. Probiere eine niedrigere Feedback-Einstellung.","undefined-constant":"Die Konstante \\"{{constant}}\\" wird in der Formel verwendet, ist jedoch im Graphen nicht definiert.","unknown":"Ein unbekannter Fehler ist aufgetreten."},"exists":{"invalid":"Unterformel gilt f\xfcr keine Variablenbelegung","valid":"Unterformel gilt f\xfcr mindestens eine Variablenbelegung"},"forall":{"invalid":"Unterformel gilt nicht f\xfcr alle Variablenbelegungen","valid":"Unterformel gilt f\xfcr alle Variablenbelegungen"},"implication":{"invalid":"Antezedens gilt, aber Konsequenz gilt nicht","left":"Antezedens gilt nicht","right":"Konsequenz gilt"},"invalid":"Der Graph ist kein Modell der Formel","not":{"invalid":"Unterformel gilt","valid":"Unterformel gilt nicht"},"or":{"both":"Beide Disjunkte gelten","left":"Erstes Disjunkt gilt","neither":"Kein Disjunkt gilt","right":"Zweites Disjunkt gilt"},"relation":{"binary":{"invalid":"({{firstResult}}, {{secondResult}}) \u2209 {{relation}}","valid":"({{firstResult}}, {{secondResult}}) \u2208 {{relation}}"},"equality":{"invalid":"{{firstTerm}} = {{firstResult}} \u2260 {{secondResult}} = {{secondTerm}}","valid":"{{firstTerm}} = {{firstResult}} = {{secondTerm}}"},"unary":{"invalid":"{{node}} \u2209 {{relation}}","valid":"{{node}} \u2208 {{relation}}"}},"valid":"Der Graph ist ein Modell der Formel"},"app":{"title":"Apollo"},"assignments":{"completed-on":"Abgeschlossen am {{date}}","hint":"Erstelle zwei Graphen A und B, so dass A \u22a7 \u03c6 und B \u22ad \u03c6 gelten.","not-completed":"Nicht abgeschlossen","solution":{"condition-not-met":"Bedingung \\"{{condition}}\\" nicht erf\xfcllt","correct":"Die L\xf6sung ist korrekt","not-correct":"Die L\xf6sung ist nicht korrekt"},"title":"Aufgaben"},"dashboard":{"github-repository":"GitHub Repository"},"editor":{"link":{"none-selected":"Keine Kante ausgew\xe4hlt.","title":"Kante"},"node":{"none-selected":"Kein Knoten ausgew\xe4hlt.","title":"Knoten"},"symbols":{"new-constant":"Neue Konstante","new-function":"Neue Funktion","new-relation":"Neue Relation"}},"export":{"copy":"Graph in die Zwischenablage kopieren","copy-failure":"Graph konnte nicht in die Zwischenablage kopiert werden.","copy-success":"Graph wurde in die Zwischenablage kopiert.","download":"Graph als Datei herunterladen","json":"JSON","yaml":"YAML"},"feedback":{"full":{"description":"Vollst\xe4ndige Evaluation, inklusive redundanter \xdcberpr\xfcfungen. Funktioniert m\xf6glicherweise nicht bei gro\xdfen Graphen und komplexen Formeln.","name":"Vollst\xe4ndig"},"minimal":{"description":"Partielle Evaluation, exklusive redundanter \xdcberpr\xfcfungen. Nur das Ergebnis.","name":"Minimal"},"relevant":{"description":"Partielle Evaluation, exklusive redundanter \xdcberpr\xfcfungen. Empfohlen.","name":"Relevant"},"title":"Feedback"},"fol":{"constant":{"plural":"Konstanten"},"formula":"Formel","function":{"plural":"Funktionen"},"relation":{"plural":"Relationen"}},"graph":{"controls":{"graph":"Graph\\n Ausw\xe4hlen - Rechte Maustaste / Lange Ber\xfchrung\\n Knoten erstellen - Doppelkick / Plus-Button\\n Kanten erstellen - Klick / Ber\xfchren und ziehen","view":"Ansicht\\n Knoten bewegen - Mittlere Maustaste\\n Ansicht bewegen - Linke Maustaste / Multi-Touch"},"create-node":"Knoten erzeugen","labels":"Beschriftungen","reset-graph":"Anordnung zur\xfccksetzen","save-graph":"Graph speichern","simulation":"Automatische Anordnung","title":"Graph"},"home":{"example-graph":"Beispielgraph","quick-access":"Schnellzugriff","saved-graphs":"Gespeicherte Graphen","title":"Home"},"import":{"file":"Datei importieren","file-error":"Datei konnte nicht importiert werden.","format-hint":"JSON oder YAML","text":"Graph einf\xfcgen oder bearbeiten","title":"Graph importieren"},"lang":{"de":"Deutsch","en":"Englisch"},"misc":{"description":"Beschreibung","false":"Falsch","graph-not-found":"Dieser Graph existiert nicht.","last-edit":"Letzte \xc4nderung","name":"Name","or":"oder","semantics":"Semantik","syntax":"Syntax","true":"Wahr","update-available":"Update verf\xfcgbar"},"model-checker":{"minimize-result":"Ergebnis minimieren","minimize-tooltip":"Bei Aktivierung werden nur notwendige \xdcberpr\xfcfungen durchgef\xfchrt. Notwendig f\xfcr umfangreiche Graphen und komplexe Formeln.","title":"Modellpr\xfcfer"},"result-tree":{"expand-error":"Baum konnte nicht vollst\xe4ndig erweiter werden, da der Datensatz zu gro\xdf ist."},"snackbar":{"graph-deleted":"Graph \\"{{name}}\\" wurde gel\xf6scht."},"validation":{"constant-pattern-error":"Konstantennamen m\xfcssen mit einem Kleinbuchstaben beginnen und d\xfcrfen keine Sonderzeichen enthalten.","edge":{"invalid-functions":"Ung\xfcltiger Graph: Kante von \\"{{source}}\\" zu \\"{{target}}\\" hat ung\xfcltige Funktion(en) (Funktionen m\xfcssen mit einem Kleinbuchstaben beginnen).","invalid-relations":"Ung\xfcltiger Graph: Kante von \\"{{source}}\\" zu \\"{{target}}\\" hat ung\xfcltige Relation(en) (Relationen m\xfcssen mit einem Gro\xdfbuchstaben beginnen).","missing":"Ung\xfcltiger Graph: Kante von \\"{{source}}\\" zu \\"{{target}}\\" fehlt im Graphen."},"function-pattern-error":"Funktionsnamen m\xfcssen mit einem Kleinbuchstaben beginnen und d\xfcrfen keine Sonderzeichen enthalten.","node":{"duplicate":"Ung\xfcltiger Graph: Doppelter Knoten \\"{{node}}\\".","invalid-constants":"Ung\xfcltiger Graph: Knoten \\"{{node}}\\" hat ung\xfcltige Konstante(n) (Konstanten m\xfcssen mit einem Kleinbuchstaben beginnen).","invalid-relations":"Ung\xfcltiger Graph: Knoten \\"{{node}}\\" hat ung\xfcltige Relation(en) (Relationen m\xfcssen mit einem Gro\xdfbuchstaben beginnen).","missing":"Ung\xfcltiger Graph: Knoten \\"{{node}}\\" fehlt im Graphen."},"parse-error":"Eingabe entspricht nicht dem Graph-Schema.","relation-pattern-error":"Relationsnamen m\xfcssen mit einem Gro\xdfbuchstaben beginnen und d\xfcrfen keine Sonderzeichen enthalten."}}')},502:Kn=>{"use strict";Kn.exports=JSON.parse('{"actions":{"apply":"Apply","back-to-overview":"To Overview","cancel":"Cancel","check":"Check","collapse":"Collapse","delete":"Delete","expand":"Expand","export":"Export","filter-causes":"Filter Relevant","open":"Open","save":"Save","show-reason":"Show Reason","submit":"Submit","title":"Actions","undo":"Undo","update":"Update"},"api":{"and":{"both":"Both conjuncts hold","left":"First conjunct does not hold","neither":"Neither conjunct holds","right":"Second conjunct does not hold"},"bi-implication":{"invalid":"Antecedent does not hold if and only if consequent holds","negative":{"invalid":"Antecedent holds if and only if consequent holds","left":"Consequent does not hold, but antecedent holds","right":"Antecedent does not hold, but consequent holds","valid":"Antecedent and consequent do not hold"},"positive":{"invalid":"Antecedent does not hold if and only if consequent does not hold","left":"Consequent holds, but antecedent does not hold","right":"Antecedent holds, but consequent does not hold","valid":"Antecedent and consequent hold"},"valid":"Antecedent holds if and only if consequent holds"},"constant":{"false":"Constant is false","true":"Constant is true"},"error":{"bound-variable-reuse":"In the formula, the symbol \\"{{symbol}}\\" is defined as a bound variable, but used as a function symbol in the graph.","different-arities":"The symbol \\"{{symbol}}\\" is defined with different arities within the graph.","different-arities-formula":"The arity of the symbol \\"{{symbol}}\\" differs between graph and formula.","different-function-values":"The unary function \\"{{function}}\\" has two function values for at least one node. A function must be right-unique.","duplicate-constant":"The constant \\"{{constant}}\\" can only be assigned to one node.","empty-graph":"The graph must contain at least one node.","function-totality":"The unary function \\"{{function}}\\" must be total.","invalid-constant":"The constant \\"{{constant}}\\" is invalid. Constant symbols cannot be empty and must start with a lowercase letter.","invalid-function":"The function \\"{{function}}\\" is invalid. Function symbols cannot be empty and must start with a lowercase letter.","invalid-relation":"The relation \\"{{relation}}\\" is invalid. Relation symbols cannot be empty and must start with an uppercase letter.","missing-node":"The node \\"{{node}}\\" is missing from the graph.","request-too-big":"The computation is too big for the server. Try a lower feedback setting.","response-too-big":"The result is too big for the server. Try a lower feedback setting.","undefined-constant":"The constant \\"{{constant}}\\" appears in the formula, but is not defined in the graph.","unknown":"An unknown error occurred."},"exists":{"invalid":"Subformula holds for no variable assignments","valid":"Subformula holds for some variable assignments"},"forall":{"invalid":"Subformula does not hold for some variable assignments","valid":"Subformula holds for all variable assignments"},"implication":{"invalid":"Antecedent holds, but consequent does not hold","left":"Antecedent does not hold","right":"Consequent holds"},"invalid":"The graph is not a model of the formula","not":{"invalid":"Subformula holds","valid":"Subformula does not hold"},"or":{"both":"Both disjuncts hold","left":"First disjunct holds","neither":"Neither disjunct holds","right":"Second disjunct holds"},"relation":{"binary":{"invalid":"({{firstResult}}, {{secondResult}}) \u2209 {{relation}}","valid":"({{firstResult}}, {{secondResult}}) \u2208 {{relation}}"},"equality":{"invalid":"{{firstTerm}} = {{firstResult}} \u2260 {{secondResult}} = {{secondTerm}}","valid":"{{firstTerm}} = {{firstResult}} = {{secondTerm}}"},"unary":{"invalid":"{{node}} \u2209 {{relation}}","valid":"{{node}} \u2208 {{relation}}"}},"valid":"The graph is a model of the formula"},"app":{"title":"Apollo"},"assignments":{"completed-on":"Completed on {{date}}","hint":"Create two models A and B, so that A \u22a7 \u03c6 and B \u22ad \u03c6 hold.","not-completed":"Not completed","solution":{"condition-not-met":"Condition \\"{{condition}}\\" not met","correct":"The solution is correct","not-correct":"The solution is not correct"},"title":"Assignments"},"dashboard":{"github-repository":"GitHub Repository"},"editor":{"link":{"none-selected":"No Edge selected.","title":"Edge"},"node":{"none-selected":"No Node selected.","title":"Node"},"symbols":{"new-constant":"New Constant","new-function":"New Function","new-relation":"New Relation"}},"export":{"copy":"Copy Graph to clipboard","copy-failure":"Could not copy Graph to clipboard.","copy-success":"Graph has been copied to the clipboard.","download":"Download Graph as file","json":"JSON","yaml":"YAML"},"feedback":{"full":{"description":"Full evaluation, including redundant checks. May not work for large graphs and complex formulas.","name":"Full"},"minimal":{"description":"Partial evaluation, excluding redundant checks. Only the result.","name":"Minimal"},"relevant":{"description":"Partial evaluation, excluding redundant checks. Recommended.","name":"Relevant"},"title":"Feedback"},"fol":{"constant":{"plural":"Constants"},"formula":"Formula","function":{"plural":"Functions"},"relation":{"plural":"Relations"}},"graph":{"controls":{"graph":"Graph\\n Selecting - Right mouse button / Long touch\\n Creating nodes - Double-click / Plus-button\\n Creating edges - Click / Touch and drag","view":"View\\n Moving nodes - Middle mouse button\\n Move view - Left mouse button / Multi-touch"},"create-node":"Create Node","labels":"Labels","reset-graph":"Reset Layout","save-graph":"Save Graph","simulation":"Automatic Layout","title":"Graph"},"home":{"example-graph":"Example Graph","quick-access":"Quick Access","saved-graphs":"Saved Graphs","title":"Home"},"import":{"file":"Import File","file-error":"Could not import File.","format-hint":"JSON or YAML","text":"Paste or edit Graph","title":"Import Graph"},"lang":{"de":"German","en":"English"},"misc":{"description":"Description","false":"False","graph-not-found":"This graph does not exist.","last-edit":"Last Edit","name":"Name","or":"or","semantics":"Semantics","syntax":"Syntax","true":"True","update-available":"Update available"},"model-checker":{"minimize-result":"Minimize Result","minimize-tooltip":"When enabled, only necessary checks are evaluated. Required for big graphs and complex formulas.","title":"Model Checker"},"result-tree":{"expand-error":"Unable to expand tree completely, because the dataset is too big."},"snackbar":{"graph-deleted":"Graph \\"{{name}}\\" has been deleted."},"validation":{"constant-pattern-error":"Names of constants must start with a lowercase letter and cannot contain special characters.","edge":{"invalid-functions":"Invalid graph: Edge from \\"{{source}}\\" to \\"{{target}}\\" has invalid function(s) (Functions must begin with a lowercase letter).","invalid-relations":"Invalid graph: Edge from \\"{{source}}\\" to \\"{{target}}\\" has invalid relation(s) (Relations must begin with an uppercase letter).","missing":"Invalid graph: Edge from \\"{{source}}\\" to \\"{{target}}\\" is missing from the graph."},"function-pattern-error":"Names of functions must start with a lowercase letter and cannot contain special characters.","node":{"duplicate":"Invalid graph: Duplicate Node \\"{{node}}\\".","invalid-constants":"Invalid graph: Node \\"{{node}}\\" has invalid constant(s) (Constants must begin with a lowercase letter).","invalid-relations":"Invalid graph: Node \\"{{node}}\\" has invalid relation(s) (Relations must begin with an uppercase letter).","missing":"Invalid graph: Node \\"{{node}}\\" is missing from the graph."},"parse-error":"Input does not match the graph schema.","relation-pattern-error":"Names of relations must start with an uppercase letter and cannot contain special characters."}}')}},Kn=>{Kn(Kn.s=553)}]); \ No newline at end of file diff --git a/main.841f90527c80b6ac.js b/main.841f90527c80b6ac.js deleted file mode 100644 index 51f2c7a..0000000 --- a/main.841f90527c80b6ac.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapollo_frontend=self.webpackChunkapollo_frontend||[]).push([[179],{553:(Kn,Fc,Ss)=>{"use strict";function Ue(e){return"function"==typeof e}function vr(e){const n=e(t=>{Error.call(t),t.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Es=vr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function un(e,i){if(e){const n=e.indexOf(i);0<=n&&e.splice(n,1)}}class Qe{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const s of n)s.remove(this);else n.remove(this);const{initialTeardown:t}=this;if(Ue(t))try{t()}catch(s){i=s instanceof Es?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Lh(s)}catch(o){i=i??[],o instanceof Es?i=[...i,...o.errors]:i.push(o)}}if(i)throw new Es(i)}}add(i){var n;if(i&&i!==this)if(this.closed)Lh(i);else{if(i instanceof Qe){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(i)}}_hasParent(i){const{_parentage:n}=this;return n===i||Array.isArray(n)&&n.includes(i)}_addParent(i){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(i),n):n?[n,i]:i}_removeParent(i){const{_parentage:n}=this;n===i?this._parentage=null:Array.isArray(n)&&un(n,i)}remove(i){const{_finalizers:n}=this;n&&un(n,i),i instanceof Qe&&i._removeParent(this)}}Qe.EMPTY=(()=>{const e=new Qe;return e.closed=!0,e})();const Ms=Qe.EMPTY;function Ph(e){return e instanceof Qe||e&&"closed"in e&&Ue(e.remove)&&Ue(e.add)&&Ue(e.unsubscribe)}function Lh(e){Ue(e)?e():e.unsubscribe()}const Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wo={setTimeout(e,i,...n){const{delegate:t}=wo;return t?.setTimeout?t.setTimeout(e,i,...n):setTimeout(e,i,...n)},clearTimeout(e){const{delegate:i}=wo;return(i?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Nc(e){wo.setTimeout(()=>{const{onUnhandledError:i}=Xr;if(!i)throw e;i(e)})}function Ts(){}const L_=Re("C",void 0,void 0);function Re(e,i,n){return{kind:e,value:i,error:n}}let He=null;function lt(e){if(Xr.useDeprecatedSynchronousErrorHandling){const i=!He;if(i&&(He={errorThrown:!1,error:null}),e(),i){const{errorThrown:n,error:t}=He;if(He=null,n)throw t}}else e()}class Qt extends Qe{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Ph(i)&&i.add(this)):this.destination=JV}static create(i,n,t){return new Da(i,n,t)}next(i){this.isStopped?z_(function B_(e){return Re("N",e,void 0)}(i),this):this._next(i)}error(i){this.isStopped?z_(function Is(e){return Re("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?z_(L_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const V_=Function.prototype.bind;function j_(e,i){return V_.call(e,i)}class ZV{constructor(i){this.partialObserver=i}next(i){const{partialObserver:n}=this;if(n.next)try{n.next(i)}catch(t){Bh(t)}}error(i){const{partialObserver:n}=this;if(n.error)try{n.error(i)}catch(t){Bh(t)}else Bh(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(n){Bh(n)}}}class Da extends Qt{constructor(i,n,t){let r;if(super(),Ue(i)||!i)r={next:i??void 0,error:n??void 0,complete:t??void 0};else{let s;this&&Xr.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&j_(i.next,s),error:i.error&&j_(i.error,s),complete:i.complete&&j_(i.complete,s)}):r=i}this.destination=new ZV(r)}}function Bh(e){Xr.useDeprecatedSynchronousErrorHandling?function hn(e){Xr.useDeprecatedSynchronousErrorHandling&&He&&(He.errorThrown=!0,He.error=e)}(e):Nc(e)}function z_(e,i){const{onStoppedNotification:n}=Xr;n&&wo.setTimeout(()=>n(e,i))}const JV={closed:!0,next:Ts,error:function QV(e){throw e},complete:Ts},H_="function"==typeof Symbol&&Symbol.observable||"@@observable";function yr(e){return e}function GC(e){return 0===e.length?yr:1===e.length?e[0]:function(n){return e.reduce((t,r)=>r(t),n)}}let et=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const t=new e;return t.source=this,t.operator=n,t}subscribe(n,t,r){const s=function n4(e){return e&&e instanceof Qt||function t4(e){return e&&Ue(e.next)&&Ue(e.error)&&Ue(e.complete)}(e)&&Ph(e)}(n)?n:new Da(n,t,r);return lt(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(t){n.error(t)}}forEach(n,t){return new(t=qC(t))((r,s)=>{const o=new Da({next:a=>{try{n(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)}[H_](){return this}pipe(...n){return GC(n)(this)}toPromise(n){return new(n=qC(n))((t,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>t(s))})}}return e.create=i=>new e(i),e})();function qC(e){var i;return null!==(i=e??Xr.Promise)&&void 0!==i?i:Promise}const r4=vr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let $=(()=>{class e extends et{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const t=new WC(this,this);return t.operator=n,t}_throwIfClosed(){if(this.closed)throw new r4}next(n){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const t of this.currentObservers)t.next(n)}})}error(n){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:t}=this;for(;t.length;)t.shift().error(n)}})}complete(){lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:t,isStopped:r,observers:s}=this;return t||r?Ms:(this.currentObservers=null,s.push(n),new Qe(()=>{this.currentObservers=null,un(s,n)}))}_checkFinalizedStatuses(n){const{hasError:t,thrownError:r,isStopped:s}=this;t?n.error(r):s&&n.complete()}asObservable(){const n=new et;return n.source=this,n}}return e.create=(i,n)=>new WC(i,n),e})();class WC extends ${constructor(i,n){super(),this.destination=i,this.source=n}next(i){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===t||t.call(n,i)}error(i){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===t||t.call(n,i)}complete(){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===n||n.call(i)}_subscribe(i){var n,t;return null!==(t=null===(n=this.source)||void 0===n?void 0:n.subscribe(i))&&void 0!==t?t:Ms}}class Et extends ${constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const n=super._subscribe(i);return!n.closed&&i.next(this._value),n}getValue(){const{hasError:i,thrownError:n,_value:t}=this;if(i)throw n;return this._throwIfClosed(),t}next(i){super.next(this._value=i)}}function YC(e){return Ue(e?.lift)}function wt(e){return i=>{if(YC(i))return i.lift(function(n){try{return e(n,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}function ft(e,i,n,t,r){return new s4(e,i,n,t,r)}class s4 extends Qt{constructor(i,n,t,r,s,o){super(i),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=n?function(a){try{n(a)}catch(l){i.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=t?function(){try{t()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function se(e,i){return wt((n,t)=>{let r=0;n.subscribe(ft(t,s=>{t.next(e.call(i,s,r++))}))})}function As(e){return this instanceof As?(this.v=e,this):new As(e)}function QC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=e[Symbol.asyncIterator];return i?i.call(e):(e=function q_(e){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&e[i],t=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},t("next"),t("throw"),t("return"),n[Symbol.asyncIterator]=function(){return this},n);function t(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const W_=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function JC(e){return Ue(e?.then)}function eD(e){return Ue(e[H_])}function tD(e){return Symbol.asyncIterator&&Ue(e?.[Symbol.asyncIterator])}function iD(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 nD=function E4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rD(e){return Ue(e?.[nD])}function sD(e){return function ZC(e,i,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=n.apply(e,i||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){t[h]&&(r[h]=function(f){return new Promise(function(_,g){s.push([h,f,_,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof As?Promise.resolve(h.value.v).then(c,d):u(s[0][2],h)}(t[h](f))}catch(_){u(s[0][3],_)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:t,done:r}=yield As(n.read());if(r)return yield As(void 0);yield yield As(t)}}finally{n.releaseLock()}})}function oD(e){return Ue(e?.getReader)}function si(e){if(e instanceof et)return e;if(null!=e){if(eD(e))return function M4(e){return new et(i=>{const n=e[H_]();if(Ue(n.subscribe))return n.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(W_(e))return function T4(e){return new et(i=>{for(let n=0;n{e.then(n=>{i.closed||(i.next(n),i.complete())},n=>i.error(n)).then(null,Nc)})}(e);if(tD(e))return aD(e);if(rD(e))return function A4(e){return new et(i=>{for(const n of e)if(i.next(n),i.closed)return;i.complete()})}(e);if(oD(e))return function R4(e){return aD(sD(e))}(e)}throw iD(e)}function aD(e){return new et(i=>{(function O4(e,i){var n,t,r,s;return function KC(e,i,n,t){return new(n||(n=Promise))(function(s,o){function a(d){try{c(t.next(d))}catch(u){o(u)}}function l(d){try{c(t.throw(d))}catch(u){o(u)}}function c(d){d.done?s(d.value):function r(s){return s instanceof n?s:new n(function(o){o(s)})}(d.value).then(a,l)}c((t=t.apply(e,i||[])).next())})}(this,void 0,void 0,function*(){try{for(n=QC(e);!(t=yield n.next()).done;)if(i.next(t.value),i.closed)return}catch(o){r={error:o}}finally{try{t&&!t.done&&(s=n.return)&&(yield s.call(n))}finally{if(r)throw r.error}}i.complete()})})(e,i).catch(n=>i.error(n))})}function Zr(e,i,n,t=0,r=!1){const s=i.schedule(function(){n(),r?e.add(this.schedule(null,t)):this.unsubscribe()},t);if(e.add(s),!r)return s}function Bt(e,i,n=1/0){return Ue(i)?Bt((t,r)=>se((s,o)=>i(t,s,r,o))(si(e(t,r))),n):("number"==typeof i&&(n=i),wt((t,r)=>function F4(e,i,n,t,r,s,o,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&i.complete()},f=g=>c{s&&i.next(g),c++;let m=!1;si(n(g,d++)).subscribe(ft(i,b=>{r?.(b),s?f(b):i.next(b)},()=>{m=!0},void 0,()=>{if(m)try{for(c--;l.length&&c_(b)):_(b)}h()}catch(b){i.error(b)}}))};return e.subscribe(ft(i,f,()=>{u=!0,h()})),()=>{a?.()}}(t,r,e,n)))}function Sa(e=1/0){return Bt(yr,e)}const Xn=new et(e=>e.complete());function lD(e){return e&&Ue(e.schedule)}function Y_(e){return e[e.length-1]}function K_(e){return Ue(Y_(e))?e.pop():void 0}function Pc(e){return lD(Y_(e))?e.pop():void 0}function X_(e,i=0){return wt((n,t)=>{n.subscribe(ft(t,r=>Zr(t,e,()=>t.next(r),i),()=>Zr(t,e,()=>t.complete(),i),r=>Zr(t,e,()=>t.error(r),i)))})}function cD(e,i=0){return wt((n,t)=>{t.add(e.schedule(()=>n.subscribe(t),i))})}function dD(e,i){if(!e)throw new Error("Iterable cannot be null");return new et(n=>{Zr(n,i,()=>{const t=e[Symbol.asyncIterator]();Zr(n,i,()=>{t.next().then(r=>{r.done?n.complete():n.next(r.value)})},0,!0)})})}function Jt(e,i){return i?function H4(e,i){if(null!=e){if(eD(e))return function L4(e,i){return si(e).pipe(cD(i),X_(i))}(e,i);if(W_(e))return function V4(e,i){return new et(n=>{let t=0;return i.schedule(function(){t===e.length?n.complete():(n.next(e[t++]),n.closed||this.schedule())})})}(e,i);if(JC(e))return function B4(e,i){return si(e).pipe(cD(i),X_(i))}(e,i);if(tD(e))return dD(e,i);if(rD(e))return function j4(e,i){return new et(n=>{let t;return Zr(n,i,()=>{t=e[nD](),Zr(n,i,()=>{let r,s;try{({value:r,done:s}=t.next())}catch(o){return void n.error(o)}s?n.complete():n.next(r)},0,!0)}),()=>Ue(t?.return)&&t.return()})}(e,i);if(oD(e))return function z4(e,i){return dD(sD(e),i)}(e,i)}throw iD(e)}(e,i):si(e)}function Ft(...e){const i=Pc(e),n=function P4(e,i){return"number"==typeof Y_(e)?e.pop():i}(e,1/0),t=e;return t.length?1===t.length?si(t[0]):Sa(n)(Jt(t,i)):Xn}function ee(...e){return Jt(e,Pc(e))}function Vh(e={}){const{connector:i=(()=>new $),resetOnError:n=!0,resetOnComplete:t=!0,resetOnRefCountZero:r=!0}=e;return s=>{let o,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),o=l=void 0,d=u=!1},_=()=>{const g=o;f(),g?.unsubscribe()};return wt((g,m)=>{c++,!u&&!d&&h();const b=l=l??i();m.add(()=>{c--,0===c&&!u&&!d&&(a=Z_(_,r))}),b.subscribe(m),!o&&c>0&&(o=new Da({next:v=>b.next(v),error:v=>{u=!0,h(),a=Z_(f,n,v),b.error(v)},complete:()=>{d=!0,h(),a=Z_(f,t),b.complete()}}),si(g).subscribe(o))})(s)}}function Z_(e,i,...n){if(!0===i)return void e();if(!1===i)return;const t=new Da({next:()=>{t.unsubscribe(),e()}});return si(i(...n)).subscribe(t)}function ei(e,i){return wt((n,t)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&t.complete();n.subscribe(ft(t,l=>{r?.unsubscribe();let c=0;const d=s++;si(e(l,d)).subscribe(r=ft(t,u=>t.next(i?i(l,u,d,c++):u),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function xo(e,i=yr){return e=e??$4,wt((n,t)=>{let r,s=!0;n.subscribe(ft(t,o=>{const a=i(o);(s||!e(r,a))&&(s=!1,r=a,t.next(o))}))})}function $4(e,i){return e===i}function mt(e){for(let i in e)if(e[i]===mt)return i;throw Error("Could not find renamed property on target object.")}function jh(e,i){for(const n in i)i.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=i[n])}function oi(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oi).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const i=e.toString();if(null==i)return""+i;const n=i.indexOf("\n");return-1===n?i:i.substring(0,n)}function Q_(e,i){return null==e||""===e?null===i?"":i:null==i||""===i?e:e+" "+i}const U4=mt({__forward_ref__:mt});function Ye(e){return e.__forward_ref__=Ye,e.toString=function(){return oi(this())},e}function Oe(e){return J_(e)?e():e}function J_(e){return"function"==typeof e&&e.hasOwnProperty(U4)&&e.__forward_ref__===Ye}function eb(e){return e&&!!e.\u0275providers}const uD="https://g.co/ng/security#xss";class O extends Error{constructor(i,n){super(function zh(e,i){return`NG0${Math.abs(e)}${i?": "+i:""}`}(i,n)),this.code=i}}function Pe(e){return"string"==typeof e?e:null==e?"":String(e)}function tb(e,i){throw new O(-201,!1)}function Tn(e,i){null==e&&function Te(e,i,n,t){throw new Error(`ASSERTION ERROR: ${e}`+(null==t?"":` [Expected=> ${n} ${t} ${i} <=Actual]`))}(i,e,null,"!=")}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function he(e){return{providers:e.providers||[],imports:e.imports||[]}}function Hh(e){return hD(e,Uh)||hD(e,fD)}function hD(e,i){return e.hasOwnProperty(i)?e[i]:null}function $h(e){return e&&(e.hasOwnProperty(ib)||e.hasOwnProperty(Q4))?e[ib]:null}const Uh=mt({\u0275prov:mt}),ib=mt({\u0275inj:mt}),fD=mt({ngInjectableDef:mt}),Q4=mt({ngInjectorDef:mt});var We=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(We||{});let nb;function mD(){return nb}function Zi(e){const i=nb;return nb=e,i}function pD(e,i,n){const t=Hh(e);return t&&"root"==t.providedIn?void 0===t.value?t.value=t.factory():t.value:n&We.Optional?null:void 0!==i?i:void tb(oi(e))}const vt=globalThis,Lc={},lb="__NG_DI_FLAG__",Gh="ngTempTokenPath",tj=/\n/gm,_D="__source";let Ea;function Rs(e){const i=Ea;return Ea=e,i}function rj(e,i=We.Default){if(void 0===Ea)throw new O(-203,!1);return null===Ea?pD(e,void 0,i):Ea.get(e,i&We.Optional?null:void 0,i)}function x(e,i=We.Default){return(mD()||rj)(Oe(e),i)}function G(e,i=We.Default){return x(e,qh(i))}function qh(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cb(e){const i=[];for(let n=0;ni){o=s-1;break}}}for(;ss?"":r[u+1].toLowerCase();const f=8&t?h:null;if(f&&-1!==wD(f,c,0)||2&t&&c!==h){if(Zn(t))return!1;o=!0}}}}else{if(!o&&!Zn(t)&&!Zn(l))return!1;if(o&&Zn(l))continue;o=!1,t=l|1&t}}return Zn(t)||o}function Zn(e){return 0==(1&e)}function uj(e,i,n,t){if(null===i)return-1;let r=0;if(t||!n){let s=!1;for(;r-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&t?r+="."+o:4&t&&(r+=" "+o);else""!==r&&!Zn(o)&&(i+=MD(s,r),r=""),t=o,s=s||!Zn(t);n++}return""!==r&&(i+=MD(s,r)),i}function ie(e){return Qr(()=>{const i=ID(e),n={...i,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||In.Emulated,styles:e.styles||at,_:null,schemas:e.schemas||null,tView:null,id:""};AD(n);const t=e.dependencies;return n.directiveDefs=Kh(t,!1),n.pipeDefs=Kh(t,!0),n.id=function Cj(e){let i=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of n)i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(n),n})}function yj(e){return nt(e)||vi(e)}function wj(e){return null!==e}function me(e){return Qr(()=>({type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function TD(e,i){if(null==e)return wr;const n={};for(const t in e)if(e.hasOwnProperty(t)){let r=e[t],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=t,i&&(i[r]=s)}return n}function I(e){return Qr(()=>{const i=ID(e);return AD(i),i})}function Li(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 nt(e){return e[Yh]||null}function vi(e){return e[db]||null}function Bi(e){return e[ub]||null}function mn(e,i){const n=e[vD]||null;if(!n&&!0===i)throw new Error(`Type ${oi(e)} does not have '\u0275mod' property.`);return n}function ID(e){const i={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:e.inputs||wr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:TD(e.inputs,i),outputs:TD(e.outputs)}}function AD(e){e.features?.forEach(i=>i(e))}function Kh(e,i){if(!e)return null;const n=i?Bi:yj;return()=>("function"==typeof e?e():e).map(t=>n(t)).filter(wj)}const Gt=0,le=1,Ve=2,At=3,Qn=4,zc=5,Ei=6,Ta=7,qt=8,Os=9,Ia=10,Le=11,Hc=12,RD=13,Aa=14,Wt=15,$c=16,Ra=17,xr=18,Uc=19,OD=20,Fs=21,es=22,Xh=23,Zh=24,Ke=25,fb=1,FD=2,kr=7,Oa=9,yi=11;function Qi(e){return Array.isArray(e)&&"object"==typeof e[fb]}function Ji(e){return Array.isArray(e)&&!0===e[fb]}function mb(e){return 0!=(4&e.flags)}function Co(e){return e.componentOffset>-1}function Jh(e){return 1==(1&e.flags)}function Jn(e){return!!e.template}function pb(e){return 0!=(512&e[Ve])}function Do(e,i){return e.hasOwnProperty(Jr)?e[Jr]:null}const LD=Symbol("SIGNAL");function gb(e,i,n={}){return i[LD]=e,Object.assign(i,n)}function BD(e,i){return(null===e||"object"!=typeof e)&&Object.is(e,i)}let Ij=vt.WeakRef??class Tj{constructor(i){this.ref=i}deref(){return this.ref}},Rj=0,Cr=null,ef=!1;function hi(e){const i=Cr;return Cr=e,i}class tf{constructor(){this.id=Rj++,this.ref=function Aj(e){return new Ij(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[i,n]of this.producers){const t=n.producerNode.deref();if(null!=t&&n.atTrackingVersion===this.trackingVersion){if(t.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(i),t?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const i=ef;ef=!0;try{for(const[n,t]of this.consumers){const r=t.consumerNode.deref();null!=r&&r.trackingVersion===t.atTrackingVersion?r.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),r?.producers.delete(this.id))}}finally{ef=i}}producerAccessed(){if(ef)throw new Error("");if(null===Cr)return;let i=Cr.producers.get(this.id);void 0===i?(i={consumerNode:Cr.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Cr.trackingVersion},Cr.producers.set(this.id,i),this.consumers.set(Cr.id,i)):(i.seenValueVersion=this.valueVersion,i.atTrackingVersion=Cr.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Cr?.consumerAllowSignalWrites}producerPollStatus(i){return this.valueVersion!==i||(this.onProducerUpdateValueVersion(),this.valueVersion!==i)}}function VD(e,i){const n=new Oj(e,i?.equal??BD);return gb(n,n.signal.bind(n))}const _b=Symbol("UNSET"),bb=Symbol("COMPUTING"),nf=Symbol("ERRORED");class Oj extends tf{constructor(i,n){super(),this.computation=i,this.equal=n,this.value=_b,this.error=null,this.stale=!0,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){this.stale||(this.stale=!0,this.producerMayHaveChanged())}onProducerUpdateValueVersion(){if(this.stale){if(this.value!==_b&&this.value!==bb&&!this.consumerPollProducersForChange())return void(this.stale=!1);this.recomputeValue()}}recomputeValue(){if(this.value===bb)throw new Error("Detected cycle in computations.");const i=this.value;this.value=bb,this.trackingVersion++;const n=hi(this);let t;try{t=this.computation()}catch(r){t=nf,this.error=r}finally{hi(n)}this.stale=!1,i!==_b&&i!==nf&&t!==nf&&this.equal(i,t)?this.value=i:(this.value=t,this.valueVersion++)}signal(){if(this.onProducerUpdateValueVersion(),this.producerAccessed(),this.value===nf)throw this.error;return this.value}}let jD=function Fj(){throw new Error};function vb(){jD()}class Pj extends tf{constructor(i,n){super(),this.value=i,this.equal=n,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){}onProducerUpdateValueVersion(){}set(i){this.producerUpdatesAllowed||vb(),this.equal(this.value,i)||(this.value=i,this.valueVersion++,this.producerMayHaveChanged())}update(i){this.producerUpdatesAllowed||vb(),this.set(i(this.value))}mutate(i){this.producerUpdatesAllowed||vb(),i(this.value),this.valueVersion++,this.producerMayHaveChanged()}asReadonly(){return void 0===this.readonlySignal&&(this.readonlySignal=gb(this,()=>this.signal())),this.readonlySignal}signal(){return this.producerAccessed(),this.value}}function HD(e){const i=hi(null);try{return e()}finally{hi(i)}}const $D=()=>{};class Lj extends tf{constructor(i,n,t){super(),this.watch=i,this.schedule=n,this.dirty=!1,this.cleanupFn=$D,this.registerOnCleanup=r=>{this.cleanupFn=r},this.consumerAllowSignalWrites=t}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const i=hi(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=$D,this.watch(this.registerOnCleanup)}finally{hi(i)}}cleanup(){this.cleanupFn()}}class Bj{constructor(i,n,t){this.previousValue=i,this.currentValue=n,this.firstChange=t}isFirstChange(){return this.firstChange}}function bt(){return UD}function UD(e){return e.type.prototype.ngOnChanges&&(e.setInput=jj),Vj}function Vj(){const e=qD(this),i=e?.current;if(i){const n=e.previous;if(n===wr)e.previous=i;else for(let t in i)n[t]=i[t];e.current=null,this.ngOnChanges(i)}}function jj(e,i,n,t){const r=this.declaredInputs[n],s=qD(e)||function zj(e,i){return e[GD]=i}(e,{previous:wr,current:null}),o=s.current||(s.current={}),a=s.previous,l=a[r];o[r]=new Bj(l&&l.currentValue,i,a===wr),e[t]=i}bt.ngInherit=!0;const GD="__ngSimpleChanges__";function qD(e){return e[GD]||null}const Dr=function(e,i,n){};function xt(e){for(;Array.isArray(e);)e=e[Gt];return e}function sf(e,i){return xt(i[e])}function en(e,i){return xt(i[e.index])}function KD(e,i){return e.data[i]}function Fa(e,i){return e[i]}function pn(e,i){const n=i[e];return Qi(n)?n:n[Gt]}function Ns(e,i){return null==i?null:e[i]}function XD(e){e[Ra]=0}function Yj(e){1024&e[Ve]||(e[Ve]|=1024,QD(e,1))}function ZD(e){1024&e[Ve]&&(e[Ve]&=-1025,QD(e,-1))}function QD(e,i){let n=e[At];if(null===n)return;n[zc]+=i;let t=n;for(n=n[At];null!==n&&(1===i&&1===t[zc]||-1===i&&0===t[zc]);)n[zc]+=i,t=n,n=n[At]}function JD(e,i){if(256==(256&e[Ve]))throw new O(911,!1);null===e[Fs]&&(e[Fs]=[]),e[Fs].push(i)}const Ie={lFrame:d1(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function t1(){return Ie.bindingsEnabled}function Na(){return null!==Ie.skipHydrationRootTNode}function j(){return Ie.lFrame.lView}function rt(){return Ie.lFrame.tView}function tt(e){return Ie.lFrame.contextLView=e,e[qt]}function it(e){return Ie.lFrame.contextLView=null,e}function wi(){let e=n1();for(;null!==e&&64===e.type;)e=e.parent;return e}function n1(){return Ie.lFrame.currentTNode}function Sr(e,i){const n=Ie.lFrame;n.currentTNode=e,n.isParent=i}function wb(){return Ie.lFrame.isParent}function xb(){Ie.lFrame.isParent=!1}function Vi(){const e=Ie.lFrame;let i=e.bindingRootIndex;return-1===i&&(i=e.bindingRootIndex=e.tView.bindingStartIndex),i}function Pa(){return Ie.lFrame.bindingIndex++}function is(e){const i=Ie.lFrame,n=i.bindingIndex;return i.bindingIndex=i.bindingIndex+e,n}function oz(e,i){const n=Ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,kb(i)}function kb(e){Ie.lFrame.currentDirectiveIndex=e}function Cb(e){const i=Ie.lFrame.currentDirectiveIndex;return-1===i?null:e[i]}function a1(){return Ie.lFrame.currentQueryIndex}function Db(e){Ie.lFrame.currentQueryIndex=e}function lz(e){const i=e[le];return 2===i.type?i.declTNode:1===i.type?e[Ei]:null}function l1(e,i,n){if(n&We.SkipSelf){let r=i,s=e;for(;!(r=r.parent,null!==r||n&We.Host||(r=lz(s),null===r||(s=s[Aa],10&r.type))););if(null===r)return!1;i=r,e=s}const t=Ie.lFrame=c1();return t.currentTNode=i,t.lView=e,!0}function Sb(e){const i=c1(),n=e[le];Ie.lFrame=i,i.currentTNode=n.firstChild,i.lView=e,i.tView=n,i.contextLView=e,i.bindingIndex=n.bindingStartIndex,i.inI18n=!1}function c1(){const e=Ie.lFrame,i=null===e?null:e.child;return null===i?d1(e):i}function d1(e){const i={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=i),i}function u1(){const e=Ie.lFrame;return Ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const h1=u1;function Eb(){const e=u1();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 ji(){return Ie.lFrame.selectedIndex}function So(e){Ie.lFrame.selectedIndex=e}function Nt(){const e=Ie.lFrame;return KD(e.tView,e.selectedIndex)}function Eo(){Ie.lFrame.currentNamespace="svg"}function La(){!function hz(){Ie.lFrame.currentNamespace=null}()}let m1=!0;function af(){return m1}function Ps(e){m1=e}function lf(e,i){for(let n=i.directiveStart,t=i.directiveEnd;n=t)break}else i[l]<0&&(e[Ra]+=65536),(a>13>16&&(3&e[Ve])===i&&(e[Ve]+=8192,g1(a,s)):g1(a,s)}const Ba=-1;class Wc{constructor(i,n,t){this.factory=i,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=t}}function Ib(e){return e!==Ba}function Yc(e){return 32767&e}function Kc(e,i){let n=function bz(e){return e>>16}(e),t=i;for(;n>0;)t=t[Aa],n--;return t}let Ab=!0;function uf(e){const i=Ab;return Ab=e,i}const _1=255,b1=5;let vz=0;const Er={};function hf(e,i){const n=v1(e,i);if(-1!==n)return n;const t=i[le];t.firstCreatePass&&(e.injectorIndex=i.length,Rb(t.data,e),Rb(i,null),Rb(t.blueprint,null));const r=ff(e,i),s=e.injectorIndex;if(Ib(r)){const o=Yc(r),a=Kc(r,i),l=a[le].data;for(let c=0;c<8;c++)i[s+c]=a[o+c]|l[o+c]}return i[s+8]=r,s}function Rb(e,i){e.push(0,0,0,0,0,0,0,0,i)}function v1(e,i){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===i[e.injectorIndex+8]?-1:e.injectorIndex}function ff(e,i){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,t=null,r=i;for(;null!==r;){if(t=S1(r),null===t)return Ba;if(n++,r=r[Aa],-1!==t.injectorIndex)return t.injectorIndex|n<<16}return Ba}function Ob(e,i,n){!function yz(e,i,n){let t;"string"==typeof n?t=n.charCodeAt(0)||0:n.hasOwnProperty(Vc)&&(t=n[Vc]),null==t&&(t=n[Vc]=vz++);const r=t&_1;i.data[e+(r>>b1)]|=1<=0?i&_1:Dz:i}(n);if("function"==typeof s){if(!l1(i,e,t))return t&We.Host?y1(r,0,t):w1(i,n,t,r);try{let o;if(o=s(t),null!=o||t&We.Optional)return o;tb()}finally{h1()}}else if("number"==typeof s){let o=null,a=v1(e,i),l=Ba,c=t&We.Host?i[Wt][Ei]:null;for((-1===a||t&We.SkipSelf)&&(l=-1===a?ff(e,i):i[a+8],l!==Ba&&D1(t,!1)?(o=i[le],a=Yc(l),i=Kc(l,i)):a=-1);-1!==a;){const d=i[le];if(C1(s,a,d.data)){const u=xz(a,i,n,o,t,c);if(u!==Er)return u}l=i[a+8],l!==Ba&&D1(t,i[le].data[a+8]===c)&&C1(s,a,i)?(o=d,a=Yc(l),i=Kc(l,i)):a=-1}}return r}function xz(e,i,n,t,r,s){const o=i[le],a=o.data[e+8],d=mf(a,o,n,null==t?Co(a)&&Ab:t!=o&&0!=(3&a.type),r&We.Host&&s===a);return null!==d?Mo(i,o,d,a):Er}function mf(e,i,n,t,r){const s=e.providerIndexes,o=i.data,a=1048575&s,l=e.directiveStart,d=s>>20,h=r?a+d:e.directiveEnd;for(let f=t?a:a+d;f=l&&_.type===n)return f}if(r){const f=o[l];if(f&&Jn(f)&&f.type===n)return l}return null}function Mo(e,i,n,t){let r=e[n];const s=i.data;if(function pz(e){return e instanceof Wc}(r)){const o=r;o.resolving&&function G4(e,i){const n=i?`. Dependency path: ${i.join(" > ")} > ${e}`:"";throw new O(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ht(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Pe(e)}(s[n]));const a=uf(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Zi(o.injectImpl):null;l1(e,t,We.Default);try{r=e[n]=o.factory(void 0,s,e,t),i.firstCreatePass&&n>=t.directiveStart&&function fz(e,i,n){const{ngOnChanges:t,ngOnInit:r,ngDoCheck:s}=i.type.prototype;if(t){const o=UD(i);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}r&&(n.preOrderHooks??=[]).push(0-e,r),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],i)}finally{null!==c&&Zi(c),uf(a),o.resolving=!1,h1()}}return r}function C1(e,i,n){return!!(n[i+(e>>b1)]&1<{const i=e.prototype.constructor,n=i[Jr]||Fb(i),t=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==t;){const s=r[Jr]||Fb(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Fb(e){return J_(e)?()=>{const i=Fb(Oe(e));return i&&i()}:Do(e)}function S1(e){const i=e[le],n=i.type;return 2===n?i.declTNode:1===n?e[Ei]:null}function Mi(e){return function wz(e,i){if("class"===i)return e.classes;if("style"===i)return e.styles;const n=e.attrs;if(n){const t=n.length;let r=0;for(;r{const t=function Nb(e){return function(...n){if(e){const t=e(...n);for(const r in t)this[r]=t[r]}}}(i);function r(...s){if(this instanceof r)return t.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,d){const u=l.hasOwnProperty(ja)?l[ja]:Object.defineProperty(l,ja,{value:[]})[ja];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(o),l}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function Ua(e,i){e.forEach(n=>Array.isArray(n)?Ua(n,i):i(n))}function M1(e,i,n){i>=e.length?e.push(n):e.splice(i,0,n)}function pf(e,i){return i>=e.length-1?e.pop():e.splice(i,1)[0]}function Qc(e,i){const n=[];for(let t=0;t=0?e[1|t]=n:(t=~t,function Oz(e,i,n,t){let r=e.length;if(r==i)e.push(n,t);else if(1===r)e.push(t,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>i;)e[r]=e[r-2],r--;e[i]=n,e[i+1]=t}}(e,t,i,n)),t}function Pb(e,i){const n=Ga(e,i);if(n>=0)return e[1|n]}function Ga(e,i){return function T1(e,i,n){let t=0,r=e.length>>n;for(;r!==t;){const s=t+(r-t>>1),o=e[s<i?r=s:t=s+1}return~(r<({token:e})),-1),Ls=Bc(Ha("Optional"),8),qa=Bc(Ha("SkipSelf"),4);function wf(e){return 128==(128&e.flags)}var Bs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Bs||{});const Jz=/^>|^->||--!>|)/,t5="\u200b$1\u200b";const Hb=new Map;let n5=0;const Ub="__ngContext__";function Ti(e,i){Qi(i)?(e[Ub]=i[Uc],function s5(e){Hb.set(e[Uc],e)}(i)):e[Ub]=i}let Gb;function qb(e,i){return Gb(e,i)}function td(e){const i=e[At];return Ji(i)?i[At]:i}function K1(e){return Z1(e[Hc])}function X1(e){return Z1(e[Qn])}function Z1(e){for(;null!==e&&!Ji(e);)e=e[Qn];return e}function Ka(e,i,n,t,r){if(null!=t){let s,o=!1;Ji(t)?s=t:Qi(t)&&(o=!0,t=t[Gt]);const a=xt(t);0===e&&null!==n?null==r?tS(i,n,a):To(i,n,a,r||null,!0):1===e&&null!==n?To(i,n,a,r||null,!0):2===e?function Mf(e,i,n){const t=Sf(e,i);t&&function C5(e,i,n,t){e.removeChild(i,n,t)}(e,t,i,n)}(i,a,o):3===e&&i.destroyNode(a),null!=s&&function E5(e,i,n,t,r){const s=n[kr];s!==xt(n)&&Ka(i,e,t,s,r);for(let a=yi;ai.replace(e5,t5))}(i))}function Cf(e,i,n){return e.createElement(i,n)}function J1(e,i){const n=e[Oa],t=n.indexOf(i);ZD(i),n.splice(t,1)}function Df(e,i){if(e.length<=yi)return;const n=yi+i,t=e[n];if(t){const r=t[$c];null!==r&&r!==e&&J1(r,t),i>0&&(e[n-1][Qn]=t[Qn]);const s=pf(e,yi+i);!function g5(e,i){nd(e,i,i[Le],2,null,null),i[Gt]=null,i[Ei]=null}(t[le],t);const o=s[xr];null!==o&&o.detachView(s[le]),t[At]=null,t[Qn]=null,t[Ve]&=-129}return t}function Yb(e,i){if(!(256&i[Ve])){const n=i[Le];i[Xh]?.destroy(),i[Zh]?.destroy(),n.destroyNode&&nd(e,i,n,3,null,null),function v5(e){let i=e[Hc];if(!i)return Kb(e[le],e);for(;i;){let n=null;if(Qi(i))n=i[Hc];else{const t=i[yi];t&&(n=t)}if(!n){for(;i&&!i[Qn]&&i!==e;)Qi(i)&&Kb(i[le],i),i=i[At];null===i&&(i=e),Qi(i)&&Kb(i[le],i),n=i&&i[Qn]}i=n}}(i)}}function Kb(e,i){if(!(256&i[Ve])){i[Ve]&=-129,i[Ve]|=256,function k5(e,i){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let t=0;t=0?t[o]():t[-o].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);null!==t&&(i[Ta]=null);const r=i[Fs];if(null!==r){i[Fs]=null;for(let s=0;s-1){const{encapsulation:s}=e.data[t.directiveStart+r];if(s===In.None||s===In.Emulated)return null}return en(t,n)}}(e,i.parent,n)}function To(e,i,n,t,r){e.insertBefore(i,n,t,r)}function tS(e,i,n){e.appendChild(i,n)}function iS(e,i,n,t,r){null!==t?To(e,i,n,t,r):tS(e,i,n)}function Sf(e,i){return e.parentNode(i)}function nS(e,i,n){return sS(e,i,n)}let Zb,Tf,tv,If,sS=function rS(e,i,n){return 40&e.type?en(e,n):null};function Ef(e,i,n,t){const r=Xb(e,t,i),s=i[Le],a=nS(t.parent||i[Ei],t,i);if(null!=r)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Tf}()?.createHTML(e)||e}function mS(e){return function iv(){if(void 0===If&&(If=null,vt.trustedTypes))try{If=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return If}()?.createScriptURL(e)||e}class Io{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${uD})`}}class F5 extends Io{getTypeName(){return"HTML"}}class N5 extends Io{getTypeName(){return"Style"}}class P5 extends Io{getTypeName(){return"Script"}}class L5 extends Io{getTypeName(){return"URL"}}class B5 extends Io{getTypeName(){return"ResourceURL"}}function _n(e){return e instanceof Io?e.changingThisBreaksApplicationSecurity:e}function Mr(e,i){const n=function V5(e){return e instanceof Io&&e.getTypeName()||null}(e);if(null!=n&&n!==i){if("ResourceURL"===n&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${n} (see ${uD})`)}return n===i}class G5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const n=(new window.DOMParser).parseFromString(Xa(i),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(i):(n.removeChild(n.firstChild),n)}catch{return null}}}class q5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const n=this.inertDocument.createElement("template");return n.innerHTML=Xa(i),n}}const Y5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Af(e){return(e=String(e)).match(Y5)?e:"unsafe:"+e}function ns(e){const i={};for(const n of e.split(","))i[n]=!0;return i}function rd(...e){const i={};for(const n of e)for(const t in n)n.hasOwnProperty(t)&&(i[t]=!0);return i}const gS=ns("area,br,col,hr,img,wbr"),_S=ns("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bS=ns("rp,rt"),nv=rd(gS,rd(_S,ns("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rd(bS,ns("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),rd(bS,_S)),rv=ns("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vS=rd(rv,ns("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ns("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),K5=ns("script,style,template");class X5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let n=i.firstChild,t=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?t=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,t&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(i){const n=i.nodeName.toLowerCase();if(!nv.hasOwnProperty(n))return this.sanitizedSomething=!0,!K5.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const t=i.attributes;for(let r=0;r"),!0}endElement(i){const n=i.nodeName.toLowerCase();nv.hasOwnProperty(n)&&!gS.hasOwnProperty(n)&&(this.buf.push(""))}chars(i){this.buf.push(yS(i))}checkClobberedElement(i,n){if(n&&(i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return n}}const Z5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Q5=/([^\#-~ |!])/g;function yS(e){return e.replace(/&/g,"&").replace(Z5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(Q5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let Rf;function wS(e,i){let n=null;try{Rf=Rf||function pS(e){const i=new q5(e);return function W5(){try{return!!(new window.DOMParser).parseFromString(Xa(""),"text/html")}catch{return!1}}()?new G5(i):i}(e);let t=i?String(i):"";n=Rf.getInertBodyElement(t);let r=5,s=t;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,t=s,s=n.innerHTML,n=Rf.getInertBodyElement(t)}while(t!==s);return Xa((new X5).sanitizeChildren(sv(n)||n))}finally{if(n){const t=sv(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function sv(e){return"content"in e&&function J5(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(xi||{});function xS(e){const i=sd();return i?i.sanitize(xi.URL,e)||"":Mr(e,"URL")?_n(e):Af(Pe(e))}function kS(e){const i=sd();if(i)return mS(i.sanitize(xi.RESOURCE_URL,e)||"");if(Mr(e,"ResourceURL"))return mS(_n(e));throw new O(904,!1)}function sd(){const e=j();return e&&e[Ia].sanitizer}class M{constructor(i,n){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=P({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ao=new M("ENVIRONMENT_INITIALIZER"),DS=new M("INJECTOR",-1),SS=new M("INJECTOR_DEF_TYPES");class ov{get(i,n=Lc){if(n===Lc){const t=new Error(`NullInjectorError: No provider for ${oi(i)}!`);throw t.name="NullInjectorError",t}return n}}function Of(e){return{\u0275providers:e}}function oH(...e){return{\u0275providers:ES(0,e),\u0275fromNgModule:!0}}function ES(e,...i){const n=[],t=new Set;let r;const s=o=>{n.push(o)};return Ua(i,o=>{const a=o;Ff(a,s,[],t)&&(r||=[],r.push(a))}),void 0!==r&&MS(r,s),n}function MS(e,i){for(let n=0;n{i(s,t)})}}function Ff(e,i,n,t){if(!(e=Oe(e)))return!1;let r=null,s=$h(e);const o=!s&&nt(e);if(s||o){if(o&&!o.standalone)return!1;r=e}else{const l=e.ngModule;if(s=$h(l),!s)return!1;r=l}const a=t.has(r);if(o){if(a)return!1;if(t.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)Ff(c,i,n,t)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;t.add(r);try{Ua(s.imports,d=>{Ff(d,i,n,t)&&(c||=[],c.push(d))})}finally{}void 0!==c&&MS(c,i)}if(!a){const c=Do(r)||(()=>new r);i({provide:r,useFactory:c,deps:at},r),i({provide:SS,useValue:r,multi:!0},r),i({provide:Ao,useValue:()=>x(r),multi:!0},r)}const l=s.providers;if(null!=l&&!a){const c=e;av(l,d=>{i(d,c)})}}}return r!==e&&void 0!==e.providers}function av(e,i){for(let n of e)eb(n)&&(n=n.\u0275providers),Array.isArray(n)?av(n,i):i(n)}const aH=mt({provide:String,useValue:mt});function lv(e){return null!==e&&"object"==typeof e&&aH in e}function Ro(e){return"function"==typeof e}const cv=new M("Set Injector scope."),Nf={},cH={};let dv;function Pf(){return void 0===dv&&(dv=new ov),dv}class bn{}class Lf extends bn{get destroyed(){return this._destroyed}constructor(i,n,t,r){super(),this.parent=n,this.source=t,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hv(i,o=>this.processProvider(o)),this.records.set(DS,Qa(void 0,this)),r.has("environment")&&this.records.set(bn,Qa(void 0,this));const s=this.records.get(cv);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(SS.multi,at,We.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const n=Rs(this),t=Zi(void 0);try{return i()}finally{Rs(n),Zi(t)}}get(i,n=Lc,t=We.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(yD))return i[yD](this);t=qh(t);const s=Rs(this),o=Zi(void 0);try{if(!(t&We.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function mH(e){return"function"==typeof e||"object"==typeof e&&e instanceof M}(i)&&Hh(i);l=c&&this.injectableDefInScope(c)?Qa(uv(i),Nf):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(t&We.Self?Pf():this.parent).get(i,n=t&We.Optional&&n===Lc?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Gh]=a[Gh]||[]).unshift(oi(i)),s)throw a;return function oj(e,i,n,t){const r=e[Gh];throw i[_D]&&r.unshift(i[_D]),e.message=function aj(e,i,n,t=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=oi(i);if(Array.isArray(i))r=i.map(oi).join(" -> ");else if("object"==typeof i){let s=[];for(let o in i)if(i.hasOwnProperty(o)){let a=i[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):oi(a)))}r=`{${s.join(", ")}}`}return`${n}${t?"("+t+")":""}[${r}]: ${e.replace(tj,"\n ")}`}("\n"+e.message,r,n,t),e.ngTokenPath=r,e[Gh]=null,e}(a,i,"R3InjectorError",this.source)}throw a}finally{Zi(o),Rs(s)}}resolveInjectorInitializers(){const i=Rs(this),n=Zi(void 0);try{const r=this.get(Ao.multi,at,We.Self);for(const s of r)s()}finally{Rs(i),Zi(n)}}toString(){const i=[],n=this.records;for(const t of n.keys())i.push(oi(t));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(i){let n=Ro(i=Oe(i))?i:Oe(i&&i.provide);const t=function uH(e){return lv(e)?Qa(void 0,e.useValue):Qa(AS(e),Nf)}(i);if(Ro(i)||!0!==i.multi)this.records.get(n);else{let r=this.records.get(n);r||(r=Qa(void 0,Nf,!0),r.factory=()=>cb(r.multi),this.records.set(n,r)),n=i,r.multi.push(i)}this.records.set(n,t)}hydrate(i,n){return n.value===Nf&&(n.value=cH,n.value=n.factory()),"object"==typeof n.value&&n.value&&function fH(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(i){if(!i.providedIn)return!1;const n=Oe(i.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(i){const n=this._onDestroyHooks.indexOf(i);-1!==n&&this._onDestroyHooks.splice(n,1)}}function uv(e){const i=Hh(e),n=null!==i?i.factory:Do(e);if(null!==n)return n;if(e instanceof M)throw new O(204,!1);if(e instanceof Function)return function dH(e){const i=e.length;if(i>0)throw Qc(i,"?"),new O(204,!1);const n=function Z4(e){return e&&(e[Uh]||e[fD])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new O(204,!1)}function AS(e,i,n){let t;if(Ro(e)){const r=Oe(e);return Do(r)||uv(r)}if(lv(e))t=()=>Oe(e.useValue);else if(function IS(e){return!(!e||!e.useFactory)}(e))t=()=>e.useFactory(...cb(e.deps||[]));else if(function TS(e){return!(!e||!e.useExisting)}(e))t=()=>x(Oe(e.useExisting));else{const r=Oe(e&&(e.useClass||e.provide));if(!function hH(e){return!!e.deps}(e))return Do(r)||uv(r);t=()=>new r(...cb(e.deps))}return t}function Qa(e,i,n=!1){return{factory:e,value:i,multi:n?[]:void 0}}function hv(e,i){for(const n of e)Array.isArray(n)?hv(n,i):n&&eb(n)?hv(n.\u0275providers,i):i(n)}const od=new M("AppId",{providedIn:"root",factory:()=>pH}),pH="ng",RS=new M("Platform Initializer"),er=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ti=new M("AnimationModuleType"),fv=new M("CSP nonce",{providedIn:"root",factory:()=>function Za(){if(void 0!==tv)return tv;if(typeof document<"u")return document;throw new O(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let FS=(e,i,n)=>null;function yv(e,i,n=!1){return FS(e,i,n)}class DH{}class LS{}class EH{resolveComponentFactory(i){throw function SH(e){const i=Error(`No component factory found for ${oi(e)}.`);return i.ngComponent=e,i}(i)}}let el=(()=>{class i{}return i.NULL=new EH,i})();function MH(){return tl(wi(),j())}function tl(e,i){return new ne(en(e,i))}let ne=(()=>{class i{constructor(t){this.nativeElement=t}}return i.__NG_ELEMENT_ID__=MH,i})();function TH(e){return e instanceof ne?e.nativeElement:e}class dd{}let rs=(()=>{class i{constructor(){this.destroyNode=null}}return i.__NG_ELEMENT_ID__=()=>function IH(){const e=j(),n=pn(wi().index,e);return(Qi(n)?n:e)[Le]}(),i})(),AH=(()=>{var e;class i{}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>null}),i})();class Oo{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const RH=new Oo("16.2.0"),kv={};function HS(e,i=null,n=null,t){const r=$S(e,i,n,t);return r.resolveInjectorInitializers(),r}function $S(e,i=null,n=null,t,r=new Set){const s=[n||at,oH(e)];return t=t||("object"==typeof e?void 0:oi(e)),new Lf(s,i||Pf(),t||null,r)}let kt=(()=>{var e;class i{static create(t,r){if(Array.isArray(t))return HS({name:""},r,t,"");{const s=t.name??"";return HS({name:s},t.parent,t.providers,s)}}}return(e=i).THROW_IF_NOT_FOUND=Lc,e.NULL=new ov,e.\u0275prov=P({token:e,providedIn:"any",factory:()=>x(DS)}),e.__NG_ELEMENT_ID__=-1,i})(),il=(()=>{var e;class i{}return(e=i).__NG_ELEMENT_ID__=VH,e.__NG_ENV_ID__=n=>n,i})();class BH extends il{constructor(i){super(),this._lView=i}onDestroy(i){return JD(this._lView,i),()=>function Kj(e,i){if(null===e[Fs])return;const n=e[Fs].indexOf(i);-1!==n&&e[Fs].splice(n,1)}(this._lView,i)}}function VH(){return new BH(j())}function US(e){return e.ownerDocument.defaultView}function ss(e){return e instanceof Function?e():e}let Cv=(()=>{var e;class i{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new O(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const t of this.callbacks)t.invoke()}finally{this.runningCallbacks=!1;for(const t of this.deferredCallbacks)this.callbacks.add(t);this.deferredCallbacks.clear()}}register(t){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(t)}unregister(t){this.callbacks.delete(t),this.deferredCallbacks.delete(t)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>new e}),i})();function ud(e){for(;e;){e[Ve]|=64;const i=td(e);if(pb(e)&&!i)return e;e=i}return null}function Dv(e){return e.ngOriginalError}class Tr{constructor(){this._console=console}handleError(i){const n=this._findOriginalError(i);this._console.error("ERROR",i),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(i){let n=i&&Dv(i);for(;n&&Dv(n);)n=Dv(n);return n||null}}const KS=new M("",{providedIn:"root",factory:()=>!1});class JS extends tf{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(i){this._lView=i}onConsumerDependencyMayHaveChanged(){ud(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(i,n,t){const r=hi(this);this.trackingVersion++;try{i(n,t)}finally{hi(r)}}destroy(){this.trackingVersion++}}let Gf=null;function eE(){return Gf??=new JS,Gf}function tE(e,i){return e[i]??eE()}function iE(e,i){const n=eE();n.hasReadASignal&&(e[i]=Gf,n.lView=e,Gf=new JS)}const je={};function C(e){nE(rt(),j(),ji()+e,!1)}function nE(e,i,n,t){if(!t)if(3==(3&i[Ve])){const s=e.preOrderCheckHooks;null!==s&&cf(i,s,n)}else{const s=e.preOrderHooks;null!==s&&df(i,s,0,n)}So(n)}function p(e,i=We.Default){const n=j();return null===n?x(e,i):x1(wi(),n,Oe(e),i)}function Fo(){throw new Error("invalid")}function qf(e,i,n,t,r,s,o,a,l,c,d){const u=i.blueprint.slice();return u[Gt]=r,u[Ve]=140|t,(null!==c||e&&2048&e[Ve])&&(u[Ve]|=2048),XD(u),u[At]=u[Aa]=e,u[qt]=n,u[Ia]=o||e&&e[Ia],u[Le]=a||e&&e[Le],u[Os]=l||e&&e[Os]||null,u[Ei]=s,u[Uc]=function r5(){return n5++}(),u[es]=d,u[OD]=c,u[Wt]=2==i.type?e[Wt]:u,u}function sl(e,i,n,t,r){let s=e.data[i];if(null===s)s=function Sv(e,i,n,t,r){const s=n1(),o=wb(),l=e.data[i]=function t$(e,i,n,t,r,s){let o=i?i.injectorIndex:-1,a=0;return Na()&&(a|=128),{type:n,index:t,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,i,t,r);return null===e.firstChild&&(e.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(e,i,n,t,r),function sz(){return Ie.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=t,s.attrs=r;const o=function qc(){const e=Ie.lFrame,i=e.currentTNode;return e.isParent?i:i.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Sr(s,!0),s}function hd(e,i,n,t){if(0===n)return-1;const r=i.length;for(let s=0;sKe&&nE(e,i,Ke,!1),Dr(a?2:0,r),a)s.runInContext(n,t,r);else{const c=hi(null);try{n(t,r)}finally{hi(c)}}}finally{a&&null===i[Xh]&&iE(i,Xh),So(o),Dr(a?3:1,r)}}function Ev(e,i,n){if(mb(i)){const t=hi(null);try{const s=i.directiveEnd;for(let o=i.directiveStart;onull;function aE(e,i,n,t){for(let r in e)if(e.hasOwnProperty(r)){n=null===n?{}:n;const s=e[r];null===t?lE(n,i,r,s):t.hasOwnProperty(r)&&lE(n,i,t[r],s)}return n}function lE(e,i,n,t){e.hasOwnProperty(n)?e[n].push(i,t):e[n]=[i,t]}function vn(e,i,n,t,r,s,o,a){const l=en(i,n);let d,c=i.inputs;!a&&null!=c&&(d=c[t])?(Nv(e,n,d,t,r),Co(i)&&function r$(e,i){const n=pn(i,e);16&n[Ve]||(n[Ve]|=64)}(n,i.index)):3&i.type&&(t=function n$(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(t),r=null!=o?o(r,i.value||"",t):r,s.setProperty(l,t,r))}function Av(e,i,n,t){if(t1()){const r=null===t?null:{"":-1},s=function d$(e,i){const n=e.directiveRegistry;let t=null,r=null;if(n)for(let s=0;s0;){const n=e[--i];if("number"==typeof n&&n<0)return n}return 0})(o)!=a&&o.push(a),o.push(n,t,s)}}(e,i,t,hd(e,n,r.hostVars,je),r)}function Ir(e,i,n,t,r,s){const o=en(e,i);!function Ov(e,i,n,t,r,s,o){if(null==s)e.removeAttribute(i,r,n);else{const a=null==o?Pe(s):o(s,t||"",r);e.setAttribute(i,r,a,n)}}(i[Le],o,s,e.value,n,t,r)}function g$(e,i,n,t,r,s){const o=s[i];if(null!==o)for(let a=0;a{var e;class i{constructor(){this.all=new Set,this.queue=new Map}create(t,r,s){const o=typeof Zone>"u"?null:Zone.current,a=new Lj(t,d=>{this.all.has(d)&&this.queue.set(d,o)},s);let l;this.all.add(a),a.notify();const c=()=>{a.cleanup(),l?.(),this.all.delete(a),this.queue.delete(a)};return l=r?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>new e}),i})();function Yf(e,i,n){let t=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==i)for(let o=0;o0){yE(e,1);const r=e[le].components;null!==r&&xE(e,r,1)}}function xE(e,i,n){for(let t=0;t-1&&(Df(i,t),pf(n,t))}this._attachedToViewContainer=!1}Yb(this._lView[le],this._lView)}onDestroy(i){JD(this._lView,i)}markForCheck(){ud(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ve]&=-129}reattach(){this._lView[Ve]|=128}detectChanges(){Kf(this._lView[le],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function b5(e,i){nd(e,i,i[Le],2,null,null)}(this._lView[le],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=i}}class D$ extends md{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Kf(i[le],i,i[qt],!1)}checkNoChanges(){}get context(){return null}}class kE extends el{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const n=nt(i);return new pd(n,this.ngModule)}}function CE(e){const i=[];for(let n in e)e.hasOwnProperty(n)&&i.push({propName:e[n],templateName:n});return i}class E${constructor(i,n){this.injector=i,this.parentInjector=n}get(i,n,t){t=qh(t);const r=this.injector.get(i,kv,t);return r!==kv||n===kv?r:this.parentInjector.get(i,n,t)}}class pd extends LS{get inputs(){const i=this.componentDef,n=i.inputTransforms,t=CE(i.inputs);if(null!==n)for(const r of t)n.hasOwnProperty(r.propName)&&(r.transform=n[r.propName]);return t}get outputs(){return CE(this.componentDef.outputs)}constructor(i,n){super(),this.componentDef=i,this.ngModule=n,this.componentType=i.type,this.selector=function _j(e){return e.map(gj).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!n}create(i,n,t,r){let s=(r=r||this.ngModule)instanceof bn?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new E$(i,s):i,a=o.get(dd,null);if(null===a)throw new O(407,!1);const u={rendererFactory:a,sanitizer:o.get(AH,null),effectManager:o.get(bE,null),afterRenderEventManager:o.get(Cv,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",_=t?function XH(e,i,n,t){const s=t.get(KS,!1)||n===In.ShadowDom,o=e.selectRootElement(i,s);return function ZH(e){oE(e)}(o),o}(h,t,this.componentDef.encapsulation,o):Cf(h,f,function S$(e){const i=e.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(f)),b=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==_&&(v=yv(_,o,!0));const w=Iv(0,null,null,1,0,null,null,null,null,null,null),y=qf(null,w,null,b,null,null,u,h,o,null,v);let E,T;Sb(y);try{const B=this.componentDef;let z,oe=null;B.findHostDirectiveDefs?(z=[],oe=new Map,B.findHostDirectiveDefs(B,z,oe),z.push(B)):z=[B];const te=function T$(e,i){const n=e[le],t=Ke;return e[t]=i,sl(n,t,2,"#host",null)}(y,_),ve=function I$(e,i,n,t,r,s,o){const a=r[le];!function A$(e,i,n,t){for(const r of e)i.mergedAttrs=jc(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(Yf(i,i.mergedAttrs,!0),null!==n&&uS(t,n,i))}(t,e,i,o);let l=null;null!==i&&(l=yv(i,r[Os]));const c=s.rendererFactory.createRenderer(i,n);let d=16;n.signals?d=4096:n.onPush&&(d=64);const u=qf(r,sE(n),null,d,r[e.index],e,s,c,null,null,l);return a.firstCreatePass&&Rv(a,e,t.length-1),Wf(r,u),r[e.index]=u}(te,_,B,z,y,u,h);T=KD(w,Ke),_&&function O$(e,i,n,t){if(t)hb(e,n,["ng-version",RH.full]);else{const{attrs:r,classes:s}=function bj(e){const i=[],n=[];let t=1,r=2;for(;t0&&dS(e,n,s.join(" "))}}(h,B,_,t),void 0!==n&&function F$(e,i,n){const t=e.projection=[];for(let r=0;r=0;t--){const r=e[t];r.hostVars=i+=r.hostVars,r.hostAttrs=jc(r.hostAttrs,n=jc(n,r.hostAttrs))}}(t)}function Xf(e){return e===wr?{}:e===at?[]:e}function L$(e,i){const n=e.viewQuery;e.viewQuery=n?(t,r)=>{i(t,r),n(t,r)}:i}function B$(e,i){const n=e.contentQueries;e.contentQueries=n?(t,r,s)=>{i(t,r,s),n(t,r,s)}:i}function V$(e,i){const n=e.hostBindings;e.hostBindings=n?(t,r)=>{i(t,r),n(t,r)}:i}function TE(e){const i=e.inputConfig,n={};for(const t in i)if(i.hasOwnProperty(t)){const r=i[t];Array.isArray(r)&&r[2]&&(n[t]=r[2])}e.inputTransforms=n}function Zf(e){return!!Lv(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Lv(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,i,n){return e[i]=n}function Ii(e,i,n){return!Object.is(e[i],n)&&(e[i]=n,!0)}function No(e,i,n,t){const r=Ii(e,i,n);return Ii(e,i+1,t)||r}function _e(e,i,n,t){const r=j();return Ii(r,Pa(),i)&&(rt(),Ir(Nt(),r,e,i,n,t)),_e}function al(e,i,n,t){return Ii(e,Pa(),n)?i+Pe(n)+t:je}function ll(e,i,n,t,r,s){const a=No(e,function ts(){return Ie.lFrame.bindingIndex}(),n,r);return is(2),a?i+Pe(n)+t+Pe(r)+s:je}function Z(e,i,n,t,r,s,o,a){const l=j(),c=rt(),d=e+Ke,u=c.firstCreatePass?function u8(e,i,n,t,r,s,o,a,l){const c=i.consts,d=sl(i,e,4,o||null,Ns(c,a));Av(i,n,d,Ns(c,l)),lf(i,d);const u=d.tView=Iv(2,d,t,r,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,d),u.queries=i.queries.embeddedTView(d)),d}(d,c,l,i,n,t,r,s,o):c.data[d];Sr(u,!1);const h=HE(c,l,u,e);af()&&Ef(c,l,h,u),Ti(h,l),Wf(l,l[d]=hE(h,l,h,u)),Jh(u)&&Mv(c,l,u),null!=o&&Tv(l,u,a)}let HE=function $E(e,i,n,t){return Ps(!0),i[Le].createComment("")};function Rt(e){return Fa(function rz(){return Ie.lFrame.contextLView}(),Ke+e)}function R(e,i,n){const t=j();return Ii(t,Pa(),i)&&vn(rt(),Nt(),t,e,i,t[Le],n,!1),R}function $v(e,i,n,t,r){const o=r?"class":"style";Nv(e,n,i.inputs[o],o,t)}function k(e,i,n,t){const r=j(),s=rt(),o=Ke+e,a=r[Le],l=s.firstCreatePass?function p8(e,i,n,t,r,s){const o=i.consts,l=sl(i,e,2,t,Ns(o,r));return Av(i,n,l,Ns(o,s)),null!==l.attrs&&Yf(l,l.attrs,!1),null!==l.mergedAttrs&&Yf(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(o,s,r,i,n,t):s.data[o],c=UE(s,r,l,a,i,e);r[o]=c;const d=Jh(l);return Sr(l,!0),uS(a,c,l),32!=(32&l.flags)&&af()&&Ef(s,r,c,l),0===function Xj(){return Ie.lFrame.elementDepthCount}()&&Ti(c,r),function Zj(){Ie.lFrame.elementDepthCount++}(),d&&(Mv(s,r,l),Ev(s,l,r)),null!==t&&Tv(r,l),k}function D(){let e=wi();wb()?xb():(e=e.parent,Sr(e,!1));const i=e;(function Jj(e){return Ie.skipHydrationRootTNode===e})(i)&&function nz(){Ie.skipHydrationRootTNode=null}(),function Qj(){Ie.lFrame.elementDepthCount--}();const n=rt();return n.firstCreatePass&&(lf(n,e),mb(e)&&n.queries.elementEnd(e)),null!=i.classesWithoutHost&&function gz(e){return 0!=(8&e.flags)}(i)&&$v(n,i,j(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function _z(e){return 0!=(16&e.flags)}(i)&&$v(n,i,j(),i.stylesWithoutHost,!1),D}function be(e,i,n,t){return k(e,i,n,t),D(),be}let UE=(e,i,n,t,r,s)=>(Ps(!0),Cf(t,r,function f1(){return Ie.lFrame.currentNamespace}()));function fi(e,i,n){const t=j(),r=rt(),s=e+Ke,o=r.firstCreatePass?function b8(e,i,n,t,r){const s=i.consts,o=Ns(s,t),a=sl(i,e,8,"ng-container",o);return null!==o&&Yf(a,o,!0),Av(i,n,a,Ns(s,r)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,r,t,i,n):r.data[s];Sr(o,!0);const a=GE(r,t,o,e);return t[s]=a,af()&&Ef(r,t,a,o),Ti(a,t),Jh(o)&&(Mv(r,t,o),Ev(r,o,t)),null!=n&&Tv(t,o),fi}function mi(){let e=wi();const i=rt();return wb()?xb():(e=e.parent,Sr(e,!1)),i.firstCreatePass&&(lf(i,e),mb(e)&&i.queries.elementEnd(e)),mi}function Ai(e,i,n){return fi(e,i,n),mi(),Ai}let GE=(e,i,n,t)=>(Ps(!0),Wb(i[Le],""));function Yt(){return j()}function yd(e){return!!e&&"function"==typeof e.then}function qE(e){return!!e&&"function"==typeof e.subscribe}function H(e,i,n,t){const r=j(),s=rt(),o=wi();return WE(s,r,r[Le],o,e,i,t),H}function pl(e,i){const n=wi(),t=j(),r=rt();return WE(r,t,gE(Cb(r.data),n,t),n,e,i),pl}function WE(e,i,n,t,r,s,o){const a=Jh(t),c=e.firstCreatePass&&pE(e),d=i[qt],u=mE(i);let h=!0;if(3&t.type||o){const g=en(t,i),m=o?o(g):g,b=u.length,v=o?y=>o(xt(y[t.index])):t.index;let w=null;if(!o&&a&&(w=function w8(e,i,n,t){const r=e.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(e,i,r,t.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,h=!1;else{s=KE(t,i,d,s,!1);const y=n.listen(m,r,s);u.push(s,y),c&&c.push(r,v,b,b+1)}}else s=KE(t,i,d,s,!1);const f=t.outputs;let _;if(h&&null!==f&&(_=f[r])){const g=_.length;if(g)for(let m=0;m-1?pn(e.index,i):i);let l=YE(i,n,t,o),c=s.__ngNextListenerFn__;for(;c;)l=YE(i,n,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&o.preventDefault(),l}}function ue(e=1){return function cz(e){return(Ie.lFrame.contextLView=function dz(e,i){for(;e>0;)i=i[Aa],e--;return i}(e,Ie.lFrame.contextLView))[qt]}(e)}function x8(e,i){let n=null;const t=function hj(e){const i=e.attrs;if(null!=i){const n=i.indexOf(5);if(!(1&n))return i[n+1]}return null}(e);for(let r=0;r>17&32767}function Gv(e){return 2|e}function Po(e){return(131068&e)>>2}function qv(e,i){return-131069&e|i<<2}function Wv(e){return 1|e}function rM(e,i,n,t,r){const s=e[n+1],o=null===i;let a=t?Vs(s):Po(s),l=!1;for(;0!==a&&(!1===l||o);){const d=e[a+1];M8(e[a],i)&&(l=!0,e[a+1]=t?Wv(d):Gv(d)),a=t?Vs(d):Po(d)}l&&(e[n+1]=t?Gv(s):Wv(s))}function M8(e,i){return null===e||null==i||(Array.isArray(e)?e[1]:e)===i||!(!Array.isArray(e)||"string"!=typeof i)&&Ga(e,i)>=0}const li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sM(e){return e.substring(li.key,li.keyEnd)}function oM(e,i){const n=li.textEnd;return n===i?-1:(i=li.keyEnd=function R8(e,i,n){for(;i32;)i++;return i}(e,li.key=i,n),gl(e,i,n))}function gl(e,i,n){for(;i=0;n=oM(i,n))gn(e,sM(i),!0)}function tr(e,i,n,t){const r=j(),s=rt(),o=is(2);s.firstUpdatePass&&fM(s,e,o,t),i!==je&&Ii(r,o,i)&&pM(s,s.data[ji()],r,r[Le],e,r[o+1]=function $8(e,i){return null==e||""===e||("string"==typeof i?e+=i:"object"==typeof e&&(e=oi(_n(e)))),e}(i,n),t,o)}function ir(e,i,n,t){const r=rt(),s=is(2);r.firstUpdatePass&&fM(r,null,s,t);const o=j();if(n!==je&&Ii(o,s,n)){const a=r.data[ji()];if(_M(a,t)&&!hM(r,s)){let l=t?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(n=Q_(l,n||"")),$v(r,a,o,n,t)}else!function H8(e,i,n,t,r,s,o,a){r===je&&(r=at);let l=0,c=0,d=0=e.expandoStartIndex}function fM(e,i,n,t){const r=e.data;if(null===r[n+1]){const s=r[ji()],o=hM(e,n);_M(s,t)&&null===i&&!o&&(i=!1),i=function P8(e,i,n,t){const r=Cb(e);let s=t?i.residualClasses:i.residualStyles;if(null===r)0===(t?i.classBindings:i.styleBindings)&&(n=wd(n=Yv(null,e,i,n,t),i.attrs,t),s=null);else{const o=i.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Yv(r,e,i,n,t),null===s){let l=function L8(e,i,n){const t=n?i.classBindings:i.styleBindings;if(0!==Po(t))return e[Vs(t)]}(e,i,t);void 0!==l&&Array.isArray(l)&&(l=Yv(null,e,i,l[1],t),l=wd(l,i.attrs,t),function B8(e,i,n,t){e[Vs(n?i.classBindings:i.styleBindings)]=t}(e,i,t,l))}else s=function V8(e,i,n){let t;const r=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):d=n,r)if(0!==l){const h=Vs(e[a+1]);e[t+1]=im(h,a),0!==h&&(e[h+1]=qv(e[h+1],t)),e[a+1]=function C8(e,i){return 131071&e|i<<17}(e[a+1],t)}else e[t+1]=im(a,0),0!==a&&(e[a+1]=qv(e[a+1],t)),a=t;else e[t+1]=im(l,0),0===a?a=t:e[l+1]=qv(e[l+1],t),l=t;c&&(e[t+1]=Gv(e[t+1])),rM(e,d,t,!0),rM(e,d,t,!1),function E8(e,i,n,t,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof i&&Ga(s,i)>=0&&(n[t+1]=Wv(n[t+1]))}(i,d,e,t,s),o=im(a,l),s?i.classBindings=o:i.styleBindings=o}(r,s,i,n,o,t)}}function Yv(e,i,n,t,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=n[r+1];h===je&&(h=u?at:void 0);let f=u?Pb(h,t):d===t?h:void 0;if(c&&!nm(f)&&(f=Pb(l,t)),nm(f)&&(a=f,o))return a;const _=e[r+1];r=o?Vs(_):Po(_)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=Pb(l,t))}return a}function nm(e){return void 0!==e}function _M(e,i){return 0!=(e.flags&(i?8:16))}function N(e,i=""){const n=j(),t=rt(),r=e+Ke,s=t.firstCreatePass?sl(t,r,1,i,null):t.data[r],o=bM(t,n,s,i,e);n[r]=o,af()&&Ef(t,n,o,s),Sr(s,!1)}let bM=(e,i,n,t,r)=>(Ps(!0),function kf(e,i){return e.createText(i)}(i[Le],t));function pe(e){return ot("",e,""),pe}function ot(e,i,n){const t=j(),r=al(t,e,i,n);return r!==je&&os(t,ji(),r),ot}function rm(e,i,n,t,r){const s=j(),o=ll(s,e,i,n,t,r);return o!==je&&os(s,ji(),o),rm}function On(e,i,n){const t=j();return Ii(t,Pa(),i)&&vn(rt(),Nt(),t,e,i,t[Le],n,!0),On}function _l(e,i,n){const t=j();if(Ii(t,Pa(),i)){const s=rt(),o=Nt();vn(s,o,t,e,i,gE(Cb(s.data),o,t),n,!0)}return _l}const Lo=void 0;var dU=["en",[["a","p"],["AM","PM"],Lo],[["AM","PM"],Lo,Lo],[["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"]],Lo,[["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"]],Lo,[["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}",Lo,"{1} 'at' {0}",Lo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function cU(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let bl={};function Hi(e){const i=function hU(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=LM(i);if(n)return n;const t=i.split("-")[0];if(n=LM(t),n)return n;if("en"===t)return dU;throw new O(701,!1)}function LM(e){return e in bl||(bl[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),bl[e]}var Ct=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Ct||{});const vl="en-US";let BM=vl;function Zv(e,i,n,t,r){if(e=Oe(e),Array.isArray(e))for(let s=0;s>20;if(Ro(e)||!e.multi){const f=new Wc(c,r,p),_=Jv(l,i,r?d:d+h,u);-1===_?(Ob(hf(a,o),s,l),Qv(s,e,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(f),o.push(f)):(n[_]=f,o[_]=f)}else{const f=Jv(l,i,d+h,u),_=Jv(l,i,d,d+h),m=_>=0&&n[_];if(r&&!m||!r&&!(f>=0&&n[f])){Ob(hf(a,o),s,l);const b=function d6(e,i,n,t,r){const s=new Wc(e,n,p);return s.multi=[],s.index=i,s.componentProviders=0,cT(s,r,t&&!n),s}(r?c6:l6,n.length,r,t,c);!r&&m&&(n[_].providerFactory=b),Qv(s,e,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(b),o.push(b)}else Qv(s,e,f>-1?f:_,cT(n[r?_:f],c,!r&&t));!r&&t&&m&&n[_].componentProviders++}}}function Qv(e,i,n,t){const r=Ro(i),s=function lH(e){return!!e.useClass}(i);if(r||s){const l=(s?Oe(i.useClass):i).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&i.multi){const d=c.indexOf(n);-1===d?c.push(n,[t,l]):c[d+1].push(t,l)}else c.push(n,l)}}}function cT(e,i,n){return n&&e.componentProviders++,e.multi.push(i)-1}function Jv(e,i,n,t){for(let r=n;r{n.providersResolver=(t,r)=>function a6(e,i,n){const t=rt();if(t.firstCreatePass){const r=Jn(e);Zv(n,t.data,t.blueprint,r,!0),Zv(i,t.data,t.blueprint,r,!1)}}(t,r?r(e):e,i)}}class Bo{}class dT{}class ty extends Bo{constructor(i,n,t){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kE(this);const r=mn(i);this._bootstrapComponents=ss(r.bootstrap),this._r3Injector=$S(i,n,[{provide:Bo,useValue:this},{provide:el,useValue:this.componentFactoryResolver},...t],oi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class iy extends dT{constructor(i){super(),this.moduleType=i}create(i){return new ty(this.moduleType,i,[])}}class uT extends Bo{constructor(i){super(),this.componentFactoryResolver=new kE(this),this.instance=null;const n=new Lf([...i.providers,{provide:Bo,useValue:this},{provide:el,useValue:this.componentFactoryResolver}],i.parent||Pf(),i.debugName,new Set(["environment"]));this.injector=n,i.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function ny(e,i,n=null){return new uT({providers:e,parent:i,debugName:n,runEnvironmentInitializers:!0}).injector}let f6=(()=>{var e;class i{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=ES(0,t.type),s=r.length>0?ny([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,s)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return(e=i).\u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(x(bn))}),i})();function hT(e){e.getStandaloneInjector=i=>i.get(f6).getOrCreateStandaloneInjector(e)}function sy(e,i,n){const t=Vi()+e,r=j();return r[t]===je?Ar(r,t,n?i.call(n):i()):function gd(e,i){return e[i]}(r,t)}function cm(e,i,n,t){return vT(j(),Vi(),e,i,n,t)}function Ed(e,i){const n=e[i];return n===je?void 0:n}function vT(e,i,n,t,r,s){const o=i+n;return Ii(e,o,r)?Ar(e,o+1,s?t.call(s,r):t(r)):Ed(e,o+1)}function U(e,i){const n=rt();let t;const r=e+Ke;n.firstCreatePass?(t=function I6(e,i){if(i)for(let n=i.length-1;n>=0;n--){const t=i[n];if(e===t.name)return t}}(i,n.pipeRegistry),n.data[r]=t,t.onDestroy&&(n.destroyHooks??=[]).push(r,t.onDestroy)):t=n.data[r];const s=t.factory||(t.factory=Do(t.type)),a=Zi(p);try{const l=uf(!1),c=s();return uf(l),function m8(e,i,n,t){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),i[n]=t}(n,j(),r,c),c}finally{Zi(a)}}function Y(e,i,n){const t=e+Ke,r=j(),s=Fa(r,t);return Md(r,t)?vT(r,Vi(),i,s.transform,n,s):s.transform(n)}function yl(e,i,n,t){const r=e+Ke,s=j(),o=Fa(s,r);return Md(s,r)?function yT(e,i,n,t,r,s,o){const a=i+n;return No(e,a,r,s)?Ar(e,a+2,o?t.call(o,r,s):t(r,s)):Ed(e,a+2)}(s,Vi(),i,o.transform,n,t,o):o.transform(n,t)}function Md(e,i){return e[le].data[i].pure}function oy(e){return i=>{setTimeout(e,void 0,i)}}const W=class F6 extends ${constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,n,t){let r=i,s=n||(()=>null),o=t;if(i&&"object"==typeof i){const l=i;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=oy(s),r&&(r=oy(r)),o&&(o=oy(o)));const a=super.subscribe({next:r,error:s,complete:o});return i instanceof Qe&&i.add(a),a}};function N6(){return this._results[Symbol.iterator]()}class wl{get changes(){return this._changes||(this._changes=new W)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=wl.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=N6)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,n){return this._results.reduce(i,n)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,n){const t=this;t.dirty=!1;const r=function An(e){return e.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function Az(e,i,n){if(e.length!==i.length)return!1;for(let t=0;t0&&(n[r-1][Qn]=i),t{class i{}return i.__NG_ELEMENT_ID__=j6,i})();const B6=Pt,V6=class extends B6{constructor(i,n,t){super(),this._declarationLView=i,this._declarationTContainer=n,this.elementRef=t}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,n){return this.createEmbeddedViewImpl(i,n)}createEmbeddedViewImpl(i,n,t){const r=function P6(e,i,n,t){const r=i.tView,a=qf(e,r,n,4096&e[Ve]?4096:16,null,i,null,null,null,t?.injector??null,t?.hydrationInfo??null);a[$c]=e[i.index];const c=e[xr];return null!==c&&(a[xr]=c.createEmbeddedView(r)),Pv(r,a,n),a}(this._declarationLView,this._declarationTContainer,i,{injector:n,hydrationInfo:t});return new md(r)}};function j6(){return dm(wi(),j())}function dm(e,i){return 4&e.type?new V6(i,e,tl(e,i)):null}let Vt=(()=>{class i{}return i.__NG_ELEMENT_ID__=q6,i})();function q6(){return IT(wi(),j())}const W6=Vt,MT=class extends W6{constructor(i,n,t){super(),this._lContainer=i,this._hostTNode=n,this._hostLView=t}get element(){return tl(this._hostTNode,this._hostLView)}get injector(){return new zi(this._hostTNode,this._hostLView)}get parentInjector(){const i=ff(this._hostTNode,this._hostLView);if(Ib(i)){const n=Kc(i,this._hostLView),t=Yc(i);return new zi(n[le].data[t+8],n)}return new zi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const n=TT(this._lContainer);return null!==n&&n[i]||null}get length(){return this._lContainer.length-yi}createEmbeddedView(i,n,t){let r,s;"number"==typeof t?r=t:null!=t&&(r=t.index,s=t.injector);const a=i.createEmbeddedViewImpl(n||{},s,null);return this.insertImpl(a,r,false),a}createComponent(i,n,t,r,s){const o=i&&!function Zc(e){return"function"==typeof e}(i);let a;if(o)a=n;else{const g=n||{};a=g.index,t=g.injector,r=g.projectableNodes,s=g.environmentInjector||g.ngModuleRef}const l=o?i:new pd(nt(i)),c=t||this.parentInjector;if(!s&&null==l.ngModule){const m=(o?c:this.parentInjector).get(bn,null);m&&(s=m)}nt(l.componentType??{});const f=l.create(c,r,null,s);return this.insertImpl(f.hostView,a,false),f}insert(i,n){return this.insertImpl(i,n,!1)}insertImpl(i,n,t){const r=i._lView;if(function Wj(e){return Ji(e[At])}(r)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=r[At],d=new MT(c,c[Ei],c[At]);d.detach(d.indexOf(i))}}const o=this._adjustIndex(n),a=this._lContainer;return L6(a,r,o,!t),i.attachToViewContainerRef(),M1(ay(a),o,i),i}move(i,n){return this.insert(i,n)}indexOf(i){const n=TT(this._lContainer);return null!==n?n.indexOf(i):-1}remove(i){const n=this._adjustIndex(i,-1),t=Df(this._lContainer,n);t&&(pf(ay(this._lContainer),n),Yb(t[le],t))}detach(i){const n=this._adjustIndex(i,-1),t=Df(this._lContainer,n);return t&&null!=pf(ay(this._lContainer),n)?new md(t):null}_adjustIndex(i,n=0){return i??this.length+n}};function TT(e){return e[8]}function ay(e){return e[8]||(e[8]=[])}function IT(e,i){let n;const t=i[e.index];return Ji(t)?n=t:(n=hE(t,i,null,e),i[e.index]=n,Wf(i,n)),AT(n,i,e,t),new MT(n,e,i)}let AT=function RT(e,i,n,t){if(e[kr])return;let r;r=8&n.type?xt(t):function Y6(e,i){const n=e[Le],t=n.createComment(""),r=en(i,e);return To(n,Sf(n,r),t,function D5(e,i){return e.nextSibling(i)}(n,r),!1),t}(i,n),e[kr]=r};class ly{constructor(i){this.queryList=i,this.matches=null}clone(){return new ly(this.queryList)}setDirty(){this.queryList.setDirty()}}class cy{constructor(i=[]){this.queries=i}createEmbeddedView(i){const n=i.queries;if(null!==n){const t=null!==i.contentQueries?i.contentQueries[0]:n.length,r=[];for(let s=0;s0)t.push(o[a/2]);else{const c=s[a+1],d=i[-l];for(let u=yi;u{var e;class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=G(mm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const s of this.appInits){const o=s();if(yd(o))t.push(o);else if(qE(o)){const a=new Promise((l,c)=>{o.subscribe({complete:l,error:c})});t.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(s=>{this.reject(s)}),0===t.length&&r(),this.initialized=!0}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),eI=(()=>{var e;class i{log(t){console.log(t)}warn(t){console.warn(t)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),i})();const Fr=new M("LocaleId",{providedIn:"root",factory:()=>G(Fr,We.Optional|We.SkipSelf)||function kG(){return typeof $localize<"u"&&$localize.locale||vl}()});let pm=(()=>{var e;class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Et(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();class SG{constructor(i,n){this.ngModuleFactory=i,this.componentFactories=n}}let tI=(()=>{var e;class i{compileModuleSync(t){return new iy(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=ss(mn(t).declarations).reduce((a,l)=>{const c=nt(l);return c&&a.push(new pd(c)),a},[]);return new SG(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function sI(...e){}class ce{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new W(!1),this.onMicrotaskEmpty=new W(!1),this.onStable=new W(!1),this.onError=new W(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!t&&n,r.shouldCoalesceRunChangeDetection=t,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function qG(){const e="function"==typeof vt.requestAnimationFrame;let i=vt[e?"requestAnimationFrame":"setTimeout"],n=vt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&n){const t=i[Zone.__symbol__("OriginalDelegate")];t&&(i=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function KG(e){const i=()=>{!function YG(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xy(e),e.isCheckStableRunning=!0,wy(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xy(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,t,r,s,o,a)=>{try{return oI(e),n.invokeTask(r,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&i(),aI(e)}},onInvoke:(n,t,r,s,o,a,l)=>{try{return oI(e),n.invoke(r,s,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&i(),aI(e)}},onHasTask:(n,t,r,s)=>{n.hasTask(r,s),t===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,xy(e),wy(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,t,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ce.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(ce.isInAngularZone())throw new O(909,!1)}run(i,n,t){return this._inner.run(i,n,t)}runTask(i,n,t,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,i,WG,sI,sI);try{return s.runTask(o,n,t)}finally{s.cancelTask(o)}}runGuarded(i,n,t){return this._inner.runGuarded(i,n,t)}runOutsideAngular(i){return this._outer.run(i)}}const WG={};function wy(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 xy(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function oI(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function aI(e){e._nesting--,wy(e)}class XG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new W,this.onMicrotaskEmpty=new W,this.onStable=new W,this.onError=new W}run(i,n,t){return i.apply(n,t)}runGuarded(i,n,t){return i.apply(n,t)}runOutsideAngular(i){return i()}runTask(i,n,t,r){return i.apply(n,t)}}const lI=new M("",{providedIn:"root",factory:cI});function cI(){const e=G(ce);let i=!0;return Ft(new et(r=>{i=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(i),r.complete()})}),new et(r=>{let s;e.runOutsideAngular(()=>{s=e.onStable.subscribe(()=>{ce.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(i=!0,r.next(!0))})})});const o=e.onUnstable.subscribe(()=>{ce.assertInAngularZone(),i&&(i=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{s.unsubscribe(),o.unsubscribe()}}).pipe(Vh()))}const dI=new M(""),_m=new M("");let Dy,ky=(()=>{var e;class i{constructor(t,r,s){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Dy||(function ZG(e){Dy=e}(s),s.addToWindow(r)),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:()=>{ce.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{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(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,s){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:s})}whenStable(t,r,s){if(s&&!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,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,s){return[]}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce),x(Cy),x(_m))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),Cy=(()=>{var e;class i{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return Dy?.findTestabilityInTree(this,t,r)??null}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),i})(),js=null;const uI=new M("AllowMultipleToken"),Sy=new M("PlatformDestroyListeners"),Ey=new M("appBootstrapListener");class fI{constructor(i,n){this.name=i,this.token=n}}function pI(e,i,n=[]){const t=`Platform: ${i}`,r=new M(t);return(s=[])=>{let o=My();if(!o||o.injector.get(uI,!1)){const a=[...n,...s,{provide:r,useValue:!0}];e?e(a):function eq(e){if(js&&!js.get(uI,!1))throw new O(400,!1);(function hI(){!function Nj(e){jD=e}(()=>{throw new O(600,!1)})})(),js=e;const i=e.get(_I);(function mI(e){e.get(RS,null)?.forEach(n=>n())})(e)}(function gI(e=[],i){return kt.create({name:i,providers:[{provide:cv,useValue:"platform"},{provide:Sy,useValue:new Set([()=>js=null])},...e]})}(a,t))}return function iq(e){const i=My();if(!i)throw new O(401,!1);return i}()}}function My(){return js?.get(_I)??null}let _I=(()=>{var e;class i{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const s=function nq(e="zone.js",i){return"noop"===e?new XG:"zone.js"===e?new ce(i):e}(r?.ngZone,function bI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{const o=function h6(e,i,n){return new ty(e,i,n)}(t.moduleType,this.injector,function kI(e){return[{provide:ce,useFactory:e},{provide:Ao,multi:!0,useFactory:()=>{const i=G(sq,{optional:!0});return()=>i.initialize()}},{provide:xI,useFactory:rq},{provide:lI,useFactory:cI}]}(()=>s)),a=o.injector.get(Tr,null);return s.runOutsideAngular(()=>{const l=s.onError.subscribe({next:c=>{a.handleError(c)}});o.onDestroy(()=>{bm(this._modules,o),l.unsubscribe()})}),function vI(e,i,n){try{const t=n();return yd(t)?t.catch(r=>{throw i.runOutsideAngular(()=>e.handleError(r)),r}):t}catch(t){throw i.runOutsideAngular(()=>e.handleError(t)),t}}(a,s,()=>{const l=o.injector.get(by);return l.runInitializers(),l.donePromise.then(()=>(function VM(e){Tn(e,"Expected localeId to be defined"),"string"==typeof e&&(BM=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Fr,vl)||vl),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const s=yI({},r);return function QG(e,i,n){const t=new iy(n);return Promise.resolve(t)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(t){const r=t.injector.get(Nr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new O(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Sy,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=i).\u0275fac=function(t){return new(t||e)(x(kt))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),i})();function yI(e,i){return Array.isArray(i)?i.reduce(yI,e):{...e,...i}}let Nr=(()=>{var e;class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=G(xI),this.zoneIsStable=G(lI),this.componentTypes=[],this.components=[],this.isStable=G(pm).hasPendingTasks.pipe(ei(t=>t?ee(!1):this.zoneIsStable),xo(),Vh()),this._injector=G(bn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const s=t instanceof LS;if(!this._injector.get(by).done)throw!s&&function Ma(e){const i=nt(e)||vi(e)||Bi(e);return null!==i&&i.standalone}(t),new O(405,!1);let a;a=s?t:this._injector.get(el).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const l=function JG(e){return e.isBoundToModule}(a)?void 0:this._injector.get(Bo),d=a.create(kt.NULL,[],r||a.selector,l),u=d.location.nativeElement,h=d.injector.get(dI,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),bm(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;bm(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Ey,[]);r.push(...this._bootstrapListeners),r.forEach(s=>s(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>bm(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new O(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function bm(e,i){const n=e.indexOf(i);n>-1&&e.splice(n,1)}const xI=new M("",{providedIn:"root",factory:()=>G(Tr).handleError.bind(void 0)});function rq(){const e=G(ce),i=G(Tr);return n=>e.runOutsideAngular(()=>i.handleError(n))}let sq=(()=>{var e;class i{constructor(){this.zone=G(ce),this.applicationRef=G(Nr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();let st=(()=>{class i{}return i.__NG_ELEMENT_ID__=lq,i})();function lq(e){return function cq(e,i,n){if(Co(e)&&!n){const t=pn(e.index,i);return new md(t,t)}return 47&e.type?new md(i[Wt],i):null}(wi(),j(),16==(16&e))}class EI{constructor(){}supports(i){return Zf(i)}create(i){return new pq(i)}}const mq=(e,i)=>i;class pq{constructor(i){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=i||mq}forEachItem(i){let n;for(n=this._itHead;null!==n;n=n._next)i(n)}forEachOperation(i){let n=this._itHead,t=this._removalsHead,r=0,s=null;for(;n||t;){const o=!t||n&&n.currentIndex{o=this._trackByFn(r,a),null!==n&&Object.is(n.trackById,o)?(t&&(n=this._verifyReinsertion(n,a,o,r)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,o,r),t=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,n,t,r){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(t,null))?(Object.is(i.item,n)||this._addIdentityChange(i,n),this._reinsertAfter(i,s,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(t,r))?(Object.is(i.item,n)||this._addIdentityChange(i,n),this._moveAfter(i,s,r)):i=this._addAfter(new gq(n,t),s,r),i}_verifyReinsertion(i,n,t,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(t,null);return null!==s?i=this._reinsertAfter(s,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const n=i._next;this._addToRemovals(this._unlink(i)),i=n}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(i,n,t){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,s=i._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(i,n,t),this._addToMoves(i,t),i}_moveAfter(i,n,t){return this._unlink(i),this._insertAfter(i,n,t),this._addToMoves(i,t),i}_addAfter(i,n,t){return this._insertAfter(i,n,t),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,n,t){const r=null===n?this._itHead:n._next;return i._next=r,i._prev=n,null===r?this._itTail=i:r._prev=i,null===n?this._itHead=i:n._next=i,null===this._linkedRecords&&(this._linkedRecords=new MI),this._linkedRecords.put(i),i.currentIndex=t,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const n=i._prev,t=i._next;return null===n?this._itHead=t:n._next=t,null===t?this._itTail=n:t._prev=n,i}_addToMoves(i,n){return i.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new MI),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,n){return i.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class gq{constructor(i,n){this.item=i,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class _q{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,n){let t;for(t=this._head;null!==t;t=t._nextDup)if((null===n||n<=t.currentIndex)&&Object.is(t.trackById,i))return t;return null}remove(i){const n=i._prevDup,t=i._nextDup;return null===n?this._head=t:n._nextDup=t,null===t?this._tail=n:t._prevDup=n,null===this._head}}class MI{constructor(){this.map=new Map}put(i){const n=i.trackById;let t=this.map.get(n);t||(t=new _q,this.map.set(n,t)),t.add(i)}get(i,n){const r=this.map.get(i);return r?r.get(i,n):null}remove(i){const n=i.trackById;return this.map.get(n).remove(i)&&this.map.delete(n),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TI(e,i,n){const t=e.previousIndex;if(null===t)return t;let r=0;return n&&t{if(n&&n.key===r)this._maybeAddToChanges(n,t),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,t);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let t=n;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,n){if(i){const t=i._prev;return n._next=i,n._prev=t,i._prev=n,t&&(t._next=n),i===this._mapHead&&(this._mapHead=n),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(i,n){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,n);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const t=new vq(i);return this._records.set(i,t),t.currentValue=n,this._addToAdditions(t),t}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,n){Object.is(n,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=n,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,n){i instanceof Map?i.forEach(n):Object.keys(i).forEach(t=>n(i[t],t))}}class vq{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function AI(){return new Fn([new EI])}let Fn=(()=>{var e;class i{constructor(t){this.factories=t}static create(t,r){if(null!=r){const s=r.factories.slice();t=t.concat(s)}return new i(t)}static extend(t){return{provide:i,useFactory:r=>i.create(t,r||AI()),deps:[[i,new qa,new Ls]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(null!=r)return r;throw new O(901,!1)}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:AI}),i})();function RI(){return new Ad([new II])}let Ad=(()=>{var e;class i{constructor(t){this.factories=t}static create(t,r){if(r){const s=r.factories.slice();t=t.concat(s)}return new i(t)}static extend(t){return{provide:i,useFactory:r=>i.create(t,r||RI()),deps:[[i,new qa,new Ls]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(r)return r;throw new O(901,!1)}}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:RI}),i})();const xq=pI(null,"core",[]);let kq=(()=>{var e;class i{constructor(t){}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Nr))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function Cl(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Fy=null;function zs(){return Fy}class Lq{}const xe=new M("DocumentToken");let Ny=(()=>{var e;class i{historyGo(t){throw new Error("Not implemented")}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(Vq)},providedIn:"platform"}),i})();const Bq=new M("Location Initialized");let Vq=(()=>{var e;class i extends Ny{constructor(){super(),this._doc=G(xe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zs().getBaseHref(this._doc)}onPopState(t){const r=zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,s){this._history.pushState(t,r,s)}replaceState(t,r,s){this._history.replaceState(t,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return new e},providedIn:"platform"}),i})();function Py(e,i){if(0==e.length)return i;if(0==i.length)return e;let n=0;return e.endsWith("/")&&n++,i.startsWith("/")&&n++,2==n?e+i.substring(1):1==n?e+i:e+"/"+i}function jI(e){const i=e.match(/#|\?|$/),n=i&&i.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function as(e){return e&&"?"!==e[0]?"?"+e:e}let jo=(()=>{var e;class i{historyGo(t){throw new Error("Not implemented")}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(HI)},providedIn:"root"}),i})();const zI=new M("appBaseHref");let HI=(()=>{var e;class i extends jo{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??G(xe).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 Py(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+as(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${r}${s}`:r}pushState(t,r,s,o){const a=this.prepareExternalUrl(s+as(o));this._platformLocation.pushState(t,r,a)}replaceState(t,r,s,o){const a=this.prepareExternalUrl(s+as(o));this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ny),x(zI,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),jq=(()=>{var e;class i extends jo{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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 r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Py(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,s,o){let a=this.prepareExternalUrl(s+as(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(t,r,a)}replaceState(t,r,s,o){let a=this.prepareExternalUrl(s+as(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ny),x(zI,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),Rd=(()=>{var e;class i{constructor(t){this._subject=new W,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function $q(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(jI($I(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+as(r))}normalize(t){return i.stripTrailingSlash(function Hq(e,i){if(!e||!i.startsWith(e))return i;const n=i.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:i}(this._basePath,$I(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",s=null){this._locationStrategy.pushState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+as(r)),s)}replaceState(t,r="",s=null){this._locationStrategy.replaceState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+as(r)),s)}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(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(s=>s(t,r))}subscribe(t,r,s){return this._subject.subscribe({next:t,error:r,complete:s})}}return(e=i).normalizeQueryParams=as,e.joinWithSlash=Py,e.stripTrailingSlash=jI,e.\u0275fac=function(t){return new(t||e)(x(jo))},e.\u0275prov=P({token:e,factory:function(){return function zq(){return new Rd(x(jo))}()},providedIn:"root"}),i})();function $I(e){return e.replace(/\/index.html$/,"")}var Ui=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Ui||{}),yt=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(yt||{}),wn=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(wn||{}),Kt=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Kt||{});function km(e,i){return Pn(Hi(e)[Ct.DateFormat],i)}function Cm(e,i){return Pn(Hi(e)[Ct.TimeFormat],i)}function Dm(e,i){return Pn(Hi(e)[Ct.DateTimeFormat],i)}function Nn(e,i){const n=Hi(e),t=n[Ct.NumberSymbols][i];if(typeof t>"u"){if(i===Kt.CurrencyDecimal)return n[Ct.NumberSymbols][Kt.Decimal];if(i===Kt.CurrencyGroup)return n[Ct.NumberSymbols][Kt.Group]}return t}function GI(e){if(!e[Ct.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Ct.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Pn(e,i){for(let n=i;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function By(e){const[i,n]=e.split(":");return{hours:+i,minutes:+n}}const r7=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Od={},s7=/((?:[^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 ls=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(ls||{}),dt=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(dt||{}),ut=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(ut||{});function o7(e,i,n,t){let r=function p7(e){if(YI(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,s=1,o=1]=e.split("-").map(a=>+a);return Sm(r,s-1,o)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let t;if(t=e.match(r7))return function g7(e){const i=new Date(0);let n=0,t=0;const r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(n=Number(e[9]+e[10]),t=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-t,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(i,o,a,l,c),i}(t)}const i=new Date(e);if(!YI(i))throw new Error(`Unable to convert "${e}" into a date`);return i}(e);i=cs(n,i)||i;let a,o=[];for(;i;){if(a=s7.exec(i),!a){o.push(i);break}{o=o.concat(a.slice(1));const d=o.pop();if(!d)break;i=d}}let l=r.getTimezoneOffset();t&&(l=WI(t,l),r=function m7(e,i,n){const t=n?-1:1,r=e.getTimezoneOffset();return function f7(e,i){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+i),e}(e,t*(WI(i,r)-r))}(r,t,!0));let c="";return o.forEach(d=>{const u=function h7(e){if(jy[e])return jy[e];let i;switch(e){case"G":case"GG":case"GGG":i=Dt(ut.Eras,yt.Abbreviated);break;case"GGGG":i=Dt(ut.Eras,yt.Wide);break;case"GGGGG":i=Dt(ut.Eras,yt.Narrow);break;case"y":i=ii(dt.FullYear,1,0,!1,!0);break;case"yy":i=ii(dt.FullYear,2,0,!0,!0);break;case"yyy":i=ii(dt.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(dt.FullYear,4,0,!1,!0);break;case"Y":i=Im(1);break;case"YY":i=Im(2,!0);break;case"YYY":i=Im(3);break;case"YYYY":i=Im(4);break;case"M":case"L":i=ii(dt.Month,1,1);break;case"MM":case"LL":i=ii(dt.Month,2,1);break;case"MMM":i=Dt(ut.Months,yt.Abbreviated);break;case"MMMM":i=Dt(ut.Months,yt.Wide);break;case"MMMMM":i=Dt(ut.Months,yt.Narrow);break;case"LLL":i=Dt(ut.Months,yt.Abbreviated,Ui.Standalone);break;case"LLLL":i=Dt(ut.Months,yt.Wide,Ui.Standalone);break;case"LLLLL":i=Dt(ut.Months,yt.Narrow,Ui.Standalone);break;case"w":i=Vy(1);break;case"ww":i=Vy(2);break;case"W":i=Vy(1,!0);break;case"d":i=ii(dt.Date,1);break;case"dd":i=ii(dt.Date,2);break;case"c":case"cc":i=ii(dt.Day,1);break;case"ccc":i=Dt(ut.Days,yt.Abbreviated,Ui.Standalone);break;case"cccc":i=Dt(ut.Days,yt.Wide,Ui.Standalone);break;case"ccccc":i=Dt(ut.Days,yt.Narrow,Ui.Standalone);break;case"cccccc":i=Dt(ut.Days,yt.Short,Ui.Standalone);break;case"E":case"EE":case"EEE":i=Dt(ut.Days,yt.Abbreviated);break;case"EEEE":i=Dt(ut.Days,yt.Wide);break;case"EEEEE":i=Dt(ut.Days,yt.Narrow);break;case"EEEEEE":i=Dt(ut.Days,yt.Short);break;case"a":case"aa":case"aaa":i=Dt(ut.DayPeriods,yt.Abbreviated);break;case"aaaa":i=Dt(ut.DayPeriods,yt.Wide);break;case"aaaaa":i=Dt(ut.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":i=Dt(ut.DayPeriods,yt.Abbreviated,Ui.Standalone,!0);break;case"bbbb":i=Dt(ut.DayPeriods,yt.Wide,Ui.Standalone,!0);break;case"bbbbb":i=Dt(ut.DayPeriods,yt.Narrow,Ui.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dt(ut.DayPeriods,yt.Abbreviated,Ui.Format,!0);break;case"BBBB":i=Dt(ut.DayPeriods,yt.Wide,Ui.Format,!0);break;case"BBBBB":i=Dt(ut.DayPeriods,yt.Narrow,Ui.Format,!0);break;case"h":i=ii(dt.Hours,1,-12);break;case"hh":i=ii(dt.Hours,2,-12);break;case"H":i=ii(dt.Hours,1);break;case"HH":i=ii(dt.Hours,2);break;case"m":i=ii(dt.Minutes,1);break;case"mm":i=ii(dt.Minutes,2);break;case"s":i=ii(dt.Seconds,1);break;case"ss":i=ii(dt.Seconds,2);break;case"S":i=ii(dt.FractionalSeconds,1);break;case"SS":i=ii(dt.FractionalSeconds,2);break;case"SSS":i=ii(dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Mm(ls.Short);break;case"ZZZZZ":i=Mm(ls.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Mm(ls.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Mm(ls.Long);break;default:return null}return jy[e]=i,i}(d);c+=u?u(r,n,l):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Sm(e,i,n){const t=new Date(0);return t.setFullYear(e,i,n),t.setHours(0,0,0),t}function cs(e,i){const n=function Gq(e){return Hi(e)[Ct.LocaleId]}(e);if(Od[n]=Od[n]||{},Od[n][i])return Od[n][i];let t="";switch(i){case"shortDate":t=km(e,wn.Short);break;case"mediumDate":t=km(e,wn.Medium);break;case"longDate":t=km(e,wn.Long);break;case"fullDate":t=km(e,wn.Full);break;case"shortTime":t=Cm(e,wn.Short);break;case"mediumTime":t=Cm(e,wn.Medium);break;case"longTime":t=Cm(e,wn.Long);break;case"fullTime":t=Cm(e,wn.Full);break;case"short":const r=cs(e,"shortTime"),s=cs(e,"shortDate");t=Em(Dm(e,wn.Short),[r,s]);break;case"medium":const o=cs(e,"mediumTime"),a=cs(e,"mediumDate");t=Em(Dm(e,wn.Medium),[o,a]);break;case"long":const l=cs(e,"longTime"),c=cs(e,"longDate");t=Em(Dm(e,wn.Long),[l,c]);break;case"full":const d=cs(e,"fullTime"),u=cs(e,"fullDate");t=Em(Dm(e,wn.Full),[d,u])}return t&&(Od[n][i]=t),t}function Em(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(n,t){return null!=i&&t in i?i[t]:n})),e}function nr(e,i,n="-",t,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length0||a>-n)&&(a+=n),e===dt.Hours)0===a&&-12===n&&(a=12);else if(e===dt.FractionalSeconds)return function a7(e,i){return nr(e,3).substring(0,i)}(a,i);const l=Nn(o,Kt.MinusSign);return nr(a,i,l,t,r)}}function Dt(e,i,n=Ui.Format,t=!1){return function(r,s){return function c7(e,i,n,t,r,s){switch(n){case ut.Months:return function Yq(e,i,n){const t=Hi(e),s=Pn([t[Ct.MonthsFormat],t[Ct.MonthsStandalone]],i);return Pn(s,n)}(i,r,t)[e.getMonth()];case ut.Days:return function Wq(e,i,n){const t=Hi(e),s=Pn([t[Ct.DaysFormat],t[Ct.DaysStandalone]],i);return Pn(s,n)}(i,r,t)[e.getDay()];case ut.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(s){const c=function Qq(e){const i=Hi(e);return GI(i),(i[Ct.ExtraData][2]||[]).map(t=>"string"==typeof t?By(t):[By(t[0]),By(t[1])])}(i),d=function Jq(e,i,n){const t=Hi(e);GI(t);const s=Pn([t[Ct.ExtraData][0],t[Ct.ExtraData][1]],i)||[];return Pn(s,n)||[]}(i,r,t),u=c.findIndex(h=>{if(Array.isArray(h)){const[f,_]=h,g=o>=f.hours&&a>=f.minutes,m=o<_.hours||o===_.hours&&a<_.minutes;if(f.hours<_.hours){if(g&&m)return!0}else if(g||m)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==u)return d[u]}return function qq(e,i,n){const t=Hi(e),s=Pn([t[Ct.DayPeriodsFormat],t[Ct.DayPeriodsStandalone]],i);return Pn(s,n)}(i,r,t)[o<12?0:1];case ut.Eras:return function Kq(e,i){return Pn(Hi(e)[Ct.Eras],i)}(i,t)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(r,s,e,i,n,t)}}function Mm(e){return function(i,n,t){const r=-1*t,s=Nn(n,Kt.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case ls.Short:return(r>=0?"+":"")+nr(o,2,s)+nr(Math.abs(r%60),2,s);case ls.ShortGMT:return"GMT"+(r>=0?"+":"")+nr(o,1,s);case ls.Long:return"GMT"+(r>=0?"+":"")+nr(o,2,s)+":"+nr(Math.abs(r%60),2,s);case ls.Extended:return 0===t?"Z":(r>=0?"+":"")+nr(o,2,s)+":"+nr(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}const d7=0,Tm=4;function qI(e){return Sm(e.getFullYear(),e.getMonth(),e.getDate()+(Tm-e.getDay()))}function Vy(e,i=!1){return function(n,t){let r;if(i){const s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();r=1+Math.floor((o+s)/7)}else{const s=qI(n),o=function u7(e){const i=Sm(e,d7,1).getDay();return Sm(e,0,1+(i<=Tm?Tm:Tm+7)-i)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return nr(r,e,Nn(t,Kt.MinusSign))}}function Im(e,i=!1){return function(n,t){return nr(qI(n).getFullYear(),e,Nn(t,Kt.MinusSign),i)}}const jy={};function WI(e,i){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?i:n}function YI(e){return e instanceof Date&&!isNaN(e.valueOf())}function QI(e,i){i=encodeURIComponent(i);for(const n of e.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}const qy=/\s+/,JI=[];let Wy=(()=>{var e;class i{constructor(t,r,s,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=s,this._renderer=o,this.initialClasses=JI,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(qy):JI}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(qy):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const s=this.stateMap.get(t);void 0!==s?(s.enabled!==r&&(s.changed=!0,s.enabled=r),s.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],s=t[1];s.changed?(this._toggleClass(r,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),s.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(qy).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fn),p(Ad),p(ne),p(rs))},e.\u0275dir=I({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),i})();class I7{constructor(i,n,t,r){this.$implicit=i,this.ngForOf=n,this.index=t,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 Nd=(()=>{var e;class i{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,s){this._viewContainer=t,this._template=r,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 r=this._viewContainer;t.forEachOperation((s,o,a)=>{if(null==s.previousIndex)r.createEmbeddedView(this._template,new I7(s.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===o?void 0:o);else if(null!==o){const l=r.get(o);r.move(l,a),tA(l,s)}});for(let s=0,o=r.length;s{tA(r.get(s.currentIndex),s)})}static ngTemplateContextGuard(t,r){return!0}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt),p(Fn))},e.\u0275dir=I({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),i})();function tA(e,i){e.context.$implicit=i.item}let ki=(()=>{var e;class i{constructor(t,r){this._viewContainer=t,this._context=new A7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){iA("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){iA("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,r){return!0}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt))},e.\u0275dir=I({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),i})();class A7{constructor(){this.$implicit=null,this.ngIf=null}}function iA(e,i){if(i&&!i.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${oi(i)}'.`)}class Yy{constructor(i,n){this._viewContainerRef=i,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let Pd=(()=>{var e;class i{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const r of this._defaultViews)r.enforceState(t)}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),i})(),Ky=(()=>{var e;class i{constructor(t,r,s){this.ngSwitch=s,s._addCase(),this._view=new Yy(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt),p(Pd,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),i})(),nA=(()=>{var e;class i{constructor(t,r,s){s._addDefault(new Yy(t,r))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(Pt),p(Pd,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),i})(),sA=(()=>{var e;class i{constructor(t,r,s){this._ngEl=t,this._differs=r,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[s,o]=t.split("."),a=-1===s.indexOf("-")?void 0:Bs.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,s,o?`${r}${o}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,s,a)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ad),p(rs))},e.\u0275dir=I({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),i})();function rr(e,i){return new O(2100,!1)}class O7{createSubscription(i,n){return HD(()=>i.subscribe({next:n,error:t=>{throw t}}))}dispose(i){HD(()=>i.unsubscribe())}}class F7{createSubscription(i,n){return i.then(n,t=>{throw t})}dispose(i){}}const N7=new F7,P7=new O7;let Pr=(()=>{var e;class i{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(yd(t))return N7;if(qE(t))return P7;throw rr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st,16))},e.\u0275pipe=Li({name:"async",type:e,pure:!1,standalone:!0}),i})();const H7=new M("DATE_PIPE_DEFAULT_TIMEZONE"),$7=new M("DATE_PIPE_DEFAULT_OPTIONS");let Rm=(()=>{var e;class i{constructor(t,r,s){this.locale=t,this.defaultTimezone=r,this.defaultOptions=s}transform(t,r,s,o){if(null==t||""===t||t!=t)return null;try{return o7(t,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,s??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw rr()}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fr,16),p(H7,24),p($7,24))},e.\u0275pipe=Li({name:"date",type:e,pure:!0,standalone:!0}),i})(),Ln=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const lA="browser";function Om(e){return e===lA}function cA(e){return"server"===e}let i9=(()=>{var e;class i{}return(e=i).\u0275prov=P({token:e,providedIn:"root",factory:()=>new n9(x(xe),window)}),i})();class n9{constructor(i,n){this.document=i,this.window=n,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const n=function r9(e,i){const n=e.getElementById(i)||e.getElementsByName(i)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const t=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=t.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=t.nextNode()}}return null}(this.document,i);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const n=i.getBoundingClientRect(),t=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(t-s[0],r-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dA{}class E9 extends Lq{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class e0 extends E9{static makeCurrent(){!function Pq(e){Fy||(Fy=e)}(new e0)}onAndCancel(i,n,t){return i.addEventListener(n,t),()=>{i.removeEventListener(n,t)}}dispatchEvent(i,n){i.dispatchEvent(n)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,n){return(n=n||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,n){return"window"===n?window:"document"===n?i:"body"===n?i.body:null}getBaseHref(i){const n=function M9(){return Bd=Bd||document.querySelector("base"),Bd?Bd.getAttribute("href"):null}();return null==n?null:function T9(e){Pm=Pm||document.createElement("a"),Pm.setAttribute("href",e);const i=Pm.pathname;return"/"===i.charAt(0)?i:`/${i}`}(n)}resetBaseElement(){Bd=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return QI(document.cookie,i)}}let Pm,Bd=null,A9=(()=>{var e;class i{build(){return new XMLHttpRequest}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const t0=new M("EventManagerPlugins");let pA=(()=>{var e;class i{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(t,r),r}}return(e=i).\u0275fac=function(t){return new(t||e)(x(t0),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class gA{constructor(i){this._doc=i}}const n0="ng-app-id";let _A=(()=>{var e;class i{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=cA(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${n0}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(s=>{null!=s.textContent&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){const s=this.styleRef;if(s.has(t)){const o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===t)return s.delete(r),o.removeAttribute(n0),o;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(n0,this.appId),a}}addStyleToHost(t,r){const s=this.getStyleElement(t,r);t.appendChild(s);const o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(od),x(fv,8),x(er))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const r0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},s0=/%COMP%/g,N9=new M("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vA(e,i){return i.map(n=>n.replace(s0,e))}let o0=(()=>{var e;class i{constructor(t,r,s,o,a,l,c,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=cA(l),this.defaultRenderer=new a0(t,a,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===In.ShadowDom&&(r={...r,encapsulation:In.Emulated});const s=this.getOrCreateRenderer(t,r);return s instanceof wA?s.applyToHost(t):s instanceof l0&&s.applyStyles(),s}getOrCreateRenderer(t,r){const s=this.rendererByCompId;let o=s.get(r.id);if(!o){const a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case In.Emulated:o=new wA(c,d,r,this.appId,u,a,l,h);break;case In.ShadowDom:return new V9(c,d,t,r,a,l,this.nonce,h);default:o=new l0(c,d,r,u,a,l,h)}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(pA),x(_A),x(od),x(N9),x(xe),x(er),x(ce),x(fv))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class a0{constructor(i,n,t,r){this.eventManager=i,this.doc=n,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,n){return n?this.doc.createElementNS(r0[n]||n,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,n){(yA(i)?i.content:i).appendChild(n)}insertBefore(i,n,t){i&&(yA(i)?i.content:i).insertBefore(n,t)}removeChild(i,n){i&&i.removeChild(n)}selectRootElement(i,n){let t="string"==typeof i?this.doc.querySelector(i):i;if(!t)throw new O(-5104,!1);return n||(t.textContent=""),t}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,n,t,r){if(r){n=r+":"+n;const s=r0[r];s?i.setAttributeNS(s,n,t):i.setAttribute(n,t)}else i.setAttribute(n,t)}removeAttribute(i,n,t){if(t){const r=r0[t];r?i.removeAttributeNS(r,n):i.removeAttribute(`${t}:${n}`)}else i.removeAttribute(n)}addClass(i,n){i.classList.add(n)}removeClass(i,n){i.classList.remove(n)}setStyle(i,n,t,r){r&(Bs.DashCase|Bs.Important)?i.style.setProperty(n,t,r&Bs.Important?"important":""):i.style[n]=t}removeStyle(i,n,t){t&Bs.DashCase?i.style.removeProperty(n):i.style[n]=""}setProperty(i,n,t){i[n]=t}setValue(i,n){i.nodeValue=n}listen(i,n,t){if("string"==typeof i&&!(i=zs().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${n}`);return this.eventManager.addEventListener(i,n,this.decoratePreventDefault(t))}decoratePreventDefault(i){return n=>{if("__ngUnwrap__"===n)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(n)):i(n))&&n.preventDefault()}}}function yA(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class V9 extends a0{constructor(i,n,t,r,s,o,a,l){super(i,s,o,l),this.sharedStylesHost=n,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vA(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,n){return super.appendChild(this.nodeOrShadowRoot(i),n)}insertBefore(i,n,t){return super.insertBefore(this.nodeOrShadowRoot(i),n,t)}removeChild(i,n){return super.removeChild(this.nodeOrShadowRoot(i),n)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class l0 extends a0{constructor(i,n,t,r,s,o,a,l){super(i,s,o,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=r,this.styles=l?vA(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class wA extends l0{constructor(i,n,t,r,s,o,a,l){const c=r+"-"+t.id;super(i,n,t,s,o,a,l,c),this.contentAttr=function P9(e){return"_ngcontent-%COMP%".replace(s0,e)}(c),this.hostAttr=function L9(e){return"_nghost-%COMP%".replace(s0,e)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,n){const t=super.createElement(i,n);return super.setAttribute(t,this.contentAttr,""),t}}let j9=(()=>{var e;class i extends gA{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const xA=["alt","control","meta","shift"],z9={"\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"},H9={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $9=(()=>{var e;class i extends gA{constructor(t){super(t)}supports(t){return null!=i.parseEventName(t)}addEventListener(t,r,s){const o=i.parseEventName(r),a=i.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zs().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const o=i._normalizeKey(r.pop());let a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),xA.forEach(d=>{const u=r.indexOf(d);u>-1&&(r.splice(u,1),a+=d+".")}),a+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(t,r){let s=z9[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),!(null==s||!s)&&(s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),xA.forEach(a=>{a!==s&&(0,H9[a])(t)&&(o+=a+".")}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{i.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const CA=[{provide:er,useValue:lA},{provide:RS,useValue:function U9(){e0.makeCurrent()},multi:!0},{provide:xe,useFactory:function q9(){return function O5(e){tv=e}(document),document},deps:[]}],W9=pI(xq,"browser",CA),Y9=new M(""),DA=[{provide:_m,useClass:class I9{addToWindow(i){vt.getAngularTestability=(t,r=!0)=>{const s=i.findTestabilityInTree(t,r);if(null==s)throw new O(5103,!1);return s},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.frameworkStabilizers=[]),vt.frameworkStabilizers.push(t=>{const r=vt.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&t(o)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,n,t){return null==n?null:i.getTestability(n)??(t?zs().isShadowRoot(n)?this.findTestabilityInTree(i,n.host,!0):this.findTestabilityInTree(i,n.parentElement,!0):null)}},deps:[]},{provide:dI,useClass:ky,deps:[ce,Cy,_m]},{provide:ky,useClass:ky,deps:[ce,Cy,_m]}],SA=[{provide:cv,useValue:"root"},{provide:Tr,useFactory:function G9(){return new Tr},deps:[]},{provide:t0,useClass:j9,multi:!0,deps:[xe,ce,er]},{provide:t0,useClass:$9,multi:!0,deps:[xe]},o0,_A,pA,{provide:dd,useExisting:o0},{provide:dA,useClass:A9,deps:[]},[]];let EA=(()=>{var e;class i{constructor(t){}static withServerTransition(t){return{ngModule:i,providers:[{provide:od,useValue:t.appId}]}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Y9,12))},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[...SA,...DA],imports:[Ln,kq]}),i})(),MA=(()=>{var e;class i{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new t:function X9(){return new MA(x(xe))}(),r},providedIn:"root"}),i})();typeof window<"u"&&window;let d0=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new(t||e):x(AA),r},providedIn:"root"}),i})(),AA=(()=>{var e;class i extends d0{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case xi.NONE:return r;case xi.HTML:return Mr(r,"HTML")?_n(r):wS(this._doc,String(r)).toString();case xi.STYLE:return Mr(r,"Style")?_n(r):r;case xi.SCRIPT:if(Mr(r,"Script"))return _n(r);throw new O(5200,!1);case xi.URL:return Mr(r,"URL")?_n(r):Af(String(r));case xi.RESOURCE_URL:if(Mr(r,"ResourceURL"))return _n(r);throw new O(5201,!1);default:throw new O(5202,!1)}}bypassSecurityTrustHtml(t){return function j5(e){return new F5(e)}(t)}bypassSecurityTrustStyle(t){return function z5(e){return new N5(e)}(t)}bypassSecurityTrustScript(t){return function H5(e){return new P5(e)}(t)}bypassSecurityTrustUrl(t){return function $5(e){return new L5(e)}(t)}bypassSecurityTrustResourceUrl(t){return function U5(e){return new B5(e)}(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new t:function eW(e){return new AA(e.get(xe))}(x(kt)),r},providedIn:"root"}),i})();class tW{constructor(i,n){this._document=n;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=i,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){const i=this._textarea;let n=!1;try{if(i){const t=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),n=this._document.execCommand("copy"),t&&t.focus()}}catch{}return n}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let iW=(()=>{var e;class i{constructor(t){this._document=t}copy(t){const r=this.beginCopy(t),s=r.copy();return r.destroy(),s}beginCopy(t){return new tW(t,this._document)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),nW=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function $s(e,i){return Ue(i)?Bt(e,i,1):Bt(e,1)}function $e(e,i){return wt((n,t)=>{let r=0;n.subscribe(ft(t,s=>e.call(i,s,r++)&&t.next(s)))})}function Sl(e){return wt((i,n)=>{try{i.subscribe(n)}finally{n.add(e)}})}class Lm{}class El{}class sr{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(n=>{const t=n.indexOf(":");if(t>0){const r=n.slice(0,t),s=r.toLowerCase(),o=n.slice(t+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((n,t)=>{this.setHeaderEntries(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const n=this.headers.get(i.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,n){return this.clone({name:i,value:n,op:"a"})}set(i,n){return this.clone({name:i,value:n,op:"s"})}delete(i,n){return this.clone({name:i,value:n,op:"d"})}maybeSetNormalizedName(i,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,i)}init(){this.lazyInit&&(this.lazyInit instanceof sr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(n=>{this.headers.set(n,i.headers.get(n)),this.normalizedNames.set(n,i.normalizedNames.get(n))})}clone(i){const n=new sr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof sr?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([i]),n}applyUpdate(i){const n=i.name.toLowerCase();switch(i.op){case"a":case"s":let t=i.value;if("string"==typeof t&&(t=[t]),0===t.length)return;this.maybeSetNormalizedName(i.name,n);const r=("a"===i.op?this.headers.get(n):void 0)||[];r.push(...t),this.headers.set(n,r);break;case"d":const s=i.value;if(s){let o=this.headers.get(n);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(i,n){const t=(Array.isArray(n)?n:[n]).map(s=>s.toString()),r=i.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>i(this.normalizedNames.get(n),this.headers.get(n)))}}class rW{encodeKey(i){return OA(i)}encodeValue(i){return OA(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const oW=/%(\d[a-f0-9])/gi,aW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function OA(e){return encodeURIComponent(e).replace(oW,(i,n)=>aW[n]??i)}function Bm(e){return`${e}`}class ds{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new rW,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function sW(e,i){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,s)),i.decodeValue(r.slice(s+1))],l=n.get(o)||[];l.push(a),n.set(o,l)}),n}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(n=>{const t=i.fromObject[n],r=Array.isArray(t)?t.map(Bm):[Bm(t)];this.map.set(n,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const n=this.map.get(i);return n?n[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,n){return this.clone({param:i,value:n,op:"a"})}appendAll(i){const n=[];return Object.keys(i).forEach(t=>{const r=i[t];Array.isArray(r)?r.forEach(s=>{n.push({param:t,value:s,op:"a"})}):n.push({param:t,value:r,op:"a"})}),this.clone(n)}set(i,n){return this.clone({param:i,value:n,op:"s"})}delete(i,n){return this.clone({param:i,value:n,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const n=this.encoder.encodeKey(i);return this.map.get(i).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const n=new ds({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(i),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const n=("a"===i.op?this.map.get(i.param):void 0)||[];n.push(Bm(i.value)),this.map.set(i.param,n);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let t=this.map.get(i.param)||[];const r=t.indexOf(Bm(i.value));-1!==r&&t.splice(r,1),t.length>0?this.map.set(i.param,t):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class lW{constructor(){this.map=new Map}set(i,n){return this.map.set(i,n),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function FA(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function NA(e){return typeof Blob<"u"&&e instanceof Blob}function PA(e){return typeof FormData<"u"&&e instanceof FormData}class zo{constructor(i,n,t,r){let s;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function cW(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!==t?t:null,s=r):s=t,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new sr),this.context||(this.context=new lW),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":au.set(h,i.setHeaders[h]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((u,h)=>u.set(h,i.setParams[h]),c)),new zo(n,t,s,{params:c,headers:l,context:d,reportProgress:a,responseType:r,withCredentials:o})}}var Lr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Lr||{});class u0{constructor(i,n=200,t="OK"){this.headers=i.headers||new sr,this.status=void 0!==i.status?i.status:n,this.statusText=i.statusText||t,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class h0 extends u0{constructor(i={}){super(i),this.type=Lr.ResponseHeader}clone(i={}){return new h0({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Us extends u0{constructor(i={}){super(i),this.type=Lr.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Us({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class LA extends u0{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function f0(e,i){return{body:i,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Vm=(()=>{var e;class i{constructor(t){this.handler=t}request(t,r,s={}){let o;if(t instanceof zo)o=t;else{let c,d;c=s.headers instanceof sr?s.headers:new sr(s.headers),s.params&&(d=s.params instanceof ds?s.params:new ds({fromObject:s.params})),o=new zo(t,r,void 0!==s.body?s.body:null,{headers:c,context:s.context,params:d,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const a=ee(o).pipe($s(c=>this.handler.handle(c)));if(t instanceof zo||"events"===s.observe)return a;const l=a.pipe($e(c=>c instanceof Us));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(se(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(se(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(se(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return l.pipe(se(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new ds).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,f0(s,r))}post(t,r,s={}){return this.request("POST",t,f0(s,r))}put(t,r,s={}){return this.request("PUT",t,f0(s,r))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Lm))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function jA(e,i){return i(e)}function hW(e,i){return(n,t)=>i.intercept(n,{handle:r=>e(r,t)})}const mW=new M(""),Vd=new M(""),zA=new M("");function pW(){let e=null;return(i,n)=>{null===e&&(e=(G(mW,{optional:!0})??[]).reduceRight(hW,jA));const t=G(pm),r=t.add();return e(i,n).pipe(Sl(()=>t.remove(r)))}}let HA=(()=>{var e;class i extends Lm{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=G(pm)}handle(t){if(null===this.chain){const s=Array.from(new Set([...this.injector.get(Vd),...this.injector.get(zA,[])]));this.chain=s.reduceRight((o,a)=>function fW(e,i,n){return(t,r)=>n.runInContext(()=>i(t,s=>e(s,r)))}(o,a,this.injector),jA)}const r=this.pendingTasks.add();return this.chain(t,s=>this.backend.handle(s)).pipe(Sl(()=>this.pendingTasks.remove(r)))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(El),x(bn))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const vW=/^\)\]\}',?\n/;let UA=(()=>{var e;class i{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new O(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Jt(r.\u0275loadImpl()):ee(null)).pipe(ei(()=>new et(o=>{const a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((m,b)=>a.setRequestHeader(m,b.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&a.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();a.responseType="json"!==m?m:"text"}const l=t.serializeBody();let c=null;const d=()=>{if(null!==c)return c;const m=a.statusText||"OK",b=new sr(a.getAllResponseHeaders()),v=function yW(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||t.url;return c=new h0({headers:b,status:a.status,statusText:m,url:v}),c},u=()=>{let{headers:m,status:b,statusText:v,url:w}=d(),y=null;204!==b&&(y=typeof a.response>"u"?a.responseText:a.response),0===b&&(b=y?200:0);let E=b>=200&&b<300;if("json"===t.responseType&&"string"==typeof y){const T=y;y=y.replace(vW,"");try{y=""!==y?JSON.parse(y):null}catch(B){y=T,E&&(E=!1,y={error:B,text:y})}}E?(o.next(new Us({body:y,headers:m,status:b,statusText:v,url:w||void 0})),o.complete()):o.error(new LA({error:y,headers:m,status:b,statusText:v,url:w||void 0}))},h=m=>{const{url:b}=d(),v=new LA({error:m,status:a.status||0,statusText:a.statusText||"Unknown Error",url:b||void 0});o.error(v)};let f=!1;const _=m=>{f||(o.next(d()),f=!0);let b={type:Lr.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),"text"===t.responseType&&a.responseText&&(b.partialText=a.responseText),o.next(b)},g=m=>{let b={type:Lr.UploadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),o.next(b)};return a.addEventListener("load",u),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),t.reportProgress&&(a.addEventListener("progress",_),null!==l&&a.upload&&a.upload.addEventListener("progress",g)),a.send(l),o.next({type:Lr.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",u),a.removeEventListener("timeout",h),t.reportProgress&&(a.removeEventListener("progress",_),null!==l&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dA))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const m0=new M("XSRF_ENABLED"),GA=new M("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),qA=new M("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class WA{}let kW=(()=>{var e;class i{constructor(t,r,s){this.doc=t,this.platform=r,this.cookieName=s,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=QI(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(er),x(GA))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function CW(e,i){const n=e.url.toLowerCase();if(!G(m0)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return i(e);const t=G(WA).getToken(),r=G(qA);return null!=t&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,t)})),i(e)}var Gs=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Gs||{});function Ho(e,i){return{\u0275kind:e,\u0275providers:i}}function DW(...e){const i=[Vm,UA,HA,{provide:Lm,useExisting:HA},{provide:El,useExisting:UA},{provide:Vd,useValue:CW,multi:!0},{provide:m0,useValue:!0},{provide:WA,useClass:kW}];for(const n of e)i.push(...n.\u0275providers);return Of(i)}const YA=new M("LEGACY_INTERCEPTOR_FN");let EW=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[DW(Ho(Gs.LegacyInterceptors,[{provide:YA,useFactory:pW},{provide:Vd,useExisting:YA,multi:!0}]))]}),i})();const{isArray:OW}=Array,{getPrototypeOf:FW,prototype:NW,keys:PW}=Object;function KA(e){if(1===e.length){const i=e[0];if(OW(i))return{args:i,keys:null};if(function LW(e){return e&&"object"==typeof e&&FW(e)===NW}(i)){const n=PW(i);return{args:n.map(t=>i[t]),keys:n}}}return{args:e,keys:null}}const{isArray:BW}=Array;function p0(e){return se(i=>function VW(e,i){return BW(i)?e(...i):e(i)}(e,i))}function XA(e,i){return e.reduce((n,t,r)=>(n[t]=i[r],n),{})}function jd(...e){const i=K_(e),{args:n,keys:t}=KA(e),r=new et(s=>{const{length:o}=n;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||s.next(t?XA(t,a):a),s.complete())}))}});return i?r.pipe(p0(i)):r}let ZA=(()=>{var e;class i{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(rs),p(ne))},e.\u0275dir=I({type:e}),i})(),$o=(()=>{var e;class i extends ZA{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,features:[L]}),i})();const Ci=new M("NgValueAccessor"),zW={provide:Ci,useExisting:Ye(()=>Uo),multi:!0},$W=new M("CompositionEventMode");let Uo=(()=>{var e;class i extends ZA{constructor(t,r,s){super(t,r),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function HW(){const e=zs()?zs().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=i).\u0275fac=function(t){return new(t||e)(p(rs),p(ne),p($W,8))},e.\u0275dir=I({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,r){1&t&&H("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[K([zW]),L]}),i})();function qs(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function JA(e){return null!=e&&"number"==typeof e.length}const pi=new M("NgValidators"),Ws=new M("NgAsyncValidators"),UW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ml{static min(i){return function eR(e){return i=>{if(qs(i.value)||qs(e))return null;const n=parseFloat(i.value);return!isNaN(n)&&n{if(qs(i.value)||qs(e))return null;const n=parseFloat(i.value);return!isNaN(n)&&n>e?{max:{max:e,actual:i.value}}:null}}(i)}static required(i){return iR(i)}static requiredTrue(i){return function nR(e){return!0===e.value?null:{required:!0}}(i)}static email(i){return function rR(e){return qs(e.value)||UW.test(e.value)?null:{email:!0}}(i)}static minLength(i){return function sR(e){return i=>qs(i.value)||!JA(i.value)?null:i.value.lengthJA(i.value)&&i.value.length>e?{maxlength:{requiredLength:e,actualLength:i.value.length}}:null}(i)}static pattern(i){return function aR(e){if(!e)return zm;let i,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),i=new RegExp(n)):(n=e.toString(),i=e),t=>{if(qs(t.value))return null;const r=t.value;return i.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}(i)}static nullValidator(i){return null}static compose(i){return fR(i)}static composeAsync(i){return mR(i)}}function iR(e){return qs(e.value)?{required:!0}:null}function zm(e){return null}function lR(e){return null!=e}function cR(e){return yd(e)?Jt(e):e}function dR(e){let i={};return e.forEach(n=>{i=null!=n?{...i,...n}:i}),0===Object.keys(i).length?null:i}function uR(e,i){return i.map(n=>n(e))}function hR(e){return e.map(i=>function GW(e){return!e.validate}(i)?i:n=>i.validate(n))}function fR(e){if(!e)return null;const i=e.filter(lR);return 0==i.length?null:function(n){return dR(uR(n,i))}}function g0(e){return null!=e?fR(hR(e)):null}function mR(e){if(!e)return null;const i=e.filter(lR);return 0==i.length?null:function(n){return jd(uR(n,i).map(cR)).pipe(se(dR))}}function _0(e){return null!=e?mR(hR(e)):null}function pR(e,i){return null===e?[i]:Array.isArray(e)?[...e,i]:[e,i]}function gR(e){return e._rawValidators}function _R(e){return e._rawAsyncValidators}function b0(e){return e?Array.isArray(e)?e:[e]:[]}function Hm(e,i){return Array.isArray(e)?e.includes(i):e===i}function bR(e,i){const n=b0(i);return b0(e).forEach(r=>{Hm(n,r)||n.push(r)}),n}function vR(e,i){return b0(i).filter(n=>!Hm(e,n))}class yR{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(i){this._rawValidators=i||[],this._composedValidatorFn=g0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=_0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,n){return!!this.control&&this.control.hasError(i,n)}getError(i,n){return this.control?this.control.getError(i,n):null}}class Gi extends yR{get formDirective(){return null}get path(){return null}}class or extends yR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wR{constructor(i){this._cd=i}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}}let zd=(()=>{var e;class i extends wR{constructor(t){super(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(or,2))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&fe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[L]}),i})();const Hd="VALID",Um="INVALID",Tl="PENDING",$d="DISABLED";function w0(e){return(Gm(e)?e.validators:e)||null}function x0(e,i){return(Gm(i)?i.asyncValidators:e)||null}function Gm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class DR{constructor(i,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Hd}get invalid(){return this.status===Um}get pending(){return this.status==Tl}get disabled(){return this.status===$d}get enabled(){return this.status!==$d}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(bR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(bR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(vR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(vR(i,this._rawAsyncValidators))}hasValidator(i){return Hm(this._rawValidators,i)}hasAsyncValidator(i){return Hm(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const n=this._parentMarkedDirty(i.onlySelf);this.status=$d,this.errors=null,this._forEachChild(t=>{t.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:n}),this._onDisabledChange.forEach(t=>t(!0))}enable(i={}){const n=this._parentMarkedDirty(i.onlySelf);this.status=Hd,this._forEachChild(t=>{t.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:n}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Hd||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$d:Hd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const n=cR(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,n={}){this.errors=i,this._updateControlsErrors(!1!==n.emitEvent)}get(i){let n=i;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((t,r)=>t&&t._find(r),this)}getError(i,n){const t=n?this.get(n):this;return t&&t.errors?t.errors[i]:null}hasError(i,n){return!!this.getError(i,n)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new W,this.statusChanges=new W}_calculateStatus(){return this._allControlsDisabled()?$d:this.errors?Um:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(Um)?Um:Hd}_anyControlsHaveStatus(i){return this._anyControls(n=>n.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Gm(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function XW(e){return Array.isArray(e)?g0(e):e||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function ZW(e){return Array.isArray(e)?_0(e):e||null}(this._rawAsyncValidators)}}class k0 extends DR{constructor(i,n,t){super(w0(n),x0(t,n)),this.controls=i,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,n){return this.controls[i]?this.controls[i]:(this.controls[i]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(i,n,t={}){this.registerControl(i,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(i,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(i,n,t={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],n&&this.registerControl(i,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,n={}){(function CR(e,i,n){e._forEachChild((t,r)=>{if(void 0===n[r])throw new O(1002,"")})})(this,0,i),Object.keys(i).forEach(t=>{(function kR(e,i,n){const t=e.controls;if(!(i?Object.keys(t):t).length)throw new O(1e3,"");if(!t[n])throw new O(1001,"")})(this,!0,t),this.controls[t].setValue(i[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(i,n={}){null!=i&&(Object.keys(i).forEach(t=>{const r=this.controls[t];r&&r.patchValue(i[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(i={},n={}){this._forEachChild((t,r)=>{t.reset(i[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(i,n,t)=>(i[t]=n.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(n,t)=>!!t._syncPendingControls()||n);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(n=>{const t=this.controls[n];t&&i(t,n)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[n,t]of Object.entries(this.controls))if(this.contains(n)&&i(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,t,r)=>((t.enabled||this.disabled)&&(n[r]=t.value),n))}_reduceChildren(i,n){let t=i;return this._forEachChild((r,s)=>{t=n(t,r,s)}),t}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}const Go=new M("CallSetDisabledState",{providedIn:"root",factory:()=>Ud}),Ud="always";function Gd(e,i,n=Ud){C0(e,i),i.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&i.valueAccessor.setDisabledState?.(e.disabled),function eY(e,i){i.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&SR(e,i)})}(e,i),function iY(e,i){const n=(t,r)=>{i.valueAccessor.writeValue(t),r&&i.viewToModelUpdate(t)};e.registerOnChange(n),i._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,i),function tY(e,i){i.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&SR(e,i),"submit"!==e.updateOn&&e.markAsTouched()})}(e,i),function JW(e,i){if(i.valueAccessor.setDisabledState){const n=t=>{i.valueAccessor.setDisabledState(t)};e.registerOnDisabledChange(n),i._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,i)}function Wm(e,i,n=!0){const t=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(t),i.valueAccessor.registerOnTouched(t)),Km(e,i),e&&(i._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ym(e,i){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(i)})}function C0(e,i){const n=gR(e);null!==i.validator?e.setValidators(pR(n,i.validator)):"function"==typeof n&&e.setValidators([n]);const t=_R(e);null!==i.asyncValidator?e.setAsyncValidators(pR(t,i.asyncValidator)):"function"==typeof t&&e.setAsyncValidators([t]);const r=()=>e.updateValueAndValidity();Ym(i._rawValidators,r),Ym(i._rawAsyncValidators,r)}function Km(e,i){let n=!1;if(null!==e){if(null!==i.validator){const r=gR(e);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==i.validator);s.length!==r.length&&(n=!0,e.setValidators(s))}}if(null!==i.asyncValidator){const r=_R(e);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==i.asyncValidator);s.length!==r.length&&(n=!0,e.setAsyncValidators(s))}}}const t=()=>{};return Ym(i._rawValidators,t),Ym(i._rawAsyncValidators,t),n}function SR(e,i){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ER(e,i){C0(e,i)}function MR(e,i){e._syncPendingControls(),i.forEach(n=>{const t=n.control;"submit"===t.updateOn&&t._pendingChange&&(n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const aY={provide:Gi,useExisting:Ye(()=>Il)},qd=(()=>Promise.resolve())();let Il=(()=>{var e;class i extends Gi{constructor(t,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new W,this.form=new k0({},g0(t),_0(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){qd.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Gd(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){qd.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){qd.then(()=>{const r=this._findContainer(t.path),s=new k0({});ER(s,t),r.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){qd.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){qd.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,MR(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return(e=i).\u0275fac=function(t){return new(t||e)(p(pi,10),p(Ws,10),p(Go,8))},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&H("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[K([aY]),L]}),i})();function TR(e,i){const n=e.indexOf(i);n>-1&&e.splice(n,1)}function IR(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const M0=class extends DR{constructor(i=null,n,t){super(w0(n),x0(t,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Gm(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=IR(i)?i.value:i)}setValue(i,n={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(i,n={}){this.setValue(i,n)}reset(i=this.defaultValue,n={}){this._applyFormState(i),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){TR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){TR(this._onDisabledChange,i)}_forEachChild(i){}_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(i){IR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},Al=M0;let PR=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const T0=new M("NgModelWithFormControlWarning"),gY={provide:or,useExisting:Ye(()=>Rl)};let Rl=(()=>{var e;class i extends or{set isDisabled(t){}constructor(t,r,s,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new W,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=function E0(e,i){if(!i)return null;let n,t,r;return Array.isArray(i),i.forEach(s=>{s.constructor===Uo?n=s:function sY(e){return Object.getPrototypeOf(e.constructor)===$o}(s)?t=s:r=s}),r||t||n||null}(0,s)}ngOnChanges(t){if(this._isControlChanged(t)){const r=t.form.previousValue;r&&Wm(r,this,!1),Gd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}(function S0(e,i){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(i,n.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Wm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return(e=i)._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(p(pi,10),p(Ws,10),p(Ci,10),p(T0,8),p(Go,8))},e.\u0275dir=I({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[K([gY]),L,bt]}),i})();const _Y={provide:Gi,useExisting:Ye(()=>Ol)};let Ol=(()=>{var e;class i extends Gi{constructor(t,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new W,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Km(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Gd(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Wm(t.control||null,t,!1),function oY(e,i){const n=e.indexOf(i);n>-1&&e.splice(n,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,MR(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,s=this.form.get(t.path);r!==s&&(Wm(r||null,t),(e=>e instanceof M0)(s)&&(Gd(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);ER(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function nY(e,i){return Km(e,i)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){C0(this.form,this),this._oldForm&&Km(this._oldForm,this)}_checkFormPresent(){}}return(e=i).\u0275fac=function(t){return new(t||e)(p(pi,10),p(Ws,10),p(Go,8))},e.\u0275dir=I({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&H("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[K([_Y]),L,bt]}),i})(),qo=(()=>{var e;class i{constructor(){this._validator=zm}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):zm,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,features:[bt]}),i})();const TY={provide:pi,useExisting:Ye(()=>Xm),multi:!0};let Xm=(()=>{var e;class i extends qo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Cl,this.createValidator=t=>iR}enabled(t){return t}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,r){2&t&&_e("required",r._enabled?"":null)},inputs:{required:"required"},features:[K([TY]),L]}),i})(),ZR=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[PR]}),i})(),PY=(()=>{var e;class i{static withConfig(t){return{ngModule:i,providers:[{provide:Go,useValue:t.callSetDisabledState??Ud}]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[ZR]}),i})(),LY=(()=>{var e;class i{static withConfig(t){return{ngModule:i,providers:[{provide:T0,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Go,useValue:t.callSetDisabledState??Ud}]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[ZR]}),i})();function us(e){return new et(i=>{si(e()).subscribe(i)})}function Ys(e,i){const n=Ue(e)?e:()=>e,t=r=>r.error(n());return new et(i?r=>i.schedule(t,0,r):t)}const BY=["addListener","removeListener"],VY=["addEventListener","removeEventListener"],jY=["on","off"];function Br(e,i,n,t){if(Ue(n)&&(t=n,n=void 0),t)return Br(e,i,n).pipe(p0(t));const[r,s]=function $Y(e){return Ue(e.addEventListener)&&Ue(e.removeEventListener)}(e)?VY.map(o=>a=>e[o](i,a,n)):function zY(e){return Ue(e.addListener)&&Ue(e.removeListener)}(e)?BY.map(QR(e,i)):function HY(e){return Ue(e.on)&&Ue(e.off)}(e)?jY.map(QR(e,i)):[];if(!r&&W_(e))return Bt(o=>Br(o,i,n))(si(e));if(!r)throw new TypeError("Invalid event target");return new et(o=>{const a=(...l)=>o.next(1s(a)})}function QR(e,i){return n=>t=>e[n](i,t)}function Vr(...e){return function UY(){return Sa(1)}()(Jt(e,Pc(e)))}const Ks=new et(Ts);function F0(){return wt((e,i)=>{let n=null;e._refCount++;const t=ft(i,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const r=e._connection,s=n;n=null,r&&(!s||r===s)&&r.unsubscribe(),i.unsubscribe()});e.subscribe(t),t.closed||(n=e.connect())})}class Qm extends et{constructor(i,n){super(),this.source=i,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,YC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Qe;const n=this.getSubject();i.add(this.source.subscribe(ft(n,void 0,()=>{this._teardown(),n.complete()},t=>{this._teardown(),n.error(t)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Qe.EMPTY)}return i}refCount(){return F0()(this)}}const qY={connector:()=>new $};function JR(e,i=qY){const{connector:n}=i;return wt((t,r)=>{const s=n();si(e(function GY(e){return new et(i=>e.subscribe(i))}(s))).subscribe(r),r.add(t.subscribe(s))})}function ze(e){return e<=0?()=>Xn:wt((i,n)=>{let t=0;i.subscribe(ft(n,r=>{++t<=e&&(n.next(r),e<=t&&n.complete())}))})}function zt(e,i,n){const t=Ue(e)||i||n?{next:e,error:i,complete:n}:e;return t?wt((r,s)=>{var o;null===(o=t.subscribe)||void 0===o||o.call(t);let a=!0;r.subscribe(ft(s,l=>{var c;null===(c=t.next)||void 0===c||c.call(t,l),s.next(l)},()=>{var l;a=!1,null===(l=t.complete)||void 0===l||l.call(t),s.complete()},l=>{var c;a=!1,null===(c=t.error)||void 0===c||c.call(t,l),s.error(l)},()=>{var l,c;a&&(null===(l=t.unsubscribe)||void 0===l||l.call(t)),null===(c=t.finalize)||void 0===c||c.call(t)}))}):yr}class KY extends Qe{constructor(i,n){super()}schedule(i,n=0){return this}}const Jm={setInterval(e,i,...n){const{delegate:t}=Jm;return t?.setInterval?t.setInterval(e,i,...n):setInterval(e,i,...n)},clearInterval(e){const{delegate:i}=Jm;return(i?.clearInterval||clearInterval)(e)},delegate:void 0};class ep extends KY{constructor(i,n){super(i,n),this.scheduler=i,this.work=n,this.pending=!1}schedule(i,n=0){var t;if(this.closed)return this;this.state=i;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,n)),this.pending=!0,this.delay=n,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(s,this.id,n),this}requestAsyncId(i,n,t=0){return Jm.setInterval(i.flush.bind(i,this),t)}recycleAsyncId(i,n,t=0){if(null!=t&&this.delay===t&&!1===this.pending)return n;null!=n&&Jm.clearInterval(n)}execute(i,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const t=this._execute(i,n);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,n){let r,t=!1;try{this.work(i)}catch(s){t=!0,r=s||new Error("Scheduled action threw falsy error")}if(t)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:n}=this,{actions:t}=n;this.work=this.state=this.scheduler=null,this.pending=!1,un(t,this),null!=i&&(this.id=this.recycleAsyncId(n,i,null)),this.delay=null,super.unsubscribe()}}}const N0={now:()=>(N0.delegate||Date).now(),delegate:void 0};class Wd{constructor(i,n=Wd.now){this.schedulerActionCtor=i,this.now=n}schedule(i,n=0,t){return new this.schedulerActionCtor(this,i).schedule(t,n)}}Wd.now=N0.now;class tp extends Wd{constructor(i,n=Wd.now){super(i,n),this.actions=[],this._active=!1}flush(i){const{actions:n}=this;if(this._active)return void n.push(i);let t;this._active=!0;do{if(t=i.execute(i.state,i.delay))break}while(i=n.shift());if(this._active=!1,t){for(;i=n.shift();)i.unsubscribe();throw t}}}const Yd=new tp(ep),XY=Yd;function ip(e){return se(()=>e)}function eO(e,i){return i?n=>Vr(i.pipe(ze(1),function ZY(){return wt((e,i)=>{e.subscribe(ft(i,Ts))})}()),n.pipe(eO(e))):Bt((n,t)=>si(e(n,t)).pipe(ze(1),ip(n)))}function Kd(e=0,i,n=XY){let t=-1;return null!=i&&(lD(i)?n=i:t=i),new et(r=>{let s=function QY(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){r.closed||(r.next(o++),0<=t?this.schedule(void 0,t):r.complete())},s)})}const Xd="Service workers are disabled or not supported by this browser";class np{constructor(i){if(this.serviceWorker=i,i){const t=Br(i,"controllerchange").pipe(se(()=>i.controller)),s=Vr(us(()=>ee(i.controller)),t);this.worker=s.pipe($e(d=>!!d)),this.registration=this.worker.pipe(ei(()=>i.getRegistration()));const c=Br(i,"message").pipe(se(d=>d.data)).pipe($e(d=>d&&d.type)).pipe(function YY(e){return e?i=>JR(e)(i):i=>function WY(e,i){const n=Ue(e)?e:()=>e;return Ue(i)?JR(i,{connector:n}):t=>new Qm(t,n)}(new $)(i)}());c.connect(),this.events=c}else this.worker=this.events=this.registration=function eK(e){return us(()=>Ys(new Error(e)))}(Xd)}postMessage(i,n){return this.worker.pipe(ze(1),zt(t=>{t.postMessage({action:i,...n})})).toPromise().then(()=>{})}postMessageWithOperation(i,n,t){const r=this.waitForOperationCompleted(t),s=this.postMessage(i,n);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(i){let n;return n="string"==typeof i?t=>t.type===i:t=>i.includes(t.type),this.events.pipe($e(n))}nextEventOfType(i){return this.eventsOfType(i).pipe(ze(1))}waitForOperationCompleted(i){return this.eventsOfType("OPERATION_COMPLETED").pipe($e(n=>n.nonce===i),ze(1),se(n=>{if(void 0!==n.result)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let tO=(()=>{var e;class i{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,this.pushManager=null,this.subscriptionChanges=new $,!t.isEnabled)return this.messages=Ks,this.notificationClicks=Ks,void(this.subscription=Ks);this.messages=this.sw.eventsOfType("PUSH").pipe(se(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(se(s=>s.data)),this.pushManager=this.sw.registration.pipe(se(s=>s.pushManager));const r=this.pushManager.pipe(ei(s=>s.getSubscription()));this.subscription=Ft(r,this.subscriptionChanges)}requestSubscription(t){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Xd));const r={userVisibleOnly:!0};let s=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let a=0;aa.subscribe(r)),ze(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(ze(1),ei(r=>{if(null===r)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Xd))}decodeBase64(t){return atob(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(np))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),P0=(()=>{var e;class i{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,!t.isEnabled)return this.versionUpdates=Ks,this.available=Ks,this.activated=Ks,void(this.unrecoverable=Ks);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe($e(r=>"VERSION_READY"===r.type),se(r=>({type:"UPDATE_AVAILABLE",current:r.currentVersion,available:r.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xd));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xd));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(np))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const iO=new M("NGSW_REGISTER_SCRIPT");function tK(e,i,n,t){return()=>{if(!Om(t)||!("serviceWorker"in navigator)||!1===n.enabled)return;let r;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)r=n.registrationStrategy();else{const[o,...a]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(o){case"registerImmediately":r=ee(null);break;case"registerWithDelay":r=nO(+a[0]||0);break;case"registerWhenStable":r=a[0]?Ft(rO(e),nO(+a[0])):rO(e);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}e.get(ce).runOutsideAngular(()=>r.pipe(ze(1)).subscribe(()=>navigator.serviceWorker.register(i,{scope:n.scope}).catch(o=>console.error("Service worker registration failed with:",o))))}}function nO(e){return ee(null).pipe(function JY(e,i=Yd){const n=Kd(e,i);return eO(()=>n)}(e))}function rO(e){return e.get(Nr).isStable.pipe($e(n=>n))}function iK(e,i){return new np(Om(i)&&!1!==e.enabled?navigator.serviceWorker:void 0)}class L0{}function nK(e,i={}){return Of([tO,P0,{provide:iO,useValue:e},{provide:L0,useValue:i},{provide:np,useFactory:iK,deps:[L0,er]},{provide:mm,useFactory:tK,deps:[kt,iO,L0,er],multi:!0}])}let rK=(()=>{var e;class i{static register(t,r={}){return{ngModule:i,providers:[nK(t,r)]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[tO,P0]}),i})();const aK=new class oK extends tp{}(class sK extends ep{constructor(i,n){super(i,n),this.scheduler=i,this.work=n}schedule(i,n=0){return n>0?super.schedule(i,n):(this.delay=n,this.state=i,this.scheduler.flush(this),this)}execute(i,n){return n>0||this.closed?super.execute(i,n):this._execute(i,n)}requestAsyncId(i,n,t=0){return null!=t&&t>0||null==t&&this.delay>0?super.requestAsyncId(i,n,t):(i.flush(this),0)}});function sO(e,i){return wt(function cK(e,i,n,t,r){return(s,o)=>{let a=n,l=i,c=0;s.subscribe(ft(o,d=>{const u=c++;l=a?e(l,d,u):(a=!0,d),t&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}(e,i,arguments.length>=2,!0))}class fK extends Error{constructor(i,n){super(function mK(e,i){return`NG0${Math.abs(e)}${i?": "+i:""}`}(i,n)),this.code=i}}function uO(e,i){const n=!i?.manualCleanup;n&&!i?.injector&&function $f(e){if(!mD()&&!function nj(){return Ea}())throw new O(-203,!1)}();const t=n?i?.injector?.get(il)??G(il):null;let r;r=function zD(e,i){const n=new Pj(e,i?.equal??BD);return gb(n,n.signal.bind(n),{set:n.set.bind(n),update:n.update.bind(n),mutate:n.mutate.bind(n),asReadonly:n.asReadonly.bind(n)})}(i?.requireSync?{kind:0}:{kind:1,value:i?.initialValue});const s=e.subscribe({next:o=>r.set({kind:1,value:o}),error:o=>r.set({kind:2,error:o})});return t?.onDestroy(s.unsubscribe.bind(s)),VD(()=>{const o=r();switch(o.kind){case 1:return o.value;case 2:throw o.error;case 0:throw new fK(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}globalThis;const Zd={};function ci(e,i){if(Zd[e]=(Zd[e]||0)+1,"function"==typeof i)return H0(e,(...t)=>({...i(...t),type:e}));switch(i?i._as:"empty"){case"empty":return H0(e,()=>({type:e}));case"props":return H0(e,t=>({...t,type:e}));default:throw new Error("Unexpected config.")}}function H0(e,i){return Object.defineProperty(i,"type",{value:e,writable:!1})}const hO="@ngrx/store/init";let Wo=(()=>{var e;class i extends Et{constructor(){super({type:hO})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof t>"u")throw new TypeError("Actions must be objects");if(typeof t.type>"u")throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const CK=[Wo],U0=new M("@ngrx/store Internal Root Guard"),fO=new M("@ngrx/store Internal Initial State"),G0=new M("@ngrx/store Initial State"),mO=new M("@ngrx/store Reducer Factory"),pO=new M("@ngrx/store Internal Reducer Factory Provider"),gO=new M("@ngrx/store Initial Reducers"),q0=new M("@ngrx/store Internal Initial Reducers"),_O=new M("@ngrx/store Store Features"),bO=new M("@ngrx/store Internal Store Reducers"),W0=new M("@ngrx/store Internal Feature Reducers"),vO=new M("@ngrx/store Internal Feature Configs"),Y0=new M("@ngrx/store Internal Store Features"),yO=new M("@ngrx/store Internal Feature Reducers Token"),K0=new M("@ngrx/store Feature Reducers"),wO=new M("@ngrx/store User Provided Meta Reducers"),ap=new M("@ngrx/store Meta Reducers"),xO=new M("@ngrx/store Internal Resolved Meta Reducers"),kO=new M("@ngrx/store User Runtime Checks Config"),CO=new M("@ngrx/store Internal User Runtime Checks Config"),Qd=new M("@ngrx/store Internal Runtime Checks"),Jd=new M("@ngrx/store Check if Action types are unique");function Z0(e,i={}){const n=Object.keys(e),t={};for(let s=0;ss(r),n(i))}}function EO(e,i){return Array.isArray(i)&&i.length>0&&(e=SO.apply(null,[...i,e])),(n,t)=>{const r=e(n);return(s,o)=>r(s=void 0===s?t:s,o)}}new M("@ngrx/store Root Store Provider"),new M("@ngrx/store Feature State Provider");class lp extends et{}class MO extends Wo{}let eu=(()=>{var e;class i extends Et{get currentReducers(){return this.reducers}constructor(t,r,s,o){super(o(s,r)),this.dispatcher=t,this.initialState=r,this.reducers=s,this.reducerFactory=o}addFeature(t){this.addFeatures([t])}addFeatures(t){const r=t.reduce((s,{reducers:o,reducerFactory:a,metaReducers:l,initialState:c,key:d})=>{const u="function"==typeof o?function SK(e){const i=Array.isArray(e)&&e.length>0?SO(...e):n=>n;return(n,t)=>(n=i(n),(r,s)=>n(r=void 0===r?t:r,s))}(l)(o,c):EO(a,l)(o,c);return s[d]=u,s},{});this.addReducers(r)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(r=>r.key))}addReducer(t,r){this.addReducers({[t]:r})}addReducers(t){this.reducers={...this.reducers,...t},this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(r=>{this.reducers=function DK(e,i){return Object.keys(e).filter(n=>n!==i).reduce((n,t)=>Object.assign(n,{[t]:e[t]}),{})}(this.reducers,r)}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:t})}ngOnDestroy(){this.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(MO),x(G0),x(gO),x(mO))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const MK=[eu,{provide:lp,useExisting:eu},{provide:MO,useExisting:Wo}];let cp=(()=>{var e;class i extends ${ngOnDestroy(){this.complete()}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const TK=[cp];class TO extends et{}let IO=(()=>{var e;class i extends Et{constructor(t,r,s,o){super(o);const l=t.pipe(X_(aK)).pipe(function lK(...e){const i=K_(e);return wt((n,t)=>{const r=e.length,s=new Array(r);let o=e.map(()=>!1),a=!1;for(let l=0;l{s[l]=c,!a&&!o[l]&&(o[l]=!0,(a=o.every(yr))&&(o=null))},Ts));n.subscribe(ft(t,l=>{if(a){const c=[l,...s];t.next(i?i(...c):c)}}))})}(r)),d=l.pipe(sO(IK,{state:o}));this.stateSubscription=d.subscribe(({state:u,action:h})=>{this.next(u),s.next(h)}),this.state=uO(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return(e=i).INIT=hO,e.\u0275fac=function(t){return new(t||e)(x(Wo),x(lp),x(cp),x(G0))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function IK(e={state:void 0},[i,n]){const{state:t}=e;return{state:n(t,i),action:i}}const AK=[IO,{provide:TO,useExisting:IO}];let on=(()=>{var e;class i extends et{constructor(t,r,s){super(),this.actionsObserver=r,this.reducerManager=s,this.source=t,this.state=t.state}select(t,...r){return OK.call(null,t,...r)(this)}selectSignal(t,r){return VD(()=>t(this.state()),{equal:r?.equal||((s,o)=>s===o)})}lift(t){const r=new i(this,this.actionsObserver,this.reducerManager);return r.operator=t,r}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,r){this.reducerManager.addReducer(t,r)}removeReducer(t){this.reducerManager.removeReducer(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(TO),x(Wo),x(eu))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const RK=[on];function OK(e,i,...n){return function(r){let s;if("string"==typeof e){const o=[i,...n].filter(Boolean);s=r.pipe(function dK(...e){const i=e.length;if(0===i)throw new Error("list of properties cannot be empty.");return se(n=>{let t=n;for(let r=0;re(o,i)))}return s.pipe(xo())}}const Q0="https://ngrx.io/guide/store/configuration/runtime-checks";function AO(e){return void 0===e}function RO(e){return null===e}function OO(e){return Array.isArray(e)}function FO(e){return"object"==typeof e&&null!==e}function J0(e){return"function"==typeof e}function KK(e){return e instanceof M?G(e):e}function XK(e,i){return i.map((n,t)=>{if(e[t]instanceof M){const r=G(e[t]);return{key:n.key,reducerFactory:r.reducerFactory?r.reducerFactory:Z0,metaReducers:r.metaReducers?r.metaReducers:[],initialState:r.initialState}}return n})}function ZK(e){return e.map(i=>i instanceof M?G(i):i)}function iw(e){return"function"==typeof e?e():e}function QK(e,i){return e.concat(i)}function JK(){if(G(on,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function nw(e){Object.freeze(e);const i=J0(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&function VK(e,i){return Object.prototype.hasOwnProperty.call(e,i)}(e,n)&&(!i||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const t=e[n];(FO(t)||J0(t))&&!Object.isFrozen(t)&&nw(t)}}),e}function rw(e,i=[]){return(AO(e)||RO(e))&&0===i.length?{path:["root"],value:e}:Object.keys(e).reduce((t,r)=>{if(t)return t;const s=e[r];return function BK(e){return J0(e)&&e.hasOwnProperty("\u0275cmp")}(s)?t:!(AO(s)||RO(s)||function PK(e){return"number"==typeof e}(s)||function NK(e){return"boolean"==typeof e}(s)||function FK(e){return"string"==typeof e}(s)||OO(s))&&(function NO(e){if(!function LK(e){return FO(e)&&!OO(e)}(e))return!1;const i=Object.getPrototypeOf(e);return i===Object.prototype||null===i}(s)?rw(s,[...i,r]):{path:[...i,r],value:s})},!1)}function BO(e,i){if(!1===e)return;const n=e.path.join("."),t=new Error(`Detected unserializable ${i} at "${n}". ${Q0}#strict${i}serializability`);throw t.value=e.value,t.unserializablePath=n,t}function nX(e){return{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function rX({strictActionSerializability:e,strictStateSerializability:i}){return n=>e||i?function tX(e,i){return function(n,t){i.action(t)&&BO(rw(t),"action");const r=e(n,t);return i.state()&&BO(rw(r),"state"),r}}(n,{action:t=>e&&!sw(t),state:()=>i}):n}function sX({strictActionImmutability:e,strictStateImmutability:i}){return n=>e||i?function eX(e,i){return function(n,t){const r=i.action(t)?nw(t):t,s=e(n,r);return i.state()?nw(s):s}}(n,{action:t=>e&&!sw(t),state:()=>i}):n}function sw(e){return e.type.startsWith("@ngrx")}function oX({strictActionWithinNgZone:e}){return i=>e?function iX(e,i){return function(n,t){if(i.action(t)&&!ce.isInAngularZone())throw new Error(`Action '${t.type}' running outside NgZone. ${Q0}#strictactionwithinngzone`);return e(n,t)}}(i,{action:n=>e&&!sw(n)}):i}function aX(e){return[{provide:CO,useValue:e},{provide:kO,useFactory:lX,deps:[CO]},{provide:Qd,deps:[kO],useFactory:nX},{provide:ap,multi:!0,deps:[Qd],useFactory:sX},{provide:ap,multi:!0,deps:[Qd],useFactory:rX},{provide:ap,multi:!0,deps:[Qd],useFactory:oX}]}function VO(){return[{provide:Jd,multi:!0,deps:[Qd],useFactory:cX}]}function lX(e){return e}function cX(e){if(!e.strictActionTypeUniqueness)return;const i=Object.entries(Zd).filter(([,n])=>n>1).map(([n])=>n);if(i.length)throw new Error(`Action types are registered more than once, ${i.map(n=>`"${n}"`).join(", ")}. ${Q0}#strictactiontypeuniqueness`)}function jO(e={},i={}){return[{provide:U0,useFactory:JK},{provide:fO,useValue:i.initialState},{provide:G0,useFactory:iw,deps:[fO]},{provide:q0,useValue:e},{provide:bO,useExisting:e instanceof M?e:q0},{provide:gO,deps:[q0,[new Bb(bO)]],useFactory:KK},{provide:wO,useValue:i.metaReducers?i.metaReducers:[]},{provide:xO,deps:[ap,wO],useFactory:QK},{provide:pO,useValue:i.reducerFactory?i.reducerFactory:Z0},{provide:mO,deps:[pO,xO],useFactory:EO},CK,MK,TK,AK,RK,aX(i.runtimeChecks),VO()]}function zO(e,i,n={}){return[{provide:vO,multi:!0,useValue:e instanceof Object?{}:n},{provide:_O,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof M||!n.reducerFactory?Z0:n.reducerFactory,metaReducers:n instanceof M||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof M||!n.initialState?void 0:n.initialState}},{provide:Y0,deps:[vO,_O],useFactory:XK},{provide:W0,multi:!0,useValue:e instanceof Object?e.reducer:i},{provide:yO,multi:!0,useExisting:i instanceof M?i:W0},{provide:K0,multi:!0,deps:[W0,[new Bb(yO)]],useFactory:ZK},VO()]}let HO=(()=>{var e;class i{constructor(t,r,s,o,a,l){}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Wo),x(lp),x(cp),x(on),x(U0,8),x(Jd,8))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),mX=(()=>{var e;class i{constructor(t,r,s,o,a){this.features=t,this.featureReducers=r,this.reducerManager=s;const l=t.map((c,d)=>{const h=r.shift()[d];return{...c,reducers:h,initialState:iw(c.initialState)}});s.addFeatures(l)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Y0),x(K0),x(eu),x(HO),x(Jd,8))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),pX=(()=>{var e;class i{static forRoot(t,r){return{ngModule:HO,providers:[...jO(t,r)]}}static forFeature(t,r,s={}){return{ngModule:mX,providers:[...zO(t,r,s)]}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function gi(...e){return{reducer:e.pop(),types:e.map(t=>t.type)}}function tu(e,...i){const n=new Map;for(const t of i)for(const r of t.types){const s=n.get(r);n.set(r,s?(a,l)=>t.reducer(s(a,l),l):t.reducer)}return function(t=e,r){const s=n.get(r.type);return s?s(t,r):t}}function iu(e){return(iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}function Se(e,i,n){return(i=function _X(e){var i=function gX(e,i){if("object"!==iu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,i||"default");if("object"!==iu(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===iu(i)?i:String(i)}(i))in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function Bn(e){return!!e&&(e instanceof et||Ue(e.lift)&&Ue(e.subscribe))}class bX extends ${constructor(i=1/0,n=1/0,t=N0){super(),this._bufferSize=i,this._windowTime=n,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,n)}next(i){const{isStopped:n,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;n||(t.push(i),!r&&t.push(s.now()+o)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(i),{_infiniteTimeWindow:t,_buffer:r}=this,s=r.slice();for(let o=0;onew bX(t,i,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class up{}let $O=(()=>{var e;class i extends up{getTranslation(t){return ee({})}}return e=i,Se(i,"\u0275fac",function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}()),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();class ow{}let UO=(()=>{var e;class i{handle(t){return t.key}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)}),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();function hp(e,i){if(e===i)return!0;if(null===e||null===i)return!1;if(e!=e&&i!=i)return!0;let r,s,o,n=typeof e;if(n==typeof i&&"object"==n){if(!Array.isArray(e)){if(Array.isArray(i))return!1;for(s in o=Object.create(null),e){if(!hp(e[s],i[s]))return!1;o[s]=!0}for(s in i)if(!(s in o)&&typeof i[s]<"u")return!1;return!0}if(!Array.isArray(i))return!1;if((r=e.length)==i.length){for(s=0;s{aw(i[t])?t in e?n[t]=GO(e[t],i[t]):Object.assign(n,{[t]:i[t]}):Object.assign(n,{[t]:i[t]})}),n}class fp{}let qO=(()=>{var e;class i extends fp{constructor(...t){super(...t),Se(this,"templateMatcher",/{{\s?([^{}\s]*)\s?}}/g)}interpolate(t,r){let s;return s="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,s}getValue(t,r){let s="string"==typeof r?r.split("."):[r];r="";do{r+=s.shift(),!Xs(t)||!Xs(t[r])||"object"!=typeof t[r]&&s.length?s.length?r+=".":t=void 0:(t=t[r],r="")}while(s.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(s,o)=>{let a=this.getValue(r,o);return Xs(a)?a:s}):t}}return e=i,Se(i,"\u0275fac",function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}()),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();class mp{}let WO=(()=>{var e;class i extends mp{compile(t,r){return t}compileTranslations(t,r){return t}}return e=i,Se(i,"\u0275fac",function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}()),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})();class YO{constructor(){Se(this,"defaultLang",void 0),Se(this,"currentLang",this.defaultLang),Se(this,"translations",{}),Se(this,"langs",[]),Se(this,"onTranslationChange",new W),Se(this,"onLangChange",new W),Se(this,"onDefaultLangChange",new W)}}const lw=new M("USE_STORE"),cw=new M("USE_DEFAULT_LANG"),dw=new M("DEFAULT_LANGUAGE"),uw=new M("USE_EXTEND");let Yo=(()=>{var e;class i{get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}constructor(t,r,s,o,a,l=!0,c=!1,d=!1,u){Se(this,"store",void 0),Se(this,"currentLoader",void 0),Se(this,"compiler",void 0),Se(this,"parser",void 0),Se(this,"missingTranslationHandler",void 0),Se(this,"useDefaultLang",void 0),Se(this,"isolate",void 0),Se(this,"extend",void 0),Se(this,"loadingTranslations",void 0),Se(this,"pending",!1),Se(this,"_onTranslationChange",new W),Se(this,"_onLangChange",new W),Se(this,"_onDefaultLangChange",new W),Se(this,"_defaultLang",void 0),Se(this,"_currentLang",void 0),Se(this,"_langs",[]),Se(this,"_translations",{}),Se(this,"_translationRequests",{}),this.store=t,this.currentLoader=r,this.compiler=s,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=l,this.isolate=c,this.extend=d,u&&this.setDefaultLang(u)}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(ze(1)).subscribe(s=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return ee(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(ze(1)).subscribe(s=>{this.changeLang(t)}),r):(this.changeLang(t),ee(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(dp(1),ze(1));return this.loadingTranslations=r.pipe(se(s=>this.compiler.compileTranslations(s,t)),dp(1),ze(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[t]=this.extend&&this.translations[t]?{...s,...this.translations[t]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),r}setTranslation(t,r,s=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(s||this.extend)&&this.translations[t]?GO(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,s){let o;if(r instanceof Array){let a={},l=!1;for(let c of r)a[c]=this.getParsedResult(t,c,s),Bn(a[c])&&(l=!0);return l?jd(r.map(d=>Bn(a[d])?a[d]:ee(a[d]))).pipe(se(d=>{let u={};return d.forEach((h,f)=>{u[r[f]]=h}),u})):a}if(t&&(o=this.parser.interpolate(this.parser.getValue(t,r),s)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),s)),typeof o>"u"){let a={key:r,translateService:this};typeof s<"u"&&(a.interpolateParams=s),o=this.missingTranslationHandler.handle(a)}return typeof o<"u"?o:r}get(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe($s(s=>Bn(s=this.getParsedResult(s,t,r))?s:ee(s)));{let s=this.getParsedResult(this.translations[this.currentLang],t,r);return Bn(s)?s:ee(s)}}getStreamOnTranslationChange(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');return Vr(us(()=>this.get(t,r)),this.onTranslationChange.pipe(ei(s=>{const o=this.getParsedResult(s.translations,t,r);return"function"==typeof o.subscribe?o:ee(o)})))}stream(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');return Vr(us(()=>this.get(t,r)),this.onLangChange.pipe(ei(s=>{const o=this.getParsedResult(s.translations,t,r);return Bn(o)?o:ee(o)})))}instant(t,r){if(!Xs(t)||!t.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],t,r);if(Bn(s)){if(t instanceof Array){let o={};return t.forEach((a,l)=>{o[t[l]]=t[l]}),o}return t}return s}set(t,r,s=this.currentLang){this.translations[s][t]=this.compiler.compile(r,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)(x(YO),x(up),x(mp),x(fp),x(ow),x(cw),x(lw),x(uw),x(dw))}),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})(),di=(()=>{var e;class i{constructor(t,r){Se(this,"translate",void 0),Se(this,"_ref",void 0),Se(this,"value",""),Se(this,"lastKey",null),Se(this,"lastParams",[]),Se(this,"onTranslationChange",void 0),Se(this,"onLangChange",void 0),Se(this,"onDefaultLangChange",void 0),this.translate=t,this._ref=r}updateValue(t,r,s){let o=a=>{this.value=void 0!==a?a:t,this.lastKey=t,this._ref.markForCheck()};if(s){let a=this.translate.getParsedResult(s,t,r);Bn(a.subscribe)?a.subscribe(o):o(a)}this.translate.get(t,r).subscribe(o)}transform(t,...r){if(!t||!t.length)return t;if(hp(t,this.lastKey)&&hp(r,this.lastParams))return this.value;let s;if(Xs(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(s=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,s,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,s,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)(p(Yo,16),p(st,16))}),Se(i,"\u0275pipe",Li({name:"translate",type:e,pure:!1})),Se(i,"\u0275prov",P({token:e,factory:e.\u0275fac})),i})(),KO=(()=>{var e;class i{static forRoot(t={}){return{ngModule:i,providers:[t.loader||{provide:up,useClass:$O},t.compiler||{provide:mp,useClass:WO},t.parser||{provide:fp,useClass:qO},t.missingTranslationHandler||{provide:ow,useClass:UO},YO,{provide:lw,useValue:t.isolate},{provide:cw,useValue:t.useDefaultLang},{provide:uw,useValue:t.extend},{provide:dw,useValue:t.defaultLanguage},Yo]}}static forChild(t={}){return{ngModule:i,providers:[t.loader||{provide:up,useClass:$O},t.compiler||{provide:mp,useClass:WO},t.parser||{provide:fp,useClass:qO},t.missingTranslationHandler||{provide:ow,useClass:UO},{provide:lw,useValue:t.isolate},{provide:cw,useValue:t.useDefaultLang},{provide:uw,useValue:t.extend},{provide:dw,useValue:t.defaultLanguage},Yo]}}}return e=i,Se(i,"\u0275fac",function(t){return new(t||e)}),Se(i,"\u0275mod",me({type:e})),Se(i,"\u0275inj",he({})),i})();function lr(e){return wt((i,n)=>{let s,t=null,r=!1;t=i.subscribe(ft(n,void 0,void 0,o=>{s=si(e(o,lr(e)(i))),t?(t.unsubscribe(),t=null,s.subscribe(n)):r=!0})),r&&(t.unsubscribe(),t=null,s.subscribe(n))})}var XO={},ZO={};function yX(e){for(var i=[],n=0,t=0,r=0;r>>=1,i.push(a?0===t?-2147483648:-t:t),t=n=0}}return i}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,i){XO[e]=i,ZO[i]=e});const pp="TOKEN_LOGGER_CONFIG";class wX{constructor(i){this.config=this._clone(i)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(i){this.config=this._clone(i)}partialUpdateConfig(i){i&&Object.keys(i).forEach(n=>{this.config[n]=i[n]})}getConfig(){return this._clone(this.config)}_clone(i){const n={level:null};return Object.keys(i).forEach(t=>{n[t]=i[t]}),n}}const nu="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY";class xX{provideConfigEngine(i){return new wX(i)}}const ru="TOKEN_LOGGER_MAPPER_SERVICE";let kX=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,t){const r=this.getStackLine(n);if(!r)return ee({fileName:"",lineNumber:0,columnNumber:0});const s=this.getLocalPosition(r);if(!n.enableSourceMaps)return ee(s);const o=this.getSourceMapLocation(r);return this.getSourceMap(o,s)}getStackLine(n){const t=new Error;try{throw t}catch{try{let s=4;return t.stack.split("\n")[0].includes(".js:")||(s+=1),t.stack.split("\n")[s+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){const t=n.lastIndexOf("/");let r=n.indexOf(")");r<0&&(r=void 0);const o=n.substring(t+1,r).split(":");return 3===o.length?{fileName:o[0],lineNumber:+o[1],columnNumber:+o[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let t=n.indexOf("(");t<0&&(t=n.lastIndexOf("@"),t<0&&(t=n.lastIndexOf(" ")));let r=n.indexOf(")");return r<0&&(r=void 0),n.substring(t+1,r)}getSourceMapLocation(n){const t=this.getTranspileLocation(n),r=t.substring(0,t.lastIndexOf(":"));return r.substring(0,r.lastIndexOf(":"))+".map"}getMapping(n,t){let r=0,s=0,o=0;const a=n.mappings.split(";");for(let l=0;l=4&&(c+=h[0],r+=h[1],s+=h[2],o+=h[3]),l===t.lineNumber){if(c===t.columnNumber)return{fileName:n.sources[r],lineNumber:s,columnNumber:o};if(u+1===d.length)return{fileName:n.sources[r],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,t){const r=new zo("GET",n),s=`${t.fileName}:${t.lineNumber}:${t.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(r).pipe($e(a=>a instanceof Us),se(a=>a.body),function vX(e=1/0){let i;i=e&&"object"==typeof e?e:{count:e};const{count:n=1/0,delay:t,resetOnSuccess:r=!1}=i;return n<=0?yr:wt((s,o)=>{let l,a=0;const c=()=>{let d=!1;l=s.subscribe(ft(o,u=>{r&&(a=0),o.next(u)},void 0,u=>{if(a++{l?(l.unsubscribe(),l=null,c()):d=!0};if(null!=t){const f="number"==typeof t?Kd(t):si(t(u,a)),_=ft(o,()=>{_.unsubscribe(),h()},()=>{o.complete()});f.subscribe(_)}else h()}else o.error(u)})),d&&(l.unsubscribe(),l=null,c())};c()})}(3),dp(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,ee(null))));const o=this.sourceMapCache.get(n).pipe(se(a=>a?this.getMapping(a,t):t),lr(()=>ee(t)),dp(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(n){return new(n||e)(x(El,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const su="TOKEN_LOGGER_METADATA_SERVICE";let CX=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){const t=()=>(new Date).toISOString();return n.timestampFormat?this.datePipe?this.datePipe.transform(new Date,n.timestampFormat):(console.error("NGXLogger : Can't use timeStampFormat because DatePipe is not provided. You need to provide DatePipe"),t()):t()}getMetadata(n,t,r,s){const o={level:n,additional:s};return o.message=r&&"function"==typeof r?r():r,o.timestamp=this.computeTimestamp(t),o}}return e.\u0275fac=function(n){return new(n||e)(x(Rm,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const ou="TOKEN_LOGGER_RULES_SERVICE";let DX=(()=>{class e{shouldCallWriter(n,t,r,s){return!t.disableConsoleLogging&&n>=t.level}shouldCallServer(n,t,r,s){return!!t.serverLoggingUrl&&n>=t.serverLogLevel}shouldCallMonitor(n,t,r,s){return this.shouldCallWriter(n,t,r,s)||this.shouldCallServer(n,t,r,s)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const au="TOKEN_LOGGER_SERVER_SERVICE";let SX=(()=>{class e{constructor(n,t){this.httpBackend=n,this.ngZone=t,this.serverCallsQueue=[],this.flushingQueue=new Et(!1)}ngOnDestroy(){this.flushingQueue&&(this.flushingQueue.complete(),this.flushingQueue=null),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null)}secureErrorObject(n){return n?.stack}secureAdditionalParameters(n){return null==n?null:n.map((t,r)=>{try{return t instanceof Error?this.secureErrorObject(t):("object"==typeof t&&JSON.stringify(t),t)}catch{return`The additional[${r}] value could not be parsed using JSON.stringify().`}})}secureMessage(n){try{if(n instanceof Error)return this.secureErrorObject(n);"string"!=typeof n&&(n=JSON.stringify(n,null,2))}catch{n='The provided "message" value could not be parsed with JSON.stringify().'}return n}alterHttpRequest(n){return n}logOnServer(n,t,r){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),ee(null);let s=new zo("POST",n,t,r||{}),o=ee(s);const a=this.alterHttpRequest(s);return Bn(a)?o=a:a?o=ee(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe($s(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),$e(l=>l instanceof Us),se(l=>l.body))}customiseRequestBody(n){return n}flushQueue(n){this.flushingQueue.next(!0),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null),this.serverCallsQueue&&this.serverCallsQueue.length>0&&this.sendToServerAction(this.serverCallsQueue,n),this.serverCallsQueue=[],this.flushingQueue.next(!1)}sendToServerAction(n,t){let r;const s=l=>{const c={...l};return c.additional=this.secureAdditionalParameters(c.additional),c.message=this.secureMessage(c.message),c};Array.isArray(n)?(r=[],n.forEach(l=>{r.push(s(l))})):r=s(n),r=this.customiseRequestBody(r);const o=t.customHttpHeaders||new sr;o.has("Content-Type")||o.set("Content-Type","application/json");const a=()=>{this.logOnServer(t.serverLoggingUrl,r,{headers:o,params:t.customHttpParams||new ds,responseType:t.httpResponseType||"json",withCredentials:t.withCredentials||!1}).pipe(lr(l=>(console.error("NGXLogger: Failed to log on server",l),Ys(l)))).subscribe()};if(!0===t.serverCallsOutsideNgZone){if(!this.ngZone)return void console.error("NGXLogger: NgZone is not provided and serverCallsOutsideNgZone is set to true");this.ngZone.runOutsideAngular(a)}else a()}sendToServer(n,t){if((!t.serverCallsBatchSize||t.serverCallsBatchSize<=0)&&(!t.serverCallsTimer||t.serverCallsTimer<=0))return void this.sendToServerAction(n,t);const r=()=>{this.serverCallsQueue.push({...n}),t.serverCallsBatchSize&&this.serverCallsQueue.length>t.serverCallsBatchSize&&this.flushQueue(t),t.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Kd(t.serverCallsTimer).subscribe(s=>{this.flushQueue(t)}))};!0===this.flushingQueue.value?this.flushingQueue.pipe($e(s=>!1===s),ze(1)).subscribe(s=>{r()}):r()}}return e.\u0275fac=function(n){return new(n||e)(x(El,8),x(ce,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const lu="TOKEN_LOGGER_WRITER_SERVICE";var Ht=function(e){return e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF",e}(Ht||{});const JO=["purple","teal","gray","gray","red","red","red"];let EX=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=Om(n)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}getTimestampToWrite(n,t){return n.timestamp}getLevelToWrite(n,t){return Ht[n.level]}getFileDetailsToWrite(n,t){return!0===t.disableFileDetails?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,t){return t.context?`{${t.context}}`:""}prepareMetaString(n,t){let r="";return this.prepareMetaStringFuncs.forEach(s=>{const o=s(n,t);o&&(r=r+" "+o)}),r.trim()}getColor(n,t){if(n.level!==Ht.OFF)return(t.colorScheme??JO)[n.level]}logIE(n,t,r){const s=n.additional||[];switch(n.level){case Ht.WARN:console.warn(`${r} `,n.message,...s);break;case Ht.ERROR:case Ht.FATAL:console.error(`${r} `,n.message,...s);break;case Ht.INFO:console.info(`${r} `,n.message,...s);break;default:console.log(`${r} `,n.message,...s)}}logModern(n,t,r){const s=this.getColor(n,t),o=n.additional||[];switch(n.level){case Ht.WARN:console.warn(`%c${r}`,`color:${s}`,n.message,...o);break;case Ht.ERROR:case Ht.FATAL:console.error(`%c${r}`,`color:${s}`,n.message,...o);break;case Ht.INFO:console.info(`%c${r}`,`color:${s}`,n.message,...o);break;case Ht.DEBUG:console.debug(`%c${r}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${r}`,`color:${s}`,n.message,...o)}}writeMessage(n,t){const r=this.prepareMetaString(n,t);this.logFunc(n,t,r)}}return e.\u0275fac=function(n){return new(n||e)(x(er))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),hs=(()=>{class e{constructor(n,t,r,s,o,a,l){this.metadataService=r,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l,this.configEngine=t.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...t){this._log(Ht.TRACE,n,t)}debug(n,...t){this._log(Ht.DEBUG,n,t)}info(n,...t){this._log(Ht.INFO,n,t)}log(n,...t){this._log(Ht.LOG,n,t)}warn(n,...t){this._log(Ht.WARN,n,t)}error(n,...t){this._log(Ht.ERROR,n,t)}fatal(n,...t){this._log(Ht.FATAL,n,t)}setCustomHttpHeaders(n){const t=this.getConfigSnapshot();t.customHttpHeaders=n,this.updateConfig(t)}setCustomParams(n){const t=this.getConfigSnapshot();t.customHttpParams=n,this.updateConfig(t)}setWithCredentialsOptionValue(n){const t=this.getConfigSnapshot();t.withCredentials=n,this.updateConfig(t)}registerMonitor(n){this._loggerMonitor=n}updateConfig(n){this.configEngine.updateConfig(n)}partialUpdateConfig(n){this.configEngine.partialUpdateConfig(n)}getConfigSnapshot(){return this.configEngine.getConfig()}flushServerQueue(){this.serverService.flushQueue(this.getConfigSnapshot())}_log(n,t,r=[]){const s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,t,r),a=this.ruleService.shouldCallServer(n,s,t,r),l=this.ruleService.shouldCallMonitor(n,s,t,r);if(!o&&!a&&!l)return;const c=this.metadataService.getMetadata(n,s,t,r);this.mapperService.getLogPosition(s,c).pipe(ze(1)).subscribe(d=>{d&&(c.fileName=d.fileName,c.lineNumber=d.lineNumber,c.columnNumber=d.columnNumber),l&&this._loggerMonitor&&this._loggerMonitor.onLog(c,s),o&&this.writerService.writeMessage(c,s),a&&this.serverService.sendToServer(c,s)})}}return e.\u0275fac=function(n){return new(n||e)(x(pp),x(nu),x(su),x(ou),x(ru),x(lu),x(au))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),MX=(()=>{class e{constructor(n,t,r,s,o,a,l){this.logger=n,this.configEngineFactory=t,this.metadataService=r,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l}create(n,t,r,s){return this.getNewInstance({config:n,serverService:t,logMonitor:r,mapperService:s})}getNewInstance(n){const t=new hs(n?.config??this.logger.getConfigSnapshot(),n?.configEngineFactory??this.configEngineFactory,n?.metadataService??this.metadataService,n?.ruleService??this.ruleService,n?.mapperService??this.mapperService,n?.writerService??this.writerService,n?.serverService??this.serverService);return n?.partialConfig&&t.partialUpdateConfig(n.partialConfig),n?.logMonitor&&t.registerMonitor(n.logMonitor),t}}return e.\u0275fac=function(n){return new(n||e)(x(hs),x(nu),x(su),x(ou),x(ru),x(lu),x(au))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TX=(()=>{class e{static forRoot(n,t){if(t||(t={}),t.configProvider){if(t.configProvider.provide!==pp)throw new Error(`Wrong injection token for configProvider, it should be ${pp} and you used ${t.configProvider.provide}`)}else t.configProvider={provide:pp,useValue:n||{}};if(t.configEngineFactoryProvider){if(t.configEngineFactoryProvider.provide!==nu)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${nu}' and you used '${t.configEngineFactoryProvider.provide}'`)}else t.configEngineFactoryProvider={provide:nu,useClass:xX};if(t.metadataProvider){if(t.metadataProvider.provide!==su)throw new Error(`Wrong injection token for metadataProvider, it should be '${su}' and you used '${t.metadataProvider.provide}'`)}else t.metadataProvider={provide:su,useClass:CX};if(t.ruleProvider){if(t.ruleProvider.provide!==ou)throw new Error(`Wrong injection token for ruleProvider, it should be '${ou}' and you used '${t.ruleProvider.provide}'`)}else t.ruleProvider={provide:ou,useClass:DX};if(t.mapperProvider){if(t.mapperProvider.provide!==ru)throw new Error(`Wrong injection token for mapperProvider, it should be '${ru}' and you used '${t.mapperProvider.provide}'`)}else t.mapperProvider={provide:ru,useClass:kX};if(t.writerProvider){if(t.writerProvider.provide!==lu)throw new Error(`Wrong injection token for writerProvider, it should be '${lu}' and you used '${t.writerProvider.provide}'`)}else t.writerProvider={provide:lu,useClass:EX};if(t.serverProvider){if(t.serverProvider.provide!==au)throw new Error(`Wrong injection token for serverProvider, it should be '${au}' and you used '${t.writerProvider.provide}'`)}else t.serverProvider={provide:au,useClass:SX};return{ngModule:e,providers:[hs,t.configProvider,t.configEngineFactoryProvider,t.metadataProvider,t.ruleProvider,t.mapperProvider,t.writerProvider,t.serverProvider,MX]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[[Ln]]}),e})();function Ko(...e){const i=Pc(e),n=K_(e),{args:t,keys:r}=KA(e);if(0===t.length)return Jt([],i);const s=new et(function IX(e,i,n=yr){return t=>{eF(i,()=>{const{length:r}=e,s=new Array(r);let o=r,a=r;for(let l=0;l{const c=Jt(e[l],i);let d=!1;c.subscribe(ft(t,u=>{s[l]=u,d||(d=!0,a--),a||t.next(n(s.slice()))},()=>{--o||t.complete()}))},t)},t)}}(t,i,r?o=>XA(r,o):yr));return n?s.pipe(p0(n)):s}function eF(e,i,n){e?Zr(n,e,i):i()}const cu=vr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Di(...e){const i=Pc(e);return wt((n,t)=>{(i?Vr(e,n,i):Vr(e,n)).subscribe(t)})}function gp(e){return wt((i,n)=>{let t=!1;i.subscribe(ft(n,r=>{t=!0,n.next(r)},()=>{t||n.next(e),n.complete()}))})}function tF(e=AX){return wt((i,n)=>{let t=!1;i.subscribe(ft(n,r=>{t=!0,n.next(r)},()=>t?n.complete():n.error(e())))})}function AX(){return new cu}function Zs(e,i){const n=arguments.length>=2;return t=>t.pipe(e?$e((r,s)=>e(r,s,t)):yr,ze(1),n?gp(i):tF(()=>new cu))}function hw(e){return e<=0?()=>Xn:wt((i,n)=>{let t=[];i.subscribe(ft(n,r=>{t.push(r),e{for(const r of t)n.next(r);n.complete()},void 0,()=>{t=null}))})}const Ge="primary",du=Symbol("RouteTitle");class OX{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const n=this.params[i];return Array.isArray(n)?n[0]:n}return null}getAll(i){if(this.has(i)){const n=this.params[i];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Nl(e){return new OX(e)}function FX(e,i,n){const t=n.path.split("/");if(t.length>e.length||"full"===n.pathMatch&&(i.hasChildren()||t.lengtht[s]===r)}return e===i}function nF(e){return e.length>0?e[e.length-1]:null}function Qs(e){return Bn(e)?e:yd(e)?Jt(Promise.resolve(e)):ee(e)}const PX={exact:function oF(e,i,n){if(!Xo(e.segments,i.segments)||!_p(e.segments,i.segments,n)||e.numberOfChildren!==i.numberOfChildren)return!1;for(const t in i.children)if(!e.children[t]||!oF(e.children[t],i.children[t],n))return!1;return!0},subset:aF},rF={exact:function LX(e,i){return zr(e,i)},subset:function BX(e,i){return Object.keys(i).length<=Object.keys(e).length&&Object.keys(i).every(n=>iF(e[n],i[n]))},ignored:()=>!0};function sF(e,i,n){return PX[n.paths](e.root,i.root,n.matrixParams)&&rF[n.queryParams](e.queryParams,i.queryParams)&&!("exact"===n.fragment&&e.fragment!==i.fragment)}function aF(e,i,n){return lF(e,i,i.segments,n)}function lF(e,i,n,t){if(e.segments.length>n.length){const r=e.segments.slice(0,n.length);return!(!Xo(r,n)||i.hasChildren()||!_p(r,n,t))}if(e.segments.length===n.length){if(!Xo(e.segments,n)||!_p(e.segments,n,t))return!1;for(const r in i.children)if(!e.children[r]||!aF(e.children[r],i.children[r],t))return!1;return!0}{const r=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Xo(e.segments,r)&&_p(e.segments,r,t)&&e.children[Ge])&&lF(e.children[Ge],i,s,t)}}function _p(e,i,n){return i.every((t,r)=>rF[n](e[r].parameters,t.parameters))}class Pl{constructor(i=new pt([],{}),n={},t=null){this.root=i,this.queryParams=n,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nl(this.queryParams)),this._queryParamMap}toString(){return zX.serialize(this)}}class pt{constructor(i,n){this.segments=i,this.children=n,this.parent=null,Object.values(n).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bp(this)}}class uu{constructor(i,n){this.path=i,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Nl(this.parameters)),this._parameterMap}toString(){return uF(this)}}function Xo(e,i){return e.length===i.length&&e.every((n,t)=>n.path===i[t].path)}let hu=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return new fw},providedIn:"root"}),i})();class fw{parse(i){const n=new QX(i);return new Pl(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(i){const n=`/${fu(i.root,!0)}`,t=function UX(e){const i=Object.keys(e).map(n=>{const t=e[n];return Array.isArray(t)?t.map(r=>`${vp(n)}=${vp(r)}`).join("&"):`${vp(n)}=${vp(t)}`}).filter(n=>!!n);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${n}${t}${"string"==typeof i.fragment?`#${function HX(e){return encodeURI(e)}(i.fragment)}`:""}`}}const zX=new fw;function bp(e){return e.segments.map(i=>uF(i)).join("/")}function fu(e,i){if(!e.hasChildren())return bp(e);if(i){const n=e.children[Ge]?fu(e.children[Ge],!1):"",t=[];return Object.entries(e.children).forEach(([r,s])=>{r!==Ge&&t.push(`${r}:${fu(s,!1)}`)}),t.length>0?`${n}(${t.join("//")})`:n}{const n=function jX(e,i){let n=[];return Object.entries(e.children).forEach(([t,r])=>{t===Ge&&(n=n.concat(i(r,t)))}),Object.entries(e.children).forEach(([t,r])=>{t!==Ge&&(n=n.concat(i(r,t)))}),n}(e,(t,r)=>r===Ge?[fu(e.children[Ge],!1)]:[`${r}:${fu(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ge]?`${bp(e)}/${n[0]}`:`${bp(e)}/(${n.join("//")})`}}function cF(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vp(e){return cF(e).replace(/%3B/gi,";")}function mw(e){return cF(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yp(e){return decodeURIComponent(e)}function dF(e){return yp(e.replace(/\+/g,"%20"))}function uF(e){return`${mw(e.path)}${function $X(e){return Object.keys(e).map(i=>`;${mw(i)}=${mw(e[i])}`).join("")}(e.parameters)}`}const GX=/^[^\/()?;#]+/;function pw(e){const i=e.match(GX);return i?i[0]:""}const qX=/^[^\/()?;=#]+/,YX=/^[^=?&#]+/,XX=/^[^&#]+/;class QX{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pt([],{}):new pt([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(i.length>0||Object.keys(n).length>0)&&(t[Ge]=new pt(i,n)),t}parseSegment(){const i=pw(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new O(4009,!1);return this.capture(i),new uu(yp(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const n=function WX(e){const i=e.match(qX);return i?i[0]:""}(this.remaining);if(!n)return;this.capture(n);let t="";if(this.consumeOptional("=")){const r=pw(this.remaining);r&&(t=r,this.capture(t))}i[yp(n)]=yp(t)}parseQueryParam(i){const n=function KX(e){const i=e.match(YX);return i?i[0]:""}(this.remaining);if(!n)return;this.capture(n);let t="";if(this.consumeOptional("=")){const o=function ZX(e){const i=e.match(XX);return i?i[0]:""}(this.remaining);o&&(t=o,this.capture(t))}const r=dF(n),s=dF(t);if(i.hasOwnProperty(r)){let o=i[r];Array.isArray(o)||(o=[o],i[r]=o),o.push(s)}else i[r]=s}parseParens(i){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=pw(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new O(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ge);const o=this.parseChildren();n[s]=1===Object.keys(o).length?o[Ge]:new pt([],o),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new O(4011,!1)}}function hF(e){return e.segments.length>0?new pt([],{[Ge]:e}):e}function fF(e){const i={};for(const t of Object.keys(e.children)){const s=fF(e.children[t]);if(t===Ge&&0===s.segments.length&&s.hasChildren())for(const[o,a]of Object.entries(s.children))i[o]=a;else(s.segments.length>0||s.hasChildren())&&(i[t]=s)}return function JX(e){if(1===e.numberOfChildren&&e.children[Ge]){const i=e.children[Ge];return new pt(e.segments.concat(i.segments),i.children)}return e}(new pt(e.segments,i))}function Zo(e){return e instanceof Pl}function mF(e){let i;const r=hF(function n(s){const o={};for(const l of s.children){const c=n(l);o[l.outlet]=c}const a=new pt(s.url,o);return s===e&&(i=a),a}(e.root));return i??r}function pF(e,i,n,t){let r=e;for(;r.parent;)r=r.parent;if(0===i.length)return gw(r,r,r,n,t);const s=function tZ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new _F(!0,0,e);let i=0,n=!1;const t=e.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?i++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new _F(n,i,t)}(i);if(s.toRoot())return gw(r,r,new pt([],{}),n,t);const o=function iZ(e,i,n){if(e.isAbsolute)return new xp(i,!0,0);if(!n)return new xp(i,!1,NaN);if(null===n.parent)return new xp(n,!0,0);const t=wp(e.commands[0])?0:1;return function nZ(e,i,n){let t=e,r=i,s=n;for(;s>r;){if(s-=r,t=t.parent,!t)throw new O(4005,!1);r=t.segments.length}return new xp(t,!1,r-s)}(n,n.segments.length-1+t,e.numberOfDoubleDots)}(s,r,e),a=o.processChildren?pu(o.segmentGroup,o.index,s.commands):bF(o.segmentGroup,o.index,s.commands);return gw(r,o.segmentGroup,a,n,t)}function wp(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function mu(e){return"object"==typeof e&&null!=e&&e.outlets}function gw(e,i,n,t,r){let o,s={};t&&Object.entries(t).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),o=e===i?n:gF(e,i,n);const a=hF(fF(o));return new Pl(a,s,r)}function gF(e,i,n){const t={};return Object.entries(e.children).forEach(([r,s])=>{t[r]=s===i?n:gF(s,i,n)}),new pt(e.segments,t)}class _F{constructor(i,n,t){if(this.isAbsolute=i,this.numberOfDoubleDots=n,this.commands=t,i&&t.length>0&&wp(t[0]))throw new O(4003,!1);const r=t.find(mu);if(r&&r!==nF(t))throw new O(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xp{constructor(i,n,t){this.segmentGroup=i,this.processChildren=n,this.index=t}}function bF(e,i,n){if(e||(e=new pt([],{})),0===e.segments.length&&e.hasChildren())return pu(e,i,n);const t=function sZ(e,i,n){let t=0,r=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const o=e.segments[r],a=n[t];if(mu(a))break;const l=`${a}`,c=t0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!yF(l,c,o))return s;t+=2}else{if(!yF(l,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(e,i,n),r=n.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=bF(e.children[s],i,o))}),Object.entries(e.children).forEach(([s,o])=>{void 0===t[s]&&(r[s]=o)}),new pt(e.segments,r)}}function _w(e,i,n){const t=e.segments.slice(0,i);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(i[n]=_w(new pt([],{}),0,t))}),i}function vF(e){const i={};return Object.entries(e).forEach(([n,t])=>i[n]=`${t}`),i}function yF(e,i,n){return e==n.path&&zr(i,n.parameters)}const gu="imperative";class Hr{constructor(i,n){this.id=i,this.url=n}}class bw extends Hr{constructor(i,n,t="imperative",r=null){super(i,n),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qo extends Hr{constructor(i,n,t){super(i,n),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class kp extends Hr{constructor(i,n,t,r){super(i,n),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _u extends Hr{constructor(i,n,t,r){super(i,n),this.reason=t,this.code=r,this.type=16}}class vw extends Hr{constructor(i,n,t,r){super(i,n),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cZ extends Hr{constructor(i,n,t,r,s){super(i,n),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uZ extends Hr{constructor(i,n,t,r){super(i,n),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hZ{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fZ{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mZ{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pZ{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gZ{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _Z{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wF{constructor(i,n,t){this.routerEvent=i,this.position=n,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bZ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new bu,this.attachRef=null}}let bu=(()=>{var e;class i{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new bZ,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();class xF{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const n=this.pathFromRoot(i);return n.length>1?n[n.length-2]:null}children(i){const n=yw(i,this._root);return n?n.children.map(t=>t.value):[]}firstChild(i){const n=yw(i,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(i){const n=ww(i,this._root);return n.length<2?[]:n[n.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return ww(i,this._root).map(n=>n.value)}}function yw(e,i){if(e===i.value)return i;for(const n of i.children){const t=yw(e,n);if(t)return t}return null}function ww(e,i){if(e===i.value)return[i];for(const n of i.children){const t=ww(e,n);if(t.length)return t.unshift(i),t}return[]}class fs{constructor(i,n){this.value=i,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ll(e){const i={};return e&&e.children.forEach(n=>i[n.value.outlet]=n),i}class kF extends xF{constructor(i,n){super(i),this.snapshot=n,xw(this,i)}toString(){return this.snapshot.toString()}}function CF(e,i){const n=function vZ(e,i){const o=new Cp([],{},{},"",{},Ge,i,null,{});return new SF("",new fs(o,[]))}(0,i),t=new Et([new uu("",{})]),r=new Et({}),s=new Et({}),o=new Et({}),a=new Et(""),l=new Js(t,r,o,a,s,Ge,i,n.root);return l.snapshot=n.root,new kF(new fs(l,[]),n)}class Js{constructor(i,n,t,r,s,o,a,l){this.urlSubject=i,this.paramsSubject=n,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(se(c=>c[du]))??ee(void 0),this.url=i,this.params=n,this.queryParams=t,this.fragment=r,this.data=s}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(se(i=>Nl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(se(i=>Nl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function DF(e,i="emptyOnly"){const n=e.pathFromRoot;let t=0;if("always"!==i)for(t=n.length-1;t>=1;){const r=n[t],s=n[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(s.component)break;t--}}return function yZ(e){return e.reduce((i,n)=>({params:{...i.params,...n.params},data:{...i.data,...n.data},resolve:{...n.data,...i.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(t))}class Cp{get title(){return this.data?.[du]}constructor(i,n,t,r,s,o,a,l,c){this.url=i,this.params=n,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Nl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class SF extends xF{constructor(i,n){super(n),this.url=i,xw(this,n)}toString(){return EF(this._root)}}function xw(e,i){i.value._routerState=e,i.children.forEach(n=>xw(e,n))}function EF(e){const i=e.children.length>0?` { ${e.children.map(EF).join(", ")} } `:"";return`${e.value}${i}`}function kw(e){if(e.snapshot){const i=e.snapshot,n=e._futureSnapshot;e.snapshot=n,zr(i.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),i.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),zr(i.params,n.params)||e.paramsSubject.next(n.params),function NX(e,i){if(e.length!==i.length)return!1;for(let n=0;nzr(n.parameters,i[t].parameters))}(e.url,i.url);return n&&!(!e.parent!=!i.parent)&&(!e.parent||Cw(e.parent,i.parent))}let Dw=(()=>{var e;class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ge,this.activateEvents=new W,this.deactivateEvents=new W,this.attachEvents=new W,this.detachEvents=new W,this.parentContexts=G(bu),this.location=G(Vt),this.changeDetector=G(st),this.environmentInjector=G(bn),this.inputBinder=G(Dp,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);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 O(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new O(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new O(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,r){if(this.isActivated)throw new O(4013,!1);this._activatedRoute=t;const s=this.location,a=t.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new wZ(t,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[bt]}),i})();class wZ{constructor(i,n,t){this.route=i,this.childContexts=n,this.parent=t}get(i,n){return i===Js?this.route:i===bu?this.childContexts:this.parent.get(i,n)}}const Dp=new M("");let MF=(()=>{var e;class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,s=Ko([r.queryParams,r.params,r.data]).pipe(ei(([o,a,l],c)=>(l={...o,...a,...l},0===c?ee(l):Promise.resolve(l)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const a=function Nq(e){const i=nt(e);if(!i)return null;const n=new pd(i);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(r.component);if(a)for(const{templateName:l}of a.inputs)t.activatedComponentRef.setInput(l,o[l]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,s)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function vu(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const t=n.value;t._futureSnapshot=i.value;const r=function kZ(e,i,n){return i.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return vu(e,t,r);return vu(e,t)})}(e,i,n);return new fs(t,r)}{if(e.shouldAttach(i.value)){const s=e.retrieve(i.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=i.value,o.children=i.children.map(a=>vu(e,a)),o}}const t=function CZ(e){return new Js(new Et(e.url),new Et(e.params),new Et(e.queryParams),new Et(e.fragment),new Et(e.data),e.outlet,e.component,e)}(i.value),r=i.children.map(s=>vu(e,s));return new fs(t,r)}}const Sw="ngNavigationCancelingError";function TF(e,i){const{redirectTo:n,navigationBehaviorOptions:t}=Zo(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=IF(!1,0,i);return r.url=n,r.navigationBehaviorOptions=t,r}function IF(e,i,n){const t=new Error("NavigationCancelingError: "+(e||""));return t[Sw]=!0,t.cancellationCode=i,n&&(t.url=n),t}function AF(e){return RF(e)&&Zo(e.url)}function RF(e){return e&&e[Sw]}let OF=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],standalone:!0,features:[hT],decls:1,vars:0,template:function(t,r){1&t&&be(0,"router-outlet")},dependencies:[Dw],encapsulation:2}),i})();function Ew(e){const i=e.children&&e.children.map(Ew),n=i?{...e,children:i}:{...e};return!n.component&&!n.loadComponent&&(i||n.loadChildren)&&n.outlet&&n.outlet!==Ge&&(n.component=OF),n}function cr(e){return e.outlet||Ge}function yu(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let i=e.parent;i;i=i.parent){const n=i.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class AZ{constructor(i,n,t,r,s){this.routeReuseStrategy=i,this.futureState=n,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(i){const n=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,t,i),kw(this.futureState.root),this.activateChildRoutes(n,t,i)}deactivateChildRoutes(i,n,t){const r=Ll(n);i.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(i,n,t){const r=i.value,s=n?n.value:null;if(r===s)if(r.component){const o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(i,n,o.children)}else this.deactivateChildRoutes(i,n,t);else s&&this.deactivateRouteAndItsChildren(n,t)}deactivateRouteAndItsChildren(i,n){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,n):this.deactivateRouteAndOutlet(i,n)}detachAndStoreRouteSubtree(i,n){const t=n.getContext(i.value.outlet),r=t&&i.value.component?t.children:n,s=Ll(i);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(t&&t.outlet){const o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:a})}}deactivateRouteAndOutlet(i,n){const t=n.getContext(i.value.outlet),r=t&&i.value.component?t.children:n,s=Ll(i);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(i,n,t){const r=Ll(n);i.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new _Z(s.value.snapshot))}),i.children.length&&this.forwardEvent(new pZ(i.value.snapshot))}activateRoutes(i,n,t){const r=i.value,s=n?n.value:null;if(kw(r),r===s)if(r.component){const o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(i,n,o.children)}else this.activateChildRoutes(i,n,t);else if(r.component){const o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),kw(a.route.value),this.activateChildRoutes(i,null,o.children)}else{const a=yu(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(i,null,o.children)}}else this.activateChildRoutes(i,null,t)}}class FF{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class Sp{constructor(i,n){this.component=i,this.route=n}}function RZ(e,i,n){const t=e._root;return wu(t,i?i._root:null,n,[t.value])}function Bl(e,i){const n=Symbol(),t=i.get(e,n);return t===n?"function"!=typeof e||function X4(e){return null!==Hh(e)}(e)?i.get(e):e:t}function wu(e,i,n,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ll(i);return e.children.forEach(o=>{(function FZ(e,i,n,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=i?i.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function NZ(e,i,n){if("function"==typeof n)return n(e,i);switch(n){case"pathParamsChange":return!Xo(e.url,i.url);case"pathParamsOrQueryParamsChange":return!Xo(e.url,i.url)||!zr(e.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cw(e,i)||!zr(e.queryParams,i.queryParams);default:return!Cw(e,i)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new FF(t)):(s.data=o.data,s._resolvedData=o._resolvedData),wu(e,i,s.component?a?a.children:null:n,t,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Sp(a.outlet.component,o))}else o&&xu(i,a,r),r.canActivateChecks.push(new FF(t)),wu(e,null,s.component?a?a.children:null:n,t,r)})(o,s[o.value.outlet],n,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>xu(a,n.getContext(o),r)),r}function xu(e,i,n){const t=Ll(e),r=e.value;Object.entries(t).forEach(([s,o])=>{xu(o,r.component?i?i.children.getContext(s):null:i,n)}),n.canDeactivateChecks.push(new Sp(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function ku(e){return"function"==typeof e}function NF(e){return e instanceof cu||"EmptyError"===e?.name}const Ep=Symbol("INITIAL_VALUE");function Vl(){return ei(e=>Ko(e.map(i=>i.pipe(ze(1),Di(Ep)))).pipe(se(i=>{for(const n of i)if(!0!==n){if(n===Ep)return Ep;if(!1===n||n instanceof Pl)return n}return!0}),$e(i=>i!==Ep),ze(1)))}function PF(e){return function e4(...e){return GC(e)}(zt(i=>{if(Zo(i))throw TF(0,i)}),se(i=>!0===i))}class Mp{constructor(i){this.segmentGroup=i||null}}class LF{constructor(i){this.urlTree=i}}function jl(e){return Ys(new Mp(e))}function BF(e){return Ys(new LF(e))}class tQ{constructor(i,n){this.urlSerializer=i,this.urlTree=n}noMatchError(i){return new O(4002,!1)}lineralizeSegments(i,n){let t=[],r=n.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return ee(t);if(r.numberOfChildren>1||!r.children[Ge])return Ys(new O(4e3,!1));r=r.children[Ge]}}applyRedirectCommands(i,n,t){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),i,t)}applyRedirectCreateUrlTree(i,n,t,r){const s=this.createSegmentGroup(i,n.root,t,r);return new Pl(s,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(i,n){const t={};return Object.entries(i).forEach(([r,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);t[r]=n[a]}else t[r]=s}),t}createSegmentGroup(i,n,t,r){const s=this.createSegments(i,n.segments,t,r);let o={};return Object.entries(n.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(i,l,t,r)}),new pt(s,o)}createSegments(i,n,t,r){return n.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,r):this.findOrReturn(s,t))}findPosParam(i,n,t){const r=t[n.path.substring(1)];if(!r)throw new O(4001,!1);return r}findOrReturn(i,n){let t=0;for(const r of n){if(r.path===i.path)return n.splice(t),r;t++}return i}}const Mw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iQ(e,i,n,t,r){const s=Tw(e,i,n);return s.matched?(t=function DZ(e,i){return e.providers&&!e._injector&&(e._injector=ny(e.providers,i,`Route: ${e.path}`)),e._injector??i}(i,t),function QZ(e,i,n,t){const r=i.canMatch;return r&&0!==r.length?ee(r.map(o=>{const a=Bl(o,e);return Qs(function zZ(e){return e&&ku(e.canMatch)}(a)?a.canMatch(i,n):e.runInContext(()=>a(i,n)))})).pipe(Vl(),PF()):ee(!0)}(t,i,n).pipe(se(o=>!0===o?s:{...Mw}))):ee(s)}function Tw(e,i,n){if(""===i.path)return"full"===i.pathMatch&&(e.hasChildren()||n.length>0)?{...Mw}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const r=(i.matcher||FX)(n,e,i);if(!r)return{...Mw};const s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const o=r.consumed.length>0?{...s,...r.consumed[r.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function VF(e,i,n,t){return n.length>0&&function sQ(e,i,n){return n.some(t=>Tp(e,i,t)&&cr(t)!==Ge)}(e,n,t)?{segmentGroup:new pt(i,rQ(t,new pt(n,e.children))),slicedSegments:[]}:0===n.length&&function oQ(e,i,n){return n.some(t=>Tp(e,i,t))}(e,n,t)?{segmentGroup:new pt(e.segments,nQ(e,0,n,t,e.children)),slicedSegments:n}:{segmentGroup:new pt(e.segments,e.children),slicedSegments:n}}function nQ(e,i,n,t,r){const s={};for(const o of t)if(Tp(e,n,o)&&!r[cr(o)]){const a=new pt([],{});s[cr(o)]=a}return{...r,...s}}function rQ(e,i){const n={};n[Ge]=i;for(const t of e)if(""===t.path&&cr(t)!==Ge){const r=new pt([],{});n[cr(t)]=r}return n}function Tp(e,i,n){return(!(e.hasChildren()||i.length>0)||"full"!==n.pathMatch)&&""===n.path}class dQ{constructor(i,n,t,r,s,o,a){this.injector=i,this.configLoader=n,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new tQ(this.urlSerializer,this.urlTree)}noMatchError(i){return new O(4002,!1)}recognize(){const i=VF(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ge).pipe(lr(n=>{if(n instanceof LF)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Mp?this.noMatchError(n):n}),se(n=>{const t=new Cp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ge,this.rootComponentType,null,{}),r=new fs(t,n),s=new SF("",r),o=function eZ(e,i,n=null,t=null){return pF(mF(e),i,n,t)}(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root),{state:s,tree:o}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ge).pipe(lr(t=>{throw t instanceof Mp?this.noMatchError(t):t}))}inheritParamsAndData(i){const n=i.value,t=DF(n,this.paramsInheritanceStrategy);n.params=Object.freeze(t.params),n.data=Object.freeze(t.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,n,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(i,n,t):this.processSegment(i,n,t,t.segments,r,!0)}processChildren(i,n,t){const r=[];for(const s of Object.keys(t.children))"primary"===s?r.unshift(s):r.push(s);return Jt(r).pipe($s(s=>{const o=t.children[s],a=function TZ(e,i){const n=e.filter(t=>cr(t)===i);return n.push(...e.filter(t=>cr(t)!==i)),n}(n,s);return this.processSegmentGroup(i,a,o,s)}),sO((s,o)=>(s.push(...o),s)),gp(null),function RX(e,i){const n=arguments.length>=2;return t=>t.pipe(e?$e((r,s)=>e(r,s,t)):yr,hw(1),n?gp(i):tF(()=>new cu))}(),Bt(s=>{if(null===s)return jl(t);const o=jF(s);return function uQ(e){e.sort((i,n)=>i.value.outlet===Ge?-1:n.value.outlet===Ge?1:i.value.outlet.localeCompare(n.value.outlet))}(o),ee(o)}))}processSegment(i,n,t,r,s,o){return Jt(n).pipe($s(a=>this.processSegmentAgainstRoute(a._injector??i,n,a,t,r,s,o).pipe(lr(l=>{if(l instanceof Mp)return ee(null);throw l}))),Zs(a=>!!a),lr(a=>{if(NF(a))return function lQ(e,i,n){return 0===i.length&&!e.children[n]}(t,r,s)?ee([]):jl(t);throw a}))}processSegmentAgainstRoute(i,n,t,r,s,o,a){return function aQ(e,i,n,t){return!!(cr(e)===t||t!==Ge&&Tp(i,n,e))&&("**"===e.path||Tw(i,e,n).matched)}(t,r,s,o)?void 0===t.redirectTo?this.matchSegmentAgainstRoute(i,r,t,s,o,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,r,n,t,s,o):jl(r):jl(r)}expandSegmentAgainstRouteUsingRedirect(i,n,t,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,t,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,n,t,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,t,r){const s=this.applyRedirects.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?BF(s):this.applyRedirects.lineralizeSegments(t,s).pipe(Bt(o=>{const a=new pt(o,{});return this.processSegment(i,n,a,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,n,t,r,s,o){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:d}=Tw(n,r,s);if(!a)return jl(n);const u=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?BF(u):this.applyRedirects.lineralizeSegments(r,u).pipe(Bt(h=>this.processSegment(i,t,n,h.concat(c),o,!1)))}matchSegmentAgainstRoute(i,n,t,r,s,o){let a;if("**"===t.path){const l=r.length>0?nF(r).parameters:{};a=ee({snapshot:new Cp(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zF(t),cr(t),t.component??t._loadedComponent??null,t,HF(t)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=iQ(n,t,r,i).pipe(se(({matched:l,consumedSegments:c,remainingSegments:d,parameters:u})=>l?{snapshot:new Cp(c,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zF(t),cr(t),t.component??t._loadedComponent??null,t,HF(t)),consumedSegments:c,remainingSegments:d}:null));return a.pipe(ei(l=>null===l?jl(n):this.getChildConfig(i=t._injector??i,t,r).pipe(ei(({routes:c})=>{const d=t._loadedInjector??i,{snapshot:u,consumedSegments:h,remainingSegments:f}=l,{segmentGroup:_,slicedSegments:g}=VF(n,h,f,c);if(0===g.length&&_.hasChildren())return this.processChildren(d,c,_).pipe(se(b=>null===b?null:[new fs(u,b)]));if(0===c.length&&0===g.length)return ee([new fs(u,[])]);const m=cr(t)===s;return this.processSegment(d,c,_,g,m?Ge:s,!0).pipe(se(b=>[new fs(u,b)]))}))))}getChildConfig(i,n,t){return n.children?ee({routes:n.children,injector:i}):n.loadChildren?void 0!==n._loadedRoutes?ee({routes:n._loadedRoutes,injector:n._loadedInjector}):function ZZ(e,i,n,t){const r=i.canLoad;return void 0===r||0===r.length?ee(!0):ee(r.map(o=>{const a=Bl(o,e);return Qs(function LZ(e){return e&&ku(e.canLoad)}(a)?a.canLoad(i,n):e.runInContext(()=>a(i,n)))})).pipe(Vl(),PF())}(i,n,t).pipe(Bt(r=>r?this.configLoader.loadChildren(i,n).pipe(zt(s=>{n._loadedRoutes=s.routes,n._loadedInjector=s.injector})):function eQ(e){return Ys(IF(!1,3))}())):ee({routes:[],injector:i})}}function hQ(e){const i=e.value.routeConfig;return i&&""===i.path}function jF(e){const i=[],n=new Set;for(const t of e){if(!hQ(t)){i.push(t);continue}const r=i.find(s=>t.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...t.children),n.add(r)):i.push(t)}for(const t of n){const r=jF(t.children);i.push(new fs(t.value,r))}return i.filter(t=>!n.has(t))}function zF(e){return e.data||{}}function HF(e){return e.resolve||{}}function $F(e){return"string"==typeof e.title||null===e.title}function Iw(e){return ei(i=>{const n=e(i);return n?Jt(n).pipe(se(()=>i)):ee(i)})}const zl=new M("ROUTES");let Aw=(()=>{var e;class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=G(tI)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ee(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Qs(t.loadComponent()).pipe(se(UF),zt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Sl(()=>{this.componentLoaders.delete(t)})),s=new Qm(r,()=>new $).pipe(F0());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ee({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(se(l=>{this.onLoadEndListener&&this.onLoadEndListener(r);let c,d;return Array.isArray(l)?d=l:(c=l.create(t).injector,d=c.get(zl,[],We.Self|We.Optional).flat()),{routes:d.map(Ew),injector:c}}),Sl(()=>{this.childrenLoaders.delete(r)})),a=new Qm(o,()=>new $).pipe(F0());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(t){return Qs(t()).pipe(se(UF),Bt(r=>r instanceof dT||Array.isArray(r)?ee(r):Jt(this.compiler.compileModuleAsync(r))))}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function UF(e){return function vQ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ip=(()=>{var e;class i{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new $,this.configLoader=G(Aw),this.environmentInjector=G(bn),this.urlSerializer=G(hu),this.rootContexts=G(bu),this.inputBindingEnabled=null!==G(Dp,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ee(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=s=>this.events.next(new fZ(s)),this.configLoader.onLoadStartListener=s=>this.events.next(new hZ(s))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new Et({id:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:gu,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe($e(r=>0!==r.id),se(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),ei(r=>{let s=!1,o=!1;return ee(r).pipe(zt(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}}),ei(a=>{const l=t.browserUrlTree.toString(),c=!t.navigated||a.extractedUrl.toString()!==l||l!==t.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new _u(a.id,t.serializeUrl(r.rawUrl),u,0)),t.rawUrlTree=a.rawUrl,a.resolve(null),Xn}if(t.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return GF(a.source)&&(t.browserUrlTree=a.extractedUrl),ee(a).pipe(ei(u=>{const h=this.transitions?.getValue();return this.events.next(new bw(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?Xn:Promise.resolve(u)}),function fQ(e,i,n,t,r,s){return Bt(o=>function cQ(e,i,n,t,r,s,o="emptyOnly"){return new dQ(e,i,n,t,r,o,s).recognize()}(e,i,n,t,o.extractedUrl,r,s).pipe(se(({state:a,tree:l})=>({...o,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),zt(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const f=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(f,u)}t.browserUrlTree=u.urlAfterRedirects}const h=new aZ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(c&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:h,source:f,restoredState:_,extras:g}=a,m=new bw(u,this.urlSerializer.serialize(h),f,_);this.events.next(m);const b=CF(0,this.rootComponentType).snapshot;return ee(r={...a,targetSnapshot:b,urlAfterRedirects:h,extras:{...g,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new _u(a.id,t.serializeUrl(r.extractedUrl),u,1)),t.rawUrlTree=a.rawUrl,a.resolve(null),Xn}}),zt(a=>{const l=new lZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),se(a=>r={...a,guards:RZ(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function $Z(e,i){return Bt(n=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?ee({...n,guardsResult:!0}):function UZ(e,i,n,t){return Jt(e).pipe(Bt(r=>function XZ(e,i,n,t,r){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ee(s.map(a=>{const l=yu(i)??r,c=Bl(a,l);return Qs(function jZ(e){return e&&ku(e.canDeactivate)}(c)?c.canDeactivate(e,i,n,t):l.runInContext(()=>c(e,i,n,t))).pipe(Zs())})).pipe(Vl()):ee(!0)}(r.component,r.route,n,i,t)),Zs(r=>!0!==r,!0))}(o,t,r,e).pipe(Bt(a=>a&&function PZ(e){return"boolean"==typeof e}(a)?function GZ(e,i,n,t){return Jt(i).pipe($s(r=>Vr(function WZ(e,i){return null!==e&&i&&i(new mZ(e)),ee(!0)}(r.route.parent,t),function qZ(e,i){return null!==e&&i&&i(new gZ(e)),ee(!0)}(r.route,t),function KZ(e,i,n){const t=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(o=>function OZ(e){const i=e.routeConfig?e.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:e,guards:i}:null}(o)).filter(o=>null!==o).map(o=>us(()=>ee(o.guards.map(l=>{const c=yu(o.node)??n,d=Bl(l,c);return Qs(function VZ(e){return e&&ku(e.canActivateChild)}(d)?d.canActivateChild(t,e):c.runInContext(()=>d(t,e))).pipe(Zs())})).pipe(Vl())));return ee(s).pipe(Vl())}(e,r.path,n),function YZ(e,i,n){const t=i.routeConfig?i.routeConfig.canActivate:null;if(!t||0===t.length)return ee(!0);const r=t.map(s=>us(()=>{const o=yu(i)??n,a=Bl(s,o);return Qs(function BZ(e){return e&&ku(e.canActivate)}(a)?a.canActivate(i,e):o.runInContext(()=>a(i,e))).pipe(Zs())}));return ee(r).pipe(Vl())}(e,r.route,n))),Zs(r=>!0!==r,!0))}(t,s,e,i):ee(a)),se(a=>({...n,guardsResult:a})))})}(this.environmentInjector,a=>this.events.next(a)),zt(a=>{if(r.guardsResult=a.guardsResult,Zo(a.guardsResult))throw TF(0,a.guardsResult);const l=new cZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(l)}),$e(a=>!!a.guardsResult||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Iw(a=>{if(a.guards.canActivateChecks.length)return ee(a).pipe(zt(l=>{const c=new dZ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),ei(l=>{let c=!1;return ee(l).pipe(function mQ(e,i){return Bt(n=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return ee(n);let s=0;return Jt(r).pipe($s(o=>function pQ(e,i,n,t){const r=e.routeConfig,s=e._resolve;return void 0!==r?.title&&!$F(r)&&(s[du]=r.title),function gQ(e,i,n,t){const r=function _Q(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return ee({});const s={};return Jt(r).pipe(Bt(o=>function bQ(e,i,n,t){const r=yu(i)??t,s=Bl(e,r);return Qs(s.resolve?s.resolve(i,n):r.runInContext(()=>s(i,n)))}(e[o],i,n,t).pipe(Zs(),zt(a=>{s[o]=a}))),hw(1),ip(s),lr(o=>NF(o)?Xn:Ys(o)))}(s,e,i,t).pipe(se(o=>(e._resolvedData=o,e.data=DF(e,n).resolve,r&&$F(r)&&(e.data[du]=r.title),null)))}(o.route,t,e,i)),zt(()=>s++),hw(1),Bt(o=>s===r.length?ee(n):Xn))})}(t.paramsInheritanceStrategy,this.environmentInjector),zt({next:()=>c=!0,complete:()=>{c||(t.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),zt(l=>{const c=new uZ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}))}),Iw(a=>{const l=c=>{const d=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(zt(u=>{c.component=u}),se(()=>{})));for(const u of c.children)d.push(...l(u));return d};return Ko(l(a.targetSnapshot.root)).pipe(gp(),ze(1))}),Iw(()=>this.afterPreactivation()),se(a=>{const l=function xZ(e,i,n){const t=vu(e,i._root,n?n._root:void 0);return new kF(t,i)}(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),zt(a=>{t.currentUrlTree=a.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),t.routerState=a.targetRouterState,"deferred"===t.urlUpdateStrategy&&(a.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,a),t.browserUrlTree=a.urlAfterRedirects)}),((e,i,n,t)=>se(r=>(new AZ(i,r.targetRouterState,r.currentRouterState,n,t).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ze(1),zt({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new Qo(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Sl(()=>{s||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),lr(a=>{if(o=!0,RF(a)){AF(a)||(t.navigated=!0,t.restoreHistory(r,!0));const l=new kp(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode);if(this.events.next(l),AF(a)){const c=t.urlHandlingStrategy.merge(a.url,t.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||GF(r.source)};t.scheduleNavigation(c,gu,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const l=new vw(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);this.events.next(l);try{r.resolve(t.errorHandler(a))}catch(c){r.reject(c)}}return Xn}))}))}cancelNavigationTransition(t,r,s){const o=new kp(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),t.resolve(!1)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function GF(e){return e!==gu}let qF=(()=>{var e;class i{buildTitle(t){let r,s=t.root;for(;void 0!==s;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===Ge);return r}getResolvedTitleForRoute(t){return t.data[du]}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(yQ)},providedIn:"root"}),i})(),yQ=(()=>{var e;class i extends qF{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(MA))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),wQ=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(kQ)},providedIn:"root"}),i})();class xQ{shouldDetach(i){return!1}store(i,n){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,n){return i.routeConfig===n.routeConfig}}let kQ=(()=>{var e;class i extends xQ{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Ap=new M("",{providedIn:"root",factory:()=>({})});let CQ=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return G(DQ)},providedIn:"root"}),i})(),DQ=(()=>{var e;class i{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();var Cu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Cu||{});function WF(e,i){e.events.pipe($e(n=>n instanceof Qo||n instanceof kp||n instanceof vw||n instanceof _u),se(n=>n instanceof Qo||n instanceof _u?Cu.COMPLETE:n instanceof kp&&(0===n.code||1===n.code)?Cu.REDIRECTING:Cu.FAILED),$e(n=>n!==Cu.REDIRECTING),ze(1)).subscribe(()=>{i()})}function SQ(e){throw e}function EQ(e,i,n){return i.parse("/")}const MQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ri=(()=>{var e;class i{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=G(eI),this.isNgZoneEnabled=!1,this.options=G(Ap,{optional:!0})||{},this.pendingTasks=G(pm),this.errorHandler=this.options.errorHandler||SQ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||EQ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=G(CQ),this.routeReuseStrategy=G(wQ),this.titleStrategy=G(qF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=G(zl,{optional:!0})?.flat()??[],this.navigationTransitions=G(Ip),this.urlSerializer=G(hu),this.location=G(Rd),this.componentInputBindingEnabled=!!G(Dp,{optional:!0}),this.isNgZoneEnabled=G(ce)instanceof ce&&ce.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Pl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=CF(0,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId??0},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),gu,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,s){const o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){const c={...s};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const l=this.parseUrl(t);this.scheduleNavigation(l,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Ew),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,d=c?this.currentUrlTree.fragment:a;let h,u=null;switch(l){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{h=mF(s?s.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),h=this.currentUrlTree.root}return pF(h,t,u,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){const s=Zo(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,gu,null,r)}navigate(t,r={skipLocationChange:!1}){return function IQ(e){for(let i=0;i{const o=t[s];return null!=o&&(r[s]=o),r},{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,f)=>{l=h,c=f});const u=this.pendingTasks.add();return WF(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}setBrowserUrl(t,r){const s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){const a={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(s,"",a)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(s,"",o)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&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))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Hl=(()=>{var e;class i{constructor(t,r,s,o,a,l){this.router=t,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new $,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(d=>{d instanceof Qo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,s,o,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||s||o||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function CS(e,i,n){return function sH(e,i){return"src"===i&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===i&&("base"===e||"link"===e)?kS:xS}(i,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const s=this.renderer,o=this.el.nativeElement;null!==r?s.setAttribute(o,t,r):s.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Ri),p(Js),Mi("tabindex"),p(rs),p(ne),p(jo))},e.\u0275dir=I({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,r){1&t&&H("click",function(o){return r.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&t&&_e("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Cl],skipLocationChange:["skipLocationChange","skipLocationChange",Cl],replaceUrl:["replaceUrl","replaceUrl",Cl],routerLink:"routerLink"},standalone:!0,features:[TE,bt]}),i})();class YF{}let OQ=(()=>{var e;class i{constructor(t,r,s,o,a){this.router=t,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe($e(t=>t instanceof Qo),$s(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const s=[];for(const o of r){o.providers&&!o._injector&&(o._injector=ny(o.providers,t,`Route: ${o.path}`));const a=o._injector??t,l=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(l,o.children??o._loadedRoutes))}return Jt(s).pipe(Sa())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let s;s=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):ee(null);const o=s.pipe(Bt(a=>null===a?ee(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return r.loadComponent&&!r._loadedComponent?Jt([o,this.loader.loadComponent(r)]).pipe(Sa()):o})}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ri),x(tI),x(bn),x(YF),x(Aw))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Rw=new M("");let KF=(()=>{var e;class i{constructor(t,r,s,o,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof bw?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Qo?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof _u&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof wF&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new wF(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function ms(e,i){return{\u0275kind:e,\u0275providers:i}}function ZF(){const e=G(kt);return i=>{const n=e.get(Nr);if(i!==n.components[0])return;const t=e.get(Ri),r=e.get(QF);1===e.get(Ow)&&t.initialNavigation(),e.get(JF,null,We.Optional)?.setUpPreloading(),e.get(Rw,null,We.Optional)?.init(),t.resetRootComponentType(n.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const QF=new M("",{factory:()=>new $}),Ow=new M("",{providedIn:"root",factory:()=>1}),JF=new M("");function LQ(e){return ms(0,[{provide:JF,useExisting:OQ},{provide:YF,useExisting:e}])}const eN=new M("ROUTER_FORROOT_GUARD"),VQ=[Rd,{provide:hu,useClass:fw},Ri,bu,{provide:Js,useFactory:function XF(e){return e.routerState.root},deps:[Ri]},Aw,[]];function jQ(){return new fI("Router",Ri)}let tN=(()=>{var e;class i{constructor(t){}static forRoot(t,r){return{ngModule:i,providers:[VQ,[],{provide:zl,multi:!0,useValue:t},{provide:eN,useFactory:UQ,deps:[[Ri,new Ls,new qa]]},{provide:Ap,useValue:r||{}},r?.useHash?{provide:jo,useClass:jq}:{provide:jo,useClass:HI},{provide:Rw,useFactory:()=>{const e=G(i9),i=G(ce),n=G(Ap),t=G(Ip),r=G(hu);return n.scrollOffset&&e.setOffset(n.scrollOffset),new KF(r,t,e,i,n)}},r?.preloadingStrategy?LQ(r.preloadingStrategy).\u0275providers:[],{provide:fI,multi:!0,useFactory:jQ},r?.initialNavigation?GQ(r):[],r?.bindToComponentInputs?ms(8,[MF,{provide:Dp,useExisting:MF}]).\u0275providers:[],[{provide:iN,useFactory:ZF},{provide:Ey,multi:!0,useExisting:iN}]]}}static forChild(t){return{ngModule:i,providers:[{provide:zl,multi:!0,useValue:t}]}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(eN,8))},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();function UQ(e){return"guarded"}function GQ(e){return["disabled"===e.initialNavigation?ms(3,[{provide:mm,multi:!0,useFactory:()=>{const i=G(Ri);return()=>{i.setUpLocationChangeListener()}}},{provide:Ow,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?ms(2,[{provide:Ow,useValue:0},{provide:mm,multi:!0,deps:[kt],useFactory:i=>{const n=i.get(Bq,Promise.resolve());return()=>n.then(()=>new Promise(t=>{const r=i.get(Ri),s=i.get(QF);WF(r,()=>{t(!0)}),i.get(Ip).afterPreactivation=()=>(t(!0),s.closed?ee(void 0):s),r.initialNavigation()}))}}]).\u0275providers:[]]}const iN=new M("");function Fw(e,i){const n="object"==typeof i;return new Promise((t,r)=>{const s=new Da({next:o=>{t(o),s.unsubscribe()},error:r,complete:()=>{n?t(i.defaultValue):r(new cu)}});e.subscribe(s)})}let Nw;try{Nw=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Nw=!1}let $l,Ot=(()=>{var e;class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Om(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Nw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(e=i).\u0275fac=function(t){return new(t||e)(x(er))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const nN=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rN(){if($l)return $l;if("object"!=typeof document||!document)return $l=new Set(nN),$l;let e=document.createElement("input");return $l=new Set(nN.filter(i=>(e.setAttribute("type",i),e.type===i))),$l}let Du,Rp,Jo,Pw;function ps(e){return function WQ(){if(null==Du&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Du=!0}))}finally{Du=Du||!1}return Du}()?e:!!e.capture}function sN(){if(null==Jo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Jo=!1,Jo;if("scrollBehavior"in document.documentElement.style)Jo=!0;else{const e=Element.prototype.scrollTo;Jo=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Jo}function Su(){if("object"!=typeof document||!document)return 0;if(null==Rp){const e=document.createElement("div"),i=e.style;e.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const n=document.createElement("div"),t=n.style;t.width="2px",t.height="1px",e.appendChild(n),document.body.appendChild(e),Rp=0,0===e.scrollLeft&&(e.scrollLeft=1,Rp=0===e.scrollLeft?1:2),e.remove()}return Rp}function Lw(e){if(function YQ(){if(null==Pw){const e=typeof document<"u"?document.head:null;Pw=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Pw}()){const i=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Op(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const i=e.shadowRoot.activeElement;if(i===e)break;e=i}return e}function Vn(e){return e.composedPath?e.composedPath()[0]:e.target}function Bw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function qi(e,...i){return i.length?i.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function Lp(e,i=Yd){return wt((n,t)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,t.next(c)}};function l(){const c=o+e,d=i.now();if(d{s=c,o=i.now(),r||(r=i.schedule(l,e),t.add(r))},()=>{a(),t.complete()},void 0,()=>{s=r=null}))})}function cN(e){return $e((i,n)=>e<=n)}function ke(e){return wt((i,n)=>{si(e).subscribe(ft(n,()=>n.complete(),Ts)),!n.closed&&i.subscribe(n)})}function re(e){return null!=e&&"false"!=`${e}`}function Oi(e,i=0){return dN(e)?Number(e):i}function dN(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Eu(e){return Array.isArray(e)?e:[e]}function ni(e){return null==e?"":"string"==typeof e?e:`${e}px`}function $t(e){return e instanceof ne?e.nativeElement:e}let uN=(()=>{var e;class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),cJ=(()=>{var e;class i{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,r)=>this._cleanupObserver(r))}observe(t){const r=$t(t);return new et(s=>{const a=this._observeElement(r).subscribe(s);return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const r=new $,s=this._mutationObserverFactory.create(o=>r.next(o));s&&s.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:s,stream:r,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:r,stream:s}=this._observedElements.get(t);r&&r.disconnect(),s.complete(),this._observedElements.delete(t)}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(uN))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Bp=(()=>{var e;class i{get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Oi(t),this._subscribe()}constructor(t,r,s){this._contentObserver=t,this._elementRef=r,this._ngZone=s,this.event=new W,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Lp(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(cJ),p(ne),p(ce))},e.\u0275dir=I({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),Vp=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[uN]}),i})();const hN=new Set;let ea,dJ=(()=>{var e;class i{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hJ}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function uJ(e,i){if(!hN.has(e))try{ea||(ea=document.createElement("style"),i&&(ea.nonce=i),ea.setAttribute("type","text/css"),document.head.appendChild(ea)),ea.sheet&&(ea.sheet.insertRule(`@media ${e} {body{ }}`,0),hN.add(e))}catch(n){console.error(n)}}(t,this._nonce),this._matchMedia(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(fv,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function hJ(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let Mu=(()=>{var e;class i{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new $}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return fN(Eu(t)).some(s=>this._registerQuery(s).mql.matches)}observe(t){let o=Ko(fN(Eu(t)).map(a=>this._registerQuery(a).observable));return o=Vr(o.pipe(ze(1)),o.pipe(cN(1),Lp(0))),o.pipe(se(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),o={observable:new et(a=>{const l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Di(r),se(({matches:a})=>({query:t,matches:a})),ke(this._destroySubject)),mql:r};return this._queries.set(t,o),o}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dJ),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function fN(e){return e.map(i=>i.split(",")).reduce((i,n)=>i.concat(n)).map(i=>i.trim())}const io_Medium="(min-width: 960px) and (max-width: 1279.98px)",io_Large="(min-width: 1280px) and (max-width: 1919.98px)";function pN(e,i,n){const t=jp(e,i);t.some(r=>r.trim()==n.trim())||(t.push(n.trim()),e.setAttribute(i,t.join(" ")))}function jw(e,i,n){const r=jp(e,i).filter(s=>s!=n.trim());r.length?e.setAttribute(i,r.join(" ")):e.removeAttribute(i)}function jp(e,i){return(e.getAttribute(i)||"").match(/\S+/g)||[]}const gN="cdk-describedby-message",zp="cdk-describedby-host";let zw=0,_N=(()=>{var e;class i{constructor(t,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+zw++,this._document=t,this._id=G(od)+"-"+zw++}describe(t,r,s){if(!this._canBeDescribed(t,r))return;const o=Hw(r,s);"string"!=typeof r?(bN(r,this._id),this._messageRegistry.set(o,{messageElement:r,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(r,s),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,r,s){if(!r||!this._isElementNode(t))return;const o=Hw(r,s);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof r){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${zp}="${this._id}"]`);for(let r=0;r0!=s.indexOf(gN));t.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(t,r){const s=this._messageRegistry.get(r);pN(t,"aria-describedby",s.messageElement.id),t.setAttribute(zp,this._id),s.referenceCount++}_removeMessageReference(t,r){const s=this._messageRegistry.get(r);s.referenceCount--,jw(t,"aria-describedby",s.messageElement.id),t.removeAttribute(zp)}_isElementDescribedByMessage(t,r){const s=jp(t,"aria-describedby"),o=this._messageRegistry.get(r),a=o&&o.messageElement.id;return!!a&&-1!=s.indexOf(a)}_canBeDescribed(t,r){if(!this._isElementNode(t))return!1;if(r&&"object"==typeof r)return!0;const s=null==r?"":`${r}`.trim(),o=t.getAttribute("aria-label");return!(!s||o&&o.trim()===s)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(Ot))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function Hw(e,i){return"string"==typeof e?`${i||""}/${e}`:e}function bN(e,i){e.id||(e.id=`${gN}-${i}-${zw++}`)}class vN{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new $,this._typeaheadSubscription=Qe.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new $,this.change=new $,i instanceof wl&&(this._itemChangesSubscription=i.changes.subscribe(n=>{if(this._activeItem){const r=n.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zt(n=>this._pressedLetters.push(n)),Lp(i),$e(()=>this._pressedLetters.length>0),se(()=>this._pressedLetters.join(""))).subscribe(n=>{const t=this._getItemsArray();for(let r=1;r!i[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){const n=this._getItemsArray(),t="number"==typeof i?i:n.indexOf(i);this._activeItem=n[t]??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const n=this._getItemsArray();for(let t=1;t<=n.length;t++){const r=(this._activeItemIndex+i*t+n.length)%n.length;if(!this._skipPredicateFn(n[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,n){const t=this._getItemsArray();if(t[i]){for(;this._skipPredicateFn(t[i]);)if(!t[i+=n])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof wl?this._items.toArray():this._items}}class fJ extends vN{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class $w extends vN{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let Gl=(()=>{var e;class i{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function pJ(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const r=function mJ(e){try{return e.frameElement}catch{return null}}(function kJ(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(t));if(r&&(-1===wN(r)||!this.isVisible(r)))return!1;let s=t.nodeName.toLowerCase(),o=wN(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function wJ(e){let i=e.nodeName.toLowerCase(),n="input"===i&&e.type;return"text"===n||"password"===n||"select"===i||"textarea"===i}(t))&&("audio"===s?!!t.hasAttribute("controls")&&-1!==o:"video"===s?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,r){return function xJ(e){return!function _J(e){return function vJ(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function gJ(e){let i=e.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(e)||function bJ(e){return function yJ(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||yN(e))}(t)&&!this.isDisabled(t)&&(r?.ignoreVisibility||this.isVisible(t))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function yN(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let i=e.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function wN(e){if(!yN(e))return null;const i=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class CJ{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,n,t,r,s=!1){this._element=i,this._checker=n,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){const i=this._startAnchor,n=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const n=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){const t=this._getFirstTabbableElement(n);return t?.focus(i),!!t}return n.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const n=this._getRegionBoundary("start");return n&&n.focus(i),!!n}focusLastTabbableElement(i){const n=this._getRegionBoundary("end");return n&&n.focus(i),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const n=i.children;for(let t=0;t=0;t--){const r=n[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[t]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,n){i?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(ze(1)).subscribe(i)}}let Tu=(()=>{var e;class i{constructor(t,r,s){this._checker=t,this._ngZone=r,this._document=s}create(t,r=!1){return new CJ(t,this._checker,this._ngZone,this._document,r)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Gl),x(ce),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function Uw(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}function Gw(e){const i=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const DJ=new M("cdk-input-modality-detector-options"),SJ={ignoreKeys:[18,17,224,91,16]},ql=ps({passive:!0,capture:!0});let EJ=(()=>{var e;class i{get mostRecentModality(){return this._modality.value}constructor(t,r,s,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Et(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Uw(a)?"keyboard":"mouse"),this._mostRecentTarget=Vn(a))},this._onTouchstart=a=>{Gw(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vn(a))},this._options={...SJ,...o},this.modalityDetected=this._modality.pipe(cN(1)),this.modalityChanged=this.modalityDetected.pipe(xo()),t.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ql),s.addEventListener("mousedown",this._onMousedown,ql),s.addEventListener("touchstart",this._onTouchstart,ql)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ql),document.removeEventListener("mousedown",this._onMousedown,ql),document.removeEventListener("touchstart",this._onTouchstart,ql))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(ce),x(xe),x(DJ,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const MJ=new M("liveAnnouncerElement",{providedIn:"root",factory:function TJ(){return null}}),IJ=new M("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let AJ=0,qw=(()=>{var e;class i{constructor(t,r,s,o){this._ngZone=r,this._defaultOptions=o,this._document=s,this._liveElement=t||this._createLiveElement()}announce(t,...r){const s=this._defaultOptions;let o,a;return 1===r.length&&"number"==typeof r[0]?a=r[0]:[o,a]=r,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),null==a&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const t="cdk-live-announcer-element",r=this._document.getElementsByClassName(t),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{var e;class i{constructor(t,r,s,o,a){this._ngZone=t,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=l=>{for(let d=Vn(l);d;d=d.parentElement)"focus"===l.type?this._onFocus(l,d):this._onBlur(l,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,r=!1){const s=$t(t);if(!this._platform.isBrowser||1!==s.nodeType)return ee();const o=Lw(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;const l={checkChildren:r,subject:new $,rootNode:o};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){const r=$t(t),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(t,r,s){const o=$t(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),"function"==typeof o.focus&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused","touch"===r),t.classList.toggle("cdk-keyboard-focused","keyboard"===r),t.classList.toggle("cdk-mouse-focused","mouse"===r),t.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const s=this._elementInfo.get(r),o=Vn(t);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(t,r){const s=this._elementInfo.get(r);!s||s.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(t,r){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hp),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hp)}),this._rootNodeFocusListenerCount.set(r,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ke(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hp),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hp),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,s){this._setClasses(t,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((s,o)=>{(o===t||s.checkChildren&&o.contains(t))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!r||r===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let a=0;a{var e;class i{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=G(Mu).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(t):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Ww,kN,CN),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(Ww,kN):2===r&&t.add(Ww,CN)}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),SN=(()=>{var e;class i{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(DN))},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Vp]}),i})();const Iu={schedule(e){let i=requestAnimationFrame,n=cancelAnimationFrame;const{delegate:t}=Iu;t&&(i=t.requestAnimationFrame,n=t.cancelAnimationFrame);const r=i(s=>{n=void 0,e(s)});return new Qe(()=>n?.(r))},requestAnimationFrame(...e){const{delegate:i}=Iu;return(i?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:i}=Iu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0},EN=new class FJ extends tp{flush(i){this._active=!0;const n=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;i=i||t.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=t[0])&&i.id===n&&t.shift());if(this._active=!1,r){for(;(i=t[0])&&i.id===n&&t.shift();)i.unsubscribe();throw r}}}(class OJ extends ep{constructor(i,n){super(i,n),this.scheduler=i,this.work=n}requestAsyncId(i,n,t=0){return null!==t&&t>0?super.requestAsyncId(i,n,t):(i.actions.push(this),i._scheduled||(i._scheduled=Iu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,n,t=0){var r;if(null!=t?t>0:this.delay>0)return super.recycleAsyncId(i,n,t);const{actions:s}=i;null!=n&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==n&&(Iu.cancelAnimationFrame(n),i._scheduled=void 0)}});let Yw,NJ=1;const $p={};function MN(e){return e in $p&&(delete $p[e],!0)}const PJ={setImmediate(e){const i=NJ++;return $p[i]=!0,Yw||(Yw=Promise.resolve()),Yw.then(()=>MN(i)&&e()),i},clearImmediate(e){MN(e)}},{setImmediate:LJ,clearImmediate:BJ}=PJ,Up={setImmediate(...e){const{delegate:i}=Up;return(i?.setImmediate||LJ)(...e)},clearImmediate(e){const{delegate:i}=Up;return(i?.clearImmediate||BJ)(e)},delegate:void 0};new class jJ extends tp{flush(i){this._active=!0;const n=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;i=i||t.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=t[0])&&i.id===n&&t.shift());if(this._active=!1,r){for(;(i=t[0])&&i.id===n&&t.shift();)i.unsubscribe();throw r}}}(class VJ extends ep{constructor(i,n){super(i,n),this.scheduler=i,this.work=n}requestAsyncId(i,n,t=0){return null!==t&&t>0?super.requestAsyncId(i,n,t):(i.actions.push(this),i._scheduled||(i._scheduled=Up.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,n,t=0){var r;if(null!=t?t>0:this.delay>0)return super.recycleAsyncId(i,n,t);const{actions:s}=i;null!=n&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==n&&(Up.clearImmediate(n),i._scheduled===n&&(i._scheduled=void 0))}});function Kw(e,i=Yd){return function HJ(e){return wt((i,n)=>{let t=!1,r=null,s=null,o=!1;const a=()=>{if(s?.unsubscribe(),s=null,t){t=!1;const c=r;r=null,n.next(c)}o&&n.complete()},l=()=>{s=null,o&&n.complete()};i.subscribe(ft(n,c=>{t=!0,r=c,s||si(e(c)).subscribe(s=ft(n,a,l))},()=>{o=!0,(!t||!s||s.closed)&&n.complete()}))})}(()=>Kd(e,i))}const $J=new M("cdk-dir-doc",{providedIn:"root",factory:function UJ(){return G(xe)}}),GJ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let an=(()=>{var e;class i{constructor(t){this.value="ltr",this.change=new W,t&&(this.value=function qJ(e){const i=e?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?GJ.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(x($J,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Au=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),Wl=(()=>{var e;class i{constructor(t,r,s){this._ngZone=t,this._platform=r,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new et(r=>{this._globalSubscription||this._addGlobalListener();const s=t>0?this._scrolled.pipe(Kw(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ee()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){const s=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe($e(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(t){const r=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,t)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let s=$t(r),o=t.getElementRef().nativeElement;do{if(s==o)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Br(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce),x(Ot),x(xe,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Ru=(()=>{var e;class i{constructor(t,r,s,o){this.elementRef=t,this.scrollDispatcher=r,this.ngZone=s,this.dir=o,this._destroyed=new $,this._elementScrolled=new et(a=>this.ngZone.runOutsideAngular(()=>Br(this.elementRef.nativeElement,"scroll").pipe(ke(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const r=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=s?t.end:t.start),null==t.right&&(t.right=s?t.start:t.end),null!=t.bottom&&(t.top=r.scrollHeight-r.clientHeight-t.bottom),s&&0!=Su()?(null!=t.left&&(t.right=r.scrollWidth-r.clientWidth-t.left),2==Su()?t.left=t.right:1==Su()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=r.scrollWidth-r.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const r=this.elementRef.nativeElement;sN()?r.scrollTo(t):(null!=t.top&&(r.scrollTop=t.top),null!=t.left&&(r.scrollLeft=t.left))}measureScrollOffset(t){const r="left",s="right",o=this.elementRef.nativeElement;if("top"==t)return o.scrollTop;if("bottom"==t)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==t?t=a?s:r:"end"==t&&(t=a?r:s),a&&2==Su()?t==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Su()?t==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:t==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Wl),p(ce),p(an,8))},e.\u0275dir=I({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),i})(),Yl=(()=>{var e;class i{constructor(t,r,s){this._platform=t,this._change=new $,this._changeListener=o=>{this._change.next(o)},this._document=s,r.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+s,right:t.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,r=this._getWindow(),s=t.documentElement,o=s.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||r.scrollY||s.scrollTop||0,left:-o.left||t.body.scrollLeft||r.scrollX||s.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Kw(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(ce),x(xe,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ta=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),Xw=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Au,ta,Au,ta]}),i})();class Zw{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Kl extends Zw{constructor(i,n,t,r,s){super(),this.component=i,this.viewContainerRef=n,this.injector=t,this.componentFactoryResolver=r,this.projectableNodes=s}}class Gp extends Zw{constructor(i,n,t,r){super(),this.templateRef=i,this.viewContainerRef=n,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,n=this.context){return this.context=n,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class XJ extends Zw{constructor(i){super(),this.element=i instanceof ne?i.nativeElement:i}}class qp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Kl?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof Gp?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof XJ?(this._attachedPortal=i,this.attachDomPortal(i)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ZJ extends qp{constructor(i,n,t,r,s){super(),this.outletElement=i,this._componentFactoryResolver=n,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(i){const t=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(t,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=t.create(i.injector||this._defaultInjector||kt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=i,r}attachTemplatePortal(i){let n=i.viewContainerRef,t=n.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=n.indexOf(t);-1!==r&&n.remove(r)}),this._attachedPortal=i,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let Xl=(()=>{var e;class i extends qp{constructor(t,r,s){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new W,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);const r=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=r.createComponent(o,r.length,t.injector||r.injector,t.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return(e=i).\u0275fac=function(t){return new(t||e)(p(el),p(Vt),p(xe))},e.\u0275dir=I({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[L]}),i})(),Zl=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const TN=sN();class QJ{constructor(i,n){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=ni(-this._previousScrollPosition.left),i.style.top=ni(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,t=i.style,r=this._document.body.style,s=t.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),TN&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),TN&&(t.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const n=this._document.body,t=this._viewportRuler.getViewportSize();return n.scrollHeight>t.height||n.scrollWidth>t.width}}class JJ{constructor(i,n,t,r){this._scrollDispatcher=i,this._ngZone=n,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe($e(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class IN{enable(){}disable(){}attach(){}}function Qw(e,i){return i.some(n=>e.bottomn.bottom||e.rightn.right)}function AN(e,i){return i.some(n=>e.topn.bottom||e.leftn.right)}class eee{constructor(i,n,t,r){this._scrollDispatcher=i,this._viewportRuler=n,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();Qw(n,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let tee=(()=>{var e;class i{constructor(t,r,s,o){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=s,this.noop=()=>new IN,this.close=a=>new JJ(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new QJ(this._viewportRuler,this._document),this.reposition=a=>new eee(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Wl),x(Yl),x(ce),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();class Wp{constructor(i){if(this.scrollStrategy=new IN,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const n=Object.keys(i);for(const t of n)void 0!==i[t]&&(this[t]=i[t])}}}class iee{constructor(i,n){this.connectionPair=i,this.scrollableViewProperties=n}}let RN=(()=>{var e;class i{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const r=this._attachedOverlays.indexOf(t);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),nee=(()=>{var e;class i extends RN{constructor(t,r){super(t),this._ngZone=r,this._keydownListener=s=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const l=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(ce,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ree=(()=>{var e;class i extends RN{constructor(t,r,s){super(t),this._platform=r,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Vn(o)},this._clickListener=o=>{const a=Vn(o),l="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const u=c[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(l))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(t){if(super.add(t),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(Ot),x(ce,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),Yp=(()=>{var e;class i{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Bw()){const s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new $,this._outsidePointerEvents=new $,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const n=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ze(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof n?.onDestroy&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=ni(this._config.width),i.height=ni(this._config.height),i.minWidth=ni(this._config.minWidth),i.minHeight=ni(this._config.minHeight),i.maxWidth=ni(this._config.maxWidth),i.maxHeight=ni(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,n,t){const r=Eu(n||[]).filter(s=>!!s);r.length&&(t?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(ke(Ft(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ON="cdk-overlay-connected-position-bounding-box",see=/([A-Za-z%]+)$/;class oee{get positions(){return this._preferredPositions}constructor(i,n,t,r,s){this._viewportRuler=n,this._document=t,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new $,this._resizeSubscription=Qe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(ON),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,n=this._overlayRect,t=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(i,r,a),c=this._getOverlayPoint(l,n,a),d=this._getOverlayFit(c,n,t,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,t)?s.push({position:a,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ia(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ON),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,n)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,n,t){let r,s;if("center"==t.originX)r=i.left+i.width/2;else{const o=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;r="start"==t.originX?o:a}return n.left<0&&(r-=n.left),s="center"==t.originY?i.top+i.height/2:"top"==t.originY?i.top:i.bottom,n.top<0&&(s-=n.top),{x:r,y:s}}_getOverlayPoint(i,n,t){let r,s;return r="center"==t.overlayX?-n.width/2:"start"===t.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,s="center"==t.overlayY?-n.height/2:"top"==t.overlayY?0:-n.height,{x:i.x+r,y:i.y+s}}_getOverlayFit(i,n,t,r){const s=NN(n);let{x:o,y:a}=i,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-t.height,_=this._subtractOverflows(s.width,0-o,o+s.width-t.width),g=this._subtractOverflows(s.height,h,f),m=_*g;return{visibleArea:m,isCompletelyWithinViewport:s.width*s.height===m,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:_==s.width}}_canFitWithFlexibleDimensions(i,n,t){if(this._hasFlexibleDimensions){const r=t.bottom-n.y,s=t.right-n.x,o=FN(this._overlayRef.getConfig().minHeight),a=FN(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=o&&o<=r)&&(i.fitsInViewportHorizontally||null!=a&&a<=s)}return!1}_pushOverlayOnScreen(i,n,t){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=NN(n),s=this._viewportRect,o=Math.max(i.x+r.width-s.width,0),a=Math.max(i.y+r.height-s.height,0),l=Math.max(s.top-t.top-i.y,0),c=Math.max(s.left-t.left-i.x,0);let d=0,u=0;return d=r.width<=s.width?c||-o:i.x_&&!this._isInitialRender&&!this._growAfterOpen&&(o=i.y-_/2)}if("end"===n.overlayX&&!r||"start"===n.overlayX&&r)h=t.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===n.overlayX&&!r||"end"===n.overlayX&&r)u=i.x,d=t.right-i.x;else{const f=Math.min(t.right-i.x+t.left,i.x),_=this._lastBoundingBoxSize.width;d=2*f,u=i.x-f,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-_/2)}return{top:o,left:u,bottom:a,right:h,width:d,height:s}}_setBoundingBoxStyles(i,n){const t=this._calculateBoundingBoxRect(i,n);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=ni(t.height),r.top=ni(t.top),r.bottom=ni(t.bottom),r.width=ni(t.width),r.left=ni(t.left),r.right=ni(t.right),r.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",r.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=ni(s)),o&&(r.maxWidth=ni(o))}this._lastBoundingBoxSize=t,ia(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ia(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ia(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,n){const t={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();ia(t,this._getExactOverlayY(n,i,d)),ia(t,this._getExactOverlayX(n,i,d))}else t.position="static";let a="",l=this._getOffset(n,"x"),c=this._getOffset(n,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),t.transform=a.trim(),o.maxHeight&&(r?t.maxHeight=ni(o.maxHeight):s&&(t.maxHeight="")),o.maxWidth&&(r?t.maxWidth=ni(o.maxWidth):s&&(t.maxWidth="")),ia(this._pane.style,t)}_getExactOverlayY(i,n,t){let r={top:"",bottom:""},s=this._getOverlayPoint(n,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=ni(s.y),r}_getExactOverlayX(i,n,t){let o,r={left:"",right:""},s=this._getOverlayPoint(n,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t)),o=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=ni(s.x),r}_getScrollVisibility(){const i=this._getOriginRect(),n=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:AN(i,t),isOriginOutsideView:Qw(i,t),isOverlayClipped:AN(n,t),isOverlayOutsideView:Qw(n,t)}}_subtractOverflows(i,...n){return n.reduce((t,r)=>t-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+i-this._viewportMargin,bottom:t.top+n-this._viewportMargin,width:i-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,n){return"x"===n?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Eu(i).forEach(n=>{""!==n&&-1===this._appliedPanelClasses.indexOf(n)&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof ne)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const n=i.width||0,t=i.height||0;return{top:i.y,bottom:i.y+t,left:i.x,right:i.x+n,height:t,width:n}}}function ia(e,i){for(let n in i)i.hasOwnProperty(n)&&(e[n]=i[n]);return e}function FN(e){if("number"!=typeof e&&null!=e){const[i,n]=e.split(see);return n&&"px"!==n?null:parseFloat(i)}return e||null}function NN(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const PN="cdk-global-overlay-wrapper";class aee{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const n=i.getConfig();this._overlayRef=i,this._width&&!n.width&&i.updateSize({width:this._width}),this._height&&!n.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(PN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=t,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",_="",g="";l?g="flex-start":"center"===d?(g="center",h?_=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",_=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",_=u),i.position=this._cssPosition,i.marginLeft=l?"0":f,i.marginTop=c?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":_,n.justifyContent=g,n.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,t=n.style;n.classList.remove(PN),t.justifyContent=t.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let lee=(()=>{var e;class i{constructor(t,r,s,o){this._viewportRuler=t,this._document=r,this._platform=s,this._overlayContainer=o}global(){return new aee}flexibleConnectedTo(t){return new oee(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Yl),x(xe),x(Ot),x(Yp))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),cee=0,ln=(()=>{var e;class i{constructor(t,r,s,o,a,l,c,d,u,h,f,_){this.scrollStrategies=t,this._overlayContainer=r,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=_}create(t){const r=this._createHostElement(),s=this._createPaneElement(r),o=this._createPortalOutlet(s),a=new Wp(t);return a.direction=a.direction||this._directionality.value,new Ql(o,r,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const r=this._document.createElement("div");return r.id="cdk-overlay-"+cee++,r.classList.add("cdk-overlay-pane"),t.appendChild(r),r}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Nr)),new ZJ(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(tee),x(Yp),x(el),x(lee),x(nee),x(kt),x(ce),x(xe),x(an),x(Rd),x(ree),x(ti,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const dee=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],LN=new M("cdk-connected-overlay-scroll-strategy");let BN=(()=>{var e;class i{constructor(t){this.elementRef=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne))},e.\u0275dir=I({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),i})(),VN=(()=>{var e;class i{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=re(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=re(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=re(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=re(t)}get push(){return this._push}set push(t){this._push=re(t)}constructor(t,r,s,o,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Qe.EMPTY,this._attachSubscription=Qe.EMPTY,this._detachSubscription=Qe.EMPTY,this._positionSubscription=Qe.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new W,this.positionChange=new W,this.attach=new W,this.detach=new W,this.overlayKeydown=new W,this.overlayOutsideClick=new W,this._templatePortal=new Gp(r,s),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=dee);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),27===r.keyCode&&!this.disableClose&&!qi(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{this.overlayOutsideClick.next(r)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Wp({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(t){const r=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return t.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(t),t}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof BN?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function KJ(e,i=!1){return wt((n,t)=>{let r=0;n.subscribe(ft(t,s=>{const o=e(s,r++);(o||i)&&t.next(s),!o&&t.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ln),p(Pt),p(Vt),p(LN),p(an,8))},e.\u0275dir=I({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[bt]}),i})();const hee={provide:LN,deps:[ln],useFactory:function uee(e){return()=>e.scrollStrategies.reposition()}};let Ou=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[ln,hee],imports:[Au,Zl,Xw,Xw]}),i})();function fee(e,i){}class Fu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Jw=(()=>{var e;class i extends qp{constructor(t,r,s,o,a,l,c,d){super(),this._elementRef=t,this._focusTrapFactory=r,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=c,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const r=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),r}attachTemplatePortal(t){this._portalOutlet.hasAttached();const r=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{t.removeEventListener("blur",s),t.removeEventListener("mousedown",s),t.removeAttribute("tabindex")};t.addEventListener("blur",s),t.addEventListener("mousedown",s)})),t.focus(r)}_focusByCssSelector(t,r){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,r)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{r||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let r=null;if("string"==typeof t?r=this._document.querySelector(t):"boolean"==typeof t?r=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(r=t),this._config.restoreFocus&&r&&"function"==typeof r.focus){const s=Op(),o=this._elementRef.nativeElement;(!s||s===this._document.body||s===o||o.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,r=Op();return t===r||t.contains(r)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Op())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(Fu),p(Gl),p(ce),p(Ql),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(t,r){if(1&t&&Xe(Xl,7),2&t){let s;Q(s=J())&&(r._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,r){2&t&&_e("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Z(0,fee,0,0,"ng-template",0)},dependencies:[Xl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class ex{constructor(i,n){this.overlayRef=i,this.config=n,this.closed=new $,this.disableClose=n.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!qi(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==n.closeOnOverlayDetachments&&this.close()})}close(i,n){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(i),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",n=""){return this.overlayRef.updateSize({width:i,height:n}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const jN=new M("DialogScrollStrategy"),mee=new M("DialogData"),pee=new M("DefaultDialogConfig"),_ee={provide:jN,deps:[ln],useFactory:function gee(e){return()=>e.scrollStrategies.block()}};let bee=0,tx=(()=>{var e;class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,r,s,o,a,l){this._overlay=t,this._injector=r,this._defaultOptions=s,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this._ariaHiddenElements=new Map,this.afterAllClosed=us(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Di(void 0))),this._scrollStrategy=l}open(t,r){(r={...this._defaultOptions||new Fu,...r}).id=r.id||"cdk-dialog-"+bee++,r.id&&this.getDialogById(r.id);const o=this._getOverlayConfig(r),a=this._overlay.create(o),l=new ex(a,r),c=this._attachContainer(a,l,r);return l.containerInstance=c,this._attachDialogContent(t,l,c,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){ix(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){ix(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),ix(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const r=new Wp({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(r.backdropClass=t.backdropClass),r}_attachContainer(t,r,s){const o=s.injector||s.viewContainerRef?.injector,a=[{provide:Fu,useValue:s},{provide:ex,useValue:r},{provide:Ql,useValue:t}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,a.push(...s.container.providers(s))):l=Jw;const c=new Kl(l,s.viewContainerRef,kt.create({parent:o||this._injector,providers:a}),s.componentFactoryResolver);return t.attach(c).instance}_attachDialogContent(t,r,s,o){if(t instanceof Pt){const a=this._createInjector(o,r,s,void 0);let l={$implicit:o.data,dialogRef:r};o.templateContext&&(l={...l,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),s.attachTemplatePortal(new Gp(t,null,l,a))}else{const a=this._createInjector(o,r,s,this._injector),l=s.attachComponentPortal(new Kl(t,o.viewContainerRef,a,o.componentFactoryResolver));r.componentRef=l,r.componentInstance=l.instance}}_createInjector(t,r,s,o){const a=t.injector||t.viewContainerRef?.injector,l=[{provide:mee,useValue:t.data},{provide:ex,useValue:r}];return t.providers&&("function"==typeof t.providers?l.push(...t.providers(r,t,s)):l.push(...t.providers)),t.direction&&(!a||!a.get(an,null,{optional:!0}))&&l.push({provide:an,useValue:{value:t.direction,change:ee()}}),kt.create({parent:a||o,providers:l})}_removeOpenDialog(t,r){const s=this.openDialogs.indexOf(t);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const r=t.parentElement.children;for(let s=r.length-1;s>-1;s--){const o=r[s];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(kt),x(pee,8),x(e,12),x(Yp),x(jN))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function ix(e,i){let n=e.length;for(;n--;)i(e[n])}let zN=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[tx,_ee],imports:[Ou,Zl,SN,Zl]}),i})();const vee=["text"];let nx=(()=>{var e;class i{}return(e=i).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),rx=(()=>{var e;class i{}return(e=i).COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",i})();const wee=new M("mat-sanity-checks",{providedIn:"root",factory:function yee(){return!0}});let Fe=(()=>{var e;class i{constructor(t,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Bw()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return(e=i).\u0275fac=function(t){return new(t||e)(x(DN),x(wee,8),x(xe))},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Au,Au]}),i})();function no(e){return class extends e{get disabled(){return this._disabled}set disabled(i){this._disabled=re(i)}constructor(...i){super(...i),this._disabled=!1}}}function ro(e,i){return class extends e{get color(){return this._color}set color(n){const t=n||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}constructor(...n){super(...n),this.defaultColor=i,this.color=i}}}function $r(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=re(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function Nu(e,i=0){return class extends e{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(n){this._tabIndex=null!=n?Oi(n):this.defaultTabIndex}constructor(...n){super(...n),this._tabIndex=i,this.defaultTabIndex=i}}}function sx(e){return class extends e{updateErrorState(){const i=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==i&&(this.errorState=s,this.stateChanges.next())}constructor(...i){super(...i),this.errorState=!1}}}function xee(e){return class extends e{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new et(n=>{this._isInitialized?this._notifySubscriber(n):this._pendingSubscribers.push(n)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}let Pu=(()=>{var e;class i{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ox=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Lu(e,i,n){e.nativeElement.classList.toggle(i,n)}let qN=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();class Cee{constructor(i,n,t,r=!1){this._renderer=i,this.element=n,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const WN=ps({passive:!0,capture:!0});class Dee{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const n=Vn(i);n&&this._events.get(i.type)?.forEach((t,r)=>{(r===n||r.contains(n))&&t.forEach(s=>s.handleEvent(i))})}}addHandler(i,n,t,r){const s=this._events.get(n);if(s){const o=s.get(t);o?o.add(r):s.set(t,new Set([r]))}else this._events.set(n,new Map([[t,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,WN)})}removeHandler(i,n,t){const r=this._events.get(i);if(!r)return;const s=r.get(n);s&&(s.delete(t),0===s.size&&r.delete(n),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,WN)))}}const YN={enterDuration:225,exitDuration:150},KN=ps({passive:!0,capture:!0}),XN=["mousedown","touchstart"],ZN=["mouseup","mouseleave","touchend","touchcancel"];class na{constructor(i,n,t,r){this._target=i,this._ngZone=n,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=$t(t))}fadeInRipple(i,n,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...YN,...t.animation};t.centered&&(i=r.left+r.width/2,n=r.top+r.height/2);const o=t.radius||function Eee(e,i,n){const t=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(i-n.top),Math.abs(i-n.bottom));return Math.sqrt(t*t+r*r)}(i,n,r),a=i-r.left,l=n-r.top,c=s.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-o+"px",d.style.top=l-o+"px",d.style.height=2*o+"px",d.style.width=2*o+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,_="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new Cee(this,d,t,_);d.style.transform="scale3d(1, 1, 1)",g.state=0,t.persistent||(this._mostRecentTransientRipple=g);let m=null;return!_&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const b=()=>this._finishRippleTransition(g),v=()=>this._destroyRipple(g);d.addEventListener("transitionend",b),d.addEventListener("transitioncancel",v),m={onTransitionEnd:b,onTransitionCancel:v}}),this._activeRipples.set(g,m),(_||!c)&&this._finishRippleTransition(g),g}fadeOutRipple(i){if(2===i.state||3===i.state)return;const n=i.element,t={...YN,...i.config.animation};n.style.transitionDuration=`${t.exitDuration}ms`,n.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const n=$t(i);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,XN.forEach(t=>{na._eventManager.addHandler(this._ngZone,t,n,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ZN.forEach(n=>{this._triggerElement.addEventListener(n,this,KN)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const n=i===this._mostRecentTransientRipple,{persistent:t}=i.config;i.state=1,!t&&(!n||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const n=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==n&&(i.element.removeEventListener("transitionend",n.onTransitionEnd),i.element.removeEventListener("transitioncancel",n.onTransitionCancel)),i.element.remove()}_onMousedown(i){const n=Uw(i),t=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&(XN.forEach(n=>na._eventManager.removeHandler(n,i,this)),this._pointerUpEventsRegistered&&ZN.forEach(n=>i.removeEventListener(n,this,KN)))}}na._eventManager=new Dee;const Kp=new M("mat-ripple-global-options");let dr=(()=>{var e;class i{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,r,s,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new na(this,r,t,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,s){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,r,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(ce),p(Ot),p(Kp,8),p(ti,8))},e.\u0275dir=I({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),Jl=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})(),QN=(()=>{var e;class i{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,r){2&t&&fe("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),i})(),ax=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe]}),i})();const JN=new M("MAT_OPTION_PARENT_COMPONENT"),eP=new M("MatOptgroup");let Mee=0;class Tee{constructor(i,n=!1){this.source=i,this.isUserInput=n}}let Iee=(()=>{var e;class i{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=re(t)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(t,r,s,o){this._element=t,this._changeDetectorRef=r,this._parent=s,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Mee++,this.onSelectionChange=new W,this._stateChanges=new $}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,r){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!qi(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Tee(this,t))}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275dir=I({type:e,viewQuery:function(t,r){if(1&t&&Xe(vee,7),2&t){let s;Q(s=J())&&(r._text=s.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})();function tP(e,i,n){if(n.length){let t=i.toArray(),r=n.toArray(),s=0;for(let o=0;oi()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const n="start"==i?this._onStartFns:this._onDoneFns;n.forEach(t=>t()),n.length=0}}class rP{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let n=0,t=0,r=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++n==s&&this._onFinish()}),o.onDestroy(()=>{++t==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const n=i*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,n/t.totalTime):1;t.setPosition(r)})}getPosition(){const i=this.players.reduce((n,t)=>null===n||t.totalTime>n.totalTime?t:n,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const n="start"==i?this._onStartFns:this._onDoneFns;n.forEach(t=>t()),n.length=0}}class Zp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let Oee=(()=>{var e;class i extends Jw{constructor(t,r,s,o,a,l,c,d){super(t,r,s,o,a,l,c,d),this._animationStateChanged=new W}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(Zp),p(Gl),p(ce),p(Ql),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],features:[L],decls:0,vars:0,template:function(t,r){},encapsulation:2}),i})();class Fee{constructor(i,n,t){this._ref=i,this._containerInstance=t,this._afterOpened=new $,this._beforeClosed=new $,this._state=0,this.disableClose=n.disableClose,this.id=i.id,t._animationStateChanged.pipe($e(r=>"opened"===r.state),ze(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe($e(r=>"closed"===r.state),ze(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ft(this.backdropClick(),this.keydownEvents().pipe($e(r=>27===r.keyCode&&!this.disableClose&&!qi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sP(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe($e(n=>"closing"===n.state),ze(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let n=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?n.left(i.left):n.right(i.right):n.centerHorizontally(),i&&(i.top||i.bottom)?i.top?n.top(i.top):n.bottom(i.bottom):n.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",n=""){return this._ref.updateSize(i,n),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function sP(e,i,n){return e._closeInteractionType=i,e.close(n)}let Lee=0,Bee=(()=>{var e;class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,r,s,o,a,l,c,d,u,h){this._overlay=t,this._defaultOptions=s,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this._idPrefix="mat-dialog-",this.dialogConfigClass=Zp,this.afterAllClosed=us(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Di(void 0))),this._scrollStrategy=l,this._dialog=r.get(tx)}open(t,r){let s;(r={...this._defaultOptions||new Zp,...r}).id=r.id||`${this._idPrefix}${Lee++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...r,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:Fu,useValue:r}]},templateContext:()=>({dialogRef:s}),providers:(a,l,c)=>(s=new this._dialogRefConstructor(a,r,c),s.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentRef=o.componentRef,s.componentInstance=o.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(s);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let r=t.length;for(;r--;)t[r].close()}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const Qp={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Vee={dialogContainer:Si("dialogContainer",[gt("void, exit",Ee({opacity:0,transform:"scale(0.7)"})),gt("enter",Ee({transform:"none"})),_t("* => enter",Xp([St("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ee({transform:"none",opacity:1})),sa("@*",ra(),{optional:!0})]),Qp),_t("* => void, * => exit",Xp([St("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ee({opacity:0})),sa("@*",ra(),{optional:!0})]),Qp)])};function jee(e,i){}const oP_params_enterAnimationDuration="150ms",oP_params_exitAnimationDuration="75ms";class aP extends Zp{constructor(){super(...arguments),this.enterAnimationDuration=Qp.params.enterAnimationDuration,this.exitAnimationDuration=Qp.params.exitAnimationDuration}}let zee=(()=>{var e;class i extends Oee{_onAnimationDone({toState:t,totalTime:r}){"enter"===t?this._openAnimationDone(r):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:r})}_onAnimationStart({toState:t,totalTime:r}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:r}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:r})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(t,r,s,o,a,l,c,d,u){super(t,r,s,o,a,l,c,u),this._changeDetectorRef=d,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||oP_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||oP_params_exitAnimationDuration}}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(aP),p(Gl),p(ce),p(Ql),p(st),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,r){1&t&&pl("@dialogContainer.start",function(o){return r._onAnimationStart(o)})("@dialogContainer.done",function(o){return r._onAnimationDone(o)}),2&t&&(On("id",r._config.id),_e("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),_l("@dialogContainer",r._getAnimationState()))},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Z(0,jee,0,0,"ng-template",0)},dependencies:[Xl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Vee.dialogContainer]}}),i})();class so extends Fee{}const ju=new M("MatDialogData"),Hee=new M("mat-dialog-default-options"),lP=new M("mat-dialog-scroll-strategy"),Uee={provide:lP,deps:[ln],useFactory:function $ee(e){return()=>e.scrollStrategies.block()}};let oo=(()=>{var e;class i extends Bee{constructor(t,r,s,o,a,l,c,d){super(t,r,o,l,c,a,so,zee,ju,d),this.dialogConfigClass=aP}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(kt),x(Rd,8),x(Hee,8),x(lP),x(e,12),x(Yp),x(ti,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),Gee=0,qee=(()=>{var e;class i{constructor(t,r,s){this.dialogRef=t,this._elementRef=r,this._dialog=s,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=uP(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const r=t._matDialogClose||t._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(t){sP(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so,8),p(ne),p(oo))},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,r){1&t&&H("click",function(o){return r._onButtonClick(o)}),2&t&&_e("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[bt]}),i})(),cP=(()=>{var e;class i{constructor(t,r,s){this._dialogRef=t,this._elementRef=r,this._dialog=s,this.id="mat-dialog-title-"+Gee++}ngOnInit(){this._dialogRef||(this._dialogRef=uP(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so,8),p(ne),p(oo))},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,r){2&t&&On("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),dP=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),cx=(()=>{var e;class i{constructor(){this.align="start"}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(t,r){2&t&&fe("mat-dialog-actions-align-center","center"===r.align)("mat-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"}}),i})();function uP(e,i){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?i.find(t=>t.id===n.id):null}let hP=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[oo,Uee],imports:[zN,Ou,Zl,Fe,Fe]}),i})();class fP{}function Jp(e){return e&&"function"==typeof e.connect&&!(e instanceof Qm)}class dx{applyChanges(i,n,t,r,s){i.forEachOperation((o,a,l)=>{let c,d;if(null==o.previousIndex){const u=t(o,a,l);c=n.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==l?(n.remove(a),d=3):(c=n.get(a),n.move(c,l),d=2);s&&s({context:c?.context,operation:d,record:o})})}detach(){}}class ao{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,n,t=!0,r){this._multiple=i,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new $,n&&n.length&&(i?n.forEach(s=>this._markSelected(s)):this._markSelected(n[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(t=>this._markSelected(t));const n=this._hasQueuedChanges();return this._emitChangeEvent(),n}deselect(...i){this._verifyValueAssignment(i),i.forEach(t=>this._unmarkSelected(t));const n=this._hasQueuedChanges();return this._emitChangeEvent(),n}setSelection(...i){this._verifyValueAssignment(i);const n=this.selected,t=new Set(i);i.forEach(s=>this._markSelected(s)),n.filter(s=>!t.has(s)).forEach(s=>this._unmarkSelected(s));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const n=this._hasQueuedChanges();return i&&this._emitChangeEvent(),n}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let n of this._selection)if(this.compareWith(i,n))return n;return i}return i}}const oa=new M("_ViewRepeater");class Wee{constructor(){this.expansionModel=new ao(!0)}toggle(i){this.expansionModel.toggle(this._trackByValue(i))}expand(i){this.expansionModel.select(this._trackByValue(i))}collapse(i){this.expansionModel.deselect(this._trackByValue(i))}isExpanded(i){return this.expansionModel.isSelected(this._trackByValue(i))}toggleDescendants(i){this.expansionModel.isSelected(this._trackByValue(i))?this.collapseDescendants(i):this.expandDescendants(i)}collapseAll(){this.expansionModel.clear()}expandDescendants(i){let n=[i];n.push(...this.getDescendants(i)),this.expansionModel.select(...n.map(t=>this._trackByValue(t)))}collapseDescendants(i){let n=[i];n.push(...this.getDescendants(i)),this.expansionModel.deselect(...n.map(t=>this._trackByValue(t)))}_trackByValue(i){return this.trackBy?this.trackBy(i):i}}class Yee extends Wee{constructor(i,n,t){super(),this.getLevel=i,this.isExpandable=n,this.options=t,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(i){const t=[];for(let r=this.dataNodes.indexOf(i)+1;rthis._trackByValue(i)))}}const eg=new M("CDK_TREE_NODE_OUTLET_NODE");let zu=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this._node=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(eg,8))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodeOutlet",""]]}),i})();class Kee{constructor(i){this.$implicit=i}}let tg=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),i})(),_s=(()=>{var e;class i{get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}constructor(t,r){this._differs=t,this._changeDetectorRef=r,this._onDestroy=new $,this._levels=new Map,this.viewChange=new Et({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(r=>!r.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;Jp(this._dataSource)?t=this._dataSource.connect(this):Bn(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=ee(this._dataSource)),t&&(this._dataSubscription=t.pipe(ke(this._onDestroy)).subscribe(r=>this.renderNodeChanges(r)))}renderNodeChanges(t,r=this._dataDiffer,s=this._nodeOutlet.viewContainer,o){const a=r.diff(t);a&&(a.forEachOperation((l,c,d)=>{if(null==l.previousIndex)this.insertNode(t[d],d,s,o);else if(null==d)s.remove(c),this._levels.delete(l.item);else{const u=s.get(c);s.move(u,d)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,r){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(o=>o.when&&o.when(r,t))||this._defaultNodeDef}insertNode(t,r,s,o){const a=this._getNodeDef(t,r),l=new Kee(t);l.level=this.treeControl.getLevel?this.treeControl.getLevel(t):typeof o<"u"&&this._levels.has(o)?this._levels.get(o)+1:0,this._levels.set(t,l.level),(s||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,l,r),Ur.mostRecentTreeNode&&(Ur.mostRecentTreeNode.data=t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fn),p(st))},e.\u0275cmp=ie({type:e,selectors:[["cdk-tree"]],contentQueries:function(t,r,s){if(1&t&&Me(s,tg,5),2&t){let o;Q(o=J())&&(r._nodeDefs=o)}},viewQuery:function(t,r){if(1&t&&Xe(zu,7),2&t){let s;Q(s=J())&&(r._nodeOutlet=s.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[zu],encapsulation:2}),i})(),Ur=(()=>{var e;class i{get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(t,r){this._elementRef=t,this._tree=r,this._destroyed=new $,this._dataChanges=new $,i.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function Xee(e){let i=e.parentElement;for(;i&&!Zee(i);)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?Oi(i.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){i.mostRecentTreeNode===this&&(i.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return(e=i).mostRecentTreeNode=null,e.\u0275fac=function(t){return new(t||e)(p(ne),p(_s))},e.\u0275dir=I({type:e,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(t,r){2&t&&_e("aria-expanded",r.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),i})();function Zee(e){const i=e.classList;return!(!i?.contains("cdk-nested-tree-node")&&!i?.contains("cdk-tree"))}const Qee=/([A-Za-z%]+)$/;let fx=(()=>{var e;class i{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}constructor(t,r,s,o){this._treeNode=t,this._tree=r,this._element=s,this._dir=o,this._destroyed=new $,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe(ke(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,r=null==this._level?t:this._level;return"number"==typeof r?`${r*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const r=this._paddingIndent();if(r!==this._currentPadding||t){const s=this._element.nativeElement,o=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",a="paddingLeft"===o?"paddingRight":"paddingLeft";s.style[o]=r||"",s.style[a]="",this._currentPadding=r}}_setLevelInput(t){this._level=Oi(t,null),this._setPadding()}_setIndentInput(t){let r=t,s="px";if("string"==typeof t){const o=t.split(Qee);r=o[0],s=o[1]||s}this.indentUnits=s,this._indent=Oi(r),this._setPadding()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Ur),p(_s),p(ne),p(an,8))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),i})(),mx=(()=>{var e;class i{get recursive(){return this._recursive}set recursive(t){this._recursive=re(t)}constructor(t,r){this._tree=t,this._treeNode=r,this._recursive=!1}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(_s),p(Ur))},e.\u0275dir=I({type:e,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,r){1&t&&H("click",function(o){return r._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),i})(),Jee=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const ete=Nu(no(Ur));let mP=(()=>{var e;class i extends ete{constructor(t,r,s){super(t,r),this.tabIndex=Number(s)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(_s),Mi("tabindex"))},e.\u0275dir=I({type:e,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[K([{provide:Ur,useExisting:e}]),L]}),i})(),pP=(()=>{var e;class i extends tg{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[K([{provide:tg,useExisting:e}]),L]}),i})(),gP=(()=>{var e;class i extends fx{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[K([{provide:fx,useExisting:e}]),L]}),i})(),px=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this._node=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(eg,8))},e.\u0275dir=I({type:e,selectors:[["","matTreeNodeOutlet",""]],features:[K([{provide:zu,useExisting:e}])]}),i})(),_P=(()=>{var e;class i extends _s{constructor(){super(...arguments),this._nodeOutlet=void 0}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-tree"]],viewQuery:function(t,r){if(1&t&&Xe(px,7),2&t){let s;Q(s=J())&&(r._nodeOutlet=s.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[K([{provide:_s,useExisting:e}]),L],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[px],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),i})(),bP=(()=>{var e;class i extends mx{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[K([{provide:mx,useExisting:e}]),L]}),i})(),vP=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jee,Fe,Fe]}),i})();class ite{constructor(i,n,t,r){this.transformFunction=i,this.getLevel=n,this.isExpandable=t,this.getChildren=r}_flattenNode(i,n,t,r){const s=this.transformFunction(i,n);if(t.push(s),this.isExpandable(s)){const o=this.getChildren(i);o&&(Array.isArray(o)?this._flattenChildren(o,n,t,r):o.pipe(ze(1)).subscribe(a=>{this._flattenChildren(a,n,t,r)}))}return t}_flattenChildren(i,n,t,r){i.forEach((s,o)=>{let a=r.slice();a.push(o!=i.length-1),this._flattenNode(s,n+1,t,a)})}flattenNodes(i){let n=[];return i.forEach(t=>this._flattenNode(t,0,n,[])),n}expandFlattenedNodes(i,n){let t=[],r=[];return r[0]=!0,i.forEach(s=>{let o=!0;for(let a=0;a<=this.getLevel(s);a++)o=o&&r[a];o&&t.push(s),this.isExpandable(s)&&(r[this.getLevel(s)+1]=n.isExpanded(s))}),t}}class nte extends fP{get data(){return this._data.value}set data(i){this._data.next(i),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(i,n,t){super(),this._treeControl=i,this._treeFlattener=n,this._flattenedData=new Et([]),this._expandedData=new Et([]),this._data=new Et([]),t&&(this.data=t)}connect(i){return Ft(i.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(se(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}function yP(e,i,n,t,r,s,o){try{var a=e[s](o),l=a.value}catch(c){return void n(c)}a.done?i(l):Promise.resolve(l).then(t,r)}function Hu(e){return function(){var i=this,n=arguments;return new Promise(function(t,r){var s=e.apply(i,n);function o(l){yP(s,t,r,o,a,"next",l)}function a(l){yP(s,t,r,o,a,"throw",l)}o(void 0)})}}const gx=ci("[settings.language] set",{_as:"props",_p:void 0}),_x=ci("[settings.sidebar] set",{_as:"props",_p:void 0}),wP=ci("[settings.sidebar] toggle"),xP=ci("[settings.theme] toggle"),kP=ci("[settings.selectedFeedback] set",{_as:"props",_p:void 0}),CP=ci("[assignments] store",{_as:"props",_p:void 0}),rte=ci("[assignments] remove",{_as:"props",_p:void 0}),ste=ci("[assignments] clear"),DP=ci("[assignments] complete",{_as:"props",_p:void 0}),ig=ci("[graph.simulation] enable"),SP=ci("[graph.simulation] toggle"),EP=ci("[graph.labels] toggle"),bx=ci("[graphStore] store",{_as:"props",_p:void 0}),MP=ci("[graphStore] remove",{_as:"props",_p:void 0}),ote=ci("[graphStore] clear"),TP=ci("[graphCache] cache",{_as:"props",_p:void 0}),ate=ci("[graphCache] remove",{_as:"props",_p:void 0}),lte=ci("[graphCache] clear"),cte=["mat-button",""],dte=["*"],hte=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],fte=ro(no($r(class{constructor(e){this._elementRef=e}})));let Fi=(()=>{var e;class i extends fte{constructor(t,r,s){super(t),this._focusMonitor=r,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of hte)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._getHostElement(),t,r):this._getHostElement().focus(r)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(r=>this._getHostElement().hasAttribute(r))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(xn),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,r){if(1&t&&Xe(dr,5),2&t){let s;Q(s=J())&&(r.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,r){2&t&&(_e("disabled",r.disabled||null),fe("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-button-disabled",r.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[L],attrs:cte,ngContentSelectors:dte,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,r){1&t&&(ct(),k(0,"span",0),we(1),D(),be(2,"span",1)(3,"span",2)),2&t&&(C(2),fe("mat-button-ripple-round",r.isRoundButton||r.isIconButton),R("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",r.isIconButton)("matRippleTrigger",r._getHostElement()))},dependencies:[dr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),i})(),vx=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jl,Fe,Fe]}),i})();const mte=Math.pow(2,31)-1;class yx{constructor(i,n){this._overlayRef=n,this._afterDismissed=new $,this._afterOpened=new $,this._onAction=new $,this._dismissedByAction=!1,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,mte))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const IP=new M("MatSnackBarData");class ng{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const pte={snackBarState:Si("state",[gt("void, hidden",Ee({transform:"scale(0.8)",opacity:0})),gt("visible",Ee({transform:"scale(1)",opacity:1})),_t("* => visible",St("150ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void, * => hidden",St("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ee({opacity:0})))])};let gte=0,_te=(()=>{var e;class i extends qp{constructor(t,r,s,o,a){super(),this._ngZone=t,this._elementRef=r,this._changeDetectorRef=s,this._platform=o,this.snackBarConfig=a,this._document=G(xe),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new $,this._onExit=new $,this._onEnter=new $,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+gte++,this.attachDomPortal=l=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();const r=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),r}attachTemplatePortal(t){this._assertNotAttached();const r=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),r}onAnimationEnd(t){const{fromState:r,toState:s}=t;if(("void"===s&&"void"!==r||"hidden"===s)&&this._completeExit(),"visible"===s){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(ze(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const t=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(s=>t.classList.add(s)):t.classList.add(r)),this._exposeToModals()}_exposeToModals(){const t=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{const r=t.getAttribute("aria-owns");if(r){const s=r.replace(this._liveElementId,"").trim();s.length>0?t.setAttribute("aria-owns",s):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&r){let s=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(s=document.activeElement),t.removeAttribute("aria-hidden"),r.appendChild(t),s?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ce),p(ne),p(st),p(Ot),p(ng))},e.\u0275dir=I({type:e,viewQuery:function(t,r){if(1&t&&Xe(Xl,7),2&t){let s;Q(s=J())&&(r._portalOutlet=s.first)}},features:[L]}),i})();const wx=new M("mat-snack-bar-default-options",{providedIn:"root",factory:function bte(){return new ng}});let vte=(()=>{var e;class i{get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,r,s,o,a,l){this._overlay=t,this._live=r,this._injector=s,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=l,this._snackBarRefAtThisLevel=null}openFromComponent(t,r){return this._attach(t,r)}openFromTemplate(t,r){return this._attach(t,r)}open(t,r="",s){const o={...this._defaultConfig,...s};return o.data={message:t,action:r},o.announcementMessage===t&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,r){const o=kt.create({parent:r&&r.viewContainerRef&&r.viewContainerRef.injector||this._injector,providers:[{provide:ng,useValue:r}]}),a=new Kl(this.snackBarContainerComponent,r.viewContainerRef,o),l=t.attach(a);return l.instance.snackBarConfig=r,l.instance}_attach(t,r){const s={...new ng,...this._defaultConfig,...r},o=this._createOverlay(s),a=this._attachSnackBarContainer(o,s),l=new yx(a,o);if(t instanceof Pt){const c=new Gp(t,null,{$implicit:s.data,snackBarRef:l});l.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(s,l),d=new Kl(t,void 0,c),u=a.attachComponentPortal(d);l.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ke(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),s.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(l,s),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,r){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),r.duration&&r.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(r.duration))}_createOverlay(t){const r=new Wp;r.direction=t.direction;let s=this._overlay.position().global();const o="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!o||"end"===t.horizontalPosition&&o,l=!a&&"center"!==t.horizontalPosition;return a?s.left("0"):l?s.right("0"):s.centerHorizontally(),"top"===t.verticalPosition?s.top("0"):s.bottom("0"),r.positionStrategy=s,this._overlay.create(r)}_createInjector(t,r){return kt.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:yx,useValue:r},{provide:IP,useValue:t.data}]})}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(qw),x(kt),x(Mu),x(e,12),x(wx))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();function yte(e,i){if(1&e){const n=Yt();k(0,"div",2)(1,"button",3),H("click",function(){return tt(n),it(ue().action())}),N(2),D()()}if(2&e){const n=ue();C(2),pe(n.data.action)}}function wte(e,i){}let xte=(()=>{var e;class i{constructor(t,r){this.snackBarRef=t,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(e=i).\u0275fac=function(t){return new(t||e)(p(yx),p(IP))},e.\u0275cmp=ie({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,r){1&t&&(k(0,"span",0),N(1),D(),Z(2,yte,3,1,"div",1)),2&t&&(C(1),pe(r.data.message),C(1),R("ngIf",r.hasAction))},dependencies:[ki,Fi],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),i})(),kte=(()=>{var e;class i extends _te{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,r){1&t&&pl("@state.done",function(o){return r.onAnimationEnd(o)}),2&t&&_l("@state",r._animationState)},features:[L],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,r){1&t&&(k(0,"div",0),Z(1,wte,0,0,"ng-template",1),D(),be(2,"div")),2&t&&(C(2),_e("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Xl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[pte.snackBarState]}}),i})(),xx=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ou,Zl,Ln,vx,Fe,Fe]}),i})(),Cte=(()=>{var e;class i extends vte{constructor(t,r,s,o,a,l){super(t,r,s,o,a,l),this.simpleSnackBarComponent=xte,this.snackBarContainerComponent=kte,this.handsetCssClass="mat-snack-bar-handset"}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(qw),x(kt),x(Mu),x(e,12),x(wx))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:xx}),i})(),aa=(()=>{var e;class i{constructor(t,r,s,o){this.snackBar=t,this.translate=r,this.store=s,this.log=o}openSnackBar(t,r,s=5e3){var o=this;return Hu(function*(){const a=o.translate.get(t.key,t.params),l=r?o.translate.get(r.key,r.params):ee(void 0),[c,d]=yield Fw(jd([a,l]));return o.log.debug(`Openend SnackBar - Message: ${c} - Action: ${d}`),o.snackBar.open(c,d,{duration:s})})()}graphDeleted(t){this.openSnackBar({key:"snackbar.graph-deleted",params:{name:t.name}},{key:"actions.undo"},1e4).then(r=>{const s=r.onAction().subscribe(()=>{this.store.dispatch(bx(t)),s.unsubscribe()})})}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Cte),x(Yo),x(on),x(hs))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function AP(e=0,i=Yd){return e<0&&(e=0),Kd(e,e,i)}function kx(e,i,n){for(let t in i)if(i.hasOwnProperty(t)){const r=i[t];r?e.setProperty(t,r,n?.has(t)?"important":""):e.removeProperty(t)}return e}function ec(e,i){const n=i?"":"none";kx(e.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function RP(e,i,n){kx(e.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},n)}function rg(e,i){return i&&"none"!=i?e+" "+i:e}function OP(e){const i=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*i}function Cx(e,i){return e.getPropertyValue(i).split(",").map(t=>t.trim())}function Dx(e){const i=e.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function Sx(e,i,n){const{top:t,bottom:r,left:s,right:o}=e;return n>=t&&n<=r&&i>=s&&i<=o}function $u(e,i,n){e.top+=i,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function FP(e,i,n,t){const{top:r,right:s,bottom:o,left:a,width:l,height:c}=e,d=l*i,u=c*i;return t>r-u&&ta-d&&n{this.positions.set(n,{scrollPosition:{top:n.scrollTop,left:n.scrollLeft},clientRect:Dx(n)})})}handleScroll(i){const n=Vn(i),t=this.positions.get(n);if(!t)return null;const r=t.scrollPosition;let s,o;if(n===this._document){const c=this.getViewportScrollPosition();s=c.top,o=c.left}else s=n.scrollTop,o=n.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&n!==d&&n.contains(d)&&$u(c.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function PP(e){const i=e.cloneNode(!0),n=i.querySelectorAll("[id]"),t=e.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rec(t,n)))}constructor(i,n,t,r,s,o){this._config=n,this._document=t,this._ngZone=r,this._viewportRuler=s,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new $,this._pointerMoveSubscription=Qe.EMPTY,this._pointerUpSubscription=Qe.EMPTY,this._scrollSubscription=Qe.EMPTY,this._resizeSubscription=Qe.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new $,this.started=new $,this.released=new $,this.ended=new $,this.entered=new $,this.exited=new $,this.dropped=new $,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),_=this._dropContainer;if(!f)return void this._endDragSequence(a);(!_||!_.isDragging()&&!_.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=c.x-d.x+this._passiveTransform.x,u.y=c.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(i).withParent(n.parentDragRef||null),this._parentPositions=new NP(t),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(t=>$t(t)),this._handles.forEach(t=>ec(t,this.disabled)),this._toggleNativeDragInteractions();const n=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&n.add(t)}),this._disabledHandles=n,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const n=$t(i);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{n.addEventListener("mousedown",this._pointerDown,sg),n.addEventListener("touchstart",this._pointerDown,jP),n.addEventListener("dragstart",this._nativeDragStart,sg)}),this._initialTransform=void 0,this._rootElement=n),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?$t(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),ec(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),ec(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const n=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(n),dropPoint:n,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){Uu(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const n=this._dropContainer;if(n){const t=this._rootElement,r=t.parentNode,s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(o,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),RP(t,!1,Ex),this._document.body.appendChild(r.replaceChild(s,t)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:i}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(i,n){this._parentDragRef&&n.stopPropagation();const t=this.isDragging(),r=Uu(n),s=!r&&0!==n.button,o=this._rootElement,a=Vn(n),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Gw(n):Uw(n);if(a&&a.draggable&&"mousedown"===n.type&&n.preventDefault(),t||s||l||c)return;if(this._handles.length){const h=o.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Dx(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,n);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}_cleanupDragArtifacts(i){RP(this._rootElement,!0,Ex),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const n=this._dropContainer,t=n.getItemIndex(this),r=this._getPointerPositionOnPage(i),s=this._getDragDistance(r),o=n._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:s,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:n,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:r,event:i}),n.drop(this,t,this._initialIndex,this._initialContainer,o,s,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:n},{x:t,y:r}){let s=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,i,n,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,n):this._applyPreviewTransform(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,n=this.previewClass,t=i?i.template:null;let r;if(t&&i){const s=i.matchSize?this._initialClientRect:null,o=i.viewContainer.createEmbeddedView(t,i.context);o.detectChanges(),r=HP(o,this._document),this._previewRef=o,i.matchSize?$P(r,s):r.style.transform=og(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=PP(this._rootElement),$P(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return kx(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Ex),ec(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(s=>r.classList.add(s)):r.classList.add(n)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const n=function Dte(e){const i=getComputedStyle(e),n=Cx(i,"transition-property"),t=n.find(a=>"transform"===a||"all"===a);if(!t)return 0;const r=n.indexOf(t),s=Cx(i,"transition-duration"),o=Cx(i,"transition-delay");return OP(s[r])+OP(o[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=o=>{(!o||Vn(o)===this._preview&&"transform"===o.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(s))},s=setTimeout(r,1.5*n);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,n=i?i.template:null;let t;return n?(this._placeholderRef=i.viewContainer.createEmbeddedView(n,i.context),this._placeholderRef.detectChanges(),t=HP(this._placeholderRef,this._document)):t=PP(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(i,n,t){const r=n===this._rootElement?null:n,s=r?r.getBoundingClientRect():i,o=Uu(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-a.left),y:s.top-i.top+(o.pageY-s.top-a.top)}}_getPointerPositionOnPage(i){const n=this._getViewportScrollPosition(),t=Uu(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=t.pageX-n.left,s=t.pageY-n.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=s,a.matrixTransform(o.inverse())}}return{x:r,y:s}}_getConstrainedPointerPosition(i){const n=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===n?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===n)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:s,y:o}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),d=a.top+o,u=a.bottom-(c-o);t=zP(t,a.left+s,a.right-(l-s)),r=zP(r,d,u)}return{x:t,y:r}}_updatePointerDirectionDelta(i){const{x:n,y:t}=i,r=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(n-s.x),a=Math.abs(t-s.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=n>s.x?1:-1,s.x=n),a>this._config.pointerDirectionChangeThreshold&&(r.y=t>s.y?1:-1,s.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,ec(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,sg),i.removeEventListener("touchstart",this._pointerDown,jP),i.removeEventListener("dragstart",this._nativeDragStart,sg)}_applyRootElementTransform(i,n){const t=og(i,n),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=rg(t,this._initialTransform)}_applyPreviewTransform(i,n){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=og(i,n);this._preview.style.transform=rg(r,t)}_getDragDistance(i){const n=this._pickupPositionOnPage;return n?{x:i.x-n.x,y:i.y-n.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:n}=this._passiveTransform;if(0===i&&0===n||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const s=r.left-t.left,o=t.right-r.right,a=r.top-t.top,l=t.bottom-r.bottom;r.width>t.width?(s>0&&(i+=s),o>0&&(i-=o)):i=0,r.height>t.height?(a>0&&(n+=a),l>0&&(n-=l)):n=0,(i!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:i})}_getDragStartDelay(i){const n=this.dragStartDelay;return"number"==typeof n?n:Uu(i)?n.touch:n?n.mouse:0}_updateOnScroll(i){const n=this._parentPositions.handleScroll(i);if(n){const t=Vn(i);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&$u(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Lw(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,n){const t=this._previewContainer||"global";if("parent"===t)return i;if("global"===t){const r=this._document;return n||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return $t(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(n=>i.target&&(i.target===n||n.contains(i.target)))}}function og(e,i){return`translate3d(${Math.round(e)}px, ${Math.round(i)}px, 0)`}function zP(e,i,n){return Math.max(i,Math.min(n,e))}function Uu(e){return"t"===e.type[0]}function HP(e,i){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===i.ELEMENT_NODE)return n[0];const t=i.createElement("div");return n.forEach(r=>t.appendChild(r)),t}function $P(e,i){e.style.width=`${i.width}px`,e.style.height=`${i.height}px`,e.style.transform=og(i.left,i.top)}function Gu(e,i){return Math.max(0,Math.min(i,e))}class Ite{constructor(i,n){this._element=i,this._dragDropRegistry=n,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(i){this.withItems(i)}sort(i,n,t,r){const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(i,n,t,r);if(-1===o&&s.length>0)return null;const a="horizontal"===this.orientation,l=s.findIndex(m=>m.drag===i),c=s[o],u=c.clientRect,h=l>o?1:-1,f=this._getItemOffsetPx(s[l].clientRect,u,h),_=this._getSiblingOffsetPx(l,s,h),g=s.slice();return function Tte(e,i,n){const t=Gu(i,e.length-1),r=Gu(n,e.length-1);if(t===r)return;const s=e[t],o=r{if(g[b]===m)return;const v=m.drag===i,w=v?f:_,y=v?i.getPlaceholderElement():m.drag.getRootElement();m.offset+=w,a?(y.style.transform=rg(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),$u(m.clientRect,0,w)):(y.style.transform=rg(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),$u(m.clientRect,w,0))}),this._previousSwap.overlaps=Sx(u,n,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:o}}enter(i,n,t,r){const s=null==r||r<0?this._getItemIndexFromPointerPosition(i,n,t):r,o=this._activeDraggables,a=o.indexOf(i),l=i.getPlaceholderElement();let c=o[s];if(c===i&&(c=o[s+1]),!c&&(null==s||-1===s||s-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const d=c.getRootElement();d.parentElement.insertBefore(l,d),o.splice(s,0,i)}else $t(this._element).appendChild(l),o.push(i);l.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const n=i.getRootElement();if(n){const t=this._itemPositions.find(r=>r.drag===i)?.initialTransform;n.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===i)}updateOnScroll(i,n){this._itemPositions.forEach(({clientRect:t})=>{$u(t,i,n)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(n=>{const t=n.getVisibleElement();return{drag:n,offset:0,initialTransform:t.style.transform||"",clientRect:Dx(t)}}).sort((n,t)=>i?n.clientRect.left-t.clientRect.left:n.clientRect.top-t.clientRect.top)}_getItemOffsetPx(i,n,t){const r="horizontal"===this.orientation;let s=r?n.left-i.left:n.top-i.top;return-1===t&&(s+=r?n.width-i.width:n.height-i.height),s}_getSiblingOffsetPx(i,n,t){const r="horizontal"===this.orientation,s=n[i].clientRect,o=n[i+-1*t];let a=s[r?"width":"height"]*t;if(o){const l=r?"left":"top",c=r?"right":"bottom";-1===t?a-=o.clientRect[l]-s[c]:a+=s[l]-o.clientRect[c]}return a}_shouldEnterAsFirstChild(i,n){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const o=t[t.length-1].clientRect;return r?i>=o.right:n>=o.bottom}{const o=t[0].clientRect;return r?i<=o.left:n<=o.top}}_getItemIndexFromPointerPosition(i,n,t,r){const s="horizontal"===this.orientation,o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>a!==i&&((!r||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(s?r.x:r.y)!==this._previousSwap.delta)&&(s?n>=Math.floor(l.left)&&n=Math.floor(l.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new $,this.entered=new $,this.exited=new $,this.dropped=new $,this.sorted=new $,this.receivingStarted=new $,this.receivingStopped=new $,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Qe.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new $,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),AP(0,EN).pipe(ke(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-a):2===this._verticalScrollDirection&&o.scrollBy(0,a),1===this._horizontalScrollDirection?o.scrollBy(-a,0):2===this._horizontalScrollDirection&&o.scrollBy(a,0)})},this.element=$t(i),this._document=t,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new NP(t),this._sortStrategy=new Ite(this.element,n),this._sortStrategy.withSortPredicate((o,a)=>this.sortPredicate(o,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,n,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,n,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,n,t,r,s,o,a,l={}){this._reset(),this.dropped.next({item:i,currentIndex:n,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:s,distance:o,dropPoint:a,event:l})}withItems(i){const n=this._draggables;return this._draggables=i,i.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(n.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const n=$t(this.element);return this._scrollableElements=-1===i.indexOf(n)?[n,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,n,t,r){if(this.sortingDisabled||!this._clientRect||!FP(this._clientRect,.05,n,t))return;const s=this._sortStrategy.sort(i,n,t,r);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,n){if(this.autoScrollDisabled)return;let t,r=0,s=0;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||t||FP(o.clientRect,.05,i,n)&&([r,s]=function Rte(e,i,n,t){const r=qP(i,t),s=WP(i,n);let o=0,a=0;if(r){const l=e.scrollTop;1===r?l>0&&(o=1):e.scrollHeight-l>e.clientHeight&&(o=2)}if(s){const l=e.scrollLeft;1===s?l>0&&(a=1):e.scrollWidth-l>e.clientWidth&&(a=2)}return[o,a]}(a,o.clientRect,i,n),(r||s)&&(t=a))}),!r&&!s){const{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};r=qP(l,n),s=WP(l,i),t=window}t&&(r!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=s,this._scrollNode=t,(r||s)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=$t(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=$t(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=$t(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(n=>n._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,n){return null!=this._clientRect&&Sx(this._clientRect,i,n)}_getSiblingContainerFromPosition(i,n,t){return this._siblings.find(r=>r._canReceive(i,n,t))}_canReceive(i,n,t){if(!this._clientRect||!Sx(this._clientRect,n,t)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(n,t);if(!r)return!1;const s=$t(this.element);return r===s||s.contains(r)}_startReceiving(i,n){const t=this._activeSiblings;!t.has(i)&&n.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:n}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const n=this._parentPositions.handleScroll(i);n&&this._sortStrategy.updateOnScroll(n.top,n.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=Lw($t(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(n=>n.isDragging());this._siblings.forEach(n=>n._startReceiving(this,i))}}function qP(e,i){const{top:n,bottom:t,height:r}=e,s=.05*r;return i>=n-s&&i<=n+s?1:i>=t-s&&i<=t+s?2:0}function WP(e,i){const{left:n,right:t,width:r}=e,s=.05*r;return i>=n-s&&i<=n+s?1:i>=t-s&&i<=t+s?2:0}const ag=ps({passive:!1,capture:!0});let Ote=(()=>{var e;class i{constructor(t,r){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new $,this.pointerUp=new $,this.scroll=new $,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=r}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ag)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ag)}startDragging(t,r){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const s=r.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ag}),s||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:ag}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(t){const r=this._activeDragInstances.indexOf(t);r>-1&&(this._activeDragInstances.splice(r,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const r=[this.scroll];return t&&t!==this._document&&r.push(new et(s=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&s.next(l)};return t.addEventListener("scroll",a,!0),()=>{t.removeEventListener("scroll",a,!0)}}))),Ft(...r)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,r)=>{this._document.removeEventListener(r,t.handler,t.options)}),this._globalListeners.clear()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Fte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Mx=(()=>{var e;class i{constructor(t,r,s,o){this._document=t,this._ngZone=r,this._viewportRuler=s,this._dragDropRegistry=o}createDrag(t,r=Fte){return new Mte(t,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new Ate(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(ce),x(Yl),x(Ote))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const Tx=new M("CDK_DRAG_PARENT"),Ix=new M("CdkDragHandle");let YP=(()=>{var e;class i{get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._stateChanges.next(this)}constructor(t,r){this.element=t,this._stateChanges=new $,this._disabled=!1,this._parentDrag=r}ngOnDestroy(){this._stateChanges.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tx,12))},e.\u0275dir=I({type:e,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[K([{provide:Ix,useExisting:e}])]}),i})();const KP=new M("CdkDragPlaceholder"),XP=new M("CdkDragPreview"),ZP=new M("CDK_DRAG_CONFIG"),QP=new M("CdkDropList");let JP=(()=>{var e;class i{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=re(t),this._dragRef.disabled=this._disabled}constructor(t,r,s,o,a,l,c,d,u,h,f){this.element=t,this.dropContainer=r,this._ngZone=o,this._viewContainerRef=a,this._dir=c,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new $,this.started=new W,this.released=new W,this.ended=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.moved=new et(_=>{const g=this._dragRef.moved.pipe(se(m=>({source:this,pointerPosition:m.pointerPosition,event:m.event,delta:m.delta,distance:m.distance}))).subscribe(_);return()=>{g.unsubscribe()}}),this._dragRef=d.createDrag(t,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),l&&this._assignDefaults(l),r&&(this._dragRef._withDropContainer(r._dropListRef),r.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ze(1),ke(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){const r=t.rootElementSelector,s=t.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=i._dragInstances.indexOf(this);t>-1&&i._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const t=this.element.nativeElement;let r=t;this.rootElementSelector&&(r=void 0!==t.closest?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):$t(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const r=this._dir,s=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof s&&s?s:Oi(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),r&&t.withDirection(r.value)}}),t.beforeStarted.pipe(ze(1)).subscribe(()=>{if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){t.withParent(i._dragInstances.find(s=>s.element.nativeElement===r)?._dragRef||null);break}r=r.parentElement}})}_handleEvents(t){t.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),t.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),t.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),t.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(t){const{lockAxis:r,dragStartDelay:s,constrainPosition:o,previewClass:a,boundaryElement:l,draggingDisabled:c,rootElementSelector:d,previewContainer:u}=t;this.disabled=c??!1,this.dragStartDelay=s||0,r&&(this.lockAxis=r),o&&(this.constrainPosition=o),a&&(this.previewClass=a),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(Di(this._handles),zt(t=>{const r=t.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),ei(t=>Ft(...t.map(r=>r._stateChanges.pipe(Di(r))))),ke(this._destroyed)).subscribe(t=>{const r=this._dragRef,s=t.element.nativeElement;t.disabled?r.disableHandle(s):r.enableHandle(s)})}}return(e=i)._dragInstances=[],e.\u0275fac=function(t){return new(t||e)(p(ne),p(QP,12),p(xe),p(ce),p(Vt),p(ZP,8),p(an,8),p(Mx),p(st),p(Ix,10),p(Tx,12))},e.\u0275dir=I({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,XP,5),Me(s,KP,5),Me(s,Ix,5)),2&t){let o;Q(o=J())&&(r._previewTemplate=o.first),Q(o=J())&&(r._placeholderTemplate=o.first),Q(o=J())&&(r._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,r){2&t&&fe("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[K([{provide:Tx,useExisting:e}]),bt]}),i})(),e2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Mx],imports:[ta]}),i})();const jte=["*"];let lg;function qu(e){return function zte(){if(void 0===lg&&(lg=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(lg=e.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return lg}()?.createHTML(e)||e}function t2(e){return Error(`Unable to find icon with the name "${e}"`)}function n2(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function r2(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class la{constructor(i,n,t){this.url=i,this.svgText=n,this.options=t}}let cg=(()=>{var e;class i{constructor(t,r,s,o){this._httpClient=t,this._sanitizer=r,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(t,r,s){return this.addSvgIconInNamespace("",t,r,s)}addSvgIconLiteral(t,r,s){return this.addSvgIconLiteralInNamespace("",t,r,s)}addSvgIconInNamespace(t,r,s,o){return this._addSvgIconConfig(t,r,new la(s,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,s,o){const a=this._sanitizer.sanitize(xi.HTML,s);if(!a)throw r2(s);const l=qu(a);return this._addSvgIconConfig(t,r,new la("",l,o))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,s){return this._addSvgIconSetConfig(t,new la(r,null,s))}addSvgIconSetLiteralInNamespace(t,r,s){const o=this._sanitizer.sanitize(xi.HTML,r);if(!o)throw r2(r);const a=qu(o);return this._addSvgIconSetConfig(t,new la("",a,s))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const r=this._sanitizer.sanitize(xi.RESOURCE_URL,t);if(!r)throw n2(t);const s=this._cachedIconsByUrl.get(r);return s?ee(dg(s)):this._loadSvgIconFromConfig(new la(t,null)).pipe(zt(o=>this._cachedIconsByUrl.set(r,o)),se(o=>dg(o)))}getNamedSvgIcon(t,r=""){const s=s2(r,t);let o=this._svgIconConfigs.get(s);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(r,t),o)return this._svgIconConfigs.set(s,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(t,a):Ys(t2(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?ee(dg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(se(r=>dg(r)))}_getSvgFromIconSetConfigs(t,r){const s=this._extractIconWithNameFromAnySet(t,r);return s?ee(s):jd(r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(lr(l=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(xi.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(d)),ee(null)})))).pipe(se(()=>{const a=this._extractIconWithNameFromAnySet(t,r);if(!a)throw t2(t);return a}))}_extractIconWithNameFromAnySet(t,r){for(let s=r.length-1;s>=0;s--){const o=r[s];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const a=this._svgElementFromConfig(o),l=this._extractSvgIconFromSet(a,t,o.options);if(l)return l}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(zt(r=>t.svgText=r),se(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?ee(null):this._fetchIcon(t).pipe(zt(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,s){const o=t.querySelector(`[id="${r}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,s);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),s);const l=this._svgElementFromString(qu(""));return l.appendChild(a),this._setSvgAttributes(l,s)}_svgElementFromString(t){const r=this._document.createElement("DIV");r.innerHTML=t;const s=r.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(t){const r=this._svgElementFromString(qu("")),s=t.attributes;for(let o=0;oqu(d)),Sl(()=>this._inProgressUrlFetches.delete(a)),Vh());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,r,s){return this._svgIconConfigs.set(s2(t,r),s),this}_addSvgIconSetConfig(t,r){const s=this._iconSetConfigs.get(t);return s?s.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){const r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let s=0;si?i.pathname+i.search:""}}}),o2=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Kte=o2.map(e=>`[${e}]`).join(", "),Xte=/^url\(['"]?#(.*?)['"]?\)$/;let kn=(()=>{var e;class i extends Gte{get inline(){return this._inline}set inline(t){this._inline=re(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(t,r,s,o,a,l){super(t),this._iconRegistry=r,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Qe.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let r=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const s=t.childNodes[r];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>t.classList.remove(s)),r.forEach(s=>t.classList.add(s)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const r=this._elementsWithExternalReferences;r&&r.forEach((s,o)=>{s.forEach(a=>{o.setAttribute(a.name,`url('${t}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(t){const r=t.querySelectorAll(Kte),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const l=r[o],c=l.getAttribute(a),d=c?c.match(Xte):null;if(d){let u=s.get(l);u||(u=[],s.set(l,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[r,s]=this._splitIconName(t);r&&(this._svgNamespace=r),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,r).pipe(ze(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${s}! ${o.message}`))})}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(cg),Mi("aria-hidden"),p(Wte),p(Tr),p(qte,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(t,r){2&t&&(_e("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),fe("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[L],ngContentSelectors:jte,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),i})(),a2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})(),iie=0;const nie=Nu(ro($r(no(class{constructor(e){this._elementRef=e}}))));let c2=(()=>{var e;class i extends nie{get required(){return this._required}set required(t){this._required=re(t)}get checked(){return this._checked}set checked(t){this._checked=re(t),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(t){this._hideIcon=re(t)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,r,s,o,a,l,c){super(t),this._focusMonitor=r,this._changeDetectorRef=s,this.defaults=a,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new W,this.toggleChange=new W,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===l,this.id=this._uniqueId=`${c}${++iie}`,this._hideIcon=a.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275dir=I({type:e,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[L]}),i})(),d2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const aie=["input"],lie=function(e){return{enterDuration:e}},cie=["*"],die=new M("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),uie={provide:Ci,useExisting:Ye(()=>Rx),multi:!0};class hie{constructor(i,n){this.source=i,this.checked=n}}let Rx=(()=>{var e;class i extends c2{constructor(t,r,s,o,a,l){super(t,r,s,o,a,l,"mat-slide-toggle-")}_createChangeEvent(t){return new hie(this,t)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}focus(t,r){r?this._focusMonitor.focusVia(this._inputElement,r,t):this._inputElement.nativeElement.focus(t)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(xn),p(st),Mi("tabindex"),p(die),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,r){if(1&t&&Xe(aie,5),2&t){let s;Q(s=J())&&(r._inputElement=s.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(t,r){2&t&&(On("id",r.id),_e("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),fe("mat-checked",r.checked)("mat-disabled",r.disabled)("mat-slide-toggle-label-before","before"==r.labelPosition)("_mat-animation-noopable",r._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[K([uie]),L],ngContentSelectors:cie,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,r){if(1&t&&(ct(),k(0,"label",0,1)(2,"span",2)(3,"input",3,4),H("change",function(o){return r._onChangeEvent(o)})("click",function(o){return r._onInputClick(o)}),D(),k(5,"span",5),be(6,"span",6),k(7,"span",7),be(8,"span",8),D()()(),k(9,"span",9,10),H("cdkObserveContent",function(){return r._onLabelTextChange()}),k(11,"span",11),N(12,"\xa0"),D(),we(13),D()()),2&t){const s=Rt(1),o=Rt(10);_e("for",r.inputId),C(2),fe("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),C(1),R("id",r.inputId)("required",r.required)("tabIndex",r.tabIndex)("checked",r.checked)("disabled",r.disabled),_e("name",r.name)("aria-checked",r.checked)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),C(4),R("matRippleTrigger",s)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",cm(18,lie,r._noopAnimations?0:150))}},dependencies:[dr,Bp],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),i})(),u2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[d2,Jl,Fe,Vp,d2,Fe]}),i})();const fie=["trace",""];let mie=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["apollo-trace","trace",""]],inputs:{trace:"trace"},attrs:fie,decls:6,vars:7,consts:[[1,"trace"],[1,"formula"],[1,"descriprion"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"span",1),N(2),D(),k(3,"span",2),N(4),U(5,"translate"),D()()),2&t&&(fe("invalid",r.trace.isModel!==r.trace.shouldBeModel),C(2),pe(r.trace.formula),C(2),pe(yl(5,4,r.trace.description.key,r.trace.description.params)))},dependencies:[di],styles:["[_nghost-%COMP%]{width:100%}.trace[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.trace.invalid[_ngcontent-%COMP%]{color:#f44336}.trace[_ngcontent-%COMP%] .formula[_ngcontent-%COMP%]{margin-right:1rem}"]}),i})();function pie(e,i){if(1&e&&(k(0,"mat-tree-node",12),be(1,"button",13)(2,"apollo-trace",14),D()),2&e){const n=i.$implicit;fe("result-tree-invisible",!n.visible),C(2),R("trace",n.trace)}}function gie(e,i){if(1&e&&(k(0,"mat-tree-node",12)(1,"button",15)(2,"mat-icon",16),N(3),D()(),be(4,"apollo-trace",14),D()),2&e){const n=i.$implicit,t=ue(2);fe("result-tree-invisible",!n.visible),C(2),fe("invalid",n.trace.isModel!==n.trace.shouldBeModel),C(1),ot(" ",t.treeControl.isExpanded(n)?"expand_more":"chevron_right"," "),C(1),R("trace",n.trace)}}function _ie(e,i){if(1&e&&(k(0,"mat-dialog-content",8)(1,"mat-tree",9),Z(2,pie,3,3,"mat-tree-node",10),Z(3,gie,5,6,"mat-tree-node",11),D()()),2&e){const n=ue();C(1),R("dataSource",n.dataSource)("treeControl",n.treeControl),C(2),R("matTreeNodeDefWhen",n.hasChild)}}function bie(e,i){if(1&e){const n=Yt();k(0,"mat-slide-toggle",19),H("change",function(r){return tt(n),it(ue(2).updateFilter(r.checked))}),N(1),U(2,"translate"),D()}2&e&&(C(1),ot(" ",Y(2,1,"actions.filter-causes")," "))}function vie(e,i){if(1&e){const n=Yt();k(0,"mat-dialog-actions")(1,"button",17),H("click",function(){return tt(n),it(ue().expandAll())}),N(2),U(3,"translate"),D(),k(4,"button",17),H("click",function(){return tt(n),it(ue().treeControl.collapseAll())}),N(5),U(6,"translate"),D(),Z(7,bie,3,3,"mat-slide-toggle",18),D()}if(2&e){const n=ue();C(2),pe(Y(3,3,"actions.expand")),C(3),pe(Y(6,5,"actions.collapse")),C(2),R("ngIf","full"===n.result.feedback)}}let h2=(()=>{var e;class i{constructor(t,r,s){this.dialogRef=t,this.result=r,this.snackBarService=s,this.treeControl=new Yee(o=>o.level,o=>o.expandable),this.dataSource=new nte(this.treeControl,new ite(yie,o=>o.level,o=>o.expandable,o=>o.children))}ngOnInit(){this.dataSource.data=[this.result.rootTrace],"relevant"===this.result.feedback&&this.expandAll()}closeDialog(){this.dialogRef.close()}hasChild(t,r){return r.expandable}expandAll(){try{this.treeControl.expandAll()}catch{this.snackBarService.openSnackBar({key:"result-tree.expand-error"})}}updateFilter(t){t?this.filterCauses(this.treeControl.dataNodes[0],this.result.rootTrace.isModel,!0):this.treeControl.dataNodes.forEach(r=>r.visible=!0)}filterCauses(t,r,s){const a=s&&t.trace.isModel===t.trace.shouldBeModel===r;t.visible=a,this.treeControl.getDescendants(t).forEach(l=>{l.level===t.level+1&&this.filterCauses(l,r,a)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so),p(ju),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:18,vars:11,consts:[["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragBoundary",".cdk-overlay-container",1,"header-container"],[1,"title-container"],["mat-dialog-title",""],[1,"icon-container"],["mat-icon-button","","color","primary","disableRipple","","cdkDragHandle","",1,"drag-handle"],["mat-icon-button","","color","warn",3,"click"],["class","tree-container",4,"ngIf"],[4,"ngIf"],[1,"tree-container"],[3,"dataSource","treeControl"],["matTreeNodePadding","",3,"result-tree-invisible",4,"matTreeNodeDef"],["matTreeNodePadding","",3,"result-tree-invisible",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodePadding",""],["mat-icon-button","","disabled",""],[3,"trace"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["mat-raised-button","","color","primary",3,"click"],["color","accent",3,"change",4,"ngIf"],["color","accent",3,"change"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"div",1)(2,"h2",2)(3,"mat-icon"),N(4),D(),N(5),U(6,"translate"),D(),k(7,"h2",2),N(8),D()(),k(9,"div",3)(10,"button",4)(11,"mat-icon"),N(12,"open_with"),D()(),k(13,"button",5),H("click",function(){return r.closeDialog()}),k(14,"mat-icon"),N(15,"cancel"),D()()()(),Z(16,_ie,4,3,"mat-dialog-content",6),Z(17,vie,8,7,"mat-dialog-actions",7)),2&t&&(fe("no-bottom-margin","minimal"===r.result.feedback),C(3),function uM(e){ir(z8,Or,e,!0)}(r.result.rootTrace.isModel===r.result.rootTrace.shouldBeModel?"valid-trace":"invalid"),C(1),pe(r.result.rootTrace.isModel===r.result.rootTrace.shouldBeModel?"done":"close"),C(1),ot(" ",Y(6,9,r.result.rootTrace.isModel?"api.valid":"api.invalid")," "),C(3),pe(r.result.rootTrace.formula),C(8),R("ngIf","minimal"!==r.result.feedback),C(1),R("ngIf",r.result.rootTrace.children))},dependencies:[ki,JP,YP,Fi,cP,dP,cx,kn,Rx,pP,gP,bP,_P,mP,mie,di],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.header-container.no-bottom-margin[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-bottom:0!important}.header-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}.header-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:1rem}.header-container[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.5rem}.header-container[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;vertical-align:top;margin-bottom:1rem}.header-container[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{cursor:move}.invalid[_ngcontent-%COMP%]{color:#f44336}.tree-container[_ngcontent-%COMP%]{flex-grow:1;max-height:unset}.tree-container[_ngcontent-%COMP%] .result-tree-invisible[_ngcontent-%COMP%]{display:none}.tree-container[_ngcontent-%COMP%] .result-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .tree-container[_ngcontent-%COMP%] .result-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.mat-slide-toggle[_ngcontent-%COMP%]{margin-left:.5rem}"]}),i})();function yie(e,i){return{trace:e,expandable:!!e.children&&e.children.length>0,visible:!0,level:i}}const wie=["*",[["mat-card-footer"]]],xie=["*","mat-card-footer"];let tc=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),Wu=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),Ox=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),i})(),ug=(()=>{var e;class i{constructor(){this.align="start"}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-card-actions-align-end","end"===r.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),i})(),Yu=(()=>{var e;class i{constructor(t){this._animationMode=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,r){2&t&&fe("_mat-animation-noopable","NoopAnimations"===r._animationMode)},exportAs:["matCard"],ngContentSelectors:xie,decls:2,vars:0,template:function(t,r){1&t&&(ct(wie),we(0),we(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),i})(),f2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();const kie=function(){return{condition:"A \u22a7 \u03c6"}};function Cie(e,i){if(1&e){const n=Yt();k(0,"mat-card-content",4),N(1),U(2,"translate"),k(3,"button",5),H("click",function(){tt(n);const r=ue();return it(r.showResultTreeDialog(r.result.firstTrace))}),N(4),U(5,"translate"),D()()}2&e&&(C(1),ot(" ",yl(2,2,"assignments.solution.condition-not-met",sy(7,kie))," "),C(3),pe(Y(5,5,"actions.show-reason")))}const Die=function(){return{condition:"B \u22ad \u03c6"}};function Sie(e,i){if(1&e){const n=Yt();k(0,"mat-card-content",4),N(1),U(2,"translate"),k(3,"button",5),H("click",function(){tt(n);const r=ue();return it(r.showResultTreeDialog(r.result.secondTrace))}),N(4),U(5,"translate"),D()()}2&e&&(C(1),ot(" ",yl(2,2,"assignments.solution.condition-not-met",sy(7,Die))," "),C(3),pe(Y(5,5,"actions.show-reason")))}function Eie(e,i){if(1&e){const n=Yt();k(0,"div",6)(1,"button",5),H("click",function(){return tt(n),it(ue().navigateToOverview())}),N(2),U(3,"translate"),D()()}2&e&&(C(2),pe(Y(3,1,"actions.back-to-overview")))}let Mie=(()=>{var e;class i{constructor(t,r,s,o){this.dialog=t,this.dialogRef=r,this.result=s,this.router=o}showResultTreeDialog(t){this.dialog.open(h2,{data:{rootTrace:t,feedback:"relevant"}})}navigateToOverview(){this.dialogRef.close(),this.router.navigateByUrl("/assignments")}}return(e=i).\u0275fac=function(t){return new(t||e)(p(oo),p(so),p(ju),p(Ri))},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignment-solution"]],decls:8,vars:8,consts:[[2,"display","flex","align-items","center"],[2,"margin-right","0.5rem",3,"color"],["class","trace-section",4,"ngIf"],["style","display: flex; justify-content: flex-end",4,"ngIf"],[1,"trace-section"],["mat-raised-button","","color","primary",3,"click"],[2,"display","flex","justify-content","flex-end"]],template:function(t,r){1&t&&(k(0,"mat-card-title",0)(1,"mat-icon",1),N(2),D(),N(3),U(4,"translate"),D(),Z(5,Cie,6,8,"mat-card-content",2),Z(6,Sie,6,8,"mat-card-content",2),Z(7,Eie,4,3,"div",3)),2&t&&(C(1),R("color",r.result.correct?"primary":"warn"),C(1),ot(" ",r.result.correct?"done":"close"," "),C(1),ot(" ",Y(4,6,r.result.correct?"assignments.solution.correct":"assignments.solution.not-correct"),"\n"),C(2),R("ngIf",r.result.firstTrace),C(1),R("ngIf",r.result.secondTrace),C(1),R("ngIf",r.result.correct))},dependencies:[ki,Fi,tc,Wu,kn,di],styles:[".trace-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:1rem;margin-bottom:0}.trace-section[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:.5rem}@media screen and (min-width: 801px){.trace-section[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}.trace-section[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-left:1rem;margin-top:0}}"]}),i})();const Tie=new M("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Iie=new M("mat-progress-bar-location",{providedIn:"root",factory:function Aie(){const e=G(xe),i=e?e.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),Rie=["primaryValueBar"],Oie=ro(class{constructor(e){this._elementRef=e}},"primary");let Fie=0,Nie=(()=>{var e;class i extends Oie{constructor(t,r,s,o,a,l){super(t),this._ngZone=r,this._animationMode=s,this._changeDetectorRef=l,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new W,this._animationEndSubscription=Qe.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+Fie++;const c=o?o.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${c}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===s,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(t){this._value=m2(Oi(t)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=m2(t||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Br(t,"transitionend").pipe($e(r=>r.target===t)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(ce),p(ti,8),p(Iie,8),p(Tie,8),p(st))},e.\u0275cmp=ie({type:e,selectors:[["mat-progress-bar"]],viewQuery:function(t,r){if(1&t&&Xe(Rie,5),2&t){let s;Q(s=J())&&(r._primaryValueBar=s.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,r){2&t&&(_e("aria-valuenow","indeterminate"===r.mode||"query"===r.mode?null:r.value)("mode",r.mode),fe("_mat-animation-noopable",r._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[L],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,r){1&t&&(k(0,"div",0),Eo(),k(1,"svg",1)(2,"defs")(3,"pattern",2),be(4,"circle",3),D()(),be(5,"rect",4),D(),La(),be(6,"div",5)(7,"div",6,7)(9,"div",8),D()),2&t&&(C(3),R("id",r.progressbarId),C(2),_e("fill",r._rectangleFillValue),C(1),R("ngStyle",r._bufferTransform()),C(1),R("ngStyle",r._primaryTransform()))},dependencies:[sA],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),i})();function m2(e,i=0,n=100){return Math.max(i,Math.min(n,e))}let p2=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ln,Fe,Fe]}),i})(),g2=(()=>{var e;class i{constructor(t,r,s){this.dialogRef=t,this.request=r,this.snackBarService=s,this.progress$=new W,this.state=new W,this.progressMode$=this.state.pipe(se(o=>{switch(o){case"sending":return"buffer";case"querying":return"query";default:return"determinate"}})),t.disableClose=!0,this.requestSubscription=this.request.pipe(lr(o=>this.onError(o))).subscribe(o=>{switch(o.type){case Lr.Sent:this.onSent();break;case Lr.ResponseHeader:this.onHeaderReceived();break;case Lr.DownloadProgress:this.onProgress(o);break;case Lr.Response:this.onResponse(o)}})}ngOnDestroy(){this.requestSubscription?.unsubscribe()}cancelRequest(){this.dialogRef.close()}onSent(){this.state.emit("querying")}onHeaderReceived(){this.state.emit("fetching")}onProgress(t){this.progress$.emit(100*t.loaded/(t.total??Number.MAX_SAFE_INTEGER))}onResponse(t){null==t.body?this.onError({error:{message:"api.error.unknown"}}):this.dialogRef.close(t.body)}onError(t){setTimeout(()=>this.dialogRef.close(),250);const r=t?.error?.message??"api.error.unknown";return this.snackBarService.openSnackBar("string"==typeof r?{key:r}:r,void 0,1e4),ee()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so),p(ju),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:6,vars:6,consts:[[3,"mode","value"],["mat-icon-button","","color","warn",3,"click"]],template:function(t,r){1&t&&(be(0,"mat-progress-bar",0),U(1,"async"),U(2,"async"),k(3,"button",1),H("click",function(){return r.cancelRequest()}),k(4,"mat-icon"),N(5,"cancel"),D()()),2&t&&R("mode",Y(1,2,r.progressMode$)||"buffer")("value",Y(2,4,r.progress$)||0)},dependencies:[Fi,kn,Nie,Pr],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between}"]}),i})();class Pie{constructor(i,n,t,r){this.source=i,this.target=n,this.relations=new Set,this.functions=new Set,t?.forEach(s=>this.relations.add(s)),r?.forEach(s=>this.functions.add(s))}}class Lie{constructor(i,n,t,r,s){this.id=i,this.x=r,this.y=s,this.relations=new Set,this.constants=new Set,n?.forEach(o=>this.relations.add(o)),t?.forEach(o=>this.constants.add(o))}}class Cn{constructor(i=`graph_${Date.now().toString()}`,n=""){this.name=i,this.description=n,this.nodes=[],this.links=[]}static fromDomainGraph(i){return Hu(function*(){const n=new Cn(i.name,i.description);return yield Promise.all(i.nodes.map(t=>n.createNode(t.name,t.relations,t.constants))),yield Promise.all(i.edges.map(t=>n.createLink(t.source,t.target,t.relations,t.functions))),Promise.resolve(n)})()}static relationsAreValid(i){return i?.every(n=>n.charAt(0)===n.charAt(0).toUpperCase())??!0}static functionsAreValid(i){return i?.every(n=>n.charAt(0)===n.charAt(0).toLowerCase())??!0}toDomainGraph(){return{name:this.name,description:this.description,lastEdit:Date.now(),nodes:this.nodes.map(i=>({name:i.id,relations:[...i.relations],constants:[...i.constants]})),edges:this.links.map(i=>({source:i.source.id,target:i.target.id,relations:[...i.relations],functions:[...i.functions]}))}}createNodeWithGeneratedId(i,n){const t=this.nodes.map(r=>+r.id).filter(r=>!isNaN(r)).reduce((r,s)=>r>=s?r:s,-1);return this.createNode(`${t+1}`,void 0,void 0,i,n)}createNode(i,n,t,r,s){if(this.nodes.some(a=>a.id===i))return Promise.reject({key:"validation.node.duplicate",params:{node:i}});if(!Cn.relationsAreValid(n))return Promise.reject({key:"validation.node.invalid-relations",params:{node:i}});if(!Cn.functionsAreValid(t))return Promise.reject({key:"validation.node.invalid-constants",params:{node:i}});const o=new Lie(i,n,t,r,s);return this.nodes.push(o),Promise.resolve(o)}createLink(i,n,t,r){const s=this.links.find(c=>c.source.id===i&&c.target.id===n);if(void 0!==s)return Promise.reject(s);const o=this.nodes.find(c=>c.id===i);if(void 0===o)return Promise.reject({key:"validation.node.missing",params:{node:i}});const a=this.nodes.find(c=>c.id===n);if(void 0===a)return Promise.reject({key:"validation.node.missing",params:{node:n}});if(!Cn.relationsAreValid(t))return Promise.reject({key:"validation.edge.invalid-relations",params:{source:i,target:n}});if(!Cn.functionsAreValid(r))return Promise.reject({key:"validation.edge.invalid-functions",params:{source:i,target:n}});const l=new Pie(o,a,t,r);return this.links.push(l),Promise.resolve(l)}removeNode(i){const n=this.nodes.findIndex(r=>r.id===i.id);if(-1===n)return Promise.reject("validation.node.missing");this.nodes.splice(n,1);const t=this.links.filter(r=>r.source.id===i.id||r.target.id===i.id);return t.forEach(r=>{const s=this.links.indexOf(r,0);this.links.splice(s,1)}),Promise.resolve([i,t])}removeLink(i){const n=this.links.findIndex(t=>t.source.id===i.source.id&&t.target.id===i.target.id);return-1===n?Promise.reject("validation.edge.missing"):(this.links.splice(n,1),Promise.resolve(i))}}const Fx="https://apollo-backend-biem.onrender.com";let Nx=(()=>{var e;class i{constructor(t,r,s){this.http=t,this.store=r,this.translate=s}checkModel(t,r,s){return this.http.post(`${Fx}/model-checker`,{formula:r,graph:t,language:"de"===this.translate.currentLang?"de":"en",feedback:s},{reportProgress:!0,observe:"events"})}checkAssignmentSolution(t){return this.http.post(`${Fx}/assignments/${t.assignmentId}/solution`,t,{reportProgress:!0,observe:"events"})}fetchAssignments(){this.http.get(`${Fx}/assignments`).subscribe(t=>t.forEach(r=>this.store.dispatch(CP(r))))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Vm),x(on),x(Yo))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();function Bie(){}function Px(e){return null==e?Bie:function(){return this.querySelector(e)}}function zie(){return[]}function _2(e){return null==e?zie:function(){return this.querySelectorAll(e)}}function b2(e){return function(){return this.matches(e)}}function v2(e){return function(i){return i.matches(e)}}var Uie=Array.prototype.find;function qie(){return this.firstElementChild}var Yie=Array.prototype.filter;function Kie(){return Array.from(this.children)}function y2(e){return new Array(e.length)}function hg(e,i){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=i}function tne(e,i,n,t,r,s){for(var a,o=0,l=i.length,c=s.length;oi?1:e>=i?0:NaN}hg.prototype={constructor:hg,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,i){return this._parent.insertBefore(e,i)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Lx="http://www.w3.org/1999/xhtml";const w2={svg:"http://www.w3.org/2000/svg",xhtml:Lx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fg(e){var i=e+="",n=i.indexOf(":");return n>=0&&"xmlns"!==(i=e.slice(0,n))&&(e=e.slice(n+1)),w2.hasOwnProperty(i)?{space:w2[i],local:e}:e}function bne(e){return function(){this.removeAttribute(e)}}function vne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function yne(e,i){return function(){this.setAttribute(e,i)}}function wne(e,i){return function(){this.setAttributeNS(e.space,e.local,i)}}function xne(e,i){return function(){var n=i.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function kne(e,i){return function(){var n=i.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function x2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Dne(e){return function(){this.style.removeProperty(e)}}function Sne(e,i,n){return function(){this.style.setProperty(e,i,n)}}function Ene(e,i,n){return function(){var t=i.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,n)}}function ic(e,i){return e.style.getPropertyValue(i)||x2(e).getComputedStyle(e,null).getPropertyValue(i)}function Tne(e){return function(){delete this[e]}}function Ine(e,i){return function(){this[e]=i}}function Ane(e,i){return function(){var n=i.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function k2(e){return e.trim().split(/^|\s+/)}function Bx(e){return e.classList||new C2(e)}function C2(e){this._node=e,this._names=k2(e.getAttribute("class")||"")}function D2(e,i){for(var n=Bx(e),t=-1,r=i.length;++t=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var T2=[null];function Dn(e,i){this._groups=e,this._parents=i}function I2(){return new Dn([[document.documentElement]],T2)}Dn.prototype=I2.prototype={constructor:Dn,select:function Vie(e){"function"!=typeof e&&(e=Px(e));for(var i=this._groups,n=i.length,t=new Array(n),r=0;r=w&&(w=v+1);!(E=m[w])&&++w<_;);y._next=E||null}}return(o=new Dn(o,t))._enter=a,o._exit=l,o},enter:function Jie(){return new Dn(this._enter||this._groups.map(y2),this._parents)},exit:function one(){return new Dn(this._exit||this._groups.map(y2),this._parents)},join:function ane(e,i,n){var t=this.enter(),r=this,s=this.exit();return"function"==typeof e?(t=e(t))&&(t=t.selection()):t=t.append(e+""),null!=i&&(r=i(r))&&(r=r.selection()),null==n?s.remove():n(s),t&&r?t.merge(r).order():r},merge:function lne(e){for(var i=e.selection?e.selection():e,n=this._groups,t=i._groups,r=n.length,o=Math.min(r,t.length),a=new Array(r),l=0;l=0;)(o=t[r])&&(s&&4^o.compareDocumentPosition(s)&&s.parentNode.insertBefore(o,s),s=o);return this},sort:function dne(e){function i(u,h){return u&&h?e(u.__data__,h.__data__):!u-!h}e||(e=une);for(var n=this._groups,t=n.length,r=new Array(t),s=0;s1?this.each((null==i?Dne:"function"==typeof i?Ene:Sne)(e,i,n??"")):ic(this.node(),e)},property:function Rne(e,i){return arguments.length>1?this.each((null==i?Tne:"function"==typeof i?Ane:Ine)(e,i)):this.node()[e]},classed:function Pne(e,i){var n=k2(e+"");if(arguments.length<2){for(var t=Bx(this.node()),r=-1,s=n.length;++r=0&&(n=i.slice(t+1),i=i.slice(0,t)),{type:i,name:n}})}(e+""),s=t.length;if(!(arguments.length<2)){for(a=i?cre:lre,r=0;r{}};function A2(){for(var t,e=0,i=arguments.length,n={};e=0&&(t=n.slice(r+1),n=n.slice(0,r)),n&&!i.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:t}})}(e+"",n),s=-1,o=t.length;if(!(arguments.length<2)){if(null!=i&&"function"!=typeof i)throw new Error("invalid callback: "+i);for(;++s0)for(var r,s,n=new Array(r),t=0;t=0&&e._call.call(void 0,i),e=e._next;--nc}()}finally{nc=0,function xre(){for(var e,n,i=gg,t=1/0;i;)i._call?(t>i._time&&(t=i._time),e=i,i=i._next):(n=i._next,i._next=null,i=e?e._next=n:gg=n);Ju=e,zx(t)}(),ca=0}}function wre(){var e=eh.now(),i=e-_g;i>O2&&(bg-=i,_g=e)}function zx(e){nc||(Zu&&(Zu=clearTimeout(Zu)),e-ca>24?(e<1/0&&(Zu=setTimeout(N2,e-eh.now()-bg)),Qu&&(Qu=clearInterval(Qu))):(Qu||(_g=eh.now(),Qu=setInterval(wre,O2)),nc=1,F2(N2)))}function P2(e,i,n){var t=new vg;return t.restart(r=>{t.stop(),e(r+i)},i=null==i?0:+i,n),t}vg.prototype=jx.prototype={constructor:vg,restart:function(e,i,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Vx():+n)+(null==i?0:+i),!this._next&&Ju!==this&&(Ju?Ju._next=this:gg=this,Ju=this),this._call=e,this._time=n,zx()},stop:function(){this._call&&(this._call=null,this._time=1/0,zx())}};var kre=pg("start","end","cancel","interrupt"),Cre=[],L2=0,Hx=2,yg=3,$x=5,wg=6;function xg(e,i,n,t,r,s){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function Dre(e,i,n){var r,t=e.__transition;function o(c){var d,u,h,f;if(1!==n.state)return l();for(d in t)if((f=t[d]).name===n.name){if(f.state===yg)return P2(o);4===f.state?(f.state=wg,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete t[d]):+dL2)throw new Error("too late; already scheduled");return n}function Gr(e,i){var n=ur(e,i);if(n.state>yg)throw new Error("too late; already running");return n}function ur(e,i){var n=e.__transition;if(!n||!(n=n[i]))throw new Error("transition not found");return n}function kg(e,i){var t,r,o,n=e.__transition,s=!0;if(n){for(o in i=null==i?null:i+"",n)(t=n[o]).name===i?(r=t.state>Hx&&t.state<$x,t.state=wg,t.timer.stop(),t.on.call(r?"interrupt":"cancel",e,e.__data__,t.index,t.group),delete n[o]):s=!1;s&&delete e.__transition}}function lo(e,i){return e=+e,i=+i,function(n){return e*(1-n)+i*n}}var Cg,j2=180/Math.PI,Gx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function z2(e,i,n,t,r,s){var o,a,l;return(o=Math.sqrt(e*e+i*i))&&(e/=o,i/=o),(l=e*n+i*t)&&(n-=e*l,t-=i*l),(a=Math.sqrt(n*n+t*t))&&(n/=a,t/=a,l/=a),e*t180?d+=360:d-c>180&&(c+=360),h.push({i:u.push(r(u)+"rotate(",null,t)-2,x:lo(c,d)})):d&&u.push(r(u)+"rotate("+d+t)}(c.rotate,d.rotate,u,h),function a(c,d,u,h){c!==d?h.push({i:u.push(r(u)+"skewX(",null,t)-2,x:lo(c,d)}):d&&u.push(r(u)+"skewX("+d+t)}(c.skewX,d.skewX,u,h),function l(c,d,u,h,f,_){if(c!==u||d!==h){var g=f.push(r(f)+"scale(",null,",",null,")");_.push({i:g-4,x:lo(c,u)},{i:g-2,x:lo(d,h)})}else(1!==u||1!==h)&&f.push(r(f)+"scale("+u+","+h+")")}(c.scaleX,c.scaleY,d.scaleX,d.scaleY,u,h),c=d=null,function(f){for(var m,_=-1,g=h.length;++_>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):8===n?Sg(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):4===n?Sg(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=Nre.exec(e))?new cn(i[1],i[2],i[3],1):(i=Pre.exec(e))?new cn(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=Lre.exec(e))?Sg(i[1],i[2],i[3],i[4]):(i=Bre.exec(e))?Sg(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=Vre.exec(e))?X2(i[1],i[2]/100,i[3]/100,1):(i=jre.exec(e))?X2(i[1],i[2]/100,i[3]/100,i[4]):U2.hasOwnProperty(e)?W2(U2[e]):"transparent"===e?new cn(NaN,NaN,NaN,0):null}function W2(e){return new cn(e>>16&255,e>>8&255,255&e,1)}function Sg(e,i,n,t){return t<=0&&(e=i=n=NaN),new cn(e,i,n,t)}function Eg(e,i,n,t){return 1===arguments.length?function $re(e){return e instanceof th||(e=rh(e)),e?new cn((e=e.rgb()).r,e.g,e.b,e.opacity):new cn}(e):new cn(e,i,n,t??1)}function cn(e,i,n,t){this.r=+e,this.g=+i,this.b=+n,this.opacity=+t}function Y2(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}`}function K2(){const e=Mg(this.opacity);return`${1===e?"rgb(":"rgba("}${da(this.r)}, ${da(this.g)}, ${da(this.b)}${1===e?")":`, ${e})`}`}function Mg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function da(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ua(e){return((e=da(e))<16?"0":"")+e.toString(16)}function X2(e,i,n,t){return t<=0?e=i=n=NaN:n<=0||n>=1?e=i=NaN:i<=0&&(e=NaN),new hr(e,i,n,t)}function Z2(e){if(e instanceof hr)return new hr(e.h,e.s,e.l,e.opacity);if(e instanceof th||(e=rh(e)),!e)return new hr;if(e instanceof hr)return e;var i=(e=e.rgb()).r/255,n=e.g/255,t=e.b/255,r=Math.min(i,n,t),s=Math.max(i,n,t),o=NaN,a=s-r,l=(s+r)/2;return a?(o=i===s?(n-t)/a+6*(n0&&l<1?0:o,new hr(o,a,l,e.opacity)}function hr(e,i,n,t){this.h=+e,this.s=+i,this.l=+n,this.opacity=+t}function Q2(e){return(e=(e||0)%360)<0?e+360:e}function Tg(e){return Math.max(0,Math.min(1,e||0))}function Yx(e,i,n){return 255*(e<60?i+(n-i)*e/60:e<180?n:e<240?i+(n-i)*(240-e)/60:i)}function J2(e,i,n,t,r){var s=e*e,o=s*e;return((1-3*e+3*s-o)*i+(4-6*s+3*o)*n+(1+3*e+3*s-3*o)*t+o*r)/6}Wx(th,rh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:G2,formatHex:G2,formatHex8:function zre(){return this.rgb().formatHex8()},formatHsl:function Hre(){return Z2(this).formatHsl()},formatRgb:q2,toString:q2}),Wx(cn,Eg,$2(th,{brighter(e){return e=null==e?Dg:Math.pow(Dg,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(da(this.r),da(this.g),da(this.b),Mg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Y2,formatHex:Y2,formatHex8:function Ure(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}${ua(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:K2,toString:K2})),Wx(hr,function Gre(e,i,n,t){return 1===arguments.length?Z2(e):new hr(e,i,n,t??1)},$2(th,{brighter(e){return e=null==e?Dg:Math.pow(Dg,e),new hr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new hr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),i=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,t=n+(n<.5?n:1-n)*i,r=2*n-t;return new cn(Yx(e>=240?e-240:e+120,r,t),Yx(e,r,t),Yx(e<120?e+240:e-120,r,t),this.opacity)},clamp(){return new hr(Q2(this.h),Tg(this.s),Tg(this.l),Mg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mg(this.opacity);return`${1===e?"hsl(":"hsla("}${Q2(this.h)}, ${100*Tg(this.s)}%, ${100*Tg(this.l)}%${1===e?")":`, ${e})`}`}}));const eL=e=>()=>e;function iL(e,i){var n=i-e;return n?function tL(e,i){return function(n){return e+n*i}}(e,n):eL(isNaN(e)?i:e)}const nL=function e(i){var n=function Kre(e){return 1==(e=+e)?iL:function(i,n){return n-i?function Yre(e,i,n){return e=Math.pow(e,n),i=Math.pow(i,n)-e,n=1/n,function(t){return Math.pow(e+t*i,n)}}(i,n,e):eL(isNaN(i)?n:i)}}(i);function t(r,s){var o=n((r=Eg(r)).r,(s=Eg(s)).r),a=n(r.g,s.g),l=n(r.b,s.b),c=iL(r.opacity,s.opacity);return function(d){return r.r=o(d),r.g=a(d),r.b=l(d),r.opacity=c(d),r+""}}return t.gamma=e,t}(1);function rL(e){return function(i){var o,a,n=i.length,t=new Array(n),r=new Array(n),s=new Array(n);for(o=0;o=1?(n=1,i-1):Math.floor(n*i),r=e[t],s=e[t+1];return J2((n-t/i)*i,t>0?e[t-1]:2*r-s,r,s,tn&&(s=i.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(t=t[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:lo(t,r)})),n=Xx.lastIndex;return n=0&&(i=i.slice(0,n)),!i||"start"===i})}(i)?Ux:Gr;return function(){var o=s(this,e),a=o.on;a!==t&&(r=(t=a).copy()).on(i,n),o.on=r}}(n,e,i))},attr:function sse(e,i){var n=fg(e),t="transform"===n?Ire:sL;return this.attrTween(e,"function"==typeof i?(n.local?rse:nse)(n,t,qx(this,"attr."+e,i)):null==i?(n.local?ese:Jre)(n):(n.local?ise:tse)(n,t,i))},attrTween:function dse(e,i){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==i)return this.tween(n,null);if("function"!=typeof i)throw new Error;var t=fg(e);return this.tween(n,(t.local?lse:cse)(t,i))},style:function Pse(e,i,n){var t="transform"==(e+="")?Tre:sL;return null==i?this.styleTween(e,function Rse(e,i){var n,t,r;return function(){var s=ic(this,e),o=(this.style.removeProperty(e),ic(this,e));return s===o?null:s===n&&o===t?r:r=i(n=s,t=o)}}(e,t)).on("end.style."+e,oL(e)):"function"==typeof i?this.styleTween(e,function Fse(e,i,n){var t,r,s;return function(){var o=ic(this,e),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(e),l=a=ic(this,e)),o===l?null:o===t&&l===r?s:(r=l,s=i(t=o,a))}}(e,t,qx(this,"style."+e,i))).each(function Nse(e,i){var n,t,r,a,s="style."+i,o="end."+s;return function(){var l=Gr(this,e),c=l.on,d=null==l.value[s]?a||(a=oL(i)):void 0;(c!==n||r!==d)&&(t=(n=c).copy()).on(o,r=d),l.on=t}}(this._id,e)):this.styleTween(e,function Ose(e,i,n){var t,s,r=n+"";return function(){var o=ic(this,e);return o===r?null:o===t?s:s=i(t=o,n)}}(e,t,i),n).on("end.style."+e,null)},styleTween:function Vse(e,i,n){var t="style."+(e+="");if(arguments.length<2)return(t=this.tween(t))&&t._value;if(null==i)return this.tween(t,null);if("function"!=typeof i)throw new Error;return this.tween(t,function Bse(e,i,n){var t,r;function s(){var o=i.apply(this,arguments);return o!==r&&(t=(r=o)&&function Lse(e,i,n){return function(t){this.style.setProperty(e,i.call(this,t),n)}}(e,o,n)),t}return s._value=i,s}(e,i,n??""))},text:function Hse(e){return this.tween("text","function"==typeof e?function zse(e){return function(){var i=e(this);this.textContent=i??""}}(qx(this,"text",e)):function jse(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function Gse(e){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function Use(e){var i,n;function t(){var r=e.apply(this,arguments);return r!==n&&(i=(n=r)&&function $se(e){return function(i){this.textContent=e.call(this,i)}}(r)),i}return t._value=e,t}(e))},remove:function Ese(){return this.on("end.remove",function Sse(e){return function(){var i=this.parentNode;for(var n in this.__transition)if(+n!==e)return;i&&i.removeChild(this)}}(this._id))},tween:function Ore(e,i){var n=this._id;if(e+="",arguments.length<2){for(var o,t=ur(this.node(),n).tween,r=0,s=t.length;r()=>e;function ik(e,{sourceEvent:i,subject:n,target:t,identifier:r,active:s,x:o,y:a,dx:l,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function loe(e){return!e.ctrlKey&&!e.button}function coe(){return this.parentNode}function doe(e,i){return i??{x:e.x,y:e.y}}function uoe(){return navigator.maxTouchPoints||"ontouchstart"in this}function gL(e,i,n,t){if(isNaN(i)||isNaN(n))return e;var r,u,h,f,_,g,m,b,v,s=e._root,o={data:t},a=e._x0,l=e._y0,c=e._x1,d=e._y1;if(!s)return e._root=o,e;for(;s.length;)if((g=i>=(u=(a+c)/2))?a=u:c=u,(m=n>=(h=(l+d)/2))?l=h:d=h,r=s,!(s=s[b=m<<1|g]))return r[b]=o,e;if(f=+e._x.call(null,s.data),_=+e._y.call(null,s.data),i===f&&n===_)return o.next=s,r?r[b]=o:e._root=o,e;do{r=r?r[b]=new Array(4):e._root=new Array(4),(g=i>=(u=(a+c)/2))?a=u:c=u,(m=n>=(h=(l+d)/2))?l=h:d=h}while((b=m<<1|g)==(v=(_>=h)<<1|f>=u));return r[v]=s,r[b]=o,e}function Wi(e,i,n,t,r){this.node=e,this.x0=i,this.y0=n,this.x1=t,this.y1=r}function Doe(e){return e[0]}function Eoe(e){return e[1]}function nk(e,i,n){var t=new rk(i??Doe,n??Eoe,NaN,NaN,NaN,NaN);return null==e?t:t.addAll(e)}function rk(e,i,n,t,r,s){this._x=e,this._y=i,this._x0=n,this._y0=t,this._x1=r,this._y1=s,this._root=void 0}function _L(e){for(var i={data:e.data},n=i;e=e.next;)n=n.next={data:e.data};return i}ik.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Yi=nk.prototype=rk.prototype;function Ki(e){return function(){return e}}function co(e){return 1e-6*(e()-.5)}function Toe(e){return e.x+e.vx}function Ioe(e){return e.y+e.vy}function Roe(e){return e.index}function bL(e,i){var n=e.get(i);if(!n)throw new Error("node not found: "+i);return n}Yi.copy=function(){var n,t,e=new rk(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return e;if(!i.length)return e._root=_L(i),e;for(n=[{source:i,target:e._root=new Array(4)}];i=n.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?n.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=_L(t));return e},Yi.add=function foe(e){const i=+this._x.call(null,e),n=+this._y.call(null,e);return gL(this.cover(i,n),i,n,e)},Yi.addAll=function moe(e){var i,n,r,s,t=e.length,o=new Array(t),a=new Array(t),l=1/0,c=1/0,d=-1/0,u=-1/0;for(n=0;nd&&(d=r),su&&(u=s));if(l>d||c>u)return this;for(this.cover(l,c).cover(d,u),n=0;ne||e>=r||t>i||i>=s;)switch(c=(id||(a=_.y0)>u||(l=_.x1)=b)<<1|e>=m)&&(_=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=_)}else{var v=e-+this._x.call(null,f.data),w=i-+this._y.call(null,f.data),y=v*v+w*w;if(y=(h=(o+l)/2))?o=h:l=h,(g=u>=(f=(a+c)/2))?a=f:c=f,i=n,!(n=n[m=g<<1|_]))return this;if(!n.length)break;(i[m+1&3]||i[m+2&3]||i[m+3&3])&&(t=i,b=m)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(s=n.next)&&delete n.next,r?(s?r.next=s:delete r.next,this):i?(s?i[m]=s:delete i[m],(n=i[0]||i[1]||i[2]||i[3])&&n===(i[3]||i[2]||i[1]||i[0])&&!n.length&&(t?t[b]=n:this._root=n),this):(this._root=s,this)},Yi.removeAll=function yoe(e){for(var i=0,n=e.length;i=0))throw new Error(`invalid digits: ${e}`);if(i>15)return wL;const n=10**i;return function(t){this._+=t[0];for(let r=1,s=t.length;rha)if(Math.abs(u*l-c*d)>ha&&s){let f=t-o,_=r-a,g=l*l+c*c,m=f*f+_*_,b=Math.sqrt(g),v=Math.sqrt(h),w=s*Math.tan((sk-Math.acos((g+h-m)/(2*b*v)))/2),y=w/v,E=w/b;Math.abs(y-1)>ha&&this._append`L${i+y*d},${n+y*u}`,this._append`A${s},${s},0,0,${+(u*f>d*_)},${this._x1=i+E*l},${this._y1=n+E*c}`}else this._append`L${this._x1=i},${this._y1=n}`}arc(i,n,t,r,s,o){if(i=+i,n=+n,o=!!o,(t=+t)<0)throw new Error(`negative radius: ${t}`);let a=t*Math.cos(r),l=t*Math.sin(r),c=i+a,d=n+l,u=1^o,h=o?r-s:s-r;null===this._x1?this._append`M${c},${d}`:(Math.abs(this._x1-c)>ha||Math.abs(this._y1-d)>ha)&&this._append`L${c},${d}`,t&&(h<0&&(h=h%ok+ok),h>Yoe?this._append`A${t},${t},0,1,${u},${i-a},${n-l}A${t},${t},0,1,${u},${this._x1=c},${this._y1=d}`:h>ha&&this._append`A${t},${t},0,${+(h>=sk)},${u},${this._x1=i+t*Math.cos(s)},${this._y1=n+t*Math.sin(s)}`)}rect(i,n,t,r){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+n}h${t=+t}v${+r}h${-t}Z`}toString(){return this._}}function Qoe(e){return e[0]}function Joe(e){return e[1]}function xL(e){return((e=Math.exp(e))+1/e)/2}const rae=function e(i,n,t){function r(s,o){var m,b,a=s[0],l=s[1],c=s[2],h=o[2],f=o[0]-a,_=o[1]-l,g=f*f+_*_;if(g<1e-12)b=Math.log(h/c)/i,m=function(B){return[a+B*f,l+B*_,c*Math.exp(i*B*b)]};else{var v=Math.sqrt(g),w=(h*h-c*c+t*g)/(2*c*n*v),y=(h*h-c*c-t*g)/(2*h*n*v),E=Math.log(Math.sqrt(w*w+1)-w),T=Math.log(Math.sqrt(y*y+1)-y);b=(T-E)/i,m=function(B){var z=B*b,oe=xL(E),te=c/(n*v)*(oe*function nae(e){return((e=Math.exp(2*e))-1)/(e+1)}(i*z+E)-function iae(e){return((e=Math.exp(e))-1/e)/2}(E));return[a+te*f,l+te*_,c*oe/xL(i*z+E)]}}return m.duration=1e3*b*i/Math.SQRT2,m}return r.rho=function(s){var o=Math.max(.001,+s),a=o*o;return e(o,a,a*a)},r}(Math.SQRT2,2,4),Fg=e=>()=>e;function sae(e,{sourceEvent:i,target:n,transform:t,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:t,enumerable:!0,configurable:!0},_:{value:r}})}function ws(e,i,n){this.k=e,this.x=i,this.y=n}ws.prototype={constructor:ws,scale:function(e){return 1===e?this:new ws(this.k*e,this.x,this.y)},translate:function(e,i){return 0===e&0===i?this:new ws(this.k,this.x+this.k*e,this.y+this.k*i)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ak=new ws(1,0,0);function lk(e){e.stopImmediatePropagation()}function ah(e){e.preventDefault(),e.stopImmediatePropagation()}function aae(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function lae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function kL(){return this.__zoom||ak}function cae(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function dae(){return navigator.maxTouchPoints||"ontouchstart"in this}function uae(e,i,n){var t=e.invertX(i[0][0])-n[0][0],r=e.invertX(i[1][0])-n[1][0],s=e.invertY(i[0][1])-n[0][1],o=e.invertY(i[1][1])-n[1][1];return e.translate(r>t?(t+r)/2:Math.min(0,t)||Math.max(0,r),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function fae(e,i){}const mae={bottomSheetState:Si("state",[gt("void, hidden",Ee({transform:"translateY(100%)"})),gt("visible",Ee({transform:"translateY(0%)"})),_t("visible => void, visible => hidden",Xp([St(`${rx.COMPLEX} ${nx.ACCELERATION_CURVE}`),sa("@*",ra(),{optional:!0})])),_t("void => visible",Xp([St(`${rx.EXITING} ${nx.DECELERATION_CURVE}`),sa("@*",ra(),{optional:!0})]))])};let pae=(()=>{var e;class i extends Jw{constructor(t,r,s,o,a,l,c,d,u,h){super(t,r,s,o,a,l,c,h),this._changeDetectorRef=u,this._animationState="void",this._animationStateChanged=new W,this._breakpointSubscription=d.observe([io_Medium,io_Large,"(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",d.isMatched(io_Medium)),this._toggleClass("mat-bottom-sheet-container-large",d.isMatched(io_Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",d.isMatched("(min-width: 1920px)"))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(t){"visible"===t.toState&&this._trapFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_captureInitialFocus(){}_toggleClass(t,r){this._elementRef.nativeElement.classList.toggle(t,r)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xe,8),p(Fu),p(Gl),p(ce),p(Ql),p(Mu),p(st),p(xn))},e.\u0275cmp=ie({type:e,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(t,r){1&t&&pl("@state.start",function(o){return r._onAnimationStart(o)})("@state.done",function(o){return r._onAnimationDone(o)}),2&t&&(_e("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-label",r._config.ariaLabel),_l("@state",r._animationState))},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Z(0,fae,0,0,"ng-template",0)},dependencies:[Xl],styles:[".mat-bottom-sheet-container{--mat-bottom-sheet-container-shape:4px;box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[mae.bottomSheetState]}}),i})(),ck=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[zN,Fe,Zl,Fe]}),i})();const CL=new M("MatBottomSheetData");class gae{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}}class dk{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(i,n,t){this._ref=i,this._afterOpened=new $,this.containerInstance=t,this.disableClose=n.disableClose,t._animationStateChanged.pipe($e(r=>"done"===r.phaseName&&"visible"===r.toState),ze(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe($e(r=>"done"===r.phaseName&&"hidden"===r.toState),ze(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),i.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),Ft(this.backdropClick(),this.keydownEvents().pipe($e(r=>27===r.keyCode))).subscribe(r=>{!this.disableClose&&("keydown"!==r.type||!qi(r))&&(r.preventDefault(),this.dismiss())})}dismiss(i){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe($e(n=>"start"===n.phaseName),ze(1)).subscribe(n=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},n.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=i,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}}const _ae=new M("mat-bottom-sheet-default-options");let DL=(()=>{var e;class i{get _openedBottomSheetRef(){const t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t}constructor(t,r,s,o){this._overlay=t,this._parentBottomSheet=s,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=r.get(tx)}open(t,r){const s={...this._defaultOptions||new gae,...r};let o;return this._dialog.open(t,{...s,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:pae,scrollStrategy:s.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:o}),providers:(a,l,c)=>(o=new dk(a,s,c),[{provide:dk,useValue:o},{provide:CL,useValue:s.data}])}),o.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===o&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>o.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):o.containerInstance.enter(),this._openedBottomSheetRef=o,o}dismiss(t){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(t)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ln),x(kt),x(e,12),x(_ae,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:ck}),i})();const uk=Symbol.for("yaml.alias"),hk=Symbol.for("yaml.document"),uo=Symbol.for("yaml.map"),SL=Symbol.for("yaml.pair"),xs=Symbol.for("yaml.scalar"),cc=Symbol.for("yaml.seq"),Hn=Symbol.for("yaml.node.type"),dc=e=>!!e&&"object"==typeof e&&e[Hn]===uk,lh=e=>!!e&&"object"==typeof e&&e[Hn]===hk,ch=e=>!!e&&"object"==typeof e&&e[Hn]===uo,Lt=e=>!!e&&"object"==typeof e&&e[Hn]===SL,Mt=e=>!!e&&"object"==typeof e&&e[Hn]===xs,dh=e=>!!e&&"object"==typeof e&&e[Hn]===cc;function Ut(e){if(e&&"object"==typeof e)switch(e[Hn]){case uo:case cc:return!0}return!1}function ri(e){if(e&&"object"==typeof e)switch(e[Hn]){case uk:case uo:case xs:case cc:return!0}return!1}const bae=e=>(Mt(e)||Ut(e))&&!!e.anchor,dn=Symbol("break visit"),EL=Symbol("skip children"),Wr=Symbol("remove node");function fa(e,i){const n=ML(i);lh(e)?uc(null,e.contents,n,Object.freeze([e]))===Wr&&(e.contents=null):uc(null,e,n,Object.freeze([]))}function uc(e,i,n,t){const r=TL(e,i,n,t);if(ri(r)||Lt(r))return IL(e,t,r),uc(e,r,n,t);if("symbol"!=typeof r)if(Ut(i)){t=Object.freeze(t.concat(i));for(let s=0;se.replace(/[!,[\]{}]/g,i=>vae[i]);let Ng=(()=>{class e{constructor(n,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,n),this.tags=Object.assign({},e.defaultTags,t)}clone(){const n=new e(this.yaml,this.tags);return n.docStart=this.docStart,n}atDocument(){const n=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags)}return n}add(n,t){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);const r=n.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[o,a]=r;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[o]=r;return"1.1"===o||"1.2"===o?(this.yaml.version=o,!0):(t(6,`Unsupported YAML version ${o}`,/^\d+\.\d+$/.test(o)),!1)}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(n,t){if("!"===n)return"!";if("!"!==n[0])return t(`Not a valid tag: ${n}`),null;if("<"===n[1]){const a=n.slice(2,-1);return"!"===a||"!!"===a?(t(`Verbatim tags aren't resolved, so ${n} is invalid.`),null):(">"!==n[n.length-1]&&t("Verbatim tags must end with a >"),a)}const[,r,s]=n.match(/^(.*!)([^!]*)$/);s||t(`The ${n} tag has no suffix`);const o=this.tags[r];return o?o+decodeURIComponent(s):"!"===r?n:(t(`Could not resolve tag: ${n}`),null)}tagString(n){for(const[t,r]of Object.entries(this.tags))if(n.startsWith(r))return t+yae(n.substring(r.length));return"!"===n[0]?n:`!<${n}>`}toString(n){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(n&&r.length>0&&ri(n.contents)){const o={};fa(n.contents,(a,l)=>{ri(l)&&l.tag&&(o[l.tag]=!0)}),s=Object.keys(o)}else s=[];for(const[o,a]of r)"!!"===o&&"tag:yaml.org,2002:"===a||(!n||s.some(l=>l.startsWith(a)))&&t.push(`%TAG ${o} ${a}`);return t.join("\n")}}return e.defaultYaml={explicit:!1,version:"1.2"},e.defaultTags={"!!":"tag:yaml.org,2002:"},e})();function AL(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function RL(e){const i=new Set;return fa(e,{Value(n,t){t.anchor&&i.add(t.anchor)}}),i}function OL(e,i){for(let n=1;;++n){const t=`${e}${n}`;if(!i.has(t))return t}}function fc(e,i,n,t){if(t&&"object"==typeof t)if(Array.isArray(t))for(let r=0,s=t.length;r$n(t,String(r),n));if(e&&"function"==typeof e.toJSON){if(!n||!bae(e))return e.toJSON(i,n);const t={aliasCount:0,count:1,res:void 0};n.anchors.set(e,t),n.onCreate=s=>{t.res=s,delete n.onCreate};const r=e.toJSON(i,n);return n.onCreate&&n.onCreate(r),r}return"bigint"!=typeof e||n?.keep?e:Number(e)}class gk{constructor(i){Object.defineProperty(this,Hn,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(i.range=this.range.slice()),i}toJS(i,{mapAsMap:n,maxAliasCount:t,onAnchor:r,reviver:s}={}){if(!lh(i))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:i,keep:!0,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof t?t:100},a=$n(this,"",o);if("function"==typeof r)for(const{count:l,res:c}of o.anchors.values())r(c,l);return"function"==typeof s?fc(s,{"":a},"",a):a}}class _k extends gk{constructor(i){super(uk),this.source=i,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i){let n;return fa(i,{Node:(t,r)=>{if(r===this)return fa.BREAK;r.anchor===this.source&&(n=r)}}),n}toJSON(i,n){if(!n)return{source:this.source};const{anchors:t,doc:r,maxAliasCount:s}=n,o=this.resolve(r);if(!o)throw new ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let a=t.get(o);if(a||($n(o,null,n),a=t.get(o)),!a||void 0===a.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(s>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=Pg(r,o,t)),a.count*a.aliasCount>s))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(i,n,t){const r=`*${this.source}`;if(i){if(AL(this.source),i.options.verifyAliasOrder&&!i.anchors.has(this.source))throw new Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(i.implicitKey)return`${r} `}return r}}function Pg(e,i,n){if(dc(i)){const t=i.resolve(e),r=n&&t&&n.get(t);return r?r.count*r.aliasCount:0}if(Ut(i)){let t=0;for(const r of i.items){const s=Pg(e,r,n);s>t&&(t=s)}return t}if(Lt(i)){const t=Pg(e,i.key,n),r=Pg(e,i.value,n);return Math.max(t,r)}return 1}const FL=e=>!e||"function"!=typeof e&&"object"!=typeof e;let Je=(()=>{class e extends gk{constructor(n){super(xs),this.value=n}toJSON(n,t){return t?.keep?this.value:$n(this.value,n,t)}toString(){return String(this.value)}}return e.BLOCK_FOLDED="BLOCK_FOLDED",e.BLOCK_LITERAL="BLOCK_LITERAL",e.PLAIN="PLAIN",e.QUOTE_DOUBLE="QUOTE_DOUBLE",e.QUOTE_SINGLE="QUOTE_SINGLE",e})();const xae="tag:yaml.org,2002:";function uh(e,i,n){if(lh(e)&&(e=e.contents),ri(e))return e;if(Lt(e)){const u=n.schema[uo].createNode?.(n.schema,null,n);return u.items.push(e),u}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:t,onAnchor:r,onTagObj:s,schema:o,sourceObjects:a}=n;let l;if(t&&e&&"object"==typeof e){if(l=a.get(e),l)return l.anchor||(l.anchor=r(e)),new _k(l.anchor);l={anchor:null,node:null},a.set(e,l)}i?.startsWith("!!")&&(i=xae+i.slice(2));let c=function kae(e,i,n){if(i){const t=n.filter(s=>s.tag===i),r=t.find(s=>!s.format)??t[0];if(!r)throw new Error(`Tag ${i} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,i,o.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const u=new Je(e);return l&&(l.node=u),u}c=e instanceof Map?o[uo]:Symbol.iterator in Object(e)?o[cc]:o[uo]}s&&(s(c),delete n.onTagObj);const d=c?.createNode?c.createNode(n.schema,e,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,e,n):new Je(e);return i?d.tag=i:c.default||(d.tag=c.tag),l&&(l.node=d),d}function Lg(e,i,n){let t=n;for(let r=i.length-1;r>=0;--r){const s=i[r];if("number"==typeof s&&Number.isInteger(s)&&s>=0){const o=[];o[s]=t,t=o}else t=new Map([[s,t]])}return uh(t,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const hh=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;let bk=(()=>{class e extends gk{constructor(n,t){super(n),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(n){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return n&&(t.schema=n),t.items=t.items.map(r=>ri(r)||Lt(r)?r.clone(n):r),this.range&&(t.range=this.range.slice()),t}addIn(n,t){if(hh(n))this.add(t);else{const[r,...s]=n,o=this.get(r,!0);if(Ut(o))o.addIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,Lg(this.schema,s,t))}}}deleteIn(n){const[t,...r]=n;if(0===r.length)return this.delete(t);const s=this.get(t,!0);if(Ut(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(n,t){const[r,...s]=n,o=this.get(r,!0);return 0===s.length?!t&&Mt(o)?o.value:o:Ut(o)?o.getIn(s,t):void 0}hasAllNullValues(n){return this.items.every(t=>{if(!Lt(t))return!1;const r=t.value;return null==r||n&&Mt(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(n){const[t,...r]=n;if(0===r.length)return this.has(t);const s=this.get(t,!0);return!!Ut(s)&&s.hasIn(r)}setIn(n,t){const[r,...s]=n;if(0===s.length)this.set(r,t);else{const o=this.get(r,!0);if(Ut(o))o.setIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);this.set(r,Lg(this.schema,s,t))}}}}return e.maxFlowStringSingleLineLength=60,e})();const Cae=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ks(e,i){return/^\n+$/.test(e)?e.substring(1):i?e.replace(/^(?! *$)/gm,i):e}const ho=(e,i,n)=>e.endsWith("\n")?ks(n,i):n.includes("\n")?"\n"+ks(n,i):(e.endsWith(" ")?"":" ")+n,NL="flow",vk="block",Bg="quoted";function Vg(e,i,n="flow",{indentAtStart:t,lineWidth:r=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!r||r<0)return e;const l=Math.max(1+s,1+r-i.length);if(e.length<=l)return e;const c=[],d={};let u=r-i.length;"number"==typeof t&&(t>r-Math.max(2,s)?c.push(0):u=r-t);let h,f,_=!1,g=-1,m=-1,b=-1;n===vk&&(g=PL(e,g),-1!==g&&(u=g+l));for(let w;w=e[g+=1];){if(n===Bg&&"\\"===w){switch(m=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===w)n===vk&&(g=PL(e,g)),u=g+l,h=void 0;else{if(" "===w&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const y=e[g+1];y&&" "!==y&&"\n"!==y&&"\t"!==y&&(h=g)}if(g>=u)if(h)c.push(h),u=h+l,h=void 0;else if(n===Bg){for(;" "===f||"\t"===f;)f=w,w=e[g+=1],_=!0;const y=g>b+1?g-2:m-1;if(d[y])return e;c.push(y),d[y]=!0,u=y+l,h=void 0}else _=!0}f=w}if(_&&a&&a(),0===c.length)return e;o&&o();let v=e.slice(0,c[0]);for(let w=0;w({indentAtStart:i?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),zg=e=>/^(%|---|\.\.\.)/m.test(e);function fh(e,i){const n=JSON.stringify(e);if(i.options.doubleQuotedAsJSON)return n;const{implicitKey:t}=i,r=i.options.doubleQuotedMinMultiLineLength,s=i.indent||(zg(e)?" ":"");let o="",a=0;for(let l=0,c=n[l];c;c=n[++l])if(" "===c&&"\\"===n[l+1]&&"n"===n[l+2]&&(o+=n.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),"\\"===c)switch(n[l+1]){case"u":{o+=n.slice(a,l);const d=n.substr(l+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===d.substr(0,2)?o+="\\x"+d.substr(2):o+=n.substr(l,6)}l+=5,a=l+1}break;case"n":if(t||'"'===n[l+2]||n.lengtht)return!0;if(o=s+1,r-o<=t)return!1}return!0}(n,l,c.length));if(!n)return d?"|\n":">\n";let u,h;for(h=n.length;h>0;--h){const T=n[h-1];if("\n"!==T&&"\t"!==T&&" "!==T)break}let f=n.substring(h);const _=f.indexOf("\n");-1===_?u="-":n===f||_!==f.length-1?(u="+",s&&s()):u="",f&&(n=n.slice(0,-f.length),"\n"===f[f.length-1]&&(f=f.slice(0,-1)),f=f.replace(wk,`$&${c}`));let m,g=!1,b=-1;for(m=0;m")+(g?c?"2":"1":"")+u;return e&&(y+=" "+a(e.replace(/ ?[\r\n]+/g," ")),r&&r()),d?`${y}\n${c}${v}${n=n.replace(/\n+/g,`$&${c}`)}${f}`:`${y}\n${c}${Vg(`${v}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${f}`,c,vk,jg(t,!0))}`}function xk(e,i,n,t){const{implicitKey:r,inFlow:s}=i,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Je.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Je.QUOTE_DOUBLE);const l=d=>{switch(d){case Je.BLOCK_FOLDED:case Je.BLOCK_LITERAL:return r||s?mc(o.value,i):Hg(o,i,n,t);case Je.QUOTE_DOUBLE:return fh(o.value,i);case Je.QUOTE_SINGLE:return yk(o.value,i);case Je.PLAIN:return function Sae(e,i,n,t){const{type:r,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:d}=i;if(a&&/[\n[\]{},]/.test(s)||d&&/[[\]{},]/.test(s))return mc(s,i);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||d||!s.includes("\n")?mc(s,i):Hg(e,i,n,t);if(!a&&!d&&r!==Je.PLAIN&&s.includes("\n"))return Hg(e,i,n,t);if(zg(s)){if(""===l)return i.forceBlockIndent=!0,Hg(e,i,n,t);if(a&&l===c)return mc(s,i)}const u=s.replace(/\n+/g,`$&\n${l}`);if(o){const h=g=>g.default&&"tag:yaml.org,2002:str"!==g.tag&&g.test?.test(u),{compat:f,tags:_}=i.doc.schema;if(_.some(h)||f?.some(h))return mc(s,i)}return a?u:Vg(u,l,NL,jg(i,!1))}(o,i,n,t);default:return null}};let c=l(a);if(null===c){const{defaultKeyType:d,defaultStringType:u}=i.options,h=r&&d||u;if(c=l(h),null===c)throw new Error(`Unsupported default string type ${h}`)}return c}function LL(e,i){const n=Object.assign({blockQuote:!0,commentString:Cae,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,i);let t;switch(n.collectionStyle){case"block":t=!1;break;case"flow":t=!0;break;default:t=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:t,options:n}}function pc(e,i,n,t){if(Lt(e))return e.toString(i,n,t);if(dc(e)){if(i.doc.directives)return e.toString(i);if(i.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");i.resolvedAliases?i.resolvedAliases.add(e):i.resolvedAliases=new Set([e]),e=e.resolve(i.doc)}let r;const s=ri(e)?e:i.doc.createNode(e,{onTagObj:l=>r=l});r||(r=function Eae(e,i){if(i.tag){const r=e.filter(s=>s.tag===i.tag);if(r.length>0)return r.find(s=>s.format===i.format)??r[0]}let n,t;if(Mt(i)){t=i.value;const r=e.filter(s=>s.identify?.(t));n=r.find(s=>s.format===i.format)??r.find(s=>!s.format)}else t=i,n=e.find(r=>r.nodeClass&&t instanceof r.nodeClass);if(!n)throw new Error(`Tag not resolved for ${t?.constructor?.name??typeof t} value`);return n}(i.doc.schema.tags,s));const o=function Mae(e,i,{anchors:n,doc:t}){if(!t.directives)return"";const r=[],s=(Mt(e)||Ut(e))&&e.anchor;s&&AL(s)&&(n.add(s),r.push(`&${s}`));const o=e.tag?e.tag:i.default?null:i.tag;return o&&r.push(t.directives.tagString(o)),r.join(" ")}(s,r,i);o.length>0&&(i.indentAtStart=(i.indentAtStart??0)+o.length+1);const a="function"==typeof r.stringify?r.stringify(s,i,n,t):Mt(s)?xk(s,i,n,t):s.toString(i,n,t);return o?Mt(s)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o}\n${i.indent}${a}`:a}function BL(e,i){("debug"===e||"warn"===e)&&(typeof process<"u"&&process.emitWarning?process.emitWarning(i):console.warn(i))}function jL(e,i,{key:n,value:t}){if(e?.doc.schema.merge&&Iae(n))if(t=dc(t)?t.resolve(e.doc):t,dh(t))for(const r of t.items)kk(e,i,r);else if(Array.isArray(t))for(const r of t)kk(e,i,r);else kk(e,i,t);else{const r=$n(n,"",e);if(i instanceof Map)i.set(r,$n(t,r,e));else if(i instanceof Set)i.add(r);else{const s=function Aae(e,i,n){if(null===i)return"";if("object"!=typeof i)return String(i);if(ri(e)&&n&&n.doc){const t=LL(n.doc,{});t.anchors=new Set;for(const s of n.anchors.keys())t.anchors.add(s.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let s=JSON.stringify(r);s.length>40&&(s=s.substring(0,36)+'..."'),BL(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(i)}(n,r,e),o=$n(t,s,e);s in i?Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):i[s]=o}}return i}const Iae=e=>"<<"===e||Mt(e)&&"<<"===e.value&&(!e.type||e.type===Je.PLAIN);function kk(e,i,n){const t=e&&dc(n)?n.resolve(e.doc):n;if(!ch(t))throw new Error("Merge sources must be maps or map aliases");const r=t.toJSON(null,e,Map);for(const[s,o]of r)i instanceof Map?i.has(s)||i.set(s,o):i instanceof Set?i.add(s):Object.prototype.hasOwnProperty.call(i,s)||Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return i}function Ck(e,i,n){const t=uh(e,void 0,n),r=uh(i,void 0,n);return new Xi(t,r)}class Xi{constructor(i,n=null){Object.defineProperty(this,Hn,{value:SL}),this.key=i,this.value=n}clone(i){let{key:n,value:t}=this;return ri(n)&&(n=n.clone(i)),ri(t)&&(t=t.clone(i)),new Xi(n,t)}toJSON(i,n){return jL(n,n?.mapAsMap?new Map:{},this)}toString(i,n,t){return i?.doc?function Tae({key:e,value:i},n,t,r){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:d,simpleKeys:u}}=n;let h=ri(e)&&e.comment||null;if(u){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Ut(e))throw new Error("With simple keys, collection cannot be used as a key value")}let f=!u&&(!e||h&&null==i&&!n.inFlow||Ut(e)||(Mt(e)?e.type===Je.BLOCK_FOLDED||e.type===Je.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!f&&(u||!s),indent:a+l});let b,v,w,_=!1,g=!1,m=pc(e,n,()=>_=!0,()=>g=!0);if(!f&&!n.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(n.inFlow){if(s||null==i)return _&&t&&t(),""===m?"?":f?`? ${m}`:m}else if(s&&!u||null==i&&f)return m=`? ${m}`,h&&!_?m+=ho(m,n.indent,c(h)):g&&r&&r(),m;_&&(h=null),f?(h&&(m+=ho(m,n.indent,c(h))),m=`? ${m}\n${a}:`):(m=`${m}:`,h&&(m+=ho(m,n.indent,c(h)))),ri(i)?(b=!!i.spaceBefore,v=i.commentBefore,w=i.comment):(b=!1,v=null,w=null,i&&"object"==typeof i&&(i=o.createNode(i))),n.implicitKey=!1,!f&&!h&&Mt(i)&&(n.indentAtStart=m.length+1),g=!1,!d&&l.length>=2&&!n.inFlow&&!f&&dh(i)&&!i.flow&&!i.tag&&!i.anchor&&(n.indent=n.indent.substring(2));let y=!1;const E=pc(i,n,()=>y=!0,()=>g=!0);let T=" ";if(h||b||v)T=b?"\n":"",v&&(T+=`\n${ks(c(v),n.indent)}`),""!==E||n.inFlow?T+=`\n${n.indent}`:"\n"===T&&(T="\n\n");else if(!f&&Ut(i)){const B=E[0],z=E.indexOf("\n"),oe=-1!==z;if(oe||!(n.inFlow??i.flow??0===i.items.length)){let ve=!1;if(oe&&("&"===B||"!"===B)){let Ce=E.indexOf(" ");"&"===B&&-1!==Ce&&Cem=null,()=>u=!0);m&&(b+=ho(b,s,c(m))),u&&m&&(u=!1),h.push(t+b)}let f;if(0===h.length)f=r.start+r.end;else{f=h[0];for(let _=1;_w=null);bh||y.includes("\n"))&&(u=!0),f.push(y),h=f.length}let _;const{start:g,end:m}=t;if(0===f.length)_=g+m;else if(u||(u=f.reduce((v,w)=>v+w.length+2,2)>bk.maxFlowStringSingleLineLength),u){_=g;for(const b of f)_+=b?`\n${a}${o}${b}`:"\n";_+=`\n${o}${m}`}else _=`${g}${l}${f.join(" ")}${l}${m}`;return e&&(_+=ho(_,o,c(e)),s&&s()),_}function $g({indent:e,options:{commentString:i}},n,t,r){if(t&&r&&(t=t.replace(/^\n+/,"")),t){const s=ks(i(t),e);n.push(s.trimStart())}}function ma(e,i){const n=Mt(i)?i.value:i;for(const t of e)if(Lt(t)&&(t.key===i||t.key===n||Mt(t.key)&&t.key.value===n))return t}class Un extends bk{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(uo,i),this.items=[]}static from(i,n,t){const{keepUndefined:r,replacer:s}=t,o=new this(i),a=(l,c)=>{if("function"==typeof s)c=s.call(n,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(void 0!==c||r)&&o.items.push(Ck(l,c,t))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&"object"==typeof n)for(const l of Object.keys(n))a(l,n[l]);return"function"==typeof i.sortMapEntries&&o.items.sort(i.sortMapEntries),o}add(i,n){let t;t=Lt(i)?i:i&&"object"==typeof i&&"key"in i?new Xi(i.key,i.value):new Xi(i,i?.value);const r=ma(this.items,t.key),s=this.schema?.sortMapEntries;if(r){if(!n)throw new Error(`Key ${t.key} already set`);Mt(r.value)&&FL(t.value)?r.value.value=t.value:r.value=t.value}else if(s){const o=this.items.findIndex(a=>s(t,a)<0);-1===o?this.items.push(t):this.items.splice(o,0,t)}else this.items.push(t)}delete(i){const n=ma(this.items,i);return!!n&&this.items.splice(this.items.indexOf(n),1).length>0}get(i,n){const r=ma(this.items,i)?.value;return(!n&&Mt(r)?r.value:r)??void 0}has(i){return!!ma(this.items,i)}set(i,n){this.add(new Xi(i,n),!0)}toJSON(i,n,t){const r=t?new t:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(r);for(const s of this.items)jL(n,r,s);return r}toString(i,n,t){if(!i)return JSON.stringify(this);for(const r of this.items)if(!Lt(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!i.allNullValues&&this.hasAllNullValues(!1)&&(i=Object.assign({},i,{allNullValues:!0})),zL(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:t,onComment:n})}}const gc={collection:"map",default:!0,nodeClass:Un,tag:"tag:yaml.org,2002:map",resolve:(e,i)=>(ch(e)||i("Expected a mapping for this tag"),e),createNode:(e,i,n)=>Un.from(e,i,n)};class pa extends bk{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(cc,i),this.items=[]}add(i){this.items.push(i)}delete(i){const n=Ug(i);return"number"==typeof n&&this.items.splice(n,1).length>0}get(i,n){const t=Ug(i);if("number"!=typeof t)return;const r=this.items[t];return!n&&Mt(r)?r.value:r}has(i){const n=Ug(i);return"number"==typeof n&&n=0?i:null}const _c={collection:"seq",default:!0,nodeClass:pa,tag:"tag:yaml.org,2002:seq",resolve:(e,i)=>(dh(e)||i("Expected a sequence for this tag"),e),createNode:(e,i,n)=>pa.from(e,i,n)},Gg={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,i,n,t)=>xk(e,i=Object.assign({actualString:!0},i),n,t)},qg={identify:e=>null==e,createNode:()=>new Je(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Je(null),stringify:({source:e},i)=>"string"==typeof e&&qg.test.test(e)?e:i.options.nullStr},Dk={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Je("t"===e[0]||"T"===e[0]),stringify:({source:e,value:i},n)=>e&&Dk.test.test(e)&&i===("t"===e[0]||"T"===e[0])?e:i?n.options.trueStr:n.options.falseStr};function fr({format:e,minFractionDigits:i,tag:n,value:t}){if("bigint"==typeof t)return String(t);const r="number"==typeof t?t:Number(t);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(t);if(!e&&i&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=i-(s.length-o-1);for(;a-- >0;)s+="0"}return s}const HL={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:fr},$L={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const i=Number(e.value);return isFinite(i)?i.toExponential():fr(e)}},UL={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const i=new Je(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(i.minFractionDigits=e.length-n-1),i},stringify:fr},Wg=e=>"bigint"==typeof e||Number.isInteger(e),Sk=(e,i,n,{intAsBigInt:t})=>t?BigInt(e):parseInt(e.substring(i),n);function GL(e,i,n){const{value:t}=e;return Wg(t)&&t>=0?n+t.toString(i):fr(e)}const qL={identify:e=>Wg(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,i,n)=>Sk(e,2,8,n),stringify:e=>GL(e,8,"0o")},WL={identify:Wg,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,i,n)=>Sk(e,0,10,n),stringify:fr},YL={identify:e=>Wg(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,i,n)=>Sk(e,2,16,n),stringify:e=>GL(e,16,"0x")},Fae=[gc,_c,Gg,qg,Dk,qL,WL,YL,HL,$L,UL];function KL(e){return"bigint"==typeof e||Number.isInteger(e)}const Yg=({value:e})=>JSON.stringify(e),Nae=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Yg},{identify:e=>null==e,createNode:()=>new Je(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Yg},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Yg},{identify:KL,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,i,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>KL(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Yg}],Pae={default:!0,tag:"",test:/^/,resolve:(e,i)=>(i(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},Lae=[gc,_c].concat(Nae,Pae),Ek={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,i){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const n=atob(e.replace(/[\n\r]/g,"")),t=new Uint8Array(n.length);for(let r=0;r1&&i("Each pair must have its own sequence indicator");const r=t.items[0]||new Xi(new Je(null));if(t.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${t.commentBefore}\n${r.key.commentBefore}`:t.commentBefore),t.comment){const s=r.value??r.key;s.comment=s.comment?`${t.comment}\n${s.comment}`:t.comment}t=r}e.items[n]=Lt(t)?t:new Xi(t)}}else i("Expected a sequence for this tag");return e}function ZL(e,i,n){const{replacer:t}=n,r=new pa(e);r.tag="tag:yaml.org,2002:pairs";let s=0;if(i&&Symbol.iterator in Object(i))for(let o of i){let a,l;if("function"==typeof t&&(o=t.call(i,String(s++),o)),Array.isArray(o)){if(2!==o.length)throw new TypeError(`Expected [key, value] tuple: ${o}`);a=o[0],l=o[1]}else if(o&&o instanceof Object){const c=Object.keys(o);if(1!==c.length)throw new TypeError(`Expected { key: value } tuple: ${o}`);a=c[0],l=o[a]}else a=o;r.items.push(Ck(a,l,n))}return r}const Mk={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:XL,createNode:ZL};let Tk=(()=>{class e extends pa{constructor(){super(),this.add=Un.prototype.add.bind(this),this.delete=Un.prototype.delete.bind(this),this.get=Un.prototype.get.bind(this),this.has=Un.prototype.has.bind(this),this.set=Un.prototype.set.bind(this),this.tag=e.tag}toJSON(n,t){if(!t)return super.toJSON(n);const r=new Map;t?.onCreate&&t.onCreate(r);for(const s of this.items){let o,a;if(Lt(s)?(o=$n(s.key,"",t),a=$n(s.value,o,t)):o=$n(s,"",t),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,a)}return r}static from(n,t,r){const s=ZL(n,t,r),o=new this;return o.items=s.items,o}}return e.tag="tag:yaml.org,2002:omap",e})();const Ik={collection:"seq",identify:e=>e instanceof Map,nodeClass:Tk,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,i){const n=XL(e,i),t=[];for(const{key:r}of n.items)Mt(r)&&(t.includes(r.value)?i(`Ordered maps must not include duplicate keys: ${r.value}`):t.push(r.value));return Object.assign(new Tk,n)},createNode:(e,i,n)=>Tk.from(e,i,n)};function QL({value:e,source:i},n){return i&&(e?JL:eB).test.test(i)?i:e?n.options.trueStr:n.options.falseStr}const JL={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Je(!0),stringify:QL},eB={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Je(!1),stringify:QL},Bae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:fr},Vae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const i=Number(e.value);return isFinite(i)?i.toExponential():fr(e)}},jae={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const i=new Je(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const t=e.substring(n+1).replace(/_/g,"");"0"===t[t.length-1]&&(i.minFractionDigits=t.length)}return i},stringify:fr},mh=e=>"bigint"==typeof e||Number.isInteger(e);function Kg(e,i,n,{intAsBigInt:t}){const r=e[0];if(("-"===r||"+"===r)&&(i+=1),e=e.substring(i).replace(/_/g,""),t){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const o=BigInt(e);return"-"===r?BigInt(-1)*o:o}const s=parseInt(e,n);return"-"===r?-1*s:s}function Ak(e,i,n){const{value:t}=e;if(mh(t)){const r=t.toString(i);return t<0?"-"+n+r.substr(1):n+r}return fr(e)}const zae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,i,n)=>Kg(e,2,2,n),stringify:e=>Ak(e,2,"0b")},Hae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,i,n)=>Kg(e,1,8,n),stringify:e=>Ak(e,8,"0")},$ae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,i,n)=>Kg(e,0,10,n),stringify:fr},Uae={identify:mh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,i,n)=>Kg(e,2,16,n),stringify:e=>Ak(e,16,"0x")};let Rk=(()=>{class e extends Un{constructor(n){super(n),this.tag=e.tag}add(n){let t;t=Lt(n)?n:new Xi(n&&"object"==typeof n&&"key"in n&&"value"in n&&null===n.value?n.key:n,null),ma(this.items,t.key)||this.items.push(t)}get(n,t){const r=ma(this.items,n);return!t&&Lt(r)?Mt(r.key)?r.key.value:r.key:r}set(n,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const r=ma(this.items,n);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new Xi(n))}toJSON(n,t){return super.toJSON(n,t,Set)}toString(n,t,r){if(!n)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},n,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(n,t,r){const{replacer:s}=r,o=new this(n);if(t&&Symbol.iterator in Object(t))for(let a of t)"function"==typeof s&&(a=s.call(t,a,a)),o.items.push(Ck(a,null,r));return o}}return e.tag="tag:yaml.org,2002:set",e})();const Ok={collection:"map",identify:e=>e instanceof Set,nodeClass:Rk,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,i,n)=>Rk.from(e,i,n),resolve(e,i){if(ch(e)){if(e.hasAllNullValues(!0))return Object.assign(new Rk,e);i("Set items must all have null values")}else i("Expected a mapping for this tag");return e}};function Fk(e,i){const n=e[0],t="-"===n||"+"===n?e.substring(1):e,r=o=>i?BigInt(o):Number(o),s=t.replace(/_/g,"").split(":").reduce((o,a)=>o*r(60)+r(a),r(0));return"-"===n?r(-1)*s:s}function tB(e){let{value:i}=e,n=o=>o;if("bigint"==typeof i)n=o=>BigInt(o);else if(isNaN(i)||!isFinite(i))return fr(e);let t="";i<0&&(t="-",i*=n(-1));const r=n(60),s=[i%r];return i<60?s.unshift(0):(i=(i-s[0])/r,s.unshift(i%r),i>=60&&(i=(i-s[0])/r,s.unshift(i))),t+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const iB={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,i,{intAsBigInt:n})=>Fk(e,n),stringify:tB},nB={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Fk(e,!1),stringify:tB},Xg={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const i=e.match(Xg.test);if(!i)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,t,r,s,o,a]=i.map(Number),l=i[7]?Number((i[7]+"00").substr(1,3)):0;let c=Date.UTC(n,t-1,r,s||0,o||0,a||0,l);const d=i[8];if(d&&"Z"!==d){let u=Fk(d,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},rB=[gc,_c,Gg,qg,JL,eB,zae,Hae,$ae,Uae,Bae,Vae,jae,Ek,Ik,Mk,Ok,iB,nB,Xg],sB=new Map([["core",Fae],["failsafe",[gc,_c,Gg]],["json",Lae],["yaml11",rB],["yaml-1.1",rB]]),oB={binary:Ek,bool:Dk,float:UL,floatExp:$L,floatNaN:HL,floatTime:nB,int:WL,intHex:YL,intOct:qL,intTime:iB,map:gc,null:qg,omap:Ik,pairs:Mk,seq:_c,set:Ok,timestamp:Xg},Gae={"tag:yaml.org,2002:binary":Ek,"tag:yaml.org,2002:omap":Ik,"tag:yaml.org,2002:pairs":Mk,"tag:yaml.org,2002:set":Ok,"tag:yaml.org,2002:timestamp":Xg};function Nk(e,i){let n=sB.get(i);if(!n){if(!Array.isArray(e)){const t=Array.from(sB.keys()).filter(r=>"yaml11"!==r).map(r=>JSON.stringify(r)).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${t} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map(t=>{if("string"!=typeof t)return t;const r=oB[t];if(r)return r;const s=Object.keys(oB).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${t}"; use one of ${s}`)})}const qae=(e,i)=>e.keyi.key?1:0;class Pk{constructor({compat:i,customTags:n,merge:t,resolveKnownTags:r,schema:s,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(i)?Nk(i,"compat"):i?Nk(null,i):null,this.merge=!!t,this.name="string"==typeof s&&s||"core",this.knownTags=r?Gae:{},this.tags=Nk(n,this.name),this.toStringOptions=a??null,Object.defineProperty(this,uo,{value:gc}),Object.defineProperty(this,xs,{value:Gg}),Object.defineProperty(this,cc,{value:_c}),this.sortMapEntries="function"==typeof o?o:!0===o?qae:null}clone(){const i=Object.create(Pk.prototype,Object.getOwnPropertyDescriptors(this));return i.tags=this.tags.slice(),i}}class ph{constructor(i,n,t){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Hn,{value:hk});let r=null;"function"==typeof n||Array.isArray(n)?r=n:void 0===t&&n&&(t=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},t);this.options=s;let{version:o}=s;t?._directives?(this.directives=t._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Ng({version:o}),this.setSchema(o,t),this.contents=void 0===i?null:this.createNode(i,r,t)}clone(){const i=Object.create(ph.prototype,{[Hn]:{value:hk}});return i.commentBefore=this.commentBefore,i.comment=this.comment,i.errors=this.errors.slice(),i.warnings=this.warnings.slice(),i.options=Object.assign({},this.options),this.directives&&(i.directives=this.directives.clone()),i.schema=this.schema.clone(),i.contents=ri(this.contents)?this.contents.clone(i.schema):this.contents,this.range&&(i.range=this.range.slice()),i}add(i){bc(this.contents)&&this.contents.add(i)}addIn(i,n){bc(this.contents)&&this.contents.addIn(i,n)}createAlias(i,n){if(!i.anchor){const t=RL(this);i.anchor=!n||t.has(n)?OL(n||"a",t):n}return new _k(i.anchor)}createNode(i,n,t){let r;if("function"==typeof n)i=n.call({"":i},"",i),r=n;else if(Array.isArray(n)){const b=n.filter(v=>"number"==typeof v||v instanceof String||v instanceof Number).map(String);b.length>0&&(n=n.concat(b)),r=n}else void 0===t&&n&&(t=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:d}=t??{},{onAnchor:u,setAnchors:h,sourceObjects:f}=function wae(e,i){const n=[],t=new Map;let r=null;return{onAnchor:s=>{n.push(s),r||(r=RL(e));const o=OL(i,r);return r.add(o),o},setAnchors:()=>{for(const s of n){const o=t.get(s);if("object"!=typeof o||!o.anchor||!Mt(o.node)&&!Ut(o.node)){const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}o.node.anchor=o.anchor}},sourceObjects:t}}(this,o||"a"),g=uh(i,d,{aliasDuplicateObjects:s??!0,keepUndefined:l??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f});return a&&Ut(g)&&(g.flow=!0),h(),g}createPair(i,n,t={}){const r=this.createNode(i,null,t),s=this.createNode(n,null,t);return new Xi(r,s)}delete(i){return!!bc(this.contents)&&this.contents.delete(i)}deleteIn(i){return hh(i)?null!=this.contents&&(this.contents=null,!0):!!bc(this.contents)&&this.contents.deleteIn(i)}get(i,n){return Ut(this.contents)?this.contents.get(i,n):void 0}getIn(i,n){return hh(i)?!n&&Mt(this.contents)?this.contents.value:this.contents:Ut(this.contents)?this.contents.getIn(i,n):void 0}has(i){return!!Ut(this.contents)&&this.contents.has(i)}hasIn(i){return hh(i)?void 0!==this.contents:!!Ut(this.contents)&&this.contents.hasIn(i)}set(i,n){null==this.contents?this.contents=Lg(this.schema,[i],n):bc(this.contents)&&this.contents.set(i,n)}setIn(i,n){hh(i)?this.contents=n:null==this.contents?this.contents=Lg(this.schema,Array.from(i),n):bc(this.contents)&&this.contents.setIn(i,n)}setSchema(i,n={}){let t;switch("number"==typeof i&&(i=String(i)),i){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Ng({version:"1.1"}),t={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=i:this.directives=new Ng({version:i}),t={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,t=null;break;default:{const r=JSON.stringify(i);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(n.schema instanceof Object)this.schema=n.schema;else{if(!t)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new Pk(Object.assign(t,n))}}toJS({json:i,jsonArg:n,mapAsMap:t,maxAliasCount:r,onAnchor:s,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!i,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},l=$n(this.contents,n??"",a);if("function"==typeof s)for(const{count:c,res:d}of a.anchors.values())s(d,c);return"function"==typeof o?fc(o,{"":l},"",l):l}toJSON(i,n){return this.toJS({json:!0,jsonArg:i,mapAsMap:!1,onAnchor:n})}toString(i={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in i&&(!Number.isInteger(i.indent)||Number(i.indent)<=0)){const n=JSON.stringify(i.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return function Wae(e,i){const n=[];let t=!0===i.directives;if(!1!==i.directives&&e.directives){const l=e.directives.toString(e);l?(n.push(l),t=!0):e.directives.docStart&&(t=!0)}t&&n.push("---");const r=LL(e,i),{commentString:s}=r.options;if(e.commentBefore){1!==n.length&&n.unshift("");const l=s(e.commentBefore);n.unshift(ks(l,""))}let o=!1,a=null;if(e.contents){if(ri(e.contents)){if(e.contents.spaceBefore&&t&&n.push(""),e.contents.commentBefore){const d=s(e.contents.commentBefore);n.push(ks(d,""))}r.forceBlockIndent=!!e.comment,a=e.contents.comment}let c=pc(e.contents,r,()=>a=null,a?void 0:()=>o=!0);a&&(c+=ho(c,"",s(a))),"|"!==c[0]&&">"!==c[0]||"---"!==n[n.length-1]?n.push(c):n[n.length-1]=`--- ${c}`}else n.push(pc(e.contents,r));if(e.directives?.docEnd)if(e.comment){const l=s(e.comment);l.includes("\n")?(n.push("..."),n.push(ks(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(ks(s(l),"")))}return n.join("\n")+"\n"}(this,i)}}function bc(e){if(Ut(e))return!0;throw new Error("Expected a YAML collection as document contents")}class aB extends Error{constructor(i,n,t,r){super(),this.name=i,this.code=t,this.message=r,this.pos=n}}class gh extends aB{constructor(i,n,t){super("YAMLParseError",i,n,t)}}class Yae extends aB{constructor(i,n,t){super("YAMLWarning",i,n,t)}}const lB=(e,i)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(a=>i.linePos(a));const{line:t,col:r}=n.linePos[0];n.message+=` at line ${t}, column ${r}`;let s=r-1,o=e.substring(i.lineStarts[t-1],i.lineStarts[t]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const a=Math.min(s-39,o.length-79);o="\u2026"+o.substring(a),s-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),t>1&&/^ *$/.test(o.substring(0,s))){let a=e.substring(i.lineStarts[t-2],i.lineStarts[t-1]);a.length>80&&(a=a.substring(0,79)+"\u2026\n"),o=a+o}if(/[^ ]/.test(o)){let a=1;const l=n.linePos[1];l&&l.line===t&&l.col>r&&(a=Math.max(1,Math.min(l.col-r,80-s)));const c=" ".repeat(s)+"^".repeat(a);n.message+=`:\n\n${o}\n${c}\n`}};function vc(e,{flow:i,indicator:n,next:t,offset:r,onError:s,startOnNewline:o}){let a=!1,l=o,c=o,d="",u="",h=!1,f=!1,_=!1,g=null,m=null,b=null,v=null,w=null;for(const T of e)switch(_&&("space"!==T.type&&"newline"!==T.type&&"comma"!==T.type&&s(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),_=!1),T.type){case"space":!i&&l&&"doc-start"!==n&&"\t"===T.source[0]&&s(T,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const B=T.source.substring(1)||" ";d?d+=u+B:d=B,u="",l=!1;break}case"newline":l?d?d+=T.source:a=!0:u+=T.source,l=!0,h=!0,(g||m)&&(f=!0),c=!0;break;case"anchor":g&&s(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&s(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=T,null===w&&(w=T.offset),l=!1,c=!1,_=!0;break;case"tag":m&&s(T,"MULTIPLE_TAGS","A node can have at most one tag"),m=T,null===w&&(w=T.offset),l=!1,c=!1,_=!0;break;case n:(g||m)&&s(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),v&&s(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${i??"collection"}`),v=T,l=!1,c=!1;break;case"comma":if(i){b&&s(T,"UNEXPECTED_TOKEN",`Unexpected , in ${i}`),b=T,l=!1,c=!1;break}default:s(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),l=!1,c=!1}const y=e[e.length-1],E=y?y.offset+y.source.length:r;return _&&t&&"space"!==t.type&&"newline"!==t.type&&"comma"!==t.type&&("scalar"!==t.type||""!==t.source)&&s(t.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:b,found:v,spaceBefore:a,comment:d,hasNewline:h,hasNewlineAfterProp:f,anchor:g,tag:m,end:E,start:w??E}}function _h(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const i of e.end)if("newline"===i.type)return!0;return!1;case"flow-collection":for(const i of e.items){for(const n of i.start)if("newline"===n.type)return!0;if(i.sep)for(const n of i.sep)if("newline"===n.type)return!0;if(_h(i.key)||_h(i.value))return!0}return!1;default:return!0}}function Lk(e,i,n){if("flow-collection"===i?.type){const t=i.end[0];t.indent===e&&("]"===t.source||"}"===t.source)&&_h(i)&&n(t,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function cB(e,i,n){const{uniqueKeys:t}=e.options;if(!1===t)return!1;const r="function"==typeof t?t:(s,o)=>s===o||Mt(s)&&Mt(o)&&s.value===o.value&&!("<<"===s.value&&e.schema.merge);return i.some(s=>r(s.key,n))}const dB="All mapping items must start at the same column";function bh(e,i,n,t){let r="";if(e){let s=!1,o="";for(const a of e){const{source:l,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&t(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const d=l.substring(1)||" ";r?r+=o+d:r=d,o="";break}case"newline":r&&(o+=l),s=!0;break;default:t(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}i+=l.length}}return{comment:r,offset:i}}const Bk="Block collections are not allowed within flow collections",Vk=e=>e&&("block-map"===e.type||"block-seq"===e.type);function jk(e,i,n,t,r,s){const o="block-map"===n.type?function Kae({composeNode:e,composeEmptyNode:i},n,t,r,s){const a=new(s?.nodeClass??Un)(n.schema);n.atRoot&&(n.atRoot=!1);let l=t.offset,c=null;for(const d of t.items){const{start:u,key:h,sep:f,value:_}=d,g=vc(u,{indicator:"explicit-key-ind",next:h??f?.[0],offset:l,onError:r,startOnNewline:!0}),m=!g.found;if(m){if(h&&("block-seq"===h.type?r(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==t.indent&&r(l,"BAD_INDENT",dB)),!g.anchor&&!g.tag&&!f){c=g.end,g.comment&&(a.comment?a.comment+="\n"+g.comment:a.comment=g.comment);continue}(g.hasNewlineAfterProp||_h(h))&&r(h??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==t.indent&&r(l,"BAD_INDENT",dB);const b=g.end,v=h?e(n,h,g,r):i(n,b,u,null,g,r);n.schema.compat&&Lk(t.indent,h,r),cB(n,a.items,v)&&r(b,"DUPLICATE_KEY","Map keys must be unique");const w=vc(f??[],{indicator:"map-value-ind",next:_,offset:v.range[2],onError:r,startOnNewline:!h||"block-scalar"===h.type});if(l=w.end,w.found){m&&("block-map"===_?.type&&!w.hasNewline&&r(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&g.start0){const m=bh(_,g,n.options.strict,r);m.comment&&(c.comment?c.comment+="\n"+m.comment:c.comment=m.comment),c.range=[t.offset,g,m.offset]}else c.range=[t.offset,g,g];return c}(e,i,n,t,s),a=o.constructor;return"!"===r||r===a.tagName?(o.tag=a.tagName,o):(r&&(o.tag=r),o)}function uB(e){let i,n;try{i=new RegExp("(.*?)(?"===r.mode?Je.BLOCK_FOLDED:Je.BLOCK_LITERAL,o=e.source?function tle(e){const i=e.split(/\n( *)/),n=i[0],t=n.match(/^( *)/),s=[t?.[1]?[t[1],n.slice(t[1].length)]:["",n]];for(let o=1;o=0;--g){const m=o[g][1];if(""!==m&&"\r"!==m)break;a=g}if(0===a){const g="+"===r.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let m=t+r.length;return e.source&&(m+=e.source.length),{value:g,type:s,comment:r.comment,range:[t,m,m]}}let l=e.indent+r.indent,c=e.offset+r.length,d=0;for(let g=0;gl&&(l=m.length),c+=m.length+b.length+1}for(let g=o.length-1;g>=a;--g)o[g][0].length>l&&(a=g+1);let u="",h="",f=!1;for(let g=0;gl||"\t"===b[0]?(" "===h?h="\n":!f&&"\n"===h&&(h="\n\n"),u+=h+m.slice(l)+b,h="\n",f=!0):""===b?"\n"===h?u+="\n":h="\n":(u+=h+b,h=" ",f=!1)}switch(r.chomp){case"-":break;case"+":for(let g=a;gn(t+h,f,_);switch(r){case"scalar":a=Je.PLAIN,l=function nle(e,i){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&i(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),uB(e)}(s,c);break;case"single-quoted-scalar":a=Je.QUOTE_SINGLE,l=function rle(e,i){return("'"!==e[e.length-1]||1===e.length)&&i(e.length,"MISSING_CHAR","Missing closing 'quote"),uB(e.slice(1,-1)).replace(/''/g,"'")}(s,c);break;case"double-quoted-scalar":a=Je.QUOTE_DOUBLE,l=function sle(e,i){let n="";for(let t=1;ts?e.slice(s,t+1):r)}else n+=r}return('"'!==e[e.length-1]||1===e.length)&&i(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[t,t+s.length,t+s.length]}}const d=t+s.length,u=bh(o,d,i,n);return{value:l,type:a,comment:u.comment,range:[t,d,u.offset]}}(i,e.options.strict,t),l=n?e.directives.tagName(n.source,u=>t(n,"TAG_RESOLVE_FAILED",u)):null,c=n&&l?function cle(e,i,n,t,r){if("!"===n)return e[xs];const s=[];for(const a of e.tags)if(!a.collection&&a.tag===n){if(!a.default||!a.test)return a;s.push(a)}for(const a of s)if(a.test?.test(i))return a;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(t,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[xs])}(e.schema,r,l,n,t):"scalar"===i.type?function dle({directives:e,schema:i},n,t,r){const s=i.tags.find(o=>o.default&&o.test?.test(n))||i[xs];if(i.compat){const o=i.compat.find(a=>a.default&&a.test?.test(n))??i[xs];s.tag!==o.tag&&r(t,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(o.tag)}`,!0)}return s}(e,r,i,t):e.schema[xs];let d;try{const u=c.resolve(r,h=>t(n??i,"TAG_RESOLVE_FAILED",h),e.options);d=Mt(u)?u:new Je(u)}catch(u){const h=u instanceof Error?u.message:String(u);t(n??i,"TAG_RESOLVE_FAILED",h),d=new Je(r)}return d.range=a,d.source=r,s&&(d.type=s),l&&(d.tag=l),c.format&&(d.format=c.format),o&&(d.comment=o),d}function ule(e,i,n){if(i){null===n&&(n=i.length);for(let t=n-1;t>=0;--t){let r=i[t];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=i[++t];"space"===r?.type;)e+=r.source.length,r=i[++t];break}}return e}const hle={composeNode:fB,composeEmptyNode:zk};function fB(e,i,n,t){const{spaceBefore:r,comment:s,anchor:o,tag:a}=n;let l,c=!0;switch(i.type){case"alias":l=function fle({options:e},{offset:i,source:n,end:t},r){const s=new _k(n.substring(1));""===s.source&&r(i,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&r(i+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=i+n.length,a=bh(t,o,e.strict,r);return s.range=[i,o,a.offset],a.comment&&(s.comment=a.comment),s}(e,i,t),(o||a)&&t(i,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=hB(e,i,a,t),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=function Qae(e,i,n,t,r){const s=t?i.directives.tagName(t.source,u=>r(t,"TAG_RESOLVE_FAILED",u)):null,o="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!t||!s||"!"===s||s===Un.tagName&&"map"===o||s===pa.tagName&&"seq"===o||!o)return jk(e,i,n,r,s);let a=i.schema.tags.find(u=>u.tag===s&&u.collection===o);if(!a){const u=i.schema.knownTags[s];if(!u||u.collection!==o)return u?.collection?r(t,"BAD_COLLECTION_TYPE",`${u.tag} used for ${o} collection, but expects ${u.collection}`,!0):r(t,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),jk(e,i,n,r,s);i.schema.tags.push(Object.assign({},u,{default:!1})),a=u}const l=jk(e,i,n,r,s,a),c=a.resolve?.(l,u=>r(t,"TAG_RESOLVE_FAILED",u),i.options)??l,d=ri(c)?c:new Je(c);return d.range=l.range,d.tag=s,a?.format&&(d.format=a.format),d}(hle,e,i,a,t),o&&(l.anchor=o.source.substring(1));break;default:t(i,"UNEXPECTED_TOKEN","error"===i.type?i.message:`Unsupported token (type: ${i.type})`),l=zk(e,i.offset,void 0,null,n,t),c=!1}return o&&""===l.anchor&&t(o,"BAD_ALIAS","Anchor cannot be an empty string"),r&&(l.spaceBefore=!0),s&&("scalar"===i.type&&""===i.source?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&c&&(l.srcToken=i),l}function zk(e,i,n,t,{spaceBefore:r,comment:s,anchor:o,tag:a,end:l},c){const u=hB(e,{type:"scalar",offset:ule(i,n,t),indent:-1,source:""},a,c);return o&&(u.anchor=o.source.substring(1),""===u.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(u.spaceBefore=!0),s&&(u.comment=s,u.range[2]=l),u}function vh(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:i,source:n}=e;return[i,i+("string"==typeof n?n.length:1)]}function mB(e){let i="",n=!1,t=!1;for(let r=0;r{const o=vh(n);s?this.warnings.push(new Yae(o,t,r)):this.errors.push(new gh(o,t,r))},this.directives=new Ng({version:i.version||"1.2"}),this.options=i}decorate(i,n){const{comment:t,afterEmptyLine:r}=mB(this.prelude);if(t){const s=i.contents;if(n)i.comment=i.comment?`${i.comment}\n${t}`:t;else if(r||i.directives.docStart||!s)i.commentBefore=t;else if(Ut(s)&&!s.flow&&s.items.length>0){let o=s.items[0];Lt(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${t}\n${a}`:t}else{const o=s.commentBefore;s.commentBefore=o?`${t}\n${o}`:t}}n?(Array.prototype.push.apply(i.errors,this.errors),Array.prototype.push.apply(i.warnings,this.warnings)):(i.errors=this.errors,i.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:mB(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(i,n=!1,t=-1){for(const r of i)yield*this.next(r);yield*this.end(n,t)}*next(i){switch(i.type){case"directive":this.directives.add(i.source,(n,t,r)=>{const s=vh(i);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",t,r)}),this.prelude.push(i.source),this.atDirectives=!0;break;case"document":{const n=function mle(e,i,{offset:n,start:t,value:r,end:s},o){const a=Object.assign({_directives:i},e),l=new ph(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},d=vc(t,{indicator:"doc-start",next:r??s?.[0],offset:n,onError:o,startOnNewline:!0});d.found&&(l.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=r?fB(c,r,d,o):zk(c,d.end,t,null,d,o);const u=l.contents.range[2],h=bh(s,u,!1,o);return h.comment&&(l.comment=h.comment),l.range=[n,u,h.offset],l}(this.options,this.directives,i,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(i,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(i.source);break;case"error":{const n=i.source?`${i.message}: ${JSON.stringify(i.source)}`:i.message,t=new gh(vh(i),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(t):this.doc.errors.push(t);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new gh(vh(i),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const n=bh(i.end,i.offset+i.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const t=this.doc.comment;this.doc.comment=t?`${t}\n${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new gh(vh(i),"UNEXPECTED_TOKEN",`Unsupported token ${i.type}`))}}*end(i=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(i){const t=Object.assign({_directives:this.directives},this.options),r=new ph(void 0,t);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,n,n],this.decorate(r,!1),yield r}}}const $k=Symbol("break visit"),_le=Symbol("skip children"),gB=Symbol("remove item");function yc(e,i){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),_B(Object.freeze([]),e,i)}function _B(e,i,n){let t=n(i,e);if("symbol"==typeof t)return t;for(const r of["key","value"]){const s=i[r];if(s&&"items"in s){for(let o=0;o{let n=e;for(const[t,r]of i){const s=n?.[t];if(!s||!("items"in s))return;n=s.items[r]}return n},yc.parentCollection=(e,i)=>{const n=yc.itemAtPath(e,i.slice(0,-1)),t=i[i.length-1][0],r=n?.[t];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};const bB="0123456789ABCDEFabcdef".split(""),vle="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Wk=",[]{}".split(""),yle=" ,[]{}\n\r\t".split(""),Yk=e=>!e||yle.includes(e);class wle{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(i,n=!1){i&&(this.buffer=this.buffer?this.buffer+i:i,this.lineEndPos=null),this.atEnd=!n;let t=this.next??"stream";for(;t&&(n||this.hasChars(1));)t=yield*this.parseNext(t)}atLineEnd(){let i=this.pos,n=this.buffer[i];for(;" "===n||"\t"===n;)n=this.buffer[++i];return!n||"#"===n||"\n"===n||"\r"===n&&"\n"===this.buffer[i+1]}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let n=this.buffer[i];if(this.indentNext>0){let t=0;for(;" "===n;)n=this.buffer[++t+i];if("\r"===n){const r=this.buffer[t+i+1];if("\n"===r||!r&&!this.atEnd)return i+t+1}return"\n"===n||t>=this.indentNext||!n&&!this.atEnd?i+t:-1}if("-"===n||"."===n){const t=this.buffer.substr(i,3);if(("---"===t||"..."===t)&&Gn(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;return("number"!=typeof i||-1!==i&&ithis.indentValue&&!Gn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[i,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if(("-"===i||"?"===i||":"===i)&&Gn(n)){const t=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=t,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const i=this.getLine();if(null===i)return this.setNext("doc");let n=yield*this.pushIndicators();switch(i[n]){case"#":yield*this.pushCount(i.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Yk),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=(yield*this.parseBlockScalarHeader()),n+=(yield*this.pushSpaces(!0)),yield*this.pushCount(i.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,n,t=-1;do{i=yield*this.pushNewline(),i>0?(n=yield*this.pushSpaces(!1),this.indentValue=t=n):n=0,n+=(yield*this.pushSpaces(!0))}while(i+n>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==t&&t"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if("-"!==n)break}return yield*this.pushUntil(n=>Gn(n)||"#"===n)}*parseBlockScalar(){let t,i=this.pos-1,n=0;e:for(let r=this.pos;t=this.buffer[r];++r)switch(t){case" ":n+=1;break;case"\n":i=r,n=0;break;case"\r":{const s=this.buffer[r+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if("\n"===s)break}default:break e}if(!t&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const r=this.continueScalar(i+1);if(-1===r)break;i=this.buffer.indexOf("\n",r)}while(-1!==i);if(-1===i){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let r=i-1,s=this.buffer[r];"\r"===s&&(s=this.buffer[--r]);const o=r;for(;" "===s||"\t"===s;)s=this.buffer[--r];if(!("\n"===s&&r>=this.pos&&r+1+n>o))break;i=r}return yield"\x1f",yield*this.pushToIndex(i+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const i=this.flowLevel>0;let r,n=this.pos-1,t=this.pos-1;for(;r=this.buffer[++t];)if(":"===r){const s=this.buffer[t+1];if(Gn(s)||i&&","===s)break;n=t}else if(Gn(r)){let s=this.buffer[t+1];if("\r"===r&&("\n"===s?(t+=1,r="\n",s=this.buffer[t+1]):n=t),"#"===s||i&&Wk.includes(s))break;if("\n"===r){const o=this.continueScalar(t+1);if(-1===o)break;t=Math.max(t,o-2)}}else{if(i&&Wk.includes(r))break;n=t}return r||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),i?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(i){return i>0?(yield this.buffer.substr(this.pos,i),this.pos+=i,i):0}*pushToIndex(i,n){const t=this.buffer.slice(this.pos,i);return t?(yield t,this.pos+=t.length,t.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Yk))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const i=this.flowLevel>0,n=this.charAt(1);if(Gn(n)||i&&Wk.includes(n))return i?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let i=this.pos+2,n=this.buffer[i];for(;!Gn(n)&&">"!==n;)n=this.buffer[++i];return yield*this.pushToIndex(">"===n?i+1:i,!1)}{let i=this.pos+1,n=this.buffer[i];for(;n;)if(vle.includes(n))n=this.buffer[++i];else{if("%"!==n||!bB.includes(this.buffer[i+1])||!bB.includes(this.buffer[i+2]))break;n=this.buffer[i+=3]}return yield*this.pushToIndex(i,!1)}}*pushNewline(){const i=this.buffer[this.pos];return"\n"===i?yield*this.pushCount(1):"\r"===i&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(i){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||i&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(i){let n=this.pos,t=this.buffer[n];for(;!i(t);)t=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}function mr(e,i){for(let n=0;n=0;)switch(e[i].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++i]?.type;);return e.splice(i,e.length)}function wB(e){if("flow-seq-start"===e.start.type)for(const i of e.items)i.sep&&!i.value&&!mr(i.start,"explicit-key-ind")&&!mr(i.sep,"map-value-ind")&&(i.key&&(i.value=i.key),delete i.key,yB(i.value)?i.value.end?Array.prototype.push.apply(i.value.end,i.sep):i.value.end=i.sep:Array.prototype.push.apply(i.start,i.sep),delete i.sep)}class xle{constructor(i){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new wle,this.onNewLine=i}*parse(i,n=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const t of this.lexer.lex(i,n))yield*this.next(t);n||(yield*this.end())}*next(i){if(this.source=i,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=i.length);const n=function ble(e){switch(e){case"\ufeff":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(i);if(n)if("scalar"===n)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+i.length);break;case"space":this.atNewLine&&" "===i[0]&&(this.indent+=i.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=i.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=i.length}else{const t=`Not a YAML token: ${i}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:i}),this.offset+=i.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const i=this.peek(1);if("doc-end"!==this.type||i&&"doc-end"===i.type){if(!i)return yield*this.stream();switch(i.type){case"document":return yield*this.document(i);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(i);case"block-scalar":return yield*this.blockScalar(i);case"block-map":return yield*this.blockMap(i);case"block-seq":return yield*this.blockSequence(i);case"flow-collection":return yield*this.flowCollection(i);case"doc-end":return yield*this.documentEnd(i)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(i){return this.stack[this.stack.length-i]}*pop(i){const n=i??this.stack.pop();if(n)if(0===this.stack.length)yield n;else{const t=this.peek(1);switch("block-scalar"===n.type?n.indent="indent"in t?t.indent:0:"flow-collection"===n.type&&"document"===t.type&&(n.indent=0),"flow-collection"===n.type&&wB(n),t.type){case"document":t.value=n;break;case"block-scalar":t.props.push(n);break;case"block-map":{const r=t.items[t.items.length-1];if(r.value)return t.items.push({start:[],key:n,sep:[]}),void(this.onKeyLine=!0);if(!r.sep)return Object.assign(r,{key:n,sep:[]}),void(this.onKeyLine=!mr(r.start,"explicit-key-ind"));r.value=n;break}case"block-seq":{const r=t.items[t.items.length-1];r.value?t.items.push({start:[],value:n}):r.value=n;break}case"flow-collection":{const r=t.items[t.items.length-1];return void(!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?r.value=n:Object.assign(r,{key:n,sep:[]}))}default:yield*this.pop(),yield*this.pop(n)}if(!("document"!==t.type&&"block-map"!==t.type&&"block-seq"!==t.type||"block-map"!==n.type&&"block-seq"!==n.type)){const r=n.items[n.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===vB(r.start)&&(0===n.indent||r.start.every(s=>"comment"!==s.type||s.indent=i.indent){const t=!this.onKeyLine&&this.indent===i.indent&&n.sep;let r=[];if(t&&n.sep&&!n.value){const s=[];for(let o=0;oi.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(r=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":return void(t||n.value?(r.push(this.sourceToken),i.items.push({start:r}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"explicit-key-ind":return n.sep||mr(n.start,"explicit-key-ind")?t||n.value?(r.push(this.sourceToken),i.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):n.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(mr(n.start,"explicit-key-ind"))if(n.sep)if(n.value)i.items.push({start:[],key:null,sep:[this.sourceToken]});else if(mr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(yB(n.key)&&!mr(n.sep,"newline")){const s=wc(n.start),o=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:o,sep:a}]})}else r.length>0?n.sep=n.sep.concat(r,this.sourceToken):n.sep.push(this.sourceToken);else if(mr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=wc(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||t?i.items.push({start:r,key:null,sep:[this.sourceToken]}):mr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);return void(t||n.value?(i.items.push({start:r,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0))}default:{const s=this.startBlockValue(i);if(s)return t&&"block-seq"!==s.type&&mr(n.start,"explicit-key-ind")&&i.items.push({start:r}),void this.stack.push(s)}}}yield*this.pop(),yield*this.step()}*blockSequence(i){const n=i.items[i.items.length-1];switch(this.type){case"newline":if(n.value){const t="end"in n.value?n.value.end:void 0;"comment"===(Array.isArray(t)?t[t.length-1]:void 0)?.type?t?.push(this.sourceToken):i.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)i.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,i.indent)){const r=i.items[i.items.length-2]?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),void i.items.pop()}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=i.indent)break;return void n.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==i.indent)break;return void(n.value||mr(n.start,"seq-item-ind")?i.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken))}if(this.indent>i.indent){const t=this.startBlockValue(i);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(i){const n=i.items[i.items.length-1];if("flow-error-end"===this.type){let t;do{yield*this.pop(),t=this.peek(1)}while(t&&"flow-collection"===t.type)}else if(0===i.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!n||n.sep?i.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken));case"map-value-ind":return void(!n||n.value?i.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!n||n.value?i.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?this.stack.push(r):Object.assign(n,{key:r,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void i.end.push(this.sourceToken)}const t=this.startBlockValue(i);t?this.stack.push(t):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===i.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const s=wc(Qg(t));wB(i);const o=i.end.splice(1,i.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:s,key:i,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(i)}}flowScalar(i){if(this.onNewLine){let n=this.source.indexOf("\n")+1;for(;0!==n;)this.onNewLine(this.offset+n),n=this.source.indexOf("\n",n)+1}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=wc(Qg(i));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=wc(Qg(i));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,n){return!("comment"!==this.type||this.indent<=n)&&i.every(t=>"newline"===t.type||"space"===t.type)}*documentEnd(i){"doc-mode"!==this.type&&(i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class kle{constructor(){this.lineStarts=[],this.addNewLine=i=>this.lineStarts.push(i),this.linePos=i=>{let n=0,t=this.lineStarts.length;for(;n>1;this.lineStarts[s]BL(r.options.logLevel,s)),r.errors.length>0){if("silent"!==r.options.logLevel)throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:t},n))}function kB(e,i,n){let t=null;if("function"==typeof i||Array.isArray(i)?t=i:void 0===n&&i&&(n=i),"string"==typeof n&&(n=n.length),"number"==typeof n){const r=Math.round(n);n=r<1?void 0:r>8?{indent:8}:{indent:r}}if(void 0===e){const{keepUndefined:r}=n??i??{};if(!r)return}return new ph(e,t,n).toString(n)}function Yr(e){e.preventDefault(),e.stopPropagation()}const Zle=new M("MatList"),MB=new M("MatNavList");let ice=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();const TB=["*"],rce=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],sce=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],dce=no($r(class{})),uce=$r(class{});let IB=(()=>{var e;class i extends dce{constructor(){super(...arguments),this._stateChanges=new $}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[K([{provide:MB,useExisting:e}]),L,bt],ngContentSelectors:TB,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),AB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),RB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),OB=(()=>{var e;class i extends uce{constructor(t,r,s,o){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new $,this._disabled=!1,this._isInteractiveList=!!(s||o&&"action-list"===o._getListType()),this._list=s||o;const a=this._getHostElement();"button"===a.nodeName.toLowerCase()&&!a.hasAttribute("type")&&a.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(ke(this._destroyed)).subscribe(()=>{r.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=re(t)}ngAfterContentInit(){!function GN(e,i,n="mat"){e.changes.pipe(Di(e)).subscribe(({length:t})=>{Lu(i,`${n}-2-line`,!1),Lu(i,`${n}-3-line`,!1),Lu(i,`${n}-multi-line`,!1),2===t||3===t?Lu(i,`${n}-${t}-line`,!0):t>3&&Lu(i,`${n}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(st),p(MB,8),p(Zle,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,AB,5),Me(s,RB,5),Me(s,ox,5)),2&t){let o;Q(o=J())&&(r._avatar=o.first),Q(o=J())&&(r._icon=o.first),Q(o=J())&&(r._lines=o)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(t,r){2&t&&fe("mat-list-item-disabled",r.disabled)("mat-list-item-with-avatar",r._avatar||r._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[L],ngContentSelectors:sce,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,r){1&t&&(ct(rce),k(0,"span",0),be(1,"span",1),we(2),k(3,"span",2),we(4,1),D(),we(5,2),D()),2&t&&(C(1),R("matRippleTrigger",r._getHostElement())("matRippleDisabled",r._isRippleDisabled()))},dependencies:[dr],encapsulation:2,changeDetection:0}),i})(),NB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[qN,Jl,Fe,ax,Ln,qN,Fe,ax,ice]}),i})(),PB=(()=>{var e;class i{constructor(t,r,s,o){this.bottomSheetRef=t,this.graph=r,this.clipboard=s,this.snackBarService=o}downloadGraph(t,r){Yr(t),this.bottomSheetRef.dismiss();const s=this.sanitizeGraph(this.graph);let o="";"json"===r?o=JSON.stringify(s,null,2):"yml"===r&&(o=kB(s));const a=document.createElement("a");a.setAttribute("href",`data:text/${r};charset=UTF-8,`+encodeURIComponent(o)),a.setAttribute("download",`${s.name}.${r}`),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}copyGraph(t,r){Yr(t),this.bottomSheetRef.dismiss();const s=this.sanitizeGraph(this.graph);let o="";"json"===r?o=JSON.stringify(s,null,2):"yml"===r&&(o=kB(s)),this.clipboard.copy(o)?this.snackBarService.openSnackBar({key:"export.copy-success"}):this.snackBarService.openSnackBar({key:"export.copy-failure"},void 0,5e3)}sanitizeGraph(t){return{name:t.name,description:t.description,nodes:t.nodes,edges:t.edges}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(dk),p(CL),p(iW),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["apollo-export-graph"]],decls:32,vars:18,consts:[[1,"title"],["mat-list-item","",3,"click"],["mat-line",""]],template:function(t,r){1&t&&(k(0,"mat-nav-list")(1,"h1",0),N(2),U(3,"translate"),D(),k(4,"a",1),H("click",function(o){return r.downloadGraph(o,"json")}),k(5,"mat-icon"),N(6,"get_app"),D(),k(7,"span",2),N(8),U(9,"translate"),D()(),k(10,"a",1),H("click",function(o){return r.copyGraph(o,"json")}),k(11,"mat-icon"),N(12,"content_copy"),D(),k(13,"span",2),N(14),U(15,"translate"),D()()(),k(16,"mat-nav-list")(17,"h1",0),N(18),U(19,"translate"),D(),k(20,"a",1),H("click",function(o){return r.downloadGraph(o,"yml")}),k(21,"mat-icon"),N(22,"get_app"),D(),k(23,"span",2),N(24),U(25,"translate"),D()(),k(26,"a",1),H("click",function(o){return r.copyGraph(o,"yml")}),k(27,"mat-icon"),N(28,"content_copy"),D(),k(29,"span",2),N(30),U(31,"translate"),D()()()),2&t&&(C(2),pe(Y(3,6,"export.json")),C(6),pe(Y(9,8,"export.download")),C(6),pe(Y(15,10,"export.copy")),C(4),pe(Y(19,12,"export.yaml")),C(6),pe(Y(25,14,"export.download")),C(6),pe(Y(31,16,"export.copy")))},dependencies:[kn,IB,OB,ox,di],styles:[".title[_ngcontent-%COMP%]{margin:0}"]}),i})();const fo=4,yce={nodeRadius:24,tooltipOpacity:1,tooltipFadeInTame:500,tooltipFadeOutTime:200,markerBoxSize:fo,markerPadding:24+2*fo,markerRef:fo/2,arrowPoints:[[0,0],[0,fo],[fo,fo/2]],markerPath:[0,0,fo,fo].join(",")},BB=new M("MatError"),Ece=new M("MatPrefix"),VB=new M("MatSuffix"),Mce={transitionMessages:Si("transitionMessages",[gt("enter",Ee({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Ee({opacity:0,transform:"translateY(-5px)"}),St("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let xc=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e}),i})();const Jg=new M("MatFormField"),Tce=["connectionContainer"],Ice=["inputContainer"],Ace=["label"];function Rce(e,i){1&e&&(fi(0),k(1,"div",14),be(2,"div",15)(3,"div",16)(4,"div",17),D(),k(5,"div",18),be(6,"div",15)(7,"div",16)(8,"div",17),D(),mi())}function Oce(e,i){if(1&e){const n=Yt();k(0,"div",19),H("cdkObserveContent",function(){return tt(n),it(ue().updateOutlineGap())}),we(1,1),D()}2&e&&R("cdkObserveContentDisabled","outline"!=ue().appearance)}function Fce(e,i){if(1&e&&(fi(0),we(1,2),k(2,"span"),N(3),D(),mi()),2&e){const n=ue(2);C(3),pe(n._control.placeholder)}}function Nce(e,i){1&e&&we(0,3,["*ngSwitchCase","true"])}function Pce(e,i){1&e&&(k(0,"span",23),N(1," *"),D())}function Lce(e,i){if(1&e){const n=Yt();k(0,"label",20,21),H("cdkObserveContent",function(){return tt(n),it(ue().updateOutlineGap())}),Z(2,Fce,4,1,"ng-container",12),Z(3,Nce,1,0,"ng-content",12),Z(4,Pce,2,0,"span",22),D()}if(2&e){const n=ue();fe("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),R("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),_e("for",n._control.id)("aria-owns",n._control.id),C(2),R("ngSwitchCase",!1),C(1),R("ngSwitchCase",!0),C(1),R("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function Bce(e,i){1&e&&(k(0,"div",24),we(1,4),D())}function Vce(e,i){if(1&e&&(k(0,"div",25),be(1,"span",26),D()),2&e){const n=ue();C(1),fe("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function jce(e,i){1&e&&(k(0,"div"),we(1,5),D()),2&e&&R("@transitionMessages",ue()._subscriptAnimationState)}function zce(e,i){if(1&e&&(k(0,"div",30),N(1),D()),2&e){const n=ue(2);R("id",n._hintLabelId),C(1),pe(n.hintLabel)}}function Hce(e,i){if(1&e&&(k(0,"div",27),Z(1,zce,2,2,"div",28),we(2,6),be(3,"div",29),we(4,7),D()),2&e){const n=ue();R("@transitionMessages",n._subscriptAnimationState),C(1),R("ngIf",n.hintLabel)}}const $ce=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Uce=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Gce=0,qce=(()=>{var e;class i{constructor(t,r){this.id="mat-error-"+Gce++,t||r.nativeElement.setAttribute("aria-live","polite")}}return(e=i).\u0275fac=function(t){return new(t||e)(Mi("aria-live"),p(ne))},e.\u0275dir=I({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,r){2&t&&_e("id",r.id)},inputs:{id:"id"},features:[K([{provide:BB,useExisting:e}])]}),i})();const Wce=new M("MatHint");let ga=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-label"]]}),i})(),Yce=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-placeholder"]]}),i})(),jB=0;const Xce=ro(class{constructor(e){this._elementRef=e}},"primary"),Zce=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS");let yh=(()=>{var e;class i extends Xce{get appearance(){return this._appearance}set appearance(t){const r=this._appearance;this._appearance=t||this._defaults?.appearance||"legacy","outline"===this._appearance&&r!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=re(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}constructor(t,r,s,o,a,l,c){super(t),this._changeDetectorRef=r,this._dir=s,this._defaults=o,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new $,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+jB++,this._labelId="mat-form-field-label-"+jB++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=!!o.hideRequiredMarker,o.color&&(this.color=this.defaultColor=o.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Di(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ft(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Di(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Di(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ke(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const r=this._control?this._control.ngControl:null;return r&&r[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Br(this._label.nativeElement,"transitionend").pipe(ze(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const r=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,s=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;r?t.push(r.id):this._hintLabel&&t.push(this._hintLabelId),s&&t.push(s.id)}else this._errorChildren&&t.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null,r=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!t||!t.children.length||!t.textContent.trim()){const u=r.querySelectorAll(`${s}, ${o}`);for(let h=0;h0?.75*g+10:0}for(let u=0;u{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["","matSuffix",""]],features:[K([{provide:VB,useExisting:e}])]}),i})(),wh=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ln,Fe,Vp,Fe]}),i})();const HB=ps({passive:!0});let Jce=(()=>{var e;class i{constructor(t,r){this._platform=t,this._ngZone=r,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Xn;const r=$t(t),s=this._monitoredElements.get(r);if(s)return s.subject;const o=new $,a="cdk-text-field-autofilled",l=c=>{"cdk-text-field-autofill-start"!==c.animationName||r.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(r.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",l,HB),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:o,unlisten:()=>{r.removeEventListener("animationstart",l,HB)}}),o}stopMonitoring(t){const r=$t(t),s=this._monitoredElements.get(r);s&&(s.unlisten(),s.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((t,r)=>this.stopMonitoring(r))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Ot),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})(),ede=(()=>{var e;class i{get minRows(){return this._minRows}set minRows(t){this._minRows=Oi(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Oi(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=re(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,t?this._textareaElement.setAttribute("placeholder",t):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(t,r,s,o){this._elementRef=t,this._platform=r,this._ngZone=s,this._destroyed=new $,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Br(this._getWindow(),"resize").pipe(Kw(16),ke(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,t.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const t=this._textareaElement,r=t.style.marginBottom||"",s=this._platform.FIREFOX,o=s&&this._hasFocus,a=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(t.style.marginBottom=`${t.clientHeight}px`),t.classList.add(a);const l=t.scrollHeight-4;return t.classList.remove(a),o&&(t.style.marginBottom=r),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const r=this._elementRef.nativeElement,s=r.value;if(!t&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);r.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(r)):setTimeout(()=>this._scrollToCaretPosition(r))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:r,selectionEnd:s}=t;!this._destroyed.isStopped&&this._hasFocus&&t.setSelectionRange(r,s)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ot),p(ce),p(xe,8))},e.\u0275dir=I({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,r){1&t&&H("input",function(){return r._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),$B=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})();const tde=new M("MAT_INPUT_VALUE_ACCESSOR"),ide=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let nde=0;const rde=sx(class{constructor(e,i,n,t){this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=t,this.stateChanges=new $}});let sde=(()=>{var e;class i extends rde{get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ml.required)??!1}set required(t){this._required=re(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&rN().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=re(t)}constructor(t,r,s,o,a,l,c,d,u,h){super(l,o,a,s),this._elementRef=t,this._platform=r,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+nde++,this.focused=!1,this.stateChanges=new $,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>rN().has(g)),this._iOSKeyupListener=g=>{const m=g.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,_=f.nodeName.toLowerCase();this._inputValueAccessor=c||f,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===_,this._isTextarea="textarea"===_,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){const t=this._getPlaceholder();if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ide.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,r=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&r&&r.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ot),p(or,10),p(Il,8),p(Ol,8),p(Pu),p(tde,10),p(Jce),p(ce),p(Jg,8))},e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,r){1&t&&H("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&t&&(On("id",r.id)("disabled",r.disabled)("required",r.required),_e("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),fe("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[K([{provide:xc,useExisting:e}]),L,bt]}),i})(),Xk=(()=>{var e;class i extends sde{constructor(){super(...arguments),this._legacyFormField=G(Jg,{optional:!0})}_getPlaceholder(){const t=this._legacyFormField;return t&&"legacy"===t.appearance&&!t._hasLabel?.()?null:this.placeholder}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(t,r){2&t&&(_e("data-placeholder",r.placeholder),fe("mat-input-server",r._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",r._isInlineSelect()))},exportAs:["matInput"],features:[K([{provide:xc,useExisting:e}]),L]}),i})(),UB=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Pu],imports:[$B,wh,Fe,$B,wh]}),i})(),ode=(()=>{var e;class i{constructor(t,r){this.dialogRef=t,this.graph=r,this.graphName=new Al(r.name,Ml.required),this.graphDescription=new Al(r.description)}updatedGraph(){if(!this.graphName.invalid)return{...this.graph,name:this.graphName.value,description:this.graphDescription.value,lastEdit:Date.now()}}closeDialog(){this.dialogRef.close()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so),p(ju))},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:24,vars:22,consts:[["mat-dialog-content",""],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"mat-form-field")(2,"mat-label"),N(3),U(4,"translate"),D(),be(5,"input",1),U(6,"translate"),D(),k(7,"mat-form-field")(8,"mat-label"),N(9),U(10,"translate"),D(),be(11,"input",2),U(12,"translate"),D()(),k(13,"div",3)(14,"button",4),H("click",function(){return r.closeDialog()}),k(15,"mat-icon"),N(16,"cancel"),D(),N(17),U(18,"translate"),D(),k(19,"button",5)(20,"mat-icon"),N(21,"save"),D(),N(22),U(23,"translate"),D()()),2&t&&(C(3),pe(Y(4,10,"misc.name")),C(2),nn("placeholder",Y(6,12,"misc.name")),R("formControl",r.graphName),C(4),pe(Y(10,14,"misc.description")),C(2),nn("placeholder",Y(12,16,"misc.description")),R("formControl",r.graphDescription),C(6),ot(" ",Y(18,18,"actions.cancel")," "),C(2),R("mat-dialog-close",r.updatedGraph())("disabled",r.graphName.invalid),C(3),ot(" ",Y(23,20,"actions.save")," "))},dependencies:[Uo,zd,Xm,Fi,qee,dP,cx,yh,ga,kn,Xk,Rl,di],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i})();function GB(e,i,n,t){e.append("defs").append("marker").attr("id",n).attr("viewBox",i.markerPath).attr("refX",i.markerRef).attr("refY",i.markerRef).attr("markerWidth",i.markerBoxSize).attr("markerHeight",i.markerBoxSize).attr("orient","auto").classed(t,!0).append("path").attr("d",`${function eae(e,i){var n=lc(!0),t=null,r=Woe,s=null,o=function Zoe(e){let i=3;return e.digits=function(n){if(!arguments.length)return i;if(null==n)i=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);i=t}return e},()=>new Og(i)}(a);function a(l){var c,u,f,d=(l=function qoe(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(l)).length,h=!1;for(null==t&&(s=r(f=o())),c=0;c<=d;++c)!(c1&&void 0!==arguments[1]?arguments[1]:{};if(!Sn(e))throw new TypeError("input must be an array");if(0===e.length)throw new TypeError("input must not be empty");if(void 0!==i.output){if(!Sn(i.output))throw new TypeError("output option must be an array if specified");n=i.output}else n=new Array(e.length);var t=function pde(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Sn(e))throw new TypeError("input must be an array");if(0===e.length)throw new TypeError("input must not be empty");var n=i.fromIndex,t=void 0===n?0:n,r=i.toIndex,s=void 0===r?e.length:r;if(t<0||t>=e.length||!Number.isInteger(t))throw new Error("fromIndex must be a positive integer smaller than length");if(s<=t||s>e.length||!Number.isInteger(s))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=e[t],a=t+1;a1&&void 0!==arguments[1]?arguments[1]:{};if(!Sn(e))throw new TypeError("input must be an array");if(0===e.length)throw new TypeError("input must not be empty");var n=i.fromIndex,t=void 0===n?0:n,r=i.toIndex,s=void 0===r?e.length:r;if(t<0||t>=e.length||!Number.isInteger(t))throw new Error("fromIndex must be a positive integer smaller than length");if(s<=t||s>e.length||!Number.isInteger(s))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=e[t],a=t+1;ao&&(o=e[a]);return o}(e);if(t===r)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var s=i.min,o=void 0===s?i.autoMinMax?t:0:s,a=i.max,l=void 0===a?i.autoMinMax?r:1:a;if(o>=l)throw new RangeError("min option must be smaller than max option");for(var c=(l-o)/(r-t),d=0;d=0&&n?` ${KB(e,i-1)}`:KB(e,i)).padEnd(i)}function KB(e,i){let n=e.toString();if(n.length<=i)return n;let t=e.toFixed(i);if(t.length>i&&(t=e.toFixed(Math.max(0,i-(t.length-i)))),t.length<=i&&!t.startsWith("0.000")&&!t.startsWith("-0.000"))return t;let r=e.toExponential(i);return r.length>i&&(r=e.toExponential(Math.max(0,i-(r.length-i)))),r.slice(0)}function pr(e,i,n){if(i<0||i>(n?e.rows:e.rows-1))throw new RangeError("Row index out of range")}function gr(e,i,n){if(i<0||i>(n?e.columns:e.columns-1))throw new RangeError("Column index out of range")}function kc(e,i){if(i.to1DArray&&(i=i.to1DArray()),i.length!==e.columns)throw new RangeError("vector size must be the same as the number of columns");return i}function Cc(e,i){if(i.to1DArray&&(i=i.to1DArray()),i.length!==e.rows)throw new RangeError("vector size must be the same as the number of rows");return i}function XB(e,i,n,t,r){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(i_("startRow",i),i_("endRow",n),i_("startColumn",t),i_("endColumn",r),i>n||t>r||i<0||i>=e.rows||n<0||n>=e.rows||t<0||t>=e.columns||r<0||r>=e.columns)throw new RangeError("Submatrix indices are out of range")}function t_(e,i=0){let n=[];for(let t=0;t=s)throw new RangeError("min must be smaller than max");let a=s-r,l=new De(i,n);for(let c=0;ct?(s=!0,t=n):(r=!1,s=!0);i++}return r}isReducedEchelonForm(){let i=0,n=0,t=-1,r=!0,s=!1;for(;it?(s=!0,t=n):(r=!1,s=!0);for(let o=n+1;oi.get(r,t)&&(r=s);if(0===i.get(r,t))t++;else{i.swapRows(n,r);let s=i.get(n,t);for(let o=t;o=0;)if(0===i.maxRow(r))r--;else{let s=0,o=!1;for(;sn[t]&&(n[t]=this.get(t,r));return n}case"column":{const n=new Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let t=0;tn[r]&&(n[r]=this.get(t,r));return n}case void 0:{let n=this.get(0,0);for(let t=0;tn&&(n=this.get(t,r));return n}default:throw new Error(`invalid option: ${i}`)}}maxIndex(){Dc(this);let i=this.get(0,0),n=[0,0];for(let t=0;ti&&(i=this.get(t,r),n[0]=t,n[1]=r);return n}min(i){if(this.isEmpty())return NaN;switch(i){case"row":{const n=new Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let t=0;tn&&(n=this.get(i,t));return n}maxRowIndex(i){pr(this,i),Dc(this);let n=this.get(i,0),t=[i,0];for(let r=1;rn&&(n=this.get(i,r),t[1]=r);return t}minRow(i){if(pr(this,i),this.isEmpty())return NaN;let n=this.get(i,0);for(let t=1;tn&&(n=this.get(t,i));return n}maxColumnIndex(i){gr(this,i),Dc(this);let n=this.get(0,i),t=[0,i];for(let r=1;rn&&(n=this.get(r,i),t[0]=r);return t}minColumn(i){if(gr(this,i),this.isEmpty())return NaN;let n=this.get(0,i);for(let t=1;t=t)throw new RangeError("min must be smaller than max");let r=new De(this.rows,this.columns);for(let s=0;s0&&qB(o,{min:n,max:t,output:o}),r.setRow(s,o)}return r}scaleColumns(i={}){if("object"!=typeof i)throw new TypeError("options must be an object");const{min:n=0,max:t=1}=i;if(!Number.isFinite(n))throw new TypeError("min must be a number");if(!Number.isFinite(t))throw new TypeError("max must be a number");if(n>=t)throw new RangeError("min must be smaller than max");let r=new De(this.rows,this.columns);for(let s=0;st||n<0||n>=this.columns||t<0||t>=this.columns)throw new RangeError("Argument out of range");let r=new De(i.length,t-n+1);for(let s=0;s=this.rows)throw new RangeError(`Row index out of range: ${i[s]}`);r.set(s,o-n,this.get(i[s],o))}return r}subMatrixColumn(i,n,t){if(void 0===n&&(n=0),void 0===t&&(t=this.rows-1),n>t||n<0||n>=this.rows||t<0||t>=this.rows)throw new RangeError("Argument out of range");let r=new De(t-n+1,i.length);for(let s=0;s=this.columns)throw new RangeError(`Column index out of range: ${i[s]}`);r.set(o-n,s,this.get(o,i[s]))}return r}setSubMatrix(i,n,t){if((i=De.checkMatrix(i)).isEmpty())return this;XB(this,n,n+i.rows-1,t,t+i.columns-1);for(let o=0;o=e.rows)throw new RangeError("row indices are out of range")})(this,i),function wde(e,i){if(!Sn(i))throw new TypeError("column indices must be an array");for(let n=0;n=e.columns)throw new RangeError("column indices are out of range")}(this,n);let t=new De(i.length,n.length);for(let r=0;r=0){if(this.data=[],!(Number.isInteger(n)&&n>=0))throw new TypeError("nColumns must be a positive integer");for(let t=0;t"number"==typeof i))throw new TypeError("Input data contains non-numeric values");this.data.push(Float64Array.from(t[r]))}}}this.rows=i,this.columns=n}set(i,n,t){return this.data[i][n]=t,this}get(i,n){return this.data[i][n]}removeRow(i){return pr(this,i),this.data.splice(i,1),this.rows-=1,this}addRow(i,n){return void 0===n&&(n=i,i=this.rows),pr(this,i,!0),n=Float64Array.from(kc(this,n)),this.data.splice(i,0,n),this.rows+=1,this}removeColumn(i){gr(this,i);for(let n=0;n"u"&&(n=i,i=this.columns),gr(this,i,!0),n=Cc(this,n);for(let t=0;t(e=(Foe*e+Noe)%vL)/vL}();function u(){h(),c.call("tick",i),n1?(null==m?a.delete(g):a.set(g,_(m)),i):a.get(g)},find:function(g,m,b){var y,E,T,B,z,v=0,w=e.length;for(null==b?b=1/0:b*=b,v=0;v1?(c.on(g,m),i):c.on(g)}}}(e.nodes).on("tick",()=>s());return r&&o.force("charge",function Hoe(){var e,i,n,t,s,r=Ki(-30),o=1,a=1/0,l=.81;function c(f){var _,g=e.length,m=nk(e,Loe,Boe).visitAfter(u);for(t=f,_=0;_=a)){(f.data!==i||f.next)&&(0===b&&(y+=(b=co(n))*b),0===v&&(y+=(v=co(n))*v),yf+te||T_+te||B<_-te;if(z.index>h.index){var ve=f-z.x-z.vx,Ce=_-z.y-z.vy,Ne=ve*ve+Ce*Ce;Nec.r&&(c.r=c[d].r)}function l(){if(i){var c,u,d=i.length;for(n=new Array(d),c=0;c[i(E,T,o),E]));for(m=0,a=new Array(b);ma.id).distance(10*i.nodeRadius)).force("x",function $oe(e){var n,t,r,i=Ki(.1);function s(a){for(var d,l=0,c=n.length;l>t);return this},e.prototype.signPropagatingRightShiftM=function(t){if(t=i.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let r=0;r>t.get(r,s));return this},e.signPropagatingRightShift=function(t,r){return new i(t).signPropagatingRightShift(r)},e.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},e.prototype.rightShiftS=function(t){for(let r=0;r>>t);return this},e.prototype.rightShiftM=function(t){if(t=i.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let r=0;r>>t.get(r,s));return this},e.rightShift=function(t,r){return new i(t).rightShift(r)},e.prototype.zeroFillRightShift=e.prototype.rightShift,e.prototype.zeroFillRightShiftS=e.prototype.rightShiftS,e.prototype.zeroFillRightShiftM=e.prototype.rightShiftM,e.zeroFillRightShift=e.rightShift,e.prototype.not=function(){for(let t=0;te.scrollStrategies.reposition({scrollThrottle:20})}},Xde=new M("mat-tooltip-default-options",{providedIn:"root",factory:function Kde(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),r3="tooltip-panel",s3=ps({passive:!0});let Qde=(()=>{var e;class i{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=re(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Oi(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Oi(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,r,s,o,a,l,c,d,u,h,f,_){this._overlay=t,this._elementRef=r,this._scrollDispatcher=s,this._viewContainerRef=o,this._ngZone=a,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new $,this._scrollStrategy=u,this._document=_,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ke(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,s])=>{t.removeEventListener(r,s,s3)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const s=this._createOverlay(r);this._detach(),this._portal=this._portal||new Kl(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=s.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const r=this._tooltipInstance;r&&(r.isVisible()?r.hide(t):(r._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof ne)return this._overlayRef;this._detach()}const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return s.positionChanges.pipe(ke(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${r3}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ke(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!qi(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const r=t.getConfig().positionStrategy,s=this._getOrigin(),o=this._getOverlayPosition();r.withPositions([this._addOffset({...s.main,...o.main}),this._addOffset({...s.fallback,...o.fallback})])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,r=this.position;let s;"above"==r||"below"==r?s={originX:"center",originY:"above"==r?"top":"bottom"}:"before"==r||"left"==r&&t||"right"==r&&!t?s={originX:"start",originY:"center"}:("after"==r||"right"==r&&t||"left"==r&&!t)&&(s={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,r=this.position;let s;"above"==r?s={overlayX:"center",overlayY:"bottom"}:"below"==r?s={overlayX:"center",overlayY:"top"}:"before"==r||"left"==r&&t||"right"==r&&!t?s={overlayX:"end",overlayY:"center"}:("after"==r||"right"==r&&t||"left"==r&&!t)&&(s={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ze(1),ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,r){return"above"===this.position||"below"===this.position?"top"===r?r="bottom":"bottom"===r&&(r="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:r}}_updateCurrentPositionClass(t){const{overlayY:r,originX:s,originY:o}=t;let a;if(a="center"===r?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===r&&"top"===o?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const c=`${this._cssClassPrefix}-${r3}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let r;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(r=t),this.show(void 0,r)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const r=t.targetTouches?.[0],s=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",r=>{const s=r.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",r],["touchcancel",r])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([r,s])=>{this._elementRef.nativeElement.addEventListener(r,s,s3)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const r=this._document.elementFromPoint(t.clientX,t.clientY),s=this._elementRef.nativeElement;r!==s&&!s.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const r=this._elementRef.nativeElement,s=r.style;("on"===t||"INPUT"!==r.nodeName&&"TEXTAREA"!==r.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===t||!r.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return(e=i).\u0275fac=function(t){Fo()},e.\u0275dir=I({type:e,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),Jde=(()=>{var e;class i{constructor(t,r){this._changeDetectorRef=t,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new $,this._animationsDisabled="NoopAnimations"===r}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const r=this._tooltip.nativeElement,s=this._showAnimation,o=this._hideAnimation;if(r.classList.remove(t?o:s),r.classList.add(t?s:o),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(r);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(ti,8))},e.\u0275dir=I({type:e}),i})();const eue=["tooltip"];let xh=(()=>{var e;class i extends Qde{constructor(t,r,s,o,a,l,c,d,u,h,f,_){super(t,r,s,o,a,l,c,d,u,h,f,_),this._tooltipComponent=tue}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ln),p(ne),p(Wl),p(Vt),p(ce),p(Ot),p(_N),p(xn),p(n3),p(an,8),p(Xde,8),p(xe))},e.\u0275dir=I({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[L]}),i})(),tue=(()=>{var e;class i extends Jde{constructor(t,r,s){super(t,s),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide",this._isHandset=r.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(Mu),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(t,r){if(1&t&&Xe(eue,7),2&t){let s;Q(s=J())&&(r._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(t,r){1&t&&H("mouseleave",function(o){return r._handleMouseLeave(o)}),2&t&&(_e("mat-id-collision",null),yn("zoom",r.isVisible()?1:null))},features:[L],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,r){if(1&t&&(k(0,"div",0,1),H("animationend",function(o){return r._handleAnimationEnd(o)}),U(2,"async"),N(3),D()),2&t){let s;fe("mat-tooltip-handset",null==(s=Y(2,4,r._isHandset))?null:s.matches),R("ngClass",r.tooltipClass),C(3),pe(r.message)}},dependencies:[Wy,Pr],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),o3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Yde],imports:[SN,Ln,Ou,Fe,Fe,ta]}),i})();const iue=["graphHost"],nue=["graph","","allowEditing",""];function rue(e,i){if(1&e){const n=Yt();k(0,"button",8),H("click",function(){return tt(n),it(ue().createNode())}),U(1,"translate"),k(2,"mat-icon"),N(3,"add"),D()()}2&e&&nn("matTooltip",Y(1,1,"graph.create-node"))}let sue=(()=>{var e;class i{constructor(t,r,s,o){this.store=t,this.translate=r,this.dialog=s,this.bottomSheet=o,this.graph=new Cn,this.config=yce,this.linkSelected=new W,this.nodeSelected=new W,this.linkDeleted=new W,this.nodeDeleted=new W,this.saveRequested=new W,this.graphExported=new W,this.controlsTooltipText=Vr(ee(!0),this.translate.onLangChange).pipe(Bt(()=>jd([this.translate.get("graph.controls.view"),this.translate.get("graph.controls.graph")])),se(([a,l])=>this.allowEditing?a+"\n"+l:a)),this.graphSettings=this.store.select("graphSettings"),this.enableSimulation=!0,this.showLabels=!0,this.width=0,this.height=0,this.xOffset=0,this.yOffset=0,this.scale=1}ngAfterViewChecked(){const t=this.graphHost.nativeElement.offsetWidth,r=this.graphHost.nativeElement.offsetHeight,s=this.width.toFixed(2)!==t.toFixed(2),o=this.height.toFixed(2)!==r.toFixed(2);!s&&!o||(window.innerWidth<=800&&!this.enableSimulation?this.store.dispatch(ig()):this.cleanInitGraph(t,r))}ngAfterViewInit(){this.initGraph(),this.graphSettingsSubscription=this.graphSettings.subscribe(t=>this.onSettingsChanged(t))}ngOnChanges(t){t.graph.currentValue&&void 0!==this.graphHost?(this.cleanInitGraph(),this.enableSimulation?this.restart(1):this.store.dispatch(ig())):null===t.graph.currentValue&&(this.graph=new Cn),t.graphExportRequests&&(this.graphExportRequestsSubscription?.unsubscribe(),this.graphExportRequestsSubscription=this.graphExportRequests?.subscribe(()=>this.graphExported.emit(this.graph.toDomainGraph())))}ngOnDestroy(){this.graphSettingsSubscription?.unsubscribe(),this.graphExportRequestsSubscription?.unsubscribe()}saveGraph(){Fw(this.dialog.open(ode,{data:this.graph.toDomainGraph()}).afterClosed()).then(t=>{void 0!==t&&this.saveRequested.emit(t)})}exportGraph(){this.bottomSheet.open(PB,{data:this.graph.toDomainGraph()})}toggleLabels(){this.store.dispatch(EP())}toggleSimulation(){this.store.dispatch(SP())}resetGraph(){this.cleanInitGraph(),this.store.dispatch(ig())}cleanInitGraph(t,r){this.resetView(),this.initGraph(t,r)}restart(t=.5){this.linkSelection=this.linkSelection.data(this.graph.links,r=>`${r.source.id}-${r.target.id}`).join(r=>{const s=r.append("g");return s.append("path").classed("link",!0).style("marker-end","url(#link-arrow"),s.append("path").classed("clickbox",!0).on("contextmenu",(o,a)=>{Yr(o),this.linkSelected.emit(a)}),s.append("text").classed("link-details",!0),s}),this.nodeSelection=this.nodeSelection.data(this.graph.nodes,r=>r.id).join(r=>{const s=r.append("g").call(this.drag).on("contextmenu",(o,a)=>{Yr(o),this.nodeSelected.emit(a)});return s.append("circle").classed("node",!0).attr("r",this.config.nodeRadius).on("mouseenter",(o,a)=>this.draggableLinkTargetNode=a).on("mouseout",()=>this.draggableLinkTargetNode=void 0).on("pointerdown",(o,a)=>this.onPointerDown(o,a)).on("pointerup",o=>this.onPointerUp(o)),s.append("text").text(o=>o.id).classed("node-id",!0).attr("dy","0.33em"),s.append("text").classed("node-details",!0).attr("dy","-2em"),s}),this.linkSelection.select(".link-details").attr("opacity",this.showLabels?1:0).text(r=>[...r.relations,...r.functions].join(", ")),this.nodeSelection.select(".node-details").attr("opacity",this.showLabels?1:0).text(r=>[...r.relations,...r.constants].join(", ")),this.simulation.nodes(this.graph.nodes),this.simulation.alpha(t).restart()}createNode(t=this.width/2-this.xOffset,r=this.height/2-this.yOffset){var s=this;return Hu(function*(){if(!s.allowEditing)return Promise.reject("Graph is not in edit mode.");const o=yield s.graph.createNodeWithGeneratedId(t,r);s.restart(),s.nodeSelected.emit(o)})()}removeNode(t){this.allowEditing&&(this.resetDraggableLink(),this.graph.removeNode(t).then(([r,s])=>{this.restart(),this.nodeDeleted.emit(r),s.forEach(o=>this.linkDeleted.emit(o))}))}createLink(t,r){return this.allowEditing?this.graph.createLink(t.id,r.id).then(s=>{this.restart(),this.linkSelected.emit(s)}).catch(s=>this.linkSelected.emit(s)):Promise.reject("Graph is not in edit mode.")}removeLink(t){this.allowEditing&&this.graph.removeLink(t).then(r=>{this.restart(),this.linkDeleted.emit(r)})}initGraph(t=this.graphHost.nativeElement.clientWidth,r=this.graphHost.nativeElement.clientHeight){this.width=t,this.height=r,this.zoom=function Gde(e){return function hae(){var d,u,h,e=aae,i=lae,n=uae,t=cae,r=dae,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,l=rae,c=pg("start","zoom","end"),f=500,_=150,g=0,m=10;function b(A){A.property("__zoom",kL).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",oe).on("dblclick.zoom",te).filter(r).on("touchstart.zoom",ve).on("touchmove.zoom",Ce).on("touchend.zoom touchcancel.zoom",Ne).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(A,ae){return(ae=Math.max(s[0],Math.min(s[1],ae)))===A.k?A:new ws(ae,A.x,A.y)}function w(A,ae,S){var F=ae[0]-S[0]*A.k,V=ae[1]-S[1]*A.k;return F===A.x&&V===A.y?A:new ws(A.k,F,V)}function y(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function E(A,ae,S,F){A.on("start.zoom",function(){T(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){T(this,arguments).event(F).end()}).tween("zoom",function(){var V=this,q=arguments,X=T(V,q).event(F),ge=i.apply(V,q),ye=null==S?y(ge):"function"==typeof S?S.apply(V,q):S,Tt=Math.max(ge[1][0]-ge[0][0],ge[1][1]-ge[0][1]),Ae=V.__zoom,Xt="function"==typeof ae?ae.apply(V,q):ae,bi=l(Ae.invert(ye).concat(Tt/Ae.k),Xt.invert(ye).concat(Tt/Xt.k));return function(Be){if(1===Be)Be=Xt;else{var It=bi(Be),Zt=Tt/It[2];Be=new ws(Zt,ye[0]-It[0]*Zt,ye[1]-It[1]*Zt)}X.zoom(null,Be)}})}function T(A,ae,S){return!S&&A.__zooming||new B(A,ae)}function B(A,ae){this.that=A,this.args=ae,this.active=0,this.sourceEvent=null,this.extent=i.apply(A,ae),this.taps=0}function z(A,...ae){if(e.apply(this,arguments)){var S=T(this,ae).event(A),F=this.__zoom,V=Math.max(s[0],Math.min(s[1],F.k*Math.pow(2,t.apply(this,arguments)))),q=zn(A);if(S.wheel)(S.mouse[0][0]!==q[0]||S.mouse[0][1]!==q[1])&&(S.mouse[1]=F.invert(S.mouse[0]=q)),clearTimeout(S.wheel);else{if(F.k===V)return;S.mouse=[q,F.invert(q)],kg(this),S.start()}ah(A),S.wheel=setTimeout(function X(){S.wheel=null,S.end()},_),S.zoom("mouse",n(w(v(F,V),S.mouse[0],S.mouse[1]),S.extent,o))}}function oe(A,...ae){if(!h&&e.apply(this,arguments)){var S=A.currentTarget,F=T(this,ae,!0).event(A),V=jn(A.view).on("mousemove.zoom",function ye(Ae){if(ah(Ae),!F.moved){var Xt=Ae.clientX-X,bi=Ae.clientY-ge;F.moved=Xt*Xt+bi*bi>g}F.event(Ae).zoom("mouse",n(w(F.that.__zoom,F.mouse[0]=zn(Ae,S),F.mouse[1]),F.extent,o))},!0).on("mouseup.zoom",function Tt(Ae){V.on("mousemove.zoom mouseup.zoom",null),pL(Ae.view,F.moved),ah(Ae),F.event(Ae).end()},!0),q=zn(A,S),X=A.clientX,ge=A.clientY;mL(A.view),lk(A),F.mouse=[q,this.__zoom.invert(q)],kg(this),F.start()}}function te(A,...ae){if(e.apply(this,arguments)){var S=this.__zoom,F=zn(A.changedTouches?A.changedTouches[0]:A,this),V=S.invert(F),X=n(w(v(S,S.k*(A.shiftKey?.5:2)),F,V),i.apply(this,ae),o);ah(A),a>0?jn(this).transition().duration(a).call(E,X,F,A):jn(this).call(b.transform,X,F,A)}}function ve(A,...ae){if(e.apply(this,arguments)){var q,X,ge,ye,S=A.touches,F=S.length,V=T(this,ae,A.changedTouches.length===F).event(A);for(lk(A),X=0;X0===i.button||i.touches?.length>=2).on("zoom",i=>e(i))}(s=>this.onZoom(s)),this.canvas=function ade(e,i,n,t,r){return e.append("svg").attr("width","100%").attr("height","100%").on("pointermove",s=>n(s)).on("pointerup",s=>t(s)).on("contextmenu",s=>Yr(s)).on("dblclick",s=>r(s)).call(i).on("dblclick.zoom",null).append("g")}(jn(this.graphHost.nativeElement),this.zoom,s=>this.onPointerMoved(s),s=>this.onPointerUp(s),s=>this.createNode(zn(s,this.canvas.node())[0],zn(s,this.canvas.node())[1])),function ude(e,i){GB(e,i,"link-arrow","arrow"),GB(e,i,"draggable-link-arrow","arrow draggable")}(this.canvas,this.config),this.allowEditing&&(this.draggableLink=function cde(e){return e.append("path").classed("link draggable hidden",!0).attr("d","M0,0L0,0")}(this.canvas)),this.linkSelection=function dde(e){return e.append("g").classed("links",!0).selectAll("path")}(this.canvas),this.nodeSelection=function hde(e){return e.append("g").classed("nodes",!0).selectAll("circle")}(this.canvas),this.simulation=this.createSimulation(),this.drag=this.createDrag(),this.restart()}createSimulation(){return Ude(this.graph,this.config,this.width,this.height,this.enableSimulation,()=>this.onTick())}onTick(){this.nodeSelection.attr("transform",t=>`translate(${t.x},${t.y})`),this.linkSelection.selectAll("path").attr("d",t=>t.source.id===t.target.id?e3(t.source,[this.width/2,this.height/2],this.config):this.isBidirectional(t.source,t.target)?JB(t.source,t.target,this.config):QB(t.source,t.target,this.config)),this.linkSelection.select(".link-details").attr("transform",t=>t.source.id===t.target.id?function $de(e,i,n){const t=new De([[e.x,e.y]]),r=new De([i]);t.get(0,0)===r.get(0,0)&&t.get(0,1)===r.get(0,1)&&r.add([[0,1]]);const s=De.subtract(t,r),o=s.divide(s.norm("frobenius")).multiply(3*n.nodeRadius+8).add(t);return`translate(${o.get(0,0)},${o.get(0,1)})`}(t.source,[this.width/2,this.height/2],this.config):this.isBidirectional(t.source,t.target)?function Hde(e,i,n){const t=new De([[e.x,e.y]]),r=new De([[i.x,i.y]]),s=De.subtract(r,t),o=s.norm("frobenius"),a=s.divide(o),l=Zk(10),c=De.multiply(a,-1),d=.3*o>2*n.nodeRadius?.3*o:2*n.nodeRadius,u=_a(c,l).multiply(d).add(r);return`translate(${u.get(0,0)},${u.get(0,1)})`}(t.source,t.target,this.config):function zde(e,i){return`translate(${(e.x+i.x)/2},${(e.y+i.y)/2-8})`}(t.source,t.target)),this.updateDraggableLinkPath()}updateDraggableLinkPath(){const t=this.draggableLinkSourceNode;if(void 0!==t){const r=this.draggableLinkTargetNode;void 0!==r?this.draggableLink.attr("d",()=>t.id===r.id?e3(t,[this.width/2,this.height/2],this.config):this.isBidirectional(t,r)?QB(t,r,this.config):JB(t,r,this.config)):void 0!==this.draggableLinkEnd&&this.draggableLink.attr("d",t3([t.x,t.y],this.draggableLinkEnd))}}createDrag(){return function lde(e,i,n){return function hoe(){var a,l,c,d,e=loe,i=coe,n=doe,t=uoe,r={},s=pg("start","drag","end"),o=0,u=0;function h(y){y.on("mousedown.drag",f).filter(t).on("touchstart.drag",m).on("touchmove.drag",b,aoe).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(y,E){if(!d&&e.call(this,y,E)){var T=w(this,i.call(this,y,E),y,E,"mouse");T&&(jn(y.view).on("mousemove.drag",_,oh).on("mouseup.drag",g,oh),mL(y.view),tk(y),c=!1,a=y.clientX,l=y.clientY,T("start",y))}}function _(y){if(ac(y),!c){var E=y.clientX-a,T=y.clientY-l;c=E*E+T*T>u}r.mouse("drag",y)}function g(y){jn(y.view).on("mousemove.drag mouseup.drag",null),pL(y.view,c),ac(y),r.mouse("end",y)}function m(y,E){if(e.call(this,y,E)){var oe,te,T=y.changedTouches,B=i.call(this,y,E),z=T.length;for(oe=0;oe1===t.button).on("start",e).on("drag",i).on("end",n)}((t,r)=>this.onDragStart(t,r),(t,r)=>this.onDrag(t,r),(t,r)=>this.onDragEnd(t,r))}onDragStart(t,r){Yr(t.sourceEvent),0===t.active&&this.simulation?.alphaTarget(.5).restart(),r.fx=r.x,r.fy=r.y}onDrag(t,r){r.fx=t.x,r.fy=t.y}onDragEnd(t,r){0===t.active&&this.simulation?.alphaTarget(0),r.fx=void 0,r.fy=void 0}onPointerDown(t,r){if(!this.allowEditing||0!==t.button)return;Yr(t);const s=[r.x,r.y];this.draggableLinkEnd=s,this.draggableLinkSourceNode=r,this.draggableLink.style("marker-end","url(#draggable-link-arrow").classed("hidden",!1).attr("d",t3(s,s)),this.restart()}onPointerMoved(t){if(Yr(t),void 0!==this.draggableLinkSourceNode){const r=function Goe(e,i){return e.target&&(e=fL(e),void 0===i&&(i=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>zn(n,i))}(t,this.graphHost.nativeElement)[0],s=[(r[0]-this.xOffset)/this.scale,(r[1]-this.yOffset)/this.scale];"touch"===t.pointerType&&(s[1]=s[1]-4*this.config.nodeRadius,this.draggableLinkTargetNode=this.graph.nodes.find(o=>Math.sqrt(Math.pow(o.x-s[0],2)+Math.pow(o.y-s[1],2))s.target.id===t.id&&s.source.id===r.id)&&this.graph.links.some(s=>s.target.id===r.id&&s.source.id===t.id)}onSettingsChanged(t){const r=this.enableSimulation!==t.enableSimulation,s=this.showLabels!==t.showLabels;this.enableSimulation=t.enableSimulation,this.showLabels=t.showLabels,r&&(this.simulation?.stop(),this.simulation=this.createSimulation()),(r||s)&&this.restart(1)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on),p(Yo),p(oo),p(DL))},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph","graph","","allowEditing",""]],viewQuery:function(t,r){if(1&t&&Xe(iue,5),2&t){let s;Q(s=J())&&(r.graphHost=s.first)}},hostBindings:function(t,r){1&t&&H("resize",function(o){return r.ngAfterViewChecked(o)},0,US)},inputs:{graph:"graph",allowEditing:"allowEditing",config:"config",graphExportRequests:"graphExportRequests"},outputs:{linkSelected:"linkSelected",nodeSelected:"nodeSelected",linkDeleted:"linkDeleted",nodeDeleted:"nodeDeleted",saveRequested:"saveRequested",graphExported:"graphExported"},features:[bt],attrs:nue,decls:27,vars:25,consts:[[1,"graph-tool-container"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["color","primary","matTooltipClass","multiline-tooltip",1,"help-icon",3,"matTooltip"],["color","accent",1,"automatic-layout-toggle",3,"checked","change"],["color","accent",3,"checked","change"],["mat-mini-fab","","color","primary","class","create-node-button","matTooltipPosition","left",3,"matTooltip","click",4,"ngIf"],[1,"graph"],["graphHost",""],["mat-mini-fab","","color","primary","matTooltipPosition","left",1,"create-node-button",3,"matTooltip","click"]],template:function(t,r){1&t&&(k(0,"div",0)(1,"button",1),H("click",function(){return r.saveGraph()}),U(2,"translate"),k(3,"mat-icon"),N(4,"save"),D()(),k(5,"button",1),H("click",function(){return r.exportGraph()}),U(6,"translate"),k(7,"mat-icon"),N(8,"get_app"),D()(),k(9,"button",1),H("click",function(){return r.resetGraph()}),U(10,"translate"),k(11,"mat-icon"),N(12,"location_searching"),D()(),k(13,"mat-icon",2),U(14,"async"),N(15,"help_outlined"),D(),k(16,"mat-slide-toggle",3),H("change",function(){return r.toggleSimulation()}),U(17,"async"),N(18),U(19,"translate"),D(),k(20,"mat-slide-toggle",4),H("change",function(){return r.toggleLabels()}),U(21,"async"),N(22),U(23,"translate"),D()(),Z(24,rue,4,3,"button",5),be(25,"div",6,7)),2&t&&(C(1),nn("matTooltip",Y(2,9,"actions.save")),C(4),nn("matTooltip",Y(6,11,"actions.export")),C(4),nn("matTooltip",Y(10,13,"graph.reset-graph")),C(4),R("matTooltip",Y(14,15,r.controlsTooltipText)||""),C(3),R("checked",Y(17,17,r.graphSettings).enableSimulation),C(2),ot(" ",Y(19,19,"graph.simulation")," "),C(2),R("checked",Y(21,21,r.graphSettings).showLabels),C(2),ot(" ",Y(23,23,"graph.labels")," "),C(2),R("ngIf",r.allowEditing))},dependencies:[ki,Fi,kn,Rx,xh,Pr,di],styles:["[_nghost-%COMP%]{height:100%}[_nghost-%COMP%], .graph[_ngcontent-%COMP%], .graph[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{display:block;min-height:400px}"]}),i})();const a3={title:"fol.relation.plural",placeholder:"editor.symbols.new-relation",symbolPattern:"[A-Z]+([a-z]|[A-Z])*",patternError:"validation.relation-pattern-error"},oue={title:"fol.function.plural",placeholder:"editor.symbols.new-function",symbolPattern:"[a-z]+([a-z]|[A-Z])*",patternError:"validation.function-pattern-error"},aue={title:"fol.constant.plural",placeholder:"editor.symbols.new-constant",symbolPattern:"[a-z]+([a-z]|[A-Z])*",patternError:"validation.constant-pattern-error"},lue=["*"],l3=new M("MatChipRemove"),c3=new M("MatChipAvatar"),d3=new M("MatChipTrailingIcon");class cue{constructor(i){this._elementRef=i}}const due=Nu(ro($r(cue),"primary"),-1);let n_=(()=>{var e;class i extends due{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const r=re(t);r!==this._selected&&(this._selected=r,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=re(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=re(t)}get removable(){return this._removable}set removable(t){this._removable=re(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(t,r,s,o,a,l,c,d){super(t),this._ngZone=r,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new $,this._onBlur=new $,this.selectionChange=new W,this.destroyed=new W,this.removed=new W,this._addHostClassName(),this._chipRippleTarget=l.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new na(this,r,this._chipRippleTarget,s),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=d&&parseInt(d)||-1}_addHostClassName(){const t="mat-basic-chip",r=this._elementRef.nativeElement;r.hasAttribute(t)||r.tagName.toLowerCase()===t?r.classList.add(t):r.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled&&t.preventDefault()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(ze(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(ce),p(Ot),p(Kp,8),p(st),p(xe),p(ti,8),Mi("tabindex"))},e.\u0275dir=I({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,c3,5),Me(s,d3,5),Me(s,l3,5)),2&t){let o;Q(o=J())&&(r.avatar=o.first),Q(o=J())&&(r.trailingIcon=o.first),Q(o=J())&&(r.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(t,r){1&t&&H("click",function(o){return r._handleClick(o)})("keydown",function(o){return r._handleKeydown(o)})("focus",function(){return r.focus()})("blur",function(){return r._blur()}),2&t&&(_e("tabindex",r.disabled?null:r.tabIndex)("role",r.role)("disabled",r.disabled||null)("aria-disabled",r.disabled.toString())("aria-selected",r.ariaSelected),fe("mat-chip-selected",r.selected)("mat-chip-with-avatar",r.avatar)("mat-chip-with-trailing-icon",r.trailingIcon||r.removeIcon)("mat-chip-disabled",r.disabled)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[L]}),i})(),u3=(()=>{var e;class i{constructor(t,r){this._parentChip=t,"BUTTON"===r.nativeElement.nodeName&&r.nativeElement.setAttribute("type","button")}_handleClick(t){const r=this._parentChip;r.removable&&!r.disabled&&r.remove(),t.stopPropagation(),t.preventDefault()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(n_),p(ne))},e.\u0275dir=I({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,r){1&t&&H("click",function(o){return r._handleClick(o)})},features:[K([{provide:l3,useExisting:e}])]}),i})();const Qk=new M("mat-chips-default-options"),fue=sx(class{constructor(e,i,n,t){this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=t,this.stateChanges=new $}});let mue=0;class pue{constructor(i,n){this.source=i,this.value=n}}let h3=(()=>{var e;class i extends fue{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(t){this._explicitRole=t}get multiple(){return this._multiple}set multiple(t){this._multiple=re(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ml.required)??!1}set required(t){this._required=re(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=re(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=re(t),this._syncChipsState()}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Ft(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Ft(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Ft(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Ft(...this.chips.map(t=>t.destroyed))}constructor(t,r,s,o,a,l,c){super(l,o,a,c),this._elementRef=t,this._changeDetectorRef=r,this._dir=s,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new $,this._uid="mat-chip-list-"+mue++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new W,this.valueChange=new W,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new $w(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(ke(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe(Di(null),ke(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new ao(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const r=t.target;r&&r.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&ts.deselect()),Array.isArray(t))t.forEach(s=>this._selectValue(s,r)),this._sortValues();else{const s=this._selectValue(t,r);s&&r&&this._keyManager.setActiveItem(s)}}_selectValue(t,r=!0){const s=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,t));return s&&(r?s.selectViaInteraction():s.select(),this._selectionModel.select(s)),s}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(r=>{r!==t&&r.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let r=null;r=Array.isArray(this.selected)?this.selected.map(s=>s.value):this.selected?this.selected.value:t,this._value=r,this.change.emit(new pue(this,r)),this.valueChange.emit(r),this._onChange(r),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(r=>{!this._selectionModel.isSelected(r)&&r.selected&&r.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let r=this.chips.toArray().indexOf(t.chip);this._isValidIndex(r)&&this._keyManager.updateActiveItem(r),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const r=t.chip,s=this.chips.toArray().indexOf(t.chip);this._isValidIndex(s)&&r._hasFocus&&(this._lastDestroyedChipIndex=s)})}_originatesFromChip(t){let r=t.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-chip"))return!0;r=r.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(st),p(an,8),p(Il,8),p(Ol,8),p(Pu),p(or,10))},e.\u0275cmp=ie({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,r,s){if(1&t&&Me(s,n_,5),2&t){let o;Q(o=J())&&(r.chips=o)}},hostAttrs:["ngSkipHydration","",1,"mat-chip-list"],hostVars:14,hostBindings:function(t,r){1&t&&H("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(o){return r._keydown(o)}),2&t&&(On("id",r._uid),_e("tabindex",r.disabled?null:r._tabIndex)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-multiselectable",r.multiple)("role",r.role)("aria-orientation",r.ariaOrientation),fe("mat-chip-list-disabled",r.disabled)("mat-chip-list-invalid",r.errorState)("mat-chip-list-required",r.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[K([{provide:xc,useExisting:e}]),L],ngContentSelectors:lue,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,r){1&t&&(ct(),k(0,"div",0),we(1),D())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),i})(),gue=0,f3=(()=>{var e;class i{set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=re(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=re(t)}get empty(){return!this.inputElement.value}constructor(t,r){this._elementRef=t,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new W,this.placeholder="",this.id="mat-chip-list-input-"+gue++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=r.separatorKeyCodes}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(9===t.keyCode&&!qi(t,"shiftKey")&&this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),(!t||this._isSeparatorKey(t))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!qi(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Qk))},e.\u0275dir=I({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,r){1&t&&H("keydown",function(o){return r._keydown(o)})("keyup",function(o){return r._keyup(o)})("blur",function(){return r._blur()})("focus",function(){return r._focus()})("input",function(){return r._onInput()}),2&t&&(On("id",r.id),_e("disabled",r.disabled||null)("placeholder",r.placeholder||null)("aria-invalid",r._chipList&&r._chipList.ngControl?r._chipList.ngControl.invalid:null)("aria-required",r._chipList&&r._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[bt]}),i})(),m3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Pu,{provide:Qk,useValue:{separatorKeyCodes:[13]}}],imports:[Fe]}),i})();const _ue=["symbols","","config",""];function bue(e,i){if(1&e){const n=Yt();k(0,"mat-chip",5),H("removed",function(){const s=tt(n).$implicit;return it(ue().removeSymbol(s))}),N(1),k(2,"mat-icon",6),N(3,"cancel"),D()()}if(2&e){const n=i.$implicit;R("selectable",!1)("removable",!0),C(1),ot(" ",n," ")}}function vue(e,i){if(1&e&&(k(0,"mat-error"),N(1),U(2,"translate"),D()),2&e){const n=ue();C(1),pe(Y(2,1,n.config.patternError))}}let p3=(()=>{var e;class i{constructor(t){this.log=t,this.symbolsUpdated=new W,this.formControl=new Al("")}ngOnChanges(t){void 0!==t.config&&(this.formControl=new Al("",Ml.pattern(this.config.symbolPattern)))}addSymbol(t){this.formControl.invalid||t.value.split(",").map(r=>r.trim()).forEach(r=>{r.length>=1&&(this.log.debug(`Adding symbol ${r}.`),t.input.value="",this.symbols.add(r),this.symbolsUpdated.emit())})}removeSymbol(t){this.log.debug(`Removing symbol ${t}.`),this.symbols.delete(t),this.symbolsUpdated.emit()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs))},e.\u0275cmp=ie({type:e,selectors:[["apollo-symbol-editor","symbols","","config",""]],inputs:{symbols:"symbols",config:"config"},outputs:{symbolsUpdated:"symbolsUpdated"},features:[bt],attrs:_ue,decls:10,vars:10,consts:[[1,"symbol-chip-input"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["autocomplete","off",3,"placeholder","matChipInputFor","formControl","matChipInputTokenEnd"],[4,"ngIf"],[3,"selectable","removable","removed"],["matChipRemove",""]],template:function(t,r){if(1&t&&(k(0,"mat-form-field",0)(1,"mat-label"),N(2),U(3,"translate"),D(),k(4,"mat-chip-list",null,1),Z(6,bue,4,3,"mat-chip",2),k(7,"input",3),H("matChipInputTokenEnd",function(o){return r.addSymbol(o)}),U(8,"translate"),D(),Z(9,vue,3,3,"mat-error",4),D()()),2&t){const s=Rt(5);C(2),pe(Y(3,6,r.config.title)),C(4),R("ngForOf",r.symbols),C(1),nn("placeholder",Y(8,8,r.config.placeholder)),R("matChipInputFor",s)("formControl",r.formControl),C(2),R("ngIf",r.formControl.invalid)}},dependencies:[Nd,ki,Uo,zd,h3,n_,f3,u3,qce,yh,ga,kn,Rl,di],styles:["[_nghost-%COMP%]{display:block}.symbol-chip-input[_ngcontent-%COMP%]{width:100%}"]}),i})();const yue=["link",""];function wue(e,i){1&e&&(fi(0),k(1,"mat-card-subtitle"),N(2),U(3,"translate"),D(),mi()),2&e&&(C(2),pe(Y(3,1,"editor.link.none-selected")))}function xue(e,i){if(1&e){const n=Yt();fi(0),k(1,"mat-card-title")(2,"span",2),N(3),U(4,"translate"),k(5,"mat-icon"),N(6,"arrow_right_alt"),D(),N(7),D()(),k(8,"mat-card-content")(9,"div")(10,"apollo-symbol-editor",3),H("symbolsUpdated",function(){return tt(n),it(ue().onLinkUpdated())}),D()(),k(11,"div")(12,"apollo-symbol-editor",3),H("symbolsUpdated",function(){return tt(n),it(ue().onLinkUpdated())}),D()()(),k(13,"mat-card-actions")(14,"div",4)(15,"button",5),H("click",function(){return tt(n),it(ue().requestLinkDeletion())}),U(16,"translate"),k(17,"mat-icon"),N(18,"delete"),D()()()(),mi()}if(2&e){const n=ue();C(3),rm("",Y(4,8,"editor.link.title")," ",n.link.source.id,""),C(4),pe(n.link.target.id),C(3),R("symbols",n.link.relations)("config",n.relationEditorConfig),C(2),R("symbols",n.link.functions)("config",n.functionEditorConfig),C(3),R("matTooltip",Y(16,10,"actions.delete"))}}let kue=(()=>{var e;class i{constructor(t){this.log=t,this.linkDeletionRequested=new W,this.linkUpdated=new W,this.relationEditorConfig=a3,this.functionEditorConfig=oue}requestLinkDeletion(){if(null!==this.link){const t=this.link;this.link=null,this.linkDeletionRequested.emit(t)}}onLinkUpdated(){this.linkUpdated.emit()}onLinkDeleted(t){null!==this.link&&this.link.source.id===t.source.id&&this.link.target.id===t.target.id&&(this.log.debug(`Removing Link ${this.link.source.id}-${this.link.target.id}, because it has been deleted.`),this.link=null)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs))},e.\u0275cmp=ie({type:e,selectors:[["apollo-link-form","link",""]],inputs:{link:"link"},outputs:{linkDeletionRequested:"linkDeletionRequested",linkUpdated:"linkUpdated"},attrs:yue,decls:3,vars:2,consts:[[1,"link-form-card","mat-elevation-z4"],[4,"ngIf"],[1,"link-title"],[3,"symbols","config","symbolsUpdated"],[1,"form-button-container"],["type","button","mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,r){1&t&&(k(0,"mat-card",0),Z(1,wue,4,3,"ng-container",1),Z(2,xue,19,12,"ng-container",1),D()),2&t&&(C(1),R("ngIf",!r.link),C(1),R("ngIf",!!r.link))},dependencies:[ki,Fi,Yu,tc,Wu,Ox,ug,kn,xh,p3,di],styles:["[_nghost-%COMP%]{display:block}.link-form-card[_ngcontent-%COMP%]{overflow:auto}.form-button-container[_ngcontent-%COMP%]{text-align:right}.link-title[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}"]}),i})();const Cue=["node",""];function Due(e,i){1&e&&(fi(0),k(1,"mat-card-subtitle"),N(2),U(3,"translate"),D(),mi()),2&e&&(C(2),pe(Y(3,1,"editor.node.none-selected")))}function Sue(e,i){if(1&e){const n=Yt();fi(0),k(1,"mat-card-title"),N(2),U(3,"translate"),D(),k(4,"mat-card-content")(5,"div")(6,"apollo-symbol-editor",2),H("symbolsUpdated",function(){return tt(n),it(ue().onNodeUpdated())}),D()(),k(7,"div")(8,"apollo-symbol-editor",2),H("symbolsUpdated",function(){return tt(n),it(ue().onNodeUpdated())}),D()()(),k(9,"mat-card-actions")(10,"div",3)(11,"button",4),H("click",function(){return tt(n),it(ue().requestNodeDeletion())}),U(12,"translate"),k(13,"mat-icon"),N(14,"delete"),D()()()(),mi()}if(2&e){const n=ue();C(2),rm("",Y(3,7,"editor.node.title")," ",n.node.id,""),C(4),R("symbols",n.node.relations)("config",n.relationEditorConfig),C(2),R("symbols",n.node.constants)("config",n.constantEditorConfig),C(3),R("matTooltip",Y(12,9,"actions.delete"))}}let Eue=(()=>{var e;class i{constructor(t){this.log=t,this.nodeDeletionRequested=new W,this.nodeUpdated=new W,this.relationEditorConfig=a3,this.constantEditorConfig=aue}requestNodeDeletion(){if(null!==this.node){const t=this.node;this.node=null,this.nodeDeletionRequested.emit(t)}}onNodeUpdated(){this.nodeUpdated.emit()}onNodeDeleted(t){null!==this.node&&this.node.id===t.id&&(this.log.debug(`Removing Node ${this.node.id}, because it has been deleted.`),this.node=null)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs))},e.\u0275cmp=ie({type:e,selectors:[["apollo-node-form","node",""]],inputs:{node:"node"},outputs:{nodeDeletionRequested:"nodeDeletionRequested",nodeUpdated:"nodeUpdated"},attrs:Cue,decls:3,vars:2,consts:[[1,"node-form-card","mat-elevation-z4"],[4,"ngIf"],[3,"symbols","config","symbolsUpdated"],[1,"form-button-container"],["type","button","mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,r){1&t&&(k(0,"mat-card",0),Z(1,Due,4,3,"ng-container",1),Z(2,Sue,15,11,"ng-container",1),D()),2&t&&(C(1),R("ngIf",!r.node),C(1),R("ngIf",!!r.node))},dependencies:[ki,Fi,Yu,tc,Wu,Ox,ug,kn,xh,p3,di],styles:["[_nghost-%COMP%]{display:block}.node-form-card[_ngcontent-%COMP%]{overflow:auto}.form-button-container[_ngcontent-%COMP%]{text-align:right}"]}),i})();const Mue=["graph",""];let g3=(()=>{var e;class i{constructor(){this.saveRequested=new W,this.graphExported=new W}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph-editor","graph",""]],inputs:{graph:"graph",graphExportRequests:"graphExportRequests"},outputs:{saveRequested:"saveRequested",graphExported:"graphExported"},attrs:Mue,decls:13,vars:11,consts:[[1,"graph-container"],[1,"graph-card","mat-elevation-z4"],[1,"graph-card-content"],[3,"graph","allowEditing","graphExportRequests","nodeDeleted","linkDeleted","saveRequested","graphExported"],["graphComponent",""],[1,"form-container"],[3,"node","nodeUpdated","nodeDeletionRequested"],["nodeForm",""],[3,"link","linkUpdated","linkDeletionRequested"],["linkForm",""]],template:function(t,r){if(1&t){const s=Yt();k(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"apollo-graph",3,4),H("nodeDeleted",function(a){return tt(s),it(Rt(8).onNodeDeleted(a))})("linkDeleted",function(a){return tt(s),it(Rt(11).onLinkDeleted(a))})("saveRequested",function(a){return r.saveRequested.emit(a)})("graphExported",function(a){return r.graphExported.emit(a)}),U(5,"async"),D()()()(),k(6,"div",5)(7,"apollo-node-form",6,7),H("nodeUpdated",function(){return tt(s),it(Rt(4).restart())})("nodeDeletionRequested",function(a){return tt(s),it(Rt(4).removeNode(a))}),U(9,"async"),D(),k(10,"apollo-link-form",8,9),H("linkUpdated",function(){return tt(s),it(Rt(4).restart())})("linkDeletionRequested",function(a){return tt(s),it(Rt(4).removeLink(a))}),U(12,"async"),D()()}if(2&t){const s=Rt(4);C(3),R("graph",Y(5,5,r.graph))("allowEditing",!0)("graphExportRequests",r.graphExportRequests),C(4),R("node",Y(9,7,s.nodeSelected)),C(3),R("link",Y(12,9,s.linkSelected))}},dependencies:[Yu,tc,sue,kue,Eue,Pr],styles:["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:row}.graph-container[_ngcontent-%COMP%]{display:block;margin-right:1rem;flex-grow:4}.graph-card-content[_ngcontent-%COMP%], .graph-card[_ngcontent-%COMP%], .graph-container[_ngcontent-%COMP%]{display:block;min-height:400px}.graph-card[_ngcontent-%COMP%]{padding:0;height:100%;overflow:hidden}.graph-card-content[_ngcontent-%COMP%]{height:100%;overflow:hidden}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;flex-grow:1;flex-shrink:0}.form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}@media screen and (max-width: 800px){[_nghost-%COMP%]{flex-direction:column}.graph-container[_ngcontent-%COMP%]{margin-right:0;margin-bottom:1rem}.form-container[_ngcontent-%COMP%]{flex-grow:0;margin-bottom:1rem}}"]}),i})(),Tue=(()=>{var e;class i{constructor(t,r,s,o,a,l){this.backendService=t,this.dialog=r,this.route=s,this.router=o,this.snackBarService=a,this.store=l,this.assignment=this.store.select("assignments").pipe(se(c=>c[this.slug]),zt(c=>{void 0===c&&this.router.navigateByUrl("/assignments")})),this.firstGraph=new Cn,this.firstGraph$=ee(this.firstGraph),this.secondGraph=new Cn,this.secondGraph$=ee(this.secondGraph),this.slug=this.route.snapshot.params.slug}submit(){Fw(this.assignment).then(t=>{const r={assignmentId:t.id,firstGraph:this.firstGraph.toDomainGraph(),secondGraph:this.secondGraph.toDomainGraph()};this.checkSolution(r)})}checkSolution(t){const r=this.backendService.checkAssignmentSolution(t);this.dialog.open(g2,{width:"90%",data:r,autoFocus:!1}).afterClosed().pipe($e(o=>void 0!==o)).subscribe(o=>{o.correct&&this.store.dispatch(DP({key:t.assignmentId})),this.dialog.open(Mie,{autoFocus:!1,data:o,width:"50vw",minWidth:"250px",maxWidth:"750px"})})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Nx),p(oo),p(Js),p(Ri),p(aa),p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignment"]],decls:23,vars:20,consts:[[2,"display","flex","justify-content","flex-end"],["mat-raised-button","","color","accent",3,"click"],[1,"title-a"],[1,"editor-a",3,"graph"],[1,"title-b"],[1,"editor-b",3,"graph"]],template:function(t,r){if(1&t&&(k(0,"mat-card")(1,"mat-card-title"),N(2),U(3,"async"),D(),k(4,"mat-card-content")(5,"p"),N(6),U(7,"async"),D(),k(8,"p"),N(9),U(10,"translate"),D()(),k(11,"mat-card-actions",0)(12,"button",1),H("click",function(){return r.submit()}),N(13),U(14,"translate"),D()()(),k(15,"h1",2),N(16),U(17,"translate"),D(),be(18,"apollo-graph-editor",3),k(19,"h1",4),N(20),U(21,"translate"),D(),be(22,"apollo-graph-editor",5)),2&t){let s,o;C(2),ot(" ",null==(s=Y(3,8,r.assignment))?null:s.title," "),C(4),ot("\u03c6 = ",null==(o=Y(7,10,r.assignment))?null:o.formula,""),C(3),pe(Y(10,12,"assignments.hint")),C(4),pe(Y(14,14,"actions.submit")),C(3),ot("",Y(17,16,"graph.title")," A"),C(2),R("graph",r.firstGraph$),C(2),ot("",Y(21,18,"graph.title")," B"),C(2),R("graph",r.secondGraph$)}},dependencies:[Fi,Yu,tc,Wu,ug,g3,Pr,di],styles:["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}.editor-a[_ngcontent-%COMP%], .editor-b[_ngcontent-%COMP%]{flex-grow:1}.title-a[_ngcontent-%COMP%], .title-b[_ngcontent-%COMP%]{margin-bottom:.5rem}.title-a[_ngcontent-%COMP%]{margin-top:1rem}@media screen and (min-width: 801px){.title-b[_ngcontent-%COMP%]{margin-top:1rem}}"]}),i})();const Iue=["assignment",""];function Aue(e,i){if(1&e&&(k(0,"mat-card-content"),N(1),D()),2&e){const n=ue();C(1),ot(" ",n.shortenedDescription," ")}}const Rue=function(e){return{date:e}};let Oue=(()=>{var e;class i{ngOnInit(){const t=this.assignment.description;if(void 0!==t){if(t.length<=100)return void(this.shortenedDescription=t);this.shortenedDescription=t.substring(0,97).concat("...")}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignment-card","assignment",""]],inputs:{assignment:"assignment"},attrs:Iue,decls:14,vars:16,consts:[[4,"ngIf"],[2,"display","flex","justify-content","flex-end"],["mat-button","","color","accent",3,"routerLink"]],template:function(t,r){1&t&&(k(0,"div")(1,"mat-card")(2,"mat-card-title"),N(3),D(),k(4,"mat-card-subtitle"),N(5),U(6,"translate"),U(7,"date"),U(8,"translate"),D(),Z(9,Aue,2,1,"mat-card-content",0),k(10,"mat-card-actions",1)(11,"button",2),N(12),U(13,"translate"),D()()()()),2&t&&(C(3),ot(" ",r.assignment.title," "),C(2),ot(" ",r.assignment.completedOn?yl(6,5,"assignments.completed-on",cm(14,Rue,Y(7,8,r.assignment.completedOn))):Y(8,10,"assignments.not-completed")," "),C(4),R("ngIf",r.shortenedDescription),C(2),R("routerLink",r.assignment.id),C(1),pe(Y(13,12,"actions.open")))},dependencies:[Hl,ki,Fi,Yu,tc,Wu,Ox,ug,Rm,di],styles:["[_nghost-%COMP%]{display:block}"]}),i})();function Fue(e,i){1&e&&be(0,"apollo-assignment-card",2),2&e&&R("assignment",i.$implicit)}let Nue=(()=>{var e;class i{constructor(t,r){this.backendService=t,this.store=r,this.assignments=this.store.select("assignments").pipe(se(s=>Object.values(s)))}ngOnInit(){this.backendService.fetchAssignments()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Nx),p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-assignments"]],decls:3,vars:3,consts:[[1,"assignment-grid"],["class","grid-item",3,"assignment",4,"ngFor","ngForOf"],[1,"grid-item",3,"assignment"]],template:function(t,r){1&t&&(k(0,"div",0),Z(1,Fue,1,1,"apollo-assignment-card",1),U(2,"async"),D()),2&t&&(C(1),R("ngForOf",Y(2,1,r.assignments)))},dependencies:[Nd,Oue,Pr],styles:["[_nghost-%COMP%]{display:block}.assignment-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.assignment-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}@media screen and (min-width: 801px){.assignment-grid[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.assignment-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:1rem;flex-grow:1;max-width:16rem}}"]}),i})();const Jk={name:"Example Graph",description:"An example graph.",lastEdit:Date.now(),nodes:[{name:"0",relations:[],constants:["a","b"]},{name:"1",relations:[],constants:["c"]},{name:"2",relations:[],constants:["d"]},{name:"3",relations:[],constants:["e","f"]}],edges:[{source:"0",target:"0",relations:["R"],functions:[]},{source:"0",target:"1",relations:["A"],functions:[]},{source:"1",target:"2",relations:["B"],functions:[]},{source:"2",target:"1",relations:["B"],functions:[]}]};var Pue=Function.prototype.toString,eC=Object.create,Lue=Object.prototype.toString,Bue=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(i){return!!~this._keys.indexOf(i)},e.prototype.get=function(i){return this._values[this._keys.indexOf(i)]},e.prototype.set=function(i,n){this._keys.push(i),this._values.push(n)},e}(),zue=typeof WeakMap<"u"?function jue(){return new WeakMap}:function Vue(){return new Bue};function tC(e){if(!e)return eC(null);var i=e.constructor;if(i===Object)return e===Object.prototype?{}:eC(e);if(~Pue.call(i).indexOf("[native code]"))try{return new i}catch{}return eC(e)}var Uue="g"===/test/g.flags?function $ue(e){return e.flags}:function Hue(e){var i="";return e.global&&(i+="g"),e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),e.sticky&&(i+="y"),i};function b3(e){var i=Lue.call(e);return i.substring(8,i.length-1)}var que=typeof Symbol<"u"?function Gue(e){return e[Symbol.toStringTag]||b3(e)}:b3,Wue=Object.defineProperty,Yue=Object.getOwnPropertyDescriptor,v3=Object.getOwnPropertyNames,iC=Object.getOwnPropertySymbols,y3=Object.prototype,w3=y3.hasOwnProperty,Kue=y3.propertyIsEnumerable,x3="function"==typeof iC,Zue=x3?function Xue(e){return v3(e).concat(iC(e))}:v3;function r_(e,i,n){for(var t=Zue(e),r=0,s=t.length,o=void 0,a=void 0;r{var e;class i{constructor(t){this.snackBarService=t,this.graphImport=new W,this.textInputFormControl=new Al("")}ngAfterViewInit(){this.textInput.nativeElement.addEventListener("keydown",t=>{const r=this.textInput.nativeElement;if("Tab"===t.key){Yr(t);const s=r.selectionStart??0,o=r.selectionEnd??0;r.value=r.value.substring(0,s)+"\t"+r.value.substring(o),r.selectionStart=r.selectionEnd=s+1}})}onPaste(t){this.handleTextInput(t.clipboardData?.getData("text")??"")}triggerFileImport(){this.fileInput.nativeElement.click()}onFileInput(){const t=this.fileInput.nativeElement.files;null===t||t.length<1?this.snackBarService.openSnackBar({key:"import.file-error"},void 0,1e4):t[0].text().then(r=>this.handleTextInput(r)),this.fileInput.nativeElement.value=""}handleTextInput(t=this.textInputFormControl.value){try{const r=Dle(t);Cn.fromDomainGraph(r).then(()=>this.graphImport.emit(r)).catch(s=>{void 0!==s.key?this.snackBarService.openSnackBar(s,void 0):this.snackBarService.openSnackBar({key:"validation.parse-error"},void 0,1e4)})}catch{this.snackBarService.openSnackBar({key:"validation.parse-error"},void 0,1e4)}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(aa))},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph-import"]],viewQuery:function(t,r){if(1&t&&(Xe(_he,5),Xe(bhe,5)),2&t){let s;Q(s=J())&&(r.textInput=s.first),Q(s=J())&&(r.fileInput=s.first)}},outputs:{graphImport:"graphImport"},decls:17,vars:13,consts:[[1,"import-form-field",2,"margin-bottom","-0.25rem",3,"keyup.enter"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","50",3,"formControl","placeholder","paste"],["textInput","","autosize","cdkTextareaAutosize"],["type","file","id","file","accept",".json,.yml,text/json,application/json,text/yml",2,"display","none",3,"change"],["fileInput",""],["mat-raised-button","","color","primary",3,"click"]],template:function(t,r){1&t&&(k(0,"div")(1,"mat-form-field",0),H("keyup.enter",function(){return r.handleTextInput()}),k(2,"mat-label"),N(3),U(4,"translate"),D(),k(5,"textarea",1,2),H("paste",function(o){return r.onPaste(o)}),U(8,"translate"),D()(),k(9,"input",3,4),H("change",function(){return r.onFileInput()}),D(),k(11,"span"),N(12),U(13,"translate"),D(),k(14,"button",5),H("click",function(){return r.triggerFileImport()}),N(15),U(16,"translate"),D()()),2&t&&(C(3),pe(Y(4,5,"import.text")),C(2),nn("placeholder",Y(8,7,"import.format-hint")),R("formControl",r.textInputFormControl),C(7),pe(Y(13,9,"misc.or")),C(3),pe(Y(16,11,"import.file")))},dependencies:[Uo,zd,Fi,yh,ga,ede,Xk,Rl,di],styles:["[_nghost-%COMP%]{display:block}h1[_ngcontent-%COMP%]{margin:0}div[_ngcontent-%COMP%]{display:flex;flex-direction:column}div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{max-width:-moz-fit-content;max-width:fit-content}"]}),i})();const yhe=[[["caption"]],[["colgroup"],["col"]]],whe=["caption","colgroup, col"];function sC(e){return class extends e{get sticky(){return this._sticky}set sticky(i){const n=this._sticky;this._sticky=re(i),this._hasStickyChanged=n!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const ba=new M("CDK_TABLE");let mo=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkCellDef",""]]}),i})(),po=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderCellDef",""]]}),i})(),Ec=(()=>{var e;class i{constructor(t){this.template=t}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterCellDef",""]]}),i})();class Dhe{}const She=sC(Dhe);let _r=(()=>{var e;class i extends She{get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const r=this._stickyEnd;this._stickyEnd=re(t),this._hasStickyChanged=r!==this._stickyEnd}constructor(t){super(),this._table=t,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,mo,5),Me(s,po,5),Me(s,Ec,5)),2&t){let o;Q(o=J())&&(r.cell=o.first),Q(o=J())&&(r.headerCell=o.first),Q(o=J())&&(r.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[K([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),L]}),i})();class oC{constructor(i,n){n.nativeElement.classList.add(...i._columnCssClassName)}}let a_=(()=>{var e;class i extends oC{constructor(t,r){super(t,r)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(_r),p(ne))},e.\u0275dir=I({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[L]}),i})(),l_=(()=>{var e;class i extends oC{constructor(t,r){if(super(t,r),1===t._table?._elementRef.nativeElement.nodeType){const s=t._table._elementRef.nativeElement.getAttribute("role");r.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return(e=i).\u0275fac=function(t){return new(t||e)(p(_r),p(ne))},e.\u0275dir=I({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[L]}),i})();class I3{constructor(){this.tasks=[],this.endTasks=[]}}const c_=new M("_COALESCED_STYLE_SCHEDULER");let lC=(()=>{var e;class i{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new $}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new I3,this._getScheduleObservable().pipe(ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new I3;for(const r of t.tasks)r();for(const r of t.endTasks)r()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Jt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ze(1))}}return(e=i).\u0275fac=function(t){return new(t||e)(x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),cC=(()=>{var e;class i{constructor(t,r){this.template=t,this._differs=r}ngOnChanges(t){if(!this._columnsDiffer){const r=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof va?t.headerCell.template:this instanceof ya?t.footerCell.template:t.cell.template}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn))},e.\u0275dir=I({type:e,features:[bt]}),i})();class Ehe extends cC{}const Mhe=sC(Ehe);let va=(()=>{var e;class i extends Mhe{constructor(t,r,s){super(t,r),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn),p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[L,bt]}),i})();class The extends cC{}const Ihe=sC(The);let ya=(()=>{var e;class i extends Ihe{constructor(t,r,s){super(t,r),this._table=s}ngOnChanges(t){super.ngOnChanges(t)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn),p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[L,bt]}),i})(),Mc=(()=>{var e;class i extends cC{constructor(t,r,s){super(t,r),this._table=s}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt),p(Fn),p(ba,8))},e.\u0275dir=I({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[L]}),i})(),qn=(()=>{var e;class i{constructor(t){this._viewContainer=t,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return(e=i).mostRecentCellOutlet=null,e.\u0275fac=function(t){return new(t||e)(p(Vt))},e.\u0275dir=I({type:e,selectors:[["","cdkCellOutlet",""]]}),i})(),kh=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),Dh=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),Tc=(()=>{var e;class i{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Pt))},e.\u0275dir=I({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const A3=["top","bottom","left","right"];class Ahe{constructor(i,n,t,r,s=!0,o=!0,a){this._isNativeHtmlTable=i,this._stickCellCss=n,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${n}-border-elem-top`,bottom:`${n}-border-elem-bottom`,left:`${n}-border-elem-left`,right:`${n}-border-elem-right`}}clearStickyPositioning(i,n){const t=[];for(const r of i)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let s=0;s{for(const r of t)this._removeStickyStyle(r,n)})}updateStickyColumns(i,n,t,r=!0){if(!i.length||!this._isBrowser||!n.some(h=>h)&&!t.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=i[0],o=s.children.length,a=this._getCellWidths(s,r),l=this._getStickyStartColumnPositions(a,n),c=this._getStickyEndColumnPositions(a,t),d=n.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",_=h?"left":"right";for(const g of i)for(let m=0;mn[m]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((g,m)=>t[m+u]?g:null).reverse()}))})}stickRows(i,n,t){if(!this._isBrowser)return;const r="bottom"===t?i.slice().reverse():i,s="bottom"===t?n.slice().reverse():n,o=[],a=[],l=[];for(let d=0,u=0;d{for(let d=0;d{n.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(i,n){for(const r of n)i.style[r]="",i.classList.remove(this._borderCellCss[r]);A3.some(r=>-1===n.indexOf(r)&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,n,t,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[n]),i.style[n]=`${t}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const n={top:100,bottom:10,left:1,right:1};let t=0;for(const r of A3)i.style[r]&&(t+=n[r]);return t?`${t}`:""}_getCellWidths(i,n=!0){if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=i.children;for(let s=0;s0;s--)n[s]&&(t[s]=r,r+=i[s]);return t}}const d_=new M("CDK_SPL");let Sh=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","rowOutlet",""]]}),i})(),Eh=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","headerRowOutlet",""]]}),i})(),Mh=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","footerRowOutlet",""]]}),i})(),Th=(()=>{var e;class i{constructor(t,r){this.viewContainer=t,this.elementRef=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Vt),p(ne))},e.\u0275dir=I({type:e,selectors:[["","noDataRowOutlet",""]]}),i})(),Ic=(()=>{var e;class i{get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=re(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=re(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,r,s,o,a,l,c,d,u,h,f,_){this._differs=t,this._changeDetectorRef=r,this._elementRef=s,this._dir=a,this._platform=c,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=_,this._onDestroy=new $,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new W,this.viewChange=new Et({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jp(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,r,(s,o,a)=>this._getEmbeddedViewArgs(s.item,a),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(s=>{r.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this._ngZone&&ce.isInAngularZone()?this._ngZone.onStable.pipe(ze(1),ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=t.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,o,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=t.length?"":"none");const o=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...r,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let l=0;l{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const t=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const l=s&&s.has(a)?s.get(a):[];if(l.length){const c=l.shift();return c.dataIndex=r,c}return{data:t,rowDef:a,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),u_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=u_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=u_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=u_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(a,l)=>a||!!l.getColumnsDiff(),r=this._rowDefs.reduce(t,!1);r&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(t,!1);s&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(t,!1);return o&&this._forceRenderFooterRows(),r||s||o}_switchDataSource(t){this._data=[],Jp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Jp(this.dataSource)?t=this.dataSource.connect(this):Bn(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=ee(this.dataSource)),this._renderChangeSubscription=t.pipe(ke(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,r)=>this._renderRow(this._headerRowOutlet,t,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,r)=>this._renderRow(this._footerRowOutlet,t,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,r){const s=Array.from(r.columns||[]).map(l=>this._columnDefsByName.get(l)),o=s.map(l=>l.sticky),a=s.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const r=[];for(let s=0;s!o.when||o.when(r,t));else{let o=this._rowDefs.find(a=>a.when&&a.when(r,t))||this._defaultRowDef;o&&s.push(o)}return s}_getEmbeddedViewArgs(t,r){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:r}}_renderRow(t,r,s,o={}){const a=t.viewContainer.createEmbeddedView(r.template,o,s);return this._renderCellTemplateForItem(r,o),a}_renderCellTemplateForItem(t,r){for(let s of this._getCellTemplates(t))qn.mostRecentCellOutlet&&qn.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let r=0,s=t.length;r{const s=this._columnDefsByName.get(r);return t.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),r=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of r){const o=this._document.createElement(s.tag);o.setAttribute("role","rowgroup");for(const a of s.outlets)o.appendChild(a.elementRef.nativeElement);t.appendChild(o)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(r,s)=>r||s.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ahe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:ee()).pipe(ke(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(!t)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const s=this._noDataRowOutlet.viewContainer;if(r){const o=s.createEmbeddedView(t.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(t._contentClassName))}else s.clear();this._isShowingNoDataRow=r}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Fn),p(st),p(ne),Mi("role"),p(an,8),p(xe),p(Ot),p(oa),p(c_),p(Yl),p(d_,12),p(ce,8))},e.\u0275cmp=ie({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,r,s){if(1&t&&(Me(s,Tc,5),Me(s,_r,5),Me(s,Mc,5),Me(s,va,5),Me(s,ya,5)),2&t){let o;Q(o=J())&&(r._noDataRow=o.first),Q(o=J())&&(r._contentColumnDefs=o),Q(o=J())&&(r._contentRowDefs=o),Q(o=J())&&(r._contentHeaderRowDefs=o),Q(o=J())&&(r._contentFooterRowDefs=o)}},viewQuery:function(t,r){if(1&t&&(Xe(Sh,7),Xe(Eh,7),Xe(Mh,7),Xe(Th,7)),2&t){let s;Q(s=J())&&(r._rowOutlet=s.first),Q(s=J())&&(r._headerRowOutlet=s.first),Q(s=J())&&(r._footerRowOutlet=s.first),Q(s=J())&&(r._noDataRowOutlet=s.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(t,r){2&t&&fe("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[K([{provide:ba,useExisting:e},{provide:oa,useClass:dx},{provide:c_,useClass:lC},{provide:d_,useValue:null}])],ngContentSelectors:whe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,r){1&t&&(ct(yhe),we(0),we(1,1),Ai(2,0)(3,1)(4,2)(5,3))},dependencies:[Sh,Eh,Mh,Th],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function u_(e,i){return e.concat(Array.from(i))}let Ohe=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Xw]}),i})();class $he extends fP{get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}constructor(i=[]){super(),this._renderData=new Et([]),this._filter=new Et(""),this._internalPageChanges=new $,this._renderChangesSubscription=null,this.sortingDataAccessor=(n,t)=>{const r=n[t];if(dN(r)){const s=Number(r);return s<9007199254740991?s:r}return r},this.sortData=(n,t)=>{const r=t.active,s=t.direction;return r&&""!=s?n.sort((o,a)=>{let l=this.sortingDataAccessor(o,r),c=this.sortingDataAccessor(a,r);const d=typeof l,u=typeof c;d!==u&&("number"===d&&(l+=""),"number"===u&&(c+=""));let h=0;return null!=l&&null!=c?l>c?h=1:l{const r=Object.keys(n).reduce((o,a)=>o+n[a]+"\u25ec","").toLowerCase(),s=t.trim().toLowerCase();return-1!=r.indexOf(s)},this._data=new Et(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Ft(this._sort.sortChange,this._sort.initialized):ee(null),n=this._paginator?Ft(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ee(null),r=Ko([this._data,this._filter]).pipe(se(([a])=>this._filterData(a))),s=Ko([r,i]).pipe(se(([a])=>this._orderData(a))),o=Ko([s,n]).pipe(se(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=o.subscribe(a=>this._renderData.next(a))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(n=>this.filterPredicate(n,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const n=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(n,n+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const n=this.paginator;if(n&&(n.length=i,n.pageIndex>0)){const t=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,t);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}const Uhe=[[["caption"]],[["colgroup"],["col"]]],Ghe=["caption","colgroup, col"];let uC=(()=>{var e;class i extends Ic{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-table"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[K([{provide:oa,useClass:dx},{provide:Ic,useExisting:e},{provide:ba,useExisting:e},{provide:c_,useClass:lC},{provide:d_,useValue:null}]),L],ngContentSelectors:Ghe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,r){1&t&&(ct(Uhe),we(0),we(1,1),Ai(2,0)(3,1)(4,2)(5,3))},dependencies:[Sh,Eh,Mh,Th],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),h_=(()=>{var e;class i extends mo{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matCellDef",""]],features:[K([{provide:mo,useExisting:e}]),L]}),i})(),f_=(()=>{var e;class i extends po{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matHeaderCellDef",""]],features:[K([{provide:po,useExisting:e}]),L]}),i})(),m_=(()=>{var e;class i extends _r{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[K([{provide:_r,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),L]}),i})(),p_=(()=>{var e;class i extends a_{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[L]}),i})(),g_=(()=>{var e;class i extends l_{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[L]}),i})(),hC=(()=>{var e;class i extends va{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[K([{provide:va,useExisting:e}]),L]}),i})(),fC=(()=>{var e;class i extends Mc{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275dir=I({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[K([{provide:Mc,useExisting:e}]),L]}),i})(),mC=(()=>{var e;class i extends kh{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[K([{provide:kh,useExisting:e}]),L],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),pC=(()=>{var e;class i extends Dh{}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[K([{provide:Dh,useExisting:e}]),L],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,r){1&t&&Ai(0,0)},dependencies:[qn],encapsulation:2}),i})(),L3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ohe,Fe,Fe]}),i})();class B3 extends $he{}const Jhe=["mat-sort-header",""];function efe(e,i){if(1&e){const n=Yt();k(0,"div",3),H("@arrowPosition.start",function(){return tt(n),it(ue()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return tt(n),it(ue()._disableViewStateAnimation=!1)}),be(1,"div",4),k(2,"div",5),be(3,"div",6)(4,"div",7)(5,"div",8),D()()}if(2&e){const n=ue();R("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),C(2),R("@indicator",n._getArrowDirectionState()),C(1),R("@leftPointer",n._getArrowDirectionState()),C(1),R("@rightPointer",n._getArrowDirectionState())}}const tfe=["*"],V3=new M("MAT_SORT_DEFAULT_OPTIONS"),ife=xee(no(class{}));let gC=(()=>{var e;class i extends ife{get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=re(t)}constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new $,this.start="asc",this._direction="",this.sortChange=new W}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let s=function nfe(e,i){let n=["asc","desc"];return"desc"==e&&n.reverse(),i||n.push(""),n}(t.start||this.start,t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(V3,8))},e.\u0275dir=I({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[L,bt]}),i})();const go=rx.ENTERING+" "+nx.STANDARD_CURVE,Ac={indicator:Si("indicator",[gt("active-asc, asc",Ee({transform:"translateY(0px)"})),gt("active-desc, desc",Ee({transform:"translateY(10px)"})),_t("active-asc <=> active-desc",St(go))]),leftPointer:Si("leftPointer",[gt("active-asc, asc",Ee({transform:"rotate(-45deg)"})),gt("active-desc, desc",Ee({transform:"rotate(45deg)"})),_t("active-asc <=> active-desc",St(go))]),rightPointer:Si("rightPointer",[gt("active-asc, asc",Ee({transform:"rotate(45deg)"})),gt("active-desc, desc",Ee({transform:"rotate(-45deg)"})),_t("active-asc <=> active-desc",St(go))]),arrowOpacity:Si("arrowOpacity",[gt("desc-to-active, asc-to-active, active",Ee({opacity:1})),gt("desc-to-hint, asc-to-hint, hint",Ee({opacity:.54})),gt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ee({opacity:0})),_t("* => asc, * => desc, * => active, * => hint, * => void",St("0ms")),_t("* <=> *",St(go))]),arrowPosition:Si("arrowPosition",[_t("* => desc-to-hint, * => desc-to-active",St(go,Bu([Ee({transform:"translateY(-25%)"}),Ee({transform:"translateY(0)"})]))),_t("* => hint-to-desc, * => active-to-desc",St(go,Bu([Ee({transform:"translateY(0)"}),Ee({transform:"translateY(25%)"})]))),_t("* => asc-to-hint, * => asc-to-active",St(go,Bu([Ee({transform:"translateY(25%)"}),Ee({transform:"translateY(0)"})]))),_t("* => hint-to-asc, * => active-to-asc",St(go,Bu([Ee({transform:"translateY(0)"}),Ee({transform:"translateY(-25%)"})]))),gt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ee({transform:"translateY(0)"})),gt("hint-to-desc, active-to-desc, desc",Ee({transform:"translateY(-25%)"})),gt("hint-to-asc, active-to-asc, asc",Ee({transform:"translateY(25%)"}))]),allowChildren:Si("allowChildren",[_t("* <=> *",[sa("@*",ra(),{optional:!0})])])};let __=(()=>{var e;class i{constructor(){this.changes=new $}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const sfe={provide:__,deps:[[new Ls,new qa,__]],useFactory:function rfe(e){return e||new __}},ofe=no(class{});let afe=(()=>{var e;class i extends ofe{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=re(t)}constructor(t,r,s,o,a,l,c,d){super(),this._intl=t,this._changeDetectorRef=r,this._sort=s,this._columnDef=o,this._focusMonitor=a,this._elementRef=l,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const r=!!t;r!==this._showIndicatorHint&&(this._setIndicatorHintVisible(r),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(32===t.keyCode||13===t.keyCode)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=Ft(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(__),p(st),p(gC,8),p("MAT_SORT_HEADER_COLUMN_DEF",8),p(xn),p(ne),p(_N,8),p(V3,8))},e.\u0275cmp=ie({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,r){1&t&&H("click",function(){return r._handleClick()})("keydown",function(o){return r._handleKeydown(o)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),2&t&&(_e("aria-sort",r._getAriaSortAttribute()),fe("mat-sort-header-disabled",r._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[L],attrs:Jhe,ngContentSelectors:tfe,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,r){1&t&&(ct(),k(0,"div",0)(1,"div",1),we(2),D(),Z(3,efe,6,6,"div",2),D()),2&t&&(fe("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before","before"===r.arrowPosition),_e("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),C(3),R("ngIf",r._renderArrow()))},dependencies:[ki],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Ac.indicator,Ac.leftPointer,Ac.rightPointer,Ac.arrowOpacity,Ac.arrowPosition,Ac.allowChildren]},changeDetection:0}),i})(),j3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[sfe],imports:[Ln,Fe]}),i})();const lfe=["graphs",""];function cfe(e,i){1&e&&(k(0,"th",10),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.name")))}function dfe(e,i){if(1&e&&(k(0,"td",11),N(1),D()),2&e){const n=i.$implicit;C(1),pe(n.name)}}function ufe(e,i){1&e&&(k(0,"th",10),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.description")))}function hfe(e,i){if(1&e&&(k(0,"td",11),N(1),D()),2&e){const n=i.$implicit;C(1),pe(n.description)}}function ffe(e,i){1&e&&(k(0,"th",10),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.last-edit")))}function mfe(e,i){if(1&e&&(k(0,"td",11),N(1),U(2,"date"),D()),2&e){const n=i.$implicit;C(1),pe(yl(2,1,n.lastEdit,"dd.MM.yyyy hh:mm"))}}function pfe(e,i){1&e&&(k(0,"th",12),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"actions.title")))}function gfe(e,i){if(1&e){const n=Yt();k(0,"td",11)(1,"button",13),H("click",function(){const s=tt(n).$implicit;return it(ue().graphSelected.emit(s))}),U(2,"translate"),k(3,"mat-icon"),N(4,"launch"),D()(),k(5,"button",13),H("click",function(){const s=tt(n).$implicit;return it(ue().exportGraph(s))}),U(6,"translate"),k(7,"mat-icon"),N(8,"get_app"),D()(),k(9,"button",14),H("click",function(){const s=tt(n).$implicit;return it(ue().graphDeletionRequested.emit(s))}),U(10,"translate"),k(11,"mat-icon"),N(12,"delete"),D()()()}2&e&&(C(1),nn("matTooltip",Y(2,3,"actions.open")),C(4),nn("matTooltip",Y(6,5,"actions.export")),C(4),nn("matTooltip",Y(10,7,"actions.delete")))}function _fe(e,i){1&e&&be(0,"tr",15)}function bfe(e,i){1&e&&be(0,"tr",16)}let vfe=(()=>{var e;class i{constructor(t){this.bottomSheet=t,this.graphSelected=new W,this.graphDeletionRequested=new W,this.columns=["name","description","lastEdit","actions"],this.dataSource=new B3([])}ngOnChanges(t){null!==this.graphs&&(this.dataSource.data=this.graphs)}ngAfterViewInit(){this.dataSource.sort=this.sort}exportGraph(t){this.bottomSheet.open(PB,{data:t})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(DL))},e.\u0275cmp=ie({type:e,selectors:[["apollo-graph-list","graphs",""]],viewQuery:function(t,r){if(1&t&&Xe(gC,5),2&t){let s;Q(s=J())&&(r.sort=s.first)}},inputs:{graphs:"graphs"},outputs:{graphSelected:"graphSelected",graphDeletionRequested:"graphDeletionRequested"},features:[bt],attrs:lfe,decls:15,vars:3,consts:[["mat-table","","matSort","",1,"mat-elevation-z4",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","lastEdit"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","","color","primary",1,"action-button",3,"matTooltip","click"],["mat-icon-button","","color","warn",1,"action-button",3,"matTooltip","click"],["mat-header-row",""],["mat-row",""]],template:function(t,r){1&t&&(k(0,"table",0),fi(1,1),Z(2,cfe,3,3,"th",2),Z(3,dfe,2,1,"td",3),mi(),fi(4,4),Z(5,ufe,3,3,"th",2),Z(6,hfe,2,1,"td",3),mi(),fi(7,5),Z(8,ffe,3,3,"th",2),Z(9,mfe,3,4,"td",3),mi(),fi(10,6),Z(11,pfe,3,3,"th",7),Z(12,gfe,13,9,"td",3),mi(),Z(13,_fe,1,0,"tr",8),Z(14,bfe,1,0,"tr",9),D()),2&t&&(R("dataSource",r.dataSource),C(13),R("matHeaderRowDef",r.columns),C(1),R("matRowDefColumns",r.columns))},dependencies:[Fi,kn,gC,afe,uC,f_,hC,m_,h_,fC,p_,g_,mC,pC,xh,Rm,di],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}table[_ngcontent-%COMP%]{width:100%}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}[_ngcontent-%COMP%]:is(.mat-column-name, .mat-column-description)[_ngcontent-%COMP%]{word-break:break-all}[_ngcontent-%COMP%]:is(.mat-column-description, .mat-column-lastEdit)[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-header-cell[_ngcontent-%COMP%]{word-break:keep-all!important}"]}),i})(),yfe=(()=>{var e;class i{constructor(t,r,s){this.store=t,this.router=r,this.snackBarService=s,this.storedGraphs=this.store.select("graphStore").pipe(se(o=>Object.values(o)))}onGraphSelected(t){this.router.navigate(["model-checker"],{queryParams:o_("graphStore",t.name)})}onGraphDeletionRequested(t){this.store.dispatch(MP({key:t.name})),this.snackBarService.graphDeleted(t)}onGraphImport(t){this.store.dispatch(TP(t)),this.router.navigate(["model-checker"],{queryParams:o_("graphCache",t.name)})}navigateToExampleGraph(){this.router.navigate(["model-checker"],{queryParams:o_("graphCache",Jk.name)})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on),p(Ri),p(aa))},e.\u0275cmp=ie({type:e,selectors:[["apollo-home"]],decls:30,vars:23,consts:[[1,"section","graphs"],[3,"graphs","graphSelected","graphDeletionRequested"],[1,"section","import"],[2,"margin-bottom","0"],[3,"graphImport"],[1,"section","quick-access"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"routerLink"]],template:function(t,r){1&t&&(k(0,"section",0)(1,"h1"),N(2),U(3,"translate"),D(),k(4,"apollo-graph-list",1),H("graphSelected",function(o){return r.onGraphSelected(o)})("graphDeletionRequested",function(o){return r.onGraphDeletionRequested(o)}),U(5,"async"),D()(),k(6,"section",2)(7,"h1",3),N(8),U(9,"translate"),D(),k(10,"apollo-graph-import",4),H("graphImport",function(o){return r.onGraphImport(o)}),D()(),k(11,"section",5)(12,"h1"),N(13),U(14,"translate"),D(),k(15,"button",6),H("click",function(){return r.navigateToExampleGraph()}),N(16),U(17,"translate"),k(18,"mat-icon"),N(19,"open_in_new"),D()(),k(20,"button",7),N(21),U(22,"translate"),k(23,"mat-icon"),N(24,"open_in_new"),D()(),k(25,"button",7),N(26),U(27,"translate"),k(28,"mat-icon"),N(29,"open_in_new"),D()()()),2&t&&(C(2),pe(Y(3,9,"home.saved-graphs")),C(2),R("graphs",Y(5,11,r.storedGraphs)),C(4),pe(Y(9,13,"import.title")),C(5),pe(Y(14,15,"home.quick-access")),C(3),ot(" ",Y(17,17,"home.example-graph")," "),C(4),R("routerLink","/model-checker"),C(1),ot(" ",Y(22,19,"model-checker.title")," "),C(4),R("routerLink","/assignments"),C(1),ot(" ",Y(27,21,"assignments.title")," "))},dependencies:[Hl,Fi,kn,vhe,vfe,Pr,di],styles:["[_nghost-%COMP%]{display:block}.section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3rem}.section.quick-access[_ngcontent-%COMP%]{display:flex;flex-direction:column}.section.quick-access[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{max-width:-moz-fit-content;max-width:fit-content}.section.quick-access[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}"]}),i})();function wfe(e,i){1&e&&(k(0,"th",7),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.semantics")))}function xfe(e,i){if(1&e&&(k(0,"td",8),N(1),U(2,"translate"),D()),2&e){const n=i.$implicit;C(1),pe(Y(2,1,n.semantics))}}function kfe(e,i){1&e&&(k(0,"th",7),N(1),U(2,"translate"),D()),2&e&&(C(1),pe(Y(2,1,"misc.syntax")))}function Cfe(e,i){if(1&e&&(k(0,"td",8),N(1),D()),2&e){const n=i.$implicit;C(1),pe(n.syntax)}}function Dfe(e,i){1&e&&be(0,"tr",9)}function Sfe(e,i){1&e&&be(0,"tr",10)}const Efe=[{semantics:"misc.true",syntax:"tt"},{semantics:"misc.false",syntax:"ff"},{semantics:"\u2200",syntax:"forall"},{semantics:"\u2203",syntax:"exists"},{semantics:"\xac",syntax:"!"},{semantics:"\u2228",syntax:"|, ||"},{semantics:"\u2227",syntax:"&, &&"},{semantics:"\u2192",syntax:"->"},{semantics:"\u2194",syntax:"<->"},{semantics:"\u2250",syntax:"="}];let Mfe=(()=>{var e;class i{constructor(){this.columns=["semantics","syntax"],this.dataSource=new B3(Efe)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ie({type:e,selectors:[["ng-component"]],decls:9,vars:3,consts:[["mat-table","",3,"dataSource"],["matColumnDef","semantics"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","syntax"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,r){1&t&&(k(0,"table",0),fi(1,1),Z(2,wfe,3,3,"th",2),Z(3,xfe,3,3,"td",3),mi(),fi(4,4),Z(5,kfe,3,3,"th",2),Z(6,Cfe,2,1,"td",3),mi(),Z(7,Dfe,1,0,"tr",5),Z(8,Sfe,1,0,"tr",6),D()),2&t&&(R("dataSource",r.dataSource),C(7),R("matHeaderRowDef",r.columns),C(1),R("matRowDefColumns",r.columns))},dependencies:[uC,f_,hC,m_,h_,fC,p_,g_,mC,pC,di],styles:[".mat-table[_ngcontent-%COMP%]{width:100%;height:100%}"]}),i})();function Tfe(e,i){if(1&e&&be(0,"mat-pseudo-checkbox",5),2&e){const n=ue();R("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Ife(e,i){if(1&e&&(k(0,"span",6),N(1),D()),2&e){const n=ue();C(1),ot("(",n.group.label,")")}}const Afe=["*"];let z3=(()=>{var e;class i extends Iee{constructor(t,r,s,o){super(t,r,s,o)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(st),p(JN,8),p(eP,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,r){1&t&&H("click",function(){return r._selectViaInteraction()})("keydown",function(o){return r._handleKeydown(o)}),2&t&&(On("id",r.id),_e("tabindex",r._getTabIndex())("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),fe("mat-selected",r.selected)("mat-option-multiple",r.multiple)("mat-active",r.active)("mat-option-disabled",r.disabled))},exportAs:["matOption"],features:[L],ngContentSelectors:Afe,decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,r){1&t&&(ct(),Z(0,Tfe,1,2,"mat-pseudo-checkbox",0),k(1,"span",1,2),we(3),D(),Z(4,Ife,2,1,"span",3),be(5,"div",4)),2&t&&(R("ngIf",r.multiple),C(4),R("ngIf",r.group&&r.group._inert),C(1),R("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[dr,ki,QN],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})(),H3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jl,Ln,Fe,ax]}),i})();const Rfe=["trigger"],Ofe=["panel"];let $3=0;const U3=new M("mat-select-scroll-strategy"),Lfe=new M("MAT_SELECT_CONFIG"),Bfe={provide:U3,deps:[ln],useFactory:function Pfe(e){return()=>e.scrollStrategies.reposition()}},Vfe=new M("MatSelectTrigger"),jfe=$r(Nu(no(sx(class{constructor(e,i,n,t,r){this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new $}}))));let zfe=(()=>{var e;class i extends jfe{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ml.required)??!1}set required(t){this._required=re(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=re(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=re(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Oi(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}constructor(t,r,s,o,a,l,c,d,u,h,f,_,g,m){super(a,o,c,d,h),this._viewportRuler=t,this._changeDetectorRef=r,this._ngZone=s,this._dir=l,this._parentFormField=u,this._liveAnnouncer=g,this._defaultOptions=m,this._panelOpen=!1,this._compareWith=(b,v)=>b===v,this._uid="mat-select-"+$3++,this._triggerAriaLabelledBy=null,this._destroy=new $,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+$3++,this._panelDoneAnimatingStream=new $,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=us(()=>{const b=this.options;return b?b.changes.pipe(Di(b),ei(()=>Ft(...b.map(v=>v.onSelectionChange)))):this._ngZone.onStable.pipe(ze(1),ei(()=>this.optionSelectionChanges))}),this.openedChange=new W,this._openedStream=this.openedChange.pipe($e(b=>b),se(()=>{})),this._closedStream=this.openedChange.pipe($e(b=>!b),se(()=>{})),this.selectionChange=new W,this.valueChange=new W,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=m?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=m.typeaheadDebounceInterval),this._scrollStrategyFactory=_,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new ao(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(xo(),ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ke(this._destroy)).subscribe(t=>{t.added.forEach(r=>r.select()),t.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(Di(null),ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby(),r=this.ngControl;if(t!==this._triggerAriaLabelledBy){const s=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?s.setAttribute("aria-labelledby",t):s.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(void 0!==this._previousControl&&null!==r.disabled&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;const r=`${this.id}-panel`;this._trackedModal&&jw(this._trackedModal,"aria-owns",r),pN(t,"aria-owns",r),this._trackedModal=t}_clearFromModal(){this._trackedModal&&(jw(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const r=t.keyCode,s=40===r||38===r||37===r||39===r,o=13===r||32===r,a=this._keyManager;if(!a.isTyping()&&o&&!qi(t)||(this.multiple||t.altKey)&&s)t.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;a.onKeydown(t);const c=this.selected;c&&l!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(t){const r=this._keyManager,s=t.keyCode,o=40===s||38===s,a=r.isTyping();if(o&&t.altKey)t.preventDefault(),this.close();else if(a||13!==s&&32!==s||!r.activeItem||qi(t))if(!a&&this._multiple&&65===s&&t.ctrlKey){t.preventDefault();const l=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(l?c.select():c.deselect())})}else{const l=r.activeItemIndex;r.onKeydown(t),this._multiple&&o&&t.shiftKey&&r.activeItem&&r.activeItemIndex!==l&&r.activeItem._selectViaInteraction()}else t.preventDefault(),r.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ze(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{const r=this._selectOptionByValue(t);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){const r=this.options.find(s=>{if(this._selectionModel.isSelected(s))return!1;try{return null!=s.value&&this._compareWith(s.value,t)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(t){return!!(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t,!0)}_skipPredicate(t){return t.disabled}_initKeyManager(){this._keyManager=new fJ(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Ft(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ke(t)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ft(...this.options.map(r=>r._stateChanges)).pipe(ke(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,r){const s=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(s!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),r&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),r&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),s!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((r,s)=>this.sortComparator?this.sortComparator(r,s,t):t.indexOf(r)-t.indexOf(s)),this.stateChanges.next()}}_propagateChanges(t){let r=null;r=this.multiple?this.selected.map(s=>s.value):this.selected?this.selected.value:t,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let r=0;r0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._parentFormField?.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const t=this._parentFormField?.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(e=i).\u0275fac=function(t){return new(t||e)(p(Yl),p(st),p(ce),p(Pu),p(ne),p(an,8),p(Il,8),p(Ol,8),p(Jg,8),p(or,10),Mi("tabindex"),p(U3),p(qw),p(Lfe,8))},e.\u0275dir=I({type:e,viewQuery:function(t,r){if(1&t&&(Xe(Rfe,5),Xe(Ofe,5),Xe(VN,5)),2&t){let s;Q(s=J())&&(r.trigger=s.first),Q(s=J())&&(r.panel=s.first),Q(s=J())&&(r._overlayDir=s.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[L,bt]}),i})();function Hfe(e,i){if(1&e&&(k(0,"span",8),N(1),D()),2&e){const n=ue();C(1),pe(n.placeholder)}}function $fe(e,i){if(1&e&&(k(0,"span",12),N(1),D()),2&e){const n=ue(2);C(1),pe(n.triggerValue)}}function Ufe(e,i){1&e&&we(0,0,["*ngSwitchCase","true"])}function Gfe(e,i){1&e&&(k(0,"span",9),Z(1,$fe,2,1,"span",10),Z(2,Ufe,1,0,"ng-content",11),D()),2&e&&(R("ngSwitch",!!ue().customTrigger),C(2),R("ngSwitchCase",!0))}function qfe(e,i){if(1&e){const n=Yt();k(0,"div",13)(1,"div",14,15),H("@transformPanel.done",function(r){return tt(n),it(ue()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return tt(n),it(ue()._handleKeydown(r))}),we(3,1),D()()}if(2&e){const n=ue();R("@transformPanelWrap",void 0),C(1),function SM(e,i,n){ir(gn,Or,al(j(),e,i,n),!0)}("mat-select-panel ",n._getPanelTheme(),""),yn("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),R("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing"),_e("id",n.id+"-panel")("aria-multiselectable",n.multiple)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby())}}const Wfe=[[["mat-select-trigger"]],"*"],Yfe=["mat-select-trigger","*"],G3={transformPanelWrap:Si("transformPanelWrap",[_t("* => void",sa("@transformPanel",[ra()],{optional:!0}))]),transformPanel:Si("transformPanel",[gt("void",Ee({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),gt("showing",Ee({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),gt("showing-multiple",Ee({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_t("void => *",St("120ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void",St("100ms 25ms linear",Ee({opacity:0})))])};class Zfe{constructor(i,n){this.source=i,this.value=n}}let Qfe=(()=>{var e;class i extends zfe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,r,s){const o=this._getItemHeight();return Math.min(Math.max(0,o*t-r+o/2),s)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ke(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(ze(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const r=tP(t,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===r?0:function Aee(e,i,n,t){return en+t?Math.max(0,e-t+i):n}((t+r)*s,s,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Zfe(this,t)}_getOverlayMinWidth(){return this._triggerRect?.width}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),r=this._viewportRuler.getViewportSize(),s=this._isRtl(),o=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let d=this._selectionModel.selected[0]||this.options.first;a=d&&d.group?32:16}s||(a*=-1);const l=0-(t.left+a-(s?o:0)),c=t.right+a-r.width+(s?0:o);l>0?a+=l+8:c>0&&(a-=c+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,r,s){const o=this._getItemHeight(),a=(o-this._triggerRect.height)/2,l=Math.floor(256/o);let c;return this.disableOptionCentering?0:(c=0===this._scrollTop?t*o:this._scrollTop===s?(t-(this._getItemCount()-l))*o+(o-(this._getItemCount()*o-256)%o):r-o/2,Math.round(-1*c-a))}_checkOverlayWithinViewport(t){const r=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,a=s.height-this._triggerRect.bottom-8,l=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*r,256)-l-this._triggerRect.height;d>a?this._adjustPanelUp(d,a):l>o?this._adjustPanelDown(l,o,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,r){const s=Math.round(t-r);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,r,s){const o=Math.round(t-r);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),r=this._getItemCount(),s=Math.min(r*t,256),a=r*t-s;let l;l=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),l+=tP(l,this.options,this.optionGroups);const c=s/2;this._scrollTop=this._calculateOverlayScroll(l,c,a),this._offsetY=this._calculateOverlayOffsetY(l,c,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const t=this._getItemHeight(),r=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-r+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-select"]],contentQueries:function(t,r,s){if(1&t&&(Me(s,Vfe,5),Me(s,z3,5),Me(s,eP,5)),2&t){let o;Q(o=J())&&(r.customTrigger=o.first),Q(o=J())&&(r.options=o),Q(o=J())&&(r.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true","ngSkipHydration","",1,"mat-select"],hostVars:19,hostBindings:function(t,r){1&t&&H("keydown",function(o){return r._handleKeydown(o)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&t&&(_e("id",r.id)("tabindex",r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),fe("mat-select-disabled",r.disabled)("mat-select-invalid",r.errorState)("mat-select-required",r.required)("mat-select-empty",r.empty)("mat-select-multiple",r.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[K([{provide:xc,useExisting:e},{provide:JN,useExisting:e}]),L],ngContentSelectors:Yfe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,r){if(1&t&&(ct(Wfe),k(0,"div",0,1),H("click",function(){return r.toggle()}),k(3,"div",2),Z(4,Hfe,2,1,"span",3),Z(5,Gfe,3,2,"span",4),D(),k(6,"div",5),be(7,"div",6),D()(),Z(8,qfe,4,14,"ng-template",7),H("backdropClick",function(){return r.close()})("attach",function(){return r._onAttached()})("detach",function(){return r.close()})),2&t){const s=Rt(1);_e("aria-owns",r.panelOpen?r.id+"-panel":null),C(3),R("ngSwitch",r.empty),_e("id",r._valueId),C(1),R("ngSwitchCase",!0),C(1),R("ngSwitchCase",!1),C(3),R("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayMinWidth",r._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",r._offsetY)}},dependencies:[Wy,Pd,Ky,nA,VN,BN],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[G3.transformPanelWrap,G3.transformPanel]},changeDetection:0}),i})(),W3=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[Bfe],imports:[Ln,Ou,H3,Fe,ta,wh,H3,Fe]}),i})();const Jfe=["selectionInput"];function eme(e,i){if(1&e&&(k(0,"mat-option",3),U(1,"translate"),N(2),U(3,"translate"),D()),2&e){const n=i.$implicit;R("value",n.feedback)("matTooltip",Y(1,3,n.description)),C(2),ot(" ",Y(3,5,n.name)," ")}}const tme=[{feedback:"full",name:"feedback.full.name",description:"feedback.full.description"},{feedback:"relevant",name:"feedback.relevant.name",description:"feedback.relevant.description"},{feedback:"minimal",name:"feedback.minimal.name",description:"feedback.minimal.description"}];let ime=(()=>{var e;class i{constructor(t){this.store=t,this.feedbackOptions=tme,this.selectedFeedback$=this.store.select("settings").pipe(se(r=>r.selectedFeedback))}get selectedFeedback(){return this.selectionInput.value}onSelectionChange(t){this.store.dispatch(kP({feedback:t.value}))}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-feedback-selection"]],viewQuery:function(t,r){if(1&t&&Xe(Jfe,5),2&t){let s;Q(s=J())&&(r.selectionInput=s.first)}},decls:8,vars:7,consts:[[3,"value","selectionChange"],["selectionInput",""],["matTooltipPosition","left","matTooltipShowDelay","250","matTooltipHideDelay","250",3,"value","matTooltip",4,"ngFor","ngForOf"],["matTooltipPosition","left","matTooltipShowDelay","250","matTooltipHideDelay","250",3,"value","matTooltip"]],template:function(t,r){1&t&&(k(0,"mat-form-field")(1,"mat-label"),N(2),U(3,"translate"),D(),k(4,"mat-select",0,1),H("selectionChange",function(o){return r.onSelectionChange(o)}),U(6,"async"),Z(7,eme,4,7,"mat-option",2),D()()),2&t&&(C(2),pe(Y(3,3,"feedback.title")),C(2),R("value",Y(6,5,r.selectedFeedback$)),C(3),R("ngForOf",r.feedbackOptions))},dependencies:[Nd,yh,ga,Qfe,z3,xh,Pr,di],styles:["[_nghost-%COMP%]{display:block}"]}),i})();const Y3=[{path:"",name:"home.title",component:yfe},{path:"model-checker",name:"model-checker.title",component:(()=>{var e;class i{constructor(t,r,s,o,a,l){this.store=t,this.router=r,this.route=s,this.snackBarService=o,this.backendService=a,this.dialog=l,this.formula=new Al("",Ml.required),this.graphExportRequests=new W,this.graph=this.route.queryParams.pipe(se(c=>[c.graphSource,c.graphKey]),$e(([c,d])=>void 0!==c&&void 0!==d),Bt(([c,d])=>this.store.select(c).pipe(se(u=>u[d]),$e(u=>{const h=void 0!==u;return h||this.snackBarService.openSnackBar({key:"misc.graph-not-found"}),h}),Bt(u=>Cn.fromDomainGraph(u).catch(h=>(this.snackBarService.openSnackBar(h),new Cn))))))}ngOnDestroy(){this.activeResultDialog?.close()}onSaveRequested(t){this.store.dispatch(bx(t)),this.router.navigate(["model-checker"],{queryParams:o_("graphStore",t.name)})}requestGraphExport(){this.formula.invalid||(this.activeResultDialog?.close(),this.graphExportRequests.emit())}checkModel(t,r){const s=this.backendService.checkModel(t,this.formula.value,r),o=this.dialog.open(g2,{width:"90%",data:s,autoFocus:!1});o.afterOpened().subscribe(()=>{this.activeResultDialog?.close(),this.activeResultDialog=void 0}),o.afterClosed().pipe($e(a=>void 0!==a)).subscribe(a=>{this.activeResultDialog=this.dialog.open(h2,{width:a.rootTrace.children?"70%":void 0,height:a.rootTrace.children?"90%":void 0,data:a,autoFocus:!1,hasBackdrop:!1})})}showFormulaSyntaxDialog(){this.dialog.open(Mfe,{minWidth:"50%",panelClass:"unpadded-dialog"})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on),p(Ri),p(Js),p(aa),p(Nx),p(oo))},e.\u0275cmp=ie({type:e,selectors:[["apollo-model-checker"]],decls:18,vars:13,consts:[[1,"model-checker-container"],[1,"formula-section"],["matInput","","autocomplete","off",3,"formControl","placeholder","keyup.enter"],["mat-icon-button","","matSuffix","","color","primary",3,"click"],["mat-raised-button","","color","primary",1,"check-button",3,"disabled","click"],["feedbackSelection",""],[1,"graph-section"],[3,"graph","graphExportRequests","saveRequested","graphExported"]],template:function(t,r){if(1&t){const s=Yt();k(0,"div",0)(1,"div",1)(2,"mat-form-field")(3,"mat-label"),N(4),U(5,"translate"),D(),k(6,"input",2),H("keyup.enter",function(){return r.requestGraphExport()}),U(7,"translate"),D(),k(8,"button",3),H("click",function(){return r.showFormulaSyntaxDialog()}),k(9,"mat-icon"),N(10,"help_outlined"),D()()(),k(11,"button",4),H("click",function(){return r.requestGraphExport()}),N(12),U(13,"translate"),D(),be(14,"apollo-feedback-selection",null,5),D(),k(16,"div",6)(17,"apollo-graph-editor",7),H("saveRequested",function(a){return r.onSaveRequested(a)})("graphExported",function(a){tt(s);const l=Rt(15);return it(r.checkModel(a,l.selectedFeedback))}),D()()()}2&t&&(C(4),pe(Y(5,7,"fol.formula")),C(2),nn("placeholder",Y(7,9,"fol.formula")),R("formControl",r.formula),C(5),R("disabled",r.formula.invalid),C(1),pe(Y(13,11,"actions.check")),C(5),R("graph",r.graph)("graphExportRequests",r.graphExportRequests))},dependencies:[Uo,zd,Fi,yh,ga,Qce,kn,Xk,Rl,ime,g3,di],styles:["[_nghost-%COMP%]{display:block;height:100%}.model-checker-container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.formula-section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.formula-section[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1;margin-right:1rem}.formula-section[_ngcontent-%COMP%] .check-button[_ngcontent-%COMP%]{margin-right:1rem}.graph-section[_ngcontent-%COMP%]{flex-grow:1}"]}),i})()},{path:"assignments",name:"assignments.title",component:Nue},{path:"assignments/:slug",component:Tue},{path:"**",redirectTo:"/",pathMatch:"full"}];let nme=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[tN.forRoot(Y3),KO,tN]}),i})();const _i=void 0,sme=["de",[["AM","PM"],_i,_i],_i,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],_i,_i],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",_i,"{1} 'um' {0}",_i],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[_i,"\u0440."],CUC:[_i,"Cub$"],DEM:["DM"],FKP:[_i,"Fl\xa3"],GHS:[_i,"\u20b5"],GNF:[_i,"F.G."],KMF:[_i,"FC"],PHP:[_i,"\u20b1"],RON:[_i,"L"],RUR:[_i,"\u0440."],RWF:[_i,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[_i,"K"]},"ltr",function rme(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}],wa=void 0,ame=["en",[["a","p"],["AM","PM"],wa],[["AM","PM"],wa,wa],[["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"]],wa,[["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"]],wa,[["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}",wa,"{1} 'at' {0}",wa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ome(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let lme=(()=>{var e;class i{constructor(t){this.dialogRef=t,t.disableClose=!0}close(){this.dialogRef.close()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(so))},e.\u0275cmp=ie({type:e,selectors:[["apollo-update-available"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(t,r){1&t&&(k(0,"h1",0),N(1),U(2,"translate"),D(),k(3,"div",1)(4,"button",2),H("click",function(){return r.close()}),N(5),U(6,"translate"),D()()),2&t&&(C(1),pe(Y(2,2,"misc.update-available")),C(4),pe(Y(6,4,"actions.update")))},dependencies:[Fi,cP,cx,di],styles:["div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}"]}),i})(),cme=(()=>{var e;class i{constructor(t,r,s,o){this.appRef=t,this.dialog=r,this.log=s,this.swUpdate=o}start(){if(!this.swUpdate.isEnabled)return;(void 0!==this.checkForUpdateSubscription||void 0!==this.updateAvailableSubscription||void 0!==this.updateActivatedSubscription)&&this.stop();const s=Vr(this.appRef.isStable.pipe(Zs(o=>o)),AP(18e5));this.checkForUpdateSubscription=s.subscribe(()=>(this.log.debug("Checking for updates"),this.swUpdate.checkForUpdate())),this.updateAvailableSubscription=this.swUpdate.available.subscribe(()=>{this.log.debug("Update available"),this.dialog.open(lme).afterClosed().subscribe(()=>(this.log.debug("Updating"),this.swUpdate.activateUpdate().then(()=>document.location.reload())))}),this.updateActivatedSubscription=this.swUpdate.activated.subscribe(()=>this.log.info("Updated")),this.log.debug("UpdateService started")}stop(){this.checkForUpdateSubscription?.unsubscribe(),this.updateAvailableSubscription?.unsubscribe(),this.updateActivatedSubscription?.unsubscribe(),this.log.debug("UpdateService stopped")}}return(e=i).\u0275fac=function(t){return new(t||e)(x(Nr),x(oo),x(hs),x(P0))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),i})();const dme=["button"],ume=["*"],K3=new M("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),X3=new M("MatButtonToggleGroup"),hme={provide:Ci,useExisting:Ye(()=>J3),multi:!0};let Z3=0;class Q3{constructor(i,n){this.source=i,this.value=n}}let J3=(()=>{var e;class i{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(t){this._vertical=re(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(r=>r.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=re(t),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=re(t),this._markButtonsForCheck()}constructor(t,r){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+Z3++,this.valueChange=new W,this.change=new W,this.appearance=r&&r.appearance?r.appearance:"standard"}ngOnInit(){this._selectionModel=new ao(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(t){const r=new Q3(t,this.value);this._rawValue=r.value,this._controlValueAccessorChangeFn(r.value),this.change.emit(r)}_syncButtonToggle(t,r,s=!1,o=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?r?this._selectionModel.select(t):this._selectionModel.deselect(t):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(t,s)):this._updateModelValue(t,s)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(r=>null!=t.value&&r===t.value):t.value===this._rawValue)}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(r=>this._selectValue(r))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const r=this._buttonToggles.find(s=>null!=s.value&&s.value===t);r&&(r.checked=!0,this._selectionModel.select(r))}_updateModelValue(t,r){r&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(K3,8))},e.\u0275dir=I({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,r,s){if(1&t&&Me(s,eV,5),2&t){let o;Q(o=J())&&(r._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,r){2&t&&(_e("aria-disabled",r.disabled),fe("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard","standard"===r.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[K([hme,{provide:X3,useExisting:e}])]}),i})();const fme=$r(class{});let eV=(()=>{var e;class i extends fme{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const r=re(t);r!==this._checked&&(this._checked=r,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=re(t)}constructor(t,r,s,o,a,l){super(),this._changeDetectorRef=r,this._elementRef=s,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new W;const c=Number(a);this.tabIndex=c||0===c?c:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard"}ngOnInit(){const t=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+Z3++,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector()||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Q3(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return(e=i).\u0275fac=function(t){return new(t||e)(p(X3,8),p(st),p(ne),p(xn),Mi("tabindex"),p(K3,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,r){if(1&t&&Xe(dme,5),2&t){let s;Q(s=J())&&(r._buttonElement=s.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,r){1&t&&H("focus",function(){return r.focus()}),2&t&&(_e("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),fe("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard","standard"===r.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[L],ngContentSelectors:ume,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,r){if(1&t&&(ct(),k(0,"button",0,1),H("click",function(){return r._onButtonClick()}),k(2,"span",2),we(3),D()(),be(4,"span",3)(5,"span",4)),2&t){const s=Rt(1);R("id",r.buttonId)("disabled",r.disabled||null),_e("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),C(5),R("matRippleTrigger",s)("matRippleDisabled",r.disableRipple||r.disabled)}},dependencies:[dr],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{--mat-legacy-button-toggle-height:36px;--mat-legacy-button-toggle-shape:2px;--mat-legacy-button-toggle-focus-state-layer-opacity:1;position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-text-font)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-text-font)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),i})(),tV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Jl,Fe]}),i})();const v_=["*"],mme=["content"];function pme(e,i){if(1&e){const n=Yt();k(0,"div",2),H("click",function(){return tt(n),it(ue()._onBackdropClicked())}),D()}2&e&&fe("mat-drawer-shown",ue()._isShowingBackdrop())}function gme(e,i){1&e&&(k(0,"mat-drawer-content"),we(1,2),D())}const _me=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],bme=["mat-drawer","mat-drawer-content","*"];function vme(e,i){if(1&e){const n=Yt();k(0,"div",2),H("click",function(){return tt(n),it(ue()._onBackdropClicked())}),D()}2&e&&fe("mat-drawer-shown",ue()._isShowingBackdrop())}function yme(e,i){1&e&&(k(0,"mat-sidenav-content"),we(1,2),D())}const wme=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],xme=["mat-sidenav","mat-sidenav-content","*"],iV={transformDrawer:Si("transform",[gt("open, open-instant",Ee({transform:"none",visibility:"visible"})),gt("void",Ee({"box-shadow":"none",visibility:"hidden"})),_t("void => open-instant",St("0ms")),_t("void <=> open, open-instant => void",St("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Cme=new M("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Dme(){return!1}}),_C=new M("MAT_DRAWER_CONTAINER");let y_=(()=>{var e;class i extends Ru{constructor(t,r,s,o,a){super(s,o,a),this._changeDetectorRef=t,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(Ye(()=>rV)),p(ne),p(Wl),p(ce))},e.\u0275cmp=ie({type:e,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,r){2&t&&yn("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[K([{provide:Ru,useExisting:e}]),L],ngContentSelectors:v_,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},encapsulation:2,changeDetection:0}),i})(),nV=(()=>{var e;class i{get position(){return this._position}set position(t){(t="end"===t?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(t),this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=re(t)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(t){("true"===t||"false"===t||null==t)&&(t=re(t)),this._autoFocus=t}get opened(){return this._opened}set opened(t){this.toggle(re(t))}constructor(t,r,s,o,a,l,c,d){this._elementRef=t,this._focusTrapFactory=r,this._focusMonitor=s,this._platform=o,this._ngZone=a,this._interactivityChecker=l,this._doc=c,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new $,this._animationEnd=new $,this._animationState="void",this.openedChange=new W(!0),this._openedStream=this.openedChange.pipe($e(u=>u),se(()=>{})),this.openedStart=this._animationStarted.pipe($e(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),ip(void 0)),this._closedStream=this.openedChange.pipe($e(u=>!u),se(()=>{})),this.closedStart=this._animationStarted.pipe($e(u=>u.fromState!==u.toState&&"void"===u.toState),ip(void 0)),this._destroyed=new $,this.onPositionChanged=new W,this._modeChanged=new $,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Br(this._elementRef.nativeElement,"keydown").pipe($e(u=>27===u.keyCode&&!this.disableClose&&!qi(u)),ke(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(xo((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{t.removeEventListener("blur",s),t.removeEventListener("mousedown",s),t.removeAttribute("tabindex")};t.addEventListener("blur",s),t.addEventListener("mousedown",s)})),t.focus(r)}_focusByCssSelector(t,r){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,r)}_takeFocus(){if(!this._focusTrap)return;const t=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{!r&&"function"==typeof this._elementRef.nativeElement.focus&&t.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(t){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,t):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const t=this._doc.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(t=!this.opened,r){t&&r&&(this._openedVia=r);const s=this._setOpen(t,!t&&this._isFocusWithinDrawer(),this._openedVia||"program");return t||(this._openedVia=null),s}_setOpen(t,r,s){return this._opened=t,t?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(s)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(ze(1)).subscribe(a=>o(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(t){const r=this._elementRef.nativeElement,s=r.parentNode;"end"===t?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),s.insertBefore(this._anchor,r)),s.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Tu),p(xn),p(Ot),p(ce),p(Gl),p(xe,8),p(_C,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-drawer"]],viewQuery:function(t,r){if(1&t&&Xe(mme,5),2&t){let s;Q(s=J())&&(r._content=s.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(t,r){1&t&&pl("@transform.start",function(o){return r._animationStarted.next(o)})("@transform.done",function(o){return r._animationEnd.next(o)}),2&t&&(_e("align",null),_l("@transform",r._animationState),fe("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:v_,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,r){1&t&&(ct(),k(0,"div",0,1),we(2),D())},dependencies:[Ru],encapsulation:2,data:{animation:[iV.transformDrawer]},changeDetection:0}),i})(),rV=(()=>{var e;class i{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=re(t)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(t){this._backdropOverride=null==t?null:re(t)}get scrollable(){return this._userContent||this._content}constructor(t,r,s,o,a,l=!1,c){this._dir=t,this._element=r,this._ngZone=s,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new wl,this.backdropClick=new W,this._destroyed=new $,this._doCheckSubject=new $,this._contentMargins={left:null,right:null},this._contentMarginChanges=new $,t&&t.change.pipe(ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}ngAfterContentInit(){this._allDrawers.changes.pipe(Di(this._allDrawers),ke(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Di(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Lp(10),ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,r=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const s=this._left._getWidth();t+=s,r-=s}if(this._right&&this._right.opened)if("side"==this._right.mode)r+=this._right._getWidth();else if("push"==this._right.mode){const s=this._right._getWidth();r+=s,t-=s}t=t||null,r=r||null,(t!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:t,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe($e(r=>r.fromState!==r.toState),ke(this._drawers.changes)).subscribe(r=>{"open-instant"!==r.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(ze(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(ke(Ft(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const r=this._element.nativeElement.classList,s="mat-drawer-container-has-open";t?r.add(s):r.remove(s)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._drawerHasBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(t){return null!=t&&t.opened}_drawerHasBackdrop(t){return null==this._backdropOverride?!!t&&"side"!==t.mode:this._backdropOverride}}return(e=i).\u0275fac=function(t){return new(t||e)(p(an,8),p(ne),p(ce),p(st),p(Yl),p(Cme),p(ti,8))},e.\u0275cmp=ie({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(t,r,s){if(1&t&&(Me(s,y_,5),Me(s,nV,5)),2&t){let o;Q(o=J())&&(r._content=o.first),Q(o=J())&&(r._allDrawers=o)}},viewQuery:function(t,r){if(1&t&&Xe(y_,5),2&t){let s;Q(s=J())&&(r._userContent=s.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[K([{provide:_C,useExisting:e}])],ngContentSelectors:bme,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){1&t&&(ct(_me),Z(0,pme,1,2,"div",0),we(1),we(2,1),Z(3,gme,2,0,"mat-drawer-content",1)),2&t&&(R("ngIf",r.hasBackdrop),C(3),R("ngIf",!r._content))},dependencies:[ki,y_],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),bC=(()=>{var e;class i extends y_{constructor(t,r,s,o,a){super(t,r,s,o,a)}}return(e=i).\u0275fac=function(t){return new(t||e)(p(st),p(Ye(()=>oV)),p(ne),p(Wl),p(ce))},e.\u0275cmp=ie({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,r){2&t&&yn("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[K([{provide:Ru,useExisting:e}]),L],ngContentSelectors:v_,decls:1,vars:0,template:function(t,r){1&t&&(ct(),we(0))},encapsulation:2,changeDetection:0}),i})(),sV=(()=>{var e;class i extends nV{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=re(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Oi(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Oi(t)}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,r){2&t&&(_e("align",null),yn("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),fe("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[L],ngContentSelectors:v_,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(t,r){1&t&&(ct(),k(0,"div",0,1),we(2),D())},dependencies:[Ru],encapsulation:2,data:{animation:[iV.transformDrawer]},changeDetection:0}),i})(),oV=(()=>{var e;class i extends rV{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}}return(e=i).\u0275fac=function(){let n;return function(r){return(n||(n=de(e)))(r||e)}}(),e.\u0275cmp=ie({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,r,s){if(1&t&&(Me(s,bC,5),Me(s,sV,5)),2&t){let o;Q(o=J())&&(r._content=o.first),Q(o=J())&&(r._allDrawers=o)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,r){2&t&&fe("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[K([{provide:_C,useExisting:e}]),L],ngContentSelectors:xme,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){1&t&&(ct(wme),Z(0,vme,1,2,"div",0),we(1),we(2,1),Z(3,yme,2,0,"mat-sidenav-content",1)),2&t&&(R("ngIf",r.hasBackdrop),C(3),R("ngIf",!r._content))},dependencies:[ki,bC],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),aV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Ln,Fe,ta,ta,Fe]}),i})();const Sme=["*",[["mat-toolbar-row"]]],Eme=["*","mat-toolbar-row"],Mme=ro(class{constructor(e){this._elementRef=e}});let Tme=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275dir=I({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),Ime=(()=>{var e;class i extends Mme{constructor(t,r,s){super(t),this._platform=r,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(e=i).\u0275fac=function(t){return new(t||e)(p(ne),p(Ot),p(xe))},e.\u0275cmp=ie({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,r,s){if(1&t&&Me(s,Tme,5),2&t){let o;Q(o=J())&&(r._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,r){2&t&&fe("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[L],ngContentSelectors:Eme,decls:2,vars:0,template:function(t,r){1&t&&(ct(Sme),we(0),we(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),i})(),lV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Fe,Fe]}),i})();function Ame(e,i){if(1&e){const n=Yt();k(0,"a",16),H("click",function(){return tt(n),it(ue().setSidebar(!1))}),N(1),U(2,"translate"),D()}if(2&e){const n=i.$implicit;R("routerLink",n.path),C(1),pe(Y(2,2,n.name))}}const Rme=["*"];let Ome=(()=>{var e;class i{constructor(t){this.store=t,this.routes=Y3.filter(r=>void 0!==r.name),this.language$=this.store.select("settings").pipe(se(r=>r.language)),this.sidebar$=this.store.select("settings").pipe(se(r=>r.sidebar)),this.themeButtonIcon$=this.store.select("settings").pipe(se(r=>"dark-theme"===r.theme?"light_mode":"dark_mode"))}setSidebar(t){this.store.dispatch(_x({expanded:t}))}toggleSidebar(){this.store.dispatch(wP())}setLanguage(t){this.store.dispatch(gx({language:t.value}))}toggleTheme(){this.store.dispatch(xP())}}return(e=i).\u0275fac=function(t){return new(t||e)(p(on))},e.\u0275cmp=ie({type:e,selectors:[["apollo-dashboard"]],ngContentSelectors:Rme,decls:38,vars:26,consts:[[1,"container"],["color","primary",1,"toolbar","mat-elevation-z8"],["mat-icon-button","",3,"click"],[1,"title"],["src","/assets/icons/logo.svg","alt","Logo","width","36px","height","36px",1,"logo",3,"routerLink"],["autosize","",1,"sidenav-container"],["mode","over",1,"sidenav","mat-elevation-z6",3,"opened","closed"],["mat-list-item","",3,"routerLink","click",4,"ngFor","ngForOf"],["name","language",1,"language-button-group",3,"change"],["value","en",1,"language-button",3,"checked"],["value","de",1,"language-button",3,"checked"],[1,"theme-button-container"],["href","https://github.com/DerYeger/apollo-frontend","target","_blank","rel","noopener noreferrer",1,"repository-link"],["height","2rem","width","2rem","xmlns","http://www.w3.org/2000/svg",1,"github-logo"],["transform","scale(2)","d","M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"],[2,"padding","1rem","height","calc(100% - 2rem)"],["mat-list-item","",3,"routerLink","click"]],template:function(t,r){1&t&&(ct(),k(0,"div",0)(1,"mat-toolbar",1)(2,"button",2),H("click",function(){return r.toggleSidebar()}),k(3,"mat-icon"),N(4,"menu"),D()(),k(5,"h1",3),N(6),U(7,"translate"),D(),be(8,"img",4),D(),k(9,"mat-sidenav-container",5)(10,"mat-sidenav",6),H("closed",function(){return r.setSidebar(!1)}),U(11,"async"),k(12,"mat-nav-list"),Z(13,Ame,3,4,"a",7),D(),k(14,"mat-button-toggle-group",8),H("change",function(o){return r.setLanguage(o)}),k(15,"mat-button-toggle",9),U(16,"async"),N(17),U(18,"translate"),D(),k(19,"mat-button-toggle",10),U(20,"async"),N(21),U(22,"translate"),D()(),k(23,"div",11)(24,"button",2),H("click",function(){return r.toggleTheme()}),k(25,"mat-icon"),N(26),U(27,"async"),D()()(),k(28,"a",12),Eo(),k(29,"svg",13),be(30,"path",14),D(),La(),k(31,"span"),N(32),U(33,"translate"),D(),k(34,"mat-icon"),N(35,"open_in_new"),D()()(),k(36,"mat-sidenav-content",15),we(37),D()()()),2&t&&(C(6),pe(Y(7,10,"app.title")),C(2),R("routerLink","/"),C(2),R("opened",Y(11,12,r.sidebar$)),C(3),R("ngForOf",r.routes),C(2),R("checked","en"===Y(16,14,r.language$)),C(2),pe(Y(18,16,"lang.en")),C(2),R("checked","de"===Y(20,18,r.language$)),C(2),pe(Y(22,20,"lang.de")),C(5),pe(Y(27,22,r.themeButtonIcon$)),C(6),pe(Y(33,24,"dashboard.github-repository")))},dependencies:[Hl,Nd,Fi,J3,eV,kn,IB,OB,sV,oV,bC,Ime,Pr,di],styles:["[_nghost-%COMP%]{display:block;height:100%}.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0}.toolbar[_ngcontent-%COMP%]{z-index:2;height:48px}.toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-left:-.5rem}h1.title[_ngcontent-%COMP%]{margin-left:.5rem}.logo[_ngcontent-%COMP%]{justify-self:flex-end;position:absolute;right:1rem;cursor:pointer}.sidenav-container[_ngcontent-%COMP%]{flex:1}.sidenav[_ngcontent-%COMP%]{min-width:12.5rem}.mat-drawer-transition[_ngcontent-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{transition-duration:0s!important}mat-nav-list[_ngcontent-%COMP%]{padding:0}.language-button-group[_ngcontent-%COMP%]{width:100%;border-radius:0;border-left:0;border-right:0}.language-button[_ngcontent-%COMP%]{width:50%}.theme-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:1rem}"]}),i})(),Fme=(()=>{var e;class i{constructor(t,r,s,o){this.log=t,this.store=r,this.translate=s,this.updateService=o,this.languages={en:ame,de:sme},Object.entries(this.languages).forEach(([a,l])=>{s.setTranslation(a,Ss(574)(`./${a}.json`)),function M7(e,i,n){return function uU(e,i,n){"string"!=typeof i&&(n=i,i=e[Ct.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),bl[i]=e,n&&(bl[i][Ct.ExtraData]=n)}(e,i,n)}(l),t.debug(`Language ${a} registered.`)}),this.updateService.start()}ngOnInit(){this.languageSubscription=this.store.select("settings").pipe(se(t=>t.language),xo()).subscribe(t=>{if(void 0===t){const r=this.translate.getBrowserLang();this.store.dispatch(gx({language:"en"===r||"de"===r?r:"en"}))}else this.log.info(`Set ${t} as current language.`),this.translate.use(t)}),this.themeSubscription=this.store.select("settings").pipe(se(t=>t.theme),xo()).subscribe(t=>jn(document.body).classed("dark-theme","dark-theme"===t).classed("light-theme","light-theme"===t)),this.store.dispatch(_x({expanded:!1}))}ngOnDestroy(){this.languageSubscription?.unsubscribe(),this.themeSubscription?.unsubscribe(),this.updateService.stop()}}return(e=i).\u0275fac=function(t){return new(t||e)(p(hs),p(on),p(Yo),p(cme))},e.\u0275cmp=ie({type:e,selectors:[["apollo-root"]],decls:2,vars:0,template:function(t,r){1&t&&(k(0,"apollo-dashboard"),be(1,"router-outlet"),D())},dependencies:[Dw,Ome],styles:["[_nghost-%COMP%]{display:block;height:100%}"]}),i})(),fV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({}),i})(),mV=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({imports:[Jl,Fe,Vp,fV,Fe,fV]}),i})();function pV(e){return new O(3e3,!1)}function _o(e){switch(e.length){case 0:return new Vu;case 1:return e[0];default:return new rP(e)}}function gV(e,i,n=new Map,t=new Map){const r=[],s=[];let o=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((h,f)=>{let _=f,g=h;if("offset"!==f)switch(_=e.normalizePropertyName(_,r),g){case"!":g=n.get(f);break;case gs:g=t.get(f);break;default:g=e.normalizeStyleValue(f,_,g,r)}u.set(_,g)}),d||s.push(u),a=u,o=c}),r.length)throw function bpe(e){return new O(3502,!1)}();return s}function vC(e,i,n,t){switch(i){case"start":e.onStart(()=>t(n&&yC(n,"start",e)));break;case"done":e.onDone(()=>t(n&&yC(n,"done",e)));break;case"destroy":e.onDestroy(()=>t(n&&yC(n,"destroy",e)))}}function yC(e,i,n){const s=wC(e.element,e.triggerName,e.fromState,e.toState,i||e.phaseName,n.totalTime??e.totalTime,!!n.disabled),o=e._data;return null!=o&&(s._data=o),s}function wC(e,i,n,t,r="",s=0,o){return{element:e,triggerName:i,fromState:n,toState:t,phaseName:r,totalTime:s,disabled:!!o}}function En(e,i,n){let t=e.get(i);return t||e.set(i,t=n),t}function _V(e){const i=e.indexOf(":");return[e.substring(1,i),e.slice(i+1)]}const Ipe=(()=>typeof document>"u"?null:document.documentElement)();function xC(e){const i=e.parentNode||e.host||null;return i===Ipe?null:i}let xa=null,bV=!1;function vV(e,i){for(;i;){if(i===e)return!0;i=xC(i)}return!1}function yV(e,i,n){if(n)return Array.from(e.querySelectorAll(i));const t=e.querySelector(i);return t?[t]:[]}let wV=(()=>{var e;class i{validateStyleProperty(t){return function Rpe(e){xa||(xa=function Ope(){return typeof document<"u"?document.body:null}()||{},bV=!!xa.style&&"WebkitAppearance"in xa.style);let i=!0;return xa.style&&!function Ape(e){return"ebkit"==e.substring(1,6)}(e)&&(i=e in xa.style,!i&&bV&&(i="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in xa.style)),i}(t)}matchesElement(t,r){return!1}containsElement(t,r){return vV(t,r)}getParentElement(t){return xC(t)}query(t,r,s){return yV(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,o,a,l=[],c){return new Vu(s,o)}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})(),kC=(()=>{class i{}return i.NOOP=new wV,i})();const Fpe=1e3,CC="ng-enter",w_="ng-leave",x_="ng-trigger",k_=".ng-trigger",kV="ng-animating",DC=".ng-animating";function Cs(e){if("number"==typeof e)return e;const i=e.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:SC(parseFloat(i[1]),i[2])}function SC(e,i){return"s"===i?e*Fpe:e}function C_(e,i,n){return e.hasOwnProperty("duration")?e:function Ppe(e,i,n){let r,s=0,o="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(pV()),{duration:0,delay:0,easing:""};r=SC(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=SC(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=e;if(!n){let a=!1,l=i.length;r<0&&(i.push(function Xme(){return new O(3100,!1)}()),a=!0),s<0&&(i.push(function Zme(){return new O(3101,!1)}()),a=!0),a&&i.splice(l,0,pV())}return{duration:r,delay:s,easing:o}}(e,i,n)}function Ah(e,i={}){return Object.keys(e).forEach(n=>{i[n]=e[n]}),i}function CV(e){const i=new Map;return Object.keys(e).forEach(n=>{i.set(n,e[n])}),i}function bo(e,i=new Map,n){if(n)for(let[t,r]of n)i.set(t,r);for(let[t,r]of e)i.set(t,r);return i}function Kr(e,i,n){i.forEach((t,r)=>{const s=MC(r);n&&!n.has(r)&&n.set(r,e.style[s]),e.style[s]=t})}function ka(e,i){i.forEach((n,t)=>{const r=MC(t);e.style[r]=""})}function Rh(e){return Array.isArray(e)?1==e.length?e[0]:nP(e):e}const EC=new RegExp("{{\\s*(.+?)\\s*}}","g");function SV(e){let i=[];if("string"==typeof e){let n;for(;n=EC.exec(e);)i.push(n[1]);EC.lastIndex=0}return i}function Oh(e,i,n){const t=e.toString(),r=t.replace(EC,(s,o)=>{let a=i[o];return null==a&&(n.push(function Jme(e){return new O(3003,!1)}()),a=""),a.toString()});return r==t?e:r}function D_(e){const i=[];let n=e.next();for(;!n.done;)i.push(n.value),n=e.next();return i}const Vpe=/-+([a-z0-9])/g;function MC(e){return e.replace(Vpe,(...i)=>i[1].toUpperCase())}function Mn(e,i,n){switch(i.type){case 7:return e.visitTrigger(i,n);case 0:return e.visitState(i,n);case 1:return e.visitTransition(i,n);case 2:return e.visitSequence(i,n);case 3:return e.visitGroup(i,n);case 4:return e.visitAnimate(i,n);case 5:return e.visitKeyframes(i,n);case 6:return e.visitStyle(i,n);case 8:return e.visitReference(i,n);case 9:return e.visitAnimateChild(i,n);case 10:return e.visitAnimateRef(i,n);case 11:return e.visitQuery(i,n);case 12:return e.visitStagger(i,n);default:throw function epe(e){return new O(3004,!1)}()}}function EV(e,i){return window.getComputedStyle(e)[i]}const S_="*";function Hpe(e,i){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(t=>function $pe(e,i,n){if(":"==e[0]){const l=function Upe(e,i){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,t)=>parseFloat(t)>parseFloat(n);case":decrement":return(n,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof l)return void i.push(l);e=l}const t=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return n.push(function fpe(e){return new O(3015,!1)}()),i;const r=t[1],s=t[2],o=t[3];i.push(MV(r,o));"<"==s[0]&&!(r==S_&&o==S_)&&i.push(MV(o,r))}(t,n,i)):n.push(e),n}const E_=new Set(["true","1"]),M_=new Set(["false","0"]);function MV(e,i){const n=E_.has(e)||M_.has(e),t=E_.has(i)||M_.has(i);return(r,s)=>{let o=e==S_||e==r,a=i==S_||i==s;return!o&&n&&"boolean"==typeof r&&(o=r?E_.has(e):M_.has(e)),!a&&t&&"boolean"==typeof s&&(a=s?E_.has(i):M_.has(i)),o&&a}}const Gpe=new RegExp("s*:selfs*,?","g");function TC(e,i,n,t){return new qpe(e).build(i,n,t)}class qpe{constructor(i){this._driver=i}build(i,n,t){const r=new Kpe(n);return this._resetContextStyleTimingState(r),Mn(this,Rh(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,n){let t=n.queryCount=0,r=n.depCount=0;const s=[],o=[];return"@"==i.name.charAt(0)&&n.errors.push(function ipe(){return new O(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,n))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,n);t+=l.queryCount,r+=l.depCount,o.push(l)}else n.errors.push(function npe(){return new O(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:o,queryCount:t,depCount:r,options:null}}visitState(i,n){const t=this.visitStyle(i.styles,n),r=i.options&&i.options.params||null;if(t.containsDynamicStyles){const s=new Set,o=r||{};t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{SV(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(D_(s.values()),n.errors.push(function rpe(e,i){return new O(3008,!1)}()))}return{type:0,name:i.name,style:t,options:r?{params:r}:null}}visitTransition(i,n){n.queryCount=0,n.depCount=0;const t=Mn(this,Rh(i.animation),n);return{type:1,matchers:Hpe(i.expr,n.errors),animation:t,queryCount:n.queryCount,depCount:n.depCount,options:Ca(i.options)}}visitSequence(i,n){return{type:2,steps:i.steps.map(t=>Mn(this,t,n)),options:Ca(i.options)}}visitGroup(i,n){const t=n.currentTime;let r=0;const s=i.steps.map(o=>{n.currentTime=t;const a=Mn(this,o,n);return r=Math.max(r,n.currentTime),a});return n.currentTime=r,{type:3,steps:s,options:Ca(i.options)}}visitAnimate(i,n){const t=function Zpe(e,i){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return IC(C_(e,i).duration,0,"");const n=e;if(n.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=IC(0,0,"");return s.dynamic=!0,s.strValue=n,s}const r=C_(n,i);return IC(r.duration,r.delay,r.easing)}(i.timings,n.errors);n.currentAnimateTimings=t;let r,s=i.styles?i.styles:Ee({});if(5==s.type)r=this.visitKeyframes(s,n);else{let o=i.styles,a=!1;if(!o){a=!0;const c={};t.easing&&(c.easing=t.easing),o=Ee(c)}n.currentTime+=t.duration+t.delay;const l=this.visitStyle(o,n);l.isEmptyStep=a,r=l}return n.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(i,n){const t=this._makeStyleAst(i,n);return this._validateStyleAst(t,n),t}_makeStyleAst(i,n){const t=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of r)"string"==typeof a?a===gs?t.push(a):n.errors.push(new O(3002,!1)):t.push(CV(a));let s=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:t,easing:o,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,n){const t=n.currentAnimateTimings;let r=n.currentTime,s=n.currentTime;t&&s>0&&(s-=t.duration+t.delay),i.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=n.collectedStyles.get(n.currentQuerySelector),d=c.get(l);let u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(n.errors.push(function ope(e,i,n,t,r){return new O(3010,!1)}()),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),n.options&&function Bpe(e,i,n){const t=i.params||{},r=SV(e);r.length&&r.forEach(s=>{t.hasOwnProperty(s)||n.push(function Qme(e){return new O(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(i,n){const t={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function ape(){return new O(3011,!1)}()),t;let s=0;const o=[];let a=!1,l=!1,c=0;const d=i.steps.map(b=>{const v=this._makeStyleAst(b,n);let w=null!=v.offset?v.offset:function Xpe(e){if("string"==typeof e)return null;let i=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){const t=n;i=parseFloat(t.get("offset")),t.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}return i}(v.styles),y=0;return null!=w&&(s++,y=v.offset=w),l=l||y<0||y>1,a=a||y0&&s{const w=h>0?v==f?1:h*v:o[v],y=w*m;n.currentTime=_+g.delay+y,g.duration=y,this._validateStyleAst(b,n),b.offset=w,t.styles.push(b)}),t}visitReference(i,n){return{type:8,animation:Mn(this,Rh(i.animation),n),options:Ca(i.options)}}visitAnimateChild(i,n){return n.depCount++,{type:9,options:Ca(i.options)}}visitAnimateRef(i,n){return{type:10,animation:this.visitReference(i.animation,n),options:Ca(i.options)}}visitQuery(i,n){const t=n.currentQuerySelector,r=i.options||{};n.queryCount++,n.currentQuery=i;const[s,o]=function Wpe(e){const i=!!e.split(/\s*,\s*/).find(n=>":self"==n);return i&&(e=e.replace(Gpe,"")),e=e.replace(/@\*/g,k_).replace(/@\w+/g,n=>k_+"-"+n.slice(1)).replace(/:animating/g,DC),[e,i]}(i.selector);n.currentQuerySelector=t.length?t+" "+s:s,En(n.collectedStyles,n.currentQuerySelector,new Map);const a=Mn(this,Rh(i.animation),n);return n.currentQuery=null,n.currentQuerySelector=t,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:i.selector,options:Ca(i.options)}}visitStagger(i,n){n.currentQuery||n.errors.push(function upe(){return new O(3013,!1)}());const t="full"===i.timings?{duration:0,delay:0,easing:"full"}:C_(i.timings,n.errors,!0);return{type:12,animation:Mn(this,Rh(i.animation),n),timings:t,options:null}}}class Kpe{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ca(e){return e?(e=Ah(e)).params&&(e.params=function Ype(e){return e?Ah(e):null}(e.params)):e={},e}function IC(e,i,n){return{duration:e,delay:i,easing:n}}function AC(e,i,n,t,r,s,o=null,a=!1){return{type:1,element:e,keyframes:i,preStyleProps:n,postStyleProps:t,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class T_{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,n){let t=this._map.get(i);t||this._map.set(i,t=[]),t.push(...n)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const ege=new RegExp(":enter","g"),ige=new RegExp(":leave","g");function RC(e,i,n,t,r,s=new Map,o=new Map,a,l,c=[]){return(new nge).buildKeyframes(e,i,n,t,r,s,o,a,l,c)}class nge{buildKeyframes(i,n,t,r,s,o,a,l,c,d=[]){c=c||new T_;const u=new OC(i,n,c,r,s,d,[]);u.options=l;const h=l.delay?Cs(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([o],null,u.errors,l),Mn(this,t,u);const f=u.timelines.filter(_=>_.containsAnimation());if(f.length&&a.size){let _;for(let g=f.length-1;g>=0;g--){const m=f[g];if(m.element===n){_=m;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,u.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[AC(n,[],[],[],0,h,"",!1)]}visitTrigger(i,n){}visitState(i,n){}visitTransition(i,n){}visitAnimateChild(i,n){const t=n.subInstructions.get(n.element);if(t){const r=n.createSubContext(i.options),s=n.currentTimeline.currentTime,o=this._visitSubInstructions(t,r,r.options);s!=o&&n.transformIntoNewTimeline(o)}n.previousNode=i}visitAnimateRef(i,n){const t=n.createSubContext(i.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],n,t),this.visitReference(i.animation,t),n.transformIntoNewTimeline(t.currentTimeline.currentTime),n.previousNode=i}_applyAnimationRefDelays(i,n,t){for(const r of i){const s=r?.delay;if(s){const o="number"==typeof s?s:Cs(Oh(s,r?.params??{},n.errors));t.delayNextStep(o)}}}_visitSubInstructions(i,n,t){let s=n.currentTimeline.currentTime;const o=null!=t.duration?Cs(t.duration):null,a=null!=t.delay?Cs(t.delay):null;return 0!==o&&i.forEach(l=>{const c=n.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,n){n.updateOptions(i.options,!0),Mn(this,i.animation,n),n.previousNode=i}visitSequence(i,n){const t=n.subContextCount;let r=n;const s=i.options;if(s&&(s.params||s.delay)&&(r=n.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=I_);const o=Cs(s.delay);r.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>Mn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),n.previousNode=i}visitGroup(i,n){const t=[];let r=n.currentTimeline.currentTime;const s=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(o=>{const a=n.createSubContext(i.options);s&&a.delayNextStep(s),Mn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(o=>n.currentTimeline.mergeTimelineCollectedStyles(o)),n.transformIntoNewTimeline(r),n.previousNode=i}_visitTiming(i,n){if(i.dynamic){const t=i.strValue;return C_(n.params?Oh(t,n.params,n.errors):t,n.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,n){const t=n.currentAnimateTimings=this._visitTiming(i.timings,n),r=n.currentTimeline;t.delay&&(n.incrementTime(t.delay),r.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,n):(n.incrementTime(t.duration),this.visitStyle(s,n),r.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=i}visitStyle(i,n){const t=n.currentTimeline,r=n.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const s=r&&r.easing||i.easing;i.isEmptyStep?t.applyEmptyStep(s):t.setStyles(i.styles,s,n.errors,n.options),n.previousNode=i}visitKeyframes(i,n){const t=n.currentAnimateTimings,r=n.currentTimeline.duration,s=t.duration,a=n.createSubContext().currentTimeline;a.easing=t.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(r+s),n.previousNode=i}visitQuery(i,n){const t=n.currentTimeline.currentTime,r=i.options||{},s=r.delay?Cs(r.delay):0;s&&(6===n.previousNode.type||0==t&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=I_);let o=t;const a=n.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{n.currentQueryIndex=d;const u=n.createSubContext(i.options,c);s&&u.delayNextStep(s),c===n.element&&(l=u.currentTimeline),Mn(this,i.animation,u),u.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,u.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(o),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=i}visitStagger(i,n){const t=n.parentContext,r=n.currentTimeline,s=i.timings,o=Math.abs(s.duration),a=o*(n.currentQueryTotal-1);let l=o*n.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime}const d=n.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;Mn(this,i.animation,n),n.previousNode=i,t.currentStaggerTime=r.currentTime-u+(r.startTime-t.currentTimeline.startTime)}}const I_={};class OC{constructor(i,n,t,r,s,o,a,l){this._driver=i,this.element=n,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=I_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new A_(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,n){if(!i)return;const t=i;let r=this.options;null!=t.duration&&(r.duration=Cs(t.duration)),null!=t.delay&&(r.delay=Cs(t.delay));const s=t.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!n||!o.hasOwnProperty(a))&&(o[a]=Oh(s[a],o,this.errors))})}}_copyOptions(){const i={};if(this.options){const n=this.options.params;if(n){const t=i.params={};Object.keys(n).forEach(r=>{t[r]=n[r]})}}return i}createSubContext(i=null,n,t){const r=n||this.element,s=new OC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=I_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,n,t){const r={duration:n??i.duration,delay:this.currentTimeline.currentTime+(t??0)+i.delay,easing:""},s=new rge(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,n,t,r,s,o){let a=[];if(r&&a.push(this.element),i.length>0){i=(i=i.replace(ege,"."+this._enterClassName)).replace(ige,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c)}return!s&&0==a.length&&o.push(function hpe(e){return new O(3014,!1)}()),a}}class A_{constructor(i,n,t,r){this._driver=i,this.element=n,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+i),n&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,n){return this.applyStylesToKeyframe(),new A_(this._driver,i,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,n){this._localTimelineStyles.set(i,n),this._globalTimelineStyles.set(i,n),this._styleSummary.set(i,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[n,t]of this._globalTimelineStyles)this._backFill.set(n,t||gs),this._currentKeyframe.set(n,gs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,n,t,r){n&&this._previousKeyframe.set("easing",n);const s=r&&r.params||{},o=function sge(e,i){const n=new Map;let t;return e.forEach(r=>{if("*"===r){t=t||i.keys();for(let s of t)n.set(s,gs)}else bo(r,n)}),n}(i,this._globalTimelineStyles);for(let[a,l]of o){const c=Oh(l,s,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??gs),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,n)=>{this._currentKeyframe.set(n,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,i)}))}snapshotCurrentStyles(){for(let[i,n]of this._localTimelineStyles)this._pendingStyles.set(i,n),this._updateStyle(i,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let n in this._currentKeyframe)i.push(n);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((n,t)=>{const r=this._styleSummary.get(t);(!r||n.time>r.time)&&this._updateStyle(t,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,n=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=bo(a,new Map,this._backFill);c.forEach((d,u)=>{"!"===d?i.add(u):d===gs&&n.add(u)}),t||c.set("offset",l/this.duration),r.push(c)});const s=i.size?D_(i.values()):[],o=n.size?D_(n.values()):[];if(t){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return AC(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class rge extends A_{constructor(i,n,t,r,s,o,a=!1){super(i,n,o.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:n,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){const s=[],o=t+n,a=n/o,l=bo(i[0]);l.set("offset",0),s.push(l);const c=bo(i[0]);c.set("offset",AV(a)),s.push(c);const d=i.length-1;for(let u=1;u<=d;u++){let h=bo(i[u]);const f=h.get("offset");h.set("offset",AV((n+f*t)/o)),s.push(h)}t=o,n=0,r="",i=s}return AC(this.element,i,this.preStyleProps,this.postStyleProps,t,n,r,!0)}}function AV(e,i=3){const n=Math.pow(10,i-1);return Math.round(e*n)/n}class FC{}const oge=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class age extends FC{normalizePropertyName(i,n){return MC(i)}normalizeStyleValue(i,n,t,r){let s="";const o=t.toString().trim();if(oge.has(n)&&0!==t&&"0"!==t)if("number"==typeof t)s="px";else{const a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function tpe(e,i){return new O(3005,!1)}())}return o+s}}function RV(e,i,n,t,r,s,o,a,l,c,d,u,h){return{type:0,element:e,triggerName:i,isRemovalTransition:r,fromState:n,fromStyles:s,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const NC={};class OV{constructor(i,n,t){this._triggerName=i,this.ast=n,this._stateStyles=t}match(i,n,t,r){return function lge(e,i,n,t,r){return e.some(s=>s(i,n,t,r))}(this.ast.matchers,i,n,t,r)}buildStyles(i,n,t){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(n,t):new Map}build(i,n,t,r,s,o,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||NC,_=this.buildStyles(t,a&&a.params||NC,u),g=l&&l.params||NC,m=this.buildStyles(r,g,u),b=new Set,v=new Map,w=new Map,y="void"===r,E={params:cge(g,h),delay:this.ast.options?.delay},T=d?[]:RC(i,n,this.ast.animation,s,o,_,m,E,c,u);let B=0;if(T.forEach(oe=>{B=Math.max(oe.duration+oe.delay,B)}),u.length)return RV(n,this._triggerName,t,r,y,_,m,[],[],v,w,B,u);T.forEach(oe=>{const te=oe.element,ve=En(v,te,new Set);oe.preStyleProps.forEach(Ne=>ve.add(Ne));const Ce=En(w,te,new Set);oe.postStyleProps.forEach(Ne=>Ce.add(Ne)),te!==n&&b.add(te)});const z=D_(b.values());return RV(n,this._triggerName,t,r,y,_,m,T,z,v,w,B)}}function cge(e,i){const n=Ah(i);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(n[t]=e[t]);return n}class dge{constructor(i,n,t){this.styles=i,this.defaultParams=n,this.normalizer=t}buildStyles(i,n){const t=new Map,r=Ah(this.defaultParams);return Object.keys(i).forEach(s=>{const o=i[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Oh(o,r,n));const l=this.normalizer.normalizePropertyName(a,n);o=this.normalizer.normalizeStyleValue(a,l,o,n),t.set(a,o)})}),t}}class hge{constructor(i,n,t){this.name=i,this.ast=n,this._normalizer=t,this.transitionFactories=[],this.states=new Map,n.states.forEach(r=>{this.states.set(r.name,new dge(r.style,r.options&&r.options.params||{},t))}),FV(this.states,"true","1"),FV(this.states,"false","0"),n.transitions.forEach(r=>{this.transitionFactories.push(new OV(i,r,this.states))}),this.fallbackTransition=function fge(e,i,n){return new OV(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,n,t,r){return this.transitionFactories.find(o=>o.match(i,n,t,r))||null}matchStyles(i,n,t){return this.fallbackTransition.buildStyles(i,n,t)}}function FV(e,i,n){e.has(i)?e.has(n)||e.set(n,e.get(i)):e.has(n)&&e.set(i,e.get(n))}const mge=new T_;class pge{constructor(i,n,t){this.bodyNode=i,this._driver=n,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,n){const t=[],s=TC(this._driver,n,t,[]);if(t.length)throw function vpe(e){return new O(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,n,t){const r=i.element,s=gV(this._normalizer,i.keyframes,n,t);return this._driver.animate(r,s,i.duration,i.delay,i.easing,[],!0)}create(i,n,t={}){const r=[],s=this._animations.get(i);let o;const a=new Map;if(s?(o=RC(this._driver,n,s,CC,w_,new Map,new Map,t,mge,r),o.forEach(d=>{const u=En(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function ype(){return new O(3300,!1)}()),o=[]),r.length)throw function wpe(e){return new O(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,gs))})});const c=_o(o.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const n=this._getPlayer(i);n.destroy(),this._playersById.delete(i);const t=this.players.indexOf(n);t>=0&&this.players.splice(t,1)}_getPlayer(i){const n=this._playersById.get(i);if(!n)throw function xpe(e){return new O(3301,!1)}();return n}listen(i,n,t,r){const s=wC(n,"","","");return vC(this._getPlayer(i),t,s,r),()=>{}}command(i,n,t,r){if("register"==t)return void this.register(i,r[0]);if("create"==t)return void this.create(i,n,r[0]||{});const s=this._getPlayer(i);switch(t){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i)}}}const NV="ng-animate-queued",PC="ng-animate-disabled",yge=[],PV={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wge={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},br="__ng_removed";class LC{get params(){return this.options.params}constructor(i,n=""){this.namespaceId=n;const t=i&&i.hasOwnProperty("value");if(this.value=function Dge(e){return e??null}(t?i.value:i),t){const s=Ah(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const n=i.params;if(n){const t=this.options.params;Object.keys(n).forEach(r=>{null==t[r]&&(t[r]=n[r])})}}}const Fh="void",BC=new LC(Fh);class xge{constructor(i,n,t){this.id=i,this.hostElement=n,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Wn(n,this._hostClassName)}listen(i,n,t,r){if(!this._triggers.has(n))throw function kpe(e,i){return new O(3302,!1)}();if(null==t||0==t.length)throw function Cpe(e){return new O(3303,!1)}();if(!function Sge(e){return"start"==e||"done"==e}(t))throw function Dpe(e,i){return new O(3400,!1)}();const s=En(this._elementListeners,i,[]),o={name:n,phase:t,callback:r};s.push(o);const a=En(this._engine.statesByElement,i,new Map);return a.has(n)||(Wn(i,x_),Wn(i,x_+"-"+n),a.set(n,BC)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(i,n){return!this._triggers.has(i)&&(this._triggers.set(i,n),!0)}_getTrigger(i){const n=this._triggers.get(i);if(!n)throw function Spe(e){return new O(3401,!1)}();return n}trigger(i,n,t,r=!0){const s=this._getTrigger(n),o=new VC(this.id,n,i);let a=this._engine.statesByElement.get(i);a||(Wn(i,x_),Wn(i,x_+"-"+n),this._engine.statesByElement.set(i,a=new Map));let l=a.get(n);const c=new LC(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(n,c),l||(l=BC),c.value!==Fh&&l.value===c.value){if(!function Tge(e,i){const n=Object.keys(e),t=Object.keys(i);if(n.length!=t.length)return!1;for(let r=0;r{ka(i,m),Kr(i,b)})}return}const h=En(this._engine.playersByElement,i,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,i,c.params),_=!1;if(!f){if(!r)return;f=s.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:n,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:_}),_||(Wn(i,NV),o.onStart(()=>{Oc(i,NV)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(i);if(m){let b=m.indexOf(o);b>=0&&m.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(n=>n.delete(i)),this._elementListeners.forEach((n,t)=>{this._elementListeners.set(t,n.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const n=this._engine.playersByElement.get(i);n&&(n.forEach(t=>t.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,n){const t=this._engine.driver.query(i,k_,!0);t.forEach(r=>{if(r[br])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,n,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,n,t,r){const s=this._engine.statesByElement.get(i),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const d=this.trigger(i,c,Fh,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,n,o),t&&_o(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const n=this._elementListeners.get(i),t=this._engine.statesByElement.get(i);if(n&&t){const r=new Set;n.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=t.get(o)||BC,d=new LC(Fh),u=new VC(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(i,n){const t=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,n),this.triggerLeaveAnimation(i,n,!0))return;let r=!1;if(t.totalAnimations){const s=t.players.length?t.playersByQueriedElement.get(i):[];if(s&&s.length)r=!0;else{let o=i;for(;o=o.parentNode;)if(t.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)t.markElementAsRemoved(this.id,i,!1,n);else{const s=i[br];(!s||s===PV)&&(t.afterFlush(()=>this.clearElementCache(i)),t.destroyInnerAnimations(i),t._onRemovalComplete(i,n))}}insertNode(i,n){Wn(i,this._hostClassName)}drainQueuedTransitions(i){const n=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const s=t.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==t.triggerName){const l=wC(s,t.triggerName,t.fromState.value,t.toState.value);l._data=i,vC(t.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):n.push(t)}),this._queue=[],n.sort((t,r)=>{const s=t.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(i){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class kge{_onRemovalComplete(i,n){this.onRemovalComplete(i,n)}constructor(i,n,t){this.bodyNode=i,this.driver=n,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(n=>{n.players.forEach(t=>{t.queued&&i.push(t)})}),i}createNamespace(i,n){const t=new xge(i,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(t,n):(this.newHostElements.set(n,t),this.collectEnterElement(n)),this._namespaceLookup[i]=t}_balanceNamespaceList(i,n){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(n);for(;a;){const l=r.get(a);if(l){const c=t.indexOf(l);t.splice(c+1,0,i),o=!0;break}a=this.driver.getParentElement(a)}o||t.unshift(i)}else t.push(i);return r.set(n,i),i}register(i,n){let t=this._namespaceLookup[i];return t||(t=this.createNamespace(i,n)),t}registerTrigger(i,n,t){let r=this._namespaceLookup[i];r&&r.register(n,t)&&this.totalAnimations++}destroy(i,n){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const t=this._fetchNamespace(i);this.namespacesByHostElement.delete(t.hostElement);const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1),t.destroy(n),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const n=new Set,t=this.statesByElement.get(i);if(t)for(let r of t.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&n.add(s)}return n}trigger(i,n,t,r){if(R_(n)){const s=this._fetchNamespace(i);if(s)return s.trigger(n,t,r),!0}return!1}insertNode(i,n,t,r){if(!R_(n))return;const s=n[br];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(n);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const o=this._fetchNamespace(i);o&&o.insertNode(n,t)}r&&this.collectEnterElement(n)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,n){n?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Wn(i,PC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Oc(i,PC))}removeNode(i,n,t){if(R_(n)){const r=i?this._fetchNamespace(i):null;r?r.removeNode(n,t):this.markElementAsRemoved(i,n,!1,t);const s=this.namespacesByHostElement.get(n);s&&s.id!==i&&s.removeNode(n,t)}else this._onRemovalComplete(n,t)}markElementAsRemoved(i,n,t,r,s){this.collectedLeaveElements.push(n),n[br]={namespaceId:i,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,n,t,r,s){return R_(n)?this._fetchNamespace(i).listen(n,t,r,s):()=>{}}_buildInstruction(i,n,t,r,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,t,r,i.fromState.options,i.toState.options,n,s)}destroyInnerAnimations(i){let n=this.driver.query(i,k_,!0);n.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(i,DC,!0),n.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(i){const n=this.playersByElement.get(i);n&&n.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(i){const n=this.playersByQueriedElement.get(i);n&&n.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return _o(this.players).onDone(()=>i());i()})}processLeaveNode(i){const n=i[br];if(n&&n.setForRemoval){if(i[br]=PV,n.namespaceId){this.destroyInnerAnimations(i);const t=this._fetchNamespace(n.namespaceId);t&&t.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}i.classList?.contains(PC)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(i=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],n.length?_o(n).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(i){throw function Epe(e){return new O(3402,!1)}()}_flushAnimations(i,n){const t=new T_,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(S=>{d.add(S);const F=this.driver.query(S,".ng-animate-queued",!0);for(let V=0;V{const V=CC+g++;_.set(F,V),S.forEach(q=>Wn(q,V))});const m=[],b=new Set,v=new Set;for(let S=0;Sb.add(q)):v.add(F))}const w=new Map,y=VV(h,Array.from(b));y.forEach((S,F)=>{const V=w_+g++;w.set(F,V),S.forEach(q=>Wn(q,V))}),i.push(()=>{f.forEach((S,F)=>{const V=_.get(F);S.forEach(q=>Oc(q,V))}),y.forEach((S,F)=>{const V=w.get(F);S.forEach(q=>Oc(q,V))}),m.forEach(S=>{this.processLeaveNode(S)})});const E=[],T=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(n).forEach(V=>{const q=V.player,X=V.element;if(E.push(q),this.collectedEnterElements.length){const Be=X[br];if(Be&&Be.setForMove){if(Be.previousTriggersValues&&Be.previousTriggersValues.has(V.triggerName)){const It=Be.previousTriggersValues.get(V.triggerName),Zt=this.statesByElement.get(V.element);if(Zt&&Zt.has(V.triggerName)){const Yn=Zt.get(V.triggerName);Yn.value=It,Zt.set(V.triggerName,Yn)}}return void q.destroy()}}const ge=!u||!this.driver.containsElement(u,X),ye=w.get(X),Tt=_.get(X),Ae=this._buildInstruction(V,t,Tt,ye,ge);if(Ae.errors&&Ae.errors.length)return void T.push(Ae);if(ge)return q.onStart(()=>ka(X,Ae.fromStyles)),q.onDestroy(()=>Kr(X,Ae.toStyles)),void r.push(q);if(V.isFallbackTransition)return q.onStart(()=>ka(X,Ae.fromStyles)),q.onDestroy(()=>Kr(X,Ae.toStyles)),void r.push(q);const Xt=[];Ae.timelines.forEach(Be=>{Be.stretchStartingKeyframe=!0,this.disabledNodes.has(Be.element)||Xt.push(Be)}),Ae.timelines=Xt,t.append(X,Ae.timelines),o.push({instruction:Ae,player:q,element:X}),Ae.queriedElements.forEach(Be=>En(a,Be,[]).push(q)),Ae.preStyleProps.forEach((Be,It)=>{if(Be.size){let Zt=l.get(It);Zt||l.set(It,Zt=new Set),Be.forEach((Yn,vo)=>Zt.add(vo))}}),Ae.postStyleProps.forEach((Be,It)=>{let Zt=c.get(It);Zt||c.set(It,Zt=new Set),Be.forEach((Yn,vo)=>Zt.add(vo))})});if(T.length){const S=[];T.forEach(F=>{S.push(function Mpe(e,i){return new O(3505,!1)}())}),E.forEach(F=>F.destroy()),this.reportError(S)}const B=new Map,z=new Map;o.forEach(S=>{const F=S.element;t.has(F)&&(z.set(F,F),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,B))}),r.forEach(S=>{const F=S.element;this._getPreviousPlayers(F,!1,S.namespaceId,S.triggerName,null).forEach(q=>{En(B,F,[]).push(q),q.destroy()})});const oe=m.filter(S=>zV(S,l,c)),te=new Map;BV(te,this.driver,v,c,gs).forEach(S=>{zV(S,l,c)&&oe.push(S)});const Ce=new Map;f.forEach((S,F)=>{BV(Ce,this.driver,new Set(S),l,"!")}),oe.forEach(S=>{const F=te.get(S),V=Ce.get(S);te.set(S,new Map([...F?.entries()??[],...V?.entries()??[]]))});const Ne=[],A=[],ae={};o.forEach(S=>{const{element:F,player:V,instruction:q}=S;if(t.has(F)){if(d.has(F))return V.onDestroy(()=>Kr(F,q.toStyles)),V.disabled=!0,V.overrideTotalTime(q.totalTime),void r.push(V);let X=ae;if(z.size>1){let ye=F;const Tt=[];for(;ye=ye.parentNode;){const Ae=z.get(ye);if(Ae){X=Ae;break}Tt.push(ye)}Tt.forEach(Ae=>z.set(Ae,X))}const ge=this._buildAnimation(V.namespaceId,q,B,s,Ce,te);if(V.setRealPlayer(ge),X===ae)Ne.push(V);else{const ye=this.playersByElement.get(X);ye&&ye.length&&(V.parentPlayer=_o(ye)),r.push(V)}}else ka(F,q.fromStyles),V.onDestroy(()=>Kr(F,q.toStyles)),A.push(V),d.has(F)&&r.push(V)}),A.forEach(S=>{const F=s.get(S.element);if(F&&F.length){const V=_o(F);S.setRealPlayer(V)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S!ge.destroyed);X.length?Ege(this,F,X):this.processLeaveNode(F)}return m.length=0,Ne.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();const F=this.players.indexOf(S);this.players.splice(F,1)}),S.play()}),Ne}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,n,t,r,s){let o=[];if(n){const a=this.playersByQueriedElement.get(i);a&&(o=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Fh;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(t||r)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(i,n,t){const s=n.element,o=n.isRemovalTransition?void 0:i,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const c=l.element,d=c!==s,u=En(t,c,[]);this._getPreviousPlayers(c,d,o,a,n.toState).forEach(f=>{const _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),u.push(f)})}ka(s,n.fromStyles)}_buildAnimation(i,n,t,r,s,o){const a=n.triggerName,l=n.element,c=[],d=new Set,u=new Set,h=n.timelines.map(_=>{const g=_.element;d.add(g);const m=g[br];if(m&&m.removedBeforeQueried)return new Vu(_.duration,_.delay);const b=g!==l,v=function Mge(e){const i=[];return jV(e,i),i}((t.get(g)||yge).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===g),w=s.get(g),y=o.get(g),E=gV(this._normalizer,_.keyframes,w,y),T=this._buildPlayer(_,E,v);if(_.subTimeline&&r&&u.add(g),b){const B=new VC(i,a,g);B.setRealPlayer(T),c.push(B)}return T});c.forEach(_=>{En(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function Cge(e,i,n){let t=e.get(i);if(t){if(t.length){const r=t.indexOf(n);t.splice(r,1)}0==t.length&&e.delete(i)}return t}(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>Wn(_,kV));const f=_o(h);return f.onDestroy(()=>{d.forEach(_=>Oc(_,kV)),Kr(l,n.toStyles)}),u.forEach(_=>{En(r,_,[]).push(f)}),f}_buildPlayer(i,n,t){return n.length>0?this.driver.animate(i.element,n,i.duration,i.delay,i.easing,t):new Vu(i.duration,i.delay)}}class VC{constructor(i,n,t){this.namespaceId=i,this.triggerName=n,this.element=t,this._player=new Vu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((n,t)=>{n.forEach(r=>vC(i,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const n=this._player;n.triggerCallback&&i.onStart(()=>n.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,n){En(this._queuedCallbacks,i,[]).push(n)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const n=this._player;n.triggerCallback&&n.triggerCallback(i)}}function R_(e){return e&&1===e.nodeType}function LV(e,i){const n=e.style.display;return e.style.display=i??"none",n}function BV(e,i,n,t,r){const s=[];n.forEach(l=>s.push(LV(l)));const o=[];t.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=i.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[br]=wge,o.push(c))}),e.set(c,d)});let a=0;return n.forEach(l=>LV(l,s[a++])),o}function VV(e,i){const n=new Map;if(e.forEach(a=>n.set(a,[])),0==i.length)return n;const r=new Set(i),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=n.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return i.forEach(a=>{const l=o(a);1!==l&&n.get(l).push(a)}),n}function Wn(e,i){e.classList?.add(i)}function Oc(e,i){e.classList?.remove(i)}function Ege(e,i,n){_o(n).onDone(()=>e.processLeaveNode(i))}function jV(e,i){for(let n=0;nr.add(s)):i.set(e,t),n.delete(e),!0}class O_{constructor(i,n,t){this.bodyNode=i,this._driver=n,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new kge(i,n,t),this._timelineEngine=new pge(i,n,t),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(i,n,t,r,s){const o=i+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],d=TC(this._driver,s,l,[]);if(l.length)throw function _pe(e,i){return new O(3404,!1)}();a=function uge(e,i,n){return new hge(e,i,n)}(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(n,r,a)}register(i,n){this._transitionEngine.register(i,n)}destroy(i,n){this._transitionEngine.destroy(i,n)}onInsert(i,n,t,r){this._transitionEngine.insertNode(i,n,t,r)}onRemove(i,n,t){this._transitionEngine.removeNode(i,n,t)}disableAnimations(i,n){this._transitionEngine.markElementAsDisabled(i,n)}process(i,n,t,r){if("@"==t.charAt(0)){const[s,o]=_V(t);this._timelineEngine.command(s,n,o,r)}else this._transitionEngine.trigger(i,n,t,r)}listen(i,n,t,r,s){if("@"==t.charAt(0)){const[o,a]=_V(t);return this._timelineEngine.listen(o,n,a,s)}return this._transitionEngine.listen(i,n,t,r,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let Age=(()=>{class i{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let o=i.initialStylesByElement.get(t);o||i.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Kr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kr(this._element,this._initialStyles),this._endStyles&&(Kr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(ka(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ka(this._element,this._endStyles),this._endStyles=null),Kr(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function jC(e){let i=null;return e.forEach((n,t)=>{(function Rge(e){return"display"===e||"position"===e})(t)&&(i=i||new Map,i.set(t,n))}),i}class HV{constructor(i,n,t,r){this.element=i,this.keyframes=n,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const n=[];return i.forEach(t=>{n.push(Object.fromEntries(t))}),n}_triggerWebAnimation(i,n,t){return i.animate(this._convertKeyframesToObject(n),t)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&i.set(r,this._finished?t:EV(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const n="start"===i?this._onStartFns:this._onDoneFns;n.forEach(t=>t()),n.length=0}}class Oge{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,n){return!1}containsElement(i,n){return vV(i,n)}getParentElement(i){return xC(i)}query(i,n,t){return yV(i,n,t)}computeStyle(i,n,t){return window.getComputedStyle(i)[n]}animate(i,n,t,r,s,o=[]){const l={duration:t,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c=new Map,d=o.filter(f=>f instanceof HV);(function jpe(e,i){return 0===e||0===i})(t,r)&&d.forEach(f=>{f.currentSnapshot.forEach((_,g)=>c.set(g,_))});let u=function Lpe(e){return e.length?e[0]instanceof Map?e:e.map(i=>CV(i)):[]}(n).map(f=>bo(f));u=function zpe(e,i,n){if(n.size&&i.length){let t=i[0],r=[];if(n.forEach((s,o)=>{t.has(o)||r.push(o),t.set(o,s)}),r.length)for(let s=1;so.set(a,EV(e,a)))}}return i}(i,u,c);const h=function Ige(e,i){let n=null,t=null;return Array.isArray(i)&&i.length?(n=jC(i[0]),i.length>1&&(t=jC(i[i.length-1]))):i instanceof Map&&(n=jC(i)),n||t?new Age(e,n,t):null}(i,u);return new HV(i,u,l,h)}}let Fge=(()=>{var e;class i extends iP{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:In.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?nP(t):t;return $V(this._renderer,null,r,"register",[s]),new Nge(r,this._renderer)}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dd),x(xe))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class Nge extends Ree{constructor(i,n){super(),this._id=i,this._renderer=n}create(i,n){return new Pge(this._id,i,n||{},this._renderer)}}class Pge{constructor(i,n,t,r){this.id=i,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(i,n){return this._renderer.listen(this.element,`@@${this.id}:${i}`,n)}_command(i,...n){return $V(this._renderer,this.element,this.id,i,n)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function $V(e,i,n,t,r){return e.setProperty(i,`@@${n}:${t}`,r)}const UV="@.disabled";let Lge=(()=>{var e;class i{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,a)=>{const l=a?.parentNode(o);l&&a.removeChild(l,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new GV("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const a=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,t);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(a,l,t,u.name,u)};return r.data.animation.forEach(c),new Bge(this,l,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&tr(s)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,l]=o;a(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(dd),x(O_),x(ce))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();class GV{constructor(i,n,t,r){this.namespaceId=i,this.delegate=n,this.engine=t,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,n){return this.delegate.createElement(i,n)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,n){this.delegate.appendChild(i,n),this.engine.onInsert(this.namespaceId,n,i,!1)}insertBefore(i,n,t,r=!0){this.delegate.insertBefore(i,n,t),this.engine.onInsert(this.namespaceId,n,i,r)}removeChild(i,n,t){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(i,n){return this.delegate.selectRootElement(i,n)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,n,t,r){this.delegate.setAttribute(i,n,t,r)}removeAttribute(i,n,t){this.delegate.removeAttribute(i,n,t)}addClass(i,n){this.delegate.addClass(i,n)}removeClass(i,n){this.delegate.removeClass(i,n)}setStyle(i,n,t,r){this.delegate.setStyle(i,n,t,r)}removeStyle(i,n,t){this.delegate.removeStyle(i,n,t)}setProperty(i,n,t){"@"==n.charAt(0)&&n==UV?this.disableAnimations(i,!!t):this.delegate.setProperty(i,n,t)}setValue(i,n){this.delegate.setValue(i,n)}listen(i,n,t){return this.delegate.listen(i,n,t)}disableAnimations(i,n){this.engine.disableAnimations(i,n)}}class Bge extends GV{constructor(i,n,t,r,s){super(n,t,r,s),this.factory=i,this.namespaceId=n}setProperty(i,n,t){"@"==n.charAt(0)?"."==n.charAt(1)&&n==UV?this.disableAnimations(i,t=void 0===t||!!t):this.engine.process(this.namespaceId,i,n.slice(1),t):this.delegate.setProperty(i,n,t)}listen(i,n,t){if("@"==n.charAt(0)){const r=function Vge(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i);let s=n.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function jge(e){const i=e.indexOf(".");return[e.substring(0,i),e.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,t,a)})}return this.delegate.listen(i,n,t)}}let zge=(()=>{var e;class i extends O_{constructor(t,r,s,o){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return(e=i).\u0275fac=function(t){return new(t||e)(x(xe),x(kC),x(FC),x(Nr))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),i})();const qV=[{provide:iP,useClass:Fge},{provide:FC,useFactory:function Hge(){return new age}},{provide:O_,useClass:zge},{provide:dd,useFactory:function $ge(e,i,n){return new Lge(e,i,n)},deps:[o0,O_,ce]}],zC=[{provide:kC,useFactory:()=>new Oge},{provide:ti,useValue:"BrowserAnimations"},...qV],WV=[{provide:kC,useClass:wV},{provide:ti,useValue:"NoopAnimations"},...qV];let YV=(()=>{var e;class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?WV:zC}}}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:zC,imports:[EA]}),i})();const Uge=[YV,e2,ck,vx,tV,f2,mV,m3,hP,wh,a2,UB,NB,p2,W3,aV,xx,u2,j3,L3,lV,o3,vP];let Gge=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e}),e.\u0275inj=he({providers:[{provide:Qk,useValue:{separatorKeyCodes:[13,188,32]}},{provide:wx,useValue:{duration:2500}}],imports:[Uge,YV,e2,ck,vx,tV,f2,mV,m3,hP,wh,a2,UB,NB,p2,W3,aV,xx,u2,j3,L3,lV,o3,vP]}),i})();var qge=Ss(973);const HC="@ngrx/store/init",Yge=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Kge=(e,i)=>"string"==typeof i&&Yge.test(i)?new Date(i):i,Xge=(e,i)=>i;function KV(e,i){return i.reduce((n,t)=>{if("string"==typeof t||"number"==typeof t){const r=e?.[t];void 0!==r&&(n[t]=r)}else for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=KV(e[r],t[r]));return n},{})}const e_e=(e,i,n,t,r,s)=>{if(s)try{if(!0!==s(e))return}catch(o){if(o instanceof TypeError)return;throw o}i.forEach(o=>{let l,c,d,a=e[o];if("object"==typeof o){let u=Object.keys(o)[0];if(a=e[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let h;o[u].reduce?h=o[u]:o[u].filter&&(h=o[u].filter),h&&(a=KV(a,h)),o[u].encrypt&&o[u].decrypt?"function"==typeof o[u].encrypt&&(d=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&void 0!==n)try{d&&(a=d("string"==typeof a?a:JSON.stringify(a,l,c))),n.setItem(t(o),"string"==typeof a?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&r&&void 0!==n)try{n.removeItem(t(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},t_e=(e,i,n)=>((n.type===HC||"@ngrx/store/update-reducers"===n.type)&&i&&(e=qge(e,i,{arrayMerge:(s,o,a)=>o})),e),XV={settings:tu({language:void 0,sidebar:!0,theme:"dark-theme",selectedFeedback:"relevant"},gi(gx,(e,{language:i})=>({...e,language:i})),gi(_x,(e,{expanded:i})=>({...e,sidebar:i})),gi(wP,e=>({...e,sidebar:!e.sidebar})),gi(xP,e=>({...e,theme:"dark-theme"===e.theme?"light-theme":"dark-theme"})),gi(kP,(e,{feedback:i})=>({...e,selectedFeedback:i}))),assignments:tu({},gi(CP,(e,i)=>function n_e(e,i){const n=e[i.id],t=Sc(e);return t[i.id]={...i,...n},t}(e,i)),gi(rte,(e,{key:i})=>function r_e(e,i){const n=Sc(e);return delete n[i],n}(e,i)),gi(DP,(e,{key:i})=>function s_e(e,i){const n=e[i];if(void 0===n)return e;const t=Sc(e),r=Sc(n);return r.completedOn=Date.now(),t[i]=r,t}(e,i)),gi(ste,e=>({}))),graphSettings:tu({enableSimulation:!0,showLabels:!0},gi(ig,e=>({...e,enableSimulation:!0})),gi(SP,e=>({...e,enableSimulation:!e.enableSimulation})),gi(EP,e=>({...e,showLabels:!e.showLabels}))),graphStore:tu({},gi(bx,(e,i)=>M3(e,i)),gi(MP,(e,{key:i})=>T3(e,i)),gi(ote,e=>({}))),graphCache:tu({[Jk.name]:Jk},gi(TP,(e,i)=>M3(e,i)),gi(ate,(e,{key:i})=>T3(e,i)),gi(lte,e=>({})))},o_e=["graphCache"],a_e=[(e={keys:Object.keys(XV).filter(e=>!o_e.includes(e)),rehydrate:!0,removeOnUndefined:!0},i=>{(void 0===e.storage&&!e.checkStorageAvailability||e.checkStorageAvailability&&typeof window<"u")&&(e.storage=localStorage||window.localStorage),void 0===e.storageKeySerializer&&(e.storageKeySerializer=s=>s),void 0===e.restoreDates&&(e.restoreDates=!0);let n=e.mergeReducer;(void 0===n||"function"!=typeof n)&&(n=t_e);const t=(e=>e.map(i=>{let n=i;if("object"==typeof i&&(n=Object.keys(i)[0]),"string"!=typeof n)throw new TypeError("localStorageSync Unknown Parameter Type: Expected type of string, got "+typeof n);return i}))(e.keys),r=e.rehydrate?((e,i,n,t)=>e.reduce((r,s)=>{let l,c,o=s,a=t?Kge:Xge;if("object"==typeof o&&(o=Object.keys(o)[0],"function"==typeof s[o]?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?"function"==typeof s[o].encrypt&&"function"==typeof s[o].decrypt?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),void 0!==i){let d=i.getItem(n(o));if(d){c&&(d=c(d));const u=new RegExp("{|\\[");let h=d;return("null"===d||"true"===d||"false"===d||u.test(d.charAt(0)))&&(h=JSON.parse(d,a)),Object.assign({},r,{[o]:l?l(h):h})}}return r},{}))(t,e.storage,e.storageKeySerializer,e.restoreDates):void 0;return function(s,o){let a;return a=o.type!==HC||s?{...s}:i(s,o),a=n(a,r,o),a=i(a,o),o.type!==HC&&e_e(a,t,e.storage,e.storageKeySerializer,e.removeOnUndefined,e.syncCondition),a}})];var e;let l_e=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=me({type:e,bootstrap:[Fme]}),e.\u0275inj=he({imports:[nme,EA,nW,Ln,PY,EW,TX.forRoot({level:Ht.INFO,serverLogLevel:Ht.OFF,serverLoggingUrl:void 0,disableConsoleLogging:!1,enableSourceMaps:!1,timestampFormat:void 0,colorScheme:JO,httpResponseType:"json"}),Gge,LY,rK.register("ngsw-worker.js",{enabled:true}),pX.forRoot(XV,{metaReducers:a_e}),KO.forRoot({})]}),i})();W9().bootstrapModule(l_e).catch(e=>console.error(e))},973:Kn=>{"use strict";var Fc=function(He){return function Ss(Re){return!!Re&&"object"==typeof Re}(He)&&!function Ue(Re){var He=Object.prototype.toString.call(Re);return"[object RegExp]"===He||"[object Date]"===He||function un(Re){return Re.$$typeof===Es}(Re)}(He)},Es="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ms(Re,He){return!1!==He.clone&&He.isMergeableObject(Re)?Is(function Qe(Re){return Array.isArray(Re)?[]:{}}(Re),Re,He):Re}function Ph(Re,He,lt){return Re.concat(He).map(function(hn){return Ms(hn,lt)})}function wo(Re){return Object.keys(Re).concat(function Xr(Re){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Re).filter(function(He){return Object.propertyIsEnumerable.call(Re,He)}):[]}(Re))}function Nc(Re,He){try{return He in Re}catch{return!1}}function Is(Re,He,lt){(lt=lt||{}).arrayMerge=lt.arrayMerge||Ph,lt.isMergeableObject=lt.isMergeableObject||Fc,lt.cloneUnlessOtherwiseSpecified=Ms;var hn=Array.isArray(He);return hn===Array.isArray(Re)?hn?lt.arrayMerge(Re,He,lt):function L_(Re,He,lt){var hn={};return lt.isMergeableObject(Re)&&wo(Re).forEach(function(Qt){hn[Qt]=Ms(Re[Qt],lt)}),wo(He).forEach(function(Qt){(function Ts(Re,He){return Nc(Re,He)&&!(Object.hasOwnProperty.call(Re,He)&&Object.propertyIsEnumerable.call(Re,He))})(Re,Qt)||(hn[Qt]=Nc(Re,Qt)&<.isMergeableObject(He[Qt])?function Lh(Re,He){if(!He.customMerge)return Is;var lt=He.customMerge(Re);return"function"==typeof lt?lt:Is}(Qt,lt)(Re[Qt],He[Qt],lt):Ms(He[Qt],lt))}),hn}(Re,He,lt):Ms(He,lt)}Is.all=function(He,lt){if(!Array.isArray(He))throw new Error("first argument should be an array");return He.reduce(function(hn,Qt){return Is(hn,Qt,lt)},{})},Kn.exports=Is},574:(Kn,Fc,Ss)=>{var Ue={"./de.json":634,"./en.json":502};function vr(un){var Qe=Es(un);return Ss(Qe)}function Es(un){if(!Ss.o(Ue,un)){var Qe=new Error("Cannot find module '"+un+"'");throw Qe.code="MODULE_NOT_FOUND",Qe}return Ue[un]}vr.keys=function(){return Object.keys(Ue)},vr.resolve=Es,Kn.exports=vr,vr.id=574},634:Kn=>{"use strict";Kn.exports=JSON.parse('{"actions":{"apply":"Anwenden","back-to-overview":"Zur \xdcbersicht","cancel":"Abbrechen","check":"Pr\xfcfen","collapse":"Einklappen","delete":"L\xf6schen","expand":"Erweitern","export":"Exportieren","filter-causes":"Relevantes filtern","open":"\xd6ffnen","save":"Speichern","show-reason":"Grund anzeigen","submit":"Absenden","title":"Aktionen","undo":"R\xfcckg\xe4ngig machen","update":"Aktualisieren"},"api":{"and":{"both":"Beide Konjunkte gelten","left":"Erstes Konjunkt gilt nicht","neither":"Kein Konjunkt gilt","right":"Zweites Konjunkt gilt nicht"},"bi-implication":{"invalid":"Antezedens gilt genau dann nicht, wenn Konsequenz gilt","negative":{"invalid":"Antezedens gilt genau dann, wenn Konsequenz gilt","left":"Konsequenz gilt nicht, aber Antezedens gilt","right":"Antezedens gilt nicht, aber Konsequenz gilt","valid":"Antezedens und Konsequenz gelten nicht"},"positive":{"invalid":"Antezedens gilt genau dann nicht, wenn Konsequenz nicht gilt","left":"Konsequens gilt, aber Antezedens gilt nicht","right":"Antezedens gilt, aber Konsequenz gilt nicht","valid":"Antezedens und Konsequenz gelten"},"valid":"Antezedens gilt genau dann, wenn Konsequenz gilt"},"constant":{"false":"Konstante ist falsch","true":"Konstante ist wahr"},"error":{"bound-variable-reuse":"In der Formel wird das Symbol \\"{{symbol}}\\" als gebundene Variable definiert, im Graphen jedoch als Funktionssymbol verwendet.","different-arities":"Das Symbol \\"{{symbol}}\\" wird innerhalb des Graphens mit verschiedenen Arit\xe4ten definiert.","different-arities-formula":"Die Arit\xe4t des Symbols \\"{{symbol}}\\" unterscheidet sich zwischen Graph und Formel.","different-function-values":"Die un\xe4re Funktion \\"{{function}}\\" hat zwei Funktionswerte f\xfcr mindestens einen Knoten. Eine Funktion muss rechtseindeutig sein.","duplicate-constant":"Die Konstante \\"{{constant}}\\" kann nur einem Knoten zugewiesen werden.","empty-graph":"Der Graph muss mindestens einen Knoten enthalten.","function-totality":"Die un\xe4re Funktion \\"{{function}}\\" muss total sein.","invalid-constant":"Die Konstante \\"{{constant}}\\" ist ung\xfcltig. Konstantensymbole d\xfcrfen nicht leer sein und m\xfcssen mit einem Kleinbuchstaben beginnen.","invalid-function":"Die Funktion \\"{{function}}\\" ist ung\xfcltig. Funktionssymbole d\xfcrfen nicht leer sein und m\xfcssen mit einem Kleinbuchstaben beginnen.","invalid-relation":"Die Relation \\"{{relation}}\\" ist ung\xfcltig. Relationssymbole d\xfcrfen nicht leer sein und m\xfcssen mit einem Gro\xdfbuchstaben beginnen.","missing-node":"Der Knoten \\"{{node}}\\" fehlt im Graphen.","request-too-big":"Die Berechnung ist zu gro\xdf f\xfcr den Server. Probiere eine niedrigere Feedback-Einstellung.","response-too-big":"Die Antwort ist zu gro\xdf f\xfcr den Server. Probiere eine niedrigere Feedback-Einstellung.","undefined-constant":"Die Konstante \\"{{constant}}\\" wird in der Formel verwendet, ist jedoch im Graphen nicht definiert.","unknown":"Ein unbekannter Fehler ist aufgetreten."},"exists":{"invalid":"Unterformel gilt f\xfcr keine Variablenbelegung","valid":"Unterformel gilt f\xfcr mindestens eine Variablenbelegung"},"forall":{"invalid":"Unterformel gilt nicht f\xfcr alle Variablenbelegungen","valid":"Unterformel gilt f\xfcr alle Variablenbelegungen"},"implication":{"invalid":"Antezedens gilt, aber Konsequenz gilt nicht","left":"Antezedens gilt nicht","right":"Konsequenz gilt"},"invalid":"Der Graph ist kein Modell der Formel","not":{"invalid":"Unterformel gilt","valid":"Unterformel gilt nicht"},"or":{"both":"Beide Disjunkte gelten","left":"Erstes Disjunkt gilt","neither":"Kein Disjunkt gilt","right":"Zweites Disjunkt gilt"},"relation":{"binary":{"invalid":"({{firstResult}}, {{secondResult}}) \u2209 {{relation}}","valid":"({{firstResult}}, {{secondResult}}) \u2208 {{relation}}"},"equality":{"invalid":"{{firstTerm}} = {{firstResult}} \u2260 {{secondResult}} = {{secondTerm}}","valid":"{{firstTerm}} = {{firstResult}} = {{secondTerm}}"},"unary":{"invalid":"{{node}} \u2209 {{relation}}","valid":"{{node}} \u2208 {{relation}}"}},"valid":"Der Graph ist ein Modell der Formel"},"app":{"title":"Apollo"},"assignments":{"completed-on":"Abgeschlossen am {{date}}","hint":"Erstelle zwei Graphen A und B, so dass A \u22a7 \u03c6 und B \u22ad \u03c6 gelten.","not-completed":"Nicht abgeschlossen","solution":{"condition-not-met":"Bedingung \\"{{condition}}\\" nicht erf\xfcllt","correct":"Die L\xf6sung ist korrekt","not-correct":"Die L\xf6sung ist nicht korrekt"},"title":"Aufgaben"},"dashboard":{"github-repository":"GitHub Repository"},"editor":{"link":{"none-selected":"Keine Kante ausgew\xe4hlt.","title":"Kante"},"node":{"none-selected":"Kein Knoten ausgew\xe4hlt.","title":"Knoten"},"symbols":{"new-constant":"Neue Konstante","new-function":"Neue Funktion","new-relation":"Neue Relation"}},"export":{"copy":"Graph in die Zwischenablage kopieren","copy-failure":"Graph konnte nicht in die Zwischenablage kopiert werden.","copy-success":"Graph wurde in die Zwischenablage kopiert.","download":"Graph als Datei herunterladen","json":"JSON","yaml":"YAML"},"feedback":{"full":{"description":"Vollst\xe4ndige Evaluation, inklusive redundanter \xdcberpr\xfcfungen. Funktioniert m\xf6glicherweise nicht bei gro\xdfen Graphen und komplexen Formeln.","name":"Vollst\xe4ndig"},"minimal":{"description":"Partielle Evaluation, exklusive redundanter \xdcberpr\xfcfungen. Nur das Ergebnis.","name":"Minimal"},"relevant":{"description":"Partielle Evaluation, exklusive redundanter \xdcberpr\xfcfungen. Empfohlen.","name":"Relevant"},"title":"Feedback"},"fol":{"constant":{"plural":"Konstanten"},"formula":"Formel","function":{"plural":"Funktionen"},"relation":{"plural":"Relationen"}},"graph":{"controls":{"graph":"Graph\\n Ausw\xe4hlen - Rechte Maustaste / Lange Ber\xfchrung\\n Knoten erstellen - Doppelkick / Plus-Button\\n Kanten erstellen - Klick / Ber\xfchren und ziehen","view":"Ansicht\\n Knoten bewegen - Mittlere Maustaste\\n Ansicht bewegen - Linke Maustaste / Multi-Touch"},"create-node":"Knoten erzeugen","labels":"Beschriftungen","reset-graph":"Anordnung zur\xfccksetzen","save-graph":"Graph speichern","simulation":"Automatische Anordnung","title":"Graph"},"home":{"example-graph":"Beispielgraph","quick-access":"Schnellzugriff","saved-graphs":"Gespeicherte Graphen","title":"Home"},"import":{"file":"Datei importieren","file-error":"Datei konnte nicht importiert werden.","format-hint":"JSON oder YAML","text":"Graph einf\xfcgen oder bearbeiten","title":"Graph importieren"},"lang":{"de":"Deutsch","en":"Englisch"},"misc":{"description":"Beschreibung","false":"Falsch","graph-not-found":"Dieser Graph existiert nicht.","last-edit":"Letzte \xc4nderung","name":"Name","or":"oder","semantics":"Semantik","syntax":"Syntax","true":"Wahr","update-available":"Update verf\xfcgbar"},"model-checker":{"minimize-result":"Ergebnis minimieren","minimize-tooltip":"Bei Aktivierung werden nur notwendige \xdcberpr\xfcfungen durchgef\xfchrt. Notwendig f\xfcr umfangreiche Graphen und komplexe Formeln.","title":"Modellpr\xfcfer"},"result-tree":{"expand-error":"Baum konnte nicht vollst\xe4ndig erweiter werden, da der Datensatz zu gro\xdf ist."},"snackbar":{"graph-deleted":"Graph \\"{{name}}\\" wurde gel\xf6scht."},"validation":{"constant-pattern-error":"Konstantennamen m\xfcssen mit einem Kleinbuchstaben beginnen und d\xfcrfen keine Sonderzeichen enthalten.","edge":{"invalid-functions":"Ung\xfcltiger Graph: Kante von \\"{{source}}\\" zu \\"{{target}}\\" hat ung\xfcltige Funktion(en) (Funktionen m\xfcssen mit einem Kleinbuchstaben beginnen).","invalid-relations":"Ung\xfcltiger Graph: Kante von \\"{{source}}\\" zu \\"{{target}}\\" hat ung\xfcltige Relation(en) (Relationen m\xfcssen mit einem Gro\xdfbuchstaben beginnen).","missing":"Ung\xfcltiger Graph: Kante von \\"{{source}}\\" zu \\"{{target}}\\" fehlt im Graphen."},"function-pattern-error":"Funktionsnamen m\xfcssen mit einem Kleinbuchstaben beginnen und d\xfcrfen keine Sonderzeichen enthalten.","node":{"duplicate":"Ung\xfcltiger Graph: Doppelter Knoten \\"{{node}}\\".","invalid-constants":"Ung\xfcltiger Graph: Knoten \\"{{node}}\\" hat ung\xfcltige Konstante(n) (Konstanten m\xfcssen mit einem Kleinbuchstaben beginnen).","invalid-relations":"Ung\xfcltiger Graph: Knoten \\"{{node}}\\" hat ung\xfcltige Relation(en) (Relationen m\xfcssen mit einem Gro\xdfbuchstaben beginnen).","missing":"Ung\xfcltiger Graph: Knoten \\"{{node}}\\" fehlt im Graphen."},"parse-error":"Eingabe entspricht nicht dem Graph-Schema.","relation-pattern-error":"Relationsnamen m\xfcssen mit einem Gro\xdfbuchstaben beginnen und d\xfcrfen keine Sonderzeichen enthalten."}}')},502:Kn=>{"use strict";Kn.exports=JSON.parse('{"actions":{"apply":"Apply","back-to-overview":"To Overview","cancel":"Cancel","check":"Check","collapse":"Collapse","delete":"Delete","expand":"Expand","export":"Export","filter-causes":"Filter Relevant","open":"Open","save":"Save","show-reason":"Show Reason","submit":"Submit","title":"Actions","undo":"Undo","update":"Update"},"api":{"and":{"both":"Both conjuncts hold","left":"First conjunct does not hold","neither":"Neither conjunct holds","right":"Second conjunct does not hold"},"bi-implication":{"invalid":"Antecedent does not hold if and only if consequent holds","negative":{"invalid":"Antecedent holds if and only if consequent holds","left":"Consequent does not hold, but antecedent holds","right":"Antecedent does not hold, but consequent holds","valid":"Antecedent and consequent do not hold"},"positive":{"invalid":"Antecedent does not hold if and only if consequent does not hold","left":"Consequent holds, but antecedent does not hold","right":"Antecedent holds, but consequent does not hold","valid":"Antecedent and consequent hold"},"valid":"Antecedent holds if and only if consequent holds"},"constant":{"false":"Constant is false","true":"Constant is true"},"error":{"bound-variable-reuse":"In the formula, the symbol \\"{{symbol}}\\" is defined as a bound variable, but used as a function symbol in the graph.","different-arities":"The symbol \\"{{symbol}}\\" is defined with different arities within the graph.","different-arities-formula":"The arity of the symbol \\"{{symbol}}\\" differs between graph and formula.","different-function-values":"The unary function \\"{{function}}\\" has two function values for at least one node. A function must be right-unique.","duplicate-constant":"The constant \\"{{constant}}\\" can only be assigned to one node.","empty-graph":"The graph must contain at least one node.","function-totality":"The unary function \\"{{function}}\\" must be total.","invalid-constant":"The constant \\"{{constant}}\\" is invalid. Constant symbols cannot be empty and must start with a lowercase letter.","invalid-function":"The function \\"{{function}}\\" is invalid. Function symbols cannot be empty and must start with a lowercase letter.","invalid-relation":"The relation \\"{{relation}}\\" is invalid. Relation symbols cannot be empty and must start with an uppercase letter.","missing-node":"The node \\"{{node}}\\" is missing from the graph.","request-too-big":"The computation is too big for the server. Try a lower feedback setting.","response-too-big":"The result is too big for the server. Try a lower feedback setting.","undefined-constant":"The constant \\"{{constant}}\\" appears in the formula, but is not defined in the graph.","unknown":"An unknown error occurred."},"exists":{"invalid":"Subformula holds for no variable assignments","valid":"Subformula holds for some variable assignments"},"forall":{"invalid":"Subformula does not hold for some variable assignments","valid":"Subformula holds for all variable assignments"},"implication":{"invalid":"Antecedent holds, but consequent does not hold","left":"Antecedent does not hold","right":"Consequent holds"},"invalid":"The graph is not a model of the formula","not":{"invalid":"Subformula holds","valid":"Subformula does not hold"},"or":{"both":"Both disjuncts hold","left":"First disjunct holds","neither":"Neither disjunct holds","right":"Second disjunct holds"},"relation":{"binary":{"invalid":"({{firstResult}}, {{secondResult}}) \u2209 {{relation}}","valid":"({{firstResult}}, {{secondResult}}) \u2208 {{relation}}"},"equality":{"invalid":"{{firstTerm}} = {{firstResult}} \u2260 {{secondResult}} = {{secondTerm}}","valid":"{{firstTerm}} = {{firstResult}} = {{secondTerm}}"},"unary":{"invalid":"{{node}} \u2209 {{relation}}","valid":"{{node}} \u2208 {{relation}}"}},"valid":"The graph is a model of the formula"},"app":{"title":"Apollo"},"assignments":{"completed-on":"Completed on {{date}}","hint":"Create two models A and B, so that A \u22a7 \u03c6 and B \u22ad \u03c6 hold.","not-completed":"Not completed","solution":{"condition-not-met":"Condition \\"{{condition}}\\" not met","correct":"The solution is correct","not-correct":"The solution is not correct"},"title":"Assignments"},"dashboard":{"github-repository":"GitHub Repository"},"editor":{"link":{"none-selected":"No Edge selected.","title":"Edge"},"node":{"none-selected":"No Node selected.","title":"Node"},"symbols":{"new-constant":"New Constant","new-function":"New Function","new-relation":"New Relation"}},"export":{"copy":"Copy Graph to clipboard","copy-failure":"Could not copy Graph to clipboard.","copy-success":"Graph has been copied to the clipboard.","download":"Download Graph as file","json":"JSON","yaml":"YAML"},"feedback":{"full":{"description":"Full evaluation, including redundant checks. May not work for large graphs and complex formulas.","name":"Full"},"minimal":{"description":"Partial evaluation, excluding redundant checks. Only the result.","name":"Minimal"},"relevant":{"description":"Partial evaluation, excluding redundant checks. Recommended.","name":"Relevant"},"title":"Feedback"},"fol":{"constant":{"plural":"Constants"},"formula":"Formula","function":{"plural":"Functions"},"relation":{"plural":"Relations"}},"graph":{"controls":{"graph":"Graph\\n Selecting - Right mouse button / Long touch\\n Creating nodes - Double-click / Plus-button\\n Creating edges - Click / Touch and drag","view":"View\\n Moving nodes - Middle mouse button\\n Move view - Left mouse button / Multi-touch"},"create-node":"Create Node","labels":"Labels","reset-graph":"Reset Layout","save-graph":"Save Graph","simulation":"Automatic Layout","title":"Graph"},"home":{"example-graph":"Example Graph","quick-access":"Quick Access","saved-graphs":"Saved Graphs","title":"Home"},"import":{"file":"Import File","file-error":"Could not import File.","format-hint":"JSON or YAML","text":"Paste or edit Graph","title":"Import Graph"},"lang":{"de":"German","en":"English"},"misc":{"description":"Description","false":"False","graph-not-found":"This graph does not exist.","last-edit":"Last Edit","name":"Name","or":"or","semantics":"Semantics","syntax":"Syntax","true":"True","update-available":"Update available"},"model-checker":{"minimize-result":"Minimize Result","minimize-tooltip":"When enabled, only necessary checks are evaluated. Required for big graphs and complex formulas.","title":"Model Checker"},"result-tree":{"expand-error":"Unable to expand tree completely, because the dataset is too big."},"snackbar":{"graph-deleted":"Graph \\"{{name}}\\" has been deleted."},"validation":{"constant-pattern-error":"Names of constants must start with a lowercase letter and cannot contain special characters.","edge":{"invalid-functions":"Invalid graph: Edge from \\"{{source}}\\" to \\"{{target}}\\" has invalid function(s) (Functions must begin with a lowercase letter).","invalid-relations":"Invalid graph: Edge from \\"{{source}}\\" to \\"{{target}}\\" has invalid relation(s) (Relations must begin with an uppercase letter).","missing":"Invalid graph: Edge from \\"{{source}}\\" to \\"{{target}}\\" is missing from the graph."},"function-pattern-error":"Names of functions must start with a lowercase letter and cannot contain special characters.","node":{"duplicate":"Invalid graph: Duplicate Node \\"{{node}}\\".","invalid-constants":"Invalid graph: Node \\"{{node}}\\" has invalid constant(s) (Constants must begin with a lowercase letter).","invalid-relations":"Invalid graph: Node \\"{{node}}\\" has invalid relation(s) (Relations must begin with an uppercase letter).","missing":"Invalid graph: Node \\"{{node}}\\" is missing from the graph."},"parse-error":"Input does not match the graph schema.","relation-pattern-error":"Names of relations must start with an uppercase letter and cannot contain special characters."}}')}},Kn=>{Kn(Kn.s=553)}]); \ No newline at end of file diff --git a/ngsw-worker.js b/ngsw-worker.js index 3cce2ef..640c339 100644 --- a/ngsw-worker.js +++ b/ngsw-worker.js @@ -19,7 +19,7 @@ }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/named-cache-storage.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/named-cache-storage.mjs var NamedCacheStorage = class { constructor(original, cacheNamePrefix) { this.original = original; @@ -46,7 +46,7 @@ } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/adapter.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/adapter.mjs var Adapter = class { constructor(scopeUrl, caches) { this.scopeUrl = scopeUrl; @@ -84,7 +84,7 @@ } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/database.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/database.mjs var NotFound = class { constructor(table, key) { this.table = table; @@ -92,7 +92,7 @@ } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/db-cache.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/db-cache.mjs var CacheDatabase = class { constructor(adapter2) { this.adapter = adapter2; @@ -150,7 +150,7 @@ } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/api.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/api.mjs var UpdateCacheStatus; (function(UpdateCacheStatus2) { UpdateCacheStatus2[UpdateCacheStatus2["NOT_CACHED"] = 0] = "NOT_CACHED"; @@ -158,7 +158,7 @@ UpdateCacheStatus2[UpdateCacheStatus2["CACHED"] = 2] = "CACHED"; })(UpdateCacheStatus || (UpdateCacheStatus = {})); - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/error.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/error.mjs var SwCriticalError = class extends Error { constructor() { super(...arguments); @@ -180,7 +180,7 @@ ${error.stack}`; } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/sha1.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/sha1.mjs function sha1(str) { const utf8 = str; const words32 = stringToWords32(utf8, Endian.Big); @@ -295,7 +295,7 @@ ${error.stack}`; return hex.toLowerCase(); } - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/assets.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/assets.mjs var AssetGroup = class { constructor(scope2, adapter2, idle, config, hashes, db, cacheNamePrefix) { this.scope = scope2; @@ -571,7 +571,7 @@ ${error.stack}`; } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/data.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/data.mjs var LruList = class { constructor(state) { if (state === void 0) { @@ -865,7 +865,7 @@ ${error.stack}`; } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/app-version.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/app-version.mjs var BACKWARDS_COMPATIBILITY_NAVIGATION_URLS = [ { positive: true, regex: "^/.*$" }, { positive: false, regex: "^/.*\\.[^/]*$" }, @@ -1016,8 +1016,8 @@ ${error.stack}`; } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs - var SW_VERSION = "16.2.0"; + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs + var SW_VERSION = "16.2.1"; var DEBUG_LOG_BUFFER_SIZE = 100; var DebugHandler = class { constructor(driver, adapter2) { @@ -1090,7 +1090,7 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" } } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/idle.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/idle.mjs var IdleScheduler = class { constructor(adapter2, delay, maxDelay, debug) { this.adapter = adapter2; @@ -1168,12 +1168,12 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" } } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/manifest.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/manifest.mjs function hashManifest(manifest) { return sha1(JSON.stringify(manifest)); } - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/msg.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/msg.mjs function isMsgCheckForUpdates(msg) { return msg.action === "CHECK_FOR_UPDATES"; } @@ -1181,7 +1181,7 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" } return msg.action === "ACTIVATE_UPDATE"; } - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/driver.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/driver.mjs var IDLE_DELAY = 5e3; var MAX_IDLE_DELAY = 3e4; var SUPPORTED_CONFIG_VERSION = 1; @@ -1838,7 +1838,7 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" } } }; - // bazel-out/darwin-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/main.mjs + // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/main.mjs var scope = self; var adapter = new Adapter(scope.registration.scope, self.caches); new Driver(scope, adapter, new CacheDatabase(adapter)); diff --git a/ngsw.json b/ngsw.json index f919bca..f62a846 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1692406273061, + "timestamp": 1692420517690, "index": "/index.html", "assetGroups": [ { @@ -13,7 +13,7 @@ "urls": [ "/favicon.ico", "/index.html", - "/main.841f90527c80b6ac.js", + "/main.50e524b20e59ef16.js", "/manifest.webmanifest", "/polyfills.71669cf8a492d596.js", "/runtime.16c34e9e8ef2d437.js", @@ -68,8 +68,8 @@ "/favicon-16x16.png": "922d40d15719aac5c785250038b6870376ced0ef", "/favicon-32x32.png": "4ea71803efbb7d495d020b1cc3aaec9b8b272ceb", "/favicon.ico": "4be721124f2d5daa10fb5f2a9eaaf1cfa4266b5f", - "/index.html": "04c5649837081bba1204978025595286fab59ed5", - "/main.841f90527c80b6ac.js": "f186bfd8141f050366803e8dc4324b88bc3b6d63", + "/index.html": "2e9ac5be373ed85be5f19760483892085273cb88", + "/main.50e524b20e59ef16.js": "2d1bf86ba1d342e9332ea4a4c087da9db22df7fc", "/manifest.webmanifest": "255cadee03052d4d3bf25441ee5714193366c583", "/polyfills.71669cf8a492d596.js": "5ecab8da2933e196fc7abe65eccd9d749e281f07", "/runtime.16c34e9e8ef2d437.js": "b47096f39d0cd48f370fbce535f42a4ddab261f6",