From 1c11a0e8f071fdfa142fe960a91b1ab466fc865b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 24 Jun 2024 11:56:49 +0200 Subject: [PATCH] =?UTF-8?q?Http-Interceptor=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../envelope-generator-ui/angular.json | 6 +- .../src/app/app.config.ts | 8 +- .../src/app/guards/auth.guard.ts | 4 +- .../src/app/http.interceptor.spec.ts | 17 ++ .../src/app/http.interceptor.ts | 21 +++ .../app/services/envelope-receiver.service.ts | 8 +- .../Controllers/AuthController.cs | 3 +- EnvelopeGenerator.GeneratorAPI/Program.cs | 1 - .../wwwroot/chunk-IVZQAEN6.js | 1 + .../wwwroot/chunk-JIAP5FFR.js | 7 + .../wwwroot/chunk-KPVI7RD6.js | 7 - .../wwwroot/chunk-NALQ2D3H.js | 1 - .../wwwroot/envelope/index.html | 16 ++ .../wwwroot/index.html | 177 +----------------- .../wwwroot/login/index.html | 16 ++ .../wwwroot/main-U7N36S7P.js | 166 ---------------- .../wwwroot/main-XSCKS6NF.js | 92 +++++++++ 17 files changed, 193 insertions(+), 358 deletions(-) create mode 100644 EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.spec.ts create mode 100644 EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.ts create mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-IVZQAEN6.js create mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-JIAP5FFR.js delete mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-KPVI7RD6.js delete mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-NALQ2D3H.js create mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/envelope/index.html create mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/login/index.html delete mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/main-U7N36S7P.js create mode 100644 EnvelopeGenerator.GeneratorAPI/wwwroot/main-XSCKS6NF.js diff --git a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/angular.json b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/angular.json index 8b98de15..838b33df 100644 --- a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/angular.json +++ b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/angular.json @@ -45,8 +45,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "500kb", - "maximumError": "1mb" + "maximumWarning": "1.5mb", + "maximumError": "2mb" }, { "type": "anyComponentStyle", @@ -114,4 +114,4 @@ } } } -} +} \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/app.config.ts b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/app.config.ts index 9399d16a..869ce43e 100644 --- a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/app.config.ts +++ b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/app.config.ts @@ -6,7 +6,8 @@ import { provideAnimationsAsync } from '@angular/platform-browser/animations/asy import { APP_BASE_HREF } from '@angular/common'; import { UrlService } from './services/url.service'; import { API_URL } from './tokens/index' -import { provideHttpClient, withFetch } from '@angular/common/http'; +import { HTTP_INTERCEPTORS, provideHttpClient, withFetch } from '@angular/common/http'; +import { HttpRequestInterceptor } from './http.interceptor'; export const appConfig: ApplicationConfig = { providers: [ @@ -23,6 +24,11 @@ export const appConfig: ApplicationConfig = { provide: API_URL, useFactory: (urlService: UrlService) => urlService.getApiUrl(), deps: [UrlService] + }, + { + provide: HTTP_INTERCEPTORS, + useClass: HttpRequestInterceptor, + multi: true } ] }; \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/guards/auth.guard.ts b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/guards/auth.guard.ts index 2c8ebf8c..c61fddfc 100644 --- a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/guards/auth.guard.ts +++ b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/guards/auth.guard.ts @@ -3,11 +3,13 @@ import { inject } from '@angular/core'; import { CanActivateFn, Router } from '@angular/router'; import { AuthService } from '../services/auth.service'; import { map } from 'rxjs/operators'; -import { Observable } from 'rxjs'; export const authGuard: CanActivateFn = (route, state) => { const authService = inject(AuthService); const router = inject(Router); + + authService.isAuthenticated().subscribe({next: res => console.log(res)}) + return authService.isAuthenticated().pipe( map(isAuthenticated => { if (!isAuthenticated) { diff --git a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.spec.ts b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.spec.ts new file mode 100644 index 00000000..2e47e5c3 --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.spec.ts @@ -0,0 +1,17 @@ +import { TestBed } from '@angular/core/testing'; +import { HttpInterceptorFn } from '@angular/common/http'; + +import { httpInterceptor } from './http.interceptor'; + +describe('httpInterceptor', () => { + const interceptor: HttpInterceptorFn = (req, next) => + TestBed.runInInjectionContext(() => httpInterceptor(req, next)); + + beforeEach(() => { + TestBed.configureTestingModule({}); + }); + + it('should be created', () => { + expect(interceptor).toBeTruthy(); + }); +}); diff --git a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.ts b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.ts new file mode 100644 index 00000000..9e0e1c51 --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/http.interceptor.ts @@ -0,0 +1,21 @@ +import { Injectable } from '@angular/core'; +import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http'; +import { Observable } from 'rxjs'; + +@Injectable() +export class HttpRequestInterceptor implements HttpInterceptor { + intercept(req: HttpRequest, next: HttpHandler): Observable> { + const secureReq = req.clone({ + withCredentials: true, + setHeaders: { + 'X-Insecure-Request': 'true', + 'Content-Type': 'application/json', + ...req.headers.keys().reduce((headers, key) => { + headers[key] = req.headers.get(key) || ''; + return headers; + }, {} as { [name: string]: string }) + } + }); + return next.handle(secureReq); + } +} \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/services/envelope-receiver.service.ts b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/services/envelope-receiver.service.ts index 8c80bcba..8b4306da 100644 --- a/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/services/envelope-receiver.service.ts +++ b/EnvelopeGenerator.GeneratorAPI/ClientApp/envelope-generator-ui/src/app/services/envelope-receiver.service.ts @@ -9,16 +9,12 @@ import { API_URL } from '../tokens/index'; export class EnvelopeReceiverService { private url: string; - constructor(private http: HttpClient) { + constructor(private http: HttpClient) { const api_url = inject(API_URL); this.url = `${api_url}/envelopereceiver`; } getEnvelopeReceiver(): Observable { - const headers = new HttpHeaders({ - 'Content-Type': 'application/json', - }); - - return this.http.get(this.url, { withCredentials: true , headers }); + return this.http.get(this.url); } } \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/Controllers/AuthController.cs b/EnvelopeGenerator.GeneratorAPI/Controllers/AuthController.cs index 4948e122..8d790429 100644 --- a/EnvelopeGenerator.GeneratorAPI/Controllers/AuthController.cs +++ b/EnvelopeGenerator.GeneratorAPI/Controllers/AuthController.cs @@ -64,6 +64,7 @@ namespace EnvelopeGenerator.GeneratorAPI.Controllers { IsPersistent = true, AllowRefresh = true, + ExpiresUtc = DateTime.Now.AddMinutes(180) }; // Sign in @@ -72,8 +73,6 @@ namespace EnvelopeGenerator.GeneratorAPI.Controllers new ClaimsPrincipal(claimsIdentity), authProperties); - _dirSearchService.SetSearchRootCache(user.Username, login.Password); - return Ok(); } catch(Exception ex) diff --git a/EnvelopeGenerator.GeneratorAPI/Program.cs b/EnvelopeGenerator.GeneratorAPI/Program.cs index e038d12b..ff15fba3 100644 --- a/EnvelopeGenerator.GeneratorAPI/Program.cs +++ b/EnvelopeGenerator.GeneratorAPI/Program.cs @@ -44,7 +44,6 @@ builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationSc options.Cookie.SameSite = SameSiteMode.Strict; // Protects against CSRF attacks by restricting how cookies are sent with requests from external sites options.LoginPath = "/api/auth/login"; options.LogoutPath = "/api/auth/logout"; - options.ExpireTimeSpan = TimeSpan.FromMinutes(60); options.SlidingExpiration = true; }); diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-IVZQAEN6.js b/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-IVZQAEN6.js new file mode 100644 index 00000000..438854a9 --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-IVZQAEN6.js @@ -0,0 +1 @@ +import{Ec as S,Fc as B,Ic as yt,Jc as Me,Mc as x,Nc as Ce,Oc as ue,_ as E,a as he,aa as gt,c as pt}from"./chunk-JIAP5FFR.js";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function Zt(n){return new E(3003,!1)}function Jt(n){return new E(3004,!1)}function xt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function as(){return new E(3012,!1)}function os(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Es(n){return new E(3504,!1)}function Ss(n){return new E(3301,!1)}function Ts(n,e){return new E(3302,!1)}function vs(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function As(n){return new E(3402,!1)}function Ps(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Ce(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ke(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ke(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ke(t,"destroy",n)));break}}function ke(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function st(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Et(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ms=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ms?null:e}function Cs(n){return n.substring(1,6)=="ebkit"}var H=null,St=!1;function ks(n){H||(H=Ds()||{},St=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Cs(n)&&(e=n in H.style,!e&&St&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function Ai(n){return Ns.has(n)}function Ds(){return typeof document<"u"?document.body:null}function zt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function Kt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var qt=(()=>{let e=class e{validateStyleProperty(s){return ks(s)}matchesElement(s,i){return!1}containsElement(s,i){return zt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return Kt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,a,o,l=[],h){return new x(r,a)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new qt;var Tt=ut,Ie=class{},ze=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Rs=1e3,Bt="{{",Os="}}",nt="ng-enter",ge="ng-leave",ce="ng-trigger",ye=".ng-trigger",vt="ng-animating",Ke=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qe(parseFloat(e[1]),e[2])}function qe(n,e){switch(e){case"s":return n*Rs;default:return n}}function _e(n,e,t){return n.hasOwnProperty("duration")?n:Ls(n,e,t)}function Ls(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=qe(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=qe(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Ht()),o=!0),r<0&&(e.push(Yt()),o=!0),o&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:a}}function Fs(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ie(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Os}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function re(n,e,t){let s=`${n}`,i=s.replace(Be,(r,a)=>{let o=e[a];return o==null&&(t.push(Zt(a)),o=""),o.toString()});return i==s?n:i}var zs=/-+([a-z0-9])/g;function rt(n){return n.replace(zs,(...e)=>e[1].toUpperCase())}function Pi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ks(n,e){return n===0||e===0}function qs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,at(n,o)))}}return e}function O(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw Jt(e.type)}}function at(n,e){return window.getComputedStyle(n)[e]}var Bs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(xt(e,s))}return a+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(bt(i,a));let o=i==Ee&&a==Ee;r[0]=="<"&&!o&&e.push(bt(a,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var fe=new Set(["true","1"]),de=new Set(["false","0"]);function bt(n,e){let t=fe.has(n)||de.has(n),s=fe.has(e)||de.has(e);return(i,r)=>{let a=n==Ee||n==i,o=e==Ee||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?fe.has(n):de.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?fe.has(e):de.has(e)),a&&o}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function ot(n,e,t,s){return new $e(n).build(e,t,s)}var At="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),O(this,ie(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=At,e.collectedStyles=new Map,e.collectedStyles.set(At,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==S.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==S.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(ts())}),{type:S.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,ie(e.animation),t),i=Qs(e.expr,t.errors);return{type:S.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:S.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==S.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(is(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:S.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Gs(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:S.Reference,animation:O(this,ie(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:S.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_e(e.timings,t.errors,!0);return{type:S.Stagger,animation:O(this,ie(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,ye).replace(/@\w+/g,t=>ye+"-"+t.slice(1)).replace(/:animating/g,Ke),[n,e]}function Ws(n){return n?he({},n):null}var Ve=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=_e(n,e).duration;return De(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=De(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=_e(t,e);return De(i.duration,i.delay,i.easing)}function Y(n){return n?(n=he({},n),n.params&&(n.params=Ws(n.params))):n={},n}function De(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",Zs=new RegExp(Xs,"g"),Js=":leave",xs=new RegExp(Js,"g");function ht(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(re(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==S.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Se);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?re(s,t.params,t.errors):s;return _e(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===S.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Se={},je=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Se,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Zs,"."+this._enterClassName),e=e.replace(xs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(us(t)),o}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=ei(e,this._globalTimelineStyles);for(let[o,l]of a){let h=re(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===ue?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return lt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",Pt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",Pt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function Pt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function Nt(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var Re={},ve=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||Re,y=o&&o.params||Re,d=this.buildStyles(s,y,u),g=l&&l.params||Re,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Vt(g,_),delay:this.ast.options?.delay},K=c?[]:ht(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?Nt(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ct=L(C,j,new Set);D.postStyleProps.forEach(W=>ct.add(W)),j!==t&&b.add(j)}),Nt(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=he({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new ve(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(a,o)=>!0],i={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new ve(n,r,e)}function Mt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=ot(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ht(this._driver,t,r,nt,ge,new Map,new Map,s,ni,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(_s()),a=[]),i.length)throw Es(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ss(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Ct="ng-animate-queued",ri=".ng-animate-queued",Oe="ng-animate-disabled",ai=".ng-animate-disabled",oi="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:a}=r,o=pt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ne="void",Le=new ae(ne),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ts(s,t);if(s==null||s.length==0)throw vs(t);if(!di(s))throw ws(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Le)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new oe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Le),!(h.value===ne)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Ct),a.onStart(()=>{ee(e,Ct)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ye,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ne,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Le,c=new ae(ne),u=new oe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ze=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!me(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Oe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Oe))}removeNode(e,t,s){if(me(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return me(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ye,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ke,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Oe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ai,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw As(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=Rt(_,Array.from(b));N.forEach((f,m)=>{let p=ge+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let le=F.get(p.triggerName);le.value=G,F.set(p.triggerName,le)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let mt=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||mt.push(M)}),w.timelines=mt,s.append(P,w.timelines);let Gt={instruction:w,player:T,element:P};a.push(Gt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))})});if(K.length){let f=[];K.forEach(m=>{f.push(Ps(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Ot(f,l,h)),J=new Map;Dt(J,this.driver,A,h,B).forEach(f=>{Ot(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Dt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Pe=[],ft=[],dt={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=dt;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===dt)Pe.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?mi(this,m,P):this.processLeaveNode(m)}return v.length=0,Pe.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Pe}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=pi((s.get(g)||hi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=It(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new oe(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,vt));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,vt)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},oe=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function me(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function kt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Dt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(kt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=ui,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>kt(l,r[o++])),a}function Rt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var we=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new Ze(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=ot(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,o=si(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Et(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Et(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Fe(e[0]),e.length>1&&(s=Fe(e[e.length-1]))):e instanceof Map&&(t=Fe(e)),t||s?new Je(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Je=te;function Fe(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var be=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:at(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},xe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return zt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return Kt(e,t,s)}computeStyle(e,t,s){return at(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof be);Ks(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Fs(t).map(y=>new Map(y));u=qs(e,u,h);let _=yi(e,u);return new be(e,u,l,_)}};function Ni(n,e,t){return n==="noop"?new we(e,new qt,new ze,t):new we(e,new xe,new Qe,t)}var Lt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=ot(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?wt(t):t,o=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ge,a,o,i,r,l);if(l.length)throw ms(l);return h}},pe="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==pe&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==pe?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==pe){let i=Ei(e),r=t.slice(1),a="";return r.charAt(0)!=pe&&([r,a]=Si(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function Ei(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Si(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ft=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let a=r?.parentNode(i);a&&r.removeChild(a,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new et(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{Tt as AnimationDriver,qt as NoopAnimationDriver,Lt as \u0275Animation,we as \u0275AnimationEngine,et as \u0275AnimationRenderer,Ft as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,ze as \u0275NoopAnimationStyleNormalizer,xe as \u0275WebAnimationsDriver,be as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,Ks as \u0275allowPreviousPlayerStylesMerge,Pi as \u0275camelCaseToDashCase,zt as \u0275containsElement,Ni as \u0275createEngine,it as \u0275getParentElement,Kt as \u0275invokeQuery,Fs as \u0275normalizeKeyframes,ks as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-JIAP5FFR.js b/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-JIAP5FFR.js new file mode 100644 index 00000000..57737cea --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-JIAP5FFR.js @@ -0,0 +1,7 @@ +var $f=Object.defineProperty,Hf=Object.defineProperties;var Uf=Object.getOwnPropertyDescriptors;var jn=Object.getOwnPropertySymbols;var Va=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable;var Ro=(e,t,n)=>t in e?$f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,en=(e,t)=>{for(var n in t||={})Va.call(t,n)&&Ro(e,n,t[n]);if(jn)for(var n of jn(t))Ba.call(t,n)&&Ro(e,n,t[n]);return e},tn=(e,t)=>Hf(e,Uf(t));var mI=(e,t)=>{var n={};for(var r in e)Va.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jn)for(var r of jn(e))t.indexOf(r)<0&&Ba.call(e,r)&&(n[r]=e[r]);return n};var yI=(e,t,n)=>(Ro(e,typeof t!="symbol"?t+"":t,n),n);var Gf=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});var $a=null;var Po=1,Ha=Symbol("SIGNAL");function b(e){let t=$a;return $a=e,t}var Ua={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function zf(e){if(!(jo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Po)){if(!e.producerMustRecompute(e)&&!ko(e)){e.dirty=!1,e.lastCleanEpoch=Po;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Po}}function Ga(e){return e&&(e.nextProducerIndex=0),b(e)}function za(e,t){if(b(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(jo(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ko(e){Vn(e);for(let t=0;t0}function Vn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Wf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function qf(){throw new Error}var Yf=qf;function qa(e){Yf=e}function m(e){return typeof e=="function"}function xt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Bn=xt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ot(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var G=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(m(r))try{r()}catch(i){t=i instanceof Bn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ya(i)}catch(s){t=t??[],s instanceof Bn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Bn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ya(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ot(n,t)}remove(t){let{_finalizers:n}=this;n&&ot(n,t),t instanceof e&&t._removeParent(this)}};G.EMPTY=(()=>{let e=new G;return e.closed=!0,e})();var Vo=G.EMPTY;function $n(e){return e instanceof G||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function Ya(e){m(e)?e():e.unsubscribe()}var De={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var St={setTimeout(e,t,...n){let{delegate:r}=St;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=St;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Hn(e){St.setTimeout(()=>{let{onUnhandledError:t}=De;if(t)t(e);else throw e})}function nn(){}var Qa=Bo("C",void 0,void 0);function Za(e){return Bo("E",void 0,e)}function Ka(e){return Bo("N",e,void 0)}function Bo(e,t,n){return{kind:e,value:t,error:n}}var it=null;function Tt(e){if(De.useDeprecatedSynchronousErrorHandling){let t=!it;if(t&&(it={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=it;if(it=null,n)throw r}}else e()}function Ja(e){De.useDeprecatedSynchronousErrorHandling&&it&&(it.errorThrown=!0,it.error=e)}var st=class extends G{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,$n(t)&&t.add(this)):this.destination=Kf}static create(t,n,r){return new Re(t,n,r)}next(t){this.isStopped?Ho(Ka(t),this):this._next(t)}error(t){this.isStopped?Ho(Za(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ho(Qa,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Qf=Function.prototype.bind;function $o(e,t){return Qf.call(e,t)}var Uo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Un(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Un(r)}else Un(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Un(n)}}},Re=class extends st{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&De.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&$o(t.next,i),error:t.error&&$o(t.error,i),complete:t.complete&&$o(t.complete,i)}):o=t}this.destination=new Uo(o)}};function Un(e){De.useDeprecatedSynchronousErrorHandling?Ja(e):Hn(e)}function Zf(e){throw e}function Ho(e,t){let{onStoppedNotification:n}=De;n&&St.setTimeout(()=>n(e,t))}var Kf={closed:!0,next:nn,error:Zf,complete:nn};var Nt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Q(e){return e}function Jf(...e){return Go(e)}function Go(e){return e.length===0?Q:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var C=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=ep(n)?n:new Re(n,r,o);return Tt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Xa(r),new r((o,i)=>{let s=new Re({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Nt](){return this}pipe(...n){return Go(n)(this)}toPromise(n){return n=Xa(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Xa(e){var t;return(t=e??De.Promise)!==null&&t!==void 0?t:Promise}function Xf(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function ep(e){return e&&e instanceof st||Xf(e)&&$n(e)}function zo(e){return m(e?.lift)}function I(e){return t=>{if(zo(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function v(e,t,n,r,o){return new Wo(e,t,n,r,o)}var Wo=class extends st{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function qo(){return I((e,t)=>{let n=null;e._refCount++;let r=v(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Yo=class extends C{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,zo(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new G;let n=this.getSubject();t.add(this.source.subscribe(v(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=G.EMPTY)}return t}refCount(){return qo()(this)}};var eu=xt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var fe=(()=>{class e extends C{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Gn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new eu}next(n){Tt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Tt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Tt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Vo:(this.currentObservers=null,i.push(n),new G(()=>{this.currentObservers=null,ot(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new C;return n.source=this,n}}return e.create=(t,n)=>new Gn(t,n),e})(),Gn=class extends fe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Vo}};var rn=class extends fe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var on={now(){return(on.delegate||Date).now()},delegate:void 0};var sn=class extends fe{constructor(t=1/0,n=1/0,r=on){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Yn(e){return e&&m(e.schedule)}function Qo(e){return e[e.length-1]}function Ot(e){return m(Qo(e))?e.pop():void 0}function xe(e){return Yn(Qo(e))?e.pop():void 0}function nu(e,t){return typeof Qo(e)=="number"?e.pop():t}function eC(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function ou(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function ru(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(e){return this instanceof at?(this.v=e,this):new at(e)}function iu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(g){return new Promise(function(S,x){i.push([f,g,S,x])>1||u(f,g)})},h&&(o[f]=h(o[f])))}function u(f,h){try{c(r[f](h))}catch(g){p(i[0][3],g)}}function c(f){f.value instanceof at?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function su(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ru=="function"?ru(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Ft=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qn(e){return m(e?.then)}function Zn(e){return m(e[Nt])}function Kn(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function Jn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function tp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xn=tp();function er(e){return m(e?.[Xn])}function tr(e){return iu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield at(n.read());if(o)return yield at(void 0);yield yield at(r)}}finally{n.releaseLock()}})}function nr(e){return m(e?.getReader)}function T(e){if(e instanceof C)return e;if(e!=null){if(Zn(e))return np(e);if(Ft(e))return rp(e);if(Qn(e))return op(e);if(Kn(e))return au(e);if(er(e))return ip(e);if(nr(e))return sp(e)}throw Jn(e)}function np(e){return new C(t=>{let n=e[Nt]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rp(e){return new C(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Hn)})}function ip(e){return new C(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function au(e){return new C(t=>{ap(e,t).catch(n=>t.error(n))})}function sp(e){return au(tr(e))}function ap(e,t){var n,r,o,i;return ou(this,void 0,void 0,function*(){try{for(n=su(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function rr(e,t=0){return I((n,r)=>{n.subscribe(v(r,o=>ne(r,e,()=>r.next(o),t),()=>ne(r,e,()=>r.complete(),t),o=>ne(r,e,()=>r.error(o),t)))})}function or(e,t=0){return I((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function uu(e,t){return T(e).pipe(or(t),rr(t))}function cu(e,t){return T(e).pipe(or(t),rr(t))}function lu(e,t){return new C(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function du(e,t){return new C(n=>{let r;return ne(n,t,()=>{r=e[Xn](),ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>m(r?.return)&&r.return()})}function ir(e,t){if(!e)throw new Error("Iterable cannot be null");return new C(n=>{ne(n,t,()=>{let r=e[Symbol.asyncIterator]();ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function fu(e,t){return ir(tr(e),t)}function pu(e,t){if(e!=null){if(Zn(e))return uu(e,t);if(Ft(e))return lu(e,t);if(Qn(e))return cu(e,t);if(Kn(e))return ir(e,t);if(er(e))return du(e,t);if(nr(e))return fu(e,t)}throw Jn(e)}function Se(e,t){return t?pu(e,t):T(e)}function up(...e){let t=xe(e);return Se(e,t)}function cp(e,t){let n=m(e)?e:()=>e,r=o=>o.error(n());return new C(t?o=>t.schedule(r,0,o):r)}function lp(e){return!!e&&(e instanceof C||m(e.lift)&&m(e.subscribe))}var ut=xt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function hu(e){return e instanceof Date&&!isNaN(e)}function ke(e,t){return I((n,r)=>{let o=0;n.subscribe(v(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:dp}=Array;function fp(e,t){return dp(t)?e(...t):e(t)}function Rt(e){return ke(t=>fp(e,t))}var{isArray:pp}=Array,{getPrototypeOf:hp,prototype:gp,keys:mp}=Object;function sr(e){if(e.length===1){let t=e[0];if(pp(t))return{args:t,keys:null};if(yp(t)){let n=mp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function yp(e){return e&&typeof e=="object"&&hp(e)===gp}function ar(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Dp(...e){let t=xe(e),n=Ot(e),{args:r,keys:o}=sr(e);if(r.length===0)return Se([],t);let i=new C(vp(r,t,o?s=>ar(o,s):Q));return n?i.pipe(Rt(n)):i}function vp(e,t,n=Q){return r=>{gu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=Se(e[u],t),l=!1;c.subscribe(v(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function gu(e,t,n){e?ne(n,e,t):t()}function mu(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=g=>c{i&&t.next(g),c++;let S=!1;T(n(g,l++)).subscribe(v(t,x=>{o?.(x),i?f(x):t.next(x)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;u.length&&ch(x)):h(x)}p()}catch(x){t.error(x)}}))};return e.subscribe(v(t,f,()=>{d=!0,p()})),()=>{a?.()}}function ve(e,t,n=1/0){return m(t)?ve((r,o)=>ke((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),I((r,o)=>mu(r,o,e,n)))}function ur(e=1/0){return ve(Q,e)}function yu(){return ur(1)}function cr(...e){return yu()(Se(e,xe(e)))}function wp(e){return new C(t=>{T(e()).subscribe(t)})}function Ip(...e){let t=Ot(e),{args:n,keys:r}=sr(e),o=new C(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?ar(r,a):a),i.complete())}))}});return t?o.pipe(Rt(t)):o}var Ep=["addListener","removeListener"],Cp=["addEventListener","removeEventListener"],bp=["on","off"];function Zo(e,t,n,r){if(m(n)&&(r=n,n=void 0),r)return Zo(e,t,n).pipe(Rt(r));let[o,i]=xp(e)?Cp.map(s=>a=>e[s](t,a,n)):_p(e)?Ep.map(Du(e,t)):Mp(e)?bp.map(Du(e,t)):[];if(!o&&Ft(e))return ve(s=>Zo(s,t,n))(T(e));if(!o)throw new TypeError("Invalid event target");return new C(s=>{let a=(...u)=>s.next(1i(a)})}function Du(e,t){return n=>r=>e[n](t,r)}function _p(e){return m(e.addListener)&&m(e.removeListener)}function Mp(e){return m(e.on)&&m(e.off)}function xp(e){return m(e.addEventListener)&&m(e.removeEventListener)}function Ko(e=0,t,n=tu){let r=-1;return t!=null&&(Yn(t)?n=t:r=t),new C(o=>{let i=hu(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Sp(...e){let t=xe(e),n=nu(e,1/0),r=e;return r.length?r.length===1?T(r[0]):ur(n)(Se(r,t)):Pe}var{isArray:Tp}=Array;function vu(e){return e.length===1&&Tp(e[0])?e[0]:e}function ct(e,t){return I((n,r)=>{let o=0;n.subscribe(v(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Np(...e){let t=Ot(e),n=vu(e);return n.length?new C(r=>{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null});for(let s=0;!r.closed&&s{if(o[s].push(a),o.every(u=>u.length)){let u=o.map(c=>c.shift());r.next(t?t(...u):u),o.some((c,l)=>!c.length&&i[l])&&r.complete()}},()=>{i[s]=!0,!o[s].length&&r.complete()}));return()=>{o=i=null}}):Pe}function wu(e){return I((t,n)=>{let r=null,o=!1,i;r=t.subscribe(v(n,void 0,void 0,s=>{i=T(e(s,wu(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Iu(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(v(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Ap(e,t){return m(t)?ve(e,t,1):ve(e,1)}function Op(e,t=un){return I((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function cn(e){return I((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Jo(e){return e<=0?()=>Pe:I((t,n)=>{let r=0;t.subscribe(v(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Fp(e){return ke(()=>e)}function Rp(e,t=Q){return e=e??Pp,I((n,r)=>{let o,i=!0;n.subscribe(v(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Pp(e,t){return e===t}function lr(e=kp){return I((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function kp(){return new ut}function Lp(e){return I((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Xo(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((o,i)=>e(o,i,r)):Q,Jo(1),n?cn(t):lr(()=>new ut))}function ei(e){return e<=0?()=>Pe:I((t,n)=>{let r=[];t.subscribe(v(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function jp(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((o,i)=>e(o,i,r)):Q,ei(1),n?cn(t):lr(()=>new ut))}var Vp=ve;function Bp(e,t){return I(Iu(e,t,arguments.length>=2,!0))}function ni(e={}){let{connector:t=()=>new fe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=u=void 0,l=d=!1},h=()=>{let g=s;f(),g?.unsubscribe()};return I((g,S)=>{c++,!d&&!l&&p();let x=u=u??t();S.add(()=>{c--,c===0&&!d&&!l&&(a=ti(h,o))}),x.subscribe(S),!s&&c>0&&(s=new Re({next:de=>x.next(de),error:de=>{d=!0,p(),a=ti(f,n,de),x.error(de)},complete:()=>{l=!0,p(),a=ti(f,r),x.complete()}}),T(g).subscribe(s))})(i)}}function ti(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Re({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function $p(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,ni({connector:()=>new sn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Hp(e){return ct((t,n)=>e<=n)}function Up(...e){let t=xe(e);return I((n,r)=>{(t?cr(e,n,t):cr(e,n)).subscribe(r)})}function Gp(e,t){return I((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(v(r,u=>{o?.unsubscribe();let c=0,l=i++;T(e(u,l)).subscribe(o=v(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function zp(e){return I((t,n)=>{T(e).subscribe(v(n,()=>n.complete(),nn)),!n.closed&&t.subscribe(n)})}function Wp(e,t,n){let r=m(e)||t||n?{next:e,error:t,complete:n}:e;return r?I((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(v(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Q}function Eu(e,t){return I((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,u=null,c=!1,l=()=>{u?.unsubscribe(),u=null,i&&(f(),c&&r.complete())},d=()=>{u=null,c&&r.complete()},p=h=>u=T(e(h)).subscribe(v(r,l,d)),f=()=>{if(s){s=!1;let h=a;a=null,r.next(h),!c&&p(h)}};n.subscribe(v(r,h=>{s=!0,a=h,!(u&&!u.closed)&&(o?f():p(h))},()=>{c=!0,!(i&&s&&u&&!u.closed)&&r.complete()}))})}function qp(e,t=un,n){let r=Ko(e,t);return Eu(()=>r,n)}var pc="https://g.co/ng/security#xss",M=class extends Error{constructor(t,n){super(hc(t,n)),this.code=t}};function hc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function xn(e){return{toString:e}.toString()}var dr="__parameters__";function Yp(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function gc(e,t,n){return xn(()=>{let r=Yp(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(dr)?u[dr]:Object.defineProperty(u,dr,{value:[]})[dr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var pe=globalThis;function F(e){for(let t in e)if(e[t]===F)return t;throw Error("Could not find renamed property on target object.")}function Qp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Ei(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Zp=F({__forward_ref__:F});function mc(e){return e.__forward_ref__=mc,e.toString=function(){return J(this())},e}function Z(e){return yc(e)?e():e}function yc(e){return typeof e=="function"&&e.hasOwnProperty(Zp)&&e.__forward_ref__===mc}function V(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Dc(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zr(e){return Cu(e,vc)||Cu(e,wc)}function zx(e){return Zr(e)!==null}function Cu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Kp(e){let t=e&&(e[vc]||e[wc]);return t||null}function bu(e){return e&&(e.hasOwnProperty(_u)||e.hasOwnProperty(Jp))?e[_u]:null}var vc=F({\u0275prov:F}),_u=F({\u0275inj:F}),wc=F({ngInjectableDef:F}),Jp=F({ngInjectorDef:F}),R=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=V({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ic(e){return e&&!!e.\u0275providers}var Xp=F({\u0275cmp:F}),eh=F({\u0275dir:F}),th=F({\u0275pipe:F}),nh=F({\u0275mod:F}),Mr=F({\u0275fac:F}),ln=F({__NG_ELEMENT_ID__:F}),Mu=F({__NG_ENV_ID__:F});function Sn(e){return typeof e=="string"?e:e==null?"":String(e)}function rh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Sn(e)}function oh(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,e)}function Ls(e,t){throw new M(-201,!1)}var _=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}(_||{}),Ci;function Ec(){return Ci}function re(e){let t=Ci;return Ci=e,t}function Cc(e,t,n){let r=Zr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&_.Optional)return null;if(t!==void 0)return t;Ls(e,"Injector")}var ih={},dn=ih,bi="__NG_DI_FLAG__",xr="ngTempTokenPath",sh="ngTokenPath",ah=/\n/gm,uh="\u0275",xu="__source",jt;function ch(){return jt}function Ge(e){let t=jt;return jt=e,t}function lh(e,t=_.Default){if(jt===void 0)throw new M(-203,!1);return jt===null?Cc(e,void 0,t):jt.get(e,t&_.Optional?null:void 0,t)}function oe(e,t=_.Default){return(Ec()||lh)(Z(e),t)}function N(e,t=_.Default){return oe(e,Kr(t))}function Kr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function _i(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):J(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ah,` + `)}`}var _c=bc(gc("Optional"),8);var Mc=bc(gc("SkipSelf"),4);function pt(e,t){let n=e.hasOwnProperty(Mr);return n?e[Mr]:null}function hh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?js(n,t):t(n))}function xc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Sr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function mh(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Jr(e,t,n){let r=Tn(e,t);return r>=0?e[r|1]=n:(r=~r,yh(e,r,t,n)),r}function ri(e,t){let n=Tn(e,t);if(n>=0)return e[n|1]}function Tn(e,t){return Dh(e,t,1)}function Dh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(we(r))return!1;s=!0}}}}return we(r)||s}function we(e){return(e&1)===0}function bh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!we(s)&&(t+=Tu(i,o),o=""),r=s,i=i||!we(r);n++}return o!==""&&(t+=Tu(i,o)),t}function Nh(e){return e.map(Th).join(",")}function Ah(e){let t=[],n=[],r=1,o=2;for(;r{let t=Vc(e),n=tn(en({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Nc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||pn.Emulated,styles:e.styles||K,_:null,schemas:e.schemas||null,tView:null,id:""});Bc(n);let r=e.dependencies;return n.directiveDefs=Au(r,!1),n.pipeDefs=Au(r,!0),n.id=Ph(n),n})}function Oh(e){return ht(e)||kc(e)}function Fh(e){return e!==null}function Rc(e){return xn(()=>({type:e.type,bootstrap:e.bootstrap||K,declarations:e.declarations||K,imports:e.imports||K,exports:e.exports||K,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Nu(e,t){if(e==null)return Bt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=We.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==We.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Je(e){return xn(()=>{let t=Vc(e);return Bc(t),t})}function Pc(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ht(e){return e[Xp]||null}function kc(e){return e[eh]||null}function Lc(e){return e[th]||null}function Rh(e){let t=ht(e)||kc(e)||Lc(e);return t!==null?t.standalone:!1}function jc(e,t){let n=e[nh]||null;if(!n&&t===!0)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function Vc(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Bt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||K,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Nu(e.inputs,t),outputs:Nu(e.outputs),debugInfo:null}}function Bc(e){e.features?.forEach(t=>t(e))}function Au(e,t){if(!e)return null;let n=t?Lc:Oh;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Fh)}function Ph(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function $c(e){return{\u0275providers:e}}function kh(...e){return{\u0275providers:Hc(!0,e),\u0275fromNgModule:!0}}function Hc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return js(t,s=>{let a=s;xi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Uc(o,i),n}function Uc(e,t){for(let n=0;n{t(i,r)})}}function xi(e,t,n,r){if(e=Z(e),!e)return!1;let o=null,i=bu(e),s=!i&&ht(e);if(!i&&!s){let u=e.ngModule;if(i=bu(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)xi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{js(i.imports,l=>{xi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Uc(c,t)}if(!a){let c=pt(o)||(()=>new o);t({provide:o,useFactory:c,deps:K},o),t({provide:Tc,useValue:o,multi:!0},o),t({provide:fn,useValue:()=>oe(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Bs(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Bs(e,t){for(let n of e)Ic(n)&&(n=n.\u0275providers),Array.isArray(n)?Bs(n,t):t(n)}var Lh=F({provide:String,useValue:F});function Gc(e){return e!==null&&typeof e=="object"&&Lh in e}function jh(e){return!!(e&&e.useExisting)}function Vh(e){return!!(e&&e.useFactory)}function $t(e){return typeof e=="function"}function Bh(e){return!!e.useClass}var zc=new R(""),wr={},$h={},oi;function $s(){return oi===void 0&&(oi=new Tr),oi}var qe=class{},gn=class extends qe{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ti(t,s=>this.processProvider(s)),this.records.set(Sc,Pt(void 0,this)),o.has("environment")&&this.records.set(qe,Pt(void 0,this));let i=this.records.get(zc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Tc,K,_.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ge(this),r=re(void 0),o;try{return t()}finally{Ge(n),re(r)}}get(t,n=dn,r=_.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Mu))return t[Mu](this);r=Kr(r);let o,i=Ge(this),s=re(void 0);try{if(!(r&_.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Wh(t)&&Zr(t);c&&this.injectableDefInScope(c)?u=Pt(Si(t),wr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&_.Self?$s():this.parent;return n=r&_.Optional&&n===dn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[xr]=a[xr]||[]).unshift(J(t)),i)throw a;return fh(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),Ge(i)}}resolveInjectorInitializers(){let t=b(null),n=Ge(this),r=re(void 0),o;try{let i=this.get(fn,K,_.Self);for(let s of i)s()}finally{Ge(n),re(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(J(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){t=Z(t);let n=$t(t)?t:Z(t&&t.provide),r=Uh(t);if(!$t(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Pt(void 0,wr,!0),o.factory=()=>_i(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===wr&&(n.value=$h,n.value=n.factory()),typeof n.value=="object"&&n.value&&zh(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Z(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Si(e){let t=Zr(e),n=t!==null?t.factory:pt(e);if(n!==null)return n;if(e instanceof R)throw new M(204,!1);if(e instanceof Function)return Hh(e);throw new M(204,!1)}function Hh(e){if(e.length>0)throw new M(204,!1);let n=Kp(e);return n!==null?()=>n.factory(e):()=>new e}function Uh(e){if(Gc(e))return Pt(void 0,e.useValue);{let t=Wc(e);return Pt(t,wr)}}function Wc(e,t,n){let r;if($t(e)){let o=Z(e);return pt(o)||Si(o)}else if(Gc(e))r=()=>Z(e.useValue);else if(Vh(e))r=()=>e.useFactory(..._i(e.deps||[]));else if(jh(e))r=()=>oe(Z(e.useExisting));else{let o=Z(e&&(e.useClass||e.provide));if(Gh(e))r=()=>new o(..._i(e.deps));else return pt(o)||Si(o)}return r}function Pt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Gh(e){return!!e.deps}function zh(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Wh(e){return typeof e=="function"||typeof e=="object"&&e instanceof R}function Ti(e,t){for(let n of e)Array.isArray(n)?Ti(n,t):n&&Ic(n)?Ti(n.\u0275providers,t):t(n)}function qx(e,t){e instanceof gn&&e.assertNotDestroyed();let n,r=Ge(e),o=re(void 0);try{return t()}finally{Ge(r),re(o)}}function qh(){return Ec()!==void 0||ch()!=null}function Yh(e){return typeof e=="function"}var se=0,D=1,y=2,W=3,Ie=4,ue=5,ae=6,mn=7,Y=8,Ht=9,Ce=10,P=11,yn=12,Ou=13,Yt=14,ie=15,Nn=16,kt=17,je=18,Xr=19,qc=20,ze=21,ii=22,gt=23,j=25,Yc=1,Dn=6,Ve=7,Nr=8,Ut=9,q=10,Hs=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Hs||{});function Le(e){return Array.isArray(e)&&typeof e[Yc]=="object"}function Ae(e){return Array.isArray(e)&&e[Yc]===!0}function Us(e){return(e.flags&4)!==0}function An(e){return e.componentOffset>-1}function eo(e){return(e.flags&1)===1}function Ye(e){return!!e.template}function Qc(e){return(e[y]&512)!==0}var Ni=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Zc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Gs(){return Kc}function Kc(e){return e.type.prototype.ngOnChanges&&(e.setInput=Zh),Qh}Gs.ngInherit=!0;function Qh(){let e=Xc(this),t=e?.current;if(t){let n=e.previous;if(n===Bt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Zh(e,t,n,r,o){let i=this.declaredInputs[r],s=Xc(e)||Kh(e,{previous:Bt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Ni(c&&c.currentValue,n,u===Bt),Zc(e,t,o,n)}var Jc="__ngSimpleChanges__";function Xc(e){return e[Jc]||null}function Kh(e,t){return e[Jc]=t}var Fu=null;var Te=function(e,t,n){Fu?.(e,t,n)},el="svg",Jh="math",Xh=!1;function eg(){return Xh}function be(e){for(;Array.isArray(e);)e=e[se];return e}function tl(e,t){return be(t[e])}function ce(e,t){return be(t[e.index])}function zs(e,t){return e.data[t]}function Ws(e,t){return e[t]}function Xe(e,t){let n=t[e];return Le(n)?n:n[se]}function tg(e){return(e[y]&4)===4}function qs(e){return(e[y]&128)===128}function ng(e){return Ae(e[W])}function Gt(e,t){return t==null?null:e[t]}function nl(e){e[kt]=0}function rg(e){e[y]&1024||(e[y]|=1024,qs(e)&&vn(e))}function og(e,t){for(;e>0;)t=t[Yt],e--;return t}function Ys(e){return!!(e[y]&9216||e[gt]?.dirty)}function Ai(e){e[Ce].changeDetectionScheduler?.notify(1),Ys(e)?vn(e):e[y]&64&&(eg()?(e[y]|=1024,vn(e)):e[Ce].changeDetectionScheduler?.notify())}function vn(e){e[Ce].changeDetectionScheduler?.notify();let t=wn(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!qs(t)));)t=wn(t)}function rl(e,t){if((e[y]&256)===256)throw new M(911,!1);e[ze]===null&&(e[ze]=[]),e[ze].push(t)}function ig(e,t){if(e[ze]===null)return;let n=e[ze].indexOf(t);n!==-1&&e[ze].splice(n,1)}function wn(e){let t=e[W];return Ae(t)?t[W]:t}var E={lFrame:ll(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sg(){return E.lFrame.elementDepthCount}function ag(){E.lFrame.elementDepthCount++}function ug(){E.lFrame.elementDepthCount--}function ol(){return E.bindingsEnabled}function Qt(){return E.skipHydrationRootTNode!==null}function cg(e){return E.skipHydrationRootTNode===e}function lg(e){E.skipHydrationRootTNode=e}function dg(){E.skipHydrationRootTNode=null}function w(){return E.lFrame.lView}function $(){return E.lFrame.tView}function Yx(e){return E.lFrame.contextLView=e,e[Y]}function Qx(e){return E.lFrame.contextLView=null,e}function X(){let e=il();for(;e!==null&&e.type===64;)e=e.parent;return e}function il(){return E.lFrame.currentTNode}function fg(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function It(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function Qs(){return E.lFrame.isParent}function Zs(){E.lFrame.isParent=!1}function pg(){return E.lFrame.contextLView}function Et(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hg(e){return E.lFrame.bindingIndex=e}function Zt(){return E.lFrame.bindingIndex++}function sl(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gg(){return E.lFrame.inI18n}function mg(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,Oi(t)}function yg(){return E.lFrame.currentDirectiveIndex}function Oi(e){E.lFrame.currentDirectiveIndex=e}function Dg(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function al(){return E.lFrame.currentQueryIndex}function Ks(e){E.lFrame.currentQueryIndex=e}function vg(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[ue]:null}function ul(e,t,n){if(n&_.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&_.Host);)if(o=vg(i),o===null||(i=i[Yt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=cl();return r.currentTNode=t,r.lView=e,!0}function Js(e){let t=cl(),n=e[D];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function cl(){let e=E.lFrame,t=e===null?null:e.child;return t===null?ll(e):t}function ll(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function dl(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var fl=dl;function Xs(){let e=dl();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 wg(e){return(E.lFrame.contextLView=og(e,E.lFrame.contextLView))[Y]}function et(){return E.lFrame.selectedIndex}function mt(e){E.lFrame.selectedIndex=e}function to(){let e=E.lFrame;return zs(e.tView,e.selectedIndex)}function Zx(){E.lFrame.currentNamespace=el}function Kx(){Ig()}function Ig(){E.lFrame.currentNamespace=null}function pl(){return E.lFrame.currentNamespace}var hl=!0;function no(){return hl}function Oe(e){hl=e}function Eg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Kc(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ro(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[kt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,Ru(a,i)):Ru(a,i)}var Vt=-1,yt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function bg(e){return e instanceof yt}function _g(e){return(e.flags&8)!==0}function Mg(e){return(e.flags&16)!==0}function ml(e){return e!==Vt}function Ar(e){return e&32767}function xg(e){return e>>16}function Or(e,t){let n=xg(e),r=t;for(;n>0;)r=r[Yt],n--;return r}var Fi=!0;function Fr(e){let t=Fi;return Fi=e,t}var Sg=256,yl=Sg-1,Dl=5,Tg=0,Ne={};function Ng(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ln)&&(r=n[ln]),r==null&&(r=n[ln]=Tg++);let o=r&yl,i=1<>Dl)]|=i}function Rr(e,t){let n=vl(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,ai(r.data,e),ai(t,null),ai(r.blueprint,null));let o=ea(e,t),i=e.injectorIndex;if(ml(o)){let s=Ar(o),a=Or(o,t),u=a[D].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function ai(e,t){e.push(0,0,0,0,0,0,0,0,t)}function vl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ea(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=bl(o),r===null)return Vt;if(n++,o=o[Yt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Vt}function Ri(e,t,n){Ng(e,t,n)}function Ag(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Ye(f)&&f.type===n)return u}return null}function Dt(e,t,n,r){let o=e[n],i=t.data;if(bg(o)){let s=o;s.resolving&&oh(rh(i[n]));let a=Fr(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?re(s.injectImpl):null,l=ul(e,r,_.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Eg(n,i[n],t)}finally{c!==null&&re(c),Fr(a),s.resolving=!1,fl()}}return o}function Fg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ln)?e[ln]:void 0;return typeof t=="number"?t>=0?t&yl:Rg:t}function Pu(e,t,n){let r=1<>Dl)]&r)}function ku(e,t){return!(e&_.Self)&&!(e&_.Host&&t)}var ft=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return El(this._tNode,this._lView,t,Kr(r),n)}};function Rg(){return new ft(X(),w())}function Jx(e){return xn(()=>{let t=e.prototype.constructor,n=t[Mr]||Pi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Mr]||Pi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Pi(e){return yc(e)?()=>{let t=Pi(Z(e));return t&&t()}:pt(e)}function Pg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=Cl(i,s,n,r|_.Self,Ne);if(a!==Ne)return a;let u=i.parent;if(!u){let c=s[qc];if(c){let l=c.get(n,Ne,r);if(l!==Ne)return l}u=bl(s),s=s[Yt]}i=u}return o}function bl(e){let t=e[D],n=t.type;return n===2?t.declTNode:n===1?e[ue]:null}function kg(e){return Ag(X(),e)}function Lu(e,t=null,n=null,r){let o=_l(e,t,n,r);return o.resolveInjectorInitializers(),o}function _l(e,t=null,n=null,r,o=new Set){let i=[n||K,kh(e)];return r=r||(typeof e=="object"?void 0:J(e)),new gn(i,t||$s(),r||null,o)}var On=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return Lu({name:""},o,r,"");{let i=r.name??"";return Lu({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=dn,t.NULL=new Tr,t.\u0275prov=V({token:t,providedIn:"any",factory:()=>oe(Sc)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Lg="ngOriginalError";function ui(e){return e[Lg]}var zt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ui(t);for(;n&&ui(n);)n=ui(n);return n||null}},Ml=new R("",{providedIn:"root",factory:()=>N(zt).handleError.bind(void 0)}),xl=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jg,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),ki=class extends xl{constructor(t){super(),this._lView=t}onDestroy(t){return rl(this._lView,t),()=>ig(this._lView,t)}};function jg(){return new ki(w())}function Vg(){return Kt(X(),w())}function Kt(e,t){return new tt(ce(e,t))}var tt=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Vg;let e=t;return e})();function Bg(e){return e instanceof tt?e.nativeElement:e}var Li=class extends fe{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,qh()&&(this.destroyRef=N(xl,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=ci(i),o&&(o=ci(o)),s&&(s=ci(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof G&&t.add(a),a}};function ci(e){return t=>{setTimeout(e,void 0,t)}}var dt=Li;function $g(){return this._results[Symbol.iterator]()}var ji=class e{get changes(){return this._changes??=new dt}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=$g)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=gh(t);(this._changesDetected=!hh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Hg="ngSkipHydration",Ug="ngskiphydration";function Sl(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;nZg}),Zg="ng",Kg=new R(""),ta=new R("",{providedIn:"platform",factory:()=>"unknown"});var eS=new R(""),tS=new R("",{providedIn:"root",factory:()=>Fn().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Jg(){let e=new na;return N(ta)==="browser"&&(e.store=Xg(Fn(),N(Qg))),e}var na=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,o){return this.store[r]!==void 0?this.store[r]:o}set(r,o){this.store[r]=o}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,o){this.onSerializeCallbacks[r]=o}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/null;function am(e,t,n=!1){let r=e.getAttribute(li);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,u={};if(r!==""){let l=t.get(na,null,{optional:!0});l!==null&&(u=l.get(Ll,[])[Number(r)])}let c={data:u,firstChild:e.firstChild??null};return n&&(c.firstChild=e,oo(c,0,e.nextSibling)),a?e.setAttribute(li,a):e.removeAttribute(li),c}function um(){jl=am}function oa(e,t,n=!1){return jl(e,t,n)}function cm(e){let t=e._lView;return t[D].type===2?null:(Qc(t)&&(t=t[j]),t)}function lm(e){return e.textContent?.replace(/\s/gm,"")}function dm(e){let t=Fn(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=lm(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}function oo(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function $i(e,t){return e.segmentHeads?.[t]??null}function fm(e,t){let n=e.data,r=n[em]?.[t]??null;return r===null&&n[ra]?.[t]&&(r=ia(e,t)),r}function Vl(e,t){return e.data[ra]?.[t]??null}function ia(e,t){let n=Vl(e,t)??[],r=0;for(let o of n)r+=o[kr]*(o[kl]??1);return r}function io(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[om];e.disconnectedNodes=n?new Set(n):null}return!!e.disconnectedNodes?.has(t)}var fr=new R(""),Bl=!1,$l=new R("",{providedIn:"root",factory:()=>Bl}),pm=new R(""),pr;function hm(){if(pr===void 0&&(pr=null,pe.trustedTypes))try{pr=pe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return pr}function so(e){return hm()?.createHTML(e)||e}var hr;function gm(){if(hr===void 0&&(hr=null,pe.trustedTypes))try{hr=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return hr}function Vu(e){return gm()?.createHTML(e)||e}var Be=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pc})`}},Hi=class extends Be{getTypeName(){return"HTML"}},Ui=class extends Be{getTypeName(){return"Style"}},Gi=class extends Be{getTypeName(){return"Script"}},zi=class extends Be{getTypeName(){return"URL"}},Wi=class extends Be{getTypeName(){return"ResourceURL"}};function Jt(e){return e instanceof Be?e.changingThisBreaksApplicationSecurity:e}function Hl(e,t){let n=mm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${pc})`)}return n===t}function mm(e){return e instanceof Be&&e.getTypeName()||null}function nS(e){return new Hi(e)}function rS(e){return new Ui(e)}function oS(e){return new Gi(e)}function iS(e){return new zi(e)}function sS(e){return new Wi(e)}function ym(e){let t=new Yi(e);return Dm()?new qi(t):t}var qi=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(so(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},Yi=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=so(t),n}};function Dm(){try{return!!new window.DOMParser().parseFromString(so(""),"text/html")}catch{return!1}}var vm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ul(e){return e=String(e),e.match(vm)?e:"unsafe:"+e}function $e(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Rn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Gl=$e("area,br,col,hr,img,wbr"),zl=$e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wl=$e("rp,rt"),wm=Rn(Wl,zl),Im=Rn(zl,$e("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")),Em=Rn(Wl,$e("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")),Bu=Rn(Gl,Im,Em,wm),ql=$e("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cm=$e("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"),bm=$e("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"),_m=Rn(ql,Cm,bm),Mm=$e("script,style,template"),Qi=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Tm(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Sm(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=$u(t).toLowerCase();if(!Bu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Mm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=$u(t).toLowerCase();Bu.hasOwnProperty(n)&&!Gl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Hu(t))}};function xm(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Sm(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Yl(t);return t}function Tm(e){let t=e.firstChild;if(t&&xm(e,t))throw Yl(t);return t}function $u(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Yl(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Nm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Am=/([^\#-~ |!])/g;function Hu(e){return e.replace(/&/g,"&").replace(Nm,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Am,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var gr;function Om(e,t){let n=null;try{gr=gr||ym(e);let r=t?String(t):"";n=gr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=gr.getInertBodyElement(r)}while(r!==i);let a=new Qi().sanitizeChildren(Uu(n)||n);return so(a)}finally{if(n){let r=Uu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Uu(e){return"content"in e&&Fm(e)?e.content:null}function Fm(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var sa=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}(sa||{});function aS(e){let t=Ql();return t?Vu(t.sanitize(sa.HTML,e)||""):Hl(e,"HTML")?Vu(Jt(e)):Om(Fn(),Sn(e))}function uS(e){let t=Ql();return t?t.sanitize(sa.URL,e)||"":Hl(e,"URL")?Jt(e):Ul(Sn(e))}function Ql(){let e=w();return e&&e[Ce].sanitizer}var Rm=/^>|^->||--!>|)/g,km="\u200B$1\u200B";function Lm(e){return e.replace(Rm,t=>t.replace(Pm,km))}function cS(e){return e.ownerDocument.defaultView}function lS(e){return e.ownerDocument}function jm(e){return e.ownerDocument.body}function Zl(e){return e instanceof Function?e():e}function mr(e){return(e??N(On)).get(ta)==="browser"}var In=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(In||{}),Vm;function aa(e,t){return Vm(e,t)}function Lt(e,t,n,r,o){if(r!=null){let i,s=!1;Ae(r)?i=r:Le(r)&&(s=!0,r=r[se]);let a=be(r);e===0&&n!==null?o==null?ed(t,n,a):Lr(t,n,a,o||null,!0):e===1&&n!==null?Lr(t,n,a,o||null,!0):e===2?da(t,a,s):e===3&&t.destroyNode(a),i!=null&&ey(t,e,i,n,o)}}function ua(e,t){return e.createText(t)}function Bm(e,t,n){e.setValue(t,n)}function ca(e,t){return e.createComment(Lm(t))}function ao(e,t,n){return e.createElement(t,n)}function $m(e,t){Kl(e,t),t[se]=null,t[ue]=null}function Hm(e,t,n,r,o,i){r[se]=o,r[ue]=t,lo(e,r,n,1,o,i)}function Kl(e,t){t[Ce].changeDetectionScheduler?.notify(1),lo(e,t,t[P],2,null,null)}function Um(e){let t=e[yn];if(!t)return di(e[D],e);for(;t;){let n=null;if(Le(t))n=t[yn];else{let r=t[q];r&&(n=r)}if(!n){for(;t&&!t[Ie]&&t!==e;)Le(t)&&di(t[D],t),t=t[W];t===null&&(t=e),Le(t)&&di(t[D],t),n=t&&t[Ie]}t=n}}function Gm(e,t,n,r){let o=q+r,i=n.length;r>0&&(n[o-1][Ie]=t),r0&&(e[n-1][Ie]=r[Ie]);let i=Sr(e,q+t);$m(r[D],r);let s=i[je];s!==null&&s.detachView(i[D]),r[W]=null,r[Ie]=null,r[y]&=-129}return r}function uo(e,t){if(!(t[y]&256)){let n=t[P];n.destroyNode&&lo(e,t,n,3,null,null),Um(t)}}function di(e,t){if(t[y]&256)return;let n=b(null);try{t[y]&=-129,t[y]|=256,t[gt]&&Wa(t[gt]),qm(e,t),Wm(e,t),t[D].type===1&&t[P].destroy();let r=t[Nn];if(r!==null&&Ae(t[W])){r!==t[W]&&Jl(r,t);let o=t[je];o!==null&&o.detachView(e)}Yg(t)}finally{b(n)}}function Wm(e,t){let n=e.cleanup,r=t[mn];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[mn]=null);let o=t[ze];if(o!==null){t[ze]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===pn.None||i===pn.Emulated)return null}return ce(r,n)}}function Lr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ed(e,t,n){e.appendChild(t,n)}function Gu(e,t,n,r,o){r!==null?Lr(e,t,n,r,o):ed(e,t,n)}function Qm(e,t,n,r){e.removeChild(t,n,r)}function la(e,t){return e.parentNode(t)}function Zm(e,t){return e.nextSibling(t)}function td(e,t,n){return Jm(e,t,n)}function Km(e,t,n){return e.type&40?ce(e,n):null}var Jm=Km,zu;function co(e,t,n,r){let o=Xl(e,r,t),i=t[P],s=r.parent||t[ue],a=td(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uj&&ad(e,t,j,!1),Te(s?2:0,o),n(r,o)}finally{mt(i),Te(s?3:1,o)}}function pa(e,t,n){if(Us(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function uy(e){Tl(e)?rd(e):dm(e)}function cy(){fd=uy}function ly(e,t,n,r){let o=yd(t);o.push(n),e.firstCreatePass&&Dd(e).push(r,o.length-1)}function dy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Qt()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Wu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=We.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?qu(r,n,c,a,u):qu(r,n,c,a)}return r}function qu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function fy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function yy(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;An(n)&&by(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Rr(n,t),Qe(r,t);let s=n.initialInputs;for(let a=o;a{vn(e.lView)},consumerOnSignalRead(){this.lView[gt]=this}}),Cd=100;function bd(e,t=!0,n=0){let r=e[Ce],o=r.rendererFactory,i=!1;i||o.begin?.();try{jy(e,n)}catch(s){throw t&&vd(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function jy(e,t){Xi(e,t);let n=0;for(;Ys(e);){if(n===Cd)throw new M(103,!1);n++,Xi(e,1)}}function Vy(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1;!i&&t[Ce].inlineEffectRunner?.flush(),Js(t);let s=null,a=null;!i&&By(e)&&(a=Ry(t),s=Ga(a));try{nl(t),hg(e.bindingStartIndex),n!==null&&ld(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Ir(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Er(t,d,0,null),si(t,0)}if($y(t),_d(t,0),e.contentQueries!==null&&md(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Ir(t,d)}else{let d=e.contentHooks;d!==null&&Er(t,d,1),si(t,1)}ry(e,t);let c=e.components;c!==null&&xd(t,c,0);let l=e.viewQuery;if(l!==null&&Ji(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Ir(t,d)}else{let d=e.viewHooks;d!==null&&Er(t,d,2),si(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ii]){for(let d of t[ii])d();t[ii]=null}i||(t[y]&=-73)}catch(u){throw vn(t),u}finally{a!==null&&(za(a,s),ky(a)),Xs()}}function By(e){return e.type!==2}function _d(e,t){for(let n=Al(e);n!==null;n=Ol(n))for(let r=q;r-1&&(En(t,r),Sr(n,r))}this._attachedToViewContainer=!1}uo(this._lView[D],this._lView)}onDestroy(t){rl(this._lView,t)}markForCheck(){Ia(this._cdRefInjectingView||this._lView)}detach(){this._lView[y]&=-129}reattach(){Ai(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,bd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Kl(this._lView[D],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t,Ai(this._lView)}},Ze=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=zy;let e=t;return e})(),Uy=Ze,Gy=class extends Uy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=ho(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new vt(o)}};function zy(){return mo(X(),w())}function mo(e,t){return e.type&4?new Gy(t,e,Kt(e,t)):null}function Sd(e){let t=e[Dn]??[],r=e[W][P];for(let o of t)Wy(o,r);e[Dn]=K}function Wy(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[kr];for(;n0&&(i.firstChild=e,e=Do(r[kr],e)),n.push(i)}return[e,n]}var Nd=()=>null;function nD(e,t){let n=e[Dn];return!t||n===null||n.length===0?null:n[0].data[nm]===t?n.shift():(Sd(e),null)}function rD(){Nd=nD}function bn(e,t){return Nd(e,t)}var es=class{},ts=class{},Br=class{};function oD(e){let t=Error(`No component factory found for ${J(e)}.`);return t[iD]=e,t}var iD="ngComponent";var ns=class{resolveComponentFactory(t){throw oD(t)}},vo=(()=>{let t=class t{};t.NULL=new ns;let e=t;return e})(),rs=class{},wo=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>sD();let e=t;return e})();function sD(){let e=w(),t=X(),n=Xe(t.index,e);return(Le(n)?n:e)[P]}var aD=(()=>{let t=class t{};t.\u0275prov=V({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),pi={};var Yu=new Set;function Pn(e){Yu.has(e)||(Yu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Qu(...e){}function uD(){let e=typeof pe.requestAnimationFrame=="function",t=pe[e?"requestAnimationFrame":"setTimeout"],n=pe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var Ee=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new dt(!1),this.onMicrotaskEmpty=new dt(!1),this.onStable=new dt(!1),this.onError=new dt(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=uD().nativeRequestAnimationFrame,dD(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,cD,Qu,Qu);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},cD={};function Ea(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function lD(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,os(e),e.isCheckStableRunning=!0,Ea(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),os(e))}function dD(e){let t=()=>{lD(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(fD(a))return n.invokeTask(o,i,s,a);try{return Zu(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ku(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Zu(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ku(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,os(e),Ea(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function os(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Zu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ku(e){e._nesting--,Ea(e)}function fD(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var Ad=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=V({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function $r(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&id(e,n,i.join(" "))}}function vD(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=ID;let e=t;return e})();function ID(){let e=X();return Fd(e,w())}var ED=nt,Od=class extends ED{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Kt(this._hostTNode,this._hostLView)}get injector(){return new ft(this._hostTNode,this._hostLView)}get parentInjector(){let t=ea(this._hostTNode,this._hostLView);if(ml(t)){let n=Or(t,this._hostLView),r=Ar(t),o=n[D].data[r+8];return new ft(o,n)}else return new ft(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Xu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-q}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=bn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Cn(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Yh(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new _n(ht(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let g=(s?c:this.parentInjector).get(qe,null);g&&(i=g)}let l=ht(u.componentType??{}),d=bn(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,o,p,i);return this.insertImpl(f.hostView,a,Cn(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ng(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[W],c=new Od(u,u[ue],u[W]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return go(s,o,i,r),t.attachToViewContainerRef(),xc(hi(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Xu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);r&&(Sr(hi(this._lContainer),n),uo(r[D],r))}detach(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);return r&&Sr(hi(this._lContainer),n)!=null?new vt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Xu(e){return e[Nr]}function hi(e){return e[Nr]||(e[Nr]=[])}function Fd(e,t){let n,r=t[e.index];return Ae(r)?n=r:(n=gd(r,t,null,e),t[e.index]=n,po(t,n)),Rd(n,t,e,r),new Od(n,e,t)}function CD(e,t){let n=e[P],r=n.createComment(""),o=ce(t,e),i=la(n,o);return Lr(n,i,r,Zm(n,o),!1),r}var Rd=Pd,Ca=()=>!1;function bD(e,t,n){return Ca(e,t,n)}function Pd(e,t,n,r){if(e[Ve])return;let o;n.type&8?o=be(r):o=CD(t,n),e[Ve]=o}function _D(e,t,n){if(e[Ve]&&e[Dn])return!0;let r=n[ae],o=t.index-j;if(!r||Gg(t)||io(r,o))return!1;let s=$i(r,o),a=r.data[ra]?.[o],[u,c]=tD(s,a);return e[Ve]=u,e[Dn]=c,!0}function MD(e,t,n,r){Ca(e,n,t)||Pd(e,t,n,r)}function xD(){Rd=MD,Ca=_D}var as=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},us=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=q;dt.trim())}function jd(e,t,n){e.queries===null&&(e.queries=new cs),e.queries.track(new ls(t,n))}function kD(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function ba(e,t){return e.queries.getByIndex(t)}function LD(e,t){let n=e[D],r=ba(n,t);return r.crossesNgTemplate?ds(n,e,t,[]):kd(n,e,r,t)}function jD(e){return Object.getPrototypeOf(e.prototype).constructor}function VD(e){let t=jD(e.type),n=!0,r=[e];for(;t;){let o;if(Ye(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=yr(e.inputs),s.inputTransforms=yr(e.inputTransforms),s.declaredInputs=yr(e.declaredInputs),s.outputs=yr(e.outputs);let a=o.hostBindings;a&&GD(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&HD(e,u),c&&UD(e,c),BD(e,o),Qp(e.outputs,o.outputs),Ye(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=hn(o.hostAttrs,n=hn(n,o.hostAttrs))}}function yr(e){return e===Bt?{}:e===K?[]:e}function HD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function UD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function GD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function zD(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Ke=class{},fs=class{};var ps=class extends Ke{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hr(this);let o=jc(t);this._bootstrapComponents=Zl(o.bootstrap),this._r3Injector=_l(t,n,[{provide:Ke,useValue:this},{provide:vo,useValue:this.componentFactoryResolver},...r],J(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},hs=class extends fs{constructor(t){super(),this.moduleType=t}create(t){return new ps(this.moduleType,t,[])}};var Gr=class extends Ke{constructor(t){super(),this.componentFactoryResolver=new Hr(this),this.instance=null;let n=new gn([...t.providers,{provide:Ke,useValue:this},{provide:vo,useValue:this.componentFactoryResolver}],t.parent||$s(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function WD(e,t,n=null){return new Gr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Vd=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new rn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Bd(e){return _a(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function qD(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function tv(e){return(e&2)==2}function nv(e,t){return e&131071|t<<17}function ms(e){return e|2}function Wt(e){return(e&131068)>>2}function gi(e,t){return e&-131069|t<<2}function rv(e){return(e&1)===1}function ys(e){return e|1}function ov(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=wt(s),u=Wt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Tn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=wt(e[a+1]);e[r+1]=Dr(p,a),p!==0&&(e[p+1]=gi(e[p+1],r)),e[a+1]=nv(e[a+1],r)}else e[r+1]=Dr(a,0),a!==0&&(e[a+1]=gi(e[a+1],r)),a=r;else e[r+1]=Dr(u,0),a===0?a=r:e[u+1]=gi(e[u+1],r),u=r;c&&(e[r+1]=ms(e[r+1])),ec(e,l,r,!0),ec(e,l,r,!1),iv(t,l,e,r,i),s=Dr(a,u),i?t.classBindings=s:t.styleBindings=s}function iv(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Tn(i,t)>=0&&(n[r+1]=ys(n[r+1]))}function ec(e,t,n,r){let o=e[n+1],i=t===null,s=r?wt(o):Wt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];sv(u,t)&&(a=!0,e[s+1]=r?ys(c):ms(c)),s=r?wt(c):Wt(c)}a&&(e[n+1]=r?ms(o):ys(o))}function sv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Tn(e,t)>=0:!1}var z={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Gd(e){return e.substring(z.key,z.keyEnd)}function av(e){return e.substring(z.value,z.valueEnd)}function uv(e){return qd(e),zd(e,qt(e,0,z.textEnd))}function zd(e,t){let n=z.textEnd;return n===t?-1:(t=z.keyEnd=lv(e,z.key=t,n),qt(e,t,n))}function cv(e){return qd(e),Wd(e,qt(e,0,z.textEnd))}function Wd(e,t){let n=z.textEnd,r=z.key=qt(e,t,n);return n===r?-1:(r=z.keyEnd=dv(e,r,n),r=tc(e,r,n,58),r=z.value=qt(e,r,n),r=z.valueEnd=fv(e,r,n),tc(e,r,n,59))}function qd(e){z.key=0,z.keyEnd=0,z.value=0,z.valueEnd=0,z.textEnd=e.length}function qt(e,t,n){for(;t32;)t++;return t}function dv(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function tc(e,t,n,r){return t=qt(e,t,n),t32&&(a=s),i=o,o=r,r=u&-33}return a}function nc(e,t,n,r){let o=-1,i=n;for(;i=0;n=Wd(t,n))Xd(e,Gd(t),av(t))}function mS(e){Zd(Ev,mv,e,!0)}function mv(e,t){for(let n=uv(t);n>=0;n=zd(t,n))Jr(e,Gd(t),!0)}function Qd(e,t,n,r){let o=w(),i=$(),s=sl(2);if(i.firstUpdatePass&&Jd(i,e,s,r),t!==_e&&he(o,s,t)){let a=i.data[et()];ef(i,a,o,o[P],e,o[s+1]=bv(t,n),r,s)}}function Zd(e,t,n,r){let o=$(),i=sl(2);o.firstUpdatePass&&Jd(o,null,i,r);let s=w();if(n!==_e&&he(s,i,n)){let a=o.data[et()];if(tf(a,r)&&!Kd(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Ei(u,n||"")),Ds(o,a,s,n,r)}else Cv(o,a,s,s[P],s[i+1],s[i+1]=Iv(e,t,n),r,i)}}function Kd(e,t){return t>=e.expandoStartIndex}function Jd(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[et()],s=Kd(e,n);tf(i,r)&&t===null&&!s&&(t=!1),t=yv(o,i,t,r),ov(o,i,t,n,s,r)}}function yv(e,t,n,r){let o=Dg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=mi(null,e,t,n,r),n=Mn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=mi(o,e,t,n,r),i===null){let u=Dv(e,t,r);u!==void 0&&Array.isArray(u)&&(u=mi(null,e,t,u[1],r),u=Mn(u,t.attrs,r),vv(e,t,r,u))}else i=wv(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Dv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Wt(r)!==0)return e[wt(r)]}function vv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[wt(o)]=r}function wv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===_e&&(p=d?K:void 0);let f=d?ri(p,r):l===r?p:void 0;if(c&&!Wr(f)&&(f=ri(u,r)),Wr(f)&&(a=f,s))return a;let h=e[o+1];o=s?wt(h):Wt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=ri(u,r))}return a}function Wr(e){return e!==void 0}function bv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=J(Jt(e)))),e}function tf(e,t){return(e.flags&(t?8:16))!==0}var vs=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function yi(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function _v(e,t,n){let r,o,i=0,s=e.length-1;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){let u=e.at(i),c=t[i],l=yi(i,u,i,c,n);if(l!==0){l<0&&e.updateValue(i,c),i++;continue}let d=e.at(s),p=t[a],f=yi(s,d,a,p,n);if(f!==0){f<0&&e.updateValue(s,p),s--,a--;continue}let h=n(i,u),g=n(s,d),S=n(i,c);if(Object.is(S,g)){let x=n(a,p);Object.is(x,h)?(e.swap(i,s),e.updateValue(s,p),a--,s--):e.move(s,i),e.updateValue(i,c),i++;continue}if(r??=new qr,o??=ic(e,i,s,n),ws(e,r,i,S))e.updateValue(i,c),i++,s++;else if(o.has(S))r.set(h,e.detach(i)),s--;else{let x=e.create(i,t[i]);e.attach(i,x),i++,s++}}for(;i<=a;)oc(e,r,n,i,t[i]),i++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&i<=s;){let c=e.at(i),l=u.value,d=yi(i,c,i,l,n);if(d!==0)d<0&&e.updateValue(i,l),i++,u=a.next();else{r??=new qr,o??=ic(e,i,s,n);let p=n(i,l);if(ws(e,r,i,p))e.updateValue(i,l),i++,s++,u=a.next();else if(!o.has(p))e.attach(i,e.create(i,l)),i++,s++,u=a.next();else{let f=n(i,c);r.set(f,e.detach(i)),s--}}}for(;!u.done;)oc(e,r,n,e.length,u.value),u=a.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function ws(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function oc(e,t,n,r,o){if(ws(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function ic(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var qr=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function yS(e,t,n){Pn("NgControlFlow");let r=w(),o=Zt(),i=bs(r,j+e),s=0;if(he(r,o,t)){let a=b(null);try{if(Id(i,s),t!==-1){let u=_s(r[D],j+t),c=bn(i,u.tView.ssrId),l=ho(r,u,n,{dehydratedView:c});go(i,l,s,Cn(u,c))}}finally{b(a)}}else{let a=wd(i,s);a!==void 0&&(a[Y]=n)}}var Is=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-q}};var Es=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function DS(e,t,n,r,o,i,s,a,u,c,l,d,p){Pn("NgControlFlow");let f=u!==void 0,h=w(),g=a?s.bind(h[ie][Y]):s,S=new Es(f,g);h[j+e]=S,gs(e+1,t,n,r,o,i),f&&gs(e+2,u,c,l,d,p)}var Cs=class extends vs{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-q}at(t){return this.getLView(t)[Y].$implicit}attach(t,n){let r=n[ae];this.needsIndexUpdate||=t!==this.length,go(this.lContainer,n,t,Cn(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Mv(this.lContainer,t)}create(t,n){let r=bn(this.lContainer,this.templateTNode.tView.ssrId);return ho(this.hostLView,this.templateTNode,new Is(this.lContainer,n,t),{dehydratedView:r})}destroy(t){uo(t[D],t)}updateValue(t,n){this.getLView(t)[Y].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Oe(!0),ao(r,o,pl()));function Nv(e,t,n,r,o,i){let s=t[ae],a=!s||Qt()||Ln(n)||io(s,i);if(Oe(a),a)return ao(r,o,pl());let u=yo(s,e,t,n);return Vl(s,i)&&oo(s,i,u.nextSibling),s&&(Sl(n)||Tl(u))&&An(n)&&(lg(n),rd(u)),u}function Av(){of=Nv}function Ov(e,t,n,r,o){let i=t.consts,s=Gt(i,r),a=Xt(t,e,8,"ng-container",s);s!==null&&$r(a,s,!0);let u=Gt(i,o);return Da(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function sf(e,t,n){let r=w(),o=$(),i=e+j,s=o.firstCreatePass?Ov(i,o,r,t,n):o.data[i];It(s,!0);let a=uf(o,r,s,e);return r[i]=a,no()&&co(o,r,a,s),Qe(a,r),eo(s)&&(ha(o,r,s),pa(o,s,r)),n!=null&&ga(r,s),sf}function af(){let e=X(),t=$();return Qs()?Zs():(e=e.parent,It(e,!1)),t.firstCreatePass&&(ro(t,e),Us(e)&&t.queries.elementEnd(e)),af}function Fv(e,t,n){return sf(e,t,n),af(),Fv}var uf=(e,t,n,r)=>(Oe(!0),ca(t[P],""));function Rv(e,t,n,r){let o,i=t[ae],s=!i||Qt()||Ln(n);if(Oe(s),s)return ca(t[P],"");let a=yo(i,e,t,n),u=fm(i,r);return oo(i,r,a),o=Do(u,a),o}function Pv(){uf=Rv}function wS(){return w()}function kv(e,t,n){let r=w(),o=Zt();if(he(r,o,t)){let i=$(),s=to();ya(i,s,r,e,t,r[P],n,!0)}return kv}var lt=void 0;function Lv(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var jv=["en",[["a","p"],["AM","PM"],lt],[["AM","PM"],lt,lt],[["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"]],lt,[["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"]],lt,[["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}",lt,"{1} 'at' {0}",lt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Lv],Di={};function ge(e){let t=Vv(e),n=sc(t);if(n)return n;let r=t.split("-")[0];if(n=sc(r),n)return n;if(r==="en")return jv;throw new M(701,!1)}function sc(e){return e in Di||(Di[e]=pe.ng&&pe.ng.common&&pe.ng.common.locales&&pe.ng.common.locales[e]),Di[e]}var H=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}(H||{});function Vv(e){return e.toLowerCase().replace(/_/g,"-")}var Yr="en-US";var Bv=Yr;function $v(e){typeof e=="string"&&(Bv=e.toLowerCase().replace(/_/g,"-"))}function cf(e,t,n){let r=e[P];switch(n){case Node.COMMENT_NODE:return ca(r,t);case Node.TEXT_NODE:return ua(r,t);case Node.ELEMENT_NODE:return ao(r,t,null)}}var Hv=(e,t,n,r)=>(Oe(!0),cf(e,n,r));function Uv(e,t,n,r){return Oe(!0),cf(e,n,r)}function Gv(){Hv=Uv}function zv(e,t,n,r){let o=w(),i=$(),s=X();return qv(i,o,o[P],s,e,t,r),zv}function Wv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function qv(e,t,n,r,o,i,s){let a=eo(r),c=e.firstCreatePass&&Dd(e),l=t[Y],d=yd(t),p=!0;if(r.type&3||s){let g=ce(r,t),S=s?s(g):g,x=d.length,de=s?Fe=>s(be(Fe[r.index])):r.index,te=null;if(!s&&a&&(te=Wv(e,t,o,r.index)),te!==null){let Fe=te.__ngLastListenerFn__||te;Fe.__ngNextListenerFn__=i,te.__ngLastListenerFn__=i,p=!1}else{i=uc(r,t,l,i,!1);let Fe=n.listen(S,o,i);d.push(i,Fe),c&&c.push(o,de,x,x+1)}}else i=uc(r,t,l,i,!1);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let g=h.length;if(g)for(let S=0;S-1?Xe(e.index,t):t;Ia(a);let u=ac(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)u=ac(t,n,c,s)&&u,c=c.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function IS(e=1){return wg(e)}function Yv(e,t){let n=null,r=_h(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function SS(e){let t=pg();return Ws(t,j+e)}function TS(e,t=""){let n=w(),r=$(),o=e+j,i=r.firstCreatePass?Xt(r,o,1,t,null):r.data[o],s=df(r,n,i,t,e);n[o]=s,no()&&co(r,n,s,i),It(i,!1)}var df=(e,t,n,r,o)=>(Oe(!0),ua(t[P],r));function Kv(e,t,n,r,o){let i=t[ae],s=!i||Qt()||Ln(n)||io(i,o);return Oe(s),s?ua(t[P],r):yo(i,e,t,n)}function Jv(){df=Kv}function Xv(e){return ff("",e,""),Xv}function ff(e,t,n){let r=w(),o=Ud(r,e,t,n);return o!==_e&&Ty(r,et(),o),ff}function ew(e,t,n){let r=$();if(r.firstCreatePass){let o=Ye(e);Ms(n,r.data,r.blueprint,o,!0),Ms(t,r.data,r.blueprint,o,!1)}}function Ms(e,t,n,r,o){if(e=Z(e),Array.isArray(e))for(let i=0;i>20;if($t(e)||!e.multi){let f=new yt(c,o,B),h=wi(u,t,o?l:l+p,d);h===-1?(Ri(Rr(a,s),i,u),vi(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=wi(u,t,l+p,d),h=wi(u,t,l,l+p),g=f>=0&&n[f],S=h>=0&&n[h];if(o&&!S||!o&&!g){Ri(Rr(a,s),i,u);let x=rw(o?nw:tw,n.length,o,r,c);!o&&S&&(n[h].providerFactory=x),vi(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(x),s.push(x)}else{let x=pf(n[o?h:f],c,!o&&r);vi(i,e,f>-1?f:h,x)}!o&&r&&S&&n[h].componentProviders++}}}function vi(e,t,n,r){let o=$t(t),i=Bh(t);if(o||i){let u=(i?Z(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function pf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wi(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>ew(r,o?o(e):e,t)}}var ow=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Hc(!1,r.type),i=o.length>0?WD([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=V({token:t,providedIn:"environment",factory:()=>new t(oe(qe))});let e=t;return e})();function AS(e){Pn("NgStandalone"),e.getStandaloneInjector=t=>t.get(ow).getOrCreateStandaloneInjector(e)}function OS(e,t,n){let r=Et()+e,o=w();return o[r]===_e?kn(o,r,n?t.call(n):t()):YD(o,r)}function FS(e,t,n,r){return hf(w(),Et(),e,t,n,r)}function RS(e,t,n,r,o){return gf(w(),Et(),e,t,n,r,o)}function PS(e,t,n,r,o,i){return iw(w(),Et(),e,t,n,r,o,i)}function kS(e,t,n,r,o,i,s){return sw(w(),Et(),e,t,n,r,o,i,s)}function Io(e,t){let n=e[t];return n===_e?void 0:n}function hf(e,t,n,r,o,i){let s=t+n;return he(e,s,o)?kn(e,s+1,i?r.call(i,o):r(o)):Io(e,s+1)}function gf(e,t,n,r,o,i,s){let a=t+n;return zr(e,a,o,i)?kn(e,a+2,s?r.call(s,o,i):r(o,i)):Io(e,a+2)}function iw(e,t,n,r,o,i,s,a){let u=t+n;return QD(e,u,o,i,s)?kn(e,u+3,a?r.call(a,o,i,s):r(o,i,s)):Io(e,u+3)}function sw(e,t,n,r,o,i,s,a,u){let c=t+n;return ZD(e,c,o,i,s,a)?kn(e,c+4,u?r.call(u,o,i,s,a):r(o,i,s,a)):Io(e,c+4)}function LS(e,t){let n=$(),r,o=e+j;n.firstCreatePass?(r=aw(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=pt(r.type,!0)),s,a=re(B);try{let u=Fr(!1),c=i();return Fr(u),Zv(n,w(),o,c),c}finally{re(a)}}function aw(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function jS(e,t,n){let r=e+j,o=w(),i=Ws(o,r);return mf(o,r)?hf(o,Et(),t,i.transform,n,i):i.transform(n)}function VS(e,t,n,r){let o=e+j,i=w(),s=Ws(i,o);return mf(i,o)?gf(i,Et(),t,s.transform,n,r,s):s.transform(n,r)}function mf(e,t){return e[D].data[t].pure}function BS(e,t){return mo(e,t)}var $S=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var uw=new R("");function Ma(e){return!!e&&typeof e.then=="function"}function yf(e){return!!e&&typeof e.subscribe=="function"}var cw=new R(""),Df=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=N(cw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Ma(s))r.push(s);else if(yf(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),vf=new R("");function lw(){qa(()=>{throw new M(600,!1)})}function dw(e){return e.isBoundToModule}function fw(e,t,n){try{let r=n();return Ma(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var xa=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=N(Ml),this.afterRenderEffectManager=N(Ad),this.externalTestViews=new Set,this.beforeRender=new fe,this.afterTick=new fe,this.componentTypes=[],this.components=[],this.isStable=N(Vd).hasPendingTasks.pipe(ke(r=>!r)),this._injector=N(qe)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Br;if(!this._injector.get(Df).done){let f=!i&&Rh(r),h=!1;throw new M(405,h)}let a;i?a=r:a=this._injector.get(vo).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=dw(a)?void 0:this._injector.get(Ke),c=o||a.selector,l=a.create(On.NULL,[],c,u),d=l.location.nativeElement,p=l.injector.get(uw,null);return p?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ii(this.components,l),p?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new M(101,!1);let o=b(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,b(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===Cd)throw new M(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)hw(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Ss(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Ss(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Ii(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(vf,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Ii(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new M(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ii(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var vr;function pw(e){vr??=new WeakMap;let t=vr.get(e);if(t)return t;let n=e.isStable.pipe(Xo(r=>r)).toPromise().then(()=>{});return vr.set(e,n),e.onDestroy(()=>vr?.delete(e)),n}function hw(e,t,n){!t&&!Ss(e)||gw(e,n,t)}function Ss(e){return Ys(e)}function gw(e,t,n){let r;n?(r=0,e[y]|=1024):e[y]&64?r=0:r=1,bd(e,t,r)}var Ts=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},HS=(()=>{let t=class t{compileModuleSync(r){return new hs(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=jc(r),s=Zl(i.declarations).reduce((a,u)=>{let c=ht(u);return c&&a.push(new _n(c)),a},[]);return new Ts(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var mw=(()=>{let t=class t{constructor(){this.zone=N(Ee),this.applicationRef=N(xa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function yw(e){return[{provide:Ee,useFactory:e},{provide:fn,multi:!0,useFactory:()=>{let t=N(mw,{optional:!0});return()=>t.initialize()}},{provide:fn,multi:!0,useFactory:()=>{let t=N(Iw);return()=>{t.initialize()}}},{provide:Ml,useFactory:Dw}]}function Dw(){let e=N(Ee),t=N(zt);return n=>e.runOutsideAngular(()=>t.handleError(n))}function vw(e){let t=yw(()=>new Ee(ww(e)));return $c([[],t])}function ww(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Iw=(()=>{let t=class t{constructor(){this.subscription=new G,this.initialized=!1,this.zone=N(Ee),this.pendingTasks=N(Vd)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ew(){return typeof $localize<"u"&&$localize.locale||Yr}var Eo=new R("",{providedIn:"root",factory:()=>N(Eo,_.Optional|_.SkipSelf)||Ew()});var wf=new R("");var _r=null;function Cw(e=[],t){return On.create({name:t,providers:[{provide:zc,useValue:"platform"},{provide:wf,useValue:new Set([()=>_r=null])},...e]})}function bw(e=[]){if(_r)return _r;let t=Cw(e);return _r=t,lw(),_w(t),t}function _w(e){e.get(Kg,null)?.forEach(n=>n())}var If=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Mw;let e=t;return e})();function Mw(e){return xw(X(),w(),(e&16)===16)}function xw(e,t,n){if(An(e)&&!n){let r=Xe(e.index,t);return new vt(r,r)}else if(e.type&47){let r=t[ie];return new vt(r,t)}return null}var Ns=class{constructor(){}supports(t){return Bd(t)}create(t){return new As(t)}},Sw=(e,t)=>t,As=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Sw}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Os(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Qr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Qr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Os=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Fs=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Qr=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Fs,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function cc(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new ks(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},ks=class{constructor(t){this.key=t,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 lc(){return new Sa([new Ns])}var Sa=(()=>{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||lc()),deps:[[t,new Mc,new _c]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new M(901,!1)}};t.\u0275prov=V({token:t,providedIn:"root",factory:lc});let e=t;return e})();function dc(){return new Ta([new Rs])}var Ta=(()=>{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||dc()),deps:[[t,new Mc,new _c]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o)return o;throw new M(901,!1)}};t.\u0275prov=V({token:t,providedIn:"root",factory:dc});let e=t;return e})();function US(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=bw(r),i=[vw(),...n||[]],a=new Gr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Ee);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(zt,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),p=o.get(wf);return p.add(d),a.onDestroy(()=>{l.unsubscribe(),p.delete(d)}),fw(c,u,()=>{let f=a.get(Df);return f.runInitializers(),f.donePromise.then(()=>{let h=a.get(Eo,Yr);$v(h||Yr);let g=a.get(xa);return t!==void 0&&g.bootstrap(t),g})})})}catch(t){return Promise.reject(t)}}var fc=!1,Tw=!1;function Nw(){fc||(fc=!0,um(),Av(),Jv(),Pv(),XD(),xD(),rD(),cy(),Gv())}function Aw(e,t){return pw(e)}function GS(){return $c([{provide:fr,useFactory:()=>{let e=!0;return mr()&&(e=!!N(na,{optional:!0})?.get(Ll,null)),e&&Pn("NgHydration"),e}},{provide:fn,useValue:()=>{Tw=!!N(pm,{optional:!0}),mr()&&N(fr)&&(Ow(),Nw())},multi:!0},{provide:$l,useFactory:()=>mr()&&N(fr)},{provide:vf,useFactory:()=>{if(mr()&&N(fr)){let e=N(xa),t=N(On);return()=>{Aw(e,t).then(()=>{Yy(e)})}}return()=>{}},multi:!0}])}function Ow(){let e=Fn(),t;for(let n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===sm){t=n;break}if(!t)throw new M(-507,!1)}function Fw(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Nf=null;function Na(){return Nf}function fT(e){Nf??=e}var Ef=class{};var Af=new R(""),Of=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:()=>N(Pw),providedIn:"platform"});let e=t;return e})();var Pw=(()=>{let t=class t extends Of{constructor(){super(),this._doc=N(Af),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Na().getBaseHref(this._doc)}onPopState(r){let o=Na().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=Na().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Ff(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Cf(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ct(e){return e&&e[0]!=="?"?"?"+e:e}var ja=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=V({token:t,factory:()=>N(Lw),providedIn:"root"});let e=t;return e})(),kw=new R(""),Lw=(()=>{let t=class t extends ja{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??N(Af).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Ff(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ct(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ct(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ct(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(oe(Of),oe(kw,8))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var jw=(()=>{let t=class t{constructor(r){this._subject=new dt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=$w(Cf(bf(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ct(o))}normalize(r){return t.stripTrailingSlash(Bw(this._basePath,bf(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ct(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ct(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ct,t.joinWithSlash=Ff,t.stripTrailingSlash=Cf,t.\u0275fac=function(o){return new(o||t)(oe(ja))},t.\u0275prov=V({token:t,factory:()=>Vw(),providedIn:"root"});let e=t;return e})();function Vw(){return new jw(oe(ja))}function Bw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function bf(e){return e.replace(/\/index.html$/,"")}function $w(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var ee=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(ee||{}),k=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(k||{}),le=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(le||{}),rt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Hw(e){return ge(e)[H.LocaleId]}function Uw(e,t,n){let r=ge(e),o=[r[H.DayPeriodsFormat],r[H.DayPeriodsStandalone]],i=me(o,t);return me(i,n)}function Gw(e,t,n){let r=ge(e),o=[r[H.DaysFormat],r[H.DaysStandalone]],i=me(o,t);return me(i,n)}function zw(e,t,n){let r=ge(e),o=[r[H.MonthsFormat],r[H.MonthsStandalone]],i=me(o,t);return me(i,n)}function Ww(e,t){let r=ge(e)[H.Eras];return me(r,t)}function Co(e,t){let n=ge(e);return me(n[H.DateFormat],t)}function bo(e,t){let n=ge(e);return me(n[H.TimeFormat],t)}function _o(e,t){let r=ge(e)[H.DateTimeFormat];return me(r,t)}function Oo(e,t){let n=ge(e),r=n[H.NumberSymbols][t];if(typeof r>"u"){if(t===rt.CurrencyDecimal)return n[H.NumberSymbols][rt.Decimal];if(t===rt.CurrencyGroup)return n[H.NumberSymbols][rt.Group]}return r}function Rf(e){if(!e[H.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[H.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qw(e){let t=ge(e);return Rf(t),(t[H.ExtraData][2]||[]).map(r=>typeof r=="string"?Aa(r):[Aa(r[0]),Aa(r[1])])}function Yw(e,t,n){let r=ge(e);Rf(r);let o=[r[H.ExtraData][0],r[H.ExtraData][1]],i=me(o,t)||[];return me(i,n)||[]}function me(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Aa(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Qw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Mo={},Zw=/((?:[^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]*)/,Ue=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Ue||{}),O=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}(O||{}),A=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(A||{});function Kw(e,t,n,r){let o=sI(e);t=He(n,t)||t;let s=[],a;for(;t;)if(a=Zw.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let u=o.getTimezoneOffset();r&&(u=kf(r,u),o=iI(o,r,!0));let c="";return s.forEach(l=>{let d=rI(l);c+=d?d(o,n,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ao(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function He(e,t){let n=Hw(e);if(Mo[n]??={},Mo[n][t])return Mo[n][t];let r="";switch(t){case"shortDate":r=Co(e,le.Short);break;case"mediumDate":r=Co(e,le.Medium);break;case"longDate":r=Co(e,le.Long);break;case"fullDate":r=Co(e,le.Full);break;case"shortTime":r=bo(e,le.Short);break;case"mediumTime":r=bo(e,le.Medium);break;case"longTime":r=bo(e,le.Long);break;case"fullTime":r=bo(e,le.Full);break;case"short":let o=He(e,"shortTime"),i=He(e,"shortDate");r=xo(_o(e,le.Short),[o,i]);break;case"medium":let s=He(e,"mediumTime"),a=He(e,"mediumDate");r=xo(_o(e,le.Medium),[s,a]);break;case"long":let u=He(e,"longTime"),c=He(e,"longDate");r=xo(_o(e,le.Long),[u,c]);break;case"full":let l=He(e,"fullTime"),d=He(e,"fullDate");r=xo(_o(e,le.Full),[l,d]);break}return r&&(Mo[n][t]=r),r}function xo(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Me(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===O.Hours)a===0&&n===-12&&(a=12);else if(e===O.FractionalSeconds)return Jw(a,t);let u=Oo(s,rt.MinusSign);return Me(a,t,u,r,o)}}function Xw(e,t){switch(e){case O.FullYear:return t.getFullYear();case O.Month:return t.getMonth();case O.Date:return t.getDate();case O.Hours:return t.getHours();case O.Minutes:return t.getMinutes();case O.Seconds:return t.getSeconds();case O.FractionalSeconds:return t.getMilliseconds();case O.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function L(e,t,n=ee.Format,r=!1){return function(o,i){return eI(o,i,e,t,n,r)}}function eI(e,t,n,r,o,i){switch(n){case A.Months:return zw(t,o,r)[e.getMonth()];case A.Days:return Gw(t,o,r)[e.getDay()];case A.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let c=qw(t),l=Yw(t,o,r),d=c.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,g=s>=f.hours&&a>=f.minutes,S=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ue.Short:return(o>=0?"+":"")+Me(s,2,i)+Me(Math.abs(o%60),2,i);case Ue.ShortGMT:return"GMT"+(o>=0?"+":"")+Me(s,1,i);case Ue.Long:return"GMT"+(o>=0?"+":"")+Me(s,2,i)+":"+Me(Math.abs(o%60),2,i);case Ue.Extended:return r===0?"Z":(o>=0?"+":"")+Me(s,2,i)+":"+Me(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var tI=0,No=4;function nI(e){let t=Ao(e,tI,1).getDay();return Ao(e,0,1+(t<=No?No:No+7)-t)}function Pf(e){let t=e.getDay(),n=t===0?-3:No-t;return Ao(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Oa(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Pf(n),s=nI(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Me(o,e,Oo(r,rt.MinusSign))}}function To(e,t=!1){return function(n,r){let i=Pf(n).getFullYear();return Me(i,e,Oo(r,rt.MinusSign),t)}}var Fa={};function rI(e){if(Fa[e])return Fa[e];let t;switch(e){case"G":case"GG":case"GGG":t=L(A.Eras,k.Abbreviated);break;case"GGGG":t=L(A.Eras,k.Wide);break;case"GGGGG":t=L(A.Eras,k.Narrow);break;case"y":t=U(O.FullYear,1,0,!1,!0);break;case"yy":t=U(O.FullYear,2,0,!0,!0);break;case"yyy":t=U(O.FullYear,3,0,!1,!0);break;case"yyyy":t=U(O.FullYear,4,0,!1,!0);break;case"Y":t=To(1);break;case"YY":t=To(2,!0);break;case"YYY":t=To(3);break;case"YYYY":t=To(4);break;case"M":case"L":t=U(O.Month,1,1);break;case"MM":case"LL":t=U(O.Month,2,1);break;case"MMM":t=L(A.Months,k.Abbreviated);break;case"MMMM":t=L(A.Months,k.Wide);break;case"MMMMM":t=L(A.Months,k.Narrow);break;case"LLL":t=L(A.Months,k.Abbreviated,ee.Standalone);break;case"LLLL":t=L(A.Months,k.Wide,ee.Standalone);break;case"LLLLL":t=L(A.Months,k.Narrow,ee.Standalone);break;case"w":t=Oa(1);break;case"ww":t=Oa(2);break;case"W":t=Oa(1,!0);break;case"d":t=U(O.Date,1);break;case"dd":t=U(O.Date,2);break;case"c":case"cc":t=U(O.Day,1);break;case"ccc":t=L(A.Days,k.Abbreviated,ee.Standalone);break;case"cccc":t=L(A.Days,k.Wide,ee.Standalone);break;case"ccccc":t=L(A.Days,k.Narrow,ee.Standalone);break;case"cccccc":t=L(A.Days,k.Short,ee.Standalone);break;case"E":case"EE":case"EEE":t=L(A.Days,k.Abbreviated);break;case"EEEE":t=L(A.Days,k.Wide);break;case"EEEEE":t=L(A.Days,k.Narrow);break;case"EEEEEE":t=L(A.Days,k.Short);break;case"a":case"aa":case"aaa":t=L(A.DayPeriods,k.Abbreviated);break;case"aaaa":t=L(A.DayPeriods,k.Wide);break;case"aaaaa":t=L(A.DayPeriods,k.Narrow);break;case"b":case"bb":case"bbb":t=L(A.DayPeriods,k.Abbreviated,ee.Standalone,!0);break;case"bbbb":t=L(A.DayPeriods,k.Wide,ee.Standalone,!0);break;case"bbbbb":t=L(A.DayPeriods,k.Narrow,ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=L(A.DayPeriods,k.Abbreviated,ee.Format,!0);break;case"BBBB":t=L(A.DayPeriods,k.Wide,ee.Format,!0);break;case"BBBBB":t=L(A.DayPeriods,k.Narrow,ee.Format,!0);break;case"h":t=U(O.Hours,1,-12);break;case"hh":t=U(O.Hours,2,-12);break;case"H":t=U(O.Hours,1);break;case"HH":t=U(O.Hours,2);break;case"m":t=U(O.Minutes,1);break;case"mm":t=U(O.Minutes,2);break;case"s":t=U(O.Seconds,1);break;case"ss":t=U(O.Seconds,2);break;case"S":t=U(O.FractionalSeconds,1);break;case"SS":t=U(O.FractionalSeconds,2);break;case"SSS":t=U(O.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=So(Ue.Short);break;case"ZZZZZ":t=So(Ue.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=So(Ue.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=So(Ue.Long);break;default:return null}return Fa[e]=t,t}function kf(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function oI(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function iI(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=kf(t,o);return oI(e,r*(i-o))}function sI(e){if(_f(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Ao(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Qw))return aI(r)}let t=new Date(e);if(!_f(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function aI(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,u,c),t}function _f(e){return e instanceof Date&&!isNaN(e.valueOf())}function pT(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ra=/\s+/,Mf=[],hT=(()=>{let t=class t{constructor(r,o){this._ngEl=r,this._renderer=o,this.initialClasses=Mf,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(Ra):Mf}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(Ra):r}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let o of r)this._updateState(o,!0);else if(r!=null)for(let o of Object.keys(r))this._updateState(o,!!r[o]);this._applyStateDiff()}_updateState(r,o){let i=this.stateMap.get(r);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(r,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let o=r[0],i=r[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(r,o){r=r.trim(),r.length>0&&r.split(Ra).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};t.\u0275fac=function(o){return new(o||t)(B(tt),B(wo))},t.\u0275dir=Je({type:t,selectors:[["","ngClass",""]],inputs:{klass:[We.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let e=t;return e})();var Pa=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},gT=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Pa(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),xf(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);xf(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(B(nt),B(Ze),B(Sa))},t.\u0275dir=Je({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function xf(e,t){e.context.$implicit=t.item}var mT=(()=>{let t=class t{constructor(r,o){this._viewContainer=r,this._context=new ka,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Sf("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Sf("ngIfElse",r),this._elseTemplateRef=r,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(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(B(nt),B(Ze))},t.\u0275dir=Je({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),ka=class{constructor(){this.$implicit=null,this.ngIf=null}};function Sf(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${J(t)}'.`)}var uI=!0,La=class{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}},cI=(()=>{let t=class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(r){this._ngSwitch=r,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(r){this._defaultViews.push(r)}_matchCase(r){let o=uI?r===this._ngSwitch:r==this._ngSwitch;return this._lastCasesMatched||=o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(r){if(this._defaultViews.length>0&&r!==this._defaultUsed){this._defaultUsed=r;for(let o of this._defaultViews)o.enforceState(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=Je({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let e=t;return e})(),yT=(()=>{let t=class t{constructor(r,o,i){this.ngSwitch=i,i._addCase(),this._view=new La(r,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};t.\u0275fac=function(o){return new(o||t)(B(nt),B(Ze),B(cI,9))},t.\u0275dir=Je({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let e=t;return e})();var DT=(()=>{let t=class t{constructor(r,o,i){this._ngEl=r,this._differs=o,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(r){this._ngStyle=r,!this._differ&&r&&(this._differ=this._differs.find(r).create())}ngDoCheck(){if(this._differ){let r=this._differ.diff(this._ngStyle);r&&this._applyChanges(r)}}_setStyle(r,o){let[i,s]=r.split("."),a=i.indexOf("-")===-1?void 0:In.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(r){r.forEachRemovedItem(o=>this._setStyle(o.key,null)),r.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),r.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};t.\u0275fac=function(o){return new(o||t)(B(tt),B(Ta),B(wo))},t.\u0275dir=Je({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let e=t;return e})(),vT=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(r,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};t.\u0275fac=function(o){return new(o||t)(B(nt))},t.\u0275dir=Je({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Gs]});let e=t;return e})();function lI(e,t){return new M(2100,!1)}var dI="mediumDate",fI=new R(""),pI=new R(""),wT=(()=>{let t=class t{constructor(r,o,i){this.locale=r,this.defaultTimezone=o,this.defaultOptions=i}transform(r,o,i,s){if(r==null||r===""||r!==r)return null;try{let a=o??this.defaultOptions?.dateFormat??dI,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Kw(r,a,s||this.locale,u)}catch(a){throw lI(t,a.message)}}};t.\u0275fac=function(o){return new(o||t)(B(Eo,16),B(fI,24),B(pI,24))},t.\u0275pipe=Pc({name:"date",type:t,pure:!0,standalone:!0});let e=t;return e})();var IT=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Rc({type:t}),t.\u0275inj=Dc({});let e=t;return e})(),hI="browser",gI="server";function ET(e){return e===hI}function CT(e){return e===gI}var Tf=class{};var bt=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(bt||{}),MT="*";function xT(e,t){return{type:bt.Trigger,name:e,definitions:t,options:{}}}function ST(e,t=null){return{type:bt.Animate,styles:t,timings:e}}function TT(e,t=null){return{type:bt.Sequence,steps:e,options:t}}function NT(e){return{type:bt.Style,styles:e,offset:null}}function AT(e,t,n){return{type:bt.State,name:e,styles:t,options:n}}function OT(e,t,n=null){return{type:bt.Transition,expr:e,animation:t,options:n}}var Lf=class{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},jf=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},FT="!";export{en as a,tn as b,mI as c,yI as d,Gf as e,G as f,Jf as g,C as h,qo as i,Yo as j,fe as k,rn as l,sn as m,Pe as n,eC as o,Se as p,up as q,cp as r,lp as s,ut as t,ke as u,Dp as v,ve as w,cr as x,wp as y,Ip as z,Zo as A,Ko as B,Sp as C,ct as D,Np as E,wu as F,Ap as G,Op as H,cn as I,Jo as J,Fp as K,Rp as L,Lp as M,Xo as N,ei as O,jp as P,Vp as Q,Bp as R,ni as S,$p as T,Hp as U,Up as V,Gp as W,zp as X,Wp as Y,qp as Z,M as _,mc as $,V as aa,Dc as ba,zx as ca,R as da,_ as ea,oe as fa,N as ga,pn as ha,We as ia,Wx as ja,Rc as ka,Je as la,Pc as ma,$c as na,zc as oa,qe as pa,qx as qa,Gs as ra,Yx as sa,Qx as ta,Zx as ua,Kx as va,Jx as wa,kg as xa,On as ya,zt as za,tt as Aa,dt as Ba,Xx as Ca,Qg as Da,Kg as Ea,ta as Fa,eS as Ga,tS as Ha,na as Ia,Jt as Ja,Hl as Ka,nS as La,rS as Ma,oS as Na,iS as Oa,sS as Pa,Ul as Qa,Om as Ra,sa as Sa,aS as Ta,uS as Ua,cS as Va,lS as Wa,In as Xa,dS as Ya,B as Za,fS as _a,Ze as $a,es as ab,vo as bb,rs as cb,wo as db,Pn as eb,Ee as fb,nt as gb,VD as hb,zD as ib,fs as jb,WD as kb,Vd as lb,gs as mb,ev as nb,pv as ob,Yd as pb,hv as qb,gS as rb,mS as sb,yS as tb,DS as ub,vS as vb,nf as wb,rf as xb,Tv as yb,sf as zb,af as Ab,Fv as Bb,wS as Cb,kv as Db,zv as Eb,IS as Fb,ES as Gb,CS as Hb,Qv as Ib,bS as Jb,_S as Kb,MS as Lb,xS as Mb,SS as Nb,TS as Ob,Xv as Pb,ff as Qb,NS as Rb,AS as Sb,OS as Tb,FS as Ub,RS as Vb,PS as Wb,kS as Xb,LS as Yb,jS as Zb,VS as _b,BS as $b,$S as ac,Ma as bc,vf as cc,xa as dc,pw as ec,HS as fc,If as gc,US as hc,GS as ic,Fw as jc,Na as kc,fT as lc,Ef as mc,Af as nc,kw as oc,jw as pc,pT as qc,hT as rc,gT as sc,mT as tc,cI as uc,yT as vc,DT as wc,vT as xc,wT as yc,IT as zc,hI as Ac,ET as Bc,CT as Cc,Tf as Dc,bt as Ec,MT as Fc,xT as Gc,ST as Hc,TT as Ic,NT as Jc,AT as Kc,OT as Lc,Lf as Mc,jf as Nc,FT as Oc}; diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-KPVI7RD6.js b/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-KPVI7RD6.js deleted file mode 100644 index 5d25d0ed..00000000 --- a/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-KPVI7RD6.js +++ /dev/null @@ -1,7 +0,0 @@ -var ac=Object.defineProperty,uc=Object.defineProperties;var cc=Object.getOwnPropertyDescriptors;var Nt=Object.getOwnPropertySymbols;var ri=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable;var ni=(e,t,n)=>t in e?ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t)=>{for(var n in t||={})ri.call(t,n)&&ni(e,n,t[n]);if(Nt)for(var n of Nt(t))oi.call(t,n)&&ni(e,n,t[n]);return e},et=(e,t)=>uc(e,cc(t));var fg=(e,t)=>{var n={};for(var r in e)ri.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Nt)for(var r of Nt(e))t.indexOf(r)<0&&oi.call(e,r)&&(n[r]=e[r]);return n};var ii=null;var Qn=1,si=Symbol("SIGNAL");function E(e){let t=ii;return ii=e,t}var ai={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function lc(e){if(!(Jn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Qn)){if(!e.producerMustRecompute(e)&&!Zn(e)){e.dirty=!1,e.lastCleanEpoch=Qn;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Qn}}function ui(e){return e&&(e.nextProducerIndex=0),E(e)}function ci(e,t){if(E(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Jn(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Zn(e){At(e);for(let t=0;t0}function At(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function dc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function fc(){throw new Error}var pc=fc;function di(e){pc=e}function g(e){return typeof e=="function"}function Re(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ot=Re(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function tt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var R=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof Ot?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{fi(i)}catch(s){t=t??[],s instanceof Ot?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ot(t)}}add(t){var n;if(t&&t!==this)if(this.closed)fi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&tt(n,t)}remove(t){let{_finalizers:n}=this;n&&tt(n,t),t instanceof e&&t._removeParent(this)}};R.EMPTY=(()=>{let e=new R;return e.closed=!0,e})();var Xn=R.EMPTY;function Ft(e){return e instanceof R||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function fi(e){g(e)?e():e.unsubscribe()}var Q={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Pe={setTimeout(e,t,...n){let{delegate:r}=Pe;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pe;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Rt(e){Pe.setTimeout(()=>{let{onUnhandledError:t}=Q;if(t)t(e);else throw e})}function nt(){}var pi=er("C",void 0,void 0);function hi(e){return er("E",void 0,e)}function gi(e){return er("N",e,void 0)}function er(e,t,n){return{kind:e,value:t,error:n}}var Ie=null;function ke(e){if(Q.useDeprecatedSynchronousErrorHandling){let t=!Ie;if(t&&(Ie={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ie;if(Ie=null,n)throw r}}else e()}function mi(e){Q.useDeprecatedSynchronousErrorHandling&&Ie&&(Ie.errorThrown=!0,Ie.error=e)}var we=class extends R{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ft(t)&&t.add(this)):this.destination=mc}static create(t,n,r){return new Le(t,n,r)}next(t){this.isStopped?nr(gi(t),this):this._next(t)}error(t){this.isStopped?nr(hi(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?nr(pi,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},hc=Function.prototype.bind;function tr(e,t){return hc.call(e,t)}var rr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Pt(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Pt(r)}else Pt(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Pt(n)}}},Le=class extends we{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Q.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&tr(t.next,i),error:t.error&&tr(t.error,i),complete:t.complete&&tr(t.complete,i)}):o=t}this.destination=new rr(o)}};function Pt(e){Q.useDeprecatedSynchronousErrorHandling?mi(e):Rt(e)}function gc(e){throw e}function nr(e,t){let{onStoppedNotification:n}=Q;n&&Pe.setTimeout(()=>n(e,t))}var mc={closed:!0,next:nt,error:gc,complete:nt};var je=typeof Symbol=="function"&&Symbol.observable||"@@observable";function $(e){return e}function yc(...e){return or(e)}function or(e){return e.length===0?$:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var M=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=vc(n)?n:new Le(n,r,o);return ke(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=yi(r),new r((o,i)=>{let s=new Le({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[je](){return this}pipe(...n){return or(n)(this)}toPromise(n){return n=yi(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function yi(e){var t;return(t=e??Q.Promise)!==null&&t!==void 0?t:Promise}function Dc(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function vc(e){return e&&e instanceof we||Dc(e)&&Ft(e)}function ir(e){return g(e?.lift)}function v(e){return t=>{if(ir(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function I(e,t,n,r,o){return new sr(e,t,n,r,o)}var sr=class extends we{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ar(){return v((e,t)=>{let n=null;e._refCount++;let r=I(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ur=class extends M{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ir(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new R;let n=this.getSubject();t.add(this.source.subscribe(I(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=R.EMPTY)}return t}refCount(){return ar()(this)}};var Di=Re(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends M{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new kt(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Di}next(n){ke(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ke(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ke(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Xn:(this.currentObservers=null,i.push(n),new R(()=>{this.currentObservers=null,tt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new M;return n.source=this,n}}return e.create=(t,n)=>new kt(t,n),e})(),kt=class extends ce{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Xn}};var rt=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ot=new M(e=>e.complete());function vi(e){return e&&g(e.schedule)}function Ii(e){return e[e.length-1]}function wi(e){return g(Ii(e))?e.pop():void 0}function le(e){return vi(Ii(e))?e.pop():void 0}function Ci(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Ei(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(e){return this instanceof Ee?(this.v=e,this):new Ee(e)}function bi(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(b){return new Promise(function(L,F){i.push([f,b,L,F])>1||u(f,b)})},m&&(o[f]=m(o[f])))}function u(f,m){try{c(r[f](m))}catch(b){p(i[0][3],b)}}function c(f){f.value instanceof Ee?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,m){f(m),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Mi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ei=="function"?Ei(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Lt=e=>e&&typeof e.length=="number"&&typeof e!="function";function jt(e){return g(e?.then)}function Vt(e){return g(e[je])}function Bt(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function $t(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ic(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ht=Ic();function Ut(e){return g(e?.[Ht])}function Gt(e){return bi(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ee(n.read());if(o)return yield Ee(void 0);yield yield Ee(r)}}finally{n.releaseLock()}})}function zt(e){return g(e?.getReader)}function O(e){if(e instanceof M)return e;if(e!=null){if(Vt(e))return wc(e);if(Lt(e))return Ec(e);if(jt(e))return Cc(e);if(Bt(e))return _i(e);if(Ut(e))return bc(e);if(zt(e))return Mc(e)}throw $t(e)}function wc(e){return new M(t=>{let n=e[je]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ec(e){return new M(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Rt)})}function bc(e){return new M(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function _i(e){return new M(t=>{_c(e,t).catch(n=>t.error(n))})}function Mc(e){return _i(Gt(e))}function _c(e,t){var n,r,o,i;return Ci(this,void 0,void 0,function*(){try{for(n=Mi(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function j(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Wt(e,t=0){return v((n,r)=>{n.subscribe(I(r,o=>j(r,e,()=>r.next(o),t),()=>j(r,e,()=>r.complete(),t),o=>j(r,e,()=>r.error(o),t)))})}function qt(e,t=0){return v((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function xi(e,t){return O(e).pipe(qt(t),Wt(t))}function Ti(e,t){return O(e).pipe(qt(t),Wt(t))}function Si(e,t){return new M(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ni(e,t){return new M(n=>{let r;return j(n,t,()=>{r=e[Ht](),j(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function Yt(e,t){if(!e)throw new Error("Iterable cannot be null");return new M(n=>{j(n,t,()=>{let r=e[Symbol.asyncIterator]();j(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ai(e,t){return Yt(Gt(e),t)}function Oi(e,t){if(e!=null){if(Vt(e))return xi(e,t);if(Lt(e))return Si(e,t);if(jt(e))return Ti(e,t);if(Bt(e))return Yt(e,t);if(Ut(e))return Ni(e,t);if(zt(e))return Ai(e,t)}throw $t(e)}function de(e,t){return t?Oi(e,t):O(e)}function xc(...e){let t=le(e);return de(e,t)}function Tc(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new M(t?o=>t.schedule(r,0,o):r)}function Sc(e){return!!e&&(e instanceof M||g(e.lift)&&g(e.subscribe))}var Ce=Re(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function se(e,t){return v((n,r)=>{let o=0;n.subscribe(I(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Nc}=Array;function Ac(e,t){return Nc(t)?e(...t):e(t)}function Fi(e){return se(t=>Ac(e,t))}var{isArray:Oc}=Array,{getPrototypeOf:Fc,prototype:Rc,keys:Pc}=Object;function Ri(e){if(e.length===1){let t=e[0];if(Oc(t))return{args:t,keys:null};if(kc(t)){let n=Pc(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function kc(e){return e&&typeof e=="object"&&Fc(e)===Rc}function Pi(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Lc(...e){let t=le(e),n=wi(e),{args:r,keys:o}=Ri(e);if(r.length===0)return de([],t);let i=new M(jc(r,t,o?s=>Pi(o,s):$));return n?i.pipe(Fi(n)):i}function jc(e,t,n=$){return r=>{ki(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=de(e[u],t),l=!1;c.subscribe(I(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ki(e,t,n){e?j(n,e,t):t()}function Li(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=b=>c{i&&t.next(b),c++;let L=!1;O(n(b,l++)).subscribe(I(t,F=>{o?.(F),i?f(F):t.next(F)},()=>{L=!0},void 0,()=>{if(L)try{for(c--;u.length&&cm(F)):m(F)}p()}catch(F){t.error(F)}}))};return e.subscribe(I(t,f,()=>{d=!0,p()})),()=>{a?.()}}function be(e,t,n=1/0){return g(t)?be((r,o)=>se((i,s)=>t(r,i,o,s))(O(e(r,o))),n):(typeof t=="number"&&(n=t),v((r,o)=>Li(r,o,e,n)))}function ji(e=1/0){return be($,e)}function Vi(){return ji(1)}function Qt(...e){return Vi()(de(e,le(e)))}function Vc(e){return new M(t=>{O(e()).subscribe(t)})}function it(e,t){return v((n,r)=>{let o=0;n.subscribe(I(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Bi(e){return v((t,n)=>{let r=null,o=!1,i;r=t.subscribe(I(n,void 0,void 0,s=>{i=O(e(s,Bi(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function $i(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(I(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Bc(e,t){return g(t)?be(e,t,1):be(e,1)}function st(e){return v((t,n)=>{let r=!1;t.subscribe(I(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function cr(e){return e<=0?()=>ot:v((t,n)=>{let r=0;t.subscribe(I(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function $c(e){return se(()=>e)}function Zt(e=Hc){return v((t,n)=>{let r=!1;t.subscribe(I(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Hc(){return new Ce}function Uc(e){return v((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function lr(e,t){let n=arguments.length>=2;return r=>r.pipe(e?it((o,i)=>e(o,i,r)):$,cr(1),n?st(t):Zt(()=>new Ce))}function dr(e){return e<=0?()=>ot:v((t,n)=>{let r=[];t.subscribe(I(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Gc(e,t){let n=arguments.length>=2;return r=>r.pipe(e?it((o,i)=>e(o,i,r)):$,dr(1),n?st(t):Zt(()=>new Ce))}function zc(e,t){return v($i(e,t,arguments.length>=2,!0))}function Wc(...e){let t=le(e);return v((n,r)=>{(t?Qt(e,n,t):Qt(e,n)).subscribe(r)})}function qc(e,t){return v((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(I(r,u=>{o?.unsubscribe();let c=0,l=i++;O(e(u,l)).subscribe(o=I(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yc(e){return v((t,n)=>{O(e).subscribe(I(n,()=>n.complete(),nt)),!n.closed&&t.subscribe(n)})}function Qc(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?v((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(I(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):$}var bs="https://g.co/ng/security#xss",_=class extends Error{constructor(t,n){super(Ms(t,n)),this.code=t}};function Ms(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function fo(e){return{toString:e}.toString()}var en=globalThis;function x(e){for(let t in e)if(e[t]===x)return t;throw Error("Could not find renamed property on target object.")}function H(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(H).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Hi(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Zc=x({__forward_ref__:x});function _s(e){return e.__forward_ref__=_s,e.toString=function(){return H(this())},e}function W(e){return xs(e)?e():e}function xs(e){return typeof e=="function"&&e.hasOwnProperty(Zc)&&e.__forward_ref__===_s}function N(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Sn(e){return Ui(e,Ts)||Ui(e,Ss)}function XI(e){return Sn(e)!==null}function Ui(e,t){return e.hasOwnProperty(t)?e[t]:null}function Kc(e){let t=e&&(e[Ts]||e[Ss]);return t||null}function Gi(e){return e&&(e.hasOwnProperty(zi)||e.hasOwnProperty(Jc))?e[zi]:null}var Ts=x({\u0275prov:x}),zi=x({\u0275inj:x}),Ss=x({ngInjectableDef:x}),Jc=x({ngInjectorDef:x}),T=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ns(e){return e&&!!e.\u0275providers}var Xc=x({\u0275cmp:x}),el=x({\u0275dir:x}),tl=x({\u0275pipe:x}),nl=x({\u0275mod:x}),an=x({\u0275fac:x}),at=x({__NG_ELEMENT_ID__:x}),Wi=x({__NG_ENV_ID__:x});function po(e){return typeof e=="string"?e:e==null?"":String(e)}function rl(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():po(e)}function ol(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new _(-200,e)}function ho(e,t){throw new _(-201,!1)}var D=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}(D||{}),Mr;function As(){return Mr}function z(e){let t=Mr;return Mr=e,t}function Os(e,t,n){let r=Sn(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&D.Optional)return null;if(t!==void 0)return t;ho(e,"Injector")}var il={},ut=il,sl="__NG_DI_FLAG__",un="ngTempTokenPath",al="ngTokenPath",ul=/\n/gm,cl="\u0275",qi="__source",Ue;function ll(){return Ue}function fe(e){let t=Ue;return Ue=e,t}function dl(e,t=D.Default){if(Ue===void 0)throw new _(-203,!1);return Ue===null?Os(e,void 0,t):Ue.get(e,t&D.Optional?null:void 0,t)}function V(e,t=D.Default){return(As()||dl)(W(e),t)}function C(e,t=D.Default){return V(e,Nn(t))}function Nn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function _r(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):H(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ul,` - `)}`}function ze(e,t){let n=e.hasOwnProperty(an);return n?e[an]:null}function go(e,t){e.forEach(n=>Array.isArray(n)?go(n,t):t(n))}function Fs(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function cn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var ct={},_e=[],lt=new T(""),Rs=new T("",-1),Ps=new T(""),ln=class{get(t,n=ut){if(n===ut){let r=new Error(`NullInjectorError: No provider for ${H(t)}!`);throw r.name="NullInjectorError",r}return n}},ks=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ks||{}),dt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(dt||{}),xe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(xe||{});function gl(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function xr(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(Z(r))return!1;s=!0}}}}return Z(r)||s}function Z(e){return(e&1)===0}function wl(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Z(s)&&(t+=Qi(i,o),o=""),r=s,i=i||!Z(r);n++}return o!==""&&(t+=Qi(i,o)),t}function _l(e){return e.map(Ml).join(",")}function xl(e){let t=[],n=[],r=1,o=2;for(;r{let t=$s(e),n=et(Xe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ks.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||dt.Emulated,styles:e.styles||_e,_:null,schemas:e.schemas||null,tView:null,id:""});Hs(n);let r=e.dependencies;return n.directiveDefs=Ki(r,!1),n.pipeDefs=Ki(r,!0),n.id=Ol(n),n})}function Tl(e){return Te(e)||js(e)}function Sl(e){return e!==null}function Zi(e,t){if(e==null)return ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=xe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==xe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Nl(e){return fo(()=>{let t=$s(e);return Hs(t),t})}function Te(e){return e[Xc]||null}function js(e){return e[el]||null}function Vs(e){return e[tl]||null}function Al(e){let t=Te(e)||js(e)||Vs(e);return t!==null?t.standalone:!1}function Bs(e,t){let n=e[nl]||null;if(!n&&t===!0)throw new Error(`Type ${H(e)} does not have '\u0275mod' property.`);return n}function $s(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ct,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||_e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Zi(e.inputs,t),outputs:Zi(e.outputs),debugInfo:null}}function Hs(e){e.features?.forEach(t=>t(e))}function Ki(e,t){if(!e)return null;let n=t?Vs:Tl;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Sl)}function Ol(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Us(e){return{\u0275providers:e}}function Fl(...e){return{\u0275providers:Gs(!0,e),\u0275fromNgModule:!0}}function Gs(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return go(t,s=>{let a=s;Tr(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&zs(o,i),n}function zs(e,t){for(let n=0;n{t(i,r)})}}function Tr(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=Gi(e),s=!i&&Te(e);if(!i&&!s){let u=e.ngModule;if(i=Gi(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Tr(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{go(i.imports,l=>{Tr(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&zs(c,t)}if(!a){let c=ze(o)||(()=>new o);t({provide:o,useFactory:c,deps:_e},o),t({provide:Ps,useValue:o,multi:!0},o),t({provide:lt,useValue:()=>V(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Do(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Do(e,t){for(let n of e)Ns(n)&&(n=n.\u0275providers),Array.isArray(n)?Do(n,t):t(n)}var Rl=x({provide:String,useValue:x});function Ws(e){return e!==null&&typeof e=="object"&&Rl in e}function Pl(e){return!!(e&&e.useExisting)}function kl(e){return!!(e&&e.useFactory)}function Sr(e){return typeof e=="function"}var qs=new T(""),tn={},Ll={},fr;function vo(){return fr===void 0&&(fr=new ln),fr}var me=class{},ft=class extends me{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ar(t,s=>this.processProvider(s)),this.records.set(Rs,Ve(void 0,this)),o.has("environment")&&this.records.set(me,Ve(void 0,this));let i=this.records.get(qs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ps,_e,D.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=E(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),E(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=fe(this),r=z(void 0),o;try{return t()}finally{fe(n),z(r)}}get(t,n=ut,r=D.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Wi))return t[Wi](this);r=Nn(r);let o,i=fe(this),s=z(void 0);try{if(!(r&D.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Ul(t)&&Sn(t);c&&this.injectableDefInScope(c)?u=Ve(Nr(t),tn):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&D.Self?vo():this.parent;return n=r&D.Optional&&n===ut?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[un]=a[un]||[]).unshift(H(t)),i)throw a;return pl(a,t,"R3InjectorError",this.source)}else throw a}finally{z(s),fe(i)}}resolveInjectorInitializers(){let t=E(null),n=fe(this),r=z(void 0),o;try{let i=this.get(lt,_e,D.Self);for(let s of i)s()}finally{fe(n),z(r),E(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(H(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(t){t=W(t);let n=Sr(t)?t:W(t&&t.provide),r=Vl(t);if(!Sr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ve(void 0,tn,!0),o.factory=()=>_r(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=E(null);try{return n.value===tn&&(n.value=Ll,n.value=n.factory()),typeof n.value=="object"&&n.value&&Hl(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Nr(e){let t=Sn(e),n=t!==null?t.factory:ze(e);if(n!==null)return n;if(e instanceof T)throw new _(204,!1);if(e instanceof Function)return jl(e);throw new _(204,!1)}function jl(e){if(e.length>0)throw new _(204,!1);let n=Kc(e);return n!==null?()=>n.factory(e):()=>new e}function Vl(e){if(Ws(e))return Ve(void 0,e.useValue);{let t=Bl(e);return Ve(t,tn)}}function Bl(e,t,n){let r;if(Sr(e)){let o=W(e);return ze(o)||Nr(o)}else if(Ws(e))r=()=>W(e.useValue);else if(kl(e))r=()=>e.useFactory(..._r(e.deps||[]));else if(Pl(e))r=()=>V(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if($l(e))r=()=>new o(..._r(e.deps));else return ze(o)||Nr(o)}return r}function Ve(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function $l(e){return!!e.deps}function Hl(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ul(e){return typeof e=="function"||typeof e=="object"&&e instanceof T}function Ar(e,t){for(let n of e)Array.isArray(n)?Ar(n,t):n&&Ns(n)?Ar(n.\u0275providers,t):t(n)}function tw(e,t){e instanceof ft&&e.assertNotDestroyed();let n,r=fe(e),o=z(void 0);try{return t()}finally{fe(r),z(o)}}function Gl(){return As()!==void 0||ll()!=null}function zl(e){return typeof e=="function"}var U=0,y=1,h=2,P=3,K=4,ee=5,Y=6,Ji=7,q=8,We=9,X=10,A=11,pt=12,Xi=13,wt=14,G=15,An=16,Be=17,qe=18,On=19,Ys=20,he=21,pr=22,Se=23,B=25,Qs=1,ht=6,ae=7,dn=8,fn=9,k=10,Io=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Io||{});function ge(e){return Array.isArray(e)&&typeof e[Qs]=="object"}function oe(e){return Array.isArray(e)&&e[Qs]===!0}function Zs(e){return(e.flags&4)!==0}function Et(e){return e.componentOffset>-1}function Ks(e){return(e.flags&1)===1}function Ct(e){return!!e.template}function Js(e){return(e[h]&512)!==0}var Or=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xs(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ea(){return ta}function ta(e){return e.type.prototype.ngOnChanges&&(e.setInput=ql),Wl}ea.ngInherit=!0;function Wl(){let e=ra(this),t=e?.current;if(t){let n=e.previous;if(n===ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ql(e,t,n,r,o){let i=this.declaredInputs[r],s=ra(e)||Yl(e,{previous:ct,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Or(c&&c.currentValue,n,u===ct),Xs(e,t,o,n)}var na="__ngSimpleChanges__";function ra(e){return e[na]||null}function Yl(e,t){return e[na]=t}var es=null;var pe=function(e,t,n){es?.(e,t,n)},oa="svg",Ql="math",Zl=!1;function Kl(){return Zl}function re(e){for(;Array.isArray(e);)e=e[U];return e}function Jl(e,t){return re(t[e])}function te(e,t){return re(t[e.index])}function wo(e,t){return e.data[t]}function Ke(e,t){let n=t[e];return ge(n)?n:n[U]}function Eo(e){return(e[h]&128)===128}function Xl(e){return oe(e[P])}function pn(e,t){return t==null?null:e[t]}function ia(e){e[Be]=0}function ed(e){e[h]&1024||(e[h]|=1024,Eo(e)&>(e))}function Co(e){return!!(e[h]&9216||e[Se]?.dirty)}function Fr(e){e[X].changeDetectionScheduler?.notify(1),Co(e)?gt(e):e[h]&64&&(Kl()?(e[h]|=1024,gt(e)):e[X].changeDetectionScheduler?.notify())}function gt(e){e[X].changeDetectionScheduler?.notify();let t=mt(e);for(;t!==null&&!(t[h]&8192||(t[h]|=8192,!Eo(t)));)t=mt(t)}function sa(e,t){if((e[h]&256)===256)throw new _(911,!1);e[he]===null&&(e[he]=[]),e[he].push(t)}function td(e,t){if(e[he]===null)return;let n=e[he].indexOf(t);n!==-1&&e[he].splice(n,1)}function mt(e){let t=e[P];return oe(t)?t[P]:t}var w={lFrame:ha(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function nd(){return w.lFrame.elementDepthCount}function rd(){w.lFrame.elementDepthCount++}function od(){w.lFrame.elementDepthCount--}function aa(){return w.bindingsEnabled}function bt(){return w.skipHydrationRootTNode!==null}function id(e){return w.skipHydrationRootTNode===e}function sd(e){w.skipHydrationRootTNode=e}function ad(){w.skipHydrationRootTNode=null}function S(){return w.lFrame.lView}function Je(){return w.lFrame.tView}function De(){let e=ua();for(;e!==null&&e.type===64;)e=e.parent;return e}function ua(){return w.lFrame.currentTNode}function ud(){let e=w.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Mt(e,t){let n=w.lFrame;n.currentTNode=e,n.isParent=t}function ca(){return w.lFrame.isParent}function cd(){w.lFrame.isParent=!1}function la(){let e=w.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ld(e){return w.lFrame.bindingIndex=e}function bo(){return w.lFrame.bindingIndex++}function dd(){return w.lFrame.inI18n}function fd(e,t){let n=w.lFrame;n.bindingIndex=n.bindingRootIndex=e,Rr(t)}function pd(){return w.lFrame.currentDirectiveIndex}function Rr(e){w.lFrame.currentDirectiveIndex=e}function da(e){w.lFrame.currentQueryIndex=e}function hd(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[ee]:null}function fa(e,t,n){if(n&D.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&D.Host);)if(o=hd(i),o===null||(i=i[wt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=w.lFrame=pa();return r.currentTNode=t,r.lView=e,!0}function Mo(e){let t=pa(),n=e[y];w.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pa(){let e=w.lFrame,t=e===null?null:e.child;return t===null?ha(e):t}function ha(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ga(){let e=w.lFrame;return w.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ma=ga;function _o(){let e=ga();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 Fn(){return w.lFrame.selectedIndex}function Ne(e){w.lFrame.selectedIndex=e}function gd(){let e=w.lFrame;return wo(e.tView,e.selectedIndex)}function nw(){w.lFrame.currentNamespace=oa}function rw(){md()}function md(){w.lFrame.currentNamespace=null}function ya(){return w.lFrame.currentNamespace}var Da=!0;function xo(){return Da}function ie(e){Da=e}function yd(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ta(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function To(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Be]+=65536),(a>14>16&&(e[h]&3)===t&&(e[h]+=16384,ts(a,i)):ts(a,i)}var Ge=-1,yt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function vd(e){return e instanceof yt}function Id(e){return(e.flags&8)!==0}function wd(e){return(e.flags&16)!==0}function Ia(e){return e!==Ge}function hn(e){return e&32767}function Ed(e){return e>>16}function gn(e,t){let n=Ed(e),r=t;for(;n>0;)r=r[wt],n--;return r}var Pr=!0;function ns(e){let t=Pr;return Pr=e,t}var Cd=256,wa=Cd-1,Ea=5,bd=0,ne={};function Md(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(at)&&(r=n[at]),r==null&&(r=n[at]=bd++);let o=r&wa,i=1<>Ea)]|=i}function Ca(e,t){let n=ba(e,t);if(n!==-1)return n;let r=t[y];r.firstCreatePass&&(e.injectorIndex=t.length,gr(r.data,e),gr(t,null),gr(r.blueprint,null));let o=So(e,t),i=e.injectorIndex;if(Ia(o)){let s=hn(o),a=gn(o,t),u=a[y].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function gr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ba(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function So(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Sa(o),r===null)return Ge;if(n++,o=o[wt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ge}function _d(e,t,n){Md(e,t,n)}function Ma(e,t,n){if(n&D.Optional||e!==void 0)return e;ho(t,"NodeInjector")}function _a(e,t,n,r){if(n&D.Optional&&r===void 0&&(r=null),!(n&(D.Self|D.Host))){let o=e[We],i=z(void 0);try{return o?o.get(t,r,n&D.Optional):Os(t,r,n&D.Optional)}finally{z(i)}}return Ma(r,t,n)}function xa(e,t,n,r=D.Default,o){if(e!==null){if(t[h]&2048&&!(r&D.Self)){let s=Ad(e,t,n,r,ne);if(s!==ne)return s}let i=Ta(e,t,n,r,ne);if(i!==ne)return i}return _a(t,n,r,o)}function Ta(e,t,n,r,o){let i=Sd(n);if(typeof i=="function"){if(!fa(t,e,r))return r&D.Host?Ma(o,n,r):_a(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&D.Optional))ho(n);else return s}finally{ma()}}else if(typeof i=="number"){let s=null,a=ba(e,t),u=Ge,c=r&D.Host?t[G][ee]:null;for((a===-1||r&D.SkipSelf)&&(u=a===-1?So(e,t):t[a+8],u===Ge||!os(r,!1)?a=-1:(s=t[y],a=hn(u),t=gn(u,t)));a!==-1;){let l=t[y];if(rs(i,a,l.data)){let d=xd(a,t,n,s,r,c);if(d!==ne)return d}u=t[a+8],u!==Ge&&os(r,t[y].data[a+8]===c)&&rs(i,a,t)?(s=l,a=hn(u),t=gn(u,t)):a=-1}}return o}function xd(e,t,n,r,o,i){let s=t[y],a=s.data[e+8],u=r==null?Et(a)&&Pr:r!=s&&(a.type&3)!==0,c=o&D.Host&&i===a,l=Td(a,s,n,u,c);return l!==null?Dt(t,s,l,a):ne}function Td(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&m.type===n)return f}if(o){let f=s[u];if(f&&Ct(f)&&f.type===n)return u}return null}function Dt(e,t,n,r){let o=e[n],i=t.data;if(vd(o)){let s=o;s.resolving&&ol(rl(i[n]));let a=ns(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?z(s.injectImpl):null,l=fa(e,r,D.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&yd(n,i[n],t)}finally{c!==null&&z(c),ns(a),s.resolving=!1,ma()}}return o}function Sd(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(at)?e[at]:void 0;return typeof t=="number"?t>=0?t&wa:Nd:t}function rs(e,t,n){let r=1<>Ea)]&r)}function os(e,t){return!(e&D.Self)&&!(e&D.Host&&t)}var Me=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return xa(this._tNode,this._lView,t,Nn(r),n)}};function Nd(){return new Me(De(),S())}function ow(e){return fo(()=>{let t=e.prototype.constructor,n=t[an]||kr(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[an]||kr(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function kr(e){return xs(e)?()=>{let t=kr(W(e));return t&&t()}:ze(e)}function Ad(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[h]&2048&&!(s[h]&512);){let a=Ta(i,s,n,r|D.Self,ne);if(a!==ne)return a;let u=i.parent;if(!u){let c=s[Ys];if(c){let l=c.get(n,ne,r);if(l!==ne)return l}u=Sa(s),s=s[wt]}i=u}return o}function Sa(e){let t=e[y],n=t.type;return n===2?t.declTNode:n===1?e[ee]:null}function is(e,t=null,n=null,r){let o=Na(e,t,n,r);return o.resolveInjectorInitializers(),o}function Na(e,t=null,n=null,r,o=new Set){let i=[n||_e,Fl(e)];return r=r||(typeof e=="object"?void 0:H(e)),new ft(i,t||vo(),r||null,o)}var _t=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return is({name:""},o,r,"");{let i=r.name??"";return is({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=ut,t.NULL=new ln,t.\u0275prov=N({token:t,providedIn:"any",factory:()=>V(Rs)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Od="ngOriginalError";function mr(e){return e[Od]}var Ye=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&mr(t);for(;n&&mr(n);)n=mr(n);return n||null}},Aa=new T("",{providedIn:"root",factory:()=>C(Ye).handleError.bind(void 0)}),Oa=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Fd,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),Lr=class extends Oa{constructor(t){super(),this._lView=t}onDestroy(t){return sa(this._lView,t),()=>td(this._lView,t)}};function Fd(){return new Lr(S())}function Rd(){return No(De(),S())}function No(e,t){return new Ao(te(e,t))}var Ao=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Rd;let e=t;return e})();var jr=class extends ce{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=C(Oa,{optional:!0})??void 0)}emit(t){let n=E(null);try{super.next(t)}finally{E(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=yr(i),o&&(o=yr(o)),s&&(s=yr(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof R&&t.add(a),a}};function yr(e){return t=>{setTimeout(e,void 0,t)}}var $e=jr;var Pd="ngSkipHydration",kd="ngskiphydration";function Fa(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;nUd}),Ud="ng",Gd=new T(""),Oo=new T("",{providedIn:"platform",factory:()=>"unknown"});var sw=new T(""),aw=new T("",{providedIn:"root",factory:()=>Rn().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function zd(){let e=new Fo;return C(Oo)==="browser"&&(e.store=Wd(Rn(),C(Hd))),e}var Fo=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,o){return this.store[r]!==void 0?this.store[r]:o}set(r,o){this.store[r]=o}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,o){this.onSerializeCallbacks[r]=o}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/null;function ef(e,t,n=!1){let r=e.getAttribute(Dr);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,u={};if(r!==""){let l=t.get(Fo,null,{optional:!0});l!==null&&(u=l.get(Ha,[])[Number(r)])}let c={data:u,firstChild:e.firstChild??null};return n&&(c.firstChild=e,Pn(c,0,e.nextSibling)),a?e.setAttribute(Dr,a):e.removeAttribute(Dr),c}function tf(){Ua=ef}function Po(e,t,n=!1){return Ua(e,t,n)}function nf(e){let t=e._lView;return t[y].type===2?null:(Js(t)&&(t=t[B]),t)}function rf(e){return e.textContent?.replace(/\s/gm,"")}function of(e){let t=Rn(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=rf(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}function Pn(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function $r(e,t){return e.segmentHeads?.[t]??null}function sf(e,t){let n=e.data,r=n[qd]?.[t]??null;return r===null&&n[Ro]?.[t]&&(r=ko(e,t)),r}function Ga(e,t){return e.data[Ro]?.[t]??null}function ko(e,t){let n=Ga(e,t)??[],r=0;for(let o of n)r+=o[yn]*(o[$a]??1);return r}function kn(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[Kd];e.disconnectedNodes=n?new Set(n):null}return!!e.disconnectedNodes?.has(t)}var Kt=new T(""),za=!1,Wa=new T("",{providedIn:"root",factory:()=>za}),af=new T("");var Dn=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bs})`}};function qa(e){return e instanceof Dn?e.changingThisBreaksApplicationSecurity:e}function uf(e,t){let n=cf(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${bs})`)}return n===t}function cf(e){return e instanceof Dn&&e.getTypeName()||null}var lf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function df(e){return e=String(e),e.match(lf)?e:"unsafe:"+e}var Ya=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}(Ya||{});function uw(e){let t=ff();return t?t.sanitize(Ya.URL,e)||"":uf(e,"URL")?qa(e):df(po(e))}function ff(){let e=S();return e&&e[X].sanitizer}var pf=/^>|^->||--!>|)/g,gf="\u200B$1\u200B";function mf(e){return e.replace(pf,t=>t.replace(hf,gf))}function yf(e){return e.ownerDocument.body}function Qa(e){return e instanceof Function?e():e}function Jt(e){return(e??C(_t)).get(Oo)==="browser"}var Za=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Za||{}),Df;function Lo(e,t){return Df(e,t)}function He(e,t,n,r,o){if(r!=null){let i,s=!1;oe(r)?i=r:ge(r)&&(s=!0,r=r[U]);let a=re(r);e===0&&n!==null?o==null?Xa(t,n,a):vn(t,n,a,o||null,!0):e===1&&n!==null?vn(t,n,a,o||null,!0):e===2?Ho(t,a,s):e===3&&t.destroyNode(a),i!=null&&Pf(t,e,i,n,o)}}function jo(e,t){return e.createText(t)}function vf(e,t,n){e.setValue(t,n)}function Vo(e,t){return e.createComment(mf(t))}function Ln(e,t,n){return e.createElement(t,n)}function If(e,t){Ka(e,t),t[U]=null,t[ee]=null}function wf(e,t,n,r,o,i){r[U]=o,r[ee]=t,Vn(e,r,n,1,o,i)}function Ka(e,t){t[X].changeDetectionScheduler?.notify(1),Vn(e,t,t[A],2,null,null)}function Ef(e){let t=e[pt];if(!t)return vr(e[y],e);for(;t;){let n=null;if(ge(t))n=t[pt];else{let r=t[k];r&&(n=r)}if(!n){for(;t&&!t[K]&&t!==e;)ge(t)&&vr(t[y],t),t=t[P];t===null&&(t=e),ge(t)&&vr(t[y],t),n=t&&t[K]}t=n}}function Cf(e,t,n,r){let o=k+r,i=n.length;r>0&&(n[o-1][K]=t),r0&&(e[n-1][K]=r[K]);let i=cn(e,k+t);If(r[y],r);let s=i[qe];s!==null&&s.detachView(i[y]),r[P]=null,r[K]=null,r[h]&=-129}return r}function jn(e,t){if(!(t[h]&256)){let n=t[A];n.destroyNode&&Vn(e,t,n,3,null,null),Ef(t)}}function vr(e,t){if(t[h]&256)return;let n=E(null);try{t[h]&=-129,t[h]|=256,t[Se]&&li(t[Se]),_f(e,t),Mf(e,t),t[y].type===1&&t[A].destroy();let r=t[An];if(r!==null&&oe(t[P])){r!==t[P]&&Ja(r,t);let o=t[qe];o!==null&&o.detachView(e)}$d(t)}finally{E(n)}}function Mf(e,t){let n=e.cleanup,r=t[Ji];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Ji]=null);let o=t[he];if(o!==null){t[he]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===dt.None||i===dt.Emulated)return null}return te(r,n)}}function vn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Xa(e,t,n){e.appendChild(t,n)}function as(e,t,n,r,o){r!==null?vn(e,t,n,r,o):Xa(e,t,n)}function Sf(e,t,n,r){e.removeChild(t,n,r)}function Bo(e,t){return e.parentNode(t)}function Nf(e,t){return e.nextSibling(t)}function Af(e,t,n){return Ff(e,t,n)}function Of(e,t,n){return e.type&40?te(e,n):null}var Ff=Of,us;function $o(e,t,n,r){let o=xf(e,r,t),i=t[A],s=r.parent||t[ee],a=Af(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uB&&ou(e,t,B,!1),pe(s?2:0,o),n(r,o)}finally{Ne(i),pe(s?3:1,o)}}function cu(e,t,n){if(Zs(t)){let r=E(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Hf(e){Ra(e)?tu(e):of(e)}function Uf(){pu=Hf}function Gf(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return bt()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function cs(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=xe.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?ls(r,n,c,a,u):ls(r,n,c,a)}return r}function ls(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function zf(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Kf(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Et(n)&&op(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ca(n,t),Ae(r,t);let s=n.initialInputs;for(let a=o;a{gt(e.lView)},consumerOnSignalRead(){this.lView[Se]=this}}),wu=100;function Eu(e,t=!0,n=0){let r=e[X],o=r.rendererFactory,i=!1;i||o.begin?.();try{vp(e,n)}catch(s){throw t&&ap(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function vp(e,t){zr(e,t);let n=0;for(;Co(e);){if(n===wu)throw new _(103,!1);n++,zr(e,1)}}function Ip(e,t,n,r){let o=t[h];if((o&256)===256)return;let i=!1;!i&&t[X].inlineEffectRunner?.flush(),Mo(t);let s=null,a=null;!i&&wp(e)&&(a=gp(t),s=ui(a));try{ia(t),ld(e.bindingStartIndex),n!==null&&uu(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&nn(t,d,null)}else{let d=e.preOrderHooks;d!==null&&rn(t,d,0,null),hr(t,0)}if(Ep(t),Cu(t,0),e.contentQueries!==null&&Du(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&nn(t,d)}else{let d=e.contentHooks;d!==null&&rn(t,d,1),hr(t,1)}Lf(e,t);let c=e.components;c!==null&&Mu(t,c,0);let l=e.viewQuery;if(l!==null&&Gr(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&nn(t,d)}else{let d=e.viewHooks;d!==null&&rn(t,d,2),hr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[pr]){for(let d of t[pr])d();t[pr]=null}i||(t[h]&=-73)}catch(u){throw gt(t),u}finally{a!==null&&(ci(a,s),yp(a)),_o()}}function wp(e){return e.type!==2}function Cu(e,t){for(let n=ka(e);n!==null;n=La(n))for(let r=k;r-1&&(vt(t,r),cn(n,r))}this._attachedToViewContainer=!1}jn(this._lView[y],this._lView)}onDestroy(t){sa(this._lView,t)}markForCheck(){_u(this._cdRefInjectingView||this._lView)}detach(){this._lView[h]&=-129}reattach(){Fr(this._lView),this._lView[h]|=128}detectChanges(){this._lView[h]|=1024,Eu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ka(this._lView[y],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t,Fr(this._lView)}};function xu(e){let t=e[ht]??[],r=e[P][A];for(let o of t)bp(o,r);e[ht]=_e}function bp(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[yn];for(;n0&&(i.firstChild=e,e=Gn(r[yn],e)),n.push(i)}return[e,n]}var Su=()=>null;function Rp(e,t){let n=e[ht];return!t||n===null||n.length===0?null:n[0].data[Qd]===t?n.shift():(xu(e),null)}function Pp(){Su=Rp}function Cn(e,t){return Su(e,t)}var Wr=class{},qr=class{},bn=class{};function kp(e){let t=Error(`No component factory found for ${H(e)}.`);return t[Lp]=e,t}var Lp="ngComponent";var Yr=class{resolveComponentFactory(t){throw kp(t)}},zn=(()=>{let t=class t{};t.NULL=new Yr;let e=t;return e})(),Qr=class{};var jp=(()=>{let t=class t{};t.\u0275prov=N({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),wr={};var ds=new Set;function Wn(e){ds.has(e)||(ds.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function fs(...e){}function Vp(){let e=typeof en.requestAnimationFrame=="function",t=en[e?"requestAnimationFrame":"setTimeout"],n=en[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var J=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!1),typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Vp().nativeRequestAnimationFrame,Hp(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Bp,fs,fs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Bp={};function Yo(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $p(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(en,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Zr(e),e.isCheckStableRunning=!0,Yo(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Zr(e))}function Hp(e){let t=()=>{$p(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Up(a))return n.invokeTask(o,i,s,a);try{return ps(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),hs(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return ps(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),hs(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Zr(e),Yo(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Zr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ps(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hs(e){e._nesting--,Yo(e)}function Up(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var Nu=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=N({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Kr(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&nu(e,n,i.join(" "))}}function Zp(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=Jp;let e=t;return e})();function Jp(){let e=De();return eh(e,S())}var Xp=Au,Ou=class extends Xp{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return No(this._hostTNode,this._hostLView)}get injector(){return new Me(this._hostTNode,this._hostLView)}get parentInjector(){let t=So(this._hostTNode,this._hostLView);if(Ia(t)){let n=gn(t,this._hostLView),r=hn(t),o=n[y].data[r+8];return new Me(o,n)}else return new Me(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ms(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-k}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Cn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,In(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!zl(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let u=s?t:new It(Te(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let b=(s?c:this.parentInjector).get(me,null);b&&(i=b)}let l=Te(u.componentType??{}),d=Cn(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,o,p,i);return this.insertImpl(f.hostView,a,In(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Xl(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[P],c=new Ou(u,u[ee],u[P]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return qo(s,o,i,r),t.attachToViewContainerRef(),Fs(Er(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ms(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=vt(this._lContainer,n);r&&(cn(Er(this._lContainer),n),jn(r[y],r))}detach(t){let n=this._adjustIndex(t,-1),r=vt(this._lContainer,n);return r&&cn(Er(this._lContainer),n)!=null?new Qe(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ms(e){return e[dn]}function Er(e){return e[dn]||(e[dn]=[])}function eh(e,t){let n,r=t[e.index];return oe(r)?n=r:(n=yu(r,t,null,e),t[e.index]=n,Hn(t,n)),Fu(n,t,e,r),new Ou(n,e,t)}function th(e,t){let n=e[A],r=n.createComment(""),o=te(t,e),i=Bo(n,o);return vn(n,i,r,Nf(n,o),!1),r}var Fu=Ru,Qo=()=>!1;function nh(e,t,n){return Qo(e,t,n)}function Ru(e,t,n,r){if(e[ae])return;let o;n.type&8?o=re(r):o=th(t,n),e[ae]=o}function rh(e,t,n){if(e[ae]&&e[ht])return!0;let r=n[Y],o=t.index-B;if(!r||Ld(t)||kn(r,o))return!1;let s=$r(r,o),a=r.data[Ro]?.[o],[u,c]=Fp(s,a);return e[ae]=u,e[ht]=c,!0}function oh(e,t,n,r){Qo(e,n,t)||Ru(e,t,n,r)}function ih(){Fu=oh,Qo=rh}var ye=class{},eo=class{};var to=class extends ye{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mn(this);let o=Bs(t);this._bootstrapComponents=Qa(o.bootstrap),this._r3Injector=Na(t,n,[{provide:ye,useValue:this},{provide:zn,useValue:this.componentFactoryResolver},...r],H(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},no=class extends eo{constructor(t){super(),this.moduleType=t}create(t){return new to(this.moduleType,t,[])}};var _n=class extends ye{constructor(t){super(),this.componentFactoryResolver=new Mn(this),this.instance=null;let n=new ft([...t.providers,{provide:ye,useValue:this},{provide:zn,useValue:this.componentFactoryResolver}],t.parent||vo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function sh(e,t,n=null){return new _n({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Pu=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new rt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ku(e,t,n){return e[t]=n}function Lu(e,t){return e[t]}function Ze(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ys(e,t,n,r){let o=Ze(e,t,n);return Ze(e,t+1,r)||o}function ah(e,t,n,r,o,i){let s=ys(e,t,n,r);return ys(e,t+2,o,i)||s}function Tt(e){return(e.flags&32)===32}function uh(e,t,n,r,o,i,s,a,u){let c=t.consts,l=$n(t,e,4,s||null,pn(c,a));hu(t,n,l,pn(c,u)),To(t,l);let d=l.tView=Go(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function ro(e,t,n,r,o,i,s,a){let u=S(),c=Je(),l=e+B,d=c.firstCreatePass?uh(l,c,u,t,n,r,o,i,s):c.data[l];Mt(d,!1);let p=ju(c,u,d,e);xo()&&$o(c,u,p,d),Ae(p,u);let f=yu(p,u,p,d);return u[l]=f,Hn(u,f),nh(f,d,u),Ks(d)&&lu(c,u,d),s!=null&&du(u,d,a),ro}var ju=Vu;function Vu(e,t,n,r){return ie(!0),t[A].createComment("")}function ch(e,t,n,r){let o=t[Y],i=!o||bt()||Tt(n)||kn(o,r);if(ie(i),i)return Vu(e,t,n,r);let s=o.data[Yd]?.[r]??null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=Un(o,e,t,n);Pn(o,r,a);let u=ko(o,r);return Gn(u,a)}function lh(){ju=ch}function dh(e,t,n,r){return Ze(e,bo(),n)?t+po(n)+r:xt}function fh(e,t,n){let r=S(),o=bo();if(Ze(r,o,t)){let i=Je(),s=gd();qf(i,s,r,e,t,r[A],n,!1)}return fh}function Ds(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";zo(e,n,i[s],s,r)}var oo=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Cr(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function ph(e,t,n){let r,o,i=0,s=e.length-1;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){let u=e.at(i),c=t[i],l=Cr(i,u,i,c,n);if(l!==0){l<0&&e.updateValue(i,c),i++;continue}let d=e.at(s),p=t[a],f=Cr(s,d,a,p,n);if(f!==0){f<0&&e.updateValue(s,p),s--,a--;continue}let m=n(i,u),b=n(s,d),L=n(i,c);if(Object.is(L,b)){let F=n(a,p);Object.is(F,m)?(e.swap(i,s),e.updateValue(s,p),a--,s--):e.move(s,i),e.updateValue(i,c),i++;continue}if(r??=new xn,o??=Is(e,i,s,n),io(e,r,i,L))e.updateValue(i,c),i++,s++;else if(o.has(L))r.set(m,e.detach(i)),s--;else{let F=e.create(i,t[i]);e.attach(i,F),i++,s++}}for(;i<=a;)vs(e,r,n,i,t[i]),i++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&i<=s;){let c=e.at(i),l=u.value,d=Cr(i,c,i,l,n);if(d!==0)d<0&&e.updateValue(i,l),i++,u=a.next();else{r??=new xn,o??=Is(e,i,s,n);let p=n(i,l);if(io(e,r,i,p))e.updateValue(i,l),i++,s++,u=a.next();else if(!o.has(p))e.attach(i,e.create(i,l)),i++,s++,u=a.next();else{let f=n(i,c);r.set(f,e.detach(i)),s--}}}for(;!u.done;)vs(e,r,n,e.length,u.value),u=a.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function io(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function vs(e,t,n,r,o){if(io(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Is(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var xn=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};var so=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-k}};var ao=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function fw(e,t,n,r,o,i,s,a,u,c,l,d,p){Wn("NgControlFlow");let f=u!==void 0,m=S(),b=a?s.bind(m[G][q]):s,L=new ao(f,b);m[B+e]=L,ro(e+1,t,n,r,o,i),f&&ro(e+2,u,c,l,d,p)}var uo=class extends oo{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-k}at(t){return this.getLView(t)[q].$implicit}attach(t,n){let r=n[Y];this.needsIndexUpdate||=t!==this.length,qo(this.lContainer,n,t,In(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,hh(this.lContainer,t)}create(t,n){let r=Cn(this.lContainer,this.templateTNode.tView.ssrId);return vu(this.hostLView,this.templateTNode,new so(this.lContainer,n,t),{dehydratedView:r})}destroy(t){jn(t[y],t)}updateValue(t,n){this.getLView(t)[q].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(ie(!0),Ln(r,o,ya()));function Dh(e,t,n,r,o,i){let s=t[Y],a=!s||bt()||Tt(n)||kn(s,i);if(ie(a),a)return Ln(r,o,ya());let u=Un(s,e,t,n);return Ga(s,i)&&Pn(s,i,u.nextSibling),s&&(Fa(n)||Ra(u))&&Et(n)&&(sd(n),tu(u)),u}function vh(){Hu=Dh}var Ih=(e,t,n,r)=>(ie(!0),Vo(t[A],""));function wh(e,t,n,r){let o,i=t[Y],s=!i||bt()||Tt(n);if(ie(s),s)return Vo(t[A],"");let a=Un(i,e,t,n),u=sf(i,r);return Pn(i,r,a),o=Gn(u,a),o}function Eh(){Ih=wh}var Tn="en-US";var Ch=Tn;function bh(e){typeof e=="string"&&(Ch=e.toLowerCase().replace(/_/g,"-"))}function Uu(e,t,n){let r=e[A];switch(n){case Node.COMMENT_NODE:return Vo(r,t);case Node.TEXT_NODE:return jo(r,t);case Node.ELEMENT_NODE:return Ln(r,t,null)}}var Mh=(e,t,n,r)=>(ie(!0),Uu(e,n,r));function _h(e,t,n,r){return ie(!0),Uu(e,n,r)}function xh(){Mh=_h}function hw(e,t=""){let n=S(),r=Je(),o=e+B,i=r.firstCreatePass?$n(r,o,1,t,null):r.data[o],s=Gu(r,n,i,t,e);n[o]=s,xo()&&$o(r,n,s,i),Mt(i,!1)}var Gu=(e,t,n,r,o)=>(ie(!0),jo(t[A],r));function Th(e,t,n,r,o){let i=t[Y],s=!i||bt()||Tt(n)||kn(i,o);return ie(s),s?jo(t[A],r):Un(i,e,t,n)}function Sh(){Gu=Th}function Nh(e){return zu("",e,""),Nh}function zu(e,t,n){let r=S(),o=dh(r,e,t,n);return o!==xt&&up(r,Fn(),o),zu}var Ah=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Gs(!1,r.type),i=o.length>0?sh([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=N({token:t,providedIn:"environment",factory:()=>new t(V(me))});let e=t;return e})();function gw(e){Wn("NgStandalone"),e.getStandaloneInjector=t=>t.get(Ah).getOrCreateStandaloneInjector(e)}function mw(e,t,n){let r=la()+e,o=S();return o[r]===xt?ku(o,r,n?t.call(n):t()):Lu(o,r)}function yw(e,t,n,r,o,i,s,a){let u=la()+e,c=S(),l=ah(c,u,n,r,o,i);return Ze(c,u+4,s)||l?ku(c,u+5,a?t.call(a,n,r,o,i,s):t(n,r,o,i,s)):Lu(c,u+5)}var Dw=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Oh=new T("");function Zo(e){return!!e&&typeof e.then=="function"}function Wu(e){return!!e&&typeof e.subscribe=="function"}var Fh=new T(""),qu=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=C(Fh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Zo(s))r.push(s);else if(Wu(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Yu=new T("");function Rh(){di(()=>{throw new _(600,!1)})}function Ph(e){return e.isBoundToModule}function kh(e,t,n){try{let r=n();return Zo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ko=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(Aa),this.afterRenderEffectManager=C(Nu),this.externalTestViews=new Set,this.beforeRender=new ce,this.afterTick=new ce,this.componentTypes=[],this.components=[],this.isStable=C(Pu).hasPendingTasks.pipe(se(r=>!r)),this._injector=C(me)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof bn;if(!this._injector.get(qu).done){let f=!i&&Al(r),m=!1;throw new _(405,m)}let a;i?a=r:a=this._injector.get(zn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Ph(a)?void 0:this._injector.get(ye),c=o||a.selector,l=a.create(_t.NULL,[],c,u),d=l.location.nativeElement,p=l.injector.get(Oh,null);return p?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),br(this.components,l),p?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new _(101,!1);let o=E(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,E(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===wu)throw new _(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)jh(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>co(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>co(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;br(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(Yu,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>br(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new _(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function br(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Xt;function Lh(e){Xt??=new WeakMap;let t=Xt.get(e);if(t)return t;let n=e.isStable.pipe(lr(r=>r)).toPromise().then(()=>{});return Xt.set(e,n),e.onDestroy(()=>Xt?.delete(e)),n}function jh(e,t,n){!t&&!co(e)||Vh(e,n,t)}function co(e){return Co(e)}function Vh(e,t,n){let r;n?(r=0,e[h]|=1024):e[h]&64?r=0:r=1,Eu(e,t,r)}var lo=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},vw=(()=>{let t=class t{compileModuleSync(r){return new no(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Bs(r),s=Qa(i.declarations).reduce((a,u)=>{let c=Te(u);return c&&a.push(new It(c)),a},[]);return new lo(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Bh=(()=>{let t=class t{constructor(){this.zone=C(J),this.applicationRef=C(Ko)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function $h(e){return[{provide:J,useFactory:e},{provide:lt,multi:!0,useFactory:()=>{let t=C(Bh,{optional:!0});return()=>t.initialize()}},{provide:lt,multi:!0,useFactory:()=>{let t=C(zh);return()=>{t.initialize()}}},{provide:Aa,useFactory:Hh}]}function Hh(){let e=C(J),t=C(Ye);return n=>e.runOutsideAngular(()=>t.handleError(n))}function Uh(e){let t=$h(()=>new J(Gh(e)));return Us([[],t])}function Gh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var zh=(()=>{let t=class t{constructor(){this.subscription=new R,this.initialized=!1,this.zone=C(J),this.pendingTasks=C(Pu)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{J.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{J.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Wh(){return typeof $localize<"u"&&$localize.locale||Tn}var Jo=new T("",{providedIn:"root",factory:()=>C(Jo,D.Optional|D.SkipSelf)||Wh()});var Qu=new T("");var sn=null;function qh(e=[],t){return _t.create({name:t,providers:[{provide:qs,useValue:"platform"},{provide:Qu,useValue:new Set([()=>sn=null])},...e]})}function Yh(e=[]){if(sn)return sn;let t=qh(e);return sn=t,Rh(),Qh(t),t}function Qh(e){e.get(Gd,null)?.forEach(n=>n())}var Zu=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Zh;let e=t;return e})();function Zh(e){return Kh(De(),S(),(e&16)===16)}function Kh(e,t,n){if(Et(e)&&!n){let r=Ke(e.index,t);return new Qe(r,r)}else if(e.type&47){let r=t[G];return new Qe(r,t)}return null}function Iw(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Yh(r),i=[Uh(),...n||[]],a=new _n({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(J);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(Ye,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),p=o.get(Qu);return p.add(d),a.onDestroy(()=>{l.unsubscribe(),p.delete(d)}),kh(c,u,()=>{let f=a.get(qu);return f.runInitializers(),f.donePromise.then(()=>{let m=a.get(Jo,Tn);bh(m||Tn);let b=a.get(Ko);return t!==void 0&&b.bootstrap(t),b})})})}catch(t){return Promise.reject(t)}}var Cs=!1,Jh=!1;function Xh(){Cs||(Cs=!0,tf(),vh(),Sh(),Eh(),lh(),ih(),Pp(),Uf(),xh())}function eg(e,t){return Lh(e)}function ww(){return Us([{provide:Kt,useFactory:()=>{let e=!0;return Jt()&&(e=!!C(Fo,{optional:!0})?.get(Ha,null)),e&&Wn("NgHydration"),e}},{provide:lt,useValue:()=>{Jh=!!C(af,{optional:!0}),Jt()&&C(Kt)&&(tg(),Xh())},multi:!0},{provide:Wa,useFactory:()=>Jt()&&C(Kt)},{provide:Yu,useFactory:()=>{if(Jt()&&C(Kt)){let e=C(Ko),t=C(_t);return()=>{eg(e,t).then(()=>{_p(e)})}}return()=>{}},multi:!0}])}function tg(){let e=Rn(),t;for(let n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===Xd){t=n;break}if(!t)throw new _(-507,!1)}var tc=null;function Xo(){return tc}function tE(e){tc??=e}var Ku=class{};var nc=new T(""),rc=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:()=>C(og),providedIn:"platform"});let e=t;return e})();var og=(()=>{let t=class t extends rc{constructor(){super(),this._doc=C(nc),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xo().getBaseHref(this._doc)}onPopState(r){let o=Xo().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=Xo().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function oc(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Ju(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Oe(e){return e&&e[0]!=="?"?"?"+e:e}var ei=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=N({token:t,factory:()=>C(sg),providedIn:"root"});let e=t;return e})(),ig=new T(""),sg=(()=>{let t=class t extends ei{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??C(nc).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return oc(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Oe(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Oe(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Oe(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(V(rc),V(ig,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ag=(()=>{let t=class t{constructor(r){this._subject=new $e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=lg(Ju(Xu(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Oe(o))}normalize(r){return t.stripTrailingSlash(cg(this._basePath,Xu(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Oe(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Oe(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Oe,t.joinWithSlash=oc,t.stripTrailingSlash=Ju,t.\u0275fac=function(o){return new(o||t)(V(ei))},t.\u0275prov=N({token:t,factory:()=>ug(),providedIn:"root"});let e=t;return e})();function ug(){return new ag(V(ei))}function cg(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Xu(e){return e.replace(/\/index.html$/,"")}function lg(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function nE(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var rE="browser",dg="server";function oE(e){return e===dg}var ec=class{};export{Xe as a,et as b,fg as c,R as d,yc as e,ar as f,ur as g,ce as h,rt as i,ot as j,de as k,xc as l,Tc as m,Sc as n,Ce as o,se as p,Lc as q,be as r,Qt as s,Vc as t,it as u,Bi as v,Bc as w,st as x,cr as y,$c as z,Uc as A,lr as B,dr as C,Gc as D,zc as E,Wc as F,qc as G,Yc as H,Qc as I,_ as J,N as K,XI as L,T as M,D as N,V as O,C as P,dt as Q,ew as R,Nl as S,Us as T,qs as U,me as V,tw as W,ea as X,nw as Y,rw as Z,ow as _,_t as $,Ye as aa,$e as ba,iw as ca,Hd as da,Gd as ea,Oo as fa,sw as ga,aw as ha,Fo as ia,uw as ja,Za as ka,cw as la,lw as ma,Wr as na,Qr as oa,Wn as pa,J as qa,Au as ra,eo as sa,sh as ta,Pu as ua,fh as va,fw as wa,pw as xa,Bu as ya,$u as za,yh as Aa,hw as Ba,Nh as Ca,zu as Da,gw as Ea,mw as Fa,yw as Ga,Dw as Ha,Zo as Ia,Yu as Ja,Ko as Ka,Lh as La,vw as Ma,Zu as Na,Iw as Oa,ww as Pa,Xo as Qa,tE as Ra,Ku as Sa,nc as Ta,ag as Ua,nE as Va,rE as Wa,oE as Xa,ec as Ya}; diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-NALQ2D3H.js b/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-NALQ2D3H.js deleted file mode 100644 index 06f60ce3..00000000 --- a/EnvelopeGenerator.GeneratorAPI/wwwroot/chunk-NALQ2D3H.js +++ /dev/null @@ -1 +0,0 @@ -import{J as E,K as gt,a as ue,c as pt}from"./chunk-KPVI7RD6.js";var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),B="*";function yt(n,e=null){return{type:_.Sequence,steps:n,options:e}}function Me(n){return{type:_.Style,styles:n,offset:null}}var U=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++s==r&&this._onDestroy()}),o.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ce="!";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function xt(n){return new E(3003,!1)}function Zt(n){return new E(3004,!1)}function Jt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function os(){return new E(3012,!1)}function as(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Ss(n){return new E(3504,!1)}function Es(n){return new E(3301,!1)}function vs(n,e){return new E(3302,!1)}function Ts(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function Ps(n){return new E(3402,!1)}function As(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function j(n){switch(n.length){case 0:return new U;case 1:return n[0];default:return new ie(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],o=-1,a=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==o,u=c&&a||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ce:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),a=u,o=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),o=n._data;return o!=null&&(r._data=o),r}function st(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function O(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ds=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ds?null:e}function Ms(n){return n.substring(1,6)=="ebkit"}var Y=null,Et=!1;function Cs(n){Y||(Y=ks()||{},Et=Y.style?"WebkitAppearance"in Y.style:!1);let e=!0;return Y.style&&!Ms(n)&&(e=n in Y.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y.style)),e}function Ai(n){return Ns.has(n)}function ks(){return typeof document<"u"?document.body:null}function Kt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function qt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{let e=class e{validateStyleProperty(s){return Cs(s)}matchesElement(s,i){return!1}containsElement(s,i){return Kt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return qt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,o,a,l=[],h){return new U(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new zt;var vt=ut,Ie=class{},Ke=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Fs=1e3,Bt="{{",Rs="}}",nt="ng-enter",ye="ng-leave",fe="ng-trigger",_e=".ng-trigger",Tt="ng-animating",qe=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){switch(e){case"s":return n*Fs;default:return n}}function Se(n,e,t){return n.hasOwnProperty("duration")?n:Os(n,e,t)}function Os(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=ze(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ze(parseFloat(l),a[4]));let h=a[5];h&&(o=h)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(Ht()),a=!0),r<0&&(e.push(Yt()),a=!0),a&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:o}}function Ls(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function x(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ne(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Rs}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(Be,(r,o)=>{let a=e[o];return a==null&&(t.push(xt(o)),a=""),a.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function rt(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function Ni(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qs(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;ro.set(a,ot(n,a)))}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Zt(e.type)}}function ot(n,e){return window.getComputedStyle(n)[e]}var Bs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",o=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Jt(e,s))}return o+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],o=s[3];e.push(bt(i,o));let a=i==Ee&&o==Ee;r[0]=="<"&&!a&&e.push(bt(o,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var de=new Set(["true","1"]),me=new Set(["false","0"]);function bt(n,e){let t=de.has(n)||me.has(n),s=de.has(e)||me.has(e);return(i,r)=>{let o=n==Ee||n==i,a=e==Ee||e==r;return!o&&t&&typeof i=="boolean"&&(o=i?de.has(n):me.has(n)),!a&&s&&typeof r=="boolean"&&(a=r?de.has(e):me.has(e)),o&&a}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function at(n,e,t,s){return new $e(n).build(e,t,s)}var Pt="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),R(this,ne(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pt,e.collectedStyles=new Map,e.collectedStyles.set(Pt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(ts())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qt(l).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,ne(e.animation),t),i=Qs(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:X(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:X(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:r,options:X(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let h={};s.easing&&(h.easing=s.easing),o=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===B?s.push(a):t.errors.push(is(a)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,o=[],a=!1,l=!1,h=0,c=e.steps.map(b=>{let P=this._makeStyleAst(b,t),M=P.offset!=null?P.offset:Gs(P.styles),N=0;return M!=null&&(r++,N=P.offset=M),l=l||N<0||N>1,a=a||N0&&r{let M=S>0?P==y?1:S*P:o[P],N=M*T;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=M,s.styles.push(b)}),s}visitReference(e,t){return{type:_.Reference,animation:R(this,ne(e.animation),t),options:X(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:X(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:X(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:X(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Se(e.timings,t.errors,!0);return{type:_.Stagger,animation:R(this,ne(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,_e).replace(/@\w+/g,t=>_e+"-"+t.slice(1)).replace(/:animating/g,qe),[n,e]}function Ws(n){return n?ue({},n):null}var Ve=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Se(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=Se(t,e);return ke(i.duration,i.delay,i.easing)}function X(n){return n?(n=ue({},n),n.params&&(n.params=Ws(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",xs=new RegExp(Xs,"g"),Zs=":leave",Js=new RegExp(Zs,"g");function ht(n,e,t,s,i,r=new Map,o=new Map,a,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,o,a,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,o,a,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let S=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),R(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let o=typeof r=="number"?r:$(oe(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?$(s.duration):null,a=s.delay!=null?$(s.delay):null;return o!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);let o=$(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>R(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return Se(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;a.forwardTime(h*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),R(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},ve={},je=class n{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(xs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),a.push(...h)}return!r&&a.length==0&&o.push(us(t)),a}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},o=ei(e,this._globalTimelineStyles);for(let[a,l]of o){let h=oe(l,r,s);this._pendingStyles.set(a,h),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??B),this._updateStyle(a,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let h=new Map([...this._backFill,...a]);h.forEach((c,u)=>{c===ce?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],o=[...t.values()];if(s){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return lt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",At(a)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let S=new Map(e[u]),y=S.get("offset"),d=t+y*s;S.set("offset",At(d/o)),r.push(S)}s=o,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function At(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,o]of i)t.set(r,o)}),t}function Nt(n,e,t,s,i,r,o,a,l,h,c,u,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:S}}var Fe={},we=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,h,c){let u=[],S=this.ast.options&&this.ast.options.params||Fe,y=a&&a.params||Fe,d=this.buildStyles(s,y,u),g=l&&l.params||Fe,T=this.buildStyles(i,g,u),b=new Set,P=new Map,M=new Map,N=i==="void",Z={params:Vt(g,S),delay:this.ast.options?.delay},q=c?[]:ht(e,t,this.ast.animation,r,o,d,T,Z,h,u),C=0;return q.forEach(k=>{C=Math.max(k.duration+k.delay,C)}),u.length?Nt(t,this._triggerName,s,i,N,d,T,[],[],P,M,C,u):(q.forEach(k=>{let W=k.element,J=O(P,W,new Set);k.preStyleProps.forEach(G=>J.add(G));let ct=O(M,W,new Set);k.postStyleProps.forEach(G=>ct.add(G)),W!==t&&b.add(W)}),Nt(t,this._triggerName,s,i,N,d,T,q,[...b.values()],P,M,C))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=ue({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new we(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new we(n,r,e)}function Dt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ht(this._driver,t,r,nt,ye,new Map,new Map,s,ni,i),o.forEach(c=>{let u=O(a,c.element,new Map);c.postStyleProps.forEach(S=>u.set(S,null))})):(i.push(_s()),o=[]),i.length)throw Ss(i);a.forEach((c,u)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=o.map(c=>{let u=a.get(c.element);return this._buildPlayer(c,new Map,u)}),h=j(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let o=i[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Mt="ng-animate-queued",ri=".ng-animate-queued",Re="ng-animate-disabled",oi=".ng-animate-disabled",ai="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},K="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:o}=r,a=pt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},re="void",Oe=new ae(re),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw vs(s,t);if(s==null||s.length==0)throw Ts(t);if(!di(s))throw ws(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(I(e,fe),I(e,fe+"-"+t),a.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),o=new le(this.id,t,e),a=this._engine.statesByElement.get(e);a||(I(e,fe),I(e,fe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),a.set(t,h),l||(l=Oe),!(h.value===re)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],T=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{x(e,T),Q(e,b)})}return}let S=O(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:o,isFallbackTransition:d}),d||(I(e,Mt),o.onStart(()=>{ee(e,Mt)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let b=T.indexOf(o);b>=0&&T.splice(b,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,_e,!0);s.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,h)=>{if(o.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,re,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let o=r.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,h=s.get(o)||Oe,c=new ae(re),u=new le(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[K];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,o=i.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(pe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!pe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(pe(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return pe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,_e,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,qe,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,oi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Ps(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,o=[],a=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(v=>I(v,p))});let T=[],b=new Set,P=new Set;for(let f=0;fb.add(v)):P.add(m))}let M=new Map,N=Ft(S,Array.from(b));N.forEach((f,m)=>{let p=ye+g++;M.set(m,p),f.forEach(v=>I(v,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(v=>ee(v,p))}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(v=>ee(v,p))}),T.forEach(f=>{this.processLeaveNode(f)})});let Z=[],q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let v=p.player,A=p.element;if(Z.push(v),this.collectedEnterElements.length){let D=A[K];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let he=L.get(p.triggerName);he.value=H,L.set(p.triggerName,he)}}v.destroy();return}}let z=!u||!this.driver.containsElement(u,A),F=M.get(A),V=d.get(A),w=this._buildInstruction(p,s,V,F,z);if(w.errors&&w.errors.length){q.push(w);return}if(z){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}let mt=[];w.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||mt.push(D)}),w.timelines=mt,s.append(A,w.timelines);let Gt={instruction:w,player:v,element:A};o.push(Gt),w.queriedElements.forEach(D=>O(a,D,[]).push(v)),w.preStyleProps.forEach((D,H)=>{if(D.size){let L=l.get(H);L||l.set(H,L=new Set),D.forEach((he,De)=>L.add(De))}}),w.postStyleProps.forEach((D,H)=>{let L=h.get(H);L||h.set(H,L=new Set),D.forEach((he,De)=>L.add(De))})});if(q.length){let f=[];q.forEach(m=>{f.push(As(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let C=new Map,k=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,C))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(v=>{O(C,m,[]).push(v),v.destroy()})});let W=T.filter(f=>Rt(f,l,h)),J=new Map;kt(J,this.driver,P,h,B).forEach(f=>{Rt(f,l,h)&&W.push(f)});let G=new Map;y.forEach((f,m)=>{kt(G,this.driver,new Set(f),l,ce)}),W.forEach(f=>{let m=J.get(f),p=G.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ne=[],ft=[],dt={};o.forEach(f=>{let{element:m,player:p,instruction:v}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),i.push(p);return}let A=dt;if(k.size>1){let F=m,V=[];for(;F=F.parentNode;){let w=k.get(F);if(w){A=w;break}V.push(F)}V.forEach(w=>k.set(w,A))}let z=this._buildAnimation(p.namespaceId,v,C,r,G,J);if(p.setRealPlayer(z),A===dt)Ne.push(p);else{let F=this.playersByElement.get(A);F&&F.length&&(p.parentPlayer=j(F)),i.push(p)}}else x(m,v.fromStyles),p.onDestroy(()=>Q(m,v.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!z.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m)}return T.length=0,Ne.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ne}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==re;a.forEach(h=>{h.queued||!l&&h.triggerName!=i||o.push(h)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=O(s,h,[]);this._getPreviousPlayers(h,c,o,a,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}x(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){let a=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let T=g[K];if(T&&T.removedBeforeQueried)return new U(d.duration,d.delay);let b=g!==l,P=pi((s.get(g)||hi).map(C=>C.getRealPlayer())).filter(C=>{let k=C;return k.element?k.element===g:!1}),M=r.get(g),N=o.get(g),Z=It(this._normalizer,d.keyframes,M,N),q=this._buildPlayer(d,Z,P);if(d.subTimeline&&i&&u.add(g),b){let C=new le(e,a,g);C.setRealPlayer(q),h.push(C)}return q});h.forEach(d=>{O(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Tt));let y=j(S);return y.onDestroy(()=>{c.forEach(d=>ee(d,Tt)),Q(l,t.toStyles)}),u.forEach(d=>{O(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new U(e.duration,e.delay)}},le=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new U,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function pe(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function Ct(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Ct(l)));let o=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let S=e.computeStyle(h,u,i);c.set(u,S),(!S||S.length==0)&&(h[K]=ui,o.push(h))}),n.set(h,c)});let a=0;return t.forEach(l=>Ct(l,r[a++])),o}function Ft(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let h=a.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=o(h),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){j(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var be=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new xe(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,s,i,r){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,a=si(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,o]=St(s),a=i;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[o,a]=St(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Ze=te;function Le(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var Pe=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:ot(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Kt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return qt(e,t,s)}computeStyle(e,t,s){return ot(e,t)}animate(e,t,s,i,r,o=[]){let a=i==0?"both":"forwards",l={duration:s,delay:i,fill:a};r&&(l.easing=r);let h=new Map,c=o.filter(y=>y instanceof Pe);qs(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Ls(t).map(y=>new Map(y));u=zs(e,u,h);let S=yi(e,u);return new Pe(e,u,l,S)}};function Di(n,e,t){return n==="noop"?new be(e,new zt,new Ke,t):new be(e,new Je,new Qe,t)}var Ot=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let o=Array.isArray(t)?wt(t):t,a=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ye,o,a,i,r,l);if(l.length)throw ms(l);return h}},ge="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ge&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ge?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ge){let i=Si(e),r=t.slice(1),o="";return r.charAt(0)!=ge&&([r,o]=Ei(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Lt=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let o=r?.parentNode(i);o&&r.removeChild(o,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new et(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{vt as AnimationDriver,zt as NoopAnimationDriver,Ot as \u0275Animation,be as \u0275AnimationEngine,et as \u0275AnimationRenderer,Lt as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,Ke as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,Pe as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,qs as \u0275allowPreviousPlayerStylesMerge,Ni as \u0275camelCaseToDashCase,Kt as \u0275containsElement,Di as \u0275createEngine,it as \u0275getParentElement,qt as \u0275invokeQuery,Ls as \u0275normalizeKeyframes,Cs as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/envelope/index.html b/EnvelopeGenerator.GeneratorAPI/wwwroot/envelope/index.html new file mode 100644 index 00000000..6abc7a8e --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/wwwroot/envelope/index.html @@ -0,0 +1,16 @@ + + + signFlow + + + + + + + + + signFlow
+ + + \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/index.html b/EnvelopeGenerator.GeneratorAPI/wwwroot/index.html index fa077110..5041ff77 100644 --- a/EnvelopeGenerator.GeneratorAPI/wwwroot/index.html +++ b/EnvelopeGenerator.GeneratorAPI/wwwroot/index.html @@ -1,179 +1,16 @@ - EnvelopeGeneratorUi + signFlow + - + -

Hello, envelope-generator-ui

Congratulations! Your app is running. 🎉

- + signFlow
+ - \ No newline at end of file + \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/login/index.html b/EnvelopeGenerator.GeneratorAPI/wwwroot/login/index.html new file mode 100644 index 00000000..5041ff77 --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/wwwroot/login/index.html @@ -0,0 +1,16 @@ + + + signFlow + + + + + + + + + signFlow
+ + + \ No newline at end of file diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/main-U7N36S7P.js b/EnvelopeGenerator.GeneratorAPI/wwwroot/main-U7N36S7P.js deleted file mode 100644 index e29071f9..00000000 --- a/EnvelopeGenerator.GeneratorAPI/wwwroot/main-U7N36S7P.js +++ /dev/null @@ -1,166 +0,0 @@ -import{$ as ir,A as Ce,Aa as D,B,Ba as et,C as Nt,Ca as mr,D as Xn,Da as vr,E as Yn,Ea as tt,F as Jn,Fa as ce,G as F,Ga as yr,H as Qn,Ha as nt,I as S,Ia as wr,J as C,Ja as rt,K as w,Ka as Me,L as er,La as Rr,M as I,Ma as $t,N as xt,Na as zt,O as b,Oa as Cr,P as f,Pa as br,Q as be,Qa as Vt,R as He,Ra as Sr,S as tr,Sa as Tr,T as J,Ta as O,U as nr,Ua as it,V as Ke,Va as Bt,W as q,Wa as Er,X as rr,Xa as Ie,Y as ae,Ya as Mr,Z as Se,_ as kt,a as d,aa as Ut,b as M,ba as Te,c as Bn,ca as sr,d as qn,da as Lt,e as Gn,ea as or,f as It,fa as Q,g as At,ga as ar,h as X,ha as jt,i as x,ia as Xe,j as V,ja as cr,k,ka as Ee,l as g,la as Ye,m as Re,ma as Ft,n as Wn,na as lr,o as Zn,oa as Je,p as y,pa as Qe,q as Dt,qa as L,r as U,ra as ur,s as Hn,sa as hr,t as Ot,ta as dr,u as Y,ua as _t,v as ie,va as fr,w as se,wa as pr,x as Pt,xa as gr,y as oe,ya as T,z as Kn,za as A}from"./chunk-KPVI7RD6.js";var ot=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),s=i.toLowerCase(),o=r.slice(n+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let s=e.value;if(!s)this.headers.delete(r),this.normalizedNames.delete(r);else{let o=this.headers.get(r);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,o)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(s=>s.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var kr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(kr||{}),qt=class{constructor(e,r=Ur.Ok,n="OK"){this.headers=e.headers||new ot,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}};var at=class t extends qt{constructor(e={}){super(e),this.type=kr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}};var Ur=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Ur||{});var Ui=new I("");var Ir="b",Ar="h",Dr="s",Or="st",Pr="u",Nr="rt",st=new I(""),Li=["GET","HEAD"];function ji(t,e){let p=f(st),{isCacheActive:r}=p,n=Bn(p,["isCacheActive"]),{transferCache:i,method:s}=t;if(!r||s==="POST"&&!n.includePostRequests&&!i||s!=="POST"&&!Li.includes(s)||i===!1||n.filter?.(t)===!1)return e(t);let o=f(Xe),a=_i(t),l=o.get(a,null),c=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(c=i.includeHeaders),l){let{[Ir]:h,[Nr]:R,[Ar]:H,[Dr]:K,[Or]:ye,[Pr]:z}=l,we=h;switch(R){case"arraybuffer":we=new TextEncoder().encode(h).buffer;break;case"blob":we=new Blob([h]);break}let Pi=new ot(H);return g(new at({body:we,headers:Pi,status:K,statusText:ye,url:z}))}let u=Ie(f(Q));return e(t).pipe(S(h=>{h instanceof at&&u&&o.set(a,{[Ir]:h.body,[Ar]:Fi(h.headers,c),[Dr]:h.status,[Or]:h.statusText,[Pr]:h.url||"",[Nr]:t.responseType})}))}function Fi(t,e){if(!e)return{};let r={};for(let n of e){let i=t.getAll(n);i!==null&&(r[n]=i)}return r}function xr(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function _i(t){let{params:e,method:r,responseType:n,url:i}=t,s=xr(e),o=t.serializeBody();o instanceof URLSearchParams?o=xr(o):typeof o!="string"&&(o="");let a=[r,n,i,o,s].join("|"),l=$i(a);return l}function $i(t){let e=0;for(let r of t)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function Lr(t){return[{provide:st,useFactory:()=>(Qe("NgHttpTransferCache"),d({isCacheActive:!0},t))},{provide:Ui,useValue:ji,multi:!0,deps:[Xe,st]},{provide:rt,multi:!0,useFactory:()=>{let e=f(Me),r=f(st);return()=>{Rr(e).then(()=>{r.isCacheActive=!1})}}}]}var Zt=class extends Tr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ht=class t extends Zt{static makeCurrent(){Sr(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=Wi();return r==null?null:Zi(r)}resetBaseElement(){Ae=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Bt(document.cookie,e)}},Ae=null;function Wi(){return Ae=Ae||document.querySelector("base"),Ae?Ae.getAttribute("href"):null}function Zi(t){return new URL(t,document.baseURI).pathname}var Hi=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Kt=new I(""),_r=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,s){return this._findPluginFor(i).addEventListener(n,i,s)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(o=>o.supports(n)),!i)throw new C(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(b(Kt),b(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ct=class{constructor(e){this._doc=e}},Gt="ng-app-id",$r=(()=>{let e=class e{constructor(n,i,s,o={}){this.doc=n,this.appId=i,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ie(o),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(s=>s.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Gt}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(s=>{s.textContent!=null&&i.set(s.textContent,s)}),i}return null}changeUsageCount(n,i){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=i,o.usage}return s.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let s=this.styleNodesInDOM,o=s?.get(i);if(o?.parentNode===n)return s.delete(i),o.removeAttribute(Gt),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Gt,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let s=this.getStyleElement(n,i),o=this.styleRef,a=o.get(i)?.elements;a?a.push(s):o.set(i,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(b(O),b(Lt),b(jt,8),b(Q))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Wt={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/"},Qt=/%COMP%/g,zr="%COMP%",Ki=`_nghost-${zr}`,Xi=`_ngcontent-${zr}`,Yi=!0,Ji=new I("",{providedIn:"root",factory:()=>Yi});function Qi(t){return Xi.replace(Qt,t)}function es(t){return Ki.replace(Qt,t)}function Vr(t,e){return e.map(r=>r.replace(Qt,t))}var lt=(()=>{let e=class e{constructor(n,i,s,o,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Ie(l),this.defaultRenderer=new De(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===be.ShadowDom&&(i=M(d({},i),{encapsulation:be.Emulated}));let s=this.getOrCreateRenderer(n,i);return s instanceof ut?s.applyToHost(n):s instanceof Oe&&s.applyStyles(),s}getOrCreateRenderer(n,i){let s=this.rendererByCompId,o=s.get(i.id);if(!o){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case be.Emulated:o=new ut(c,u,i,this.appId,p,a,l,h);break;case be.ShadowDom:return new Xt(c,u,n,i,a,l,this.nonce,h);default:o=new Oe(c,u,i,p,a,l,h);break}s.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(b(_r),b($r),b(Lt),b(Ji),b(O),b(Q),b(L),b(jt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),De=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Wt[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(jr(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(jr(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new C(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let s=Wt[i];s?e.setAttributeNS(s,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Wt[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Ee.DashCase|Ee.Important)?e.style.setProperty(r,n,i&Ee.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Ee.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=Vt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function jr(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Xt=class extends De{constructor(e,r,n,i,s,o,a,l){super(e,s,o,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Vr(i.id,i.styles);for(let u of c){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Oe=class extends De{constructor(e,r,n,i,s,o,a,l){super(e,s,o,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?Vr(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ut=class extends Oe{constructor(e,r,n,i,s,o,a,l){let c=i+"-"+n.id;super(e,r,n,s,o,a,l,c),this.contentAttr=Qi(c),this.hostAttr=es(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},ts=(()=>{let e=class e extends ct{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,s){return n.addEventListener(i,s,!1),()=>this.removeEventListener(n,i,s)}removeEventListener(n,i,s){return n.removeEventListener(i,s)}};e.\u0275fac=function(i){return new(i||e)(b(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Fr=["alt","control","meta","shift"],ns={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},rs={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},is=(()=>{let e=class e extends ct{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,s){let o=e.parseEventName(i),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vt().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),s=i.shift();if(i.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),Fr.forEach(u=>{let p=i.indexOf(u);p>-1&&(i.splice(p,1),a+=u+".")}),a+=o,i.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let s=ns[n.key]||n.key,o="";return i.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Fr.forEach(a=>{if(a!==s){let l=rs[a];l(n)&&(o+=a+".")}}),o+=s,o===i)}static eventCallback(n,i,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>i(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(b(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Br(t,e){return Cr(d({rootComponent:t},ss(e)))}function ss(t){return{appProviders:[...us,...t?.providers??[]],platformProviders:ls}}function os(){Ht.makeCurrent()}function as(){return new Ut}function cs(){return sr(document),document}var ls=[{provide:Q,useValue:Er},{provide:or,useValue:os,multi:!0},{provide:O,useFactory:cs,deps:[]}];var us=[{provide:nr,useValue:"root"},{provide:Ut,useFactory:as,deps:[]},{provide:Kt,useClass:ts,multi:!0,deps:[O,L,Q]},{provide:Kt,useClass:is,multi:!0,deps:[O]},lt,$r,_r,{provide:Je,useExisting:lt},{provide:Mr,useClass:Hi,deps:[]},[]];var qr=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(b(O))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Yt=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t}(Yt||{});function Gr(...t){let e=[],r=new Set,n=r.has(Yt.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:s}of t)r.add(s),i.length&&e.push(i);return J([[],br(),r.has(Yt.NoHttpTransferCache)||n?[]:Lr({}),e])}var m="primary",Ge=Symbol("RouteTitle"),sn=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function fe(t){return new sn(t)}function ds(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===i)}else return t===e}function Jr(t){return t.length>0?t[t.length-1]:null}function Z(t){return Wn(t)?t:wr(t)?k(Promise.resolve(t)):g(t)}var ps={exact:ei,subset:ti},Qr={exact:gs,subset:ms,ignored:()=>!0};function Wr(t,e,r){return ps[r.paths](t.root,e.root,r.matrixParams)&&Qr[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function gs(t,e){return _(t,e)}function ei(t,e,r){if(!te(t.segments,e.segments)||!ft(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ei(t.children[n],e.children[n],r))return!1;return!0}function ms(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Yr(t[r],e[r]))}function ti(t,e,r){return ni(t,e,e.segments,r)}function ni(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!te(i,r)||e.hasChildren()||!ft(i,r,n))}else if(t.segments.length===r.length){if(!te(t.segments,r)||!ft(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!ti(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),s=r.slice(t.segments.length);return!te(t.segments,i)||!ft(t.segments,i,n)||!t.children[m]?!1:ni(t.children[m],e,s,n)}}function ft(t,e,r){return e.every((n,i)=>Qr[r](t[i].parameters,n.parameters))}var G=class{constructor(e=new v([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=fe(this.queryParams),this._queryParamMap}toString(){return ws.serialize(this)}},v=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pt(this)}},ee=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=fe(this.parameters),this._parameterMap}toString(){return ii(this)}};function vs(t,e){return te(t,e)&&t.every((r,n)=>_(r.parameters,e[n].parameters))}function te(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function ys(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===m&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==m&&(r=r.concat(e(i,n)))}),r}var Nn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>new mt,providedIn:"root"});let t=e;return t})(),mt=class{parse(e){let r=new cn(e);return new G(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Pe(e.root,!0)}`,n=bs(e.queryParams),i=typeof e.fragment=="string"?`#${Rs(e.fragment)}`:"";return`${r}${n}${i}`}},ws=new mt;function pt(t){return t.segments.map(e=>ii(e)).join("/")}function Pe(t,e){if(!t.hasChildren())return pt(t);if(e){let r=t.children[m]?Pe(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==m&&n.push(`${i}:${Pe(s,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=ys(t,(n,i)=>i===m?[Pe(t.children[m],!1)]:[`${i}:${Pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${pt(t)}/${r[0]}`:`${pt(t)}/(${r.join("//")})`}}function ri(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ht(t){return ri(t).replace(/%3B/gi,";")}function Rs(t){return encodeURI(t)}function an(t){return ri(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gt(t){return decodeURIComponent(t)}function Zr(t){return gt(t.replace(/\+/g,"%20"))}function ii(t){return`${an(t.path)}${Cs(t.parameters)}`}function Cs(t){return Object.entries(t).map(([e,r])=>`;${an(e)}=${an(r)}`).join("")}function bs(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${ht(r)}=${ht(i)}`).join("&"):`${ht(r)}=${ht(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Ss=/^[^\/()?;#]+/;function en(t){let e=t.match(Ss);return e?e[0]:""}var Ts=/^[^\/()?;=#]+/;function Es(t){let e=t.match(Ts);return e?e[0]:""}var Ms=/^[^=?&#]+/;function Is(t){let e=t.match(Ms);return e?e[0]:""}var As=/^[^&#]+/;function Ds(t){let e=t.match(As);return e?e[0]:""}var cn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[m]=new v(e,r)),n}parseSegment(){let e=en(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new ee(gt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Es(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=en(this.remaining);i&&(n=i,this.capture(n))}e[gt(r)]=gt(n)}parseQueryParam(e){let r=Is(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Ds(this.remaining);o&&(n=o,this.capture(n))}let i=Zr(r),s=Zr(n);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=en(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();r[s]=Object.keys(o).length===1?o[m]:new v([],o),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}};function si(t){return t.segments.length>0?new v([],{[m]:t}):t}function oi(t){let e={};for(let[n,i]of Object.entries(t.children)){let s=oi(i);if(n===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let r=new v(t.segments,e);return Os(r)}function Os(t){if(t.numberOfChildren===1&&t.children[m]){let e=t.children[m];return new v(t.segments.concat(e.segments),e.children)}return t}function pe(t){return t instanceof G}function Ps(t,e,r=null,n=null){let i=ai(t);return ci(i,e,r,n)}function ai(t){let e;function r(s){let o={};for(let l of s.children){let c=r(l);o[l.outlet]=c}let a=new v(s.url,o);return s===t&&(e=a),a}let n=r(t.root),i=si(n);return e??i}function ci(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return tn(i,i,i,r,n);let s=Ns(e);if(s.toRoot())return tn(i,i,new v([],{}),r,n);let o=xs(s,i,t),a=o.processChildren?ke(o.segmentGroup,o.index,s.commands):ui(o.segmentGroup,o.index,s.commands);return tn(i,o.segmentGroup,a,r,n)}function vt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function je(t){return typeof t=="object"&&t!=null&&t.outlets}function tn(t,e,r,n,i){let s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;t===e?o=r:o=li(t,e,r);let a=si(oi(o));return new G(a,s,i)}function li(t,e,r){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===e?n[i]=r:n[i]=li(s,e,r)}),new v(t.segments,n)}var yt=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&vt(n[0]))throw new C(4003,!1);let i=n.find(je);if(i&&i!==Jr(n))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ns(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new yt(!0,0,t);let e=0,r=!1,n=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new yt(r,e,n)}var he=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function xs(t,e,r){if(t.isAbsolute)return new he(e,!0,0);if(!r)return new he(e,!1,NaN);if(r.parent===null)return new he(r,!0,0);let n=vt(t.commands[0])?0:1,i=r.segments.length-1+n;return ks(r,i,t.numberOfDoubleDots)}function ks(t,e,r){let n=t,i=e,s=r;for(;s>i;){if(s-=i,n=n.parent,!n)throw new C(4005,!1);i=n.segments.length}return new he(n,!1,i-s)}function Us(t){return je(t[0])?t[0].outlets:{[m]:t}}function ui(t,e,r){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return ke(t,e,r);let n=Ls(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexs!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=ke(t.children[m],e,r);return new v(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=ui(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new v(t.segments,i)}}function Ls(t,e,r){let n=0,i=e,s={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return s;let o=t.segments[i],a=r[n];if(je(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Kr(l,c,o))return s;n+=2}else{if(!Kr(l,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function ln(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=ln(new v([],{}),0,n))}),e}function Hr(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Kr(t,e,r){return t==r.path&&_(e,r.parameters)}var Ue="imperative",E=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(E||{}),j=class{constructor(e,r){this.id=e,this.url=r}},Fe=class extends j{constructor(e,r,n="imperative",i=null){super(e,r),this.type=E.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ne=class extends j{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=E.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},N=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(N||{}),un=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(un||{}),W=class extends j{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=E.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},re=class extends j{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=E.NavigationSkipped}},_e=class extends j{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=E.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wt=class extends j{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=E.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hn=class extends j{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=E.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dn=class extends j{constructor(e,r,n,i,s){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=E.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},fn=class extends j{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=E.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pn=class extends j{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=E.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class{constructor(e){this.route=e,this.type=E.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mn=class{constructor(e){this.route=e,this.type=E.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vn=class{constructor(e){this.snapshot=e,this.type=E.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yn=class{constructor(e){this.snapshot=e,this.type=E.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wn=class{constructor(e){this.snapshot=e,this.type=E.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rn=class{constructor(e){this.snapshot=e,this.type=E.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var $e=class{},ze=class{constructor(e){this.url=e}};var Cn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Et,this.attachRef=null}},Et=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let s=this.getOrCreateContext(n);s.outlet=i,this.contexts.set(n,s)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Cn,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=bn(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=bn(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Sn(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Sn(e,this._root).map(r=>r.value)}};function bn(t,e){if(t===e.value)return e;for(let r of e.children){let n=bn(t,r);if(n)return n}return null}function Sn(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Sn(t,r);if(n.length)return n.unshift(e),n}return[]}var P=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ue(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Ct=class extends Rt{constructor(e,r){super(e),this.snapshot=r,kn(this,e)}toString(){return this.snapshot.toString()}};function hi(t){let e=Fs(t),r=new x([new ee("",{})]),n=new x({}),i=new x({}),s=new x({}),o=new x(""),a=new ge(r,n,s,o,i,m,t,e.root);return a.snapshot=e.root,new Ct(new P(a,[]),e)}function Fs(t){let e={},r={},n={},i="",s=new Ve([],e,n,i,r,m,t,null,{});return new bt("",new P(s,[]))}var ge=class{constructor(e,r,n,i,s,o,a,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(y(c=>c[Ge]))??g(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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.params.pipe(y(e=>fe(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(e=>fe(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xn(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:d(d({},e.params),t.params),data:d(d({},e.data),t.data),resolve:d(d(d(d({},t.data),e.data),i?.data),t._resolvedData)}:n={params:d({},t.params),data:d({},t.data),resolve:d(d({},t.data),t._resolvedData??{})},i&&fi(i)&&(n.resolve[Ge]=i.title),n}var Ve=class{get title(){return this.data?.[Ge]}constructor(e,r,n,i,s,o,a,l,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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??=fe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=fe(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},bt=class extends Rt{constructor(e,r){super(r),this.url=e,kn(this,r)}toString(){return di(this._root)}};function kn(t,e){e.value._routerState=t,e.children.forEach(r=>kn(t,r))}function di(t){let e=t.children.length>0?` { ${t.children.map(di).join(", ")} } `:"";return`${t.value}${e}`}function nn(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,_(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),_(e.params,r.params)||t.paramsSubject.next(r.params),fs(e.url,r.url)||t.urlSubject.next(r.url),_(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Tn(t,e){let r=_(t.params,e.params)&&vs(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Tn(t.parent,e.parent))}function fi(t){return typeof t.title=="string"||t.title===null}var Un=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Te,this.deactivateEvents=new Te,this.attachEvents=new Te,this.detachEvents=new Te,this.parentContexts=f(Et),this.location=f(ur),this.changeDetector=f(zt),this.environmentInjector=f(Ke),this.inputBinder=f(Ln,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:s}=n.name;if(i)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new En(n,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=tr({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[rr]});let t=e;return t})(),En=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===ge?this.route:e===Et?this.childContexts:this.parent.get(e,r)}},Ln=new I("");function _s(t,e,r){let n=Be(t,e._root,r?r._root:void 0);return new Ct(n,e)}function Be(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=$s(t,e,r);return new P(n,i)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>Be(t,a)),o}}let n=zs(e.value),i=e.children.map(s=>Be(t,s));return new P(n,i)}}function $s(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Be(t,n,i);return Be(t,n)})}function zs(t){return new ge(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var pi="ngNavigationCancelingError";function gi(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=pe(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=mi(!1,N.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function mi(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[pi]=!0,r.cancellationCode=e,r}function Vs(t){return vi(t)&&pe(t.url)}function vi(t){return!!t&&t[pi]}var Bs=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],standalone:!0,features:[tt],decls:1,vars:0,template:function(i,s){i&1&&D(0,"router-outlet")},dependencies:[Un],encapsulation:2});let t=e;return t})();function qs(t,e){return t.providers&&!t._injector&&(t._injector=dr(t.providers,e,`Route: ${t.path}`)),t._injector??e}function jn(t){let e=t.children&&t.children.map(jn),r=e?M(d({},t),{children:e}):d({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==m&&(r.component=Bs),r}function $(t){return t.outlet||m}function Gs(t,e){let r=t.filter(n=>$(n)===e);return r.push(...t.filter(n=>$(n)!==e)),r}function We(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Ws=(t,e,r,n)=>y(i=>(new Mn(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Mn=class{constructor(e,r,n,i,s){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),nn(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=ue(r);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,r,n){let i=e.value,s=r?r.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,r,o.children)}else this.deactivateChildRoutes(e,r,n);else s&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,s=ue(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,s=ue(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=ue(r);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Rn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new yn(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,s=r?r.value:null;if(nn(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,o.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),nn(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=We(i.snapshot);o.attachRef=null,o.route=i,o.injector=a,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},St=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},de=class{constructor(e,r){this.component=e,this.route=r}};function Zs(t,e,r){let n=t._root,i=e?e._root:null;return Ne(n,i,r,[n.value])}function Hs(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function ve(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!er(t)?t:e.get(t):n}function Ne(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ue(e);return t.children.forEach(o=>{Ks(o,s[o.value.outlet],r,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Le(a,r.getContext(o),i)),i}function Ks(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=Xs(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new St(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ne(t,e,a?a.children:null,n,i):Ne(t,e,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new de(a.outlet.component,o))}else o&&Le(e,a,i),i.canActivateChecks.push(new St(n)),s.component?Ne(t,null,a?a.children:null,n,i):Ne(t,null,r,n,i);return i}function Xs(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!te(t.url,e.url);case"pathParamsOrQueryParamsChange":return!te(t.url,e.url)||!_(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tn(t,e)||!_(t.queryParams,e.queryParams);case"paramsChange":default:return!Tn(t,e)}}function Le(t,e,r){let n=ue(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?e?Le(o,e.children.getContext(s),r):Le(o,null,r):Le(o,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new de(e.outlet.component,i)):r.canDeactivateChecks.push(new de(null,i)):r.canDeactivateChecks.push(new de(null,i))}function Ze(t){return typeof t=="function"}function Ys(t){return typeof t=="boolean"}function Js(t){return t&&Ze(t.canLoad)}function Qs(t){return t&&Ze(t.canActivate)}function eo(t){return t&&Ze(t.canActivateChild)}function to(t){return t&&Ze(t.canDeactivate)}function no(t){return t&&Ze(t.canMatch)}function yi(t){return t instanceof Zn||t?.name==="EmptyError"}var dt=Symbol("INITIAL_VALUE");function me(){return F(t=>Dt(t.map(e=>e.pipe(oe(1),Jn(dt)))).pipe(y(e=>{for(let r of e)if(r!==!0){if(r===dt)return dt;if(r===!1||r instanceof G)return r}return!0}),Y(e=>e!==dt),oe(1)))}function ro(t,e){return U(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=r;return o.length===0&&s.length===0?g(M(d({},r),{guardsResult:!0})):io(o,n,i,t).pipe(U(a=>a&&Ys(a)?so(n,s,t,e):g(a)),y(a=>M(d({},r),{guardsResult:a})))})}function io(t,e,r,n){return k(t).pipe(U(i=>uo(i.component,i.route,r,e,n)),B(i=>i!==!0,!0))}function so(t,e,r,n){return k(e).pipe(se(i=>Hn(ao(i.route.parent,n),oo(i.route,n),lo(t,i.path,r),co(t,i.route,r))),B(i=>i!==!0,!0))}function oo(t,e){return t!==null&&e&&e(new wn(t)),g(!0)}function ao(t,e){return t!==null&&e&&e(new vn(t)),g(!0)}function co(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let i=n.map(s=>Ot(()=>{let o=We(e)??r,a=ve(s,o),l=Qs(a)?a.canActivate(e,t):q(o,()=>a(e,t));return Z(l).pipe(B())}));return g(i).pipe(me())}function lo(t,e,r){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Hs(o)).filter(o=>o!==null).map(o=>Ot(()=>{let a=o.guards.map(l=>{let c=We(o.node)??r,u=ve(l,c),p=eo(u)?u.canActivateChild(n,t):q(c,()=>u(n,t));return Z(p).pipe(B())});return g(a).pipe(me())}));return g(s).pipe(me())}function uo(t,e,r,n,i){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return g(!0);let o=s.map(a=>{let l=We(e)??i,c=ve(a,l),u=to(c)?c.canDeactivate(t,e,r,n):q(l,()=>c(t,e,r,n));return Z(u).pipe(B())});return g(o).pipe(me())}function ho(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return g(!0);let s=i.map(o=>{let a=ve(o,t),l=Js(a)?a.canLoad(e,r):q(t,()=>a(e,r));return Z(l)});return g(s).pipe(me(),wi(n))}function wi(t){return Gn(S(e=>{if(pe(e))throw gi(t,e)}),y(e=>e===!0))}function fo(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return g(!0);let s=i.map(o=>{let a=ve(o,t),l=no(a)?a.canMatch(e,r):q(t,()=>a(e,r));return Z(l)});return g(s).pipe(me(),wi(n))}var qe=class{constructor(e){this.segmentGroup=e||null}},Tt=class extends Error{constructor(e){super(),this.urlTree=e}};function le(t){return Re(new qe(t))}function po(t){return Re(new C(4e3,!1))}function go(t){return Re(mi(!1,N.GuardRejected))}var In=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return g(n);if(i.numberOfChildren>1||!i.children[m])return po(e.redirectTo);i=i.children[m]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new Tt(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let s=this.createSegmentGroup(e,r.root,n,i);return new G(s,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[i]=r[a]}else n[i]=s}),n}createSegmentGroup(e,r,n,i){let s=this.createSegments(e,r.segments,n,i),o={};return Object.entries(r.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(e,l,n,i)}),new v(s,o)}createSegments(e,r,n,i){return r.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},An={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mo(t,e,r,n,i){let s=Fn(t,e,r);return s.matched?(n=qs(e,n),fo(n,e,r,i).pipe(y(o=>o===!0?s:d({},An)))):g(s)}function Fn(t,e,r){if(e.path==="**")return vo(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?d({},An):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||ds)(r,t,e);if(!i)return d({},An);let s={};Object.entries(i.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=i.consumed.length>0?d(d({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function vo(t){return{matched:!0,parameters:t.length>0?Jr(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Xr(t,e,r,n){return r.length>0&&Ro(t,r,n)?{segmentGroup:new v(e,wo(n,new v(r,t.children))),slicedSegments:[]}:r.length===0&&Co(t,r,n)?{segmentGroup:new v(t.segments,yo(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new v(t.segments,t.children),slicedSegments:r}}function yo(t,e,r,n){let i={};for(let s of r)if(Mt(t,e,s)&&!n[$(s)]){let o=new v([],{});i[$(s)]=o}return d(d({},n),i)}function wo(t,e){let r={};r[m]=e;for(let n of t)if(n.path===""&&$(n)!==m){let i=new v([],{});r[$(n)]=i}return r}function Ro(t,e,r){return r.some(n=>Mt(t,e,n)&&$(n)!==m)}function Co(t,e,r){return r.some(n=>Mt(t,e,n))}function Mt(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function bo(t,e,r,n){return $(t)!==n&&(n===m||!Mt(e,r,t))?!1:Fn(e,t,r).matched}function So(t,e,r){return e.length===0&&!t.children[r]}var Dn=class{};function To(t,e,r,n,i,s,o="emptyOnly"){return new On(t,e,r,n,i,o,s).recognize()}var Eo=31,On=class{constructor(e,r,n,i,s,o,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new In(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new C(4002,`'${e.segmentGroup}'`)}recognize(){let e=Xr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(y(r=>{let n=new Ve([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),i=new P(n,r),s=new bt("",i),o=Ps(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(ie(n=>{if(n instanceof Tt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof qe?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=xn(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(y(s=>s instanceof P?[s]:[]))}processChildren(e,r,n){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return k(i).pipe(se(s=>{let o=n.children[s],a=Gs(r,s);return this.processSegmentGroup(e,a,o,s)}),Yn((s,o)=>(s.push(...o),s)),Pt(null),Xn(),U(s=>{if(s===null)return le(n);let o=Ri(s);return Mo(o),g(o)}))}processSegment(e,r,n,i,s,o){return k(r).pipe(se(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,s,o).pipe(ie(l=>{if(l instanceof qe)return g(null);throw l}))),B(a=>!!a),ie(a=>{if(yi(a))return So(n,i,s)?g(new Dn):le(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,s,o,a){return bo(n,i,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,s,o):le(i):le(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,s,o){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=Fn(r,i,s);if(!a)return le(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Eo&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(U(h=>this.processSegment(e,n,r,h.concat(u),o,!1)))}matchSegmentAgainstRoute(e,r,n,i,s){let o=mo(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),o.pipe(F(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(F(({routes:l})=>{let c=n._loadedInjector??e,{consumedSegments:u,remainingSegments:p,parameters:h}=a,R=new Ve(u,h,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Ao(n),$(n),n.component??n._loadedComponent??null,n,Do(n)),{segmentGroup:H,slicedSegments:K}=Xr(r,u,p,l);if(K.length===0&&H.hasChildren())return this.processChildren(c,l,H).pipe(y(z=>z===null?null:new P(R,z)));if(l.length===0&&K.length===0)return g(new P(R,[]));let ye=$(n)===s;return this.processSegment(c,l,H,K,ye?m:s,!0).pipe(y(z=>new P(R,z instanceof P?[z]:[])))}))):le(r)))}getChildConfig(e,r,n){return r.children?g({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?g({routes:r._loadedRoutes,injector:r._loadedInjector}):ho(e,r,n,this.urlSerializer).pipe(U(i=>i?this.configLoader.loadChildren(e,r).pipe(S(s=>{r._loadedRoutes=s.routes,r._loadedInjector=s.injector})):go(r))):g({routes:[],injector:e})}};function Mo(t){t.sort((e,r)=>e.value.outlet===m?-1:r.value.outlet===m?1:e.value.outlet.localeCompare(r.value.outlet))}function Io(t){let e=t.value.routeConfig;return e&&e.path===""}function Ri(t){let e=[],r=new Set;for(let n of t){if(!Io(n)){e.push(n);continue}let i=e.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Ri(n.children);e.push(new P(n.value,i))}return e.filter(n=>!r.has(n))}function Ao(t){return t.data||{}}function Do(t){return t.resolve||{}}function Oo(t,e,r,n,i,s){return U(o=>To(t,e,r,n,o.extractedUrl,i,s).pipe(y(({state:a,tree:l})=>M(d({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function Po(t,e){return U(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return g(r);let s=new Set(i.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of Ci(l))o.add(c);let a=0;return k(o).pipe(se(l=>s.has(l)?No(l,n,t,e):(l.data=xn(l,l.parent,t).resolve,g(void 0))),S(()=>a++),Nt(1),U(l=>a===o.size?g(r):V))})}function Ci(t){let e=t.children.map(r=>Ci(r)).flat();return[t,...e]}function No(t,e,r,n){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!fi(i)&&(s[Ge]=i.title),xo(s,t,e,n).pipe(y(o=>(t._resolvedData=o,t.data=xn(t,t.parent,r).resolve,null)))}function xo(t,e,r,n){let i=on(t);if(i.length===0)return g({});let s={};return k(i).pipe(U(o=>ko(t[o],e,r,n).pipe(B(),S(a=>{s[o]=a}))),Nt(1),Kn(s),ie(o=>yi(o)?V:Re(o)))}function ko(t,e,r,n){let i=We(e)??n,s=ve(t,i),o=s.resolve?s.resolve(e,r):q(i,()=>s(e,r));return Z(o)}function rn(t){return F(e=>{let r=t(e);return r?k(r).pipe(y(()=>e)):g(e)})}var bi=(()=>{let e=class e{buildTitle(n){let i,s=n.root;for(;s!==void 0;)i=this.getResolvedTitleForRoute(s)??i,s=s.children.find(o=>o.outlet===m);return i}getResolvedTitleForRoute(n){return n.data[Ge]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>f(Uo),providedIn:"root"});let t=e;return t})(),Uo=(()=>{let e=class e extends bi{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(b(qr))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_n=new I("",{providedIn:"root",factory:()=>({})}),$n=new I(""),Lo=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f($t)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return g(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Z(n.loadComponent()).pipe(y(Si),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Ce(()=>{this.componentLoaders.delete(n)})),s=new At(i,()=>new X).pipe(It());return this.componentLoaders.set(n,s),s}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return g({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=jo(i,this.compiler,n,this.onLoadEndListener).pipe(Ce(()=>{this.childrenLoaders.delete(i)})),a=new At(o,()=>new X).pipe(It());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jo(t,e,r,n){return Z(t.loadChildren()).pipe(y(Si),U(i=>i instanceof hr||Array.isArray(i)?g(i):k(e.compileModuleAsync(i))),y(i=>{n&&n(t);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(r).injector,o=s.get($n,[],{optional:!0,self:!0}).flat()),{routes:o.map(jn),injector:s}}))}function Fo(t){return t&&typeof t=="object"&&"default"in t}function Si(t){return Fo(t)?t.default:t}var zn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>f(_o),providedIn:"root"});let t=e;return t})(),_o=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$o=new I("");var zo=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new X,this.transitionAbortSubject=new X,this.configLoader=f(Lo),this.environmentInjector=f(Ke),this.urlSerializer=f(Nn),this.rootContexts=f(Et),this.location=f(it),this.inputBindingEnabled=f(Ln,{optional:!0})!==null,this.titleStrategy=f(bi),this.options=f(_n,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(zn),this.createViewTransition=f($o,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let n=s=>this.events.next(new gn(s)),i=s=>this.events.next(new mn(s));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(M(d(d({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,s){return this.transitions=new x({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ue,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),y(o=>M(d({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),F(o=>{let a=!1,l=!1;return g(o).pipe(F(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",N.SupersededByNewNavigation),V;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?M(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&p!=="reload"){let h="";return this.events.next(new re(c.id,this.urlSerializer.serialize(c.rawUrl),h,un.IgnoredSameUrlNavigation)),c.resolve(null),V}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return g(c).pipe(F(h=>{let R=this.transitions?.getValue();return this.events.next(new Fe(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),R!==this.transitions?.getValue()?V:Promise.resolve(h)}),Oo(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),S(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=M(d({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let R=new wt(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:R,source:H,restoredState:K,extras:ye}=c,z=new Fe(h,this.urlSerializer.serialize(R),H,K);this.events.next(z);let we=hi(this.rootComponentType).snapshot;return this.currentTransition=o=M(d({},c),{targetSnapshot:we,urlAfterRedirects:R,extras:M(d({},ye),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=R,g(o)}else{let h="";return this.events.next(new re(c.id,this.urlSerializer.serialize(c.extractedUrl),h,un.IgnoredByUrlHandlingStrategy)),c.resolve(null),V}}),S(c=>{let u=new hn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),y(c=>(this.currentTransition=o=M(d({},c),{guards:Zs(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),ro(this.environmentInjector,c=>this.events.next(c)),S(c=>{if(o.guardsResult=c.guardsResult,pe(c.guardsResult))throw gi(this.urlSerializer,c.guardsResult);let u=new dn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Y(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",N.GuardRejected),!1)),rn(c=>{if(c.guards.canActivateChecks.length)return g(c).pipe(S(u=>{let p=new fn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),F(u=>{let p=!1;return g(u).pipe(Po(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(u,"",N.NoDataFromResolver)}}))}),S(u=>{let p=new pn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}))}),rn(c=>{let u=p=>{let h=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(p.routeConfig).pipe(S(R=>{p.component=R}),y(()=>{})));for(let R of p.children)h.push(...u(R));return h};return Dt(u(c.targetSnapshot.root)).pipe(Pt(null),oe(1))}),rn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,p=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return p?k(p).pipe(y(()=>o)):g(o)}),y(c=>{let u=_s(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=M(d({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),S(()=>{this.events.next(new $e)}),Ws(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),oe(1),S({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ne(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Qn(this.transitionAbortSubject.pipe(S(c=>{throw c}))),Ce(()=>{!a&&!l&&this.cancelNavigationTransition(o,"",N.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ie(c=>{if(l=!0,vi(c))this.events.next(new W(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),Vs(c)?this.events.next(new ze(c.url)):o.resolve(!1);else{this.events.next(new _e(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return V}))}))}cancelNavigationTransition(n,i,s){let o=new W(n.id,this.urlSerializer.serialize(n.extractedUrl),i,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Vo(t){return t!==Ue}var Bo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>f(qo),providedIn:"root"});let t=e;return t})(),Pn=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},qo=(()=>{let e=class e extends Pn{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=kt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ti=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>f(Go),providedIn:"root"});let t=e;return t})(),Go=(()=>{let e=class e extends Ti{constructor(){super(...arguments),this.location=f(it),this.urlSerializer=f(Nn),this.options=f(_n,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(zn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new G,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=hi(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Fe)this.stateMemento=this.createStateMemento();else if(n instanceof re)this.rawUrlTree=i.initialUrl;else if(n instanceof wt){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(s,i)}}else n instanceof $e?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof W&&(n.code===N.GuardRejected||n.code===N.NoDataFromResolver)?this.restoreHistory(i):n instanceof _e?this.restoreHistory(i,!0):n instanceof ne&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl){let o=this.browserPageId,a=d(d({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(s,"",a)}else{let o=d(d({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=kt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xe=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xe||{});function Wo(t,e){t.events.pipe(Y(r=>r instanceof ne||r instanceof W||r instanceof _e||r instanceof re),y(r=>r instanceof ne||r instanceof re?xe.COMPLETE:(r instanceof W?r.code===N.Redirect||r.code===N.SupersededByNewNavigation:!1)?xe.REDIRECTING:xe.FAILED),Y(r=>r!==xe.REDIRECTING),oe(1)).subscribe(()=>{e()})}function Zo(t){throw t}var Ho={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ko={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ei=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(nt),this.stateManager=f(Ti),this.options=f(_n,{optional:!0})||{},this.pendingTasks=f(_t),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(zo),this.urlSerializer=f(Nn),this.location=f(it),this.urlHandlingStrategy=f(zn),this._events=new X,this.errorHandler=this.options.errorHandler||Zo,this.navigated=!1,this.routeReuseStrategy=f(Bo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f($n,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Ln,{optional:!0}),this.eventsSubscription=new qn,this.isNgZoneEnabled=f(L)instanceof L&&L.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof W&&i.code!==N.Redirect&&i.code!==N.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ne)this.navigated=!0;else if(i instanceof ze){let a=this.urlHandlingStrategy.merge(i.url,s.currentRawUrl),l={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Vo(s.source)};this.scheduleNavigation(a,Ue,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Yo(i)&&this._events.next(i)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=d({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(jn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a,p=null;switch(l){case"merge":p=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let h;try{let R=s?s.snapshot:this.routerState.snapshot.root;h=ai(R)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return ci(h,n,p,u??null)}navigateByUrl(n,i={skipLocationChange:!1}){let s=pe(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Ue,null,i)}navigate(n,i={skipLocationChange:!1}){return Xo(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let s;if(i===!0?s=d({},Ho):i===!1?s=d({},Ko):s=i,pe(n))return Wr(this.currentUrlTree,n,s);let o=this.parseUrl(n);return Wr(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((i,[s,o])=>(o!=null&&(i[s]=o),i),{})}scheduleNavigation(n,i,s,o,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((h,R)=>{l=h,c=R});let p=this.pendingTasks.add();return Wo(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Xo(t){for(let e=0;er.\u0275providers)])}function Qo(t){return t.routerState.root}function ea(){let t=f(ir);return e=>{let r=t.get(Me);if(e!==r.components[0])return;let n=t.get(Ei),i=t.get(ta);t.get(na)===1&&n.initialNavigation(),t.get(ra,null,xt.Optional)?.setUpPreloading(),t.get(Jo,null,xt.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ta=new I("",{factory:()=>new X}),na=new I("",{providedIn:"root",factory:()=>1});var ra=new I("");var Ii=[];var ia="@",sa=(()=>{let e=class e{constructor(n,i,s,o,a){this.doc=n,this.delegate=i,this.zone=s,this.animationType=o,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=f(lr,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-NALQ2D3H.js")).catch(i=>{throw new C(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:s})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let o=new s(this.delegate,this._engine,this.zone);return this.delegate=o,o})}createRenderer(n,i){let s=this.delegate.createRenderer(n,i);if(s.\u0275type===0)return s;typeof s.throwOnSyntheticProps=="boolean"&&(s.throwOnSyntheticProps=!1);let o=new Vn(s);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let l=a.createRenderer(n,i);o.use(l)}).catch(a=>{o.use(s)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};e.\u0275fac=function(i){Ft()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Vn=class{constructor(e){this.delegate=e,this.replay=[],this.\u0275type=1}use(e){if(this.delegate=e,this.replay!==null){for(let r of this.replay)r(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,r){this.delegate.appendChild(e,r)}insertBefore(e,r,n,i){this.delegate.insertBefore(e,r,n,i)}removeChild(e,r,n){this.delegate.removeChild(e,r,n)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,n,i){this.delegate.setAttribute(e,r,n,i)}removeAttribute(e,r,n){this.delegate.removeAttribute(e,r,n)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,n,i){this.delegate.setStyle(e,r,n,i)}removeStyle(e,r,n){this.delegate.removeStyle(e,r,n)}setProperty(e,r,n){this.shouldReplay(r)&&this.replay.push(i=>i.setProperty(e,r,n)),this.delegate.setProperty(e,r,n)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,n){return this.shouldReplay(r)&&this.replay.push(i=>i.listen(e,r,n)),this.delegate.listen(e,r,n)}shouldReplay(e){return this.replay!==null&&e.startsWith(ia)}};function Ai(t="animations"){return Qe("NgAsyncAnimations"),J([{provide:Je,useFactory:(e,r,n)=>new sa(e,r,n,t),deps:[O,lt,L]},{provide:ar,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Di={providers:[Mi(Ii),Gr(),Ai()]};var oa=(t,e)=>e.title,aa=()=>({title:"Explore the Docs",link:"https://angular.dev"}),ca=()=>({title:"Learn with Tutorials",link:"https://angular.dev/tutorials"}),la=()=>({title:"CLI Docs",link:"https://angular.dev/tools/cli"}),ua=()=>({title:"Angular Language Service",link:"https://angular.dev/tools/language-service"}),ha=()=>({title:"Angular DevTools",link:"https://angular.dev/tools/devtools"}),da=(t,e,r,n,i)=>[t,e,r,n,i];function fa(t,e){if(t&1&&(T(0,"a",21)(1,"span"),et(2),A(),ae(),T(3,"svg",32),D(4,"path",33),A()()),t&2){let r=e.$implicit;fr("href",r.link,cr),Ye(2),mr(r.title)}}var Oi=(()=>{let e=class e{constructor(){this.title="envelope-generator-ui"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=He({type:e,selectors:[["app-root"]],standalone:!0,features:[tt],decls:39,vars:12,consts:[[1,"main"],[1,"content"],[1,"left-side"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 982 239","fill","none",1,"angular-logo"],["clip-path","url(#a)"],["fill","url(#b)","d","M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5.318 6.137 3.518 10.964 8.673 14.319 15.382 3.437 6.71 5.074 14.81 4.992 24.383v76.175h-28.23v-71.92c0-8.019-2.046-14.237-6.219-18.819-4.173-4.5-9.819-6.791-17.102-6.791-4.91 0-9.328 1.063-13.174 3.272-3.846 2.128-6.792 5.237-9.001 9.328-2.046 4.009-3.191 8.918-3.191 14.728ZM589.233 239c-10.147 0-18.82-1.391-26.103-4.091-7.282-2.7-13.092-6.382-17.511-10.964-4.418-4.582-7.528-9.655-9.164-15.219l25.448-6.136c1.145 2.372 2.782 4.663 4.991 6.954 2.209 2.291 5.155 4.255 8.837 5.81 3.683 1.554 8.428 2.291 14.074 2.291 8.019 0 14.647-1.964 19.884-5.81 5.237-3.845 7.856-10.227 7.856-19.064v-22.665h-1.391c-1.473 2.946-3.601 5.892-6.383 9.001-2.782 3.109-6.464 5.645-10.965 7.691-4.582 2.046-10.228 3.109-17.101 3.109-9.165 0-17.511-2.209-25.039-6.545-7.446-4.337-13.42-10.883-17.757-19.474-4.418-8.673-6.628-19.473-6.628-32.565 0-13.091 2.21-24.301 6.628-33.383 4.419-9.082 10.311-15.955 17.839-20.7 7.528-4.746 15.874-7.037 25.039-7.037 7.037 0 12.846 1.145 17.347 3.518 4.582 2.373 8.182 5.236 10.883 8.51 2.7 3.272 4.746 6.382 6.137 9.327h1.554v-19.8h27.821v121.749c0 10.228-2.454 18.737-7.364 25.447-4.91 6.709-11.538 11.7-20.048 15.055-8.509 3.355-18.165 4.991-28.884 4.991Zm.245-71.266c5.974 0 11.047-1.473 15.302-4.337 4.173-2.945 7.446-7.118 9.573-12.519 2.21-5.482 3.274-12.027 3.274-19.637 0-7.609-1.064-14.155-3.274-19.8-2.127-5.646-5.318-10.064-9.491-13.255-4.174-3.11-9.329-4.746-15.384-4.746s-11.537 1.636-15.792 4.91c-4.173 3.272-7.365 7.772-9.492 13.418-2.128 5.727-3.191 12.191-3.191 19.392 0 7.2 1.063 13.745 3.273 19.228 2.127 5.482 5.318 9.736 9.573 12.764 4.174 3.027 9.41 4.582 15.629 4.582Zm141.56-26.51V71.839h28.23v119.786h-27.412v-21.273h-1.227c-2.7 6.709-7.119 12.191-13.338 16.446-6.137 4.255-13.747 6.382-22.748 6.382-7.855 0-14.81-1.718-20.783-5.237-5.974-3.518-10.72-8.591-14.075-15.382-3.355-6.709-5.073-14.891-5.073-24.464V71.839h28.312v71.921c0 7.609 2.046 13.664 6.219 18.083 4.173 4.5 9.655 6.709 16.365 6.709 4.173 0 8.183-.982 12.111-3.028 3.927-2.045 7.118-5.072 9.655-9.082 2.537-4.091 3.764-9.164 3.764-15.218Zm65.707-109.395v159.796h-28.23V31.828h28.23Zm44.841 162.169c-7.61 0-14.402-1.391-20.457-4.091-6.055-2.7-10.883-6.791-14.32-12.109-3.518-5.319-5.237-11.946-5.237-19.801 0-6.791 1.228-12.355 3.765-16.773 2.536-4.419 5.891-7.937 10.228-10.637 4.337-2.618 9.164-4.664 14.647-6.055 5.4-1.391 11.046-2.373 16.856-3.027 7.037-.737 12.683-1.391 17.102-1.964 4.337-.573 7.528-1.555 9.574-2.782 1.963-1.309 3.027-3.273 3.027-5.973v-.491c0-5.891-1.718-10.391-5.237-13.664-3.518-3.191-8.51-4.828-15.056-4.828-6.955 0-12.356 1.473-16.447 4.5-4.009 3.028-6.71 6.546-8.183 10.719l-26.348-3.764c2.046-7.282 5.483-13.336 10.31-18.328 4.746-4.909 10.638-8.59 17.511-11.045 6.955-2.455 14.565-3.682 22.912-3.682 5.809 0 11.537.654 17.265 2.045s10.965 3.6 15.711 6.71c4.746 3.109 8.51 7.282 11.455 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2.373 1.391-4.5 2.046-2.128.654-4.419 1.145-7.037 1.636-2.619.491-5.155.9-7.692 1.227-2.537.328-4.746.655-6.628.901-4.173.572-8.019 1.472-11.292 2.781-3.355 1.31-5.973 3.11-7.855 5.401-1.964 2.291-2.864 5.318-2.864 8.918 0 5.237 1.882 9.164 5.728 11.782 3.682 2.782 8.51 4.091 14.401 4.091Zm64.643 18.328V71.839h27.412v19.965h1.227c2.21-6.955 5.974-12.274 11.292-16.038 5.319-3.763 11.456-5.645 18.329-5.645 1.555 0 3.355.082 5.237.163 1.964.164 3.601.328 4.91.573v25.938c-1.227-.41-3.109-.819-5.646-1.146a58.814 58.814 0 0 0-7.446-.49c-5.155 0-9.738 1.145-13.829 3.354-4.091 2.209-7.282 5.236-9.655 9.164-2.373 3.927-3.519 8.427-3.519 13.5v70.448h-28.312ZM222.077 39.192l-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z"],["fill","url(#c)","d","M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5.318 6.137 3.518 10.964 8.673 14.319 15.382 3.437 6.71 5.074 14.81 4.992 24.383v76.175h-28.23v-71.92c0-8.019-2.046-14.237-6.219-18.819-4.173-4.5-9.819-6.791-17.102-6.791-4.91 0-9.328 1.063-13.174 3.272-3.846 2.128-6.792 5.237-9.001 9.328-2.046 4.009-3.191 8.918-3.191 14.728ZM589.233 239c-10.147 0-18.82-1.391-26.103-4.091-7.282-2.7-13.092-6.382-17.511-10.964-4.418-4.582-7.528-9.655-9.164-15.219l25.448-6.136c1.145 2.372 2.782 4.663 4.991 6.954 2.209 2.291 5.155 4.255 8.837 5.81 3.683 1.554 8.428 2.291 14.074 2.291 8.019 0 14.647-1.964 19.884-5.81 5.237-3.845 7.856-10.227 7.856-19.064v-22.665h-1.391c-1.473 2.946-3.601 5.892-6.383 9.001-2.782 3.109-6.464 5.645-10.965 7.691-4.582 2.046-10.228 3.109-17.101 3.109-9.165 0-17.511-2.209-25.039-6.545-7.446-4.337-13.42-10.883-17.757-19.474-4.418-8.673-6.628-19.473-6.628-32.565 0-13.091 2.21-24.301 6.628-33.383 4.419-9.082 10.311-15.955 17.839-20.7 7.528-4.746 15.874-7.037 25.039-7.037 7.037 0 12.846 1.145 17.347 3.518 4.582 2.373 8.182 5.236 10.883 8.51 2.7 3.272 4.746 6.382 6.137 9.327h1.554v-19.8h27.821v121.749c0 10.228-2.454 18.737-7.364 25.447-4.91 6.709-11.538 11.7-20.048 15.055-8.509 3.355-18.165 4.991-28.884 4.991Zm.245-71.266c5.974 0 11.047-1.473 15.302-4.337 4.173-2.945 7.446-7.118 9.573-12.519 2.21-5.482 3.274-12.027 3.274-19.637 0-7.609-1.064-14.155-3.274-19.8-2.127-5.646-5.318-10.064-9.491-13.255-4.174-3.11-9.329-4.746-15.384-4.746s-11.537 1.636-15.792 4.91c-4.173 3.272-7.365 7.772-9.492 13.418-2.128 5.727-3.191 12.191-3.191 19.392 0 7.2 1.063 13.745 3.273 19.228 2.127 5.482 5.318 9.736 9.573 12.764 4.174 3.027 9.41 4.582 15.629 4.582Zm141.56-26.51V71.839h28.23v119.786h-27.412v-21.273h-1.227c-2.7 6.709-7.119 12.191-13.338 16.446-6.137 4.255-13.747 6.382-22.748 6.382-7.855 0-14.81-1.718-20.783-5.237-5.974-3.518-10.72-8.591-14.075-15.382-3.355-6.709-5.073-14.891-5.073-24.464V71.839h28.312v71.921c0 7.609 2.046 13.664 6.219 18.083 4.173 4.5 9.655 6.709 16.365 6.709 4.173 0 8.183-.982 12.111-3.028 3.927-2.045 7.118-5.072 9.655-9.082 2.537-4.091 3.764-9.164 3.764-15.218Zm65.707-109.395v159.796h-28.23V31.828h28.23Zm44.841 162.169c-7.61 0-14.402-1.391-20.457-4.091-6.055-2.7-10.883-6.791-14.32-12.109-3.518-5.319-5.237-11.946-5.237-19.801 0-6.791 1.228-12.355 3.765-16.773 2.536-4.419 5.891-7.937 10.228-10.637 4.337-2.618 9.164-4.664 14.647-6.055 5.4-1.391 11.046-2.373 16.856-3.027 7.037-.737 12.683-1.391 17.102-1.964 4.337-.573 7.528-1.555 9.574-2.782 1.963-1.309 3.027-3.273 3.027-5.973v-.491c0-5.891-1.718-10.391-5.237-13.664-3.518-3.191-8.51-4.828-15.056-4.828-6.955 0-12.356 1.473-16.447 4.5-4.009 3.028-6.71 6.546-8.183 10.719l-26.348-3.764c2.046-7.282 5.483-13.336 10.31-18.328 4.746-4.909 10.638-8.59 17.511-11.045 6.955-2.455 14.565-3.682 22.912-3.682 5.809 0 11.537.654 17.265 2.045s10.965 3.6 15.711 6.71c4.746 3.109 8.51 7.282 11.455 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2.373 1.391-4.5 2.046-2.128.654-4.419 1.145-7.037 1.636-2.619.491-5.155.9-7.692 1.227-2.537.328-4.746.655-6.628.901-4.173.572-8.019 1.472-11.292 2.781-3.355 1.31-5.973 3.11-7.855 5.401-1.964 2.291-2.864 5.318-2.864 8.918 0 5.237 1.882 9.164 5.728 11.782 3.682 2.782 8.51 4.091 14.401 4.091Zm64.643 18.328V71.839h27.412v19.965h1.227c2.21-6.955 5.974-12.274 11.292-16.038 5.319-3.763 11.456-5.645 18.329-5.645 1.555 0 3.355.082 5.237.163 1.964.164 3.601.328 4.91.573v25.938c-1.227-.41-3.109-.819-5.646-1.146a58.814 58.814 0 0 0-7.446-.49c-5.155 0-9.738 1.145-13.829 3.354-4.091 2.209-7.282 5.236-9.655 9.164-2.373 3.927-3.519 8.427-3.519 13.5v70.448h-28.312ZM222.077 39.192l-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z"],["id","c","cx","0","cy","0","r","1","gradientTransform","rotate(118.122 171.182 60.81) scale(205.794)","gradientUnits","userSpaceOnUse"],["stop-color","#FF41F8"],["offset",".707","stop-color","#FF41F8","stop-opacity",".5"],["offset","1","stop-color","#FF41F8","stop-opacity","0"],["id","b","x1","0","x2","982","y1","192","y2","192","gradientUnits","userSpaceOnUse"],["stop-color","#F0060B"],["offset","0","stop-color","#F0070C"],["offset",".526","stop-color","#CC26D5"],["offset","1","stop-color","#7702FF"],["id","a"],["fill","#fff","d","M0 0h982v239H0z"],["role","separator","aria-label","Divider",1,"divider"],[1,"right-side"],[1,"pill-group"],["target","_blank","rel","noopener",1,"pill",3,"href"],[1,"social-links"],["href","https://github.com/angular/angular","aria-label","Github","target","_blank","rel","noopener"],["width","25","height","24","viewBox","0 0 25 24","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Github"],["d","M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z"],["href","https://twitter.com/angular","aria-label","Twitter","target","_blank","rel","noopener"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Twitter"],["d","M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],["href","https://www.youtube.com/channel/UCbn1OgGei-DV7aSRo_HaAiw","aria-label","Youtube","target","_blank","rel","noopener"],["width","29","height","20","viewBox","0 0 29 20","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Youtube"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 19.4032C3.11363 19.2389 2.56449 18.9191 2.12405 18.4758C1.68361 18.0325 1.36732 17.4813 1.20683 16.8774C0.613281 14.6484 0.613281 10 0.613281 10C0.613281 10 0.613281 5.35161 1.20683 3.12258C1.36732 2.51866 1.68361 1.96749 2.12405 1.52422C2.56449 1.08095 3.11363 0.76113 3.71651 0.596774C5.93586 0 14.8068 0 14.8068 0C14.8068 0 23.6778 0 25.8972 0.596774C26.5 0.76113 27.0492 1.08095 27.4896 1.52422ZM19.3229 10L11.9036 5.77905V14.221L19.3229 10Z"],["xmlns","http://www.w3.org/2000/svg","height","14","viewBox","0 -960 960 960","width","14","fill","currentColor"],["d","M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"]],template:function(i,s){i&1&&(T(0,"main",0)(1,"div",1)(2,"div",2),ae(),T(3,"svg",3)(4,"g",4),D(5,"path",5)(6,"path",6),A(),T(7,"defs")(8,"radialGradient",7),D(9,"stop",8)(10,"stop",9)(11,"stop",10),A(),T(12,"linearGradient",11),D(13,"stop",12)(14,"stop",13)(15,"stop",14)(16,"stop",15),A(),T(17,"clipPath",16),D(18,"path",17),A()()(),Se(),T(19,"h1"),et(20),A(),T(21,"p"),et(22,"Congratulations! Your app is running. \u{1F389}"),A()(),D(23,"div",18),T(24,"div",19)(25,"div",20),pr(26,fa,5,2,"a",21,oa),A(),T(28,"div",22)(29,"a",23),ae(),T(30,"svg",24),D(31,"path",25),A()(),Se(),T(32,"a",26),ae(),T(33,"svg",27),D(34,"path",28),A()(),Se(),T(35,"a",29),ae(),T(36,"svg",30),D(37,"path",31),A()()()()()(),Se(),D(38,"router-outlet")),i&2&&(Ye(20),vr("Hello, ",s.title,""),Ye(6),gr(yr(6,da,ce(1,aa),ce(2,ca),ce(3,la),ce(4,ua),ce(5,ha))))},dependencies:[Un],styles:[`[_nghost-%COMP%] { - --bright-blue: oklch(51.01% 0.274 263.83); - --electric-violet: oklch(53.18% 0.28 296.97); - --french-violet: oklch(47.66% 0.246 305.88); - --vivid-pink: oklch(69.02% 0.277 332.77); - --hot-red: oklch(61.42% 0.238 15.34); - --orange-red: oklch(63.32% 0.24 31.68); - - --gray-900: oklch(19.37% 0.006 300.98); - --gray-700: oklch(36.98% 0.014 302.71); - --gray-400: oklch(70.9% 0.015 304.04); - - --red-to-pink-to-purple-vertical-gradient: linear-gradient( - 180deg, - var(--orange-red) 0%, - var(--vivid-pink) 50%, - var(--electric-violet) 100% - ); - - --red-to-pink-to-purple-horizontal-gradient: linear-gradient( - 90deg, - var(--orange-red) 0%, - var(--vivid-pink) 50%, - var(--electric-violet) 100% - ); - - --pill-accent: var(--bright-blue); - - font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, - Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; - box-sizing: border-box; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - h1[_ngcontent-%COMP%] { - font-size: 3.125rem; - color: var(--gray-900); - font-weight: 500; - line-height: 100%; - letter-spacing: -0.125rem; - margin: 0; - font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, - Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; - } - - p[_ngcontent-%COMP%] { - margin: 0; - color: var(--gray-700); - } - - main[_ngcontent-%COMP%] { - width: 100%; - min-height: 100%; - display: flex; - justify-content: center; - align-items: center; - padding: 1rem; - box-sizing: inherit; - position: relative; - } - - .angular-logo[_ngcontent-%COMP%] { - max-width: 9.2rem; - } - - .content[_ngcontent-%COMP%] { - display: flex; - justify-content: space-around; - width: 100%; - max-width: 700px; - margin-bottom: 3rem; - } - - .content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] { - margin-top: 1.75rem; - } - - .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] { - margin-top: 1.5rem; - } - - .divider[_ngcontent-%COMP%] { - width: 1px; - background: var(--red-to-pink-to-purple-vertical-gradient); - margin-inline: 0.5rem; - } - - .pill-group[_ngcontent-%COMP%] { - display: flex; - flex-direction: column; - align-items: start; - flex-wrap: wrap; - gap: 1.25rem; - } - - .pill[_ngcontent-%COMP%] { - display: flex; - align-items: center; - --pill-accent: var(--bright-blue); - background: color-mix(in srgb, var(--pill-accent) 5%, transparent); - color: var(--pill-accent); - padding-inline: 0.75rem; - padding-block: 0.375rem; - border-radius: 2.75rem; - border: 0; - transition: background 0.3s ease; - font-family: var(--inter-font); - font-size: 0.875rem; - font-style: normal; - font-weight: 500; - line-height: 1.4rem; - letter-spacing: -0.00875rem; - text-decoration: none; - } - - .pill[_ngcontent-%COMP%]:hover { - background: color-mix(in srgb, var(--pill-accent) 15%, transparent); - } - - .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n + 1) { - --pill-accent: var(--bright-blue); - } - .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n + 2) { - --pill-accent: var(--french-violet); - } - .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n + 3), .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n + 4), .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n + 5) { - --pill-accent: var(--hot-red); - } - - .pill-group[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] { - margin-inline-start: 0.25rem; - } - - .social-links[_ngcontent-%COMP%] { - display: flex; - align-items: center; - gap: 0.73rem; - margin-top: 1.5rem; - } - - .social-links[_ngcontent-%COMP%] path[_ngcontent-%COMP%] { - transition: fill 0.3s ease; - fill: var(--gray-400); - } - - .social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%] { - fill: var(--gray-900); - } - - @media screen and (max-width: 650px) { - .content[_ngcontent-%COMP%] { - flex-direction: column; - width: max-content; - } - - .divider[_ngcontent-%COMP%] { - height: 1px; - width: 100%; - background: var(--red-to-pink-to-purple-horizontal-gradient); - margin-block: 1.5rem; - } - }`]});let t=e;return t})();Br(Oi,Di).catch(t=>console.error(t)); diff --git a/EnvelopeGenerator.GeneratorAPI/wwwroot/main-XSCKS6NF.js b/EnvelopeGenerator.GeneratorAPI/wwwroot/main-XSCKS6NF.js new file mode 100644 index 00000000..43051e31 --- /dev/null +++ b/EnvelopeGenerator.GeneratorAPI/wwwroot/main-XSCKS6NF.js @@ -0,0 +1,92 @@ +import{$ as pi,$a as Pe,$b as Ee,A as tr,Aa as x,Ab as fe,Ac as q_,B as Gi,Ba as W,Bb as Co,Bc as St,C as d_,Ca as y_,Cb as Z,Cc as Vs,D as kt,Da as Jc,Db as ar,Dc as ml,E as u_,Ea as w_,Eb as F,F as pn,Fa as Ue,Fb as f,G as ir,Ga as ki,Gb as Ne,Gc as Y_,H as Fs,Ha as Os,Hb as be,Hc as Q_,I as Vh,Ia as el,Ib as rl,J as jt,Ja as _o,Jb as yt,Jc as Uh,K as m_,Ka as yo,Kb as X,Kc as K_,L as Zc,La as C_,Lb as L,Lc as Z_,M as fn,Ma as I_,Mb as z,N as bn,Na as k_,Nb as Qi,O as Lh,Oa as E_,Ob as S,P as h_,Pa as S_,Pb as xe,Q as g_,Qa as D_,Qb as oe,R as p_,Ra as T_,Rb as ge,S as f_,Sa as Vt,Sb as Oe,T as b_,Ta as sr,Tb as Io,U as nr,Ua as wo,Ub as ol,V as Xc,Va as M_,Vb as Bh,W as Xt,Wa as Ps,Wb as j_,X as re,Xa as Ns,Xb as Hh,Y as He,Ya as u,Yb as J,Z as v_,Za as c,Zb as ie,_ as Me,_a as js,_b as cr,a as V,aa as k,ab as F_,ac as sl,b as Be,ba as T,bb as Je,bc as al,c as s_,ca as x_,cb as tl,cc as cl,d as qc,da as K,db as We,dc as Et,e as Yc,ea as zh,eb as il,ec as V_,f as Jn,fa as v,fb as de,fc as $h,g as a_,ga as _,gb as Ei,gc as B,h as gi,ha as Rs,hb as C,hc as L_,i as Oh,ia as we,ib as Si,ic as z_,j as Ph,ja as I,jb as R_,jc as fi,k as ke,ka as M,kb as A_,kc as lr,l as nt,la as N,lb as nl,lc as B_,m as Nh,ma as As,mb as D,mc as H_,n as Ii,na as vn,nb as De,nc as ue,o as vo,oa as __,ob as m,oc as $_,p as Ct,pa as xo,pb as Ae,pc as ll,q as te,qa as qi,qb as U,qc as dl,r as er,ra as G,rb as O_,rc as Ki,s as c_,sa as R,sb as Yi,sc as rt,t as l_,ta as A,tb as ft,tc as je,u as le,ua as Ke,ub as P_,uc as U_,v as gn,va as xn,vb as N_,vc as W_,w as Zt,wa as ze,wb as h,wc as G_,x as Qc,xa as rr,xb as g,xc as _n,y as jh,ya as ve,yb as b,yc as ul,z as Kc,za as or,zb as pe,zc as q}from"./chunk-JIAP5FFR.js";var zs=class{},Bs=class{},Di=class i{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=r.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let r=(t.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var qh=class{encodeKey(t){return X_(t)}encodeValue(t){return X_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function ak(i,t){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var ck=/%(\d[a-f0-9])/gi,lk={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X_(i){return encodeURIComponent(i).replace(ck,(t,e)=>lk[e]??t)}function hl(i){return`${i}`}var wn=class i{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new qh,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ak(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],r=Array.isArray(n)?n.map(hl):[hl(n)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let r=t[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(hl(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],r=n.indexOf(hl(t.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Yh=class{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function dk(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function J_(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function ey(i){return typeof Blob<"u"&&i instanceof Blob}function ty(i){return typeof FormData<"u"&&i instanceof FormData}function uk(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Ls=class i{constructor(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(dk(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Di,this.context??=new Yh,!this.params)this.params=new wn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":aE.set(Q,t.setHeaders[Q]),d)),t.setParams&&(p=Object.keys(t.setParams).reduce((E,Q)=>E.set(Q,t.setParams[Q]),p)),new i(e,n,s,{params:p,headers:d,context:w,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},Cn=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Cn||{}),Hs=class{constructor(t,e=$s.Ok,n="OK"){this.headers=t.headers||new Di,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},pl=class i extends Hs{constructor(t={}){super(t),this.type=Cn.ResponseHeader}clone(t={}){return new i({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},dr=class i extends Hs{constructor(t={}){super(t),this.type=Cn.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new i({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},yn=class extends Hs{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},$s=function(i){return i[i.Continue=100]="Continue",i[i.SwitchingProtocols=101]="SwitchingProtocols",i[i.Processing=102]="Processing",i[i.EarlyHints=103]="EarlyHints",i[i.Ok=200]="Ok",i[i.Created=201]="Created",i[i.Accepted=202]="Accepted",i[i.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",i[i.NoContent=204]="NoContent",i[i.ResetContent=205]="ResetContent",i[i.PartialContent=206]="PartialContent",i[i.MultiStatus=207]="MultiStatus",i[i.AlreadyReported=208]="AlreadyReported",i[i.ImUsed=226]="ImUsed",i[i.MultipleChoices=300]="MultipleChoices",i[i.MovedPermanently=301]="MovedPermanently",i[i.Found=302]="Found",i[i.SeeOther=303]="SeeOther",i[i.NotModified=304]="NotModified",i[i.UseProxy=305]="UseProxy",i[i.Unused=306]="Unused",i[i.TemporaryRedirect=307]="TemporaryRedirect",i[i.PermanentRedirect=308]="PermanentRedirect",i[i.BadRequest=400]="BadRequest",i[i.Unauthorized=401]="Unauthorized",i[i.PaymentRequired=402]="PaymentRequired",i[i.Forbidden=403]="Forbidden",i[i.NotFound=404]="NotFound",i[i.MethodNotAllowed=405]="MethodNotAllowed",i[i.NotAcceptable=406]="NotAcceptable",i[i.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",i[i.RequestTimeout=408]="RequestTimeout",i[i.Conflict=409]="Conflict",i[i.Gone=410]="Gone",i[i.LengthRequired=411]="LengthRequired",i[i.PreconditionFailed=412]="PreconditionFailed",i[i.PayloadTooLarge=413]="PayloadTooLarge",i[i.UriTooLong=414]="UriTooLong",i[i.UnsupportedMediaType=415]="UnsupportedMediaType",i[i.RangeNotSatisfiable=416]="RangeNotSatisfiable",i[i.ExpectationFailed=417]="ExpectationFailed",i[i.ImATeapot=418]="ImATeapot",i[i.MisdirectedRequest=421]="MisdirectedRequest",i[i.UnprocessableEntity=422]="UnprocessableEntity",i[i.Locked=423]="Locked",i[i.FailedDependency=424]="FailedDependency",i[i.TooEarly=425]="TooEarly",i[i.UpgradeRequired=426]="UpgradeRequired",i[i.PreconditionRequired=428]="PreconditionRequired",i[i.TooManyRequests=429]="TooManyRequests",i[i.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",i[i.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",i[i.InternalServerError=500]="InternalServerError",i[i.NotImplemented=501]="NotImplemented",i[i.BadGateway=502]="BadGateway",i[i.ServiceUnavailable=503]="ServiceUnavailable",i[i.GatewayTimeout=504]="GatewayTimeout",i[i.HttpVersionNotSupported=505]="HttpVersionNotSupported",i[i.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",i[i.InsufficientStorage=507]="InsufficientStorage",i[i.LoopDetected=508]="LoopDetected",i[i.NotExtended=510]="NotExtended",i[i.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",i}($s||{});function Wh(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var ur=(()=>{let t=class t{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ls)s=n;else{let d;o.headers instanceof Di?d=o.headers:d=new Di(o.headers);let p;o.params&&(o.params instanceof wn?p=o.params:p=new wn({fromObject:o.params})),s=new Ls(n,r,o.body!==void 0?o.body:null,{headers:d,context:o.context,params:p,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=te(s).pipe(ir(d=>this.handler.handle(d)));if(n instanceof Ls||o.observe==="events")return a;let l=a.pipe(kt(d=>d instanceof dr));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(le(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(le(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(le(d=>{if(d.body!==null&&typeof d.body!="string")throw new Error("Response is not a string.");return d.body}));case"json":default:return l.pipe(le(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new wn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Wh(o,r))}post(n,r,o={}){return this.request("POST",n,Wh(o,r))}put(n,r,o={}){return this.request("PUT",n,Wh(o,r))}};t.\u0275fac=function(r){return new(r||t)(v(zs))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),mk=/^\)\]\}',?\n/,hk="X-Request-URL";function iy(i){if(i.url)return i.url;let t=hk.toLocaleLowerCase();return i.headers.get(t)}var Gh=(()=>{let t=class t{constructor(){this.fetchImpl=_(Qh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=_(de)}handle(n){return new gi(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Kh,s=>r.error(new yn({error:s}))),()=>o.abort()})}doRequest(n,r,o){return Yc(this,null,function*(){let s=this.createRequestInit(n),a;try{let ne=this.fetchImpl(n.urlWithParams,V({signal:r},s));gk(ne),o.next({type:Cn.Sent}),a=yield ne}catch(ne){o.error(new yn({error:ne,status:ne.status??0,statusText:ne.statusText,url:n.urlWithParams,headers:ne.headers}));return}let l=new Di(a.headers),d=a.statusText,p=iy(a)??n.urlWithParams,w=a.status,E=null;if(n.reportProgress&&o.next(new pl({headers:l,status:w,statusText:d,url:p})),a.body){let ne=a.headers.get("content-length"),ce=[],O=a.body.getReader(),Y=0,Ie,pt,Qe=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Yc(this,null,function*(){for(;;){let{done:Ci,value:Wi}=yield O.read();if(Ci)break;if(ce.push(Wi),Y+=Wi.length,n.reportProgress){pt=n.responseType==="text"?(pt??"")+(Ie??=new TextDecoder).decode(Wi,{stream:!0}):void 0;let bo=()=>o.next({type:Cn.DownloadProgress,total:ne?+ne:void 0,loaded:Y,partialText:pt});Qe?Qe.run(bo):bo()}}}));let Ui=this.concatChunks(ce,Y);try{let Ci=a.headers.get("Content-Type")??"";E=this.parseBody(n,Ui,Ci)}catch(Ci){o.error(new yn({error:Ci,headers:new Di(a.headers),status:a.status,statusText:a.statusText,url:iy(a)??n.urlWithParams}));return}}w===0&&(w=E?$s.Ok:0),w>=200&&w<300?(o.next(new dr({body:E,headers:l,status:w,statusText:d,url:p})),o.complete()):o.error(new yn({error:E,headers:l,status:w,statusText:d,url:p}))})}parseBody(n,r,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(mk,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>r[s]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Qh=class{};function Kh(){}function gk(i){i.then(Kh,Kh)}function pk(i,t){return t(i)}function fk(i,t,e){return(n,r)=>qi(e,()=>t(n,o=>i(o,r)))}var hy=new K(""),gy=new K(""),py=new K("");var ny=(()=>{let t=class t extends zs{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=_(nl);let o=_(py,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(hy),...this.injector.get(gy,[])]));this.chain=o.reduceRight((s,a)=>fk(s,a,this.injector),pk)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(fn(()=>this.pendingTasks.remove(r)))}};t.\u0275fac=function(r){return new(r||t)(v(Bs),v(xo))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})();var bk=/^\)\]\}',?\n/;function vk(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var ry=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new Me(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ct(r.\u0275loadImpl()):te(null)).pipe(Xt(()=>new gi(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((O,Y)=>a.setRequestHeader(O,Y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let O=n.detectContentTypeHeader();O!==null&&a.setRequestHeader("Content-Type",O)}if(n.responseType){let O=n.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let l=n.serializeBody(),d=null,p=()=>{if(d!==null)return d;let O=a.statusText||"OK",Y=new Di(a.getAllResponseHeaders()),Ie=vk(a)||n.url;return d=new pl({headers:Y,status:a.status,statusText:O,url:Ie}),d},w=()=>{let{headers:O,status:Y,statusText:Ie,url:pt}=p(),Qe=null;Y!==$s.NoContent&&(Qe=typeof a.response>"u"?a.responseText:a.response),Y===0&&(Y=Qe?$s.Ok:0);let Ui=Y>=200&&Y<300;if(n.responseType==="json"&&typeof Qe=="string"){let Ci=Qe;Qe=Qe.replace(bk,"");try{Qe=Qe!==""?JSON.parse(Qe):null}catch(Wi){Qe=Ci,Ui&&(Ui=!1,Qe={error:Wi,text:Qe})}}Ui?(s.next(new dr({body:Qe,headers:O,status:Y,statusText:Ie,url:pt||void 0})),s.complete()):s.error(new yn({error:Qe,headers:O,status:Y,statusText:Ie,url:pt||void 0}))},E=O=>{let{url:Y}=p(),Ie=new yn({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:Y||void 0});s.error(Ie)},Q=!1,ne=O=>{Q||(s.next(p()),Q=!0);let Y={type:Cn.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(Y.total=O.total),n.responseType==="text"&&a.responseText&&(Y.partialText=a.responseText),s.next(Y)},ce=O=>{let Y={type:Cn.UploadProgress,loaded:O.loaded};O.lengthComputable&&(Y.total=O.total),s.next(Y)};return a.addEventListener("load",w),a.addEventListener("error",E),a.addEventListener("timeout",E),a.addEventListener("abort",E),n.reportProgress&&(a.addEventListener("progress",ne),l!==null&&a.upload&&a.upload.addEventListener("progress",ce)),a.send(l),s.next({type:Cn.Sent}),()=>{a.removeEventListener("error",E),a.removeEventListener("abort",E),a.removeEventListener("load",w),a.removeEventListener("timeout",E),n.reportProgress&&(a.removeEventListener("progress",ne),l!==null&&a.upload&&a.upload.removeEventListener("progress",ce)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(r){return new(r||t)(v(ml))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),fy=new K(""),xk="XSRF-TOKEN",_k=new K("",{providedIn:"root",factory:()=>xk}),yk="X-XSRF-TOKEN",wk=new K("",{providedIn:"root",factory:()=>yk}),fl=class{},Ck=(()=>{let t=class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=dl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(r){return new(r||t)(v(ue),v(Ue),v(_k))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})();function Ik(i,t){let e=i.url.toLowerCase();if(!_(fy)||i.method==="GET"||i.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(i);let n=_(fl).getToken(),r=_(wk);return n!=null&&!i.headers.has(r)&&(i=i.clone({headers:i.headers.set(r,n)})),t(i)}var by=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(by||{});function kk(i,t){return{\u0275kind:i,\u0275providers:t}}function vy(...i){let t=[ur,ry,ny,{provide:zs,useExisting:ny},{provide:Bs,useExisting:ry},{provide:hy,useValue:Ik,multi:!0},{provide:fy,useValue:!0},{provide:fl,useClass:Ck}];for(let e of i)t.push(...e.\u0275providers);return vn(t)}function xy(){return kk(by.Fetch,[Gh,{provide:Bs,useExisting:Gh},{provide:py,useExisting:Gh}])}var oy="b",sy="h",ay="s",cy="st",ly="u",dy="rt",gl=new K(""),Ek=["GET","HEAD"];function Sk(i,t){let w=_(gl),{isCacheActive:e}=w,n=s_(w,["isCacheActive"]),{transferCache:r,method:o}=i;if(!e||o==="POST"&&!n.includePostRequests&&!r||o!=="POST"&&!Ek.includes(o)||r===!1||n.filter?.(i)===!1)return t(i);let s=_(el),a=Tk(i),l=s.get(a,null),d=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(d=r.includeHeaders),l){let{[oy]:E,[dy]:Q,[sy]:ne,[ay]:ce,[cy]:O,[ly]:Y}=l,Ie=E;switch(Q){case"arraybuffer":Ie=new TextEncoder().encode(E).buffer;break;case"blob":Ie=new Blob([E]);break}let pt=new Di(ne);return te(new dr({body:Ie,headers:pt,status:ce,statusText:O,url:Y}))}let p=Vs(_(Ue));return t(i).pipe(He(E=>{E instanceof dr&&p&&s.set(a,{[oy]:E.body,[sy]:Dk(E.headers,d),[ay]:E.status,[cy]:E.statusText,[ly]:E.url||"",[dy]:i.responseType})}))}function Dk(i,t){if(!t)return{};let e={};for(let n of t){let r=i.getAll(n);r!==null&&(e[n]=r)}return e}function uy(i){return[...i.keys()].sort().map(t=>`${t}=${i.getAll(t)}`).join("&")}function Tk(i){let{params:t,method:e,responseType:n,url:r}=i,o=uy(t),s=i.serializeBody();s instanceof URLSearchParams?s=uy(s):typeof s!="string"&&(s="");let a=[e,n,r,s,o].join("|"),l=Mk(a);return l}function Mk(i){let t=0;for(let e of i)t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function _y(i){return[{provide:gl,useFactory:()=>(il("NgHttpTransferCache"),V({isCacheActive:!0},i))},{provide:gy,useValue:Sk,multi:!0,deps:[el,gl]},{provide:cl,multi:!0,useFactory:()=>{let t=_(Et),e=_(gl);return()=>{V_(t).then(()=>{e.isCacheActive=!1})}}}]}var eg=class extends H_{constructor(){super(...arguments),this.supportsDOMEvents=!0}},tg=class i extends eg{static makeCurrent(){B_(new i)}onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Rk();return e==null?null:Ak(e)}resetBaseElement(){Us=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return dl(document.cookie,t)}},Us=null;function Rk(){return Us=Us||document.querySelector("base"),Us?Us.getAttribute("href"):null}function Ak(i){return new URL(i,document.baseURI).pathname}var Ok=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),ig=new K(""),Iy=(()=>{let t=class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new Me(5101,!1);return this._eventNameToPlugin.set(n,r),r}};t.\u0275fac=function(r){return new(r||t)(v(ig),v(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),bl=class{constructor(t){this._doc=t}},Xh="ng-app-id",ky=(()=>{let t=class t{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vs(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Xh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Xh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Xh,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(r){return new(r||t)(v(ue),v(Jc),v(Os,8),v(Ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Jh={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/"},sg=/%COMP%/g,Ey="%COMP%",Pk=`_nghost-${Ey}`,Nk=`_ngcontent-${Ey}`,jk=!0,Vk=new K("",{providedIn:"root",factory:()=>jk});function Lk(i){return Nk.replace(sg,i)}function zk(i){return Pk.replace(sg,i)}function Sy(i,t){return t.map(e=>e.replace(sg,i))}var vl=(()=>{let t=class t{constructor(n,r,o,s,a,l,d,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=Vs(l),this.defaultRenderer=new Ws(n,a,d,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Rs.ShadowDom&&(r=Be(V({},r),{encapsulation:Rs.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof xl?o.applyToHost(n):o instanceof Gs&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,d=this.eventManager,p=this.sharedStylesHost,w=this.removeStylesOnCompDestroy,E=this.platformIsServer;switch(r.encapsulation){case Rs.Emulated:s=new xl(d,p,r,this.appId,w,a,l,E);break;case Rs.ShadowDom:return new ng(d,p,n,r,a,l,this.nonce,E);default:s=new Gs(d,p,r,w,a,l,E);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(r){return new(r||t)(v(Iy),v(ky),v(Jc),v(Vk),v(ue),v(Ue),v(de),v(Os))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Ws=class{constructor(t,e,n,r){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(Jh[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(yy(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(yy(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new Me(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let o=Jh[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=Jh[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(Ns.DashCase|Ns.Important)?t.style.setProperty(e,n,r&Ns.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ns.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n){if(typeof t=="string"&&(t=lr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function yy(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var ng=class extends Ws{constructor(t,e,n,r,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=Sy(r.id,r.styles);for(let p of d){let w=document.createElement("style");a&&w.setAttribute("nonce",a),w.textContent=p,this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Gs=class extends Ws{constructor(t,e,n,r,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?Sy(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},xl=class extends Gs{constructor(t,e,n,r,o,s,a,l){let d=r+"-"+n.id;super(t,e,n,o,s,a,l,d),this.contentAttr=Lk(d),this.hostAttr=zk(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},Bk=(()=>{let t=class t extends bl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),wy=["alt","control","meta","shift"],Hk={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$k={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},Uk=(()=>{let t=class t extends bl{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),wy.forEach(p=>{let w=r.indexOf(p);w>-1&&(r.splice(w,1),a+=p+".")}),a+=s,r.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=a,d}static matchEventFullKeyCode(n,r){let o=Hk[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),wy.forEach(a=>{if(a!==o){let l=$k[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})();function Dy(i,t){return L_(V({rootComponent:i},Wk(t)))}function Wk(i){return{appProviders:[...Kk,...i?.providers??[]],platformProviders:Qk}}function Gk(){tg.makeCurrent()}function qk(){return new or}function Yk(){return y_(document),document}var Qk=[{provide:Ue,useValue:q_},{provide:w_,useValue:Gk,multi:!0},{provide:ue,useFactory:Yk,deps:[]}];var Kk=[{provide:__,useValue:"root"},{provide:or,useFactory:qk,deps:[]},{provide:ig,useClass:Bk,multi:!0,deps:[ue,de,Ue]},{provide:ig,useClass:Uk,multi:!0,deps:[ue]},vl,ky,Iy,{provide:tl,useExisting:vl},{provide:ml,useClass:Ok,deps:[]},[]];var Ty=(()=>{let t=class t{constructor(n){this._doc=n,this._dom=lr()}addTag(n,r=!1){return n?this._getOrCreateElement(n,r):null}addTags(n,r=!1){return n?n.reduce((o,s)=>(s&&o.push(this._getOrCreateElement(s,r)),o),[]):[]}getTag(n){return n&&this._doc.querySelector(`meta[${n}]`)||null}getTags(n){if(!n)return[];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let o=this.getTag(r);return o?this._setMetaElementAttributes(n,o):this._getOrCreateElement(n,!0)}removeTag(n){this.removeTagElement(this.getTag(n))}removeTagElement(n){n&&this._dom.remove(n)}_getOrCreateElement(n,r=!1){if(!r){let a=this._parseSelector(n),l=this.getTags(a).filter(d=>this._containsAttributes(n,d))[0];if(l!==void 0)return l}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(n,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),n[o])),r}_parseSelector(n){let r=n.name?"name":"property";return`${r}="${n[r]}"`}_containsAttributes(n,r){return Object.keys(n).every(o=>r.getAttribute(this._getMetaKeyMap(o))===n[o])}_getMetaKeyMap(n){return Zk[n]||n}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Zk={httpEquiv:"http-equiv"},My=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var In=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=v(Xk),o},providedIn:"root"});let i=t;return i})(),Xk=(()=>{let t=class t extends In{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Vt.NONE:return r;case Vt.HTML:return yo(r,"HTML")?_o(r):T_(this._doc,String(r)).toString();case Vt.STYLE:return yo(r,"Style")?_o(r):r;case Vt.SCRIPT:if(yo(r,"Script"))return _o(r);throw new Me(5200,!1);case Vt.URL:return yo(r,"URL")?_o(r):D_(String(r));case Vt.RESOURCE_URL:if(yo(r,"ResourceURL"))return _o(r);throw new Me(5201,!1);default:throw new Me(5202,!1)}}bypassSecurityTrustHtml(n){return C_(n)}bypassSecurityTrustStyle(n){return I_(n)}bypassSecurityTrustScript(n){return k_(n)}bypassSecurityTrustUrl(n){return E_(n)}bypassSecurityTrustResourceUrl(n){return S_(n)}};t.\u0275fac=function(r){return new(r||t)(v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),rg=function(i){return i[i.NoHttpTransferCache=0]="NoHttpTransferCache",i[i.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",i}(rg||{});function Fy(...i){let t=[],e=new Set,n=e.has(rg.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of i)e.add(o),r.length&&t.push(r);return vn([[],z_(),e.has(rg.NoHttpTransferCache)||n?[]:_y({}),t])}var he="primary",aa=Symbol("RouteTitle"),mg=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function To(i){return new mg(i)}function eE(i,t,e){let n=e.path.split("/");if(n.length>i.length||e.pathMatch==="full"&&(t.hasChildren()||n.lengthn[o]===r)}else return i===t}function Vy(i){return i.length>0?i[i.length-1]:null}function Sn(i){return c_(i)?i:al(i)?Ct(Promise.resolve(i)):te(i)}var iE={exact:zy,subset:By},Ly={exact:nE,subset:rE,ignored:()=>!0};function Ry(i,t,e){return iE[e.paths](i.root,t.root,e.matrixParams)&&Ly[e.queryParams](i.queryParams,t.queryParams)&&!(e.fragment==="exact"&&i.fragment!==t.fragment)}function nE(i,t){return Ti(i,t)}function zy(i,t,e){if(!hr(i.segments,t.segments)||!wl(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!i.children[n]||!zy(i.children[n],t.children[n],e))return!1;return!0}function rE(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>jy(i[e],t[e]))}function By(i,t,e){return Hy(i,t,t.segments,e)}function Hy(i,t,e,n){if(i.segments.length>e.length){let r=i.segments.slice(0,e.length);return!(!hr(r,e)||t.hasChildren()||!wl(r,e,n))}else if(i.segments.length===e.length){if(!hr(i.segments,e)||!wl(i.segments,e,n))return!1;for(let r in t.children)if(!i.children[r]||!By(i.children[r],t.children[r],n))return!1;return!0}else{let r=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!hr(i.segments,r)||!wl(i.segments,r,n)||!i.children[he]?!1:Hy(i.children[he],t,o,n)}}function wl(i,t,e){return t.every((n,r)=>Ly[e](i[r].parameters,n.parameters))}var kn=class{constructor(t=new Te([],{}),e={},n=null){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){return aE.serialize(this)}},Te=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cl(this)}},mr=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=To(this.parameters),this._parameterMap}toString(){return Uy(this)}};function oE(i,t){return hr(i,t)&&i.every((e,n)=>Ti(e.parameters,t[n].parameters))}function hr(i,t){return i.length!==t.length?!1:i.every((e,n)=>e.path===t[n].path)}function sE(i,t){let e=[];return Object.entries(i.children).forEach(([n,r])=>{n===he&&(e=e.concat(t(r,n)))}),Object.entries(i.children).forEach(([n,r])=>{n!==he&&(e=e.concat(t(r,n)))}),e}var Lg=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>new kl,providedIn:"root"});let i=t;return i})(),kl=class{parse(t){let e=new pg(t);return new kn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${qs(t.root,!0)}`,n=dE(t.queryParams),r=typeof t.fragment=="string"?`#${cE(t.fragment)}`:"";return`${e}${n}${r}`}},aE=new kl;function Cl(i){return i.segments.map(t=>Uy(t)).join("/")}function qs(i,t){if(!i.hasChildren())return Cl(i);if(t){let e=i.children[he]?qs(i.children[he],!1):"",n=[];return Object.entries(i.children).forEach(([r,o])=>{r!==he&&n.push(`${r}:${qs(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=sE(i,(n,r)=>r===he?[qs(i.children[he],!1)]:[`${r}:${qs(n,!1)}`]);return Object.keys(i.children).length===1&&i.children[he]!=null?`${Cl(i)}/${e[0]}`:`${Cl(i)}/(${e.join("//")})`}}function $y(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _l(i){return $y(i).replace(/%3B/gi,";")}function cE(i){return encodeURI(i)}function gg(i){return $y(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Il(i){return decodeURIComponent(i)}function Ay(i){return Il(i.replace(/\+/g,"%20"))}function Uy(i){return`${gg(i.path)}${lE(i.parameters)}`}function lE(i){return Object.entries(i).map(([t,e])=>`;${gg(t)}=${gg(e)}`).join("")}function dE(i){let t=Object.entries(i).map(([e,n])=>Array.isArray(n)?n.map(r=>`${_l(e)}=${_l(r)}`).join("&"):`${_l(e)}=${_l(n)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var uE=/^[^\/()?;#]+/;function cg(i){let t=i.match(uE);return t?t[0]:""}var mE=/^[^\/()?;=#]+/;function hE(i){let t=i.match(mE);return t?t[0]:""}var gE=/^[^=?&#]+/;function pE(i){let t=i.match(gE);return t?t[0]:""}var fE=/^[^&#]+/;function bE(i){let t=i.match(fE);return t?t[0]:""}var pg=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Te([],{}):new Te([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[he]=new Te(t,e)),n}parseSegment(){let t=cg(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new Me(4009,!1);return this.capture(t),new mr(Il(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=hE(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=cg(this.remaining);r&&(n=r,this.capture(n))}t[Il(e)]=Il(n)}parseQueryParam(t){let e=pE(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=bE(this.remaining);s&&(n=s,this.capture(n))}let r=Ay(e),o=Ay(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=cg(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new Me(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=he);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[he]:new Te([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new Me(4011,!1)}};function Wy(i){return i.segments.length>0?new Te([],{[he]:i}):i}function Gy(i){let t={};for(let[n,r]of Object.entries(i.children)){let o=Gy(r);if(n===he&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let e=new Te(i.segments,t);return vE(e)}function vE(i){if(i.numberOfChildren===1&&i.children[he]){let t=i.children[he];return new Te(i.segments.concat(t.segments),t.children)}return i}function Mo(i){return i instanceof kn}function xE(i,t,e=null,n=null){let r=qy(i);return Yy(r,t,e,n)}function qy(i){let t;function e(o){let s={};for(let l of o.children){let d=e(l);s[l.outlet]=d}let a=new Te(o.url,s);return o===i&&(t=a),a}let n=e(i.root),r=Wy(n);return t??r}function Yy(i,t,e,n){let r=i;for(;r.parent;)r=r.parent;if(t.length===0)return lg(r,r,r,e,n);let o=_E(t);if(o.toRoot())return lg(r,r,new Te([],{}),e,n);let s=yE(o,r,i),a=s.processChildren?Ks(s.segmentGroup,s.index,o.commands):Ky(s.segmentGroup,s.index,o.commands);return lg(r,s.segmentGroup,a,e,n)}function El(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Js(i){return typeof i=="object"&&i!=null&&i.outlets}function lg(i,t,e,n,r){let o={};n&&Object.entries(n).forEach(([l,d])=>{o[l]=Array.isArray(d)?d.map(p=>`${p}`):`${d}`});let s;i===t?s=e:s=Qy(i,t,e);let a=Wy(Gy(s));return new kn(a,o,r)}function Qy(i,t,e){let n={};return Object.entries(i.children).forEach(([r,o])=>{o===t?n[r]=e:n[r]=Qy(o,t,e)}),new Te(i.segments,n)}var Sl=class{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&El(n[0]))throw new Me(4003,!1);let r=n.find(Js);if(r&&r!==Vy(n))throw new Me(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function _E(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Sl(!0,0,i);let t=0,e=!1,n=i.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,d])=>{a[l]=typeof d=="string"?d.split("/"):d}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Sl(e,t,n)}var So=class{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}};function yE(i,t,e){if(i.isAbsolute)return new So(t,!0,0);if(!e)return new So(t,!1,NaN);if(e.parent===null)return new So(e,!0,0);let n=El(i.commands[0])?0:1,r=e.segments.length-1+n;return wE(e,r,i.numberOfDoubleDots)}function wE(i,t,e){let n=i,r=t,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new Me(4005,!1);r=n.segments.length}return new So(n,!1,r-o)}function CE(i){return Js(i[0])?i[0].outlets:{[he]:i}}function Ky(i,t,e){if(i??=new Te([],{}),i.segments.length===0&&i.hasChildren())return Ks(i,t,e);let n=IE(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndexo!==he)&&i.children[he]&&i.numberOfChildren===1&&i.children[he].segments.length===0){let o=Ks(i.children[he],t,e);return new Te(i.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Ky(i.children[o],t,s))}),Object.entries(i.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new Te(i.segments,r)}}function IE(i,t,e){let n=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let s=i.segments[r],a=e[n];if(Js(a))break;let l=`${a}`,d=n0&&l===void 0)break;if(l&&d&&typeof d=="object"&&d.outlets===void 0){if(!Py(l,d,s))return o;n+=2}else{if(!Py(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function fg(i,t,e){let n=i.segments.slice(0,t),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(t[e]=fg(new Te([],{}),0,n))}),t}function Oy(i){let t={};return Object.entries(i).forEach(([e,n])=>t[e]=`${n}`),t}function Py(i,t,e){return i==e.path&&Ti(t,e.parameters)}var Zs="imperative",bt=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(bt||{}),Jt=class{constructor(t,e){this.id=t,this.url=e}},ea=class extends Jt{constructor(t,e,n="imperative",r=null){super(t,e),this.type=bt.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},gr=class extends Jt{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n,this.type=bt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},zt=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(zt||{}),bg=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(bg||{}),En=class extends Jt{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=bt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},pr=class extends Jt{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=bt.NavigationSkipped}},ta=class extends Jt{constructor(t,e,n,r){super(t,e),this.error=n,this.target=r,this.type=bt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Dl=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vg=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xg=class extends Jt{constructor(t,e,n,r,o){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=bt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_g=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yg=class extends Jt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=bt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wg=class{constructor(t){this.route=t,this.type=bt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cg=class{constructor(t){this.route=t,this.type=bt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ig=class{constructor(t){this.snapshot=t,this.type=bt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kg=class{constructor(t){this.snapshot=t,this.type=bt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eg=class{constructor(t){this.snapshot=t,this.type=bt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sg=class{constructor(t){this.snapshot=t,this.type=bt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ia=class{},na=class{constructor(t){this.url=t}};var Dg=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ol,this.attachRef=null}},Ol=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Dg,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Tl=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=Tg(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){let e=Tg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=Mg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Mg(t,this._root).map(e=>e.value)}};function Tg(i,t){if(i===t.value)return t;for(let e of t.children){let n=Tg(i,e);if(n)return n}return null}function Mg(i,t){if(i===t.value)return[t];for(let e of t.children){let n=Mg(i,e);if(n.length)return n.unshift(t),n}return[]}var Lt=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function Eo(i){let t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}var Ml=class extends Tl{constructor(t,e){super(t),this.snapshot=e,Bg(this,t)}toString(){return this.snapshot.toString()}};function Zy(i){let t=EE(i),e=new nt([new mr("",{})]),n=new nt({}),r=new nt({}),o=new nt({}),s=new nt(""),a=new Fo(e,n,o,s,r,he,i,t.root);return a.snapshot=t.root,new Ml(new Lt(a,[]),t)}function EE(i){let t={},e={},n={},r="",o=new ra([],t,n,r,e,he,i,null,{});return new Fl("",new Lt(o,[]))}var Fo=class{constructor(t,e,n,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(le(d=>d[aa]))??te(void 0),this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(le(t=>To(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(le(t=>To(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function zg(i,t,e="emptyOnly"){let n,{routeConfig:r}=i;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:V(V({},t.params),i.params),data:V(V({},t.data),i.data),resolve:V(V(V(V({},i.data),t.data),r?.data),i._resolvedData)}:n={params:V({},i.params),data:V({},i.data),resolve:V(V({},i.data),i._resolvedData??{})},r&&Jy(r)&&(n.resolve[aa]=r.title),n}var ra=class{get title(){return this.data?.[aa]}constructor(t,e,n,r,o,s,a,l,d){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=d}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??=To(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=To(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Fl=class extends Tl{constructor(t,e){super(e),this.url=t,Bg(this,e)}toString(){return Xy(this._root)}};function Bg(i,t){t.value._routerState=i,t.children.forEach(e=>Bg(i,e))}function Xy(i){let t=i.children.length>0?` { ${i.children.map(Xy).join(", ")} } `:"";return`${i.value}${t}`}function dg(i){if(i.snapshot){let t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Ti(t.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),Ti(t.params,e.params)||i.paramsSubject.next(e.params),tE(t.url,e.url)||i.urlSubject.next(e.url),Ti(t.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Fg(i,t){let e=Ti(i.params,t.params)&&oE(i.url,t.url),n=!i.parent!=!t.parent;return e&&!n&&(!i.parent||Fg(i.parent,t.parent))}function Jy(i){return typeof i.title=="string"||i.title===null}var Hg=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new W,this.deactivateEvents=new W,this.attachEvents=new W,this.detachEvents=new W,this.parentContexts=_(Ol),this.location=_(Ei),this.changeDetector=_(B),this.environmentInjector=_(xo),this.inputBinder=_($g,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Me(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Me(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Me(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Me(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,d=new Rg(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:d,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[G]});let i=t;return i})(),Rg=class i{__ngOutletInjector(t){return new i(this.route,this.childContexts,t)}constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Fo?this.route:t===Ol?this.childContexts:this.parent.get(t,e)}},$g=new K("");function SE(i,t,e){let n=oa(i,t._root,e?e._root:void 0);return new Ml(n,t)}function oa(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=t.value;let r=DE(i,t,e);return new Lt(n,r)}else{if(i.shouldAttach(t.value)){let o=i.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>oa(i,a)),s}}let n=TE(t.value),r=t.children.map(o=>oa(i,o));return new Lt(n,r)}}function DE(i,t,e){return t.children.map(n=>{for(let r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return oa(i,n,r);return oa(i,n)})}function TE(i){return new Fo(new nt(i.url),new nt(i.params),new nt(i.queryParams),new nt(i.fragment),new nt(i.data),i.outlet,i.component,i)}var ew="ngNavigationCancelingError";function tw(i,t){let{redirectTo:e,navigationBehaviorOptions:n}=Mo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=iw(!1,zt.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r}function iw(i,t){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[ew]=!0,e.cancellationCode=t,e}function ME(i){return nw(i)&&Mo(i.url)}function nw(i){return!!i&&i[ew]}var FE=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["ng-component"]],standalone:!0,features:[Oe],decls:1,vars:0,template:function(r,o){r&1&&b(0,"router-outlet")},dependencies:[Hg],encapsulation:2});let i=t;return i})();function RE(i,t){return i.providers&&!i._injector&&(i._injector=A_(i.providers,t,`Route: ${i.path}`)),i._injector??t}function Ug(i){let t=i.children&&i.children.map(Ug),e=t?Be(V({},i),{children:t}):V({},i);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==he&&(e.component=FE),e}function Mi(i){return i.outlet||he}function AE(i,t){let e=i.filter(n=>Mi(n)===t);return e.push(...i.filter(n=>Mi(n)!==t)),e}function ca(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let t=i.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var OE=(i,t,e,n)=>le(r=>(new Ag(t,r.targetRouterState,r.currentRouterState,e,n).activate(i),r)),Ag=class{constructor(t,e,n,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),dg(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){let r=Eo(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,e,n){let r=t.value,o=e?e.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,e,n){let r=Eo(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Sg(o.value.snapshot))}),t.children.length&&this.forwardEvent(new kg(t.value.snapshot))}activateRoutes(t,e,n){let r=t.value,o=e?e.value:null;if(dg(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),dg(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=ca(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},Rl=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Do=class{constructor(t,e){this.component=t,this.route=e}};function PE(i,t,e){let n=i._root,r=t?t._root:null;return Ys(n,r,e,[n.value])}function NE(i){let t=i.routeConfig?i.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:i,guards:t}}function Ao(i,t){let e=Symbol(),n=t.get(i,e);return n===e?typeof i=="function"&&!x_(i)?i:t.get(i):n}function Ys(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Eo(t);return i.children.forEach(s=>{jE(s,o[s.value.outlet],e,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Xs(a,e.getContext(s),r)),r}function jE(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,s=t?t.value:null,a=e?e.getContext(i.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=VE(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Rl(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ys(i,t,a?a.children:null,n,r):Ys(i,t,e,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Do(a.outlet.component,s))}else s&&Xs(t,a,r),r.canActivateChecks.push(new Rl(n)),o.component?Ys(i,null,a?a.children:null,n,r):Ys(i,null,e,n,r);return r}function VE(i,t,e){if(typeof e=="function")return e(i,t);switch(e){case"pathParamsChange":return!hr(i.url,t.url);case"pathParamsOrQueryParamsChange":return!hr(i.url,t.url)||!Ti(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fg(i,t)||!Ti(i.queryParams,t.queryParams);case"paramsChange":default:return!Fg(i,t)}}function Xs(i,t,e){let n=Eo(i),r=i.value;Object.entries(n).forEach(([o,s])=>{r.component?t?Xs(s,t.children.getContext(o),e):Xs(s,null,e):Xs(s,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new Do(t.outlet.component,r)):e.canDeactivateChecks.push(new Do(null,r)):e.canDeactivateChecks.push(new Do(null,r))}function la(i){return typeof i=="function"}function LE(i){return typeof i=="boolean"}function zE(i){return i&&la(i.canLoad)}function BE(i){return i&&la(i.canActivate)}function HE(i){return i&&la(i.canActivateChild)}function $E(i){return i&&la(i.canDeactivate)}function UE(i){return i&&la(i.canMatch)}function rw(i){return i instanceof l_||i?.name==="EmptyError"}var yl=Symbol("INITIAL_VALUE");function Ro(){return Xt(i=>gn(i.map(t=>t.pipe(jt(1),Xc(yl)))).pipe(le(t=>{for(let e of t)if(e!==!0){if(e===yl)return yl;if(e===!1||e instanceof kn)return e}return!0}),kt(t=>t!==yl),jt(1)))}function WE(i,t){return Zt(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?te(Be(V({},e),{guardsResult:!0})):GE(s,n,r,i).pipe(Zt(a=>a&&LE(a)?qE(n,o,i,t):te(a)),le(a=>Be(V({},e),{guardsResult:a})))})}function GE(i,t,e,n){return Ct(i).pipe(Zt(r=>XE(r.component,r.route,e,t,n)),bn(r=>r!==!0,!0))}function qE(i,t,e,n){return Ct(t).pipe(ir(r=>Qc(QE(r.route.parent,n),YE(r.route,n),ZE(i,r.path,e),KE(i,r.route,e))),bn(r=>r!==!0,!0))}function YE(i,t){return i!==null&&t&&t(new Eg(i)),te(!0)}function QE(i,t){return i!==null&&t&&t(new Ig(i)),te(!0)}function KE(i,t,e){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return te(!0);let r=n.map(o=>jh(()=>{let s=ca(t)??e,a=Ao(o,s),l=BE(a)?a.canActivate(t,i):qi(s,()=>a(t,i));return Sn(l).pipe(bn())}));return te(r).pipe(Ro())}function ZE(i,t,e){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>NE(s)).filter(s=>s!==null).map(s=>jh(()=>{let a=s.guards.map(l=>{let d=ca(s.node)??e,p=Ao(l,d),w=HE(p)?p.canActivateChild(n,i):qi(d,()=>p(n,i));return Sn(w).pipe(bn())});return te(a).pipe(Ro())}));return te(o).pipe(Ro())}function XE(i,t,e,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return te(!0);let s=o.map(a=>{let l=ca(t)??r,d=Ao(a,l),p=$E(d)?d.canDeactivate(i,t,e,n):qi(l,()=>d(i,t,e,n));return Sn(p).pipe(bn())});return te(s).pipe(Ro())}function JE(i,t,e,n){let r=t.canLoad;if(r===void 0||r.length===0)return te(!0);let o=r.map(s=>{let a=Ao(s,i),l=zE(a)?a.canLoad(t,e):qi(i,()=>a(t,e));return Sn(l)});return te(o).pipe(Ro(),ow(n))}function ow(i){return a_(He(t=>{if(Mo(t))throw tw(i,t)}),le(t=>t===!0))}function eS(i,t,e,n){let r=t.canMatch;if(!r||r.length===0)return te(!0);let o=r.map(s=>{let a=Ao(s,i),l=UE(a)?a.canMatch(t,e):qi(i,()=>a(t,e));return Sn(l)});return te(o).pipe(Ro(),ow(n))}var sa=class{constructor(t){this.segmentGroup=t||null}},Al=class extends Error{constructor(t){super(),this.urlTree=t}};function ko(i){return er(new sa(i))}function tS(i){return er(new Me(4e3,!1))}function iS(i){return er(iw(!1,zt.GuardRejected))}var Og=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return te(n);if(r.numberOfChildren>1||!r.children[he])return tS(t.redirectTo);r=r.children[he]}}applyRedirectCommands(t,e,n){let r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,n);if(e.startsWith("/"))throw new Al(r);return r}applyRedirectCreateUrlTree(t,e,n,r){let o=this.createSegmentGroup(t,e.root,n,r);return new kn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let n={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=e[a]}else n[r]=o}),n}createSegmentGroup(t,e,n,r){let o=this.createSegments(t,e.segments,n,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,n,r)}),new Te(o,s)}createSegments(t,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,e,n){let r=n[e.path.substring(1)];if(!r)throw new Me(4001,!1);return r}findOrReturn(t,e){let n=0;for(let r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}},Pg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function nS(i,t,e,n,r){let o=Wg(i,t,e);return o.matched?(n=RE(t,n),eS(n,t,e,r).pipe(le(s=>s===!0?o:V({},Pg)))):te(o)}function Wg(i,t,e){if(t.path==="**")return rS(e);if(t.path==="")return t.pathMatch==="full"&&(i.hasChildren()||e.length>0)?V({},Pg):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||eE)(e,i,t);if(!r)return V({},Pg);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?V(V({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function rS(i){return{matched:!0,parameters:i.length>0?Vy(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function Ny(i,t,e,n){return e.length>0&&aS(i,e,n)?{segmentGroup:new Te(t,sS(n,new Te(e,i.children))),slicedSegments:[]}:e.length===0&&cS(i,e,n)?{segmentGroup:new Te(i.segments,oS(i,e,n,i.children)),slicedSegments:e}:{segmentGroup:new Te(i.segments,i.children),slicedSegments:e}}function oS(i,t,e,n){let r={};for(let o of e)if(Pl(i,t,o)&&!n[Mi(o)]){let s=new Te([],{});r[Mi(o)]=s}return V(V({},n),r)}function sS(i,t){let e={};e[he]=t;for(let n of i)if(n.path===""&&Mi(n)!==he){let r=new Te([],{});e[Mi(n)]=r}return e}function aS(i,t,e){return e.some(n=>Pl(i,t,n)&&Mi(n)!==he)}function cS(i,t,e){return e.some(n=>Pl(i,t,n))}function Pl(i,t,e){return(i.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function lS(i,t,e,n){return Mi(i)!==n&&(n===he||!Pl(t,e,i))?!1:Wg(t,i,e).matched}function dS(i,t,e){return t.length===0&&!i.children[e]}var Ng=class{};function uS(i,t,e,n,r,o,s="emptyOnly"){return new jg(i,t,e,n,r,s,o).recognize()}var mS=31,jg=class{constructor(t,e,n,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Og(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new Me(4002,`'${t.segmentGroup}'`)}recognize(){let t=Ny(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(le(e=>{let n=new ra([],Object.freeze({}),Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),r=new Lt(n,e),o=new Fl("",r),s=xE(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,he).pipe(pn(n=>{if(n instanceof Al)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof sa?this.noMatchError(n):n}))}inheritParamsAndData(t,e){let n=t.value,r=zg(n,e,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,e,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,e,n):this.processSegment(t,e,n,n.segments,r,!0).pipe(le(o=>o instanceof Lt?[o]:[]))}processChildren(t,e,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return Ct(r).pipe(ir(o=>{let s=n.children[o],a=AE(e,o);return this.processSegmentGroup(t,a,s,o)}),p_((o,s)=>(o.push(...s),o)),Vh(null),h_(),Zt(o=>{if(o===null)return ko(n);let s=sw(o);return hS(s),te(s)}))}processSegment(t,e,n,r,o,s){return Ct(e).pipe(ir(a=>this.processSegmentAgainstRoute(a._injector??t,e,a,n,r,o,s).pipe(pn(l=>{if(l instanceof sa)return te(null);throw l}))),bn(a=>!!a),pn(a=>{if(rw(a))return dS(n,r,o)?te(new Ng):ko(n);throw a}))}processSegmentAgainstRoute(t,e,n,r,o,s,a){return lS(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,n,o,s):ko(r):ko(r)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=Wg(e,r,o);if(!a)return ko(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mS&&(this.allowRedirects=!1));let w=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,d);return this.applyRedirects.lineralizeSegments(r,w).pipe(Zt(E=>this.processSegment(t,n,e,E.concat(p),s,!1)))}matchSegmentAgainstRoute(t,e,n,r,o){let s=nS(e,n,r,t,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(Xt(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,r).pipe(Xt(({routes:l})=>{let d=n._loadedInjector??t,{consumedSegments:p,remainingSegments:w,parameters:E}=a,Q=new ra(p,E,Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,pS(n),Mi(n),n.component??n._loadedComponent??null,n,fS(n)),{segmentGroup:ne,slicedSegments:ce}=Ny(e,p,w,l);if(ce.length===0&&ne.hasChildren())return this.processChildren(d,l,ne).pipe(le(Y=>Y===null?null:new Lt(Q,Y)));if(l.length===0&&ce.length===0)return te(new Lt(Q,[]));let O=Mi(n)===o;return this.processSegment(d,l,ne,ce,O?he:o,!0).pipe(le(Y=>new Lt(Q,Y instanceof Lt?[Y]:[])))}))):ko(e)))}getChildConfig(t,e,n){return e.children?te({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?te({routes:e._loadedRoutes,injector:e._loadedInjector}):JE(t,e,n,this.urlSerializer).pipe(Zt(r=>r?this.configLoader.loadChildren(t,e).pipe(He(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):iS(e))):te({routes:[],injector:t})}};function hS(i){i.sort((t,e)=>t.value.outlet===he?-1:e.value.outlet===he?1:t.value.outlet.localeCompare(e.value.outlet))}function gS(i){let t=i.value.routeConfig;return t&&t.path===""}function sw(i){let t=[],e=new Set;for(let n of i){if(!gS(n)){t.push(n);continue}let r=t.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):t.push(n)}for(let n of e){let r=sw(n.children);t.push(new Lt(n.value,r))}return t.filter(n=>!e.has(n))}function pS(i){return i.data||{}}function fS(i){return i.resolve||{}}function bS(i,t,e,n,r,o){return Zt(s=>uS(i,t,e,n,s.extractedUrl,r,o).pipe(le(({state:a,tree:l})=>Be(V({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function vS(i,t){return Zt(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return te(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let d of aw(l))s.add(d);let a=0;return Ct(s).pipe(ir(l=>o.has(l)?xS(l,n,i,t):(l.data=zg(l,l.parent,i).resolve,te(void 0))),He(()=>a++),Lh(1),Zt(l=>a===s.size?te(e):Ii))})}function aw(i){let t=i.children.map(e=>aw(e)).flat();return[i,...t]}function xS(i,t,e,n){let r=i.routeConfig,o=i._resolve;return r?.title!==void 0&&!Jy(r)&&(o[aa]=r.title),_S(o,i,t,n).pipe(le(s=>(i._resolvedData=s,i.data=zg(i,i.parent,e).resolve,null)))}function _S(i,t,e,n){let r=hg(i);if(r.length===0)return te({});let o={};return Ct(r).pipe(Zt(s=>yS(i[s],t,e,n).pipe(bn(),He(a=>{o[s]=a}))),Lh(1),m_(o),pn(s=>rw(s)?Ii:er(s)))}function yS(i,t,e,n){let r=ca(t)??n,o=Ao(i,r),s=o.resolve?o.resolve(t,e):qi(r,()=>o(t,e));return Sn(s)}function ug(i){return Xt(t=>{let e=i(t);return e?Ct(e).pipe(le(()=>t)):te(t)})}var cw=(()=>{let t=class t{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===he);return r}getResolvedTitleForRoute(n){return n.data[aa]}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(wS),providedIn:"root"});let i=t;return i})(),wS=(()=>{let t=class t extends cw{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};t.\u0275fac=function(r){return new(r||t)(v(My))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Gg=new K("",{providedIn:"root",factory:()=>({})}),qg=new K(""),CS=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=_($h)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return te(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Sn(n.loadComponent()).pipe(le(lw),He(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),fn(()=>{this.componentLoaders.delete(n)})),o=new Ph(r,()=>new ke).pipe(Oh());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return te({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=IS(r,this.compiler,n,this.onLoadEndListener).pipe(fn(()=>{this.childrenLoaders.delete(r)})),a=new Ph(s,()=>new ke).pipe(Oh());return this.childrenLoaders.set(r,a),a}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function IS(i,t,e,n){return Sn(i.loadChildren()).pipe(le(lw),Zt(r=>r instanceof R_||Array.isArray(r)?te(r):Ct(t.compileModuleAsync(r))),le(r=>{n&&n(i);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(qg,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ug),injector:o}}))}function kS(i){return i&&typeof i=="object"&&"default"in i}function lw(i){return kS(i)?i.default:i}var Yg=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(ES),providedIn:"root"});let i=t;return i})(),ES=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),SS=new K("");var DS=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ke,this.transitionAbortSubject=new ke,this.configLoader=_(CS),this.environmentInjector=_(xo),this.urlSerializer=_(Lg),this.rootContexts=_(Ol),this.location=_(ll),this.inputBindingEnabled=_($g,{optional:!0})!==null,this.titleStrategy=_(cw),this.options=_(Gg,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=_(Yg),this.createViewTransition=_(SS,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>te(void 0),this.rootComponentType=null;let n=o=>this.events.next(new wg(o)),r=o=>this.events.next(new Cg(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(Be(V(V({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new nt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zs,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(kt(s=>s.id!==0),le(s=>Be(V({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Xt(s=>{let a=!1,l=!1;return te(s).pipe(Xt(d=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",zt.SupersededByNewNavigation),Ii;this.currentTransition=s,this.currentNavigation={id:d.id,initialUrl:d.rawUrl,extractedUrl:d.extractedUrl,trigger:d.source,extras:d.extras,previousNavigation:this.lastSuccessfulNavigation?Be(V({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let p=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),w=d.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!p&&w!=="reload"){let E="";return this.events.next(new pr(d.id,this.urlSerializer.serialize(d.rawUrl),E,bg.IgnoredSameUrlNavigation)),d.resolve(null),Ii}if(this.urlHandlingStrategy.shouldProcessUrl(d.rawUrl))return te(d).pipe(Xt(E=>{let Q=this.transitions?.getValue();return this.events.next(new ea(E.id,this.urlSerializer.serialize(E.extractedUrl),E.source,E.restoredState)),Q!==this.transitions?.getValue()?Ii:Promise.resolve(E)}),bS(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),He(E=>{s.targetSnapshot=E.targetSnapshot,s.urlAfterRedirects=E.urlAfterRedirects,this.currentNavigation=Be(V({},this.currentNavigation),{finalUrl:E.urlAfterRedirects});let Q=new Dl(E.id,this.urlSerializer.serialize(E.extractedUrl),this.urlSerializer.serialize(E.urlAfterRedirects),E.targetSnapshot);this.events.next(Q)}));if(p&&this.urlHandlingStrategy.shouldProcessUrl(d.currentRawUrl)){let{id:E,extractedUrl:Q,source:ne,restoredState:ce,extras:O}=d,Y=new ea(E,this.urlSerializer.serialize(Q),ne,ce);this.events.next(Y);let Ie=Zy(this.rootComponentType).snapshot;return this.currentTransition=s=Be(V({},d),{targetSnapshot:Ie,urlAfterRedirects:Q,extras:Be(V({},O),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=Q,te(s)}else{let E="";return this.events.next(new pr(d.id,this.urlSerializer.serialize(d.extractedUrl),E,bg.IgnoredByUrlHandlingStrategy)),d.resolve(null),Ii}}),He(d=>{let p=new vg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),le(d=>(this.currentTransition=s=Be(V({},d),{guards:PE(d.targetSnapshot,d.currentSnapshot,this.rootContexts)}),s)),WE(this.environmentInjector,d=>this.events.next(d)),He(d=>{if(s.guardsResult=d.guardsResult,Mo(d.guardsResult))throw tw(this.urlSerializer,d.guardsResult);let p=new xg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot,!!d.guardsResult);this.events.next(p)}),kt(d=>d.guardsResult?!0:(this.cancelNavigationTransition(d,"",zt.GuardRejected),!1)),ug(d=>{if(d.guards.canActivateChecks.length)return te(d).pipe(He(p=>{let w=new _g(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(w)}),Xt(p=>{let w=!1;return te(p).pipe(vS(this.paramsInheritanceStrategy,this.environmentInjector),He({next:()=>w=!0,complete:()=>{w||this.cancelNavigationTransition(p,"",zt.NoDataFromResolver)}}))}),He(p=>{let w=new yg(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(w)}))}),ug(d=>{let p=w=>{let E=[];w.routeConfig?.loadComponent&&!w.routeConfig._loadedComponent&&E.push(this.configLoader.loadComponent(w.routeConfig).pipe(He(Q=>{w.component=Q}),le(()=>{})));for(let Q of w.children)E.push(...p(Q));return E};return gn(p(d.targetSnapshot.root)).pipe(Vh(null),jt(1))}),ug(()=>this.afterPreactivation()),Xt(()=>{let{currentSnapshot:d,targetSnapshot:p}=s,w=this.createViewTransition?.(this.environmentInjector,d.root,p.root);return w?Ct(w).pipe(le(()=>s)):te(s)}),le(d=>{let p=SE(n.routeReuseStrategy,d.targetSnapshot,d.currentRouterState);return this.currentTransition=s=Be(V({},d),{targetRouterState:p}),this.currentNavigation.targetRouterState=p,s}),He(()=>{this.events.next(new ia)}),OE(this.rootContexts,n.routeReuseStrategy,d=>this.events.next(d),this.inputBindingEnabled),jt(1),He({next:d=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new gr(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects))),this.titleStrategy?.updateTitle(d.targetRouterState.snapshot),d.resolve(!0)},complete:()=>{a=!0}}),re(this.transitionAbortSubject.pipe(He(d=>{throw d}))),fn(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",zt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),pn(d=>{if(l=!0,nw(d))this.events.next(new En(s.id,this.urlSerializer.serialize(s.extractedUrl),d.message,d.cancellationCode)),ME(d)?this.events.next(new na(d.url)):s.resolve(!1);else{this.events.next(new ta(s.id,this.urlSerializer.serialize(s.extractedUrl),d,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(d))}catch(p){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(p)}}return Ii}))}))}cancelNavigationTransition(n,r,o){let s=new En(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function TS(i){return i!==Zs}var MS=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(FS),providedIn:"root"});let i=t;return i})(),Vg=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},FS=(()=>{let t=class t extends Vg{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),dw=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:()=>_(RS),providedIn:"root"});let i=t;return i})(),RS=(()=>{let t=class t extends dw{constructor(){super(...arguments),this.location=_(ll),this.urlSerializer=_(Lg),this.options=_(Gg,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=_(Yg),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new kn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Zy(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ea)this.stateMemento=this.createStateMemento();else if(n instanceof pr)this.rawUrlTree=r.initialUrl;else if(n instanceof Dl){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof ia?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof En&&(n.code===zt.GuardRejected||n.code===zt.NoDataFromResolver)?this.restoreHistory(r):n instanceof ta?this.restoreHistory(r,!0):n instanceof gr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=V(V({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=V(V({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Qs=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Qs||{});function AS(i,t){i.events.pipe(kt(e=>e instanceof gr||e instanceof En||e instanceof ta||e instanceof pr),le(e=>e instanceof gr||e instanceof pr?Qs.COMPLETE:(e instanceof En?e.code===zt.Redirect||e.code===zt.SupersededByNewNavigation:!1)?Qs.REDIRECTING:Qs.FAILED),kt(e=>e!==Qs.REDIRECTING),jt(1)).subscribe(()=>{t()})}function OS(i){throw i}var PS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oo=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=_(sl),this.stateManager=_(dw),this.options=_(Gg,{optional:!0})||{},this.pendingTasks=_(nl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=_(DS),this.urlSerializer=_(Lg),this.location=_(ll),this.urlHandlingStrategy=_(Yg),this._events=new ke,this.errorHandler=this.options.errorHandler||OS,this.navigated=!1,this.routeReuseStrategy=_(MS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=_(qg,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!_($g,{optional:!0}),this.eventsSubscription=new Jn,this.isNgZoneEnabled=_(de)instanceof de&&de.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof En&&r.code!==zt.Redirect&&r.code!==zt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof gr)this.navigated=!0;else if(r instanceof na){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||TS(o.source)};this.scheduleNavigation(a,Zs,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}VS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let d=V({},o);delete d.navigationId,delete d.\u0275routerPageId,Object.keys(d).length!==0&&(s.state=d)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ug),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:d}=r,p=d?this.currentUrlTree.fragment:a,w=null;switch(l){case"merge":w=V(V({},this.currentUrlTree.queryParams),s);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=s||null}w!==null&&(w=this.removeEmptyProps(w));let E;try{let Q=o?o.snapshot:this.routerState.snapshot.root;E=qy(Q)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),E=this.currentUrlTree.root}return Yy(E,n,w,p??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Mo(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Zs,null,r)}navigate(n,r={skipLocationChange:!1}){return jS(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=V({},PS):r===!1?o=V({},NS):o=r,Mo(n))return Ry(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Ry(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,d,p;a?(l=a.resolve,d=a.reject,p=a.promise):p=new Promise((E,Q)=>{l=E,d=Q});let w=this.pendingTasks.add();return AS(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(w))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:d,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(E=>Promise.reject(E))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function jS(i){for(let t=0;te.\u0275providers)])}function zS(i){return i.routerState.root}function BS(){let i=_(ve);return t=>{let e=i.get(Et);if(t!==e.components[0])return;let n=i.get(Oo),r=i.get(HS);i.get($S)===1&&n.initialNavigation(),i.get(US,null,zh.Optional)?.setUpPreloading(),i.get(LS,null,zh.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var HS=new K("",{factory:()=>new ke}),$S=new K("",{providedIn:"root",factory:()=>1});var US=new K("");var Nl=class i{token;stringKey;constructor(t){this.token=t,this.stringKey=this.generateStringKey()}static from(t){return new i(t)}toString(){return this.stringKey}generateStringKey(){return typeof this.token!="string"?this.token.toString().split(" ")[1]||"":this.token}},da=class extends Nl{constructor(t){super(t)}getError(){return typeof this.token=="string"?"Key not found for the token: "+this.token:"Key not found for the token: "+this.token.toString()}},Qg=class{records=new Map;getKey(t){let e=this.records.get(t);return e||new da(t)}getKeyAndTryRegister(t,e){return this.has(t)||this.set(t,e),this.getKey(t)}has(t){return this.records.has(t)}set(t,e){this.records.set(t,Nl.from(t))}clear(){this.records.clear()}},Kg=class{providers=new Map;get(t){let e=this.providers.get(t);if(!e)throw new Error(`There is no provider for ${t.toString()}.`);return e}has(t){return this.providers.has(t)}set(t,e){this.providers.set(t,e)}clear(){this.providers.clear()}},Po=class{serviceToken;constructor(t){this.serviceToken=t}getToken(){return typeof this.serviceToken=="object"?this.serviceToken.inject:this.serviceToken}isOptional(){return typeof this.serviceToken!="string"&&typeof this.serviceToken=="object"&&this.serviceToken.optional!==void 0?this.serviceToken.optional:!1}isCollection(){return typeof this.serviceToken!="string"&&typeof this.serviceToken=="object"&&this.serviceToken.collection?this.serviceToken.collection:!1}},ua=class{provider;constructor(t){this.provider=t}getDeps(){return(this.provider.services||[]).map(t=>new Po(t))}},Zg=class extends ua{constructor(t){super(t)}create(t){return new this.provider(...t)}},Xg=class extends ua{constructor(t){super(t)}getDeps(){return[]}create(t){return this.provider}},Jg=class extends ua{constructor(t){super(t)}getDeps(){return(this.provider.deps||[]).map(t=>new Po(t))}create(t){return this.provider.create(...t)}},ma=class{},ep=class extends ma{providers=[];getDeps(){return this.providers.map(t=>(t.services||[]).map(e=>new Po(e)))}create(t){return t.map((e,n)=>new this.providers[n](...e))}addProvider(t){this.providers.push(t)}},tp=class extends ma{providers=[];getDeps(){return this.providers.map(t=>(t.deps||[]).map(e=>new Po(e)))}create(t){return t.map((e,n)=>this.providers[n].create(...e))}addProvider(t){this.providers.push(t)}},ip=class extends ma{providers=[];getDeps(){return[]}create(t){return[...this.providers]}addProvider(t){this.providers.push(t)}},np=class{keyRegister;providerManager=new Kg;collectionProviders=new Map;constructor(t){this.keyRegister=t}provide(t,e){return e===void 0?this.provide(t,t):this.provideClass(t,e)}provideClass(t,e){return this.addProvider(t,e,n=>new Zg(n))}provideValue(t,e){return this.addProvider(t,e,n=>new Xg(n))}provideFactory(t,e){return this.addProvider(t,e,n=>new Jg(n))}provideCollection(t,e){return this.addCollectionProvider(t,e,()=>new ep)}provideFactoryCollection(t,e){return this.addCollectionProvider(t,e,()=>new tp)}provideValueCollection(t,e){return this.addCollectionProvider(t,e,()=>new ip)}clear(){this.providerManager.clear(),this.collectionProviders.clear()}getRecordFactory(t){return this.providerManager.get(t)}getCollectionRecordFactory(t){return this.collectionProviders.get(t)}addProvider(t,e,n){let r=this.keyRegister.getKeyAndTryRegister(t,e);this.providerManager.set(r,n(e))}addCollectionProvider(t,e,n){let r=this.keyRegister.getKeyAndTryRegister(t,e);if(this.collectionProviders.has(r)){let o=this.collectionProviders.get(r);o&&o.addProvider(e)}else{let o=n();o.addProvider(e),this.collectionProviders.set(r,o)}}},rp=class{records=new Map;get(t){return this.records.get(t)}has(t){return this.records.has(t)}set(t,e){this.records.set(t,e)}clear(){this.records.clear()}},op=class{keyRegister;containerProvider;recordManager=new rp;collectionRecords=new Map;constructor(t,e){this.keyRegister=t,this.containerProvider=e}resolve(t){return this.innerResolve(t)}resolveCollection(t){return this.innerResolveCollection(t)}clear(){this.recordManager.clear(),this.collectionRecords.clear()}resolveDependencies(t){return t.getDeps().map(n=>n.isCollection()?this.innerResolveCollection(n.getToken(),n.isOptional()):this.resolveDependency(n))}resolveDependency(t){return this.innerResolve(t.getToken(),t.isOptional())}innerResolve(t,e){let n=this.keyRegister.getKey(t);if(n instanceof da){if(e)return null;throw new Error(n.getError())}if(!this.recordManager.has(n)){let r=this.containerProvider.getRecordFactory(n),o=this.resolveDependencies(r),s=r.create(o);this.recordManager.set(n,s)}return this.recordManager.get(n)}innerResolveCollection(t,e=!1){let n=this.keyRegister.getKey(t);if(n instanceof da){if(e)return null;throw new Error(n.getError())}if(!this.collectionRecords.has(n)){let r=this.containerProvider.getCollectionRecordFactory(n);if(r){let o=r.getDeps().map(a=>a.map(l=>l.isCollection()?this.innerResolveCollection(l.getToken(),l.isOptional()):this.resolveDependency(l))),s=r.create(o);this.collectionRecords.set(n,s)}}return this.collectionRecords.get(n)}},sp=class{keyRegister=new Qg;containerProvider=new np(this.keyRegister);containerRecord=new op(this.keyRegister,this.containerProvider);resolve(t){return this.containerRecord.resolve(t)}resolveCollection(t){return this.containerRecord.resolveCollection(t)}provide(t,e){return this.containerProvider.provide(t,e),this}provideClass(t,e){return this.containerProvider.provideClass(t,e),this}provideValue(t,e){return this.containerProvider.provideValue(t,e),this}provideFactory(t,e){return this.containerProvider.provideFactory(t,e),this}provideCollection(t,e){return this.containerProvider.provideCollection(t,e),this}provideFactoryCollection(t,e){return this.containerProvider.provideFactoryCollection(t,e),this}provideValueCollection(t,e){return this.containerProvider.provideValueCollection(t,e),this}clear(){this.keyRegister.clear(),this.containerProvider.clear(),this.containerRecord.clear()}clearOnlyRecords(){this.containerRecord.clear()}};function bp(){return new sp}var jl=class{subscriber;closed=!1;constructor(t,e){this.subscriber=t,e!=null&&(this.closed=e)}unsubscribe(){this.closed||(this.closed=!0,this.subscriber.unsubscribe())}getFinalize(){return this.subscriber.getFinalize()}},Dt=class{observer;finalize=()=>{};completed=!1;closed=!1;constructor(t){this.observer=t}next(t){this.isCompleted()||this.observer&&this.observer.next&&this.observer.next(t)}error(t){this.completed||(this.observer&&this.observer.error&&this.observer.error(t),this.unsubscribe())}complete(){this.completed||(this.completed=!0,this.observer&&this.observer.complete&&this.observer.complete(),this.unsubscribe())}unsubscribe(){this.closed||(this.closed=!0,this.completed=!0,this.finalize())}setFinalize(t){t&&typeof t=="function"&&(this.finalize=t)}getFinalize(){return this.finalize}isCompleted(){return this.completed}isClosed(){return this.closed}getObserver(){return this.observer}},ot=class{generatorFn;source;generatorFinalize;constructor(t){this.generatorFn=t}pipe(...t){this.source=this;for(let e of t)this.source=this.innerPipe(e,this.source);return this.source}subscribe(t){let e;if(t instanceof Dt)e=t;else if(t!==null&&this.isObserver(t)){let{next:n,error:r,complete:o}=t;e=this.createSubscriber(n,r,o)}else e=this.createSubscriber(arguments[0],arguments[1],arguments[2]);return this.generatorFn&&(this.generatorFinalize=this.generatorFn(e),e.setFinalize(this.generatorFinalize)),this.getSubscription(e)}createSubscriber(t,e,n){return new Dt({next:t,error:e,complete:n})}getSubscription(t){return new jl(t)}innerPipe(t,e){return(n=>t(n))(e)}isObserver(t){return typeof t=="object"}};function mw(){return new jl(new Dt({}),!0)}var Ze=class extends ot{thrownError=null;isCompleted=!1;isClosed=!1;subscribers=[];constructor(){super()}next(t){if(this.verifyNotClosed(),!(this.isCompleted||this.thrownError!==null))for(let e of this.subscribers)e.next(t)}error(t){if(this.verifyNotClosed(),!this.isCompleted){this.thrownError=t;for(let e of this.subscribers)e.error(t);this.subscribers.length=0}}complete(){if(this.verifyNotClosed(),!this.isCompleted){this.isCompleted=!0;for(let t of this.subscribers)t.complete();this.subscribers.length=0}}subscribe(t){this.verifyNotClosed();let e;return t instanceof Dt?e=t:e=this.createSubscriber(arguments[0],arguments[1],arguments[2]),this.thrownError!==null?(e.error(this.thrownError),mw()):this.isCompleted?(e.complete(),mw()):(this.subscribers.push(e),this.getSubscription(e))}unsubscribe(){this.isCompleted=!0,this.isClosed=!0,this.subscribers.length=0}toObservable(){return new ot(t=>{let e=this.subscribe(n=>t.next(n),n=>t.error(n),()=>t.complete());return()=>e.unsubscribe()})}verifyNotClosed(){if(this.isClosed)throw new Error("Observable already closed")}},No=class extends Ze{constructor(){super()}},Tn=(()=>{class i{static index=0;static generate(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)+`${i.index++}`}}return i})(),Vl=class{aggregateId;messageType;messageId;constructor(t,e,n=Tn.generate()){this.aggregateId=t,this.messageType=e,this.messageId=n}getMessageType(){return this.messageType}getAggregateId(){return this.aggregateId}getMessageId(){return this.messageId}toString(){return this.messageType}equalsByType(t){return this.getMessageType()===t.getMessageType()}equals(t){return this.getMessageType()===t.getMessageType()&&this.messageId===t.messageId}ofMessageType(t){return Array.isArray(t)?!!t.find(n=>this.isMessageType(n)):this.isMessageType(t)}isMessageType(t){return this.getMessageType()===t}},Zi=class extends Vl{payload;constructor(t,e,n){super(t,n),this.payload=e}isSameType(t){return this.constructor.name===t.constructor.name}getPayload(){return this.payload}};function GS(...i){return new ot(t=>{i.forEach(e=>{t.next(e)}),t.complete()})}function vp(){return new ot(i=>{i.complete()})}function Er(i){return t=>i===0?vp():new ot(e=>{let n=0,r=new Dt({next:()=>{},error:s=>e.error(s),complete:()=>e.complete()});return r.observer.next=function(s){n{i.next(o)}),r=e||(()=>{i.complete()});return new Dt({next:n,error:o=>i.error(o),complete:r})}function qS(i){return new Dt({next:t=>i.next(t),error:t=>i.error(t),complete:()=>i.complete()})}function ye(i){return t=>new ot(e=>{let n=Zl(e,r=>{i(r)&&e.next(r)});return t.subscribe(n).getFinalize()})}var Ll=class{domainEvents=[];domainEvents$=new Ze;next(t){this.domainEvents.push(t),this.domainEvents$.next(t)}findEventByType(t){return this.getEvents().reverse().find(n=>n.constructor.name===t)}waitForEvent(t){let e=this.findEventByType(t);return e?GS(e):this.waitForNextEventOccurrence(t)}waitForNextEventOccurrence(t){let e;if(t instanceof Zi)e=t.constructor.name;else if(typeof t=="string")e=t;else return new ot(n=>{n.error(new Error("Unsupported argument type."))});return this.domainEvents$.toObservable().pipe(ye(n=>n.constructor.name===e),Er(1))}getEvents(){return this.domainEvents}},ha=class extends Ze{constructor(){super()}},ga=(()=>{class i extends ot{commandsStream;constructor(e){super(),this.commandsStream=e}static services=[ha];subscribe(){return this.commandsStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofCommandHandler(...e){return this.commandsStream.toObservable().pipe(ye(n=>e.some(r=>r.forCommand(n))))}ofCreateAggregateHandler(...e){return this.commandsStream.toObservable().pipe(ye(n=>e.some(r=>r.forCommand(n))))}ofNullHandler(e,n){return this.commandsStream.toObservable().pipe(ye(r=>{if(!e&&!n)return!0;let o=!0;return e&&(o=!e.some(s=>s.forCommand(r))),n&&(o=o&&!n.some(s=>s.forCommand(r))),o}))}}return i})(),Xe=class i{value;constructor(t){return i.isValueEmpty(t)?this.value=null:this.value=t,this}static empty(){return new i(null)}static of(t){return new i(t)}static isValueEmpty(t){return typeof t>"u"||t===null}isEmpty(){return i.isValueEmpty(this.value)}isPresent(){return!this.isEmpty()}filter(t){return this.isPresent()&&t(this.value)?this:i.empty()}forEach(t){this.isPresent()&&t(this.value)}map(t){return this.isPresent()?new i(t(this.value)):i.empty()}getValueOrNullOrThrowError(){return this.value}getOrThrow(){if(this.isEmpty())throw new Error("Called getOrThrow on an empty Optional");return this.value}getOrElse(t){return this.isPresent()?this.value:t()}ifPresent(t){this.isPresent()&&t(this.value)}ifEmpty(t){this.isEmpty()&&t()}orElse(t){return this.isPresent()?this:t()}},jo=class{map=new Map;constructor(){}add(t,e){this.map.set(t,e)}get(t){return Xe.of(this.map.get(t))}has(t){return this.map.has(t)}},Vo=class{map=new Map;constructor(){}add(t,e){this.map.set(t,e)}get(t){return Xe.of(this.map.get(t))}has(t){return this.map.has(t)}},pa=class{aggregateFactoryArchive=y.resolve(jo);aggregateRepositoryArchive=y.resolve(Vo);constructor(){}register(t){if(t){let e=new Set,n=[];t.filter(r=>{e.has(r.key)||(e.add(r.key),n.push(r))}),n.forEach(r=>{let o=y.resolve(r.factory),s=y.resolve(r.repository);this.aggregateFactoryArchive.has(r.key)||this.aggregateFactoryArchive.add(r.key,o),this.aggregateRepositoryArchive.has(r.key)||this.aggregateRepositoryArchive.add(r.key,s)})}}};function Mt(i){return t=>new ot(e=>{let n=qS(e),r=new Dt({next:()=>n.complete()});return i.subscribe(r),t.subscribe(n).getFinalize()})}function Ji(i){return new gi(t=>{let e=i.subscribe(n=>t.next(n),n=>t.error(n),()=>t.complete());return()=>e.unsubscribe()})}var vt=class{hermesUnsubscribe$=new Ze;constructor(){}onDestroy(){this.hermesUnsubscribe()}takeUntil(){return re(Ji(this.hermesUnsubscribe$))}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Mt(this.hermesUnsubscribe$)}isNotStopped(){return!this.hermesUnsubscribe$.isCompleted}},fa=class extends vt{commandBus=y.resolve(ga);constructor(){super()}register(t){if(t){let e=new Set,n=[];t.filter(r=>{e.has(r.commandHandler)||(e.add(r.commandHandler),n.push(r))}),n.forEach(r=>{this.commandBus.ofCommandHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}registerAggregateCommandHandlers(t){if(t){let e=new Set,n=[];t.filter(r=>{e.has(r.createAggregateCommandHandler)||(e.add(r.createAggregateCommandHandler),n.push(r))}),n.forEach(r=>{this.commandBus.ofCreateAggregateHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}},ei=(()=>{class i extends ot{eventStream;constructor(e){super(),this.eventStream=e}static services=[No];subscribe(){return this.eventStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofEvents(e){return this.eventStream.toObservable().pipe(ye(n=>e.some(r=>this.createEventInstance(r).equalsByType(n))))}ofEventHandlers(e){return this.eventStream.toObservable().pipe(ye(n=>e.some(r=>r.forEvents([n]))))}createEventInstance(e){let n=[],r=e.constructor.length;if(n.fill(void 0,0,r),n.length===0)return new e;if(n.length===1)return new e(n[0]);if(n.length===2)return new e(n[0],n[1]);if(n.length===3)return new e(n[0],n[1],n[2]);if(n.length===4)return new e(n[0],n[1],n[2],n[3]);if(n.length===5)return new e(n[0],n[1],n[2],n[3],n[4]);throw new Error("DomainEventBus constructor out of arguments")}}return i})(),ap=(()=>{class i extends vt{domainEventBus;unsub$=new Ze;constructor(e){super(),this.domainEventBus=e}static services=[ei];init(e){if(e){let n=new Set,r=[];e.filter(o=>{n.has(o.domainEventHandler)||(n.add(o.domainEventHandler),r.push(o))}),r.forEach(o=>{this.domainEventBus.ofEventHandlers([o]).pipe(Mt(this.unsub$),this.hermesTakeUntil()).subscribe(s=>{o.handleEvent(s)})})}}reinit(e){this.stop(),this.init(e)}stop(){this.unsub$.next(),this.unsub$.complete(),this.unsub$=new Ze}}return i})(),Xl="GUI - COMMAND_LOGGER_ENABLED",Jl="GUI - EVENT_LOGGER_ENABLED",zl=class{domainName;setDomain(t){this.domainName=t}log(t){this.shouldPrint(t)&&this.print(t)}shouldPrint(t){return this.domainName?t.toString().includes(this.domainName):!0}},Lo=class extends zl{},Bl=class extends Lo{enabled=!1;unsubscribe$=new Ze;commandBus=y.resolve(ga);constructor(){super(),this.commandBus.pipe(ye(()=>this.enabled),Mt(this.unsubscribe$)).subscribe(t=>{this.log(t)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(t){console.log(t.toString(),t)}},Hl=class extends Lo{start(){}stop(){}print(t){}},zo=class extends zl{constructor(){super()}},$l=class extends zo{constructor(){super()}start(){}stop(){}print(t){}},ba=class{stores=[];register(t){this.stores.push(t)}captureAggregatesSnapshot(t){if(!t)return{};let e={};return this.stores.forEach(n=>{let r=n.findById(t);if(r){let o=r.constructor.name;e[o]=r}}),this.cloneAggregates(e)}cloneAggregates(t){return t}},Ul=class extends zo{enabled=!1;unsubscribe$=new Ze;eventBus=y.resolve(ei);aggregateStoreRegister=y.resolve(ba);constructor(){super(),this.eventBus.pipe(ye(()=>this.enabled),Mt(this.unsubscribe$)).subscribe(t=>{this.log(t)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(t){let e=t.getAggregateId(),n=this.aggregateStoreRegister.captureAggregatesSnapshot(e);console.log(t.toString(),t,n)}},gw="Hermes - aggregateDefinitionToken",cp="HERMES - DOMAIN_EVENT_HANDLERS_TOKEN",pw="HERMES - CREATE_AGGREGATE_COMMAND_HANDLERS",fw="HERMES - COMMAND_HANDLERS_TOKEN",bw=(()=>{class i extends vt{aggregateDefinitionInitializer;commandHandlerInitializer;domainEventHandlerInitializer;commandBus;definedAggregate;eventHandlers;aggregateCommandHandlers;commandHandlers;started=!1;constructor(e,n,r,o,s,a,l,d){super(),this.aggregateDefinitionInitializer=e,this.commandHandlerInitializer=n,this.domainEventHandlerInitializer=r,this.commandBus=o,this.definedAggregate=s,this.eventHandlers=a,this.aggregateCommandHandlers=l,this.commandHandlers=d,this.eventHandlers===null&&(this.eventHandlers=[]),this.aggregateCommandHandlers===null&&(this.aggregateCommandHandlers=[]),this.commandHandlers===null&&(this.commandHandlers=[])}static services=[pa,fa,ap,ga,{inject:gw,collection:!0},{inject:cp,collection:!0,optional:!0},{inject:pw,collection:!0,optional:!0},{inject:fw,collection:!0,optional:!0}];run(){this.started||(this.checkNullCommand(this.commandHandlers,this.aggregateCommandHandlers),this.checkCommandHandlerIsCollection(this.commandHandlers),this.checkDomainEventHandlerIsCollection(this.eventHandlers),this.aggregateDefinitionInitializer.register(this.definedAggregate),this.commandHandlerInitializer.register(this.commandHandlers),this.commandHandlerInitializer.registerAggregateCommandHandlers(this.aggregateCommandHandlers),this.domainEventHandlerInitializer.init(this.eventHandlers),this.started=!0)}destroy(){this.commandHandlerInitializer.onDestroy(),this.domainEventHandlerInitializer.onDestroy()}checkNullCommand(e,n){this.commandBus.ofNullHandler(e,n).pipe(this.hermesTakeUntil()).subscribe(r=>{console.error(`Command ${r.toString()} was not intercepted by any CommandHandler.`)})}checkCommandHandlerIsCollection(e){e&&!Array.isArray(e)&&console.warn('You might provided commandHandler without specifying "multi: true".')}checkDomainEventHandlerIsCollection(e){e&&!Array.isArray(e)&&console.warn('You might provided eventHandler without specifying "multi: true".')}}return i})();function YS(i,t,e){return i?t:e}function QS(i,t,e){return i?t:e}function vw(){y.resolve(bw).run()}var ut=class{commandStream=y.resolve(ha);dispatch(t){this.commandStream.next(t)}},_e=(()=>{class i{eventStream;constructor(e){this.eventStream=e}static services=[No];publish(e){if(Array.isArray(e))for(let n of e)this.publishEvent(n);else this.publishEvent(e)}publishFromAggregate(e){[...e.getEvents()].forEach(r=>{this.publish(r.toDomainEvent())})}publishEvent(e){e||console.error(`${e} is not defined`),e instanceof Zi||console.error(`${e} is not a DomainEvent`),this.eventStream.next(e)}}return i})(),y=bp();y.provideValue(Jl,!0);y.provideValue(Xl,!0);y.provide(Bl);y.provide(Hl);y.provide($l);y.provide(Ul);y.provide(ei);y.provide(ba);y.provideFactory(Lo,{create:YS,deps:[Xl,Bl,Hl]});y.provideFactory(zo,{create:QS,deps:[Jl,Ul,$l]});y.provide(jo,jo);y.provide(_e);y.provide(Vo);y.provide(No,No);y.provide(Ll,Ll);y.provide(ga,ga);y.provide(ha);y.provide(ut);y.provide(pa,pa);y.provide(fa,fa);y.provide(ap,ap);y.provide(bw);var Dn=class extends Vl{};var fr=class{},br=class{aggregateId;type;constructor(t,e){this.aggregateId=t,this.type=e}getAggregateId(){return this.aggregateId}getType(){return this.type}equals(t){return this.equalsByType(t)&&this.getAggregateId().equals(t.getAggregateId())}equalsByType(t){return this.getType()===t.getType()}};var vr=class{},lp=class{},xr=class{type;aggregateId;events;constructor(t,e){this.type=e,this.aggregateId=t,this.events=[]}getId(){return this.aggregateId}getType(){return this.type}getEvents(){return this.events}addEvent(t){if(Array.isArray(t))for(let e of t)this.events.push(e);else this.events.push(t)}clearEvents(){this.events.length=0}equals(t){return t.getId().toString()===this.getId().toString()}},_r=class{uid;constructor(t){this.uid=t}getId(){return this.uid}equals(t){return this.uid===t.getId()}},yr=class extends _r{constructor(t){super(t)}toString(){return super.getId()}};var Wl=class extends vt{constructor(){super()}onDestroy(){this.hermesUnsubscribe()}},Bo=class{keys=new Map;values=new WeakMap;find(t){let e=this.getInternalKey(t);return e!==void 0?Xe.of(this.values.get(e)):Xe.empty()}has(t){let e=this.getInternalKey(t);return this.values.has(e)}set(t,e){this.keys.set(t.toString(),t),this.values.set(t,e)}size(){return this.keys.size}remove(t){this.hasInternalKey(t)&&(this.keys.delete(t.toString()),this.values.delete(t))}removeAll(){this.keys.forEach(t=>{this.values.delete(t)}),this.keys.clear()}getInternalKey(t){return this.keys.get(t.toString())}hasInternalKey(t){return this.keys.has(t.toString())}};function P(i){return t=>new ot(e=>{let n=0,r=Zl(e,o=>{e.next(i(o,n++))});return t.subscribe(r).getFinalize()})}function ti(i){let t=i||KS;return e=>new ot(n=>{let r=null,o=Zl(n,s=>{(r===null||!t(r,s))&&(r=s,n.next(s))});return e.subscribe(o).getFinalize()})}function KS(i,t){return i===t}var dp=class extends Ze{lastValue;constructor(t){super(),this.lastValue=t}next(t){this.lastValue=t,super.next(t)}subscribe(){let t=super.subscribe(arguments[0],arguments[1],arguments[2]);return super.next(this.lastValue),t}},Tt=class extends Ze{bufferSize;values=[];constructor(t=1){super(),this.bufferSize=t}pipe(...t){return super.pipe(...t)}next(t){this.values.push(t),this.bufferSize{let e=new Dt({next:r=>t.next(r),error:r=>t.error(r),complete:()=>{}});return i.subscribe(e).getFinalize()})}var hp=class extends Wl{archive=new Bo;archive$;defaultValue=Xe.empty();constructor(t){super(),this.archive$=Gl.of(),t!=null&&(this.defaultValue=Xe.of(t))}on(t){return this.tryToInitDefault(t),this.archive$.toObservable().pipe(ye(()=>this.isNotStopped()),P(e=>e.find(t)),ye(e=>e.isPresent()),P(e=>e.getValueOrNullOrThrowError()),ti(this.equals),this.hermesTakeUntil())}once(t){return Sr(this.on(t))}find(t){return this.tryToInitDefault(t),this.archive.find(t)}next(t,e){this.archive.set(t,e),this.archive$.next(this.archive)}equals(t,e){return t===e}createDefaultValue(t){return t}tryToInitDefault(t){this.defaultValue.ifPresent(e=>{this.archive.has(t)||this.next(t,e)})}},Fe=class extends hp{constructor(t){super(t)}},bi=class extends Fe{constructor(t){super(t)}handle(t){this.next(t.getAggregateId(),t.getPayload())}},ql=class{entityId;constructor(t){this.entityId=t}getId(){return this.entityId}},Yl=class{uid;constructor(t){this.uid=t}toString(){return this.uid}getId(){return this.uid}equals(t){return this.uid===t.getId()}},va=class{rootId;constructor(t){this.rootId=t}getId(){return this.rootId}},wr=class{uid;constructor(t){this.uid=t}toString(){return this.uid}getId(){return this.uid}equals(t){return this.uid===t.getId()}},Ql=class extends vt{domainEventBus=y.resolve(ei);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(t=>{try{this.subscribe(t)}catch(e){console.error(e)}})}},gp=class{},Fi=class extends Wl{domainEventBus=y.resolve(ei);constructor(){super()}onEvent(t,e){return this.domainEventBus.ofEvents([e]).pipe(ye(n=>n.getAggregateId().toString()===t.toString()))}},Cr=class{entityId;constructor(t){this.entityId=t}getId(){return this.entityId}equals(t){return this.entityId.equals(t.getId())}},Xi=class extends _r{};function xp(i){}function ed(i){}var st=class{};function _p(i){return new ot(t=>{let e=setTimeout(()=>{t.next(0)},i);return()=>{clearTimeout(e),t.complete()}})}function ya(i,t){return new ot(e=>{let n=r=>{e.next(r)};return i.addEventListener(t,n),()=>{i.removeEventListener(t,n)}})}function Ht(i){return t=>new ot(e=>{let n=!1,r=null,o=function(){n&&!r&&e.complete()},s=Zl(e,a=>{r&&r.unsubscribe();let l=new Dt({next:p=>e.next(p),error:p=>e.error(p),complete:()=>{r=null,o()}});return r=l,i(a).subscribe(l).getFinalize()},()=>{n=!0,o()});return t.subscribe(s).getFinalize()})}function Mn(i){return new ot(t=>{let e=i.subscribe(n=>t.next(n),n=>t.error(n),()=>t.complete());return()=>e.unsubscribe()})}var Bt=class{archive$;constructor(t){this.archive$=Gl.of(t)}on(){return this.archive$.toObservable().pipe(ti(this.compare))}next(t){this.archive$.next(t)}compare(t,e){return t===e}},xw=(()=>{class i{static index=0;static generate(){return i.index++,i.index}}return i})();var Ir=class extends lp{inMemoryStore;aggregateStoreRegister=y.resolve(ba);constructor(t){super(),this.inMemoryStore=t,this.aggregateStoreRegister.register(this)}save(t){if(Array.isArray(t))t.forEach(e=>{this.inMemoryStore.set(e)});else{let e=t;this.inMemoryStore.set(e)}}findById(t){let e=this.inMemoryStore.get(t);return e.ifPresent(n=>n.clearEvents()),e}remove(t){this.inMemoryStore.delete(t)}},xa=class extends gp{inMemoryStore;constructor(t){super(),this.inMemoryStore=t}getById(t){return this.getValue(t)}getValue(t){return this.inMemoryStore.get(t).map(this.toReadModel.bind(this))}},kr=class{state=new Map;set(t){this.state.set(t.getId().toString(),t)}setMany(t){t.forEach(e=>{this.set(e)})}get(t){return Xe.of(this.state.get(t.toString()))}getAll(){return Array.from(this.state.values()).map(t=>Xe.of(t))}has(t){return this.state.has(t.toString())}delete(t){this.state.delete(t.toString())}clear(){this.state.clear()}};var _a=class extends Dn{constructor(t,e){super(t,e)}},hw="hermesApi";function _w(){let i=y.resolve(Lo),t=y.resolve(zo),e=()=>({set loggers(n){},set domain(n){n&&(i.setDomain(n),t.setDomain(n))}});window[hw]=e(),window[hw].loggers=!1}function ZS(i,t){return new pp(i,t)}var pp=class{createAggregateCommandHandler;aggregateType;aggregateFactoryArchive=y.resolve(jo);aggregateRepositoryArchive=y.resolve(Vo);domainEventPublisher=y.resolve(_e);commandType;constructor(t,e){this.createAggregateCommandHandler=t,this.aggregateType=e,this.commandType=this.createCommandInstance().getMessageType()}handleCommand(t){let e=t.getAggregateId();this.aggregateFactoryArchive.get(this.aggregateType).ifPresent(r=>{let o=r.create(e),s=o.getType(),a=o.createEvent(),l=new a(e,s);o.addEvent(l),this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(p=>{p.save(o),this.domainEventPublisher.publishFromAggregate(o)})})}forCommand(t){return this.commandType===t.getMessageType()}createCommandInstance(){let t=[],e=this.createAggregateCommandHandler.forCommand().constructor.length;if(t.fill(void 0,0,e),t.length===0)return new(this.createAggregateCommandHandler.forCommand());if(t.length===1)return new(this.createAggregateCommandHandler.forCommand())(t[0]);if(t.length===2)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1]);if(t.length===3)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2]);if(t.length===4)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2],t[3]);if(t.length===5)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2],t[3],t[4]);throw new Error("CreateAggregateCommandHandlerImpl constructor out of arguments")}};function XS(i,t){return new fp(i,t)}var fp=class{commandHandler;aggregateType;aggregateRepositoryArchive=y.resolve(Vo);domainEventPublisher=y.resolve(_e);commandType;constructor(t,e){this.commandHandler=t,this.aggregateType=e,this.commandType=this.createCommandInstance().getMessageType()}publishDomainEvents(t,e){this.commandHandler.publish?this.commandHandler.publish(t,e):this.domainEventPublisher.publishFromAggregate(t)}handleCommand(t){let e=t.getAggregateId();this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(r=>{r.findById(e).ifPresent(s=>{this.commandHandler.handle(s,t),this.publishDomainEvents(s,t)})})}forCommand(t){return this.commandType===t.getMessageType()}createCommandInstance(){let t=[],e=this.commandHandler.forCommand().constructor.length;if(t.fill(void 0,0,e),t.length===0)return new(this.commandHandler.forCommand());if(t.length===1)return new(this.commandHandler.forCommand())(t[0]);if(t.length===2)return new(this.commandHandler.forCommand())(t[0],t[1]);if(t.length===3)return new(this.commandHandler.forCommand())(t[0],t[1],t[2]);if(t.length===4)return new(this.commandHandler.forCommand())(t[0],t[1],t[2],t[3]);if(t.length===5)return new(this.commandHandler.forCommand())(t[0],t[1],t[2],t[3],t[4]);throw new Error("CommandHandlerImpl constructor out of arguments")}};function JS(i){return new Kl(i,[i.forEvent()])}function eD(i){return new Kl(i,i.forEvents())}var Kl=class{domainEventHandler;events;eventTypes;constructor(t,e){this.domainEventHandler=t,this.events=e,this.eventTypes=this.createDomainEventTypes()}handleEvent(t){this.domainEventHandler.handle(t)}forEvents(t){return t.some(e=>this.eventTypes.some(n=>n===e.getMessageType()))}createDomainEventTypes(){let t=[];for(let e of this.events){let n=this.createDomainEventInstance(e);t.push(n.getMessageType())}return t}createDomainEventInstance(t){let e=[],n=t.constructor.length;if(e.fill(void 0,0,n),e.length===0)return new t;if(e.length===1)return new t(e[0]);if(e.length===2)return new t(e[0],e[1]);if(e.length===3)return new t(e[0],e[1],e[2]);if(e.length===4)return new t(e[0],e[1],e[2],e[3]);if(e.length===5)return new t(e[0],e[1],e[2],e[3],e[4]);throw new Error("DomainEventHandler constructor out of arguments")}},wt=class{api;domain;container=y;initialized=!1;constructor(t,e){this.api=t,this.domain=e}init(){this.initialized||(this.defineAggregate(),this.registerApiProviders(),this.registerDomainProviders(),this.registerCommandHandlers(),this.registerEventHandlers(),this.registerMultiEventHandlers(),this.initialized=!0)}defineAggregate(){let t=this.domain.defineAggregate();t&&(this.container.provide(t.factory),this.container.provide(t.repository),this.container.provideValue(t.aggregateKey,t.aggregateKey),this.container.provideValueCollection(gw,{key:t.aggregateKey,factory:t.factory,repository:t.repository}),this.container.provide(t.createCommandHandler),this.container.provideFactoryCollection(pw,{create:ZS,deps:[t.createCommandHandler,t.aggregateKey]}))}registerApiProviders(){this.api.registerProviders(this.container)}registerDomainProviders(){this.domain.registerProviders(this.container)}registerCommandHandlers(){this.domain.registerCommandHandlers().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(fw,{create:XS,deps:[t,this.domain.registerKey(this.container)]})})}registerEventHandlers(){this.domain.registerDomainEventHandler().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(cp,{create:JS,deps:[t]})})}registerMultiEventHandlers(){this.domain.registerMultiDomainEventHandler().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(cp,{create:eD,deps:[t]})})}};var Dw=(()=>{let t=class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(r){return new(r||t)(c(We),c(x))},t.\u0275dir=N({type:t});let i=t;return i})(),Tw=(()=>{let t=class t extends Dw{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275dir=N({type:t,features:[C]});let i=t;return i})(),kp=new K("");var tD={provide:kp,useExisting:pi(()=>ii),multi:!0};function iD(){let i=lr()?lr().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var nD=new K(""),ii=(()=>{let t=class t extends Dw{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!iD())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};t.\u0275fac=function(r){return new(r||t)(c(We),c(x),c(nD,8))},t.\u0275dir=N({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&F("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[ge([tD]),C]});let i=t;return i})();function Fn(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function Mw(i){return i!=null&&typeof i.length=="number"}var ld=new K(""),Ep=new K(""),rD=/^(?=.{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])?)*$/,Dr=class{static min(t){return oD(t)}static max(t){return sD(t)}static required(t){return aD(t)}static requiredTrue(t){return cD(t)}static email(t){return lD(t)}static minLength(t){return dD(t)}static maxLength(t){return Fw(t)}static pattern(t){return uD(t)}static nullValidator(t){return nd(t)}static compose(t){return jw(t)}static composeAsync(t){return Vw(t)}};function oD(i){return t=>{if(Fn(t.value)||Fn(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e{if(Fn(t.value)||Fn(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function aD(i){return Fn(i.value)?{required:!0}:null}function cD(i){return i.value===!0?null:{required:!0}}function lD(i){return Fn(i.value)||rD.test(i.value)?null:{email:!0}}function dD(i){return t=>Fn(t.value)||!Mw(t.value)?null:t.value.lengthMw(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function uD(i){if(!i)return nd;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(Fn(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function nd(i){return null}function Rw(i){return i!=null}function Aw(i){return al(i)?Ct(i):i}function Ow(i){let t={};return i.forEach(e=>{t=e!=null?V(V({},t),e):t}),Object.keys(t).length===0?null:t}function Pw(i,t){return t.map(e=>e(i))}function mD(i){return!i.validate}function Nw(i){return i.map(t=>mD(t)?t:e=>t.validate(e))}function jw(i){if(!i)return null;let t=i.filter(Rw);return t.length==0?null:function(e){return Ow(Pw(e,t))}}function Sp(i){return i!=null?jw(Nw(i)):null}function Vw(i){if(!i)return null;let t=i.filter(Rw);return t.length==0?null:function(e){let n=Pw(e,t).map(Aw);return Kc(n).pipe(le(Ow))}}function Dp(i){return i!=null?Vw(Nw(i)):null}function yw(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function Lw(i){return i._rawValidators}function zw(i){return i._rawAsyncValidators}function yp(i){return i?Array.isArray(i)?i:[i]:[]}function rd(i,t){return Array.isArray(i)?i.includes(t):i===t}function ww(i,t){let e=yp(t);return yp(i).forEach(r=>{rd(e,r)||e.push(r)}),e}function Cw(i,t){return yp(t).filter(e=>!rd(i,e))}var od=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Sp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Dp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},Rn=class extends od{get formDirective(){return null}get path(){return null}},Tr=class extends od{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},sd=class{constructor(t){this._cd=t}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}},hD={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Gj=Be(V({},hD),{"[class.ng-submitted]":"isSubmitted"}),Ri=(()=>{let t=class t extends sd{constructor(n){super(n)}};t.\u0275fac=function(r){return new(r||t)(c(Tr,2))},t.\u0275dir=N({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&U("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[C]});let i=t;return i})(),Ai=(()=>{let t=class t extends sd{constructor(n){super(n)}};t.\u0275fac=function(r){return new(r||t)(c(Rn,10))},t.\u0275dir=N({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&U("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[C]});let i=t;return i})();var wa="VALID",td="INVALID",Ho="PENDING",Ca="DISABLED";function Tp(i){return(dd(i)?i.validators:i)||null}function gD(i){return Array.isArray(i)?Sp(i):i||null}function Mp(i,t){return(dd(t)?t.asyncValidators:i)||null}function pD(i){return Array.isArray(i)?Dp(i):i||null}function dd(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Bw(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new Me(1e3,"");if(!n[e])throw new Me(1001,"")}function Hw(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new Me(1002,"")})}var $o=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===wa}get invalid(){return this.status===td}get pending(){return this.status==Ho}get disabled(){return this.status===Ca}get enabled(){return this.status!==Ca}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ww(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ww(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Cw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Cw(t,this._rawAsyncValidators))}hasValidator(t){return rd(this._rawValidators,t)}hasAsyncValidator(t){return rd(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ho,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Ca,this.errors=null,this._forEachChild(n=>{n.disable(Be(V({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(V({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=wa,this._forEachChild(n=>{n.enable(Be(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Be(V({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wa||this.status===Ho)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ca:wa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ho,this._hasOwnPendingAsyncValidator=!0;let e=Aw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new W,this.statusChanges=new W}_calculateStatus(){return this._allControlsDisabled()?Ca:this.errors?td:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ho)?Ho:this._anyControlsHaveStatus(td)?td:wa}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dd(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=gD(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=pD(this._rawAsyncValidators)}},Uo=class extends $o{constructor(t,e,n){super(Tp(e),Mp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Hw(this,!0,t),Object.keys(t).forEach(n=>{Bw(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var wp=class extends Uo{};var Fp=new K("CallSetDisabledState",{providedIn:"root",factory:()=>Rp}),Rp="always";function fD(i,t){return[...t.path,i]}function Cp(i,t,e=Rp){Ap(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),vD(i,t),_D(i,t),xD(i,t),bD(i,t)}function Iw(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),cd(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ad(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function bD(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Ap(i,t){let e=Lw(i);t.validator!==null?i.setValidators(yw(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=zw(i);t.asyncValidator!==null?i.setAsyncValidators(yw(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ad(t._rawValidators,r),ad(t._rawAsyncValidators,r)}function cd(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=Lw(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(t.asyncValidator!==null){let r=zw(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}let n=()=>{};return ad(t._rawValidators,n),ad(t._rawAsyncValidators,n),e}function vD(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&$w(i,t)})}function xD(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&$w(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function $w(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function _D(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Uw(i,t){i==null,Ap(i,t)}function yD(i,t){return cd(i,t)}function wD(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function CD(i){return Object.getPrototypeOf(i.constructor)===Tw}function Ww(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ID(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(o=>{o.constructor===ii?e=o:CD(o)?n=o:r=o}),r||n||e||null}function kD(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}var ED={provide:Rn,useExisting:pi(()=>Op)},Ia=Promise.resolve(),Op=(()=>{let t=class t extends Rn{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new W,this.form=new Uo({},Sp(n),Dp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ia.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Cp(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ia.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ia.then(()=>{let r=this._findContainer(n.path),o=new Uo({});Uw(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ia.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ia.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,Ww(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};t.\u0275fac=function(r){return new(r||t)(c(ld,10),c(Ep,10),c(Fp,8))},t.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&F("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[we.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ge([ED]),C]});let i=t;return i})();function kw(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ew(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var id=class extends $o{constructor(t=null,e,n){super(Tp(e),Mp(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ew(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){kw(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){kw(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ew(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var SD=i=>i instanceof id;var Oi=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=t;return i})(),DD={provide:kp,useExisting:pi(()=>ka),multi:!0},ka=(()=>{let t=class t extends Tw{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275dir=N({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&F("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[ge([DD]),C]});let i=t;return i})();var Gw=new K("");var TD={provide:Rn,useExisting:pi(()=>$t)},$t=(()=>{let t=class t extends Rn{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new W,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Cp(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Iw(n.control||null,n,!1),kD(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,Ww(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Iw(r||null,n),SD(o)&&(Cp(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);Uw(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&yD(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ap(this.form,this),this._oldForm&&cd(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(r){return new(r||t)(c(ld,10),c(Ep,10),c(Fp,8))},t.\u0275dir=N({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&F("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[we.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ge([TD]),C,G]});let i=t;return i})();var MD={provide:Tr,useExisting:pi(()=>vi)},vi=(()=>{let t=class t extends Tr{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new W,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ID(this,s)}ngOnChanges(n){this._added||this._setUpControl(),wD(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return fD(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(r){return new(r||t)(c(Rn,13),c(ld,10),c(Ep,10),c(kp,10),c(Gw,8))},t.\u0275dir=N({type:t,selectors:[["","formControlName",""]],inputs:{name:[we.None,"formControlName","name"],isDisabled:[we.None,"disabled","isDisabled"],model:[we.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[ge([MD]),C,G]});let i=t;return i})();function FD(i){return typeof i=="number"?i:parseInt(i,10)}var RD=(()=>{let t=class t{constructor(){this._validator=nd}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):nd,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,features:[G]});let i=t;return i})();var AD={provide:ld,useExisting:pi(()=>Pp),multi:!0},Pp=(()=>{let t=class t extends RD{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>FD(n),this.createValidator=n=>Fw(n)}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=ze(t)))(o||t)}})(),t.\u0275dir=N({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&De("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ge([AD]),C]});let i=t;return i})();var OD=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})(),Ip=class extends $o{constructor(t,e,n){super(Tp(e),Mp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Hw(this,!1,t),t.forEach((n,r)=>{Bw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Sw(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var xi=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new t;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),s={};return Sw(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new Uo(o,s)}record(n,r=null){let o=this._reduceControls(n);return new wp(o,r)}control(n,r,o){let s={};return this.useNonNullable?(Sw(r)?s=r:(s.validators=r,s.asyncValidators=o),new id(n,Be(V({},s),{nonNullable:!0}))):new id(n,r,o)}array(n,r,o){let s=n.map(a=>this._createControl(a));return new Ip(s,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof id)return n;if(n instanceof $o)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(r,o,s)}else return this.control(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Pi=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:Gw,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Fp,useValue:n.callSetDisabledState??Rp}]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[OD]});let i=t;return i})();var rn=["*"],PD=["gui-button",""];var ND=["input"];function jD(i,t){if(i&1&&(h(0,"div"),S(1),g()),i&2){let e=t.$implicit;u(),xe(e)}}function VD(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectDate(r))}),S(1),g()}if(i&2){let e=t.$implicit,n=f(2);U("gui-date-picker-current-day",n.isDate(n.currentDay,e))("gui-date-picker-selected-day",n.isDate(n.selectedDate,e))("gui-date-picker-selected-month",n.displayMonthDays(e.getMonth())),u(),oe(" ",e.getDate()," ")}}function LD(i,t){if(i&1&&(h(0,"div",4),D(1,VD,2,7,"div",5),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}function zD(i,t){if(i&1){let e=Z();h(0,"div",4),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectMonth(r.nr))}),S(1),g()}if(i&2){let e=t.$implicit,n=f(2);U("gui-date-picker-current-month",n.isMonth(n.currentDay,e.nr))("gui-date-picker-selected-month",n.isMonth(n.selectedDate,e.nr)),u(),oe(" ",e.name," ")}}function BD(i,t){if(i&1&&(h(0,"div",2),D(1,zD,2,5,"div",3),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}function HD(i,t){if(i&1){let e=Z();h(0,"div",4),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectYear(r))}),S(1),g()}if(i&2){let e=t.$implicit,n=f(2);U("gui-date-picker-current-year",n.isYear(n.currentDay,e))("gui-date-picker-selected-year",n.isYear(n.selectedDate,e)),u(),oe(" ",e," ")}}function $D(i,t){if(i&1&&(h(0,"div",2),D(1,HD,2,5,"div",3),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}var UD=["gui-input",""];function WD(i,t){if(i&1){let e=Z();h(0,"div",4)(1,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("hours",r.steps))}),g(),b(2,"input",6),h(3,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("hours",-r.steps))}),g()()}if(i&2){let e=f();u(),m("direction",e.Direction.TOP),u(2),m("direction",e.Direction.BOTTOM)}}function GD(i,t){if(i&1){let e=Z();h(0,"div",4)(1,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("minutes",r.steps))}),g(),b(2,"input",7),h(3,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("minutes",-r.steps))}),g()()}if(i&2){let e=f();u(),m("direction",e.Direction.TOP),u(2),m("direction",e.Direction.BOTTOM)}}function qD(i,t){if(i&1){let e=Z();h(0,"div",4)(1,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("seconds",r.steps))}),g(),b(2,"input",8),h(3,"gui-arrow-icon",5),F("click",function(){R(e);let r=f();return A(r.changeTimeItem("seconds",-r.steps))}),g()()}if(i&2){let e=f();u(),m("direction",e.Direction.TOP),u(2),m("direction",e.Direction.BOTTOM)}}function YD(i,t){if(i&1&&b(0,"gui-date-picker-days-view",7),i&2){let e=f(2);m("activeMonth",e.activeMonth)("selectedDate",e.selectedDate)("weeks",e.weeks)}}function QD(i,t){if(i&1&&b(0,"gui-date-picker-months-view",8),i&2){let e=f(2);m("activeYear",e.activeYear)("selectedDate",e.selectedDate)}}function KD(i,t){if(i&1&&b(0,"gui-date-picker-years-view",9),i&2){let e=f(2);m("selectedDate",e.selectedDate)("years",e.years)}}function ZD(i,t){if(i&1&&(pe(0),b(1,"gui-date-picker-view-panel",2),pe(2,3),D(3,YD,1,3,"gui-date-picker-days-view",4)(4,QD,1,2,"gui-date-picker-months-view",5)(5,KD,1,2,"gui-date-picker-years-view",6),fe()()),i&2){let e=f();u(),m("activeMonth",e.activeMonth)("activeYear",e.activeYear)("fabricCalendarView",e.fabricCalendarView)("selectedDate",e.selectedDate)("years",e.years),u(),m("ngSwitch",e.getCalendarView()),u(),m("ngSwitchCase",e.FabricCalendarView.DAYS),u(),m("ngSwitchCase",e.FabricCalendarView.MONTHS),u(),m("ngSwitchCase",e.FabricCalendarView.YEARS)}}function XD(i,t){if(i&1&&b(0,"gui-time-picker",10),i&2){let e=f();m("datePickerComposition",e.datePickerComposition)("selectedDate",e.selectedDate)}}var Sa=["container"];function JD(i,t){}var eT=["datePicker"];function tT(i,t){}var iT=["dropdownMenu"];function nT(i,t){if(i&1&&(h(0,"div"),b(1,"gui-arrow-icon",6),g()),i&2){let e=f();U("gui-dropdown-arrow",e.isArrowEnabled),u(),m("direction",e.arrowDirection)}}function rT(i,t){}var oT=["guiNotification"];function sT(i,t){if(i&1){let e=Z();h(0,"gui-notification",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.emitClosedNotification(r))}),g()}if(i&2){let e=t.$implicit;m("notification",e)}}function aT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsTopRight)("position",e.FabricNotificationPosition.TOP_RIGHT)}}function cT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsTopLeft)("position",e.FabricNotificationPosition.TOP_LEFT)}}function lT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsBottomRight)("position",e.FabricNotificationPosition.BOTTOM_RIGHT)}}function dT(i,t){if(i&1){let e=Z();h(0,"gui-notifications-container",1),F("onNotificationClose",function(r){R(e);let o=f();return A(o.removeNotification(r))}),g()}if(i&2){let e=f();m("notifications",e.notificationsBottomLeft)("position",e.FabricNotificationPosition.BOTTOM_LEFT)}}var uT=["svgEl"],mT=["tab"],hT=["tabItem"],gT=["tabMenuList"];function pT(i,t){if(i&1){let e=Z();h(0,"div",8),F("click",function(){R(e);let r=f();return A(r.scrollTabList(!1))}),b(1,"gui-arrow-icon",9),g()}if(i&2){let e=f();u(),m("direction",e.Direction.LEFT)}}function fT(i,t){if(i&1&&(h(0,"span"),S(1),g()),i&2){let e=f().$implicit;u(),xe(e)}}function bT(i,t){if(i&1&&(pe(0),b(1,"gui-svg-template",12),fe()),i&2){let e=f().$implicit;u(),m("svg",e.svg)}}function vT(i,t){if(i&1){let e=Z();h(0,"div",10,2),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleTab(r))}),D(2,fT,2,1,"span",11)(3,bT,2,1,"ng-container",11),g()}if(i&2){let e=t.$implicit,n=f();De("data-tab",n.getTabName(e)),u(2),m("ngIf",!n.isSvg(e)),u(),m("ngIf",n.isSvg(e))}}function xT(i,t){if(i&1){let e=Z();h(0,"div",8),F("click",function(){R(e);let r=f();return A(r.scrollTabList(!0))}),b(1,"gui-arrow-icon"),g()}}var _T=["optionList"];function yT(i,t){if(i&1){let e=Z();h(0,"div",3),F("click",function(){let r=R(e).$implicit,o=f();return A(o.selectOption(r))}),S(1),g()}if(i&2){let e=t.$implicit,n=f();Ae("width",n.width,"px"),U("gui-option-selected",n.isOptionSelected(e)),u(),oe(" ",n.getOptionValue(e)," ")}}var Ce=function(i){return i.FABRIC="FABRIC",i.MATERIAL="MATERIAL",i.GENERIC="GENERIC",i.LIGHT="LIGHT",i.DARK="DARK",i}(Ce||{}),iC=(()=>{class i{elementRef;renderer;static PRIMARY_CLASS_NAME="gui-primary";static SECONDARY_CLASS_NAME="gui-secondary";static OUTLINE_CLASS_NAME="gui-outline";primary=!1;secondary=!1;outline=!1;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(e){e.primary&&(this.primary?this.addClass(i.PRIMARY_CLASS_NAME):this.removeClass(i.PRIMARY_CLASS_NAME)),e.secondary&&(this.secondary?this.addClass(i.SECONDARY_CLASS_NAME):this.removeClass(i.SECONDARY_CLASS_NAME)),e.outline&&(this.outline?this.addClass(i.OUTLINE_CLASS_NAME):this.removeClass(i.OUTLINE_CLASS_NAME))}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275dir=N({type:i,inputs:{primary:"primary",secondary:"secondary",outline:"outline"},features:[G]})}return i})();var Wo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),on=(()=>{class i extends iC{link=!1;text=!1;constructor(e,n){super(e,n)}ngOnChanges(e){super.ngOnChanges(e),e.link&&(this.link?this.addClass("gui-link"):this.removeClass("gui-link")),e.text&&(this.text?this.addClass("gui-text"):this.removeClass("gui-text"))}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["button","gui-button",""],["a","gui-button",""]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-button",!0)},inputs:{link:"link",text:"text"},features:[C,G],attrs:PD,ngContentSelectors:rn,decls:1,vars:0,template:function(n,r){n&1&&(Ne(),be(0))},styles:[`.gui-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:start;align-items:flex-start;background:#e6e6e6;border-radius:4px;border-style:none;box-sizing:border-box;color:#595959;cursor:pointer;display:inline-block;font-family:Arial;font-size:13.3333px;letter-spacing:normal;outline:none;padding:10px 20px;text-align:center;text-indent:0;text-rendering:auto;text-shadow:none;text-transform:none;transition:background .2s;word-spacing:normal;-ms-writing-mode:lr-tb!important;writing-mode:horizontal-tb!important}.gui-button.gui-outline:focus{box-shadow:0 0 0 2px #d6d6d6}.gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #439de1}.gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #5ac88b}.gui-button.gui-primary{background:#2185d0;color:#fff}.gui-button.gui-primary.gui-outline{color:#2185d0}.gui-button.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-button.gui-primary:active{background:#1a69a4;color:#fff}.gui-button.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-button.gui-primary.gui-badge{background:#439de1}.gui-button.gui-secondary{background:#3cb371;color:#fff}.gui-button.gui-secondary.gui-outline{color:#3cb371}.gui-button.gui-secondary.gui-button:hover{background:#36a065}.gui-button.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-button.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-button.gui-secondary.gui-badge{background:#5ac88b}.gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-button.gui-link:focus{text-decoration:underline}.gui-button.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-button.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-button.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-button.gui-outline.gui-badge{background:#fff}.gui-button.gui-outline.gui-primary{border-color:#439de1}.gui-button.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-button.gui-outline.gui-secondary{border-color:#5ac88b}.gui-button.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}.gui-button.gui-text{background:transparent;border:0}.gui-button.gui-text:hover{background:#e6e6e6}.gui-button.gui-text:focus{background:#e6e6e6}.gui-button.gui-text.gui-primary{color:#2185d0}.gui-button.gui-text.gui-primary:hover{background:#2185d0;color:#fff}.gui-button.gui-text.gui-primary:focus{background:#2185d0;color:#fff}.gui-button.gui-text.gui-secondary{color:#3cb371}.gui-button.gui-text.gui-secondary:hover{background:#3cb371;color:#fff}.gui-button.gui-text.gui-secondary:focus{background:#3cb371;color:#fff}.gui-button.gui-text.gui-button:disabled{background:transparent}.gui-button.gui-text.gui-button:disabled .gui-text-disabled{display:inline-block}.gui-button:hover{background:#cccccc;color:#333}.gui-button:active{background:#999;color:#333}.gui-button:disabled{color:#ccc;cursor:default;pointer-events:none} +`,`.gui-dark .gui-button{background:#424242;color:#bdbdbd}.gui-dark .gui-button.gui-outline:focus{box-shadow:0 0 0 2px #616161}.gui-dark .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #ce93d8}.gui-dark .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #80cbc4}.gui-dark .gui-button.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-button.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-button.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-button.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-button.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-button.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-button.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-button.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-button.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-button.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-button.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-button.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-dark .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-dark .gui-button.gui-link:focus{text-decoration:underline}.gui-dark .gui-button.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-button.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-button.gui-outline.gui-badge{background:#121212}.gui-dark .gui-button.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-button.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-button.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-button.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}.gui-dark .gui-button:hover{background:#616161}.gui-dark .gui-button:active{background:#212121}.gui-dark .gui-button:disabled{opacity:.36} +`,`.gui-light .gui-button{background:#f6f5f4;border-color:#d8d7d6;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-light .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-light .gui-button.gui-link:focus{text-decoration:underline}.gui-light .gui-button:hover{background:#ecebeb}.gui-light .gui-button:active{background:#f6f5f4}.gui-light .gui-button:disabled{opacity:.5} +`,`.gui-material .gui-button{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-button.gui-outline:focus{box-shadow:0 0 0 1px #5262c5}.gui-material .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 1px #6200ee}.gui-material .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 1px #0097a7}.gui-material .gui-button.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-button.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-button.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-button.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-button.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-button.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-button.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-button.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-button.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-button.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-button.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-button.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-button.gui-link{background:transparent;border:0;color:#3949ab}.gui-material .gui-button.gui-link:hover{color:#4051bf}.gui-material .gui-button.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-button.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-button.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-button.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-button.gui-outline.gui-badge{background:#fff}.gui-material .gui-button.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-button.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}.gui-material .gui-button:hover{background:#5262c5}.gui-material .gui-button:active{background:#4051bf}.gui-material .gui-button:disabled{background:#c5cae9;color:#7885d2} +`],encapsulation:2,changeDetection:0})}return i})(),ni=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),nC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-button-group"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-button-group",!0)},ngContentSelectors:rn,decls:1,vars:0,template:function(n,r){n&1&&(Ne(),be(0))},styles:[`.gui-button-group{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-button-group .gui-button{border-radius:0}.gui-button-group .gui-button:not(:last-child){border-right:none;margin:0}.gui-button-group .gui-button:last-child{border-radius:0 4px 4px 0}.gui-button-group .gui-button:first-child{border-radius:4px 0 0 4px}.gui-button-group .gui-button-toggle .gui-button{border-radius:0}.gui-button-group .gui-button-toggle:not(:last-child) .gui-button{border-right:none;margin:0}.gui-button-group .gui-button-toggle:last-child .gui-button{border-radius:0 4px 4px 0}.gui-button-group .gui-button-toggle:first-child .gui-button{border-radius:4px 0 0 4px} +`],encapsulation:2,changeDetection:0})}return i})(),Go=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var qw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Pn=(()=>{class i{elementRef;renderer;inputRef;name="";inputChecked=!1;disabled=!1;readonly=!1;indeterminate=!1;changed=new W;checked=!1;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(e){this.checked=this.inputChecked,e.disabled&&(this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")),e.readonly&&(this.readonly?this.renderer.addClass(this.elementRef.nativeElement,"gui-readonly"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-readonly")),e.indeterminate&&this.inputRef&&(this.indeterminate?this.inputRef.nativeElement.indeterminate=!0:(this.inputRef.nativeElement.indeterminate=!1,this.inputRef.nativeElement.checked=this.checked))}ngAfterViewInit(){this.inputRef&&(this.inputRef.nativeElement.indeterminate=this.indeterminate)}check(e){e.stopPropagation(),this.checked=!this.checked,this.changed.emit(this.checked)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-checkbox"]],viewQuery:function(n,r){if(n&1&&X(ND,5,x),n&2){let o;L(o=z())&&(r.inputRef=o.first)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-checkbox",!0)},inputs:{name:"name",inputChecked:[we.None,"checked","inputChecked"],disabled:"disabled",readonly:"readonly",indeterminate:"indeterminate"},outputs:{changed:"changed"},features:[G],ngContentSelectors:rn,decls:5,vars:3,consts:[["input",""],["type","checkbox",3,"click","checked","disabled"],[1,"gui-checkmark"]],template:function(n,r){if(n&1){let o=Z();Ne(),h(0,"label")(1,"input",1,0),F("click",function(a){return R(o),A(r.check(a))}),g(),b(3,"span",2),be(4),g()}n&2&&(u(),m("checked",r.checked)("disabled",r.disabled),De("name",r.name))},styles:[`.gui-checkbox{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:24px;padding-left:32px;position:relative}.gui-checkbox label{cursor:pointer}.gui-checkbox label:hover .gui-checkmark{border-color:#999}.gui-checkbox input{height:0;opacity:0;position:absolute;width:0}.gui-checkbox .gui-checkmark{border-color:#575757;border-radius:4px;border-style:solid;border-width:2px;box-sizing:content-box;height:20px;left:0;position:absolute;width:20px}.gui-checkbox input:checked+.gui-checkmark{border-color:#575757}.gui-checkbox.gui-disabled.gui-checkbox{color:#ccc;pointer-events:none}.gui-checkbox.gui-readonly.gui-checkbox{pointer-events:none}.gui-checkbox .gui-checkmark:after{content:" ";display:none;left:6px;position:absolute;-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-checkbox input:checked+.gui-checkmark:after{box-sizing:content-box;display:block}.gui-checkbox .gui-checkmark:after{border-color:#575757;border-style:solid;border-width:0 3.2px 3.2px 0;height:12px;width:5.2px}.gui-checkbox input:indeterminate+.gui-checkmark:after{display:block;height:10px;left:9px;top:4px;-ms-transform:rotate(90deg);transform:rotate(90deg);width:0} +`,`.gui-material .gui-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.gui-material .gui-checkbox input:focus+.gui-checkmark{border-color:#3949ab}.gui-material .gui-checkbox label:hover .gui-checkmark{border-color:#575757}.gui-material .gui-checkbox .gui-checkmark{border-color:#999}.gui-material .gui-checkbox input:checked+.gui-checkmark{background:#3949ab;border-color:#3949ab}.gui-material .gui-checkbox .gui-checkmark:after{border-color:#fff}.gui-material .gui-checkbox.gui-indeterminate .gui-checkmark{background:#3949ab;border-color:#3949ab} +`,`.gui-dark .gui-checkbox{color:#bdbdbd}.gui-dark .gui-checkbox .gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox input:checked+.gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox .gui-checkmark:after{border-color:#878787}.gui-dark .gui-checkbox.gui-disabled.gui-checkbox{opacity:.36} +`],encapsulation:2,changeDetection:0})}return i})(),tn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Up=(()=>{class i extends iC{constructor(e,n){super(e,n)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-chip"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-chip",!0)},features:[C],ngContentSelectors:rn,decls:1,vars:0,template:function(n,r){n&1&&(Ne(),be(0))},styles:[`.gui-chip{background:#e6e6e6;border-radius:4px;box-sizing:border-box;color:#595959;display:inline-block;font-family:Arial;font-size:14px;font-weight:700;margin:0 2px;padding:9.6px 12px}.gui-chip.gui-primary{background:#2185d0;color:#fff}.gui-chip.gui-primary.gui-outline{color:#2185d0}.gui-chip.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-chip.gui-primary:active{background:#1a69a4;color:#fff}.gui-chip.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-chip.gui-primary.gui-badge{background:#439de1}.gui-chip.gui-secondary{background:#3cb371;color:#fff}.gui-chip.gui-secondary.gui-outline{color:#3cb371}.gui-chip.gui-secondary.gui-button:hover{background:#36a065}.gui-chip.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-chip.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-chip.gui-secondary.gui-badge{background:#5ac88b}.gui-chip.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-chip.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-chip.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-chip.gui-outline.gui-badge{background:#fff}.gui-chip.gui-outline.gui-primary{border-color:#439de1}.gui-chip.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-chip.gui-outline.gui-secondary{border-color:#5ac88b}.gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b} +`,`.gui-material .gui-chip{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-chip.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-chip.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-chip.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-chip.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-chip.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-chip.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-chip.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-chip.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-chip.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-chip.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-chip.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-chip.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-chip.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-chip.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-chip.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-chip.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-chip.gui-outline.gui-badge{background:#fff}.gui-material .gui-chip.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-chip.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7} +`,`.gui-dark .gui-chip{background:#333;color:#bdbdbd}.gui-dark .gui-chip.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-chip.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-chip.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-chip.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-chip.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-chip.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-chip.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-chip.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-chip.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-chip.gui-outline.gui-badge{background:#121212}.gui-dark .gui-chip.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-chip.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-chip.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4} +`,`.gui-light .gui-chip{background:#f6f5f4;border-color:#333;border-style:solid;border-width:1px;color:#333} +`],encapsulation:2,changeDetection:0})}return i})(),An=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),sn=(()=>{class i{unsubscribe$=new ke;constructor(){}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.unsubscribe$.isStopped||(this.unsubscribe$.next(),this.unsubscribe$.complete())}static \u0275fac=function(n){return new(n||i)};static \u0275dir=N({type:i})}return i})(),mt=function(i){return i[i.DAYS=0]="DAYS",i[i.MONTHS=1]="MONTHS",i[i.YEARS=2]="YEARS",i}(mt||{}),ht=function(i){return i[i.NONE=0]="NONE",i[i.DATE_PICKER=1]="DATE_PICKER",i[i.TIME_PICKER=2]="TIME_PICKER",i[i.TIME_PICKER_HOURS=4]="TIME_PICKER_HOURS",i[i.TIME_PICKER_MINUTES=8]="TIME_PICKER_MINUTES",i[i.TIME_PICKER_SECONDS=16]="TIME_PICKER_SECONDS",i[i.TIME_PICKER_MERIDIAN=32]="TIME_PICKER_MERIDIAN",i[i.ALL=63]="ALL",i}(ht||{}),Wp=new Date().getMonth(),Gp=new Date().getFullYear(),Da=(()=>{class i{selectedDate=new Date;selectedTime;selectedDate$=new nt(this.selectedDate);observeSelectedDate(){return this.selectedDate$.asObservable()}dateSelected(e){this.selectedDate=new Date(e.getTime()),this.setSelectedDateTime(),this.selectedDate$.next(this.selectedDate)}changeTime(e,n){this.selectedTime=e,this.selectedDate||(this.selectedDate=n),this.setSelectedDateTime()}next(){this.dateSelected(this.selectedDate)}setSelectedDateTime(){this.selectedTime&&(this.selectedDate.setHours(this.selectedTime.hours),this.selectedDate.setMinutes(this.selectedTime.minutes),this.selectedDate.setSeconds(this.selectedTime.seconds))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),qp=(()=>{class i{datePickerFormat$=new nt(ht.DATE_PICKER);onComposition(){return this.datePickerFormat$.asObservable()}next(e){this.datePickerFormat$.next(this.getComposition(e))}getComposition(e){let n=e.split(":").join(" "),r=n.split("/").join(" "),o=r.split(".").join(" "),s=o.split(",").join(" "),a=s.split(" "),l=ht.NONE;return a.forEach(d=>{let p=d.toLowerCase().includes("d"),w=d.includes("M"),E=d.toLowerCase().includes("y"),Q=d.toLowerCase().includes("h"),ne=d.includes("m"),ce=d.toLowerCase().includes("s"),O=d.includes("h"),Y=p||w||E,Ie=Q||ne||ce;Y&&(l=l|ht.DATE_PICKER),Ie&&(l=l|ht.TIME_PICKER),O&&(l=l|ht.TIME_PICKER_MERIDIAN),Q&&(l=l|ht.TIME_PICKER_HOURS),ne&&(l=l|ht.TIME_PICKER_MINUTES),ce&&(l=l|ht.TIME_PICKER_SECONDS)}),l}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),rC=(()=>{class i{weeks=[];getDaysInMonths(e,n){this.resetWeeks();let r=new Date(e,n+1,0).getDate();for(let o=1;o<=r;o++)this.createWeeks(new Date(e,n,o));return this.weeks}createWeeks(e){let n=e.getDate(),r=6;for(let o=0;othis.getLastDayNumber(this.weeks[e-1])}resetWeeks(){this.weeks=[],this.weeks[0]=[],this.weeks[1]=[],this.weeks[2]=[],this.weeks[3]=[],this.weeks[4]=[],this.weeks[5]=[]}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Yp=(()=>{class i{rowsForDisplay=[];minYear=0;maxYear=0;selectedYear=0;inc=10;getYears(e){this.minYear=e-50,this.maxYear=e+50;let n=this.maxYear-this.minYear,r=[],o=[];return r=this.createYearsPool(this.minYear,n,r),o=this.divideYearsPool(r,o),this.rowsForDisplay=this.createRowsForDisplay(o,e)}prevYearRange(e){return this.selectedYear||(this.selectedYear=e),this.selectedYear>this.minYear&&(this.selectedYear-=this.inc),this.selectedYear>this.minYear?this.getYears(this.selectedYear):this.rowsForDisplay}nextYearRange(e){return this.selectedYear||(this.selectedYear=e),this.selectedYear=this.minYear||n<=this.maxYear){for(let r=0;r-1)return e[r-1]?e[r-2]?e[r+1]?e[r+2]?this.rowsForDisplay=[e[r-2],e[r-1],e[r],e[r+1],e[r+2]]:[e[r-3],e[r-2],e[r-1],e[r],e[r+1]]:[e[r-4],e[r-3],e[r-2],e[r-1],e[r]]:[e[r-1],e[r],e[r+1],e[r+2],e[r+3]]:[e[r],e[r+1],e[r+2],e[r+3],e[r+4]]}return[[]]}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Qp=(()=>{class i{years$=new ke;onYears(){return this.years$.asObservable()}next(e){this.years$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ta=(()=>{class i{activeMonth$=new ke;activeYear$=new ke;onActiveMonth(){return this.activeMonth$.asObservable()}onActiveYear(){return this.activeYear$.asObservable()}nextMonth(e,n){n===11?(this.activeYear$.next(e+1),this.selectMonth(0)):this.selectMonth(n+1)}prevMonth(e,n){n===0?(this.activeYear$.next(e-1),this.selectMonth(11)):this.selectMonth(n-1)}selectYear(e){this.activeYear$.next(e)}selectMonth(e){this.activeMonth$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ma=(()=>{class i{activeView$=new ke;onActiveView(){return this.activeView$.asObservable()}switchView(e){this.activeView$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),wT=["Mo","Tu","We","Th","Fr","Sa","Su"],Ea=class{static areDatesSame(t,e){return t&&e&&t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}static isMonth(t,e,n){return t.getMonth()===e&&t.getFullYear()===n}},CT=(()=>{class i{datePickerService;selectedDate;activeMonth=Wp;weeks=[];daysOfTheWeek=wT;currentDay=new Date;constructor(e){this.datePickerService=e}selectDate(e){this.datePickerService.dateSelected(e)}isDate(e,n){return Ea.areDatesSame(e,n)}displayMonthDays(e){return e===this.activeMonth}static \u0275fac=function(n){return new(n||i)(c(Da))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-days-view"]],inputs:{selectedDate:"selectedDate",activeMonth:"activeMonth",weeks:"weeks"},decls:4,vars:2,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6"],[1,"gui-display-grid","gui-grid-cols-7","gui-py-4","gui-date-picker-header"],[4,"ngFor","ngForOf"],["class","gui-display-grid gui-grid-cols-7",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-7"],["class","gui-date-picker-cell gui-date-picker-day",3,"gui-date-picker-current-day","gui-date-picker-selected-day","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-day",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),D(2,jD,2,1,"div",2),g(),D(3,LD,2,1,"div",3),g()),n&2&&(u(2),m("ngForOf",r.daysOfTheWeek),u(),m("ngForOf",r.weeks))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),IT=[[{nr:0,name:"Jan"},{nr:1,name:"Feb"},{nr:2,name:"Mar"}],[{nr:3,name:"Apr"},{nr:4,name:"May"},{nr:5,name:"Jun"}],[{nr:6,name:"Jul"},{nr:7,name:"Aug"},{nr:8,name:"Sep"}],[{nr:9,name:"Oct"},{nr:10,name:"Nov"},{nr:11,name:"Dec"}]],kT=(()=>{class i{calendarService;calendarViewService;selectedDate;activeYear=Gp;currentDay=new Date;monthsPerQuarters=IT;constructor(e,n){this.calendarService=e,this.calendarViewService=n}isMonth(e,n){return Ea.isMonth(e,n,this.activeYear)}selectMonth(e){this.calendarService.selectMonth(e),this.calendarViewService.switchView(mt.DAYS)}static \u0275fac=function(n){return new(n||i)(c(Ta),c(Ma))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-months-view"]],inputs:{selectedDate:"selectedDate",activeYear:"activeYear"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-3",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-3"],["class","gui-date-picker-cell gui-date-picker-month",3,"gui-date-picker-current-month","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-month",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),D(1,BD,2,1,"div",1),g()),n&2&&(u(),m("ngForOf",r.monthsPerQuarters))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),ET=(()=>{class i{calendarService;calendarViewService;selectedDate;years=[];currentDay=new Date;constructor(e,n){this.calendarService=e,this.calendarViewService=n}selectYear(e){this.calendarService.selectYear(e),this.calendarViewService.switchView(mt.MONTHS)}isYear(e,n){return e?e.getFullYear()===n:!1}static \u0275fac=function(n){return new(n||i)(c(Ta),c(Ma))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-years-view"]],inputs:{selectedDate:"selectedDate",years:"years"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-5",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-5"],["class","gui-date-picker-cell gui-date-picker-year",3,"gui-date-picker-current-year","gui-date-picker-selected-year","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-year",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),D(1,$D,2,1,"div",1),g()),n&2&&(u(),m("ngForOf",r.years))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),Np=function(i){return i[i.NEXT=0]="NEXT",i[i.PREV=1]="PREV",i}(Np||{}),en=function(i){return i[i.TOP=-90]="TOP",i[i.BOTTOM=90]="BOTTOM",i[i.LEFT=180]="LEFT",i[i.RIGHT=0]="RIGHT",i}(en||{}),Yw=["January","February","March","April","May","June","July","August","September","October","November","December"],gd=(()=>{class i{direction=en.RIGHT;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-arrow-icon"]],hostVars:4,hostBindings:function(n,r){n&2&&U("gui-arrow-icon",!0)("gui-icon",!0)},inputs:{direction:"direction"},decls:2,vars:2,consts:[["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"path",1),g()),n&2&&Ae("transform","rotate("+r.direction+"deg)")},styles:[`.gui-arrow-icon{cursor:pointer}.gui-arrow-icon svg path{stroke:#aaa;transition:stroke .2s ease-in-out}.gui-arrow-icon:hover svg path{stroke:#464646} +`],encapsulation:2,changeDetection:0})}return i})(),ST=(()=>{class i{calendarViewService;calendarService;datePickerYearsService;datePickerYears;fabricCalendarView=mt.DAYS;selectedDate;activeMonth=Wp;activeYear=Gp;years=[];Direction=en;FabricCalendarCardView=Np;constructor(e,n,r,o){this.calendarViewService=e,this.calendarService=n,this.datePickerYearsService=r,this.datePickerYears=o}getDisplayedDate(){switch(this.fabricCalendarView){case mt.DAYS:return`${Yw[this.activeMonth]} ${this.activeYear}`;case mt.MONTHS:return`${Yw[this.activeMonth]} ${this.activeYear}`;case mt.YEARS:return`${this.getDisplayedYearRange()}`;default:return""}}switchCalendarView(){switch(this.fabricCalendarView){case mt.DAYS:this.calendarViewService.switchView(mt.YEARS);break;case mt.MONTHS:this.calendarViewService.switchView(mt.DAYS);break;case mt.YEARS:this.calendarViewService.switchView(mt.DAYS);break;default:break}}switchCard(e){let n=e===Np.NEXT,r=n?1:-1,o=this.activeYear+r,s=n?this.datePickerYears.nextYearRange(this.activeYear):this.datePickerYears.prevYearRange(this.activeYear);switch(this.fabricCalendarView){case mt.DAYS:this.handleMonthChange(n);break;case mt.MONTHS:this.calendarService.selectYear(o);break;case mt.YEARS:this.datePickerYearsService.next(s);break;default:break}}getDisplayedYearRange(){return this.years[0][0].toString()+"-"+this.years[4][this.years[4].length-1].toString()}handleMonthChange(e){e?this.calendarService.nextMonth(this.activeYear,this.activeMonth):this.calendarService.prevMonth(this.activeYear,this.activeMonth)}static \u0275fac=function(n){return new(n||i)(c(Ma),c(Ta),c(Qp),c(Yp))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-view-panel"]],inputs:{fabricCalendarView:"fabricCalendarView",selectedDate:"selectedDate",activeMonth:"activeMonth",activeYear:"activeYear",years:"years"},decls:6,vars:3,consts:[[1,"gui-date-picker-view-panel"],[1,"gui-date-picker-view-panel-date",3,"click"],[1,"gui-date-picker-arrows"],[1,"gui-date-picker-arrow",3,"click","direction"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),F("click",function(){return r.switchCalendarView()}),S(2),g(),h(3,"div",2)(4,"gui-arrow-icon",3),F("click",function(){return r.switchCard(r.FabricCalendarCardView.PREV)}),g(),h(5,"gui-arrow-icon",3),F("click",function(){return r.switchCard(r.FabricCalendarCardView.NEXT)}),g()()()),n&2&&(u(2),oe(" ",r.getDisplayedDate()," "),u(2),m("direction",r.Direction.LEFT),u(),m("direction",r.Direction.RIGHT))},dependencies:[gd],encapsulation:2,changeDetection:0})}return i})(),jp=class{hours;minutes;seconds;constructor(t,e,n){this.hours=t,this.minutes=e,this.seconds=n}},pd=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["input","gui-input",""]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-input",!0)},attrs:UD,decls:0,vars:0,template:function(n,r){},styles:[`.gui-input{background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;color:#333;font:14px Arial;margin:0;max-width:100%;outline:0;padding:8px 12px;text-align:left;transition:border-color .3s ease-in-out}.gui-input:hover{border-color:#999}.gui-input:focus{border-color:#6fb4e8}.gui-input:disabled{color:#ccc;cursor:default;pointer-events:none}.gui-input:disabled::-moz-placeholder{color:#ccc}.gui-input:disabled:-ms-input-placeholder{color:#ccc}.gui-input:disabled::placeholder{color:#ccc} +`,`.gui-material .gui-input{border-color:#ccc;border-radius:0;border-style:solid;border-width:0 0 1px 0;font-family:Roboto,Helvetica Neue,sans-serif;padding-left:0;transition:border-color .3s ease-in-out}.gui-material .gui-input:not(:-moz-placeholder-shown){border-color:#6200ee}.gui-material .gui-input:not(:-ms-input-placeholder){border-color:#6200ee}.gui-material .gui-input:not(:placeholder-shown){border-color:#6200ee}.gui-material .gui-input:focus{border-color:#6200ee} +`,`.gui-dark .gui-input{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-input:hover{border-color:#757575}.gui-dark .gui-input:focus{border-color:#ce93d8}.gui-dark .gui-input:disabled{opacity:.36} +`],encapsulation:2,changeDetection:0})}return i})(),DT=(()=>{class i extends sn{formBuilder;datePickerService;selectedDate;datePickerComposition=ht.NONE;steps=1;form;Direction=en;FabricDatePickerComposition=ht;constructor(e,n){super(),this.formBuilder=e,this.datePickerService=n,this.form=this.formBuilder.group({hours:[""],minutes:[""],seconds:[""]})}ngOnChanges(e){e.selectedDate&&this.selectedDate}ngOnInit(){this.isActive(this.datePickerComposition,ht.TIME_PICKER_HOURS)&&this.form.controls.hours.valueChanges.pipe(re(this.unsubscribe$)).subscribe(n=>{let r=this.isMeridian()?1:0,o=this.isMeridian()?12:23;(n>o||n{this.controlFormItemValue(e,"minutes","hours"),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,ht.TIME_PICKER_SECONDS)&&this.form.controls.seconds.valueChanges.pipe(re(this.unsubscribe$)).subscribe(e=>{this.controlFormItemValue(e,"seconds","minutes"),this.changeSelectedDate()}),this.setTimeFromSelectedDate()}changeTimeItem(e,n){let r=this.form.controls[e].value+n;this.form.controls[e].setValue(r)}changeSelectedDateTime(){this.datePickerService.next()}isActive(e,n){return!!(e&n)}isMeridian(){return this.isActive(this.datePickerComposition,ht.TIME_PICKER_MERIDIAN)}isOnlyTimePicker(){return!(this.datePickerComposition&ht.DATE_PICKER)}changeSelectedDate(){if(this.selectedDate){let e=this.form.controls.hours.value,n=this.form.controls.minutes.value,r=this.form.controls.seconds.value,o=new jp(e,n,r);this.datePickerService.changeTime(o,this.selectedDate)}}controlFormItemValue(e,n,r){if(e>59){let o=this.form.controls[r].value,s=o+1;this.form.controls[r].setValue(s),this.form.controls[n].setValue(0)}else e<0&&this.form.controls[n].setValue(0)}setTimeFromSelectedDate(){if(this.selectedDate){let e=this.selectedDate.getHours(),n=this.selectedDate.getMinutes(),r=this.selectedDate.getSeconds();this.form.controls.hours.setValue(e),this.form.controls.minutes.setValue(n),this.form.controls.seconds.setValue(r)}}static \u0275fac=function(n){return new(n||i)(c(xi),c(Da))};static \u0275cmp=I({type:i,selectors:[["gui-time-picker"]],hostVars:2,hostBindings:function(n,r){n&2&&U("only-time-picker",r.isOnlyTimePicker())},inputs:{selectedDate:"selectedDate",datePickerComposition:"datePickerComposition"},features:[C,G],decls:7,vars:5,consts:[[3,"formGroup"],["class","gui-time-picker-item",4,"ngIf"],[1,"gui-time-picker-button-wrapper",3,"click"],["gui-button","",3,"outline"],[1,"gui-time-picker-item"],[1,"gui-date-picker-arrow",3,"click","direction"],["formControlName","hours","gui-input","","maxlength","2"],["formControlName","minutes","gui-input","","maxlength","2","type","number"],["formControlName","seconds","gui-input","","maxlength","2","type","number"]],template:function(n,r){n&1&&(h(0,"form",0),D(1,WD,4,2,"div",1)(2,GD,4,2,"div",1)(3,qD,4,2,"div",1),g(),h(4,"div",2),F("click",function(){return r.changeSelectedDateTime()}),h(5,"button",3),S(6," Ok "),g()()),n&2&&(m("formGroup",r.form),u(),m("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_HOURS)),u(),m("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_MINUTES)),u(),m("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_SECONDS)),u(2),m("outline",!0))},dependencies:[je,Oi,ii,ka,Ri,Ai,Pp,$t,vi,pd,on,gd],encapsulation:2,changeDetection:0})}return i})(),TT=(()=>{class i extends sn{datePickerService;datePickerFormatService;datePickerWeeks;datePickerYears;datePickerYearsService;calendarService;calendarViewService;changeDetectorRef;weeks=[];years=[];selectedDate;activeMonth=Wp;activeYear=Gp;datePickerComposition=ht.NONE;FabricDatePickerComposition=ht;FabricCalendarView=mt;fabricCalendarView=mt.DAYS;constructor(e,n,r,o,s,a,l,d){super(),this.datePickerService=e,this.datePickerFormatService=n,this.datePickerWeeks=r,this.datePickerYears=o,this.datePickerYearsService=s,this.calendarService=a,this.calendarViewService=l,this.changeDetectorRef=d}ngOnInit(){this.datePickerFormatService.onComposition().pipe(re(this.unsubscribe$)).subscribe(e=>{this.datePickerComposition=e}),this.calendarService.onActiveMonth().pipe(re(this.unsubscribe$)).subscribe(e=>{this.activeMonth=e,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.calendarService.onActiveYear().pipe(re(this.unsubscribe$)).subscribe(e=>{this.activeYear=e,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.datePickerService.observeSelectedDate().pipe(re(this.unsubscribe$)).subscribe(e=>{this.selectedDate=e,this.activeYear=e.getFullYear(),this.activeMonth=e.getMonth()}),this.datePickerYearsService.onYears().pipe(re(this.unsubscribe$)).subscribe(e=>{this.years=e,this.changeDetectorRef.detectChanges()}),this.calendarViewService.onActiveView().pipe(re(this.unsubscribe$)).subscribe(e=>{this.fabricCalendarView=e,this.changeDetectorRef.detectChanges()}),this.calculateDatePickerData()}getCalendarView(){return event&&event.stopPropagation(),this.fabricCalendarView}isVisible(e,n){return!!(e&n)}calculateDatePickerData(){this.weeks=this.datePickerWeeks.getDaysInMonths(this.activeYear,this.activeMonth),this.years=this.datePickerYears.getYears(this.activeYear)}static \u0275fac=function(n){return new(n||i)(c(Da),c(qp),c(rC),c(Yp),c(Qp),c(Ta),c(Ma),c(B))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-toggle"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-date-picker-calendar",!0)},features:[C],decls:2,vars:2,consts:[[4,"ngIf"],[3,"datePickerComposition","selectedDate",4,"ngIf"],[3,"activeMonth","activeYear","fabricCalendarView","selectedDate","years"],[3,"ngSwitch"],[3,"activeMonth","selectedDate","weeks",4,"ngSwitchCase"],[3,"activeYear","selectedDate",4,"ngSwitchCase"],[3,"selectedDate","years",4,"ngSwitchCase"],[3,"activeMonth","selectedDate","weeks"],[3,"activeYear","selectedDate"],[3,"selectedDate","years"],[3,"datePickerComposition","selectedDate"]],template:function(n,r){n&1&&D(0,ZD,6,9,"ng-container",0)(1,XD,1,2,"gui-time-picker",1),n&2&&(m("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.DATE_PICKER)),u(),m("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER)))},dependencies:[je,U_,W_,CT,kT,ET,ST,DT],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-date-picker-calendar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;font-family:Roboto,Helvetica Neue,sans-serif;border-radius:4px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0 0 12px;width:268px}.gui-date-picker-header{font-size:13px;font-weight:400;text-align:center;border-top:1px solid #999}.gui-date-picker-cell{border-radius:4px;border-color:transparent;border-style:solid;border-width:1px;padding:2px 4px;position:relative;text-align:center;font-size:13px;z-index:0}.gui-date-picker-cell:before{border:1px solid #999;border-radius:50%;box-sizing:border-box;content:"";display:none;height:36px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:36px;z-index:-1}.gui-date-picker-cell:after{background:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:32px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:32px;z-index:-1}.gui-date-picker-cell:hover:after{background:#e6e6e6}.gui-date-picker-day{color:#333;cursor:pointer;opacity:.2}.gui-date-picker-day.gui-date-picker-selected-month{opacity:1}.gui-date-picker-month,.gui-date-picker-year{cursor:pointer}.gui-date-picker-year{font-size:13px}.gui-date-picker-day.gui-date-picker-current-day:before,.gui-date-picker-month.gui-date-picker-current-month:before,.gui-date-picker-year.gui-date-picker-current-year:before{display:block}.gui-date-picker-day.gui-date-picker-selected-day{pointer-events:none}.gui-date-picker-day.gui-date-picker-selected-day,.gui-date-picker-month.gui-date-picker-selected-month,.gui-date-picker-year.gui-date-picker-selected-year{color:#fff}.gui-date-picker-day.gui-date-picker-selected-day:after,.gui-date-picker-month.gui-date-picker-selected-month:after,.gui-date-picker-year.gui-date-picker-selected-year:after{background:#2185d0}.gui-date-picker-arrows{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:32px}.gui-date-picker-view-padding{padding:0 8px}.gui-date-picker-view-border-top{border-top:1px solid #999}gui-time-picker{border-top:1px solid #999;margin:6px 0 0;padding:12px 0 2.6666666667px}gui-time-picker form{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}gui-time-picker.only-time-picker{border-top:none}.gui-time-picker-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding-right:8px}.gui-time-picker-button-wrapper .gui-button{font-size:12px}.gui-time-picker-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0 8px;position:relative}.gui-time-picker-item input{box-sizing:border-box;max-width:24px;text-align:center}.gui-time-picker-item input::-webkit-outer-spin-button,.gui-time-picker-item input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gui-time-picker-item input[type=number]{-moz-appearance:textfield}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(1){margin-bottom:2px}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(2){margin-top:6px}.gui-date-picker-view-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 18px}.gui-date-picker-view-panel .gui-date-picker-view-panel-date{cursor:pointer;font-size:14px;font-weight:700;margin:0;pointer-events:auto}.gui-date-picker-arrow{position:relative;z-index:0}.gui-date-picker-arrow:hover:after{background:#e6e6e6;border-radius:50%;box-sizing:border-box;content:"";display:block;height:24px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:24px;z-index:-1} +`],encapsulation:2,changeDetection:0})}return i})(),Ni=function(i){return i[i.TOP=1]="TOP",i[i.BOTTOM=2]="BOTTOM",i[i.BEFORE=3]="BEFORE",i[i.AFTER=4]="AFTER",i}(Ni||{}),ns=new K("Theme token"),ri=(()=>{class i{fabricTheme$=new nt(Ce.FABRIC);onTheme(){return this.fabricTheme$.asObservable()}changeTheme(e){let n=typeof e=="string"?this.convertToTheme(e):e;this.fabricTheme$.next(n)}convertToTheme(e){switch(e.toLowerCase()){case"fabric":return Ce.FABRIC;case"material":return Ce.MATERIAL;case"generic":return Ce.GENERIC;case"light":return Ce.LIGHT;case"dark":return Ce.DARK;default:return Ce.FABRIC}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Fa=(()=>{class i extends sn{elementRef;renderer;themeService;static CSS_CLASS_PREFIX="gui-";constructor(e,n,r){super(),this.elementRef=e,this.renderer=n,this.themeService=r}ngAfterViewInit(){this.themeService.onTheme().pipe(Zc(),re(this.unsubscribe$)).subscribe(e=>{this.addTheme(e)})}addTheme(e){this.removeThemes();let n=i.CSS_CLASS_PREFIX+e.toLowerCase();this.renderer.addClass(this.elementRef.nativeElement,n)}removeThemes(){Object.keys(Ce).map(n=>Ce[n].toLowerCase()).filter(n=>!Number.isInteger(n)).forEach(n=>{let r=i.CSS_CLASS_PREFIX+n;this.renderer.removeClass(this.elementRef.nativeElement,r)})}getElementRef(){return this.elementRef}getRenderer(){return this.renderer}static \u0275fac=function(n){return new(n||i)(c(x),c(We),c(ri))};static \u0275dir=N({type:i,features:[C]})}return i})(),Vp=class{elementRef;containerClassName;constructor(t,e){this.elementRef=t,this.containerClassName=e}getHeight(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetHeight}getWidth(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetWidth}},Lp=class extends Vp{verticalPosition=0;horizontalPosition=0;constructor(t,e,n,r,o,s){super(n,r),this.calculateCords(t,e,s,o)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}calculateCords(t,e,n,r){let o=e.nativeElement.getBoundingClientRect(),s=t.pageYOffset+o.bottom,a=t.pageXOffset+o.left,l=t.pageXOffset+o.right,d=t.pageYOffset+o.top,p=d+n-this.getHeight();switch(r){case Ni.BOTTOM:this.horizontalPosition=a,this.verticalPosition=s+n;break;case Ni.TOP:this.horizontalPosition=a,this.verticalPosition=p;break;case Ni.BEFORE:this.horizontalPosition=l+n-this.getWidth(),this.verticalPosition=s;break;case Ni.AFTER:this.horizontalPosition=a+n,this.verticalPosition=s;break;default:this.horizontalPosition=a,this.verticalPosition=s+n}this.calculateDirection(e,t,p)}calculateDirection(t,e,n){let r=e.innerHeight+e.pageYOffset,o=e.innerWidth+e.pageXOffset,s=t.nativeElement.offsetWidth,a=this.getHeight(),l=this.getWidth(),d=o-this.horizontalPosition-l<0,p=r-this.verticalPosition-a<0;d&&(this.horizontalPosition-=l-s),p&&(this.verticalPosition=n)}},MT=(()=>{class i extends Lp{static defaultInlineDialogOffset=8;constructor(e,n,r,o,s=i.defaultInlineDialogOffset){super(r,e,n,"gui-inline-dialog-wrapper",o,s)}}return i})(),Kp=(()=>{class i{platformId;inlineDialogGeometry;inlineDialogState$=new ke;constructor(e){this.platformId=e}observeInlineDialogCords(){return this.inlineDialogState$.asObservable()}changeGeometry(e){this.inlineDialogGeometry=e}getInlineDialogCords(e,n,r){if(St(this.platformId)){let o=new MT(e,this.inlineDialogGeometry,window,n,r);this.inlineDialogState$.next(o)}}static \u0275fac=function(n){return new(n||i)(v(Ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),FT=(()=>{class i extends Fa{componentFactoryResolver;changeDetectorRef;inlineDialogService;elRef;inlineDialogGeometryService;container;customClass="";inlineDialogNestedComponent;inlineDialogNestedInjector;dialogTopAttribute;dialogLeftAttribute;visible=!1;width="400px";constructor(e,n,r,o,s,a,l,d){super(o,a,l),this.componentFactoryResolver=e,this.changeDetectorRef=n,this.inlineDialogService=r,this.elRef=o,this.inlineDialogGeometryService=s}ngOnInit(){this.inlineDialogGeometryService.observeInlineDialogCords().pipe(re(this.unsubscribe$)).subscribe(e=>{this.dialogTopAttribute=e.getVerticalPosition(),this.dialogLeftAttribute=e.getHorizontalPosition(),this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(this.inlineDialogNestedComponent),this.inlineDialogGeometryService.changeGeometry(this.elRef),this.changeDetectorRef.detectChanges(),Gi(0).pipe(re(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}ngOnDestroy(){this.unsubscribe()}clickOutside(e){this.isContainerClicked(e)&&this.inlineDialogService.close()}isContainerClicked(e){return!this.elRef.nativeElement.contains(e.target)}createNestedComponent(e){if(this.container&&e){let n=this.componentFactoryResolver.resolveComponentFactory(e);this.inlineDialogNestedInjector?this.container.createComponent(n,void 0,this.inlineDialogNestedInjector):this.container.createComponent(n),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(Je),c(B),c(pi(()=>rs)),c(x),c(Kp),c(We),c(ri),c(ns))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,Ei),n&2){let o;L(o=z())&&(r.container=o.first)}},features:[C],decls:4,vars:9,consts:[["container",""],[1,"gui-inline-dialog-wrapper",3,"ngClass"],[1,"gui-inline-dialog-content",3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1)(1,"div",2),F("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps),D(2,JD,0,0,"ng-template",null,0,Ee),g()()}n&2&&(Ae("left",r.dialogLeftAttribute,"px")("top",r.dialogTopAttribute,"px"),m("ngClass",r.customClass),u(),Ae("max-width",r.width),U("gui-inline-dialog-visible",r.visible))},dependencies:[Ki],styles:[`.gui-inline-dialog-wrapper{box-sizing:border-box;position:absolute;z-index:1}.gui-inline-dialog-wrapper .gui-inline-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;box-sizing:border-box;display:block;z-index:1000;opacity:0;transition:opacity .2s ease-in-out}.gui-inline-dialog-wrapper .gui-inline-dialog-content.gui-inline-dialog-visible{opacity:1} +`,`.gui-dark .gui-inline-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd} +`],encapsulation:2,changeDetection:0})}return i})(),rs=(()=>{class i{componentFactoryResolver;applicationRef;injector;document;inlineDialogGeometryService;inlineDialogRef=null;opened=!1;opened$=new nt(!1);destroy$=new ke;constructor(e,n,r,o,s){this.componentFactoryResolver=e,this.applicationRef=n,this.injector=r,this.document=o,this.inlineDialogGeometryService=s}ngOnDestroy(){this.removeInlineDialog()}open(e,n,r){if(event&&event.stopPropagation(),this.inlineDialogRef)this.close();else{let o=this.injector,s=Ni.BOTTOM,a=0,l=Ce.FABRIC,d="";r&&r.injector&&(o=r.injector),r&&r.placement&&(s=r.placement),r&&r.offset&&(a=r.offset),r&&r.theme&&(l=r.theme),r&&r.customClass&&(d=r.customClass);let p=ve.create({providers:[{provide:ns,useValue:l}],parent:o});this.setOpened(!0),this.appendInlineDialogToElement(n,p,d),this.inlineDialogGeometryService.getInlineDialogCords(e,s,a),this.closeOnEscKey()}}close(){this.removeInlineDialog(),this.destroy$.next(void 0),this.destroy$.complete(),this.setOpened(!1)}isOpened(){return this.opened}onOpened(){return this.opened$.asObservable()}appendInlineDialogToElement(e,n,r){let o=this.componentFactoryResolver.resolveComponentFactory(FT).create(n);r&&(o.instance.customClass=r),o.instance.inlineDialogNestedComponent=e,o.changeDetectorRef.detectChanges(),this.applicationRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];this.document.body.appendChild(s),this.inlineDialogRef=o}removeInlineDialog(){this.inlineDialogRef&&(this.applicationRef.detachView(this.inlineDialogRef.hostView),this.inlineDialogRef.destroy(),this.inlineDialogRef=null)}setOpened(e){this.opened=e,this.opened$.next(this.opened)}closeOnEscKey(){tr(this.document,"keyup").pipe(kt(n=>n.code==="Escape"),re(this.destroy$)).subscribe(()=>this.close())}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue),v(Kp))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),oC=(()=>{class i{fabricInlineDialogService;constructor(e){this.fabricInlineDialogService=e}open(e,n,r){let o=Ce.FABRIC;r&&(o=r),this.fabricInlineDialogService.open(e,n,{placement:Ni.BOTTOM,offset:0,theme:o})}close(){this.fabricInlineDialogService.close()}isOpened(){return this.fabricInlineDialogService.isOpened()}onOpened(){return this.fabricInlineDialogService.onOpened()}static \u0275fac=function(n){return new(n||i)(v(rs))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),RT=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-date-picker-icon"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-date-picker-icon",!0)},decls:8,vars:0,consts:[["height","9.82","viewBox","0 0 8.76 9.82","width","8.76","xmlns","http://www.w3.org/2000/svg"],["d","M401.41,308.63l-.46.15h-.15a.34.34,0,0,1-.08-.67l.68-.22a1.539,1.539,0,0,1,.38-.07h0a.39.39,0,0,1,.39.39V312a.38.38,0,0,1-.39.39.39.39,0,0,1-.39-.39Z","fill","#8c8b8b","transform","translate(-397.19 -304.36)"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 9.32)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 2.16)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.5 0.5)","y2","8.82"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(3.09 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(5.68 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(8.26 0.5)","y2","8.82"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"path",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6)(7,"line",7),g())},styles:[`.gui-date-picker-icon svg{height:16px;width:16px}.gui-date-picker-icon svg line,.gui-date-picker-icon svg path{transition:all .3s ease-in-out}.gui-date-picker-icon svg line{stroke:#aaa}.gui-date-picker-icon svg path{fill:#aaa}.gui-date-picker-icon svg:hover line{stroke:#464646}.gui-date-picker-icon svg:hover path{fill:#464646} +`,`.gui-dark .gui-date-picker-icon svg line{stroke:#bdbdbd}.gui-dark .gui-date-picker-icon svg path{fill:#bdbdbd}.gui-dark .gui-date-picker-icon svg:hover line{stroke:#616161}.gui-dark .gui-date-picker-icon svg:hover path{fill:#616161} +`],encapsulation:2})}return i})(),sC=(()=>{class i extends sn{fabricDatePickerInlineDialogService;datePickerService;datePickerCompositionService;changeDetectorRef;datePickerRef;parentElement;theme;selectDate;name="";openDialog=!1;onlyDialog=!1;datePipeOptions="dd/MM/yyyy";dateSelected=new W;dialogOpened=new W;datePickerForm;pickedDate=new Date;inputDisabled="";constructor(e,n,r,o,s){super(),this.fabricDatePickerInlineDialogService=e,this.datePickerService=n,this.datePickerCompositionService=r,this.changeDetectorRef=s,this.datePickerForm=o.group({date:[""]})}ngOnChanges(e){e.selectDate&&this.selectDate&&(!this.pickedDate||!Ea.areDatesSame(this.selectDate,this.pickedDate))&&this.datePickerService.dateSelected(this.selectDate),e.onlyDialog&&(this.inputDisabled=this.onlyDialog?"disabled":""),e.datePipeOptions&&this.datePickerCompositionService.next(this.datePipeOptions)}ngOnInit(){this.datePickerService.observeSelectedDate().pipe(nr(1),re(this.unsubscribe$)).subscribe(e=>{this.pickedDate=e,this.emitSelectedDate(e),this.changeDetectorRef.detectChanges(),this.closeDatePicker()}),this.fabricDatePickerInlineDialogService.onOpened().pipe(nr(1),re(this.unsubscribe$)).subscribe(e=>{this.dialogOpened.emit(e)})}ngAfterViewInit(){this.datePickerService.observeSelectedDate().pipe(jt(1),re(this.unsubscribe$)).subscribe(e=>{this.pickedDate=e,this.emitSelectedDate(e),this.changeDetectorRef.detectChanges()}),this.openDialog&&this.openDatePicker()}ngOnDestroy(){super.ngOnDestroy(),this.fabricDatePickerInlineDialogService.close()}openDatePicker(){let e=!this.parentElement&&this.datePickerRef,n=e?this.datePickerRef:this.parentElement;n&&this.fabricDatePickerInlineDialogService.open(n,TT,this.theme)}closeDatePicker(){this.fabricDatePickerInlineDialogService.close()}emitSelectedDate(e){this.dateSelected.emit(e)}static \u0275fac=function(n){return new(n||i)(c(oC),c(Da),c(qp),c(xi),c(B))};static \u0275cmp=I({type:i,selectors:[["gui-date-picker"]],viewQuery:function(n,r){if(n&1&&X(eT,5,x),n&2){let o;L(o=z())&&(r.datePickerRef=o.first)}},inputs:{parentElement:"parentElement",theme:"theme",selectDate:"selectDate",name:"name",openDialog:"openDialog",onlyDialog:"onlyDialog",datePipeOptions:"datePipeOptions"},outputs:{dateSelected:"dateSelected",dialogOpened:"dialogOpened"},features:[C,G],decls:6,vars:7,consts:[["datePicker",""],[1,"gui-date-picker"],[3,"formGroup"],["formControlName","date","gui-input","","readonly","",1,"gui-date-picker-input",3,"name","value"],[1,"gui-date-picker-icon",3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1,0)(2,"form",2),b(3,"input",3),J(4,"date"),g(),h(5,"gui-date-picker-icon",4),F("click",function(){return R(o),A(r.openDatePicker())}),g()()}n&2&&(u(2),m("formGroup",r.datePickerForm),u(),m("name",r.name)("value",cr(4,4,r.pickedDate,r.datePipeOptions)),De("disabled",r.inputDisabled))},dependencies:[Oi,ii,Ri,Ai,$t,vi,pd,RT,ul],styles:[`.gui-date-picker{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;position:relative}.gui-date-picker .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}.gui-date-picker input,.gui-date-picker-calendar input{background:transparent;border-radius:0;border-width:0 0 1px 0;font-family:Arial;font-size:14px;padding:4px}.gui-date-picker input:disabled,.gui-date-picker-calendar input:disabled{color:#333}.gui-date-picker .gui-date-picker-icon,.gui-date-picker-calendar .gui-date-picker-icon{cursor:pointer;position:absolute;right:0} +`,`.gui-dark .gui-input{background:transparent;color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-arrow-icon:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell{color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year{color:#333}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#dfb8e6} +`,`.gui-material .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-material .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-material .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#6200ee} +`],encapsulation:2,changeDetection:0})}return i})(),Fr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[rs,Kp],imports:[q]})}return i})(),nn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Zp=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),AT=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),md=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[Da,qp,Ta,Ma,Qp,rC,Yp,oC],imports:[q,Fr,Pi,nn,ni,AT,Zp]})}return i})(),Ra=(()=>{class i extends sn{componentFactoryResolver;applicationRef;injector;document;componentRef="destroyed";constructor(e,n,r,o){super(),this.componentFactoryResolver=e,this.applicationRef=n,this.injector=r,this.document=o}ngOnDestroy(){this.removeComponent()}createAndAppend(e){let n=e?.injector?e.injector:this.injector;this.componentRef=this.componentFactoryResolver.resolveComponentFactory(this.getComponent()).create(n),this.applicationRef.attachView(this.componentRef.hostView);let r=this.componentRef.hostView.rootNodes[0];this.getElement(e?.appendToElement).appendChild(r),e?.afterCompCreation&&e?.afterCompCreation(),this.componentRef.changeDetectorRef.detectChanges()}removeComponent(){this.componentRef!=="destroyed"&&(this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef="destroyed",this.unsubscribe())}getComponentRef(){return this.componentRef}getInjector(){return this.injector}getDocument(){return this.document}onCloseOnEsc(){return tr(this.getDocument(),"keyup").pipe(kt(n=>n.code==="Escape"),re(this.unsubscribe$))}isComponentCreated(){return this.componentRef!=="destroyed"}getElement(e){return e?e.nativeElement:this.document.body}static \u0275fac=function(n){return new(n||i)(c(Je),c(Et),c(ve),c(ue))};static \u0275dir=N({type:i,features:[C]})}return i})(),fd=(()=>{class i extends Ra{inProgress=!1;constructor(e,n,r,o){super(e,n,r,o)}getComponent(){return OT}open(e){event&&event.stopPropagation(),!(this.isComponentCreated()&&e?.preventReopeningDrawer)&&(this.isComponentCreated()&&!this.inProgress&&!e?.preventReopeningDrawer?this.waitAndCreateNewDrawer(e):this.createDrawer(e))}close(){if(this.isComponentCreated()){let e=this.getComponentRef();e.instance.visible=!1,e.instance.detectChanges(),Gi(300).pipe(re(this.unsubscribe$)).subscribe(()=>{this.removeComponent(),this.inProgress=!1})}}createDrawer(e){this.isComponentCreated()&&this.removeComponent();let n=Ce.FABRIC,r=this.getInjector();e&&e.theme&&(n=e.theme),e&&e.injector&&(r=e.injector);let o=ve.create({providers:[{provide:ns,useValue:n}],parent:r});this.createAndAppend({injector:o,afterCompCreation:()=>this.applyInstanceVars(e),appendToElement:e?.appendToElement}),this.closeOnEscKey()}waitAndCreateNewDrawer(e){this.inProgress=!0,this.close(),Gi(400).pipe(re(this.unsubscribe$)).subscribe(()=>{this.createDrawer(e)})}applyInstanceVars(e){if(this.isComponentCreated()){let n=this.getComponentRef();e?.width&&(n.instance.width=e.width),e?.closeOnClickOutside&&(n.instance.closeOnClickOutside=e.closeOnClickOutside),n.instance.dialogNestedComponent=e?.component,n.instance.isFixed=!e?.appendToElement}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})();var Xp=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-close-icon"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-close-icon-wrapper",!0)},decls:1,vars:0,consts:[[1,"gui-close-icon"]],template:function(n,r){n&1&&b(0,"span",0)},styles:[`.gui-close-icon-wrapper .gui-close-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:8px;width:16px}.gui-close-icon-wrapper .gui-close-icon:before,.gui-close-icon-wrapper .gui-close-icon:after{background-color:#aaa;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-close-icon-wrapper .gui-close-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-close-icon-wrapper .gui-close-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-close-icon-wrapper .gui-close-icon:hover:before,.gui-close-icon-wrapper .gui-close-icon:hover:after{background-color:#464646} +`],encapsulation:2,changeDetection:0})}return i})(),OT=(()=>{class i extends Fa{componentFactoryResolver;changeDetectorRef;elRef;dialogService;container;width="400px";closeOnClickOutside=!1;dialogNestedComponent;visible=!1;isFixed=!1;constructor(e,n,r,o,s,a){super(r,a,s),this.componentFactoryResolver=e,this.changeDetectorRef=n,this.elRef=r,this.dialogService=o}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),Gi(50).pipe(re(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}closeDrawer(){this.dialogService.close()}clickOutside(e){this.closeOnClickOutside&&this.isContainerClicked(e)&&this.closeDrawer()}detectChanges(){this.changeDetectorRef.detectChanges()}isContainerClicked(e){let n=this.elRef.nativeElement.querySelector(".gui-drawer-content");return n?!n.contains(e.target):!1}createNestedComponent(){if(this.container){let e=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(e),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(Je),c(B),c(x),c(fd),c(ri),c(We))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,Ei),n&2){let o;L(o=z())&&(r.container=o.first)}},features:[C],decls:5,vars:6,consts:[["container",""],[1,"gui-drawer-wrapper",3,"click"],[1,"gui-drawer-content"],[3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1),F("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps),h(1,"div",2)(2,"gui-close-icon",3),F("click",function(){return R(o),A(r.closeDrawer())}),g(),D(3,tT,0,0,"ng-template",null,0,Ee),g()()}n&2&&(Ae("max-width",r.width),U("gui-drawer-fixed",r.isFixed)("gui-drawer-visible",r.visible))},dependencies:[Xp],styles:[`.gui-drawer-wrapper{display:-ms-flexbox;display:flex;font-family:Arial;height:100%;width:auto;position:absolute;padding-left:50px;right:0;top:0;overflow:hidden;z-index:1000}.gui-drawer-wrapper .gui-drawer-content{background-color:#fff;height:100%;position:relative;margin-left:auto;-ms-transform:translateX(100%);transform:translate(100%);transition:all .3s ease-in-out}.gui-drawer-wrapper.gui-drawer-visible .gui-drawer-content{-ms-transform:translateX(0);transform:translate(0);box-shadow:-6px 0 16px -8px #00000014,-9px 0 28px #0000000d,-12px 0 48px 16px #00000008}.gui-drawer-wrapper.gui-drawer-fixed{position:fixed;height:100vh} +`,`.gui-dark .gui-drawer-wrapper .gui-drawer-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd} +`],encapsulation:2,changeDetection:0})}return i})(),Jp=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),qo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[fd],imports:[q,Jp]})}return i})(),zp=class{container;menu;windowSize;containerHeight=0;containerWidth=0;availableBottomSpace=0;availableTopSpace=0;constructor(t,e,n){this.container=t,this.menu=e,this.windowSize=n,this.calculate(this.menu,this.windowSize)}getContainerHeight(){return this.containerHeight}getContainerWidth(){return this.containerWidth}canOpenDownward(){return this.availableBottomSpace>0}canOpenUpward(){return this.availableTopSpace>0}calculate(t,e){let n=this.container.nativeElement,r=t.nativeElement.offsetHeight,o=n.getBoundingClientRect().bottom;this.containerHeight=n.offsetHeight,this.containerWidth=n.offsetWidth,this.availableBottomSpace=e-o-r,this.availableTopSpace=o-r-this.containerHeight}},Qw=(()=>{class i{geometryResults$=new ke;watchGeometry(){return this.geometryResults$.asObservable()}changeGeometry(e,n,r){let o=new zp(e,n,r);this.geometryResults$.next(o)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Mr=function(i){return i[i.Right=0]="Right",i[i.Left=1]="Left",i}(Mr||{}),aC=(()=>{class i extends sn{platformId;elementRef;renderer;changeDetectorRef;geometryService;dropdownMenuRef;containerRef;onResize(){St(this.platformId)&&(this.windowSize=window.innerHeight)}disabled=!1;dropdownText="Dropdown";isArrowEnabled=!0;placement;width=120;showOnHover=!1;containerWidth=0;containerHeight=0;windowSize=0;horizontalPosition=0;bottomPosition=0;topPosition=0;arrowDirection=en.BOTTOM;canOpenDownward=!1;canOpenUpward=!1;open=!1;topBorderWidth=1;constructor(e,n,r,o,s){super(),this.platformId=e,this.elementRef=n,this.renderer=r,this.changeDetectorRef=o,this.geometryService=s,this.onResize()}ngOnChanges(e){e.placement&&this.changePlacement()}ngOnInit(){this.geometryService.watchGeometry().pipe(re(this.unsubscribe$)).subscribe(e=>{this.containerHeight=e.getContainerHeight(),this.containerWidth=e.getContainerWidth(),this.canOpenUpward=e.canOpenUpward(),this.canOpenDownward=e.canOpenDownward()})}tryToOpen(e){this.isContainerDisabled(e)?e.stopPropagation():(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}tryToOpenOnHover(){this.showOnHover&&(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}hideOnHover(){this.showOnHover&&(this.hideItems(),this.open=!1)}clickOutside(e){this.isContainerClicked(e)&&this.openMenu(!1)}isDirectionLeft(){return this.isArrowEnabled&&this.arrowDirection===en.LEFT}openMenu(e){this.open=e,this.open?this.showItems():this.hideItems()}showItems(){this.containerRef&&this.dropdownMenuRef&&(this.addClass(this.elementRef.nativeElement,"gui-menu-opened"),this.geometryService.changeGeometry(this.containerRef,this.dropdownMenuRef,this.windowSize),this.canOpenDownward||!this.canOpenUpward?this.openDownward():this.openUpward(),this.placement===Mr.Right&&this.openRight(),this.placement===Mr.Left&&this.openLeft())}openDownward(){this.topPosition=null,this.bottomPosition=this.containerHeight}openUpward(){this.bottomPosition=null,this.topPosition=this.containerHeight}openRight(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=this.containerWidth}openLeft(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=-(this.containerWidth+1)}changePlacement(){if(this.dropdownMenuRef)switch(this.placement){case Mr.Right:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.arrowDirection=en.RIGHT;break}case Mr.Left:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.arrowDirection=en.LEFT;break}default:break}}hideItems(){this.elementRef.nativeElement.classList.contains("gui-menu-opened")&&this.removeClass(this.elementRef.nativeElement,"gui-menu-opened")}isContainerClicked(e){return!this.elementRef.nativeElement.contains(e.target)}isContainerDisabled(e){return e.target.classList.contains("gui-disabled")}addClass(e,n){this.renderer.addClass(e,n)}removeClass(e,n){this.renderer.removeClass(e,n)}static \u0275fac=function(n){return new(n||i)(c(Ue),c(x),c(We),c(B),c(Qw))};static \u0275cmp=I({type:i,selectors:[["gui-dropdown"]],viewQuery:function(n,r){if(n&1&&(X(iT,7,x),X(Sa,7,x)),n&2){let o;L(o=z())&&(r.dropdownMenuRef=o.first),L(o=z())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(n,r){n&1&&F("resize",function(){return r.onResize()},!1,M_),n&2&&U("gui-dropdown",!0)},inputs:{disabled:"disabled",dropdownText:"dropdownText",isArrowEnabled:"isArrowEnabled",placement:"placement",width:"width",showOnHover:"showOnHover"},features:[ge([Qw]),C,G],ngContentSelectors:rn,decls:8,vars:14,consts:[["container",""],["dropdownMenu",""],[1,"gui-dropdown-container",3,"click","mouseenter","mouseleave"],[1,"gui-dropdown-text"],[3,"gui-dropdown-arrow",4,"ngIf"],[1,"gui-dropdown-menu"],[3,"direction"]],template:function(n,r){if(n&1){let o=Z();Ne(),h(0,"div",2,0),F("click",function(a){return R(o),A(r.tryToOpen(a))})("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps)("mouseenter",function(){return R(o),A(r.tryToOpenOnHover())})("mouseleave",function(){return R(o),A(r.hideOnHover())}),h(2,"div",3),S(3),g(),D(4,nT,2,3,"div",4),h(5,"div",5,1),be(7),g()()}n&2&&(Ae("width",r.width,"px"),U("gui-arrow-left",r.isDirectionLeft())("gui-disabled",r.disabled),u(3),xe(r.dropdownText),u(),m("ngIf",r.isArrowEnabled),u(),Ae("bottom",r.topPosition,"px")("left",r.horizontalPosition,"px")("top",r.bottomPosition,"px"))},dependencies:[je,gd],styles:[`.gui-dropdown .gui-dropdown-container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 12px;position:relative;width:auto}.gui-dropdown .gui-dropdown-container:hover{border-color:#999}.gui-dropdown .gui-dropdown-container:hover .gui-arrow-icon svg path{stroke:#464646}.gui-dropdown .gui-dropdown-container .gui-dropdown-arrow{cursor:pointer;position:absolute;right:12px;top:8px}.gui-dropdown .gui-dropdown-container .gui-dropdown-right.gui-dropdown-menu,.gui-dropdown .gui-dropdown-container .gui-dropdown-left.gui-dropdown-menu{margin:0}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{background:inherit;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;display:none;left:-1px;overflow:hidden;position:absolute;width:inherit;z-index:2}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{list-style-type:none;padding:8px 12px;width:inherit}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#cccccc}.gui-dropdown .gui-dropdown-container.gui-arrow-left{padding:8px 12px 8px 32px}.gui-dropdown .gui-dropdown-container.gui-arrow-left .gui-dropdown-arrow{left:12px;right:initial}.gui-dropdown.gui-menu-opened .gui-dropdown-container{border-color:#999}.gui-dropdown.gui-menu-opened .gui-dropdown-menu{display:block}.gui-dropdown .gui-disabled{color:#ccc;pointer-events:none} +`,`.gui-material .gui-dropdown .gui-dropdown-container{font-family:Roboto,Helvetica Neue,sans-serif} +`,`.gui-dark .gui-dropdown .gui-dropdown-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-dropdown .gui-dropdown-container:hover{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow svg path{stroke:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#616161}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{border-top-color:#757575}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#616161}.gui-dark .gui-dropdown.gui-options-opened .gui-dropdown-container{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-disabled{opacity:.36} +`],encapsulation:2,changeDetection:0})}return i})(),cC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-dropdown-item"]],ngContentSelectors:rn,decls:2,vars:0,consts:[[1,"gui-item"]],template:function(n,r){n&1&&(Ne(),h(0,"div",0),be(1),g())},encapsulation:2,changeDetection:0})}return i})(),Yo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Zp]})}return i})(),Ar=(()=>{class i extends Ra{constructor(e,n,r,o){super(e,n,r,o)}getComponent(){return PT}open(e){if(this.isComponentCreated())return;let n=Ce.FABRIC,r=this.getInjector();e&&e.theme&&(n=e.theme),e&&e.injector&&(r=e.injector);let o=ve.create({providers:[{provide:ns,useValue:n}],parent:r});this.createAndAppend({afterCompCreation:()=>this.afterComponentCreation(e),injector:o}),this.closeOnEscKey()}close(){if(this.isComponentCreated()){let e=this.getComponentRef();e.instance.visible=!1,e.instance.detectChanges(),Gi(400).pipe(re(this.unsubscribe$)).subscribe(()=>{this.removeComponent()})}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}afterComponentCreation(e){if(this.isComponentCreated()){let n=this.getComponentRef();n.instance.dialogNestedComponent=e.component,e?.width&&(n.instance.width=e.width),e?.height&&(n.instance.height=e.height),n.instance.setTransformOrigin(event)}}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),PT=(()=>{class i extends Fa{componentFactoryResolver;changeDetectorRef;elRef;platformId;dialogService;container;dialogNestedComponent;visible=!1;width="400px";height="90vh";triggerPosition="";constructor(e,n,r,o,s,a,l){super(r,a,s),this.componentFactoryResolver=e,this.changeDetectorRef=n,this.elRef=r,this.platformId=o,this.dialogService=l}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),Gi(0).pipe(re(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.detectChanges()})}detectChanges(){this.changeDetectorRef.detectChanges()}closeDialog(){this.dialogService.close()}clickOutside(e){this.isContainerClicked(e)&&this.dialogService.close()}setTransformOrigin(e){if(St(this.platformId)&&e){let n=e.clientX-window.innerWidth/2,r=e.clientY-window.innerHeight/2;this.triggerPosition=`${n}px ${r}px`}}isContainerClicked(e){let n=this.elRef.nativeElement.querySelector(".gui-dialog-content");return n?!n.contains(e.target):!1}createNestedComponent(){if(this.dialogNestedComponent&&this.container){let e=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(e),this.detectChanges()}}static \u0275fac=function(n){return new(n||i)(c(Je),c(B),c(x),c(Ue),c(ri),c(We),c(pi(()=>Ar)))};static \u0275cmp=I({type:i,selectors:[["gui-fabric-dialog"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,Ei),n&2){let o;L(o=z())&&(r.container=o.first)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-fabric-dialog",!0)},features:[C],decls:6,vars:8,consts:[["container",""],[1,"gui-dialog-blanket"],[1,"gui-dialog-wrapper",3,"click"],[1,"gui-dialog-content"],[3,"click"]],template:function(n,r){if(n&1){let o=Z();b(0,"div",1),h(1,"div",2),F("click",function(a){return R(o),A(r.clickOutside(a))}),h(2,"div",3),D(3,rT,0,0,"ng-template",null,0,Ee),h(5,"gui-close-icon",4),F("click",function(){return R(o),A(r.closeDialog())}),g()()()}n&2&&(u(2),Ae("max-height",r.height)("max-width",r.width)("transform-origin",r.triggerPosition),U("gui-dialog-visible",r.visible))},dependencies:[Xp],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-fabric-dialog *,.gui-fabric-dialog *:after,.gui-fabric-dialog *:before{box-sizing:border-box}.gui-fabric-dialog input{font-size:13px;outline:0}.gui-dialog-blanket{background:rgba(0,0,0,.32);height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:1000}.gui-dialog-wrapper{font-family:Arial;height:100%;width:100%;position:fixed;pointer-events:auto;left:0;top:0;z-index:1000}.gui-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 7px #999;padding:24px 16px;position:fixed;left:50%;top:50%;transform:scale3d(0,0,0) translate(-50%) translateY(-50%);opacity:0;transition:all .4s;overflow:auto;z-index:1000}.gui-dialog-content.gui-dialog-visible{transform:scaleZ(1) translate(-50%) translateY(-50%);opacity:1} +`,`.gui-dark .gui-dialog-wrapper .gui-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:before,.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:after{background:#bdbdbd} +`],encapsulation:2,changeDetection:0})}return i})(),NT=(()=>{class i{theme$=new ke;onTheme(){return this.theme$.asObservable()}nextTheme(e){this.theme$.next(this.toTheme(e))}toTheme(e){switch(e.toLowerCase()){case"fabric":return Ce.FABRIC;case"material":return Ce.MATERIAL;case"generic":return Ce.GENERIC;case"light":return Ce.LIGHT;case"dark":return Ce.DARK;default:return Ce.FABRIC}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Qo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[Ar,NT],imports:[q,Jp]})}return i})();var Ko=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),jT=(()=>{class i{elementRef;renderer;width=5;diameter=90;primary=!1;secondary=!1;r=0;circumference=0;croppedCircle=0;circleSize=0;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(e){this.calculateCircle(),e.primary&&(this.primary?this.addClass("gui-primary"):this.removeClass("gui-primary")),e.secondary&&(this.secondary?this.addClass("gui-secondary"):this.removeClass("gui-secondary"))}ngOnInit(){this.calculateCircle()}calculateCircle(){this.circumference=this.calculateCircumference(this.diameter),this.r=this.calculateR(this.diameter),this.croppedCircle=this.calculateDashes(this.circumference),this.circleSize=this.calculateSize(this.diameter,this.width)}calculateCircumference(e){return e*Math.PI}calculateR(e){return e/2}calculateDashes(e){return e*.25}calculateSize(e,n){return e+n}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275dir=N({type:i,inputs:{width:"width",diameter:"diameter",primary:"primary",secondary:"secondary"},features:[G]})}return i})();var Zo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),lC=(()=>{class i{elementRef;renderer;name="";checked=!1;disabled=!1;changed=new W;constructor(e,n){this.elementRef=e,this.renderer=n}ngOnChanges(){this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")}check(){this.checked=!0,this.changed.emit(this.checked)}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-radio-button"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-radio-button",!0)},inputs:{name:"name",checked:"checked",disabled:"disabled"},outputs:{changed:"changed"},features:[G],ngContentSelectors:rn,decls:4,vars:3,consts:[["type","radio",3,"click","checked","disabled"],[1,"gui-radio-checkmark"]],template:function(n,r){n&1&&(Ne(),h(0,"label")(1,"input",0),F("click",function(){return r.check()}),g(),b(2,"span",1),be(3),g()),n&2&&(u(),m("checked",r.checked)("disabled",r.disabled),De("name",r.name))},styles:[`.gui-radio-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;font:14px Arial;line-height:18px;padding-left:32px;position:relative}.gui-radio-button label{cursor:pointer}.gui-radio-button label:hover .gui-radio-checkmark{border-color:#999}.gui-radio-button input{height:0;opacity:0;position:absolute;width:0}.gui-radio-button .gui-radio-checkmark{border-color:#d6d6d6;border-radius:50%;border-style:solid;border-width:1px;box-sizing:content-box;height:16px;left:0;position:absolute;width:16px}.gui-radio-button input:checked+.gui-radio-checkmark{border-color:#999}.gui-radio-button input:focus+.gui-radio-checkmark{border-color:#6fb4e8}.gui-radio-button.gui-disabled.gui-radio-button{color:#ccc;pointer-events:none}.gui-radio-button .gui-radio-checkmark:after{content:"";display:none;position:absolute}.gui-radio-button input:checked+.gui-radio-checkmark:after{box-sizing:content-box;display:block}.gui-radio-button .gui-radio-checkmark:after{background:#333;border-radius:50%;height:16px;-ms-transform:scale(.5);transform:scale(.5);width:16px} +`,`.gui-material .gui-radio-button{font-family:Roboto,Helvetica Neue,sans-serif} +`,`.gui-dark .gui-radio-button{color:#bdbdbd}.gui-dark .gui-radio-button .gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:checked+.gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:focus+.gui-radio-checkmark{border-color:#ce93d8}.gui-dark .gui-radio-button .gui-radio-checkmark:after{background:#878787}.gui-dark .gui-radio-button.gui-disabled.gui-radio-button{opacity:.36} +`],encapsulation:2,changeDetection:0})}return i})(),Xo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var Jo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Ft=function(i){return i[i.TOP_RIGHT=0]="TOP_RIGHT",i[i.TOP_LEFT=1]="TOP_LEFT",i[i.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",i[i.BOTTOM_LEFT=3]="BOTTOM_LEFT",i}(Ft||{}),VT=(()=>{class i{renderer;notificationRef;notification;onNotificationClose=new W;unsub$=new ke;constructor(e){this.renderer=e}ngOnInit(){this.notification?.timer.enabled&&Gi(this.notification.timer.duration||0).pipe(re(this.unsub$)).subscribe(()=>this.closeNotification())}ngOnDestroy(){this.unsub$.next(),this.unsub$.complete()}closeNotification(){this.addCloseAnimation(),Gi(200).pipe(re(this.unsub$)).subscribe(()=>this.onNotificationClose.emit(this.notification))}addCloseAnimation(){if(this.notificationRef){let e=this.notificationRef.nativeElement;this.renderer.addClass(e,"gui-notification-active")}}isRightSide(){return this.notification?.position===Ft.TOP_RIGHT||this.notification?.position===Ft.BOTTOM_RIGHT}static \u0275fac=function(n){return new(n||i)(c(We))};static \u0275cmp=I({type:i,selectors:[["gui-notification"]],viewQuery:function(n,r){if(n&1&&X(oT,5,x),n&2){let o;L(o=z())&&(r.notificationRef=o.first)}},inputs:{notification:"notification"},outputs:{onNotificationClose:"onNotificationClose"},decls:4,vars:5,consts:[["guiNotification",""],[1,"gui-notification"],[3,"click"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1,0)(2,"gui-close-icon",2),F("click",function(){return R(o),A(r.closeNotification())}),g(),S(3),g()}n&2&&(U("gui-notification-right-side",r.isRightSide())("gui-notification-left-side",!r.isRightSide()),u(3),oe(" ",r.notification.description," "))},dependencies:[Xp],encapsulation:2,changeDetection:0})}return i})(),Bp=class{description;index;timer;position;constructor(t,e,n,r){this.description=t,this.index=e,this.timer=n,this.position=r}},dC=(()=>{class i extends Ra{static DEFAULT_DURATION=4e3;fabricNotification;notificationIndex=0;unsub$=new ke;constructor(e,n,r,o){super(e,n,r,o)}ngOnDestroy(){this.removeNotificationContainer()}getComponent(){return zT}open(e,n){let r=Ft.TOP_RIGHT;if(n&&n.position&&(r=n.position),this.createFabricNotification(e,r,n),this.isComponentCreated())this.pushNotification(r);else{let o=Ce.FABRIC,s=this.getInjector();n&&n.theme&&(o=n.theme),n&&n.injector&&(s=n.injector);let a=ve.create({providers:[{provide:ns,useValue:o}],parent:s});this.createAndAppend({injector:a}),this.pushNotification(r)}}close(){this.removeNotificationContainer(),this.unsub$.next(),this.unsub$.complete()}removeNotificationContainer(){this.isComponentCreated()&&(this.removeComponent(),this.notificationIndex=0)}createFabricNotification(e,n,r){let o=i.DEFAULT_DURATION,s=!0;r&&r.timer&&(r.timer.duration&&(o=r.timer.duration,r.timer.extendTimer&&(o=r.timer.duration*(this.notificationIndex+1))),r.timer.enabled!==void 0&&(s=r.timer.enabled)),this.fabricNotification=new Bp(e,this.notificationIndex,{duration:o,enabled:s},n),this.notificationIndex+=1}pushNotification(e){if(!this.fabricNotification||!this.isComponentCreated())return;let n=this.getComponentRef();switch(e){case Ft.TOP_RIGHT:n.instance.notificationsTopRight=n.instance.notificationsTopRight.concat(this.fabricNotification);break;case Ft.TOP_LEFT:n.instance.notificationsTopLeft=n.instance.notificationsTopLeft.concat(this.fabricNotification);break;case Ft.BOTTOM_RIGHT:n.instance.notificationsBottomRight=n.instance.notificationsBottomRight.concat(this.fabricNotification);break;case Ft.BOTTOM_LEFT:n.instance.notificationsBottomLeft=n.instance.notificationsBottomLeft.concat(this.fabricNotification);break;default:break}n.instance.detectChanges()}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),LT=(()=>{class i{notifications=[];position;onNotificationClose=new W;FabricNotificationPosition=Ft;emitClosedNotification(e){this.onNotificationClose.emit(e)}isPosition(e){return this.position===e}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-notifications-container"]],hostVars:8,hostBindings:function(n,r){n&2&&U("gui-notifications-top-right",r.isPosition(r.FabricNotificationPosition.TOP_RIGHT))("gui-notifications-top-left",r.isPosition(r.FabricNotificationPosition.TOP_LEFT))("gui-notifications-bottom-right",r.isPosition(r.FabricNotificationPosition.BOTTOM_RIGHT))("gui-notifications-bottom-left",r.isPosition(r.FabricNotificationPosition.BOTTOM_LEFT))},inputs:{notifications:"notifications",position:"position"},outputs:{onNotificationClose:"onNotificationClose"},decls:1,vars:1,consts:[[3,"notification","onNotificationClose",4,"ngFor","ngForOf"],[3,"onNotificationClose","notification"]],template:function(n,r){n&1&&D(0,sT,1,1,"gui-notification",0),n&2&&m("ngForOf",r.notifications)},dependencies:[rt,VT],encapsulation:2,changeDetection:0})}return i})(),zT=(()=>{class i extends Fa{changeDetectorRef;notificationsService;notificationsTopRight=[];notificationsTopLeft=[];notificationsBottomRight=[];notificationsBottomLeft=[];FabricNotificationPosition=Ft;constructor(e,n,r,o,s,a){super(n,r,o),this.changeDetectorRef=e,this.notificationsService=a}removeNotification(e){switch(e.position){case Ft.TOP_RIGHT:this.notificationsTopRight=this.notificationsTopRight.filter(n=>n.index!==e.index);break;case Ft.TOP_LEFT:this.notificationsTopLeft=this.notificationsTopLeft.filter(n=>n.index!==e.index);break;case Ft.BOTTOM_RIGHT:this.notificationsBottomRight=this.notificationsBottomRight.filter(n=>n.index!==e.index);break;case Ft.BOTTOM_LEFT:this.notificationsBottomLeft=this.notificationsBottomLeft.filter(n=>n.index!==e.index);break;default:break}this.detectChanges(),this.checkNotificationsLength()}detectChanges(){this.changeDetectorRef.detectChanges()}checkNotificationsLength(){this.notificationsTopRight.length===0&&this.notificationsTopLeft.length===0&&this.notificationsBottomRight.length===0&&this.notificationsBottomLeft.length===0&&this.notificationsService.close()}isContainerNotEmpty(e){return e&&e.length>0}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(We),c(ri),c(ns),c(pi(()=>dC)))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-notifications-overlay",!0)},features:[C],decls:4,vars:4,consts:[[3,"notifications","position","onNotificationClose",4,"ngIf"],[3,"onNotificationClose","notifications","position"]],template:function(n,r){n&1&&D(0,aT,1,2,"gui-notifications-container",0)(1,cT,1,2,"gui-notifications-container",0)(2,lT,1,2,"gui-notifications-container",0)(3,dT,1,2,"gui-notifications-container",0),n&2&&(m("ngIf",r.isContainerNotEmpty(r.notificationsTopRight)),u(),m("ngIf",r.isContainerNotEmpty(r.notificationsTopLeft)),u(),m("ngIf",r.isContainerNotEmpty(r.notificationsBottomRight)),u(),m("ngIf",r.isContainerNotEmpty(r.notificationsBottomLeft)))},dependencies:[je,LT],styles:[`.gui-notifications-overlay{-ms-flex-align:center;align-items:center;font-family:Arial;-ms-flex-pack:center;justify-content:center;max-width:400px;position:fixed;z-index:1000}.gui-notifications-overlay gui-notifications-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-left{left:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-right{right:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-left{bottom:0;left:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-right{bottom:0;right:0}.gui-notifications-overlay .gui-notification{background:#fff;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;display:block;margin:16px;padding:32px;position:relative}.gui-notifications-overlay .gui-notification.gui-notification-right-side{animation:loadNotificationRightSide .1s forwards}.gui-notifications-overlay .gui-notification.gui-notification-left-side{animation:loadNotificationLeftSide .1s forwards}@keyframes loadNotificationRightSide{0%{transform:translate(50%)}to{transform:translate(0)}}@keyframes loadNotificationLeftSide{0%{transform:translate(-50%)}to{transform:translate(0)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-right-side{animation:closeNotificationRightSide .2s forwards}@keyframes closeNotificationRightSide{0%{transform:translate(0)}to{transform:translate(100%)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-left-side{animation:closeNotificationLeftSide .2s forwards}@keyframes closeNotificationLeftSide{0%{transform:translate(0)}to{transform:translate(-100%)}} +`,`.gui-dark .gui-notification{background:#424242} +`,`.gui-material .gui-notification{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500} +`],encapsulation:2,changeDetection:0})}return i})(),Kw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[dC],imports:[q,Jp]})}return i})(),uC=(()=>{class i extends Ra{constructor(e,n,r,o){super(e,n,r,o)}getComponent(){return BT}open(e){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(e)})}close(){this.removeComponent()}afterCompCreation(e){if(this.isComponentCreated()){let n=this.getComponentRef();n.instance.text=e,n.instance.detectChanges()}}static \u0275fac=function(n){return new(n||i)(v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),BT=(()=>{class i{messageService;changeDetectorRef;text="";constructor(e,n){this.messageService=e,this.changeDetectorRef=n}detectChanges(){this.changeDetectorRef.detectChanges()}close(){this.messageService.close()}static \u0275fac=function(n){return new(n||i)(c(uC),c(B))};static \u0275cmp=I({type:i,selectors:[["gui-message"]],decls:4,vars:1,consts:[[1,"gui-message"],[3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),S(1),h(2,"button",1),F("click",function(){return r.close()}),S(3,"X"),g()()),n&2&&(u(),oe(" ",r.text," "))},styles:[`.gui-message{left:50%;position:fixed;top:50%} +`],encapsulation:2,changeDetection:0})}return i})(),Zw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[uC],imports:[q]})}return i})(),HT=(()=>{class i{svgRef;svg="";ngAfterViewInit(){this.svgRef&&(this.svgRef.nativeElement.innerHTML=this.svg)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-svg-template"]],viewQuery:function(n,r){if(n&1&&X(uT,5,x),n&2){let o;L(o=z())&&(r.svgRef=o.first)}},inputs:{svg:"svg"},decls:2,vars:0,consts:[["svgEl",""]],template:function(n,r){n&1&&b(0,"div",null,0)},encapsulation:2,changeDetection:0})}return i})(),mC=(()=>{class i extends sn{renderer;changeDetectorRef;platformId;tabRef;tabItemRef;tabMenuList;menu=[];active="";scrollActive=!1;Direction=en;listPosition=0;menuListWidth=0;scrollAmount=60;ACTIVE_TAB_CLASS_NAME="gui-active";constructor(e,n,r){super(),this.renderer=e,this.changeDetectorRef=n,this.platformId=r}ngAfterViewInit(){this.toggleTab(this.active),this.calculateMenuWidth(),this.showMenuArrows(),this.checkIfMenuFitsOnResize()}toggleTab(e){this.removeActive(),this.setActive(e)}isSvg(e){return typeof e=="object"}getTabName(e){return typeof e=="object"?e.name:e}scrollTabList(e){if(this.tabRef){let n=this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").offsetWidth,r=this.menuListWidth-n;e&&r>this.listPosition?this.listPosition+=this.scrollAmount:!e&&this.listPosition>0&&(this.listPosition-=this.scrollAmount),this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").scrollLeft=this.listPosition}}setActive(e){if(this.tabRef&&this.tabItemRef){typeof e=="object"&&(e=e.name);let n=this.tabRef.nativeElement.querySelector('[data-tab="'+e+'"]'),r=this.tabItemRef.nativeElement.querySelector('[data-tab="'+e+'"]');this.addClass(n,this.ACTIVE_TAB_CLASS_NAME),this.addClass(r,this.ACTIVE_TAB_CLASS_NAME)}}removeActive(){if(this.tabRef&&this.tabItemRef){let e=this.tabRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME),n=this.tabItemRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME);this.removeClass(e,this.ACTIVE_TAB_CLASS_NAME),this.removeClass(n,this.ACTIVE_TAB_CLASS_NAME)}}addClass(e,n){e&&this.renderer.addClass(e,n)}removeClass(e,n){e&&this.renderer.removeClass(e,n)}checkIfMenuFitsOnResize(){St(this.platformId)&&tr(window,"resize").pipe(re(this.unsubscribe$)).subscribe(()=>this.showMenuArrows())}calculateMenuWidth(){this.tabMenuList&&(this.menuListWidth=0,this.tabMenuList.forEach(e=>{this.menuListWidth+=e.nativeElement.offsetWidth}))}showMenuArrows(){if(this.tabRef){let e=this.tabRef.nativeElement.querySelector(".gui-tab-menu").offsetWidth;this.scrollActive=e{class i{tab="";static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-tab-item"]],inputs:{tab:"tab"},ngContentSelectors:rn,decls:2,vars:1,consts:[[1,"gui-tab-item"]],template:function(n,r){n&1&&(Ne(),h(0,"div",0),be(1),g()),n&2&&De("data-tab",r.tab)},encapsulation:2,changeDetection:0})}return i})(),$T=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),On=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Zp,$T]})}return i})(),UT=(()=>{class i{elementRef;text="";left=0;top=0;constructor(e){this.elementRef=e}correctPosition(){this.top-=this.elementRef.nativeElement.offsetHeight}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],hostVars:6,hostBindings:function(n,r){n&2&&(Ae("left",r.left,"px")("top",r.top,"px"),U("gui-tooltip",!0))},decls:1,vars:1,template:function(n,r){n&1&&S(0),n&2&&oe(" ",r.text," ")},styles:[`.gui-tooltip{background:rgba(0,0,0,.8);border-radius:4px;border-style:solid;border-width:0;box-sizing:border-box;color:#fff;display:block;font:14px Arial;font-weight:400;padding:8px 12px;position:absolute;-ms-transform:translateX(-50%);transform:translate(-50%);vertical-align:middle;z-index:10}.gui-tooltip:after{border-color:#333 transparent transparent transparent;border-style:solid;border-width:5px;content:"";left:50%;margin-left:-5px;position:absolute;top:100%} +`],encapsulation:2,changeDetection:0})}return i})(),bd=(()=>{class i extends sn{componentFactoryResolver;injector;elementRef;applicationRef;document;platformId;static tooltipOffset=8;text="";tooltipRef=null;tooltipTopPosition;tooltipLeftPosition;constructor(e,n,r,o,s,a){super(),this.componentFactoryResolver=e,this.injector=n,this.elementRef=r,this.applicationRef=o,this.document=s,this.platformId=a}ngOnInit(){let e=tr(this.elementRef.nativeElement,"mouseenter"),n=tr(this.elementRef.nativeElement,"mouseleave");e.pipe(re(this.unsubscribe$)).subscribe(()=>this.show()),n.pipe(re(this.unsubscribe$)).subscribe(()=>{this.tooltipRef&&this.hide()})}show(){let e=this.componentFactoryResolver.resolveComponentFactory(UT).create(this.injector);e.instance.text=this.text,e.changeDetectorRef.detectChanges();let n=e.hostView.rootNodes[0];this.document.body.appendChild(n),this.tooltipRef=e,this.calculateCords(),this.tooltipRef.instance.correctPosition(),this.tooltipRef.changeDetectorRef.detectChanges()}hide(){this.tooltipRef&&(this.applicationRef.detachView(this.tooltipRef.hostView),this.tooltipRef.destroy(),this.tooltipRef=null)}calculateCords(){if(this.tooltipRef){let e=this.elementRef.nativeElement,n=e.getBoundingClientRect(),r=n.bottom,o=n.left;St(this.platformId)&&(this.tooltipTopPosition=r+window.scrollY-e.offsetHeight-i.tooltipOffset,this.tooltipLeftPosition=window.scrollX+o+e.offsetWidth/2,this.tooltipTopPosition&&(this.tooltipRef.instance.top=this.tooltipTopPosition),this.tooltipLeftPosition&&(this.tooltipRef.instance.left=this.tooltipLeftPosition),this.tooltipRef.changeDetectorRef.detectChanges())}}static \u0275fac=function(n){return new(n||i)(c(Je),c(ve),c(x),c(Et),c(ue),c(Ue))};static \u0275dir=N({type:i,selectors:[["","gui-tooltip",""]],inputs:{text:[we.None,"gui-tooltip","text"]},exportAs:["guiTooltip"],features:[C]})}return i})(),Rr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})(),WT=(()=>{class i{window;static BORDER_WIDTH=1;verticalPosition=0;horizontalPosition=0;canOpenUpward=!1;constructor(e,n,r){this.window=r,this.calculateCords(e,n)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}getCanOpenUpward(){return this.canOpenUpward}calculateCords(e,n){let r=e.nativeElement.getBoundingClientRect(),o=this.window.pageYOffset+r.bottom,s=this.window.pageXOffset+r.left;this.horizontalPosition=s,this.verticalPosition=o-i.BORDER_WIDTH,this.calculateDirection(n,e)}calculateDirection(e,n){let r=this.window.innerHeight+this.window.pageYOffset,o=n.nativeElement.offsetHeight,s=e.getHeight();r-this.verticalPosition-s<0&&(this.canOpenUpward=!0,this.verticalPosition-=s+o-i.BORDER_WIDTH)}}return i})(),Hp=class{selectOptionsGeometry;constructor(t){this.selectOptionsGeometry=t}getHeight(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetHeight}getWidth(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetWidth}},hd=(()=>{class i{platformId;selectContainerGeometry;selectOptionsCords$=new Nh(1);constructor(e){this.platformId=e}onSelectOptionsCords(){return this.selectOptionsCords$.asObservable()}setGeometry(e){this.selectContainerGeometry=new Hp(e)}nextCords(e){if(St(this.platformId)&&this.selectContainerGeometry){let n=new WT(e,this.selectContainerGeometry,window);this.selectOptionsCords$.next(n)}}static \u0275fac=function(n){return new(n||i)(v(Ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),$p=(()=>{class i{selectedOption$=new Nh(1);onSelectedOption(){return this.selectedOption$.asObservable()}next(e){this.selectedOption$.next(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),GT=(()=>{class i extends Fa{selectOptionsGeometryService;selectService;changeDetectorRef;optionListRef;options=[];optionsContainerLeftAttribute=0;optionsContainerTopAttribute=0;width=100;selectedOption;canOpenUpward=!1;constructor(e,n,r,o,s,a){super(o,s,a),this.selectOptionsGeometryService=e,this.selectService=n,this.changeDetectorRef=r}ngOnInit(){this.selectOptionsGeometryService.onSelectOptionsCords().pipe(re(this.unsubscribe$)).subscribe(e=>{this.optionsContainerTopAttribute=e.getVerticalPosition(),this.optionsContainerLeftAttribute=e.getHorizontalPosition(),this.canOpenUpward=e.getCanOpenUpward(),this.changeDetectorRef.detectChanges()}),this.selectService.onSelectedOption().pipe(re(this.unsubscribe$)).subscribe(e=>{this.selectedOption=e,this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.initOpenAnimation()}getElementRef(){return super.getElementRef()}detectChanges(){this.changeDetectorRef.detectChanges()}selectOption(e){this.selectService.next(e)}isOptionSelected(e){return this.selectedOption?.name===e.name}getOptionValue(e){return e.value?e.value:e.name}initOpenAnimation(){if(this.optionListRef){let e=this.optionListRef.nativeElement;this.getRenderer().addClass(e,"gui-options-opened")}}static \u0275fac=function(n){return new(n||i)(c(hd),c($p),c(B),c(x),c(We),c(ri))};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&X(_T,5,x),n&2){let o;L(o=z())&&(r.optionListRef=o.first)}},features:[C],decls:3,vars:9,consts:[["optionList",""],[1,"gui-options-list"],["class","gui-option",3,"gui-option-selected","width","click",4,"ngFor","ngForOf"],[1,"gui-option",3,"click"]],template:function(n,r){n&1&&(h(0,"div",1,0),D(2,yT,2,5,"div",2),g()),n&2&&(Ae("left",r.optionsContainerLeftAttribute,"px")("top",r.optionsContainerTopAttribute,"px"),U("gui-upward",r.canOpenUpward)("gui-downward",!r.canOpenUpward),u(2),m("ngForOf",r.options))},dependencies:[rt],encapsulation:2,changeDetection:0})}return i})(),Xw=(()=>{class i extends Ra{selectOptionsGeometryService;constructor(e,n,r,o,s){super(n,r,o,s),this.selectOptionsGeometryService=e}getComponent(){return GT}open(e,n){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(e,n)})}closeOptions(){this.removeComponent()}afterCompCreation(e,n){if(this.isComponentCreated()){let r=this.getComponentRef();r.instance.options=e,r.instance.width=n,r.instance.detectChanges(),this.selectOptionsGeometryService.setGeometry(r.instance.getElementRef()),r.instance.detectChanges()}}static \u0275fac=function(n){return new(n||i)(v(hd),v(Je),v(Et),v(ve),v(ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),vd=(()=>{class i extends sn{selectService;selectOptionsGeometryService;selectOptionModalService;changeDetectorRef;platformId;elementRef;renderer;containerRef;options=[];placeholder="...";selected;width=100;disabled=!1;optionChanged=new W;selectedOption;containerText;scrollListenerFn;doNotEmitValues=!1;opened=!1;constructor(e,n,r,o,s,a,l){super(),this.selectService=e,this.selectOptionsGeometryService=n,this.selectOptionModalService=r,this.changeDetectorRef=o,this.platformId=s,this.elementRef=a,this.renderer=l}ngOnChanges(e){e.placeholder&&(this.containerText=this.placeholder),e.selected&&this.selected&&this.tryToSelect(this.selected)}ngOnInit(){this.selectService.onSelectedOption().pipe(re(this.unsubscribe$)).subscribe(e=>{this.emitSelectedOption(e),this.selectedOption=e,this.containerText=e.value??"",this.doNotEmitValues=!1,this.changeDetectorRef.detectChanges()}),this.selectOptionsGeometryService.onSelectOptionsCords().pipe(re(this.unsubscribe$)).subscribe(e=>{e.getCanOpenUpward()?this.openUpward():this.openDownward()})}tryToOpen(e){this.isContainerDisabled(e)?e.stopPropagation():(this.open(this.options,this.width),this.toggleOptions(!this.opened),this.changeDetectorRef.detectChanges())}clickOutside(e){this.isContainerClicked(e)&&this.toggleOptions(!1)}toggleOptions(e){this.opened=e,this.maintainOptionsListPosition(),this.opened||this.closeOptions()}isOptionSelected(e){return this.selectedOption?.name===e.name}getOptionValue(e){return e?e.value?e.value:e.name:""}open(e,n){this.containerRef&&(this.closeSelect(),this.selectOptionModalService.open(e,n),this.selectOptionsGeometryService.nextCords(this.containerRef))}tryToSelect(e){(this.selectedOption?e.name!==this.selectedOption.name:!0)&&(this.doNotEmitValues=!0,this.selectService.next(e),this.selectedOption=e,this.containerText=this.getOptionValue(e))}maintainOptionsListPosition(){St(this.platformId)&&(this.opened?this.scrollListenerFn=this.renderer.listen("window","scroll",()=>{this.containerRef&&this.selectOptionsGeometryService.nextCords(this.containerRef)}):this.scrollListenerFn&&this.scrollListenerFn())}closeSelect(){this.selectOptionModalService.closeOptions()}emitSelectedOption(e){this.doNotEmitValues||this.isOptionSelected(e)||this.optionChanged.emit(e)}openDownward(){this.addClass("gui-options-opened"),this.addClass("gui-downward"),this.removeClass("gui-upward")}openUpward(){this.addClass("gui-options-opened"),this.addClass("gui-upward"),this.removeClass("gui-downward")}closeOptions(){this.elementRef.nativeElement.classList.contains("gui-options-opened")&&(this.removeClass("gui-options-opened"),this.closeSelect())}isContainerClicked(e){return!this.elementRef.nativeElement.contains(e.target)}isContainerDisabled(e){return e.target.classList.contains("gui-disabled")}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(n){return new(n||i)(c($p),c(hd),c(Xw),c(B),c(Ue),c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-select"]],viewQuery:function(n,r){if(n&1&&X(Sa,5,x),n&2){let o;L(o=z())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(n,r){n&2&&U("gui-select",!0)},inputs:{options:"options",placeholder:"placeholder",selected:"selected",width:"width",disabled:"disabled"},outputs:{optionChanged:"optionChanged"},features:[ge([$p,hd,Xw]),C,G],decls:5,vars:5,consts:[["container",""],[1,"gui-select-container",3,"click"],[1,"gui-select-value"],[1,"gui-select-arrow"]],template:function(n,r){if(n&1){let o=Z();h(0,"div",1,0),F("click",function(a){return R(o),A(r.tryToOpen(a))})("click",function(a){return R(o),A(r.clickOutside(a))},!1,Ps),h(2,"div",2),S(3),g(),b(4,"span",3),g()}n&2&&(Ae("width",r.width,"px"),U("gui-disabled",r.disabled),u(3),oe(" ",r.containerText," "))},styles:[`.gui-select .gui-select-container{min-height:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:content-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 24px 8px 12px;position:relative}.gui-select .gui-select-container:hover{border-color:#999}.gui-select .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:#595959 transparent transparent transparent;height:0;margin:8px;position:absolute;right:5px;top:5px;width:0}.gui-select.gui-options-opened .gui-select-container{border-color:#6fb4e8 #6fb4e8 transparent #6fb4e8;border-radius:4px 4px 0 0;border-width:1px}.gui-select.gui-downward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-downward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:1px 0 0 0}.gui-select.gui-upward .gui-select-container{padding:8px 12px 8px 24px;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-value{-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:transparent transparent #595959 transparent;bottom:5px;left:5px;top:auto}.gui-select.gui-upward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-upward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:0 0 1px 0;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select .gui-disabled{color:#ccc;pointer-events:none}.gui-select .gui-disabled .gui-select-arrow{border-color:#cccccc transparent transparent transparent}.gui-select .initAnimationDisabled.gui-options-list{display:none}.gui-options-list{background:#fff;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px;overflow:hidden;padding:0;position:absolute;z-index:1000}.gui-options-list .gui-option{box-sizing:content-box;cursor:pointer;font-size:14px;list-style-type:none;padding:8px 24px 8px 12px}.gui-options-list .gui-option:hover{background:#dcdcdc}.gui-options-list .gui-option-selected{background:#e6e6e6;font-weight:700}.gui-options-list.gui-upward{animation:loadUpward .2s forwards;border-bottom:none;border-color:#6fb4e8;border-radius:4px 4px 0 0;border-style:solid;border-width:1px}@keyframes loadUpward{0%{transform:translateY(50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}.gui-options-list.gui-downward{animation:loadDownward .2s forwards;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px}@keyframes loadDownward{0%{transform:translateY(-50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}} +`,`.gui-material .gui-select .gui-select-container,.gui-material .gui-options-list .gui-option{font-family:Roboto,Helvetica Neue,sans-serif} +`,`.gui-dark .gui-select .gui-select-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-select .gui-select-container:hover{border-color:#ce93d8}.gui-dark .gui-select .gui-select-container .gui-select-arrow{border-color:#ce93d8 transparent transparent transparent}.gui-dark .gui-select.gui-options-opened .gui-select-container{border-color:#ce93d8}.gui-dark .gui-select.gui-upward .gui-select-container .gui-select-arrow{border-color:transparent transparent #ce93d8 transparent}.gui-dark .gui-select .gui-disabled{opacity:.36}.gui-dark .gui-options-list{border-color:#ce93d8}.gui-dark .gui-options-list .gui-option{background:#424242;border-color:#757575;color:#bdbdbd}.gui-dark .gui-options-list .gui-option:hover{background:#616161}.gui-dark .gui-options-list .gui-option-selected{background:#757575} +`,`.gui-light .gui-select .gui-select-container{background:#fff;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-options-list .gui-option:hover{background:#f6f6f5} +`],encapsulation:2,changeDetection:0})}return i})(),es=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var Jw=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),gC=(()=>{class i extends jT{color="";constructor(e,n){super(e,n)}ngOnInit(){super.ngOnInit()}static \u0275fac=function(n){return new(n||i)(c(x),c(We))};static \u0275cmp=I({type:i,selectors:[["gui-spinner"]],hostVars:2,hostBindings:function(n,r){n&2&&U("gui-spinner",!0)},inputs:{color:"color"},features:[C],decls:5,vars:30,consts:[[1,"gui-spinner"],[1,"circle-outer"],["cx","50%","cy","50%"],[1,"circle-inner"]],template:function(n,r){n&1&&(h(0,"div",0),Ke(),h(1,"svg",1),b(2,"circle",2),g(),h(3,"svg",3),b(4,"circle",2),g()()),n&2&&(Ae("height",r.circleSize,"px")("width",r.circleSize,"px"),u(),Ae("height",r.circleSize,"px")("width",r.circleSize,"px"),u(),Ae("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),De("r",r.r),u(),Ae("height",r.circleSize,"px")("width",r.circleSize,"px"),u(),Ae("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),De("r",r.r))},styles:[`@keyframes gui-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes gui-spin-reverse{0%{transform:rotate(-90deg) scale(.8)}to{transform:rotate(270deg) scale(.8)}}.gui-spinner{display:inline-block;margin:4px;position:relative;-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.gui-spinner circle{fill:transparent;stroke:#999}.gui-spinner svg{position:absolute}.gui-spinner .circle-inner{animation:gui-spin-reverse 2s infinite linear forwards reverse}.gui-spinner .circle-outer{animation:gui-spin 2s infinite linear forwards}.gui-primary .gui-spinner.gui-spinner circle{stroke:#2185d0}.gui-secondary .gui-spinner.gui-spinner circle{stroke:#3cb371} +`,`.gui-material .gui-spinner circle{stroke:#3949ab}.gui-material .gui-primary .gui-spinner circle{stroke:#6200ee}.gui-material .gui-secondary .gui-spinner circle{stroke:#0097a7} +`,`.gui-dark .gui-spinner circle{stroke:#424242}.gui-dark .gui-primary .gui-spinner circle{stroke:#ce93d8}.gui-dark .gui-secondary .gui-spinner circle{stroke:#80cbc4} +`],encapsulation:2,changeDetection:0})}return i})(),ts=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var is=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ni,ni]})}return i})();var eC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();var qT=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),tC=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,qT]})}return i})(),Nn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[ri],imports:[q,Wo,ni,Go,qw,tn,An,md,qo,Yo,Qo,Fr,Xo,Jo,tC,Kw,Zw,On,Rr,Ko,Zo,es,Jw,ts,is,eC,nn,Wo,ni,Go,qw,tn,An,md,qo,Yo,Qo,Fr,Xo,Jo,tC,Kw,Zw,On,Rr,Ko,Zo,es,Jw,ts,is,eC,nn]})}return i})();var QT=["gui-row-detail",""],KT=["gui-paging-navigator","","paging",""],ZT=["gui-paging-select","","paging",""],XT=["gui-paging-stats","","paging",""];function JT(i,t){if(i&1&&(pe(0),h(1,"span",2)(2,"span"),S(3),g(),S(4," - "),h(5,"span"),S(6),g()(),h(7,"span"),S(8),J(9,"guiTranslate"),g(),h(10,"span",3),S(11),g(),fe()),i&2){let e=f();u(3),xe(e.firstItemIndex),u(3),xe(e.lastItemIndex),u(2),oe(" ",ie(9,4,"pagingOf")," "),u(3),oe(" ",e.sourceSize," ")}}function eM(i,t){i&1&&(h(0,"span",4),S(1),J(2,"guiTranslate"),g()),i&2&&(u(),oe(" ",ie(2,1,"pagingNoItems")," "))}var tM=["gui-paging-alternative-navigator","","paging","","sourceSize",""],iM=["*"],nM=["gui-paging-alternative-pages","","paging",""];function rM(i,t){if(i&1){let e=Z();h(0,"div")(1,"div",3)(2,"div",4),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.goToPage(r))}),S(3),g()()()}if(i&2){let e=t.$implicit,n=f(2);u(),U("gui-paging-active-page",n.activePage(e))("gui-paging-visible-page",n.calculateVisiblePages(e)),u(2),oe(" ",e," ")}}function oM(i,t){if(i&1&&(pe(0),D(1,rM,4,5,"div",2),fe()),i&2){let e=f();u(),m("ngForOf",e.pages)}}function sM(i,t){i&1&&(h(0,"span",5),S(1),J(2,"guiTranslate"),g()),i&2&&(u(),oe(" ",ie(2,1,"pagingNoItems")," "))}var aM=["gui-paging","","position",""];function cM(i,t){if(i&1){let e=Z();pe(0),h(1,"div",4),F("pageSizeChanged",function(r){R(e);let o=f(3);return A(o.changePageSize(r))}),g(),b(2,"div",5),h(3,"div",6),F("nextPageChanged",function(){R(e);let r=f(2).$implicit,o=f();return A(o.nextPage(r.sourceSize))})("prevPageChanged",function(){R(e);let r=f(3);return A(r.prevPage())}),g(),fe()}if(i&2){let e=f(2).$implicit;u(),m("paging",e.paging),u(),m("paging",e.paging),u(),m("paging",e.paging)("sourceSize",e.sourceSize)}}function lM(i,t){if(i&1){let e=Z();b(0,"div",5),h(1,"div",6),F("nextPageChanged",function(){R(e);let r=f(2).$implicit,o=f();return A(o.nextPage(r.sourceSize))})("prevPageChanged",function(){R(e);let r=f(3);return A(r.prevPage())}),g()}if(i&2){let e=f(2).$implicit;m("paging",e.paging),u(),m("paging",e.paging)("sourceSize",e.sourceSize)}}function dM(i,t){if(i&1&&(pe(0),D(1,cM,4,4,"ng-container",3)(2,lM,2,3,"ng-template",null,0,Ee),fe()),i&2){let e=Qi(3),n=f(2);u(),m("ngIf",!n.minimal)("ngIfElse",e)}}function uM(i,t){if(i&1){let e=Z();pe(0),h(1,"div",4),F("pageSizeChanged",function(r){R(e);let o=f(2);return A(o.changePageSize(r))}),g(),h(2,"div",7),F("nextPageChanged",function(){R(e);let r=f().$implicit,o=f();return A(o.nextPage(r.sourceSize))})("prevPageChanged",function(){R(e);let r=f(2);return A(r.prevPage())}),b(3,"div",8),g(),fe()}if(i&2){let e=f().$implicit;u(),m("paging",e.paging),u(),m("paging",e.paging)("sourceSize",e.sourceSize),u(),m("paging",e.paging)("sourceSize",e.sourceSize)}}function mM(i,t){if(i&1&&(pe(0),D(1,dM,4,2,"ng-container",2)(2,uM,4,5,"ng-container",2),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.isPagingVisible&&!e.alternativeDisplay),u(),m("ngIf",e.isPagingVisible&&e.alternativeDisplay)}}var sx=["value",""];function hM(i,t){if(i&1&&b(0,"gui-percentage-view",3),i&2){let e=f();m("value",e.value)}}function gM(i,t){if(i&1&&(pe(0),b(1,"span",2),J(2,"guiSafe"),fe()),i&2){let e=f();u(),m("innerHTML",cr(2,1,e.value.value,"html"),sr)}}function pM(i,t){if(i&1&&(h(0,"span"),S(1),g()),i&2){let e=f();u(),oe(" ",e.value.value," ")}}var fM=["text"],wC=["number"],bM=["chip"],vM=["link"],xM=["image"],CC=["checkbox"],_M=["bold"],yM=["italic"],wM=["custom"],CM=["function"],IM=["html"],IC=["date"],kM=["bar"],EM=["percentageBar"],SM=["percentage"];function DM(i,t){if(i&1&&b(0,"gui-view-text",15),i&2){let e=t.element;m("value",e)}}function TM(i,t){if(i&1&&(h(0,"span",16),S(1),g()),i&2){let e=t.element;u(),oe(" ",e.value," ")}}function MM(i,t){if(i&1&&(h(0,"gui-chip"),b(1,"gui-view-text",15),g()),i&2){let e=t.element;u(),m("value",e)}}function FM(i,t){if(i&1&&(h(0,"a",17),b(1,"gui-view-text",15),g()),i&2){let e=t.element;rl("href",e.value,wo),u(),m("value",e)}}function RM(i,t){if(i&1&&b(0,"img",18),i&2){let e=t.element;rl("src",e.value,wo)}}function AM(i,t){if(i&1&&(h(0,"span",19),b(1,"gui-checkbox",20),g()),i&2){let e=t.element;u(),m("checked",!!e.value)("disabled",!0)}}function OM(i,t){if(i&1&&b(0,"gui-view-text",21),i&2){let e=t.element;m("value",e)}}function PM(i,t){if(i&1&&b(0,"gui-view-text",22),i&2){let e=t.element;m("value",e)}}function NM(i,t){if(i&1&&S(0),i&2){let e=t.element;oe(" ",e.value," ")}}function jM(i,t){if(i&1&&b(0,"gui-function-view",23),i&2){let e=t.element;m("element",e)}}function VM(i,t){if(i&1&&b(0,"gui-html-view",23),i&2){let e=t.element;m("element",e)}}function LM(i,t){if(i&1&&(h(0,"span",24),S(1),J(2,"date"),g()),i&2){let e=t.element;u(),xe(cr(2,1,e.value,"dd/MM/yyyy"))}}function zM(i,t){if(i&1&&b(0,"gui-bar-view",25),i&2){let e=t.element;m("value",e.value)("showPercentage",!1)}}function BM(i,t){if(i&1&&b(0,"gui-bar-view",25),i&2){let e=t.element;m("value",e.value)("showPercentage",!0)}}function HM(i,t){if(i&1&&b(0,"gui-percentage-view",15),i&2){let e=t.element;m("value",e.value)}}var $M=["input"],UM=["datepicker"],WM=["string"],GM=["boolean"],qM=["empty"];function YM(i,t){if(i&1&&b(0,"gui-string-edit",5),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus;m("valueChanges",e)("value",n)("status",r)("focus",o)}}function QM(i,t){if(i&1&&b(0,"gui-number-edit",5),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus;m("valueChanges",e)("value",n)("status",r)("focus",o)}}function KM(i,t){if(i&1&&b(0,"gui-boolean-edit",5),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus;m("valueChanges",e)("value",n)("status",r)("focus",o)}}function ZM(i,t){if(i&1&&b(0,"gui-date-edit",6),i&2){let e=t.valueChanges,n=t.value,r=t.status,o=t.focus,s=t.parent;m("valueChanges",e)("value",n)("status",r)("focus",o)("parent",s)}}function XM(i,t){}var JM=["gui-structure-summaries-panel","","enabled",""];function e2(i,t){i&1&&b(0,"div",4)}function t2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.countTooltip),u(),xe(ie(3,3,"summariesCount")),u(3),xe(n.summaries.get(e.getFieldId().getId()).count)}}function i2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.distinctTooltip),u(),xe(ie(3,3,"summariesDist")),u(3),xe(n.summaries.get(e.getFieldId().getId()).distinct)}}function n2(i,t){if(i&1&&(h(0,"div",7)(1,"span"),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(2),oe(" ",ie(3,2,"summariesSum")," "),u(3),xe(n.summaries.get(e.getFieldId().getId()).sum)}}function r2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.averageTooltip),u(),xe(ie(3,3,"summariesAvg")),u(3),xe(n.summaries.get(e.getFieldId().getId()).average)}}function o2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.minTooltip),u(),oe(" ",ie(3,3,"summariesMin")," "),u(3),xe(n.summaries.get(e.getFieldId().getId()).min)}}function s2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.maxTooltip),u(),oe(" ",ie(3,3,"summariesMax")," "),u(3),xe(n.summaries.get(e.getFieldId().getId()).max)}}function a2(i,t){if(i&1&&(h(0,"div",7)(1,"span",8),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(),m("gui-tooltip",n.summariesTranslations.medTooltip),u(),xe(ie(3,3,"summariesMed")),u(3),xe(n.summaries.get(e.getFieldId().getId()).median)}}function c2(i,t){if(i&1&&(h(0,"div",7)(1,"span"),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(2),xe(ie(3,2,"summariesTruthy")),u(3),xe(n.summaries.get(e.getFieldId().getId()).truthy)}}function l2(i,t){if(i&1&&(h(0,"div",7)(1,"span"),S(2),J(3,"guiTranslate"),g(),h(4,"span",9),S(5),g()()),i&2){let e=f(2).$implicit,n=f(2).$implicit;u(2),xe(ie(3,2,"summariesFalsy")),u(3),xe(n.summaries.get(e.getFieldId().getId()).falsy)}}function d2(i,t){if(i&1&&(pe(0),D(1,t2,6,5,"div",6)(2,i2,6,5,"div",6)(3,n2,6,4,"div",6)(4,r2,6,5,"div",6)(5,o2,6,5,"div",6)(6,s2,6,5,"div",6)(7,a2,6,5,"div",6)(8,c2,6,4,"div",6)(9,l2,6,4,"div",6),fe()),i&2){let e=f().$implicit,n=f(2).$implicit,r=f();u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).count)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).distinct)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).sum)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).average)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).min)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).max)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).median)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).truthy)),u(),m("ngIf",r.isSummariesTypePresent(n.summaries.get(e.getFieldId().getId()).falsy))}}function u2(i,t){if(i&1&&(h(0,"div",5),D(1,d2,10,9,"ng-container",1),g()),i&2){let e=t.$implicit,n=f(2).$implicit;Ae("width",e.width,"px"),u(),m("ngIf",n.summaries&&!!n.summaries.get(e.getFieldId().getId()))}}function m2(i,t){if(i&1&&(pe(0),D(1,e2,1,0,"div",2),J(2,"guiPush"),D(3,u2,2,3,"div",3),J(4,"guiPush"),fe()),i&2){let e=f(2);u(),m("ngIf",ie(2,2,e.checkboxSelection$)),u(2),m("ngForOf",ie(4,4,e.headerColumns$))}}function h2(i,t){if(i&1&&(pe(0),D(1,m2,5,6,"ng-container",1),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.enabled&&e.summaries&&!e.sourceEmpty)}}var g2=["gui-info-dialog",""],p2=["gui-structure-column-manager",""];function f2(i,t){i&1&&Co(0)}function b2(i,t){if(i&1){let e=Z();h(0,"li",3),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.toggleColumn(r))}),h(1,"gui-checkbox",4),D(2,f2,1,0,"ng-container",5),g()()}if(i&2){let e=t.$implicit,n=f().$implicit;u(),m("checked",e.isEnabled())("disabled",n.enabledColumnsCount===1&&e.isEnabled()),u(),m("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",e.context)}}function v2(i,t){if(i&1&&(h(0,"ol",1),D(1,b2,3,4,"li",2),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e.columns)}}var x2=["gui-structure-dialog-column-manager",""],_2=["gui-structure-schema-manager",""];function y2(i,t){if(i&1){let e=Z();h(0,"li",7),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleVerticalGrid(r))}),h(1,"gui-checkbox",8),S(2),J(3,"guiTranslate"),g()()}if(i&2){let e=t.$implicit;u(),m("checked",e),u(),oe(" ",ie(3,2,"themeManagerModalVerticalGrid")," ")}}function w2(i,t){if(i&1){let e=Z();h(0,"li",7),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleHorizontalGrid(r))}),h(1,"gui-checkbox",8),S(2),J(3,"guiTranslate"),g()()}if(i&2){let e=t.$implicit;u(),m("checked",e),u(),oe(" ",ie(3,2,"themeManagerModalHorizontalGrid")," ")}}var C2=["gui-schema-manager-dialog",""],I2=["gui-structure-column-manager-icon",""],k2=["gui-structure-schema-manager-icon",""],E2=["gui-active-search",""];function S2(i,t){if(i&1){let e=Z();pe(0),h(1,"div"),S(2," Active search by: "),g(),h(3,"div")(4,"gui-chip"),S(5),g()(),h(6,"div")(7,"button",1),F("click",function(){R(e);let r=f();return A(r.clearSearch())}),S(8," Clear search "),g()(),fe()}if(i&2){let e=t.$implicit;u(5),xe(e),u(2),m("outline",!0)("primary",!0)}}var D2=["gui-active-filter-list",""];function T2(i,t){if(i&1){let e=Z();h(0,"div"),S(1),h(2,"span",3),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.removeFilter(r))}),S(3,"X"),g()()}if(i&2){let e=t.$implicit;u(),oe(" ",e.getText()," ")}}function M2(i,t){if(i&1&&(pe(0),D(1,T2,4,1,"div",2),fe()),i&2){let e=t.$implicit;u(),m("ngForOf",e)}}var F2=["gui-structure-info-icon",""],R2=["gui-structure-info-panel",""];function A2(i,t){if(i&1&&(pe(0),S(1),J(2,"guiTranslate"),h(3,"b"),S(4),J(5,"numberFormatter"),g(),S(6),J(7,"guiTranslate"),fe()),i&2){let e=f(3).$implicit;u(),oe(" ",ie(2,3,"infoPanelShowing")," "),u(3),xe(ie(5,5,e)),u(2),oe(" ",ie(7,7,"infoPanelItems")," ")}}function O2(i,t){if(i&1&&(h(0,"span",5),S(1),J(2,"guiTranslate"),h(3,"b"),S(4),J(5,"numberFormatter"),g(),S(6),J(7,"guiTranslate"),h(8,"b"),S(9),J(10,"numberFormatter"),g(),S(11),J(12,"guiTranslate"),g()),i&2){let e=f(3).$implicit,n=f().$implicit;u(),oe(" ",ie(2,5,"infoPanelShowing")," "),u(3),xe(ie(5,7,n.preparedItemsSize)),u(2),oe(" ",ie(7,9,"infoPanelOutOf")," "),u(3),xe(ie(10,11,e)),u(2),oe(" ",ie(12,13,"infoPanelItems")," ")}}function P2(i,t){if(i&1&&(pe(0),D(1,A2,8,9,"ng-container",3)(2,O2,13,15,"span",4),fe()),i&2){let e=f(2).$implicit,n=f().$implicit;u(),m("ngIf",n.preparedItemsSize===e),u(),m("ngIf",n.preparedItemsSize!==e)}}function N2(i,t){if(i&1&&(h(0,"div"),D(1,P2,3,2,"ng-container",3),g()),i&2){let e=f().$implicit,n=f().$implicit;u(),m("ngIf",n.preparedItemsSize!==void 0&&e!==void 0)}}function j2(i,t){if(i&1&&(h(0,"div"),D(1,N2,2,1,"div",3),g()),i&2){let e=f().$implicit;u(),m("ngIf",e.infoPanelConfig.isSourceSizeEnabled())}}function V2(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){R(e);let r=f(2);return A(r.openSchemaManager())}),b(1,"div",7),g()}if(i&2){let e=f().$implicit;u(),m("gui-tooltip",e.translations.infoPanelThemeMangerTooltipText)}}function L2(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){R(e);let r=f(2);return A(r.openColumnManager())}),b(1,"div",8),g()}if(i&2){let e=f().$implicit;u(),m("gui-tooltip",e.translations.infoPanelColumnManagerTooltipText)}}function z2(i,t){if(i&1){let e=Z();h(0,"div",6),F("click",function(){R(e);let r=f(2);return A(r.openInfo())}),b(1,"div",9),g()}if(i&2){let e=f().$implicit;u(),m("gui-tooltip",e.translations.infoPanelInfoTooltipText)}}function B2(i,t){if(i&1&&(pe(0),D(1,j2,2,1,"div",0),h(2,"div")(3,"div",1),D(4,V2,2,1,"div",2)(5,L2,2,1,"div",2)(6,z2,2,1,"div",2),g()(),fe()),i&2){let e=t.$implicit,n=f();u(),m("guiLet",n.totalItemsSize$),u(3),m("ngIf",e.infoPanelConfig.isSchemaManagerEnabled()),u(),m("ngIf",e.infoPanelConfig.isColumnsManagerEnabled()),u(),m("ngIf",e.infoPanelConfig.isInfoDialogEnabled())}}var H2=["gui-search-icon",""],$2=["formRef"],U2=["gui-search-bar",""];function W2(i,t){if(i&1){let e=Z();h(0,"span",6),F("click",function(){R(e);let r=f(2);return A(r.clear())}),g()}}function G2(i,t){if(i&1&&(pe(0),h(1,"form",2,0),b(3,"div",3)(4,"input",4),J(5,"guiPush"),D(6,W2,1,0,"span",5),g(),fe()),i&2){let e=f();u(),m("formGroup",e.searchForm),u(3),m("placeholder",ie(5,3,e.placeholder$)),u(2),m("ngIf",e.searchForm.controls.searchPhrase.value)}}var q2=["gui-structure-top-panel",""],Y2=["gui-empty-source","","items",""];function Q2(i,t){i&1&&(pe(0),S(1),J(2,"guiTranslate"),fe()),i&2&&(u(),oe(" ",ie(2,1,"sourceEmpty"),` +`))}var K2=["gui-structure-menu-column-manager",""],Z2=["gui-unique-value-list","","fieldId",""];function X2(i,t){if(i&1){let e=Z();h(0,"div")(1,"gui-checkbox",6),F("changed",function(){let r=R(e).$implicit,o=f(2);return A(o.toggleSelect(r))}),S(2),g()()}if(i&2){let e=t.$implicit;u(),m("checked",e.isEnabled()),u(),oe(" ",e.getValue()," ")}}function J2(i,t){if(i&1){let e=Z();pe(0),h(1,"gui-checkbox",1),F("changed",function(){R(e);let r=f();return A(r.toggleAllSelect())}),S(2," Select all "),g(),h(3,"div",2),D(4,X2,3,2,"div",3),g(),h(5,"div",4)(6,"button",5),F("click",function(){R(e);let r=f();return A(r.clearFilters())}),S(7," Clear "),g()(),fe()}if(i&2){let e=t.$implicit;u(),m("checked",e.selectAllChecked)("indeterminate",e.selectAllIndeterminate),u(3),m("ngForOf",e.uniqueValues),u(2),m("outline",!0)("primary",!0)}}var eF=["gui-structure-arrow-icon",""],tF=["gui-structure-column-config-sort","","column","","dropdownTextTranslation",""];function iF(i,t){if(i&1){let e=Z();h(0,"gui-dropdown",1)(1,"gui-dropdown-item",2),F("click",function(){R(e);let r=f();return A(r.setSortOrder(r.status.ASC))}),h(2,"div",3),S(3),J(4,"guiTranslate"),b(5,"div",4),g()(),h(6,"gui-dropdown-item",2),F("click",function(){R(e);let r=f();return A(r.setSortOrder(r.status.DESC))}),h(7,"div",3),S(8),J(9,"guiTranslate"),b(10,"div",5),g()(),h(11,"gui-dropdown-item",2),F("click",function(){R(e);let r=f();return A(r.setSortOrder(r.status.NONE))}),S(12),J(13,"guiTranslate"),g()()}if(i&2){let e=f();m("dropdownText",e.dropdownTextTranslation)("placement",e.placement)("showOnHover",!0)("width",225),u(),U("gui-header-item-active",e.isAscSort()),u(2),oe(" ",ie(4,16,"headerMenuMainTabColumnSortAscending")," "),u(2),m("sort",!0),u(),U("gui-header-item-active",e.isDescSort()),u(2),oe(" ",ie(9,18,"headerMenuMainTabColumnSortDescending")," "),u(2),m("position",e.StructureArrowPosition.DOWN)("sort",!0),u(),U("gui-header-item-active",e.isNoneSort()),u(),oe(" ",ie(13,20,"headerMenuMainTabColumnSortNone")," ")}}var nF=["gui-structure-column-config-column-hide",""],rF=["gui-structure-column-config-column-move","","column",""],oF=["headerSortMenu"],sF=["gui-column-config",""];function aF(i,t){if(i&1&&b(0,"div",10),i&2){let e=f(3).$implicit,n=f();m("column",n.column)("dropdownTextTranslation",e.translations.headerMenuMainTabColumnSort)}}function cF(i,t){if(i&1){let e=Z();pe(0),h(1,"gui-tab-item",5),D(2,aF,1,2,"div",6),h(3,"div",7),F("columnHidden",function(){R(e);let r=f(3);return A(r.hideColumn())}),g(),h(4,"div",8),F("click",function(){R(e);let r=f(3);return A(r.highlightColumn())}),S(5),J(6,"guiTranslate"),g(),h(7,"div",9),F("movedLeft",function(){R(e);let r=f(3);return A(r.moveLeft())})("movedRight",function(){R(e);let r=f(3);return A(r.moveRight())}),g()(),fe()}if(i&2){let e=f(2).$implicit,n=f();u(),m("tab",e.translations.headerMenuMainTab),u(),m("ngIf",n.column.isSortEnabled()),u(),m("column",n.column),u(2),oe(" ",ie(6,5,"headerMenuMainTabHighlightColumn")," "),u(2),m("column",n.column)}}function lF(i,t){if(i&1&&(pe(0),h(1,"gui-tab-item",11),b(2,"div",12),g(),fe()),i&2){let e=f(2).$implicit,n=f();u(),m("tab",e.translations.headerMenuFilterTab),u(),m("fieldId",n.column.getFieldId())}}function dF(i,t){if(i&1&&(pe(0),h(1,"gui-tab-item",11),b(2,"div",13),g(),fe()),i&2){let e=f(2).$implicit;u(),m("tab",e.translations.headerMenuColumnsTab)}}function uF(i,t){if(i&1&&(h(0,"div",2)(1,"gui-tab",3),D(2,cF,8,7,"ng-container",4)(3,lF,3,2,"ng-container",4)(4,dF,3,1,"ng-container",4),g()()),i&2){let e=f().$implicit;u(),m("active",e.config.getActiveMenu())("menu",e.config.getMenus()),u(),m("ngIf",e.config.isMainEnabled()),u(),m("ngIf",e.config.isFilteringEnabled()),u(),m("ngIf",e.config.isColumnManagerEnabled())}}function mF(i,t){if(i&1&&(pe(0),D(1,uF,5,5,"div",1),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.isEnabled)}}var hF=["gui-select-custom-modal",""];function gF(i,t){if(i&1){let e=Z();h(0,"li",2),F("click",function(){let r=R(e).$implicit,o=f(2);return A(o.selectCustom(r.getCustomSelectId()))}),S(1),g()}if(i&2){let e=t.$implicit;De("id",e.key),u(),oe(" ",e.text," ")}}function pF(i,t){if(i&1&&(h(0,"ul"),D(1,gF,2,2,"li",1),g()),i&2){let e=t.$implicit;u(),m("ngForOf",e.getSelections())}}var fF=["gui-select-all",""];function bF(i,t){if(i&1){let e=Z();h(0,"gui-checkbox",2),F("changed",function(){R(e);let r=f().$implicit,o=f();return A(o.toggleSelectAll(r.isAllIndeterminate,r.isAllChecked))}),g()}if(i&2){let e=f().$implicit;m("checked",e.isAllChecked)("gui-tooltip","Select")("indeterminate",e.isAllIndeterminate)}}function vF(i,t){if(i&1&&(pe(0),D(1,bF,1,3,"gui-checkbox",1),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.modeMulti)}}var xF=["gui-structure-menu-icon",""],_F=["headerDialogContainer"],yF=["gui-structure-column-config-trigger",""];function wF(i,t){if(i&1){let e=Z();h(0,"div",2,0),F("click",function(){R(e);let r=f();return A(r.openConfigDialog())}),b(2,"div",3),g()}i&2&&(u(2),m("ngClass","gui-header-menu-icon"))}var CF=["selectCustomContainer"],IF=["gui-structure-header-columns","","columns",""],kF=i=>({"gui-header-sortable":i});function EF(i,t){i&1&&(h(0,"div",2),b(1,"div",3),g())}function SF(i,t){i&1&&Co(0)}function DF(i,t){if(i&1&&b(0,"div",10),i&2){let e=f().$implicit;m("position",e.getSortStatus())("sort",!0)}}function TF(i,t){if(i&1){let e=Z();h(0,"div",4),F("click",function(){let r=R(e).$implicit,o=f();return A(o.toggleSort(r))}),h(1,"div",5),D(2,SF,1,0,"ng-container",6)(3,DF,1,2,"div",7),g(),h(4,"div",8),b(5,"div",9),g()()}if(i&2){let e=t.$implicit;O_(e.getStyles()),Yi(e.getCssClasses()),Ae("width",e.width,"px"),m("ngClass",ol(11,kF,e.isSortEnabled())),u(2),m("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",e.context),u(),m("ngIf",!e.isNoSort()),u(2),m("column",e)}}var MF=["gui-structure-header-groups","","groups","","checkboxSelection",""];function FF(i,t){i&1&&(h(0,"div",2),b(1,"div",3),g())}function RF(i,t){if(i&1&&(h(0,"div",4)(1,"div",5),S(2),g()()),i&2){let e=t.$implicit;Ae("width",e.width,"px"),u(2),oe(" ",e.header," ")}}var AF=["gui-structure-header-filters","","columns",""],OF=()=>["has value","is the same as","starts with","ends with"];function PF(i,t){if(i&1){let e=Z();h(0,"div",2)(1,"button",3),F("click",function(){R(e);let r=f(2);return A(r.turnOnFilterMode())}),S(2,"Add Filter"),g()()}if(i&2){let e=t.$implicit;Ae("width",e.width,"px")}}function NF(i,t){if(i&1&&(pe(0),D(1,PF,3,2,"div",1),fe()),i&2){let e=f();u(),m("ngForOf",e.columns)}}function jF(i,t){if(i&1){let e=Z();pe(0),b(1,"gui-select",4),h(2,"form",5),b(3,"input",6),g(),h(4,"button",7),F("click",function(){R(e);let r=f();return A(r.clearFilters())}),S(5,"Clear All"),g(),h(6,"button",7),F("click",function(){R(e);let r=f();return A(r.turnOffFilterMode())}),S(7,"Close"),g(),fe()}if(i&2){let e=f();u(),m("options",Io(4,OF))("selected","has value"),u(),m("formGroup",e.filterForm),u(),m("formControlName",e.filterFieldName)}}var VF=["gui-structure-header",""];function LF(i,t){if(i&1&&b(0,"div",3),i&2){let e=f().$implicit;m("checkboxSelection",e.showSelection)("groups",e.groups)}}function zF(i,t){if(i&1&&(pe(0),D(1,LF,1,2,"div",2),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.showGroups)}}function BF(i,t){if(i&1&&b(0,"div",4),i&2){let e=t.$implicit,n=f();m("columns",e.headerColumns)("guiStyle",n.width$)("showSelection",e.showSelection)}}function HF(i,t){if(i&1&&b(0,"div",6),i&2){let e=f().$implicit,n=f();m("columns",e.headerColumns)("guiStyle",n.filterHeaderHeight$)}}function $F(i,t){if(i&1&&(pe(0),D(1,HF,1,2,"div",5),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e.filterRowEnabled)}}var UF=["cellContainer"],WF=["gui-structure-cell-edit-boolean","","entity","","cell",""];function GF(i,t){i&1&&Co(0)}var qF=["gui-structure-cell","","entity","","cell",""],YF=(i,t,e,n)=>({"gui-cell-view":!0,"gui-align-left":i,"gui-align-center":t,"gui-align-right":e,"gui-column-highlighted":n}),QF=(i,t,e,n)=>({element:i,index:t,value:e,item:n});function KF(i,t){i&1&&Co(0)}function ZF(i,t){if(i&1){let e=Z();h(0,"span",3),F("click",function(){R(e);let r=f(2);return A(r.enterEditMode())}),D(1,KF,1,0,"ng-container",4),g()}if(i&2){let e=f(2);m("ngClass",Hh(3,YF,e.cell.isAlignLeft(),e.cell.isAlignCenter(),e.cell.isAlignRight(),e.isHighlighted)),u(),m("ngTemplateOutlet",e.cell.template)("ngTemplateOutletContext",Hh(8,QF,e.cell.getValue(e.entity,e.searchPhrase),e.entity.getPosition(),e.cell.getValue(e.entity,e.searchPhrase).value,e.entity.getSourceItem()))}}function XF(i,t){i&1&&Co(0)}function JF(i,t){if(i&1&&(h(0,"span",5),D(1,XF,1,0,"ng-container",4),g()),i&2){let e=f(2);u(),m("ngTemplateOutlet",e.cell.editTemplate)("ngTemplateOutletContext",e.editContext)}}function eR(i,t){if(i&1&&(pe(0),D(1,ZF,2,13,"span",1)(2,JF,2,2,"span",2),fe()),i&2){let e=f();u(),m("ngIf",!e.inEditMode),u(),m("ngIf",e.inEditMode)}}function tR(i,t){if(i&1&&(pe(0),b(1,"div",6),fe()),i&2){let e=f();u(),m("cell",e.cell)("entity",e.entity)}}var iR=["gui-structure-row",""];function nR(i,t){if(i&1){let e=Z();h(0,"div",3)(1,"gui-checkbox",4),F("changed",function(){R(e);let r=f();return A(r.selectCheckbox())}),g()()}if(i&2){let e=f();u(),m("checked",e.selectedItem)}}function rR(i,t){if(i&1){let e=Z();h(0,"div",5)(1,"gui-radio-button",4),F("changed",function(){R(e);let r=f();return A(r.selectRadio())}),g()()}if(i&2){let e=f();u(),m("checked",e.selectedItem)}}function oR(i,t){if(i&1&&b(0,"div",6),i&2){let e=t.$implicit,n=t.index,r=f();Ae("width",e.width,"px"),m("cellEditorManager",r.cellEditing)("cell",e)("columnIndex",n)("editMode",r.editMode)("entity",r.entity)("rowIndex",r.index)("searchPhrase",r.searchPhrase)}}var sR=["gui-structure-content",""],aR=(i,t)=>({even:i,odd:t}),cR=i=>({transform:i});function lR(i,t){if(i&1){let e=Z();h(0,"div",3),F("click",function(){let r=R(e).$implicit,o=f().$implicit,s=f();return A(s.toggleSelectedRow(r,o.selectionEnabled,o.checkboxSelection,o.radioSelection))}),g()}if(i&2){let e=t.$implicit,n=t.index,r=f().$implicit,o=f();Ae("height",r.rowHeight,"px"),m("cellEditing",r.cellEditing)("checkboxSelection",r.checkboxSelection)("columns",o.columns)("editMode",r.editMode)("entity",e)("id",e.getUiId())("index",e.getPosition())("ngClass",Bh(15,aR,e.isEven(),e.isOdd()))("ngStyle",ol(18,cR,o.translateY(n,r.rowHeight)))("radioSelection",r.radioSelection)("rowClass",r.schemaRowClass)("rowStyle",r.schemaRowStyle)("searchPhrase",r.searchPhrase)}}function dR(i,t){if(i&1&&(h(0,"div",1),D(1,lR,1,20,"div",2),g()),i&2){let e=f();u(),m("ngForOf",e.source)("ngForTrackBy",e.trackByFn)}}var uR=["sourceCollection"],mR=["gui-structure-container",""],hR=["gui-structure-title-panel",""],gR=["gui-structure-footer-panel",""],pR=["gui-structure-blueprint",""];function fR(i,t){i&1&&b(0,"div",8)}function bR(i,t){i&1&&b(0,"div",9)}function vR(i,t){i&1&&b(0,"div",11),i&2&&m("position",0)}function xR(i,t){if(i&1&&(pe(0),D(1,vR,1,1,"div",10),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isPagingTopEnabled(e))}}function _R(i,t){if(i&1&&b(0,"div",13),i&2){let e=f(2);m("ngClass",e.headerTopClasses)}}function yR(i,t){if(i&1&&(pe(0),D(1,_R,1,1,"div",12),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isColumnHeaderTopEnabled(e))}}function wR(i,t){if(i&1&&b(0,"div",13),i&2){let e=f(2);m("ngClass",e.headerBottomClasses)}}function CR(i,t){if(i&1&&(pe(0),D(1,wR,1,1,"div",12),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isColumnHeaderBottomEnabled(e))}}function IR(i,t){i&1&&b(0,"div",15)}function kR(i,t){if(i&1&&(pe(0),D(1,IR,1,0,"div",14),fe()),i&2){let e=t.$implicit;u(),m("ngIf",e)}}function ER(i,t){i&1&&b(0,"div",11),i&2&&m("position",1)}function SR(i,t){if(i&1&&(pe(0),D(1,ER,1,1,"div",10),fe()),i&2){let e=t.$implicit,n=f();u(),m("ngIf",n.isPagingBottomEnabled(e))}}function DR(i,t){i&1&&b(0,"div",16)}var TR=(i,t)=>({"gui-loader-visible":i,"gui-loader-hidden":t});function MR(i,t){i&1&&b(0,"gui-spinner",3),i&2&&m("diameter",120)("primary",!0)}var FR=["structure"];var RR={sourceEmpty:"There are no items to show.",pagingItemsPerPage:"Items per page:",pagingOf:"of",pagingNextPage:"Next",pagingPrevPage:"Prev",pagingNoItems:"There is no items.",infoPanelShowing:"Showing",infoPanelItems:"items",infoPanelOutOf:"out of",infoPanelThemeMangerTooltipText:"Theme manager",infoPanelColumnManagerTooltipText:"Column manager",infoPanelInfoTooltipText:"info",themeManagerModalTitle:"Theme manager",themeManagerModalTheme:"Theme:",themeManagerModalRowColoring:"Row coloring:",themeManagerModalVerticalGrid:"Vertical grid",themeManagerModalHorizontalGrid:"HorizontalGrid",columnManagerModalTitle:"Manage columns",headerMenuMainTab:"Menu",headerMenuMainTabColumnSort:"Column sort",headerMenuMainTabHideColumn:"Hide column",headerMenuMainTabHighlightColumn:"Highlight",headerMenuMainTabMoveLeft:"Move left",headerMenuMainTabMoveRight:"Move right",headerMenuMainTabColumnSortAscending:"Ascending",headerMenuMainTabColumnSortDescending:"Descending",headerMenuMainTabColumnSortNone:"None",headerMenuFilterTab:"Filter",headerMenuColumnsTab:"Columns",summariesCount:"Count",summariesDist:"Dist",summariesSum:"Sum",summariesAvg:"Avg",summariesMin:"Min",summariesMax:"Max",summariesMed:"Med",summariesTruthy:"Truthy",summariesFalsy:"Falsy",summariesDistinctValuesTooltip:"Distinct values",summariesAverageTooltip:"Average",summariesMinTooltip:"Min",summariesMaxTooltip:"Max",summariesMedTooltip:"Median",summariesCountTooltip:"Number of items in the grid"};var Or=function(i){return i[i.UNKNOWN=0]="UNKNOWN",i[i.NUMBER=1]="NUMBER",i[i.STRING=2]="STRING",i[i.BOOLEAN=3]="BOOLEAN",i[i.DATE=4]="DATE",i[i.CUSTOM=5]="CUSTOM",i}(Or||{}),oi=function(i){return i[i.TEXT=0]="TEXT",i[i.CHIP=1]="CHIP",i[i.LINK=2]="LINK",i[i.IMAGE=3]="IMAGE",i[i.BOLD=4]="BOLD",i[i.ITALIC=5]="ITALIC",i[i.CHECKBOX=6]="CHECKBOX",i[i.CUSTOM=7]="CUSTOM",i[i.BAR=8]="BAR",i[i.PERCENTAGE_BAR=9]="PERCENTAGE_BAR",i[i.PERCENTAGE=10]="PERCENTAGE",i}(oi||{});var si=function(i){return i[i.FABRIC=0]="FABRIC",i[i.MATERIAL=1]="MATERIAL",i[i.LIGHT=2]="LIGHT",i[i.DARK=3]="DARK",i[i.GENERIC=4]="GENERIC",i}(si||{}),Vn=function(i){return i[i.NONE=0]="NONE",i[i.EVEN=1]="EVEN",i[i.ODD=2]="ODD",i}(Vn||{});var Va=function(i){return i[i.BASIC=0]="BASIC",i[i.ADVANCED=1]="ADVANCED",i}(Va||{}),_d=function(i){return i[i.RIGHT=0]="RIGHT",i[i.CENTER=1]="CENTER",i[i.LEFT=2]="LEFT",i}(_d||{}),yd=function(i){return i[i.ROW=0]="ROW",i[i.CHECKBOX=1]="CHECKBOX",i[i.RADIO=2]="RADIO",i}(yd||{}),tf=function(i){return i[i.SINGLE=0]="SINGLE",i[i.MULTIPLE=1]="MULTIPLE",i}(tf||{});var $=function(i){return i[i.UNKNOWN=0]="UNKNOWN",i[i.NUMBER=1]="NUMBER",i[i.STRING=2]="STRING",i[i.BOOLEAN=3]="BOOLEAN",i[i.DATE=4]="DATE",i[i.CUSTOM=5]="CUSTOM",i}($||{}),nf=class{convertType(t){return typeof t=="string"?this.convertTypeString(t):this.convertTypeEnum(t)}convertTypeEnum(t){switch(t){case Or.STRING:return $.STRING;case Or.NUMBER:return $.NUMBER;case Or.BOOLEAN:return $.BOOLEAN;case Or.DATE:return $.DATE;case Or.UNKNOWN:return $.UNKNOWN;case Or.CUSTOM:return $.CUSTOM;default:return $.STRING}}convertTypeString(t){switch(t.toLocaleLowerCase()){case"string":return $.STRING;case"number":return $.NUMBER;case"boolean":return $.BOOLEAN;case"date":return $.DATE;case"unknown":return $.UNKNOWN;case"custom":return $.CUSTOM;default:return $.STRING}}},ee=function(i){return i[i.COUNT=1024]="COUNT",i[i.DISTINCT=1]="DISTINCT",i[i.SUM=2]="SUM",i[i.AVERAGE=4]="AVERAGE",i[i.MIN=8]="MIN",i[i.MAX=16]="MAX",i[i.MEDIAN=32]="MEDIAN",i[i.TRUTHY=64]="TRUTHY",i[i.FALSY=128]="FALSY",i[i.EARLIEST=256]="EARLIEST",i[i.LATEST=512]="LATEST",i}(ee||{}),rf=class{convert(t){let e={};return t.enabled!==void 0&&t.enabled!==null&&(e.enabled=t.enabled),t.summariesTypes!==void 0&&t.summariesTypes!==null&&(e.summariesTypes=this.convertSummariesTypes(t.summariesTypes)),e}convertSummariesTypes(t){let e=[];return t.forEach(n=>{let r=this.convertSummariesType(n);r!=null&&e.push(r)}),e}convertSummariesType(t){switch(t.toLocaleLowerCase()){case"count":return ee.COUNT;case"distinct":return ee.DISTINCT;case"sum":return ee.SUM;case"average":return ee.AVERAGE;case"min":return ee.MIN;case"max":return ee.MAX;case"median":return ee.MEDIAN;case"truthy":return ee.TRUTHY;case"falsy":return ee.FALSY;case"earliest":return ee.EARLIEST;case"latest":return ee.LATEST;default:return null}}},j=function(i){return i[i.TEXT=0]="TEXT",i[i.NUMBER=1]="NUMBER",i[i.CHIP=2]="CHIP",i[i.LINK=3]="LINK",i[i.IMAGE=4]="IMAGE",i[i.BOLD=5]="BOLD",i[i.ITALIC=6]="ITALIC",i[i.CHECKBOX=7]="CHECKBOX",i[i.CUSTOM=8]="CUSTOM",i[i.FUNCTION=9]="FUNCTION",i[i.DATE=10]="DATE",i[i.BAR=11]="BAR",i[i.PERCENTAGE_BAR=12]="PERCENTAGE_BAR",i[i.PERCENTAGE=13]="PERCENTAGE",i[i.NG_TEMPLATE=14]="NG_TEMPLATE",i[i.HTML=15]="HTML",i}(j||{}),of=class{convert(t){return typeof t=="string"?this.convertString(t):typeof t=="function"?t:this.convertEnum(t)}convertString(t){switch(t.toLocaleLowerCase()){case"text":return j.TEXT;case"chip":return j.CHIP;case"link":return j.LINK;case"image":return j.IMAGE;case"bold":return j.BOLD;case"italic":return j.ITALIC;case"checkbox":return j.CHECKBOX;case"custom":return j.CUSTOM;case"bar":return j.BAR;case"percentage_bar":return j.PERCENTAGE_BAR;case"percentage":return j.PERCENTAGE;default:return j.TEXT}}convertEnum(t){switch(t){case oi.TEXT:return j.TEXT;case oi.CHIP:return j.CHIP;case oi.LINK:return j.LINK;case oi.IMAGE:return j.IMAGE;case oi.BOLD:return j.BOLD;case oi.ITALIC:return j.ITALIC;case oi.CHECKBOX:return j.CHECKBOX;case oi.CUSTOM:return j.CUSTOM;case oi.BAR:return j.BAR;case oi.PERCENTAGE_BAR:return j.PERCENTAGE_BAR;case oi.PERCENTAGE:return j.PERCENTAGE;default:return j.TEXT}}},sf=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}},af=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}},$e=function(i){return i[i.RIGHT=0]="RIGHT",i[i.CENTER=1]="CENTER",i[i.LEFT=2]="LEFT",i}($e||{}),cf=class{convert(t){return typeof t=="string"?this.convertTypeString(t):this.convertTypeEnum(t)}convertTypeEnum(t){switch(t){case _d.RIGHT:return $e.RIGHT;case _d.CENTER:return $e.CENTER;case _d.LEFT:return $e.LEFT;default:return $e.LEFT}}convertTypeString(t){switch(t.toLocaleLowerCase()){case"right":return $e.RIGHT;case"center":return $e.CENTER;case"left":return $e.LEFT;default:return $e.LEFT}}},lf=class{columnTypeConverter=new nf;columnSummariesConverter=new rf;columnViewConverter=new of;columnSortingConverter=new sf;columnCellEditingConverter=new af;columnAlignConverter=new cf;convert(t){return t.map(e=>{if(e.columns!==void 0){let n=e.columns.map(r=>this.convertColumn(r));return{header:e.header,columns:n}}else return this.convertColumn(e)})}convertColumn(t){let e={};return t.name!==void 0&&t.name!==null?e.name=t.name:t.field!==void 0&&t.field!==null&&typeof t.field=="string"&&(e.name=t.field),t.type!==void 0&&t.type!==null&&(e.type=this.columnTypeConverter.convertType(t.type)),t.header!==void 0&&t.header!==null&&(e.header=t.header),t.enabled!==void 0&&t.enabled!==null&&(e.enabled=t.enabled),t.field!==void 0&&t.field!==null&&(e.field=t.field),t.width!==void 0&&t.width!==null&&(e.width=t.width),t.align!==void 0&&t.align!==null&&(e.align=this.columnAlignConverter.convert(t.align)),t.view!==void 0&&t.view!==null&&(e.view=this.columnViewConverter.convert(t.view)),t.summaries!==void 0&&t.summaries!==null&&(e.summaries=this.columnSummariesConverter.convert(t.summaries)),t.sorting!==void 0&&t.sorting!==null&&(e.sorting=this.columnSortingConverter.convert(t.sorting)),t.cellEditing!==void 0&&t.cellEditing!==null&&(e.cellEditing=this.columnCellEditingConverter.convert(t.cellEditing)),t.formatter!==void 0&&t.formatter!==null&&(e.formatter=t.formatter),t.matcher!==void 0&&t.matcher!==null&&(e.matcher=t.matcher),t.cssClasses!==void 0&&t.cssClasses!==null&&(e.cssClasses=t.cssClasses),t.styles!==void 0&&t.styles!==null&&(e.styles=t.styles),t.templateRef!==void 0&&t.templateRef!==null&&(e.templateRef=t.templateRef,e.view=j.NG_TEMPLATE),e}},H=function(i){return i[i.FABRIC=0]="FABRIC",i[i.MATERIAL=1]="MATERIAL",i[i.LIGHT=2]="LIGHT",i[i.DARK=3]="DARK",i[i.GENERIC=4]="GENERIC",i}(H||{}),df=class{convert(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertToGuiTheme(t){switch(t){case H.MATERIAL:return si.MATERIAL;case H.FABRIC:return si.FABRIC;case H.LIGHT:return si.LIGHT;case H.DARK:return si.DARK;case H.GENERIC:return si.GENERIC;default:return si.GENERIC}}convertString(t){switch(t.toLocaleLowerCase()){case"material":return H.MATERIAL;case"fabric":return H.FABRIC;case"light":return H.LIGHT;case"dark":return H.DARK;case"generic":return H.GENERIC;default:return H.FABRIC}}convertEnum(t){switch(t){case si.MATERIAL:return H.MATERIAL;case si.FABRIC:return H.FABRIC;case si.LIGHT:return H.LIGHT;case si.DARK:return H.DARK;case si.GENERIC:return H.GENERIC;default:return H.FABRIC}}},at=function(i){return i[i.NONE=0]="NONE",i[i.EVEN=1]="EVEN",i[i.ODD=2]="ODD",i}(at||{}),uf=class{convert(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertToGuiRowColoring(t){switch(t){case at.NONE:return Vn.NONE;case at.EVEN:return Vn.EVEN;case at.ODD:return Vn.ODD;default:return Vn.EVEN}}convertString(t){switch(t.toLocaleLowerCase()){case"none":return at.NONE;case"even":return at.EVEN;case"odd":return at.ODD;default:return at.EVEN}}convertEnum(t){switch(t){case Vn.NONE:return at.NONE;case Vn.EVEN:return at.EVEN;case Vn.ODD:return at.ODD;default:return at.EVEN}}},AR=(()=>{class i{convert(e){return e}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),an=function(i){return i[i.BASIC=0]="BASIC",i[i.ADVANCED=1]="ADVANCED",i}(an||{}),mf=class{convert(t){let e={};return t.enabled!==void 0&&t.enabled!==null&&(e.enabled=t.enabled),t.page!==void 0&&t.page!==null&&(e.page=t.page),t.pageSize!==void 0&&t.pageSize!==null&&(e.pageSize=t.pageSize),t.pageSizes!==void 0&&t.pageSizes!==null&&(e.pageSizes=t.pageSizes),t.pagerTop!==void 0&&t.pagerTop!==null&&(e.pagerTop=t.pagerTop),t.pagerBottom!==void 0&&t.pagerBottom!==null&&(e.pagerBottom=t.pagerBottom),t.display!==void 0&&t.display!==null&&(e.displayMode=this.convertDisplay(t.display)),e}convertDisplay(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertString(t){switch(t.toLocaleLowerCase()){case"basic":return an.BASIC;case"advanced":return an.ADVANCED;default:return an.BASIC}}convertEnum(t){switch(t){case Va.BASIC:return an.BASIC;case Va.ADVANCED:return an.ADVANCED;default:return an.BASIC}}},La=class{build(){return this.buildObject()}},xt=function(i){return i.ROW="ROW",i.CHECKBOX="CHECKBOX",i.RADIO="RADIO",i}(xt||{}),ai=function(i){return i.SINGLE="SINGLE",i.MULTIPLE="MULTIPLE",i}(ai||{}),OR=(()=>{class i{enabled;selectedRowIndexes;selectedRowIds;type;mode;matcher;customConfig;constructor(e){e.enabled!==void 0&&(this.enabled=e.enabled),e?.selectedRowIndexes&&(this.selectedRowIndexes=e.selectedRowIndexes),e?.selectedRowIds&&(this.selectedRowIds=e.selectedRowIds),e?.mode&&(this.mode=e.mode),e?.type&&(this.type=e.type),e?.matcher&&(this.matcher=e.matcher),e?.config&&(this.customConfig=e.config)}isModeDefined(){return this.mode!==void 0}isTypeDefined(){return this.type!==void 0}isSelectedRowIndexesDefined(){return this.selectedRowIndexes!==void 0}isSelectedRowIdsDefined(){return this.selectedRowIds!==void 0}isEnabledDefined(){return this.enabled!==void 0}isMatcherDefined(){return this.matcher!==void 0}isEnabled(){return this.enabled}isCustomSelectConfig(){return this.customConfig!==void 0}getSelectedRowIndexes(){return this.selectedRowIndexes}getSelectedRowIds(){return this.selectedRowIds}getMode(){return this.mode}getType(){return this.type}getMatcher(){return this.matcher}getCustomSelectConfig(){return this.customConfig}static Builder=class extends La{enabled;selectedRowIndexes;selectedRowIds;type;mode;config;matcher;constructor(){super()}buildObject(){return new i({enabled:this.enabled,selectedRowIndexes:this.selectedRowIndexes,selectedRowIds:this.selectedRowIds,type:this.type,mode:this.mode,matcher:this.matcher,config:this.config})}withEnabled(n){return this.enabled=n,this}withSelectedRowIndexes(n){return this.selectedRowIndexes=n,this}withSelectedRowIds(n){return this.selectedRowIds=n,this}withType(n){return this.type=n,this}withMode(n){return this.mode=n,this}withMatcher(n){return this.matcher=n,this}witCustomSelection(n){return this.config=n,this}}}return i})(),hf=class{enabled;selections},gf=class{convert(t){let e=new OR.Builder;if(typeof t=="boolean")return e.withEnabled(t).build();if(t.enabled!==void 0&&e.withEnabled(t.enabled),t.selectedRowIndexes!==void 0&&e.withSelectedRowIndexes(t.selectedRowIndexes),t.selectedRowIds!==void 0&&e.withSelectedRowIds(t.selectedRowIds),t.mode!==void 0){let n=this.convertMode(t.mode);e.withMode(n)}if(t.type!==void 0){let n=this.convertType(t.type);e.withType(n)}if(t.matcher!==void 0){let n=this.convertMatcher(t.matcher);e.withMatcher(n)}if(t.custom!==void 0){let n=this.convertCustomSelection(t.custom);e.witCustomSelection(n)}return e.build()}convertMode(t){if(typeof t=="string")switch(t.toLowerCase()){case"single":return ai.SINGLE;case"multiple":return ai.MULTIPLE;default:return ai.SINGLE}else switch(t){case tf.SINGLE:return ai.SINGLE;case tf.MULTIPLE:return ai.MULTIPLE;default:return ai.SINGLE}}convertType(t){if(typeof t=="string")switch(t.toLowerCase()){case"row":return xt.ROW;case"checkbox":return xt.CHECKBOX;case"radio":return xt.RADIO;default:return xt.ROW}else switch(t){case yd.ROW:return xt.ROW;case yd.CHECKBOX:return xt.CHECKBOX;case yd.RADIO:return xt.RADIO;default:return xt.ROW}}convertMatcher(t){return typeof t=="string"?e=>e[t]:t}convertCustomSelection(t){let e=new hf;return t?.enabled&&(e.enabled=t.enabled),t?.selections&&Array.isArray(t?.selections)&&(e.selections=t.selections.map(n=>n)),e}},ax=(()=>{class i{templateRef;name;field;type;view;header;width;enabled;align;summaries;sorting;cellEditing;formatter;matcher;cssClasses;styles;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["gui-grid-column"]],contentQueries:function(n,r,o){if(n&1&&yt(o,Pe,7),n&2){let s;L(s=z())&&(r.templateRef=s.first)}},inputs:{name:"name",field:"field",type:"type",view:"view",header:"header",width:"width",enabled:"enabled",align:"align",summaries:"summaries",sorting:"sorting",cellEditing:"cellEditing",formatter:"formatter",matcher:"matcher",cssClasses:"cssClasses",styles:"styles"},decls:0,vars:0,template:function(n,r){},encapsulation:2})}return i})(),pf=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}};function Re(i,t){PR(i)&&t(i.currentValue)}function PR(i){return i!==void 0&&i.currentValue!==void 0}var NR=(()=>{class i{guiGridColumnComponent;columnHeaderTop;columnHeaderBottom;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns=[];paging;verticalGrid;horizontalGrid;theme;rowColoring;rowSelection;rowStyle;rowClass;loading;virtualScroll;sorting;searching;titlePanel;footerPanel;filtering;quickFilters;editMode;cellEditing;infoPanel;summaries;columnMenu;rowDetail;localization;pageChanged=new W;pageSizeChanged=new W;itemsSelected=new W;selectedRows=new W;columnsChanged=new W;containerWidthChanged=new W;sourceEdited=new W;cellEditEntered=new W;cellEditCanceled=new W;cellEditSubmitted=new W;searchPhraseChanged=new W;themeChanged=new W;horizontalGridChanged=new W;verticalGridChanged=new W;rowColoringChanged=new W;columnsConfig;themeConfig;rowColoringConfig;columnMenuConfig;rowSelectionConfig;cellEditingConfig;gridColumnConverter=new lf;gridThemeConverter=new df;gridRowColoringConverter=new uf;gridColumnMenuConverter=new AR;gridPagingConverter=new mf;gridRowSelectionConverter=new gf;guiGridCellEditConverter=new pf;constructor(){}ngOnChanges(e){Re(e.columns,()=>{this.columnsConfig=this.gridColumnConverter.convert(this.columns)}),Re(e.theme,()=>{this.themeConfig=this.gridThemeConverter.convert(this.theme)}),Re(e.rowColoring,()=>{this.rowColoringConfig=this.gridRowColoringConverter.convert(this.rowColoring)}),Re(e.columnMenu,()=>{this.columnMenuConfig=this.gridColumnMenuConverter.convert(this.columnMenu)}),Re(e.rowSelection,()=>{this.rowSelectionConfig=this.gridRowSelectionConverter.convert(this.rowSelection)}),Re(e.cellEditing,()=>{this.cellEditingConfig=this.guiGridCellEditConverter.convert(this.cellEditing)}),Re(e.paging,()=>{typeof this.paging!="boolean"&&(this.paging=this.gridPagingConverter.convert(this.paging))})}ngAfterContentInit(){this.guiGridColumnComponent&&this.guiGridColumnComponent.toArray().length>0&&(this.columnsConfig=this.gridColumnConverter.convert(this.guiGridColumnComponent.toArray()))}onPageChange(e){this.pageChanged.emit(e)}onPageSizeChange(e){this.pageSizeChanged.emit(e)}onItemSelect(e){this.itemsSelected.emit(e)}onRowsSelect(e){let n=e.map(r=>({index:r.getIndex(),source:r.getItem(),itemId:r.getItemId()}));this.selectedRows.emit(n)}onColumnsChange(){this.columnsChanged.emit()}onContainerWidthChange(e){this.containerWidthChanged.emit(e)}onSourceEdit(e){this.sourceEdited.emit(e)}onCellEditEnter(){this.cellEditEntered.emit()}onCellEditSubmit(){this.cellEditSubmitted.emit()}onCellEditCancel(){this.cellEditCanceled.emit()}onSearchPhrase(e){this.searchPhraseChanged.emit(e)}onTheme(e){this.themeChanged.emit(this.gridThemeConverter.convertToGuiTheme(e))}onHorizontalGrid(e){this.horizontalGridChanged.emit(e)}onVerticalGrid(e){this.verticalGridChanged.emit(e)}onRowColoring(e){this.rowColoringChanged.emit(this.gridRowColoringConverter.convertToGuiRowColoring(e))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=N({type:i,contentQueries:function(n,r,o){if(n&1&&yt(o,ax,4),n&2){let s;L(s=z())&&(r.guiGridColumnComponent=s)}},inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom",maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",paging:"paging",verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid",theme:"theme",rowColoring:"rowColoring",rowSelection:"rowSelection",rowStyle:"rowStyle",rowClass:"rowClass",loading:"loading",virtualScroll:"virtualScroll",sorting:"sorting",searching:"searching",titlePanel:"titlePanel",footerPanel:"footerPanel",filtering:"filtering",quickFilters:"quickFilters",editMode:"editMode",cellEditing:"cellEditing",infoPanel:"infoPanel",summaries:"summaries",columnMenu:"columnMenu",rowDetail:"rowDetail",localization:"localization"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged",itemsSelected:"itemsSelected",selectedRows:"selectedRows",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted",searchPhraseChanged:"searchPhraseChanged",themeChanged:"themeChanged",horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged",rowColoringChanged:"rowColoringChanged"},features:[G]})}return i})(),kC=new K("StructureParentComponent"),as=class{index;itemId;item;constructor(t,e,n){this.item=t,this.index=e,this.itemId=n}getItem(){return this.item}getIndex(){return this.index}getItemId(){return this.itemId}},ff=class{structureId;compositionId;schemaId;formationCommandInvoker;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandInvoker;searchCommandInvoker;gridThemeCommandInvoker;structureCommandInvoker;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;constructor(t,e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce){this.structureId=t,this.compositionId=e,this.schemaId=n,this.formationCommandInvoker=r,this.formationWarehouse=o,this.compositionCommandInvoker=s,this.compositionWarehouse=a,this.filterIntegration=l,this.sourceCommandInvoker=d,this.searchCommandInvoker=p,this.gridThemeCommandInvoker=w,this.structureCommandInvoker=E,this.summariesCommandInvoker=Q,this.sortingCommandInvoker=ne,this.pagingCommandInvoker=ce}provide(){let t=this.structureId,e=this.compositionId,n=this.schemaId,r=this.formationCommandInvoker,o=this.formationWarehouse,s=this.compositionCommandInvoker,a=this.compositionWarehouse,l=this.filterIntegration,d=this.sourceCommandInvoker,p=this.searchCommandInvoker,w=this.gridThemeCommandInvoker,E=this.structureCommandInvoker,Q=this.summariesCommandInvoker,ne=this.sortingCommandInvoker,ce=this.pagingCommandInvoker;return{setSource(O){d.setOrigin(O,t)},showLoading(){d.setLoading(!0,t)},hideLoading(){d.setLoading(!1,t)},deleteRow(O){d.deleteRow(new as(O.source,O.index,O.itemId),t)},deleteRows(O){let Y=O.map(Ie=>new as(Ie.source,Ie.index,Ie.itemId));d.deleteRows(Y,t)},deleteSelectedRows(){},getSelectedRows(){return o.findSelectedRows(t).getValueOrNullOrThrowError().map(Y=>({source:Y.getItem(),index:Y.getIndex(),itemId:Y.getItemId()}))},selectAll(){r.selectAll(t)},unselectAll(){r.unselectAll(t)},getColumns(){let O=[];return a.onTemplateColumns(e).subscribe(Y=>{O=Y}),O},getFilters(){let O=l.findFilters(e,t),Y={};return Object.keys(O).forEach(Ie=>{Y[Ie]=O[Ie].map(pt=>({columnName:pt.columnName,filterId:pt.filterId,filterType:pt.type,value:pt.value}))}),Y},getFiltersForColumn(O){return[]},getFilterTypes(){return[]},getFilterTypesForColumn(O){return l.findFilterTypes(O,e,t)},removeAll(){},removeFilter(O){},removeFiltersFromColumn(O){},filter(O,Y,Ie){l.filter(O,Y,Ie,e,t)},enablePaging(){ce.enable(t)},disablePaging(){ce.disable(t)},nextPage(){ce.nextPage(t)},prevPage(){ce.prevPage(t)},changePageSize(O){ce.changePageSize(O,t)},setPagingConfig(O){ce.setPaging(O,t)},setSearchingConfig(O){p.setSearchingConfig(O,t)},search(O){p.search(O,t)},clearSearchPhrase(){p.search("",t)},scrollToTop(){E.scrollToTop(t)},scrollToBottom(){E.scrollToBottom(t)},scrollToRowByIndex(O){E.scrollToIndex(O,t)},setTheme(O){w.setTheme(O,n,t)},setVerticalGrid(O){w.setVerticalGrid(O,n)},setHorizontalGrid(O){w.setHorizontalGrid(O,n)},setRowColoring(O){w.setRowColoring(O,n)},enableVirtualScroll(){E.enableVirtualScroll(t)},disableVirtualScroll(){E.disableVirtualScroll(t)},enableSummaries(){Q.setSummariesEnabled(!0,t)},disableSummaries(){Q.setSummariesEnabled(!1,t)},setSortConfig(O){ne.setSortingConfig(O,t)}}}},bf=class{schemaCommandInvoker;gridThemeConverter;gridRowColoringConverter;constructor(t,e,n){this.schemaCommandInvoker=t,this.gridThemeConverter=e,this.gridRowColoringConverter=n}setTheme(t,e,n){let r=this.gridThemeConverter.convert(t);this.schemaCommandInvoker.setTheme(r,e,n)}setRowColoring(t,e){let n=this.gridRowColoringConverter.convert(t);this.schemaCommandInvoker.setRowColoring(n,e)}setVerticalGrid(t,e){this.schemaCommandInvoker.setVerticalGrid(t,e)}setHorizontalGrid(t,e){this.schemaCommandInvoker.setHorizontalGrid(t,e)}},za=class{hostElement;constructor(t){this.hostElement=t}getElement(t){return this.createModifier(t)}getHost(){if(!this.hostElement)throw new Error("Missing host element in DomRenderer constructor.");return this.createModifier(this.hostElement)}},zc=(()=>{class i extends za{htmlElement;constructor(e){super(e),this.htmlElement=e}createModifier(e){return new i.ClassModifier(e)}static ClassModifier=class{htmlElement;constructor(e){this.htmlElement=e}add(...e){this.addClassToDomElement(this.htmlElement,e)}remove(...e){this.removeClassFromDomElement(this.htmlElement,e)}clear(){this.htmlElement.removeAttribute("class")}addClassToDomElement(e,n){for(let r=0;r{class i extends za{htmlElement;static AttributeModifier=class{htmlElement;constructor(e){this.htmlElement=e}setAttribute(e,n){this.htmlElement.setAttribute(e,n)}removeAttribute(e){this.htmlElement.removeAttribute(e)}};constructor(e){super(e),this.htmlElement=e}createModifier(e){return new i.AttributeModifier(e)}}return i})(),Id=class extends La{enabled;constructor(t){super(),this.enabled=t}withEnabled(t){return this.enabled=t,this}buildObject(){return new vf(this.enabled)}},VR=(()=>{class i extends Id{static defaultEnabled=!0;constructor(){super(i.defaultEnabled)}}return i})(),vf=(()=>{class i{static Builder=Id;static DefaultBuilder=VR;enabled;constructor(e){this.enabled=e}isEnabled(){return this.enabled}}return i})(),kd=class extends La{headerEnabled;bottomPaging;topPaging;border=!0;constructor(t,e,n){super(),this.headerEnabled=t,this.bottomPaging=e,this.topPaging=n}withHeader(t){return this.headerEnabled=t,this}withBottomPaging(t){return this.bottomPaging=t,this}withTopPaging(t){return this.topPaging=t,this}withBorder(t){return this.border=t,this}buildObject(){return new lo(this.headerEnabled,this.bottomPaging,this.topPaging,this.border)}},xf=class i extends kd{static defaultHeaderEnabled=!0;static defaultBottomPaging=new vf.DefaultBuilder().build();static defaultTopPaging=new vf.DefaultBuilder().build();constructor(){super(i.defaultHeaderEnabled,i.defaultBottomPaging,i.defaultTopPaging)}},lo=(()=>{class i{static Builder=kd;static DefaultBuilder=xf;headerEnabled;bottomPaging;topPaging;border;constructor(e,n,r,o){this.headerEnabled=e,this.bottomPaging=n,this.topPaging=r,this.border=o}isHeaderEnabled(){return this.headerEnabled}isBorderEnabled(){return this.border}getBottomPaging(){return this.bottomPaging}getTopPaging(){return this.topPaging}}return i})(),LR=new lo.DefaultBuilder().build(),EC=(()=>{class i{gridMap=new Map;register(e,n,r){this.gridMap.set(e,{component:n,structureId:r})}unregister(e){this.gridMap.delete(e)}getValues(e){return this.gridMap.get(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Vr=class{generateId(){return xw.generate()}},_t=class{constructor(){}},Rt=class{constructor(){}},ci=class{constructor(){}},At=class{constructor(){}},Vi=class{constructor(){}},Lr=class extends Xi{id;constructor(t){super(t),this.id=t}getId(){return this.id}equals(t){return t.toString()===this.id}toString(){return this.id}},_i=class{constructor(){}},dh=(()=>{class i{compositionWarehouse;filterCommandInvoker;filterWarehouse;constructor(e,n,r){this.compositionWarehouse=e,this.filterCommandInvoker=n,this.filterWarehouse=r}static services=[At,_i,Vi];findFilterTypes(e,n,r){let o=[];return this.compositionWarehouse.onTemplateColumns(n).pipe(P(s=>s.find(a=>a.getName()===e)),ye(s=>s!==void 0),Er(1),Ht(s=>this.filterWarehouse.onFilterTypesForFieldId(new Lr(s.columnFieldId.getId()),r))).subscribe(s=>{o=s.map(a=>a.getName())}),o}findFilters(e,n){let r=this.filterWarehouse.findFilters(n).getValueOrNullOrThrowError(),o=this.compositionWarehouse.findColumnNames(e),s={};for(let a=0;al.getFieldName()===o[a]).map(l=>({columnName:l.getFieldName(),filterId:l.getFilterId().toString(),type:l.getFilterTypeName(),value:l.getValue()}));return s}filter(e,n,r,o,s){this.compositionWarehouse.onTemplateColumns(o).pipe(P(a=>a.find(l=>l.getName()===e)),ye(a=>a!==void 0),Er(1),Ht(a=>this.filterWarehouse.onceFilterTypeId(new Lr(a.columnFieldId.getId()),n,s).pipe(P(l=>({fieldId:new Lr(a.columnFieldId.getId()),filterTypeId:l}))))).subscribe(a=>{let{fieldId:l,filterTypeId:d}=a;d.ifPresent(p=>{this.filterCommandInvoker.add(l,p,r,s)})})}}return i})(),Wt=class{constructor(){}},Gt=class{constructor(){}},Ot=class{constructor(){}},Pt=class{constructor(){}},Hn=class{constructor(){}},qt=class{constructor(){}},Nt=class{constructor(){}},_f=class extends wr{constructor(t){super(t)}toAggregateId(){return new se(this.toString())}},se=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new _f(this.getId())}},yf=class extends wr{constructor(t){super(t)}toAggregateId(){return new et(this.toString())}},et=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new yf(this.getId())}},Ge=function(i){return i[i.NONE=0]="NONE",i[i.EVEN=1]="EVEN",i[i.ODD=2]="ODD",i}(Ge||{}),Yt=class{},pC=(()=>{class i extends vt{schemaReadModelRepository;static VERTICAL_GRID_CLASS_NAME="gui-vertical-grid";static HORIZONTAL_GRID_CLASS_NAME="gui-horizontal-grid";static THEME_FABRIC_CLASS_NAME="gui-fabric";static THEME_MATERIAL_CLASS_NAME="gui-material";static THEME_LIGHT_CLASS_NAME="gui-light";static THEME_DARK_CLASS_NAME="gui-dark";static THEME_GENERIC_CLASS_NAME="gui-generic";static ROW_COLORING_ODD="gui-rows-odd";static ROW_COLORING_EVEN="gui-rows-even";classModifier;cssClass=null;cssHostRef;constructor(e){super(),this.schemaReadModelRepository=e,this.classModifier=new zc}init(e,n){this.cssHostRef=e,this.schemaReadModelRepository.onCssClasses(n).pipe(this.hermesTakeUntil()).subscribe(r=>{let o=this.updateState(r);this.renderCssClasses(o)})}updateState(e){if(this.cssClass){let n={};return Object.keys(this.cssClass).forEach(r=>{e[r]!==this.cssClass[r]&&(n[r]=e[r])}),this.cssClass=e,n}else return this.cssClass=e,this.cssClass}renderCssClasses(e){e.hasOwnProperty("verticalGrid")&&this.toggleCssClass(e.verticalGrid,i.VERTICAL_GRID_CLASS_NAME),e.hasOwnProperty("horizontalGrid")&&this.toggleCssClass(e.horizontalGrid,i.HORIZONTAL_GRID_CLASS_NAME),e.hasOwnProperty("theme")&&(this.removeThemeCssClasses(),this.addClass(this.resolveThemeClassName(e.theme))),e.hasOwnProperty("rowColoring")&&(this.removeRowColoringClasses(),this.addClass(this.resolveRowColoringClassName(e.rowColoring)))}toggleCssClass(e,n){e?this.addClass(n):this.removeClass(n)}removeThemeCssClasses(){Object.keys(H).map(e=>H[e]).map(e=>this.resolveThemeClassName(e)).filter(e=>!!e).forEach(e=>{this.removeClass(e)})}resolveThemeClassName(e){switch(e){case H.FABRIC:case H[H.FABRIC]:return i.THEME_FABRIC_CLASS_NAME;case H.MATERIAL:case H[H.MATERIAL]:return i.THEME_MATERIAL_CLASS_NAME;case H.LIGHT:case H[H.LIGHT]:return i.THEME_LIGHT_CLASS_NAME;case H.DARK:case H[H.DARK]:return i.THEME_DARK_CLASS_NAME;case H.GENERIC:case H[H.GENERIC]:return i.THEME_GENERIC_CLASS_NAME;default:return i.THEME_FABRIC_CLASS_NAME}}resolveRowColoringClassName(e){switch(e){case Ge.ODD:case Ge[Ge.ODD]:return i.ROW_COLORING_ODD;case Ge.EVEN:case Ge[Ge.EVEN]:return i.ROW_COLORING_EVEN;default:return null}}removeRowColoringClasses(){Object.keys(Ge).map(e=>Ge[e]).map(e=>this.resolveRowColoringClassName(e)).filter(e=>!!e).forEach(e=>{this.removeClass(e)})}addClass(e){e&&this.classModifier.getElement(this.cssHostRef.nativeElement).add(e)}removeClass(e){e&&this.classModifier.getElement(this.cssHostRef.nativeElement).remove(e)}static \u0275fac=function(n){return new(n||i)(v(Yt))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ed=(()=>{class i extends Bt{constructor(){super()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Sd=(()=>{class i extends Bt{constructor(){super()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Dd=class{enabled=!1;infoDialog=!0;columnsManager=!0;schemaManager=!0;sourceSize=!0;constructor(t,e,n,r,o){this.isNotUndefinedOrNull(t)&&(this.enabled=t),this.isNotUndefinedOrNull(e)&&(this.infoDialog=e),this.isNotUndefinedOrNull(n)&&(this.columnsManager=n),this.isNotUndefinedOrNull(o)&&(this.sourceSize=o),this.isNotUndefinedOrNull(r)&&(this.schemaManager=r)}isEnabled(){return this.enabled}isInfoDialogEnabled(){return this.infoDialog}isColumnsManagerEnabled(){return this.columnsManager}isSourceSizeEnabled(){return this.sourceSize}isSchemaManagerEnabled(){return this.schemaManager}isNotUndefinedOrNull(t){return t!=null}},$n=class extends Bt{constructor(){super(new Dd)}},zR=new K("StructureComponentToken"),uo=(()=>{class i{innerElementRef;innerClassModifier;constructor(e){this.innerElementRef=e,this.initClassModifier(),this.addHostClass()}addClassToHost(e){this.innerClassModifier.getHost().add(e)}removeClassFromHost(e){this.innerClassModifier.getHost().remove(e)}hasChanged(e){return e!==void 0&&e.currentValue!==void 0}ifChanged(e,n){this.hasChanged(e)&&n()}initClassModifier(){this.innerClassModifier=new zc(this.innerElementRef.nativeElement)}addHostClass(){this.innerClassModifier.getHost().add(this.getSelectorName())}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275dir=N({type:i})}return i})(),qe=(()=>{class i extends uo{detector;viewInDom=!1;unsubscribe$=new Ze;constructor(e,n){super(n),this.detector=e}ngAfterViewInit(){this.viewInDom=!0}ngOnDestroy(){this.unsubscribe()}reRender(){this.isViewInDom()&&this.detector.detectChanges()}isViewInDom(){return this.viewInDom}subscribe(e,n){e.pipe(this.takeUntil()).subscribe(r=>{n(r),this.reRender()})}subscribeWithoutRender(e,n){e.pipe(this.takeUntil()).subscribe(r=>{n(r)})}subscribeAndEmit(e,n,r=o=>o){e.pipe(this.takeUntil()).subscribe(o=>{n.emit(r(o))})}unsubscribe(){this.unsubscribe$.next(),this.unsubscribe$.complete()}takeUntil(){return Mt(this.unsubscribe$)}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275dir=N({type:i,features:[C]})}return i})(),zr=function(i){return i[i.ENTER=0]="ENTER",i[i.SUBMIT=1]="SUBMIT",i[i.CANCEL=2]="CANCEL",i}(zr||{}),ae=class extends Dn{},Ba=class extends ae{fieldConfigs;constructor(t,e){super(t,"InitFieldsCommand"),this.fieldConfigs=e}getFieldConfigs(){return this.fieldConfigs}},me=class extends Zi{},cs=class extends me{fieldConfigs;fields;constructor(t,e,n){super(t,{fieldConfigs:e,fields:n},"FieldsInitedEvent"),this.fieldConfigs=e,this.fields=n}getFields(){return this.fields}},Ha=class{id;constructor(t){this.id=t}getId(){return this.id}},wf=class{column;field;constructor(t,e){this.column=t,this.field=e}getColumn(){return this.column}getField(){return this.field}},Cf=class{structureId;compositionId;columnFieldFactory;columnAutoConfigurator;compositionCommandInvoker;commandDispatcher=y.resolve(ut);domainEventBus=y.resolve(ei);columns;constructor(t,e,n,r,o){this.structureId=t,this.compositionId=e,this.columnFieldFactory=n,this.columnAutoConfigurator=r,this.compositionCommandInvoker=o}handle(t){let e=[];if(t.columns!==void 0&&t.columns.currentValue!==void 0)e=t.columns.currentValue,this.columns=e;else if(this.columns===void 0&&t.source!==void 0&&t.source!==null)e=this.columnAutoConfigurator.configure(t.source.currentValue),this.columns=e;else return;this.compositionCommandInvoker.setGroups(e,this.compositionId);let{columns:n,groups:r}=this.getConfigs(e),o=this.getFieldConfigs(n),s=new Ba(this.structureId,o);this.domainEventBus.ofEvents([cs]).pipe(ye(a=>a.getAggregateId().toString()===this.structureId.toString()),Er(1)).subscribe(a=>{let l=a.getFields(),d=this.convertColumnFieldIds(l),p=this.convertColumns(n,l,d);this.compositionCommandInvoker.setColumns(p,this.compositionId)}),this.commandDispatcher.dispatch(s)}getConfigs(t){let e=[],n=[];for(let r=0;r({field:e.field,type:e.type,matcher:e.matcher,summaries:e.summaries,sorting:e.sorting}))}convertColumnFieldIds(t){return t?t.map(e=>new Ha(e.getId().getId())):[]}convertColumns(t,e,n){return t?t.map((r,o)=>{let s=n[o],a=e[o],l=this.columnFieldFactory.create(s,a.getAccessorMethod(),a.getDataType(),a.getSearchAccessorMethod());return new wf(r,l)}):[]}},Un=class{},If=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new lt(this.getId())}},lt=class extends wr{constructor(t){super(t)}toAggregateId(){return new If(this.getId())}},Li=class extends Fi{},kf=class{after;before;constructor(t,e){this.after=t,this.before=e}},$a=class extends me{beforeItem;afterItem;constructor(t,e,n){super(t,{beforeItem:e,afterItem:n},"StructureSourceItemEditedEvent"),this.beforeItem=e,this.afterItem=n}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},$r=class{domainEventBus=y.resolve(ei);onSourceEdited(t){return this.domainEventBus.ofEvents([$a]).pipe(ye(e=>e.getAggregateId().toString()===t.toString()),P(e=>{let n=e.getAfterItem().getSourceItem(),r=e.getBeforeItem().getSourceItem();return new kf(n,r)}))}},Wn=class extends Fi{},Qt=class{constructor(){}},Ua=class extends me{selectedRows;allSelected;allUnselected;constructor(t,e,n,r){super(t,{selectedRows:e,allSelected:n,allUnselected:r},"SelectedRowChangedEvent"),this.selectedRows=e,this.allSelected=n,this.allUnselected=r}getSelectedRows(){return this.selectedRows}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}},Qn=(()=>{class i extends Fi{sourceWarehouse;domainEventBusTOREMOVE;map=new Map;subject$=new Ze;constructor(e,n){super(),this.sourceWarehouse=e,this.domainEventBusTOREMOVE=n,this.domainEventBusTOREMOVE.ofEvents([Ua]).pipe(Ht(r=>{let o=r.getSelectedRows(),s=r.getAggregateId();return this.sourceWarehouse.onPreparedItems(s).pipe(Er(1),P(a=>{let l=[],d=a.length,p=new Map;for(let w=0;w{this.map.set(r.id.toString(),r.items),this.subject$.next(this.map)})}static services=[Qt,ei];onItemSelected(e){return this.subject$.toObservable().pipe(ye(n=>n.has(e.toString())),P(n=>n.get(e.toString())))}}return i})(),Td=class{enabled=!1;rowEdit=()=>!0;cellEdit=()=>!0;constructor(t){t.enabled!==void 0&&(this.enabled=t.enabled),t.rowEdit!==void 0&&(this.rowEdit=t.rowEdit),t.cellEdit!==void 0&&(this.cellEdit=t.cellEdit)}isEnabled(t,e,n){return this.enabled&&this.rowEdit(t,e,n)&&this.cellEdit(t,e,n)}},cn=class i extends Fe{static default=new Td({enabled:!1});constructor(){super(i.default)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})},Wa=class{convert(t){let e,n,r,o;return t.infoDialog!==void 0&&(e=t.infoDialog),t.columnsManager!==void 0&&(n=t.columnsManager),t.schemaManager!==void 0&&(o=t.schemaManager),t.sourceSize!==void 0&&(r=t.sourceSize),new Dd(t.enabled,e,n,o,r)}},Md=(()=>{class i{structureInfoPanelConfigConverter;structureInfoPanelArchive;constructor(e,n){this.structureInfoPanelConfigConverter=e,this.structureInfoPanelArchive=n}static services=[Wa,$n];set(e){let n=this.structureInfoPanelConfigConverter.convert(e);this.structureInfoPanelArchive.next(n)}static \u0275fac=function(n){return new(n||i)(v(Wa),v($n))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ef=class{fieldId;accessor;searchAccessor;dataType;constructor(t,e,n,r){this.fieldId=t,this.accessor=e,this.dataType=n,this.searchAccessor=r}getId(){return this.fieldId}getValue(t){return this.accessor(t)}getAccessor(){return this.accessor}getSearchAccessor(){return this.searchAccessor}getDataType(){return this.dataType}},Ur=class{create(t,e,n,r){return new Ef(t,e,n,r)}},zi=class extends Fi{constructor(){super()}},Ga=(()=>{class i extends Bt{constructor(){super(!1)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Bi=class extends Fi{constructor(){super()}},yi=class{},ks=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}on(e){return super.on(e).pipe(ye(n=>n))}once(e){return Sr(this.on(e))}}return i})(),BR=(()=>{class i extends qe{changeDetectorRef;columnAutoConfigurator;structureId;compositionId;schemaId;structureCommandInvoker;structurePagingCommandDispatcher;pagingEventRepository;sortingCommandInvoker;searchCommandInvoker;sourceCommandService;sourceEventService;schemaCommandInvoker;compositionCommandDispatcher;compositionEventRepository;formationEventService;structureEditModeArchive;structureCellEditArchive;structureInfoPanelConfigService;structureCellEditStore;columnFieldFactory;formationCommandDispatcher;searchEventRepository;structureHeaderBottomEnabledArchive;schemaEventRepository;translationService;structureInitialValuesReadyArchive;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns;editMode;cellEditing;theme;themeChanged=new W;columnsChanged=new W;containerWidthChanged=new W;sourceEdited=new W;cellEditEntered=new W;cellEditCanceled=new W;cellEditSubmitted=new W;structureColumnInputHandler;changeAfterInit=!1;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y,Ie,pt,Qe,Ui,Ci,Wi,bo,Rh,Ah,e_,t_,i_){super(e,n),this.changeDetectorRef=e,this.columnAutoConfigurator=r,this.structureId=o,this.compositionId=s,this.schemaId=a,this.structureCommandInvoker=l,this.structurePagingCommandDispatcher=d,this.pagingEventRepository=p,this.sortingCommandInvoker=w,this.searchCommandInvoker=E,this.sourceCommandService=Q,this.sourceEventService=ne,this.schemaCommandInvoker=ce,this.compositionCommandDispatcher=O,this.compositionEventRepository=Y,this.formationEventService=Ie,this.structureEditModeArchive=pt,this.structureCellEditArchive=Qe,this.structureInfoPanelConfigService=Ui,this.structureCellEditStore=Ci,this.columnFieldFactory=Wi,this.formationCommandDispatcher=bo,this.searchEventRepository=Rh,this.structureHeaderBottomEnabledArchive=Ah,this.schemaEventRepository=e_,this.translationService=t_,this.structureInitialValuesReadyArchive=i_,this.structureColumnInputHandler=new Cf(o,s,Wi,r,O),this.translationService.setDefaultTranslation()}ngOnChanges(e){Re(e.editMode,()=>{this.structureEditModeArchive.next(this.editMode)}),Re(e.cellEditing,()=>{let n;typeof this.cellEditing=="boolean"?n={enabled:this.cellEditing}:n=this.cellEditing,this.structureCommandInvoker.setCellEdit(n,this.structureId)}),Re(e.width,n=>{this.compositionCommandDispatcher.setWidth(n,this.compositionId)}),Re(e.theme,()=>{this.schemaCommandInvoker.setTheme(this.theme,this.schemaId,this.structureId)}),Re(e.rowHeight,()=>{this.structureCommandInvoker.setRowHeight(this.rowHeight,this.structureId)}),Re(e.autoResizeWidth,()=>{this.compositionCommandDispatcher.setResizeWidth(this.autoResizeWidth,this.compositionId)}),this.structureColumnInputHandler.handle(e),Re(e.maxHeight,()=>{this.structureCommandInvoker.setContainerHeight(this.maxHeight,this.structureId)}),Re(e.source,()=>{this.sourceCommandService.setOrigin(this.source,this.structureId)})}ngOnInit(){this.compositionEventRepository.onColumnsChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(()=>{this.columnsChanged.emit()}),this.compositionEventRepository.onContainerWidthChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(e=>{this.containerWidthChanged.emit(e)}),this.sourceEventService.onSourceEdited(this.structureId).subscribe(e=>{this.sourceEdited.emit(e)}),this.structureCellEditStore.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case zr.ENTER:this.cellEditEntered.emit();break;case zr.SUBMIT:this.cellEditSubmitted.emit();break;case zr.CANCEL:this.cellEditCanceled.emit();break;default:break}}),this.subscribeAndEmit(this.schemaEventRepository.onThemeChanged(this.schemaId),this.themeChanged),this.componentInitialized()}componentInitialized(){this.changeAfterInit=!0}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(Un),c(se),c(et),c(lt),c(Pt),c(Nt),c(Li),c(qt),c(Gt),c(Wt),c($r),c(Ot),c(ci),c(Wn),c(Qn),c(Sd),c(cn),c(Md),c(Ed),c(Ur),c(_t),c(zi),c(Ga),c(Bi),c(yi),c(ks))};static \u0275dir=N({type:i,inputs:{maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",theme:"theme"},outputs:{themeChanged:"themeChanged",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted"},features:[C,G]})}return i})(),Fd=class i{enabled;sort;filter;columnsManager;mainMenu="Menu";filterMenu="Filter";columnsMenu="Columns";constructor(t=!1,e=!0,n=!1,r=!1){this.enabled=t,this.sort=e,this.filter=n,this.columnsManager=r}static default(){return new i}static fromConfig(t){return new i(t.enabled,t.sort,t.filter,t.columnsManager)}isEnabled(){return this.enabled&&(this.sort||this.filter||this.columnsManager)}isMainEnabled(){return this.sort}isSortingEnabled(){return this.sort}isFilteringEnabled(){return this.filter}isColumnManagerEnabled(){return this.columnsManager}getMenus(){let t=[];return this.isMainEnabled()&&t.push(this.getMainMenu()),this.isFilteringEnabled()&&t.push(this.getFilterMenu()),this.isColumnManagerEnabled()&&t.push(this.getColumnMenu()),t}getActiveMenu(){return this.getMenus()[0]}getMainMenu(){return this.mainMenu}getFilterMenu(){return this.filterMenu}getColumnMenu(){return this.columnsMenu}setMainMenu(t){this.mainMenu=t}setFilterMenu(t){this.filterMenu=t}setColumnsMenu(t){this.columnsMenu=t}},qa=(()=>{class i extends Bt{constructor(){super(Fd.default())}nextConfig(e){let n=Fd.fromConfig(e);this.next(n)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),SC=(()=>{class i{closeAll$=new Ze;closeAll(){this.closeAll$.next()}onCloseAll(){return this.closeAll$.toObservable()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),cx=(()=>{class i extends Bt{constructor(){super(!0)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Rd=(()=>{class i extends Bt{constructor(){super({enabled:!1,template:e=>"Detail View"})}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),DC=new K("structureRowDetailViewItem"),TC=new K("structureRowDetailViewTemplate"),MC=(()=>{class i extends uo{subClassConstructor;constructor(e){super(e),this.subClassConstructor=this.constructor,this.hasInputs()&&this.throwError("it cannot have properties annotated with @Inputs().")}hasInputs(){return!this.isEmpty(this.constructor.\u0275cmp.inputs)}throwError(e){throw new Error(`Component "${this.subClassConstructor.name}" is a DynamicallyCreatedComponent, ${e}.`)}isEmpty(e){for(let n in e)if(e.hasOwnProperty(n))return!1;return!0}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275dir=N({type:i,features:[C]})}return i})(),HR=(()=>{class i extends MC{item;template;sanitizer;selectedRowValue;safeHTML;constructor(e,n,r,o){super(e),this.item=n,this.template=r,this.sanitizer=o,this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.template(this.item.getItem(),this.item.getIndex())),this.selectedRowValue=this.item.getItem()}getSelectorName(){return"gui-row-detail"}static \u0275fac=function(n){return new(n||i)(c(x),c(DC),c(TC),c(In))};static \u0275cmp=I({type:i,selectors:[["div","gui-row-detail",""]],features:[C],attrs:QT,decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(n,r){n&1&&b(0,"div",0),n&2&&m("innerHTML",r.safeHTML,sr)},encapsulation:2,changeDetection:0})}return i})(),fC=(()=>{class i extends vt{injector;structureId;structureDetailViewConfigArchive;formationEventService;drawerService;enabled=!1;config;elementRef;constructor(e,n,r,o,s){super(),this.injector=e,this.structureId=n,this.structureDetailViewConfigArchive=r,this.formationEventService=o,this.drawerService=s}init(e){this.elementRef=e,this.structureDetailViewConfigArchive.on().pipe(this.hermesTakeUntil()).subscribe(n=>{this.config=n,n.enabled===!0?this.turnOn():n.enabled===!1&&this.turnOff()}),this.formationEventService.onItemSelected(this.structureId).pipe(this.hermesTakeUntil()).subscribe(n=>{if(!this.enabled||(this.drawerService.close(),n.length===0))return;let r=n[0],o=ve.create({parent:this.injector,providers:[{provide:DC,useValue:r},{provide:TC,useValue:this.config.template}]});this.drawerService.open({appendToElement:this.elementRef,component:HR,injector:o})})}turnOn(){this.enabled=!0}turnOff(){this.enabled=!1}static \u0275fac=function(n){return new(n||i)(v(ve),v(se),v(Rd),v(Qn),v(fd))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),wd=function(i){return i[i.TOP=0]="TOP",i[i.BOTTOM=1]="BOTTOM",i}(wd||{}),Nr=function(i){return i.SELECTED="selected",i.PAGING_TOP_CLASS_NAME="gui-paging-top",i.PAGING_BOTTOM_CLASS_NAME="gui-paging-bottom",i}(Nr||{}),tt=(()=>{class i{state={};state$=new Tt;destroy$=new Tt;ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setValue(e){this.state=Object.assign({},this.state,e),this.state$.next(this.state)}getValue(e){return e!==void 0?this.state[e]:this.state}select(e){let n=this.state$;return e!==void 0&&(n=this.state$.pipe(P(r=>r[e]))),n.pipe(ti())}connect(e,n){typeof e=="string"?n.pipe(Mt(this.destroy$)).subscribe(r=>{this.setPartialState(e,r)}):e.pipe(Mt(this.destroy$)).subscribe(r=>{this.setValue(r)})}setPartialState(e,n){let r={};r[e]=n,this.state=Object.assign({},this.state,r),this.state$.next(this.state)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ad=class{unsubscribe$=new Ze;constructor(){}takeUntil(){return Mt(this.unsubscribe$)}unsubscribe(){this.unsubscribe$.isCompleted||(this.unsubscribe$.next(),this.unsubscribe$.complete())}},dt=(()=>{class i{streamCloser=new Ad;hermesUnsubscribe$=new Ze;constructor(){}ngOnDestroy(){this.streamCloser.unsubscribe(),this.hermesUnsubscribe()}isDefined(e,n){return n[e]!==void 0&&n[e].currentValue!==void 0}subscribeAndEmit(e,n){e.pipe(this.hermesTakeUntil()).subscribe(r=>{n.emit(r)})}unsubscribe(){this.streamCloser.unsubscribe()}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Mt(this.hermesUnsubscribe$)}takeUntil(){return this.streamCloser.takeUntil()}static \u0275fac=function(n){return new(n||i)};static \u0275dir=N({type:i})}return i})(),FC=(()=>{class i extends uo{changeDetectorRef;constructor(e,n){super(e),this.changeDetectorRef=n}ngOnInit(){this.changeDetectorRef.detach()}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275dir=N({type:i,features:[C]})}return i})(),Es=(()=>{class i extends FC{constructor(e,n){super(e,n),this.addClassToHost("gui-icon")}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275dir=N({type:i,features:[C]})}return i})(),gt=(()=>{class i extends uo{subClassConstructor;subClassNgOnInit;constructor(e){super(e),this.subClassConstructor=this.constructor,this.subClassNgOnInit=this.ngOnInit,this.hasConstructorOnlyElementRefInjected(arguments)||this.throwError("it should not inject services"),this.subClassNgOnInit&&this.throwError("it should not use ngOnInit")}hasConstructorOnlyElementRefInjected(e){return arguments.length>1?!1:arguments.length===1?this.isElementRef(arguments[0]):!1}isElementRef(e){return e.nativeElement!==null}throwError(e){throw new Error(`Component "${this.subClassConstructor.name}" is a PureComponent, ${e}.`)}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275dir=N({type:i,features:[C]})}return i})();var Wr=class{classModifier=new zc;select(t){this.classModifier.getElement(t).add(Nr.SELECTED)}unselect(t){this.classModifier.getElement(t).remove(Nr.SELECTED)}add(t,e){this.classModifier.getElement(t).add(e)}remove(t,e){this.classModifier.getElement(t).remove(e)}toggle(t){}},ln=class{constructor(){}},uh=(()=>{class i extends Bt{constructor(){super(an.BASIC)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Gn=class{destroy$=new Tt(1);subscription;subscribe(t,e){this.subscription!==void 0&&this.subscription.unsubscribe(),this.subscription=t.pipe(ti(),Mt(this.destroy$)).subscribe(n=>e(n),n=>this.onError(n),()=>this.onComplete())}destroy(){this.destroy$.next(),this.destroy$.complete()}onError(t){}onComplete(){}},Sf=class{cd;vcr;template;constructor(t,e,n){this.cd=t,this.vcr=e,this.template=n}onNext(t){this.vcr.clear(),this.vcr.createEmbeddedView(this.template,{$implicit:t}),this.cd.detectChanges()}},It=(()=>{class i{subscriber;cd;vcr;template;guiLet;guiLetViewChanger;constructor(e,n,r,o){this.subscriber=e,this.cd=n,this.vcr=r,this.template=o,this.guiLetViewChanger=new Sf(this.cd,this.vcr,this.template)}ngOnChanges(e){e.guiLet!==void 0&&this.subscriber.subscribe(this.guiLet,n=>{this.guiLetViewChanger.onNext(n)})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(n){return new(n||i)(c(Gn),c(B),c(Ei),c(Pe))};static \u0275dir=N({type:i,selectors:[["","guiLet",""]],inputs:{guiLet:"guiLet"},features:[ge([Gn]),G]})}return i})(),Kt=(()=>{class i{changeDetectorRef;translationService;actualTranslationValue="";subscription;constructor(e,n){this.changeDetectorRef=e,this.translationService=n}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}transform(e){return this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translationService.onTranslation().subscribe(n=>{let r=n[e];r||(this.actualTranslationValue=e),this.actualTranslationValue=r,this.changeDetectorRef.markForCheck()}),this.actualTranslationValue}static \u0275fac=function(n){return new(n||i)(c(B,16),c(yi,16))};static \u0275pipe=As({name:"guiTranslate",type:i,pure:!1})}return i})(),$R=(()=>{class i extends gt{paging;sourceSize;nextPageChanged=new W;prevPageChanged=new W;prevDisabled=!1;nextDisabled=!1;constructor(e){super(e)}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}getSelectorName(){return"gui-paging-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-navigator","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[C,G],attrs:KT,decls:7,vars:8,consts:[["gui-button","",1,"gui-paging-navigator-prev","gui-mr-5",3,"click","disabled"],["gui-button","",1,"gui-paging-navigator-next","gui-mr-0",3,"click","disabled"]],template:function(n,r){n&1&&(h(0,"gui-button-group")(1,"button",0),F("click",function(){return r.prevPage()}),S(2),J(3,"guiTranslate"),g(),h(4,"button",1),F("click",function(){return r.nextPage()}),S(5),J(6,"guiTranslate"),g()()),n&2&&(u(),m("disabled",r.prevDisabled),u(),oe(" ",ie(3,4,"pagingPrevPage")," "),u(2),m("disabled",r.nextDisabled),u(),oe(" ",ie(6,6,"pagingNextPage")," "))},dependencies:[on,nC,Kt],encapsulation:2,changeDetection:0})}return i})(),UR=(()=>{class i extends gt{paging;pageSizeChanged=new W;selectPageSizes;selectPageSize;constructor(e){super(e)}ngOnChanges(e){Re(e.paging,()=>{this.paging&&(this.selectPageSizes=this.getSelectPageSizes(),this.selectPageSize=this.getSelectPageSize(this.paging.getPageSize()))})}changePageSize(e){this.pageSizeChanged.emit(+e.value)}getSelectorName(){return"gui-paging-select"}getSelectPageSizes(){let e=[];return this.paging.getPageSizes().forEach(r=>{let o=this.getSelectPageSize(r);e.push(o)}),e}getSelectPageSize(e){return{name:e.toString(),value:e.toString()}}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-select","","paging",""]],inputs:{paging:"paging"},outputs:{pageSizeChanged:"pageSizeChanged"},features:[C,G],attrs:ZT,decls:4,vars:6,consts:[[1,"gui-inline-block","gui-mr-5"],[3,"optionChanged","options","selected","width"]],template:function(n,r){n&1&&(h(0,"span",0),S(1),J(2,"guiTranslate"),g(),h(3,"gui-select",1),F("optionChanged",function(s){return r.changePageSize(s)}),g()),n&2&&(u(),oe(" ",ie(2,4,"pagingItemsPerPage"),` +`),u(2),m("options",r.selectPageSizes)("selected",r.selectPageSize)("width",25))},dependencies:[vd,Kt],encapsulation:2,changeDetection:0})}return i})(),WR=(()=>{class i extends gt{paging;sourceSize;firstItemIndex;lastItemIndex;constructor(e){super(e),this.addClassToHost("gui-mx-6")}ngOnChanges(){this.calculate()}calculate(){this.paging&&(this.firstItemIndex=this.paging.getStart(),this.lastItemIndex=this.paging.getEnd(),this.sourceSize=this.paging.getSourceSize())}isSourceNotEmpty(){return this.sourceSize>0}getSelectorName(){return"gui-paging-stats"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-stats","","paging",""]],inputs:{paging:"paging"},features:[C,G],attrs:XT,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[1,"gui-paging-source-stats"],[1,"gui-paging-source-size"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(n,r){if(n&1&&D(0,JT,12,6,"ng-container",1)(1,eM,3,3,"ng-template",null,0,Ee),n&2){let o=Qi(2);m("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[je,Kt],encapsulation:2,changeDetection:0})}return i})(),GR=(()=>{class i extends gt{structureId;pagingCommandInvoker;paging;sourceSize;nextPageChanged=new W;prevPageChanged=new W;prevDisabled=!1;nextDisabled=!1;constructor(e,n,r){super(e),this.structureId=n,this.pagingCommandInvoker=r}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}firstPage(){this.pagingCommandInvoker.goToPage(1,this.paging.getPage(),this.structureId)}lastPage(){let e=Math.ceil(this.sourceSize/this.paging.getPageSize());this.pagingCommandInvoker.goToPage(e,this.paging.getPage(),this.structureId)}getSelectorName(){return"gui-paging-alternative-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(Nt))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-alternative-navigator","","paging","","sourceSize",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[C,G],attrs:tM,ngContentSelectors:iM,decls:17,vars:4,consts:[["gui-button","",3,"click","disabled"],["height","10.661","viewBox","0 0 11.081 10.661","width","11.081","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-522.98 669.601) rotate(180)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-533.75 659.25)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-528.75 659.25)"],["gui-button","",1,"gui-paging-navigator-prev",3,"click","disabled"],["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(5.77 10.351) rotate(180)"],["gui-button","",1,"gui-paging-navigator-next",3,"click","disabled"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"],["transform","translate(534.061 -658.939)"]],template:function(n,r){n&1&&(Ne(),h(0,"button",0),F("click",function(){return r.firstPage()}),Ke(),h(1,"svg",1)(2,"g",2),b(3,"path",3)(4,"path",4),g()()(),xn(),h(5,"button",5),F("click",function(){return r.prevPage()}),Ke(),h(6,"svg",6),b(7,"path",7),g()(),be(8),xn(),h(9,"button",8),F("click",function(){return r.nextPage()}),Ke(),h(10,"svg",6),b(11,"path",9),g()(),xn(),h(12,"button",0),F("click",function(){return r.lastPage()}),Ke(),h(13,"svg",1)(14,"g",10),b(15,"path",3)(16,"path",4),g()()()),n&2&&(m("disabled",r.prevDisabled),u(5),m("disabled",r.prevDisabled),u(4),m("disabled",r.nextDisabled),u(3),m("disabled",r.nextDisabled))},dependencies:[on],encapsulation:2,changeDetection:0})}return i})(),qR=(()=>{class i extends gt{structureId;pagingCommandService;paging;sourceSize=0;currentPage;pages;numberOfVisiblePages=3;constructor(e,n,r){super(e),this.structureId=n,this.pagingCommandService=r}ngOnChanges(e){this.calculate()}calculate(){if(this.paging&&this.sourceSize){let e=Math.ceil(this.sourceSize/this.paging.getPageSize());if(this.currentPage=this.paging.getPage(),this.pages=[],this.pages.length<=e)for(let n=1;n<=e;n++)this.pages.push(n)}}isSourceNotEmpty(){return this.sourceSize>0}goToPage(e){let n=this.paging.getPage();this.pagingCommandService.goToPage(e,n,this.structureId)}calculateVisiblePages(e){return this.paging.calculateVisiblePages(this.currentPage,this.numberOfVisiblePages,e)}activePage(e){return this.currentPage===e}getSelectorName(){return"gui-paging-alternative-pages"}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(Nt))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging-alternative-pages","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},features:[C,G],attrs:nM,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[1,"relative"],[1,"gui-paging-page","gui-select-none","gui-cursor-pointer","gui-py-0","gui-px-6","gui-font-base",3,"click"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(n,r){if(n&1&&D(0,oM,2,1,"ng-container",1)(1,sM,3,3,"ng-template",null,0,Ee),n&2){let o=Qi(2);m("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[rt,je,Kt],encapsulation:2,changeDetection:0})}return i})(),YR=(()=>{class i extends uo{elRef;cssClassModifier;structureId;pagingWarehouse;pagingCommandInvoker;sourceWarehouse;pagingDisplayModeArchive;position;minimal;state=_(tt);state$=this.state.select();constructor(e,n,r,o,s,a,l){super(e),this.elRef=e,this.cssClassModifier=n,this.structureId=r,this.pagingWarehouse=o,this.pagingCommandInvoker=s,this.sourceWarehouse=a,this.pagingDisplayModeArchive=l,this.addClassToHost("gui-flex"),this.addClassToHost("gui-justify-end"),this.addClassToHost("gui-items-center"),this.addClassToHost("gui-p-4"),this.state.setValue({alternativeDisplay:!1,isPagingVisible:!1}),this.state.connect("sourceSize",this.sourceWarehouse.onOriginSize(this.structureId)),this.state.connect("alternativeDisplay",this.selectIsAdvancedPagingEnabled()),this.state.connect("paging",this.pagingWarehouse.onPaging(this.structureId)),this.state.connect("isPagingVisible",this.selectIsPagingVisible())}ngOnChanges(e){e.position&&(this.position===wd.BOTTOM?(this.cssClassModifier.remove(this.elRef.nativeElement,Nr.PAGING_TOP_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Nr.PAGING_BOTTOM_CLASS_NAME)):(this.cssClassModifier.remove(this.elRef.nativeElement,Nr.PAGING_BOTTOM_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Nr.PAGING_TOP_CLASS_NAME)))}changePageSize(e){this.pagingCommandInvoker.changePageSize(e,this.structureId)}nextPage(e){e&&this.pagingCommandInvoker.nextPage(this.structureId)}prevPage(){this.pagingCommandInvoker.prevPage(this.structureId)}getSelectorName(){return"gui-paging"}selectIsPagingVisible(){return this.pagingWarehouse.onPaging(this.structureId).pipe(P(e=>this.mapIsPagingVisible(e)))}mapIsPagingVisible(e){return e&&e.isEnabled()&&(this.position===wd.TOP&&e.isPagerTop()||this.position===wd.BOTTOM&&e.isPagerBottom())}selectIsAdvancedPagingEnabled(){return this.pagingDisplayModeArchive.on().pipe(P(e=>e===an.ADVANCED))}static \u0275fac=function(n){return new(n||i)(c(x),c(Wr),c(se),c(ln),c(Nt),c(Qt),c(uh))};static \u0275cmp=I({type:i,selectors:[["div","gui-paging","","position",""]],inputs:{position:"position",minimal:"minimal"},features:[ge([tt]),C,G],attrs:aM,decls:1,vars:1,consts:[["minimalTemplate",""],[4,"guiLet"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["gui-paging-select","",3,"pageSizeChanged","paging"],["gui-paging-stats","",3,"paging"],["gui-paging-navigator","",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-navigator","",1,"gui-flex","gui-p-0",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-pages","",1,"gui-flex","gui-justify-center",3,"paging","sourceSize"]],template:function(n,r){n&1&&D(0,mM,3,2,"ng-container",1),n&2&&m("guiLet",r.state$)},dependencies:[je,It,$R,UR,WR,GR,qR],styles:[`.gui-paging-alternative-navigator .gui-button{-ms-flex-line-pack:center;align-content:center;background:transparent;display:-ms-flexbox;display:flex;font-size:14px;line-height:21px;margin:0 2px;padding:0}.gui-paging-alternative-navigator .gui-button svg{-ms-flex-item-align:center;align-self:center;height:12px;margin:-1px 2px 0;width:auto}.gui-paging-alternative-navigator .gui-button svg path{stroke:#ccc;transition:stroke .3s ease-in-out}.gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-paging-alternative-navigator .gui-button:hover svg path{stroke:#333}.gui-paging-alternative-navigator .gui-button:disabled svg{opacity:.4}.gui-paging-alternative-navigator .gui-material .gui-button{padding:2px 16px}.gui-paging-alternative-pages{line-height:21px}.gui-paging-alternative-pages .gui-paging-page{display:none}.gui-paging-alternative-pages .gui-paging-visible-page .gui-paging-page{display:block;font-family:Arial,serif}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page{color:#333}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page .gui-paging-page{font-weight:700}.gui-paging-bottom{border-top:1px solid;border-top-color:inherit}.gui-paging-top{border-bottom:1px solid;border-bottom-color:inherit} +`,`.gui-generic .gui-paging,.gui-generic .gui-paging *{border-color:#2224261a;font-size:14px} +`],encapsulation:2,changeDetection:0})}return i})(),qn=class{},ls=class extends me{constructor(t){super(t,null,"PageChangedEvent")}},Le=class extends br{},Df=class extends Le{constructor(t){super(t,"PageChangedAggregateEvent")}toDomainEvent(){return new ls(this.getAggregateId())}},ds=class extends me{constructor(t){super(t,null,"PagesizeChangedEvent")}},Tf=class extends Le{constructor(t){super(t,"PagesizeChangedAggregateEvent")}toDomainEvent(){return new ds(this.getAggregateId())}},Od=class i{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;sourceSize;events=[];logger;constructor(t,e,n,r,o,s,a,l){this.enabled=t,this.page=e,this.pageSize=n,this.pageSizes=r,this.pagerTop=o,this.pagerBottom=s,this.sourceSize=a,this.logger=l}static default(t){return new i(!1,1,25,[10,25,50,100],!1,!0,0,t)}static fromConfig(t,e){let n=i.default(e),r=t.enabled||n.isEnabled(),o=t.page||n.getPage(),s=t.pageSize||n.getPageSize(),a=t.pageSizes||n.getPageSizes(),l=t.pagerTop||n.isPagerTop(),d=t.pagerBottom||n.isPagerBottom();return new i(r,o,s,a,l,d,0,e)}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.isDisabled()?!1:this.pagerTop}isPagerBottom(){return this.isDisabled()?!1:this.pagerBottom}getSourceSize(){return this.sourceSize}change(t){t.enabled!==void 0&&(this.enabled=t.enabled),t.page!==void 0&&(this.page=t.page,t.enabled===void 0&&(this.enabled=!0)),t.pageSize!==void 0&&(this.pageSize=t.pageSize,t.enabled===void 0&&(this.enabled=!0)),t.pageSizes!==void 0&&(this.pageSizes=t.pageSizes,t.enabled===void 0&&(this.enabled=!0)),t.pagerTop!==void 0&&(this.pagerTop=t.pagerTop,t.enabled===void 0&&(this.enabled=!0)),t.pagerBottom!==void 0&&(this.pagerBottom=t.pagerBottom,t.enabled===void 0&&(this.enabled=!0)),this.enabled===!0&&t.pagerTop===!1&&t.pagerBottom===!1&&(this.pagerBottom=!0,this.logger.warn("Pagers cannot be turn off when paging is enabled."))}setSourceSize(t){this.sourceSize=t}nextPage(){let t=this.page;this.isNextPageDisabled()||(t+=1),this.page=t}prevPage(){let t=this.page;this.isPrevPageDisabled()||(t-=1),this.page=t}changePageSize(t){return this.pageSizes.find(e=>e===t)&&(this.setPage(1),this.setPageSize(t)),this.events}isNextPageDisabled(){return this.sourceSize===0?!0:this.page===Math.ceil(this.sourceSize/this.pageSize)}isPrevPageDisabled(){return this.page===1}calculateStart(){let t=1+(this.page-1)*this.pageSize;return this.sourceSize{class i{logger;constructor(e){this.logger=e}static services=[qn];createDefault(){return Od.default(this.logger)}createFromConfig(e){return Od.fromConfig(e,this.logger)}}return i})(),Pd=class extends ae{config;constructor(t,e){super(t,"SetPagingCommand"),this.config=e}getPagingConfig(){return this.config}},Nd=class extends ae{pageSize;constructor(t,e){super(t,"ChangePagesizeCommand"),this.pageSize=e}getPageSize(){return this.pageSize}},jd=class extends ae{constructor(t){super(t,"NextPageCommand")}},Vd=class extends ae{constructor(t){super(t,"PrevPageCommand")}},AC=(()=>{class i{commandDispatcher;constructor(e){this.commandDispatcher=e}static services=[ut];setPaging(e,n){this.commandDispatcher.dispatch(new Pd(n,e))}changePageSize(e,n){this.commandDispatcher.dispatch(new Nd(n,e))}nextPage(e){this.commandDispatcher.dispatch(new jd(e))}prevPage(e){this.commandDispatcher.dispatch(new Vd(e))}}return i})(),Ya=class extends me{constructor(t){super(t,null,"PagingSetEvent")}},Mf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Pd}handle(t,e){let n=e.getPagingConfig();t.changePaging(n)}publish(t,e){this.domainEventPublisher.publish(new Ya(e.getAggregateId()))}},Qa=class extends me{constructor(t){super(t,null,"NextPageEvent")}},Ff=class{domainEventPublisher=y.resolve(_e);forCommand(){return jd}handle(t,e){t.nextPage()}publish(t,e){this.domainEventPublisher.publish(new Qa(e.getAggregateId()))}},Ka=class extends me{constructor(t){super(t,null,"PrevPageEvent")}},Rf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Vd}handle(t,e){t.prevPage()}publish(t,e){this.domainEventPublisher.publish(new Ka(e.getAggregateId()))}},Af=class{domainEventPublisher=y.resolve(_e);forCommand(){return Nd}handle(t,e){let n=e.getPageSize();t.changePageSize(n)}publish(t,e){let n=t.getEvents();n.forEach(r=>{r.aggregateId=t.getId()}),this.publishAggregateEvents(n,e),t.clearEvents()}publishAggregateEvents(t,e){for(let n of t)this.publishAggregateEvent(n,e)}publishAggregateEvent(t,e){switch(t.getType()){case"PageChangedAggregateEvent":let n=new ls(e.getAggregateId());this.domainEventPublisher.publish(n);break;case"PagesizeChangedAggregateEvent":let r=new ds(e.getAggregateId());this.domainEventPublisher.publish(r);break;case"StructurePreparedEntitiesSetAggregateEvent":this.domainEventPublisher.publish(t.toDomainEvent());break;default:break}}},li="StructureAggregate",Of=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(AC),t.provide(RC)}registerCommandHandlers(){return[Mf,Ff,Rf,Af]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},QR=(()=>{let i=class{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;isNextDisabled;isPrevDisabled;start;end;sourceSize;constructor(e,n,r,o,s,a,l,d,p,w,E){this.enabled=e,this.page=n,this.pageSize=r,this.pageSizes=o,this.pagerTop=s,this.pagerBottom=a,this.isNextDisabled=l,this.isPrevDisabled=d,this.start=p,this.end=w,this.sourceSize=E}isEnabled(){return this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.pagerTop}isPagerBottom(){return this.pagerBottom}isNextPageDisabled(){return this.isNextDisabled}isPrevPageDisabled(){return this.isPrevDisabled}getStart(){return this.start}getEnd(){return this.end}getSourceSize(){return this.sourceSize}calculateVisiblePages(e,n,r){return e-n{try{this.subs(t)}catch(e){console.error(e)}})}},OC=(()=>{class i{structureRepository;constructor(e){this.structureRepository=e}static services=[Gr];on(e){return this.structureRepository.on(e).pipe(ye(n=>n.getId().toString()===e.toString()),P(n=>n.getPaging()))}}return i})(),KR=(()=>{class i extends ln{pagingRepository;constructor(e){super(),this.pagingRepository=e}static services=[OC];onPaging(e){return this.pagingRepository.on(e)}oncePaging(e){return Sr(this.pagingRepository.on(e))}}return i})(),ZR=(()=>{class i extends Nt{pagingDispatcher;constructor(e){super(),this.pagingDispatcher=e}static services=[AC];enable(e){this.pagingDispatcher.setPaging({enabled:!0},e)}disable(e){this.pagingDispatcher.setPaging({enabled:!1},e)}setPaging(e,n){this.pagingDispatcher.setPaging(e,n)}changePageSize(e,n){this.pagingDispatcher.changePageSize(e,n)}nextPage(e){this.pagingDispatcher.nextPage(e)}prevPage(e){this.pagingDispatcher.prevPage(e)}goToPage(e,n,r){if(n{class i extends Li{pagingWarehouse;eventBusToRemove=y.resolve(ei);constructor(e){super(),this.pagingWarehouse=e}static services=[ln];onPageChange(e){return this.eventBusToRemove.ofEvents([Ka,Qa,ls]).pipe(ye(n=>n.getAggregateId().toString()===e.toAggregateId().toString()),Ht(n=>this.pagingWarehouse.oncePaging(e.toAggregateId()).pipe(P(r=>r.getPage()))))}onPageSizeChange(e){return this.eventBusToRemove.ofEvents([ds]).pipe(ye(n=>n.getAggregateId().toString()===e.toAggregateId().toString()),Ht(n=>this.pagingWarehouse.oncePaging(e.toAggregateId()).pipe(P(r=>r.getPageSize()))))}}return i})(),Pf=class{registerProviders(t){t.provide(Nt,ZR),t.provide(ln,KR),t.provide(Li,XR),t.provide(OC),t.provide(Ld)}};function JR(){new wt(new Pf,new Of).init()}var Nf=class{translation=new Map;resolver=(t,e)=>e;changeTranslation(t){for(let e of Object.keys(t))this.translation.set(e,t[e])}getTranslation(){return Array.from(this.translation).reduce((t,[e,n])=>Object.assign(t,{[e]:this.resolver(e,n)}),{})}setResolver(t){this.resolver=t}},jf=class extends yi{defaultTranslation=RR;dictionary=new Nf;dictionary$=new Tt(1);constructor(){super()}getTranslation(){return this.dictionary.getTranslation()}onTranslation(){return this.dictionary$.toObservable()}setDefaultTranslation(){this.changeTranslationAndPropagate(this.defaultTranslation)}changeTranslation(t){this.changeTranslationAndPropagate(t)}setResolver(t){this.setResolverAndPropagate(t)}changeTranslationAndPropagate(t){this.dictionary.changeTranslation(t),this.dictionary$.next(this.dictionary.getTranslation())}setResolverAndPropagate(t){this.dictionary.setResolver(t),this.dictionary$.next(this.dictionary.getTranslation())}},mn=(()=>{class i extends st{static forComponent(){return[{provide:yi,useClass:jf}]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})(),Vf=class{cd;value;actualObs$;baseValues$=new Ze;destroy$=new Tt(1);constructor(t){this.cd=t,this.baseValues$.pipe(ye(e=>e!==this.actualObs$),Ht(e=>(this.actualObs$=e,e)),ti(),Mt(this.destroy$)).subscribe(e=>{this.value=e,this.scheduleCD()})}destroy(){this.destroy$.next(),this.destroy$.complete()}subscribe(t){return this.baseValues$.next(t),this.value}scheduleCD(){setTimeout(()=>{this.cd.detectChanges()})}},Ss=(()=>{class i{cd=_(B);subscriber=new Vf(this.cd);transform(e){return this.subscriber.subscribe(e)}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(n){return new(n||i)};static \u0275pipe=As({name:"guiPush",type:i,pure:!1})}return i})(),lx=(()=>{class i{subscriber;vcr;template;guiIf;constructor(e,n,r){this.subscriber=e,this.vcr=n,this.template=r}ngOnChanges(e){e.guiIf!==void 0&&this.subscriber.subscribe(this.guiIf,n=>{n?this.vcr.createEmbeddedView(this.template):this.vcr.clear()})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(n){return new(n||i)(c(Gn),c(Ei),c(Pe))};static \u0275dir=N({type:i,selectors:[["","guiIf",""]],inputs:{guiIf:"guiIf"},features:[ge([Gn]),G]})}return i})();var eA=(()=>{class i{subscriber;elementRef;static STYLE="style";guiStyle;constructor(e,n){this.subscriber=e,this.elementRef=n}ngOnChanges(e){e.guiStyle!==void 0&&this.subscriber.subscribe(this.guiStyle,n=>{Object.keys(n).forEach(r=>{this.setStyleByName(r,n[r])})})}ngOnDestroy(){this.subscriber.destroy()}setStyleByName(e,n){this.set(e,n)}set(e,n){this.elementRef.nativeElement[i.STYLE][e]=n}static \u0275fac=function(n){return new(n||i)(c(Gn),c(x))};static \u0275dir=N({type:i,selectors:[["","guiStyle",""]],inputs:{guiStyle:"guiStyle"},features:[ge([Gn]),G]})}return i})();var mi=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();JR();function tA(){return y.resolve(Nt)}function iA(){return y.resolve(ln)}function nA(){return y.resolve(Li)}var mh=(()=>{class i extends st{static forComponent(){return[uh]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Nt,useFactory:tA},{provide:ln,useFactory:iA},{provide:Li,useFactory:nA}],imports:[q,Nn,mn,mi]})}return i})(),Za=(()=>{class i extends Bt{static titlePanelConfig={enabled:!1,template:"Title Panel"};constructor(){super(V({},i.titlePanelConfig))}}return i})(),Xa=(()=>{class i extends Bt{static footerPanelConfig={enabled:!1,template:"Footer Panel"};constructor(){super(V({},i.footerPanelConfig))}}return i})(),rA="Filter container token",Cd=function(i){return i.WIDTH="width",i.HEIGHT="height",i.PADDING_TOP="padding-top",i}(Cd||{}),xd="style",hh=(()=>{class i extends za{constructor(e){super(e)}createModifier(e){return new i.StyleModifier(e)}static StyleModifier=class{htmlElement;constructor(e){this.htmlElement=e}setStyleByName(e,n){this.set(e,n)}setWidth(e){this.set(Cd.WIDTH,this.toPx(e))}setHeight(e){this.set(Cd.HEIGHT,this.toPx(e))}setPaddingTop(e){this.set(Cd.PADDING_TOP,this.toPx(e))}remove(e){this.htmlElement[xd][e]=""}removeStyleByName(e){this.htmlElement[xd][e]=""}clear(){this.htmlElement.removeAttribute(xd)}set(e,n){this.htmlElement[xd][e]=n}toPx(e){return e>0?`${e}px`:`${e}`}}}return i})(),qr=class{constructor(){}},mo=(()=>{class i{structureRepository;structureCellEditArchive;constructor(e,n){this.structureRepository=e,this.structureCellEditArchive=n}static services=[Gr,cn];on(e){return this.structureRepository.on(e)}onEditManager(e){return this.structureCellEditArchive.on(e)}}return i})(),Hi=class{constructor(){}},oA="Structure -",Lf=new K(`${oA} - css className`),Yr=class{constructor(){}},zf=class{distinctTooltip;averageTooltip;minTooltip;maxTooltip;medTooltip;countTooltip;constructor(t,e,n,r,o,s){this.distinctTooltip=t,this.averageTooltip=e,this.minTooltip=n,this.maxTooltip=r,this.medTooltip=o,this.countTooltip=s}},ct=function(i){return i[i.ASC=0]="ASC",i[i.DESC=1]="DESC",i[i.NONE=2]="NONE",i}(ct||{}),zd=class{header;dataType;context;width;fieldId;columnDefinitionId;sortStatus;enabled;cssClasses;styles;sortable;align;constructor(t,e,n,r,o,s,a,l,d,p,w,E){this.header=t,this.dataType=e,this.context=n,this.width=r,this.fieldId=o,this.columnDefinitionId=s,this.sortStatus=a,this.enabled=l,this.cssClasses=d,this.styles=p,this.sortable=w,this.align=E}getHeader(){return this.header}getDataType(){return this.dataType}getColumnDefinitionId(){return this.columnDefinitionId}getFieldId(){return this.fieldId}getSortStatus(){return this.sortStatus}getCssClasses(){return this.cssClasses}getStyles(){return this.styles}isSortEnabled(){return this.sortable}isAscSort(){return this.sortStatus===ct.ASC}isDescSort(){return this.sortStatus===ct.DESC}isNoSort(){return this.sortStatus===ct.NONE}isEnabled(){return this.enabled}isAlignLeft(){return this.align===$e.LEFT}isAlignCenter(){return this.align===$e.CENTER}isAlignRight(){return this.align===$e.RIGHT}getAlign(){return this.align}},Bd=class extends zd{viewTemplate;editTemplate;constructor(t=null,e=null,n){super(n.getHeader(),n.getDataType(),n.context,n.width,n.getFieldId(),n.getColumnDefinitionId(),n.getSortStatus(),n.isEnabled(),n.getCssClasses(),n.getStyles(),n.isSortEnabled(),n.getAlign()),this.viewTemplate=t,this.editTemplate=e}},Hd=function(i){return i[i.TEXT=0]="TEXT",i[i.HTML=1]="HTML",i}(Hd||{}),Bn=class i{value;type;constructor(t,e){this.value=t,this.type=e}static text(t){return new i(t,Hd.TEXT)}static HTML(t){return new i(t,Hd.HTML)}},$d=class{columnConfig;columnDefinitionId;name;editable;templateFun;formatterFun;accessor;searchAccessor;width;columnFieldId;align;cellEditingEnabled;type;view;constructor(t,e,n,r,o,s,a,l,d,p,w,E,Q,ne){this.columnConfig=t,this.columnDefinitionId=e,this.name=n,this.editable=r,this.templateFun=o,this.formatterFun=s,this.accessor=a,this.searchAccessor=l,this.width=d,this.columnFieldId=p,this.align=w,this.cellEditingEnabled=E,this.type=Q,this.view=ne}getDataType(){return this.type}getCellView(){return this.view.getCellView()}getColumnConfig(){return this.columnConfig}isCellEditingEnabled(){return this.cellEditingEnabled}isBooleanDataType(){return this.type===$.BOOLEAN}isAlignLeft(){return this.align===$e.LEFT}isAlignCenter(){return this.align===$e.CENTER}isAlignRight(){return this.align===$e.RIGHT}getAlign(){return this.align}getType(){return this.type}getView(){return this.view}getName(){return this.name}getValue(t,e){let n=this.findValue(t,e);return n.value=this.templateFun(n.value,t.getSourceItem()),this.formatterFun&&(n.value=this.formatterFun(n.value,t.getSourceItem())),n}getClasses(){return"gui-cell-highlighted"}findValue(t,e){let n=this.accessor(t);if(this.type!==$.STRING||this.view&&this.view.getCellView()===j.FUNCTION)return Bn.text(n);if(e){let r=""+this.searchAccessor(t),o=r.toLocaleLowerCase(),s=e.toLocaleLowerCase(),a=[],l=0;for(;l=0?(a.push(p),l=p+e.length):l=s.length}let d=r.split("");return a.forEach(p=>{for(let w=0;w${d[p+w]}`:E=d[p+w],w===e.length-1&&(E+=""),d[p+w]=E}}),r=d.join(""),Bn.HTML(r)}else return Bn.text(n)}},Bf=class extends $d{template;editTemplate;constructor(t=null,e=null,n){super(n.getColumnConfig(),n.columnDefinitionId,n.getName(),n.editable,n.templateFun,n.formatterFun,n.accessor,n.searchAccessor,n.width,n.columnFieldId,n.getAlign(),n.isCellEditingEnabled(),n.getType(),n.getView()),this.template=t,this.editTemplate=e}},jn={CompositionResizeWidthSetAggregateEvent:"CompositionResizeWidthSetAggregateEvent",ColumnsSetAggregateEvent:"ColumnsSetAggregateEvent",CompositionContainerWidthSetAggregateEvent:"CompositionContainerWidthSetAggregateEvent",CompositionWidthSetAggregateEvent:"CompositionWidthSetAggregateEvent",CompositionColumnSetEnabledAggregateEvent:"CompositionColumnSetEnabledAggregateEvent",CompositionColumnMovedLeftAggregateEvent:"CompositionColumnMovedLeftAggregateEvent",CompositionColumnMovedRightAggregateEvent:"CompositionColumnMovedRightAggregateEvent",GroupsSetAggregateEvent:"GroupsSetAggregateEvent"},di=class extends Zi{},Qr=class extends di{constructor(t){super(t,null,"CompositionResizeWidthSetEvent")}},us=class extends di{constructor(t){super(t,null,"CompositionColumnsSetEvent")}},ms=class extends di{constructor(t,e){super(t,e,"CompositionContainerWidthSetEvent")}},hs=class extends di{constructor(t){super(t,null,"CompositionWidthSetEvent")}},Ja=class extends di{constructor(t){super(t,null,"CompositionColumnSetEnabledEvent")}},ec=class extends di{constructor(t){super(t,null,"CompositionColumnMovedLeftEvent")}},tc=class extends di{constructor(t){super(t,null,"CompositionColumnMovedRightEvent")}},Hf=class extends di{constructor(t){super(t,null,"CompositionGroupsSetEvent")}},dn=class{convert(t){return Array.isArray(t)?this.convertEvents(t):this.convertEvent(t)}convertEvents(t){return t.map(e=>this.convertEvent(e))}convertEvent(t){switch(t.getType()){case jn.CompositionResizeWidthSetAggregateEvent:return new Qr(t.getAggregateId());case jn.ColumnsSetAggregateEvent:return new us(t.getAggregateId());case jn.CompositionContainerWidthSetAggregateEvent:let e=t.containerWidth;return new ms(t.getAggregateId(),e);case jn.CompositionWidthSetAggregateEvent:return new hs(t.getAggregateId());case jn.CompositionColumnSetEnabledAggregateEvent:return new Ja(t.getAggregateId());case jn.CompositionColumnMovedLeftAggregateEvent:return new ec(t.getAggregateId());case jn.CompositionColumnMovedRightAggregateEvent:return new tc(t.getAggregateId());case jn.GroupsSetAggregateEvent:return new Hf(t.getAggregateId());default:return new Qr(t.getAggregateId())}}},ui=class extends Dn{},Ud=class extends ui{compositionId;columns;constructor(t,e){super(t,"SetColumnsCommand"),this.compositionId=t,this.columns=e}getParams(){return this.columns}},sA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Ud}handle(e,n){let r=n.getParams();e.setColumns(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return i})(),Wd=class extends ui{structureId;width;constructor(t,e){super(t,"SetCompositionWidthCommand"),this.structureId=t,this.width=e}getWidth(){return this.width}},$f=class{domainEventPublisher=y.resolve(_e);forCommand(){return Wd}handle(t,e){let n=e.getWidth();t.setWidth(n)}publish(t,e){this.domainEventPublisher.publish(new hs(e.getAggregateId()))}},Gd=class extends ui{structureId;enabled;constructor(t,e){super(t,"SetCompositionResizeWidthCommand"),this.structureId=t,this.enabled=e}getEnabled(){return this.enabled}},Uf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Gd}handle(t,e){let n=e.getEnabled();t.setResizeWidth(n)}publish(t,e){this.domainEventPublisher.publish(new Qr(e.getAggregateId()))}},qd=class extends ui{structureId;width;constructor(t,e){super(t,"SetCompositionContainerWidthCommand"),this.structureId=t,this.width=e}getWidth(){return this.width}},aA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return qd}handle(e,n){let r=n.getWidth();e.setContainerWidth(r)}publish(e,n){this.publishAggregateEvents(e.getEvents())}publishAggregateEvents(e){let n=this.compositionEventConverter.convert(e);this.domainEventPublisher.publish(n)}}return i})(),Yd=class extends ui{compositionId;columnId;enabled;constructor(t,e,n){super(t,"CompositionSetColumnEnabledCommand"),this.compositionId=t,this.columnId=e,this.enabled=n}getColumnId(){return this.columnId}isEnabled(){return this.enabled}},cA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Yd}handle(e,n){let r=n.getColumnId(),o=n.isEnabled();e.enableColumn(r,o)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return i})(),Qd=class extends ui{compositionId;sortParams;constructor(t,e){super(t,"CompositionChangeSortStatusCommand"),this.compositionId=t,this.sortParams=e}getCompositionId(){return this.compositionId}getSortParams(){return this.sortParams}},ic=class extends di{activeColumns;constructor(t,e){super(t,e,"CompositionChangeSortStatusEvent"),this.activeColumns=e}getCompositionId(){return this.getAggregateId()}getActiveColumns(){return this.activeColumns}},Wf=class{domainEventPublisher=y.resolve(_e);forCommand(){return Qd}handle(t,e){let n=e.getSortParams();t.changeSort(n)}publish(t,e){let n=e.getAggregateId(),r=t.getActiveColumns();this.domainEventPublisher.publish(new ic(n,r))}},Kd=class extends ui{compositionId;columnId;constructor(t,e){super(t,"CompositionMoveLeftColumnCommand"),this.compositionId=t,this.columnId=e}getColumnId(){return this.columnId}},lA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Kd}handle(e,n){let r=n.getColumnId();e.moveLeft(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return i})(),Zd=class extends ui{columnId;constructor(t,e){super(t,"CompositionMoveRightColumnCommand"),this.columnId=e}getColumnId(){return this.columnId}},dA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Zd}handle(e,n){let r=n.getColumnId();e.moveRight(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return i})(),nc=class extends me{compositionId;directions;constructor(t,e,n){super(t,{compositionId:e,directions:n},"SortToggledEvent"),this.compositionId=e,this.directions=n}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},Xd=class extends ui{compositionId;constructor(t){super(t,"CreateCompositionCommand"),this.compositionId=t}},Jd=class extends ui{compositionId;configs;constructor(t,e){super(t,"SetGroupsCommand"),this.compositionId=t,this.configs=e}getConfigs(){return this.configs}},rc=class{commandDispatcher=y.resolve(ut);create(t){this.commandDispatcher.dispatch(new Xd(t))}setColumns(t,e){this.commandDispatcher.dispatch(new Ud(t,e))}setGroups(t,e){this.commandDispatcher.dispatch(new Jd(t,e))}setWidth(t,e){this.commandDispatcher.dispatch(new Wd(t,e))}setContainerWidth(t,e){this.commandDispatcher.dispatch(new qd(t,e))}setResizeWidth(t,e){this.commandDispatcher.dispatch(new Gd(t,e))}changeSort(t,e){this.commandDispatcher.dispatch(new Qd(t,e))}setColumnEnabled(t,e,n){this.commandDispatcher.dispatch(new Yd(t,e,n))}moveLeft(t,e){this.commandDispatcher.dispatch(new Kd(t,e))}moveRight(t,e){this.commandDispatcher.dispatch(new Zd(t,e))}},eu=class{fieldId;direction;constructor(t,e){this.fieldId=t,this.direction=e}},oc=class extends me{compositionId;directions;constructor(t,e,n){super(t,{compositionId:e,directions:n},"SortOrderSetEvent"),this.compositionId=e,this.directions=n}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},uA=(()=>{class i{compositionDispatcher;constructor(e){this.compositionDispatcher=e}static services=[rc];forEvents(){return[nc,oc]}handle(e){if(e.ofMessageType("SortToggledEvent")){let n=e.getCompositionId(),o=e.getDirections().map(s=>{let a=new Ha(s.fieldId.getId());return new eu(a,s.direction)});this.compositionDispatcher.changeSort(n,o)}if(e.ofMessageType("SortOrderSetEvent")){let n=e.getCompositionId(),o=e.getDirections().map(s=>{let a=new Ha(s.fieldId.getId());return new eu(a,s.direction)});this.compositionDispatcher.changeSort(n,o)}}}return i})(),sc=class i{view;templateFunction=(t,e)=>t;constructor(t){typeof t=="function"?(this.view=j.FUNCTION,this.templateFunction=t):this.view=t}static fromDataType(t){return t===$.DATE?new i(j.DATE):new i(j.TEXT)}getCellView(){return this.view}getTemplateFunction(){return this.templateFunction}},Gf=class extends Cr{columnField;header;width;columnConfig;view;align;presentation;constructor(t,e,n,r,o,s,a,l){super(t),this.columnField=e,this.columnConfig=n,this.presentation=r,this.view=sc.fromDataType(e.getDataType()),o&&(this.header=o),a&&(this.view=a),l&&(this.width=l),this.setInitialAlign(e,s)}getPresentation(){return this.presentation}getColumnConfig(){return this.columnConfig}getField(){return this.columnField}getHeader(){return this.header}getDataType(){return this.columnField.getDataType()}getCellView(){return this.view.getCellView()}getTemplateFunction(){return this.view.getTemplateFunction()}getFormatterFunction(){return this.columnConfig.formatter}setView(t){this.view=t}setHeader(t){this.header=t}getView(){return this.view}getAlign(){return this.align}setWidth(t){this.width=t}getWidth(){return this.width}isSortingEnabled(){let t=this.columnConfig;return t.sorting!==void 0&&t.sorting!==null?t.sorting.enabled===void 0||t.sorting.enabled===null?!0:t.sorting.enabled:!0}isCellEditingEnabled(){let t=this.columnConfig;return t.cellEditing!==void 0&&t.cellEditing!==null?t.cellEditing.enabled===void 0||t.cellEditing.enabled===null?!0:t.cellEditing.enabled:!0}setInitialAlign(t,e){e!=null?this.align=e:t.getDataType()===$.NUMBER?this.align=$e.RIGHT:this.align=$e.LEFT}},ac=class extends Gf{sortable;sortStatus=ct.NONE;enabled=!0;constructor(t,e,n,r,o,s,a,l,d){super(t,e,n,o,s,a,l,d),this.enabled=r,l===void 0&&(this.view=new sc(this.presentation.getDefaultView())),a===void 0&&(this.align=this.presentation.getDefaultAlign(this.view))}isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}getSortStatus(){return this.sortStatus}setSortStatus(t){this.sortStatus=t}},gs=class extends Xi{constructor(t){super(t)}toString(){return this.getId()}},Kr=class{},mA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT,j.BAR,j.PERCENTAGE_BAR,j.PERCENTAGE]}getDefaultView(){return j.NUMBER}getDefaultAlign(e){return $e.RIGHT}}return i})(),hA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT,j.ITALIC,j.CHIP,j.BOLD,j.CHECKBOX]}getDefaultView(){return j.TEXT}getDefaultAlign(e){return e.getCellView()===j.CHECKBOX?$e.CENTER:$e.LEFT}}return i})(),gA=(()=>{class i extends Kr{static getInstance(){return i.instance||(i.instance=new i),i.instance}static instance=null;constructor(){super()}getPossibleViews(){return[j.DATE,j.TEXT,j.ITALIC,j.BOLD,j.CHIP]}getDefaultView(){return j.DATE}getDefaultAlign(){return $e.LEFT}}return i})(),pA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT,j.ITALIC,j.BOLD,j.IMAGE,j.LINK,j.CHIP]}getDefaultView(){return j.TEXT}getDefaultAlign(){return $e.LEFT}}return i})(),fA=(()=>{class i extends Kr{static instance=null;constructor(){super()}static getInstance(){return i.instance||(i.instance=new i),i.instance}getPossibleViews(){return[j.TEXT]}getDefaultView(){return j.TEXT}getDefaultAlign(){return $e.LEFT}}return i})(),tu=class{convert(t){return t===$.NUMBER?mA.getInstance():t===$.BOOLEAN?hA.getInstance():t===$.DATE?gA.getInstance():t===$.STRING?pA.getInstance():fA.getInstance()}},PC=(()=>{class i{columnPresentationConverter;constructor(e){this.columnPresentationConverter=e}static services=[tu];create(e){return Array.isArray(e)?this.createColumns(e):this.createColumn(e)}createColumn(e){let n=e.getColumn(),r=e.getField(),o=r.getDataType(),s=this.convertWidth(n.width)||void 0,a,l;n.view!==void 0&&(a=new sc(n.view)),n.enabled!==void 0?l=n.enabled:l=!0;let d=this.getPresentation(o),p=new ac(new gs(Tn.generate()),r,n,l,d,void 0,n.align,a,s);return n.header!==void 0&&p.setHeader(n.header),p}createColumns(e){let n=[];return e.forEach(r=>{n.push(this.createColumn(r))}),n}convertWidth(e){return+e}getPresentation(e){return this.columnPresentationConverter.convert(e)}}return i})(),iu=class{id;header;width;constructor(t,e,n){this.id=t,this.header=e,this.width=n}},nu=class extends _r{constructor(t){super(t)}toString(){return this.getId()}},ru=class{create(t){return new iu(new nu(Tn.generate()),t.header,t.width)}},bA=(()=>{class i{compositionEventConverter;domainEventPublisher=y.resolve(_e);constructor(e){this.compositionEventConverter=e}static services=[dn];forCommand(){return Jd}handle(e,n){let r=n.getConfigs();e.setGroups(r)}publish(e,n){this.publishEvents(e,n)}publishEvents(e,n){let r=e.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return i})(),ou=class{enabled=!0;highlightedColumns=new Set;isHighlighted(t){return this.highlightedColumns.has(t.toString())}toggle(t){this.highlightedColumns.has(t.toString())?this.highlightedColumns.delete(t.toString()):this.highlightedColumns.add(t.toString())}remove(t){this.highlightedColumns.delete(t.toString())}},cc=class extends Fe{constructor(){super(new ou)}toggle(t,e){this.find(t).ifPresent(n=>{n.toggle(e),this.next(t,n)})}equals(t,e){return!1}createDefaultValue(t){return new ou}},ps=class extends kr{},NC=(()=>{class i extends Ir{constructor(e){super(e)}static services=[ps]}return i})(),su=class extends vr{},bC=(()=>{class i extends su{inMemoryCompositionAggregateStore;constructor(e){super(),this.inMemoryCompositionAggregateStore=e}static services=[NC];findById(e){return this.inMemoryCompositionAggregateStore.findById(e)}save(e){this.inMemoryCompositionAggregateStore.save(e)}}return i})(),au=class{element;constructor(t){this.element=t}},cu=class extends ql{columnConfig;name;type;view;align;cssClasses;styles;width;templateFunction;formatterFunction;columnDefinitionId;field;header;sortStatus;sortable=!0;enabled;cellEditingEnabled;constructor(t,e,n,r,o,s,a,l,d,p,w,E,Q=ct.NONE,ne=!0){super(e),this.columnConfig=n,this.name=r,this.type=s,this.view=a,this.align=l,this.cssClasses=w,this.styles=E,this.field=t,this.columnDefinitionId=e,this.enabled=o,this.header=d,this.cellEditingEnabled=p,this.sortStatus=Q,this.sortable=ne}getName(){return this.name}isEnabled(){return this.enabled}setHeader(t){this.header=t}setField(t){this.field=t}setTemplateFunction(t){this.templateFunction=t}setFormatterFunction(t){this.formatterFunction=t}toHeaderCellTemplateWithContext(t){let e=this.header||"",n;typeof e=="string"?n=new au(Bn.text(e)):typeof e=="function"&&(n=new au(Bn.text(e(t))));let r=new Lr(this.field.getId().getId());return new zd(e,this.type,n,this.width,r,this.columnDefinitionId,this.sortStatus,this.enabled,this.cssClasses,this.styles,this.sortable,this.align)}toContentCellTemplateWithAccessor(){let t=n=>this.field.getAccessor()(n),e=n=>this.field.getSearchAccessor()(n);return new $d(this.columnConfig,this.columnDefinitionId,this.name,!0,this.templateFunction,this.formatterFunction,t,e,this.width,this.field.getId(),this.align,this.cellEditingEnabled,this.type,this.view)}},lu=class extends Yl{constructor(t){super(t)}},du=class{create(t){return t instanceof ac?this.createFromColumnEntity(t):this.createFromActiveColumnEntity(t)}createColumns(t){return t.map(e=>this.create(e))}createFromColumnEntity(t){let e=new cu(t.getField(),new lu(t.getId().toString()),t.getColumnConfig(),t.getColumnConfig().name,t.isEnabled(),t.getDataType(),t.getView(),t.getAlign(),t.getHeader(),t.isCellEditingEnabled(),t.getColumnConfig().cssClasses,t.getColumnConfig().styles,t.getSortStatus(),t.isSortingEnabled());return e.setTemplateFunction(t.getTemplateFunction()),e.setFormatterFunction(t.getFormatterFunction()),e.width=+t.getWidth(),e}createFromActiveColumnEntity(t){let e=new cu(t.getField(),new lu(t.getId().toString()),t.getColumnConfig(),t.getColumnConfig().name,!0,t.getDataType(),t.getView(),t.getAlign(),t.getHeader(),t.isCellEditingEnabled(),t.getColumnConfig().cssClasses,t.getColumnConfig().styles,t.getSortStatus(),t.isSortingEnabled());return e.setTemplateFunction(t.getTemplateFunction()),e.setFormatterFunction(t.getFormatterFunction()),e.width=+t.getWidth(),e}},qf=class extends va{ready;allColumns;activeColumns;width;resizeWidth;constructor(t,e,n,r,o,s){super(t),this.ready=e,this.allColumns=n,this.activeColumns=r,this.width=o,this.resizeWidth=s}getActiveColumns(){return this.activeColumns}getAllColumns(){return this.allColumns}getActiveHeaderColumns(){return this.getActiveColumns().map((t,e)=>t.toHeaderCellTemplateWithContext(e))}getHeaderColumns(){return this.getAllColumns().map((t,e)=>t.toHeaderCellTemplateWithContext(e))}getTemplateColumns(){return this.getActiveColumns().map(t=>t.toContentCellTemplateWithAccessor())}getWidth(){return this.width}getContainerWidth(){return+this.width-2}isReady(){return this.ready}isResizeWidthEnabled(){return this.resizeWidth}equals(t){return this.width===t.width&&this.resizeWidth===t.resizeWidth&&this.equalsByColumns(t.allColumns)}equalsByColumns(t){return this.allColumns.length===t.length}},jC=(()=>{class i{columnDefinitionFactory;constructor(e){this.columnDefinitionFactory=e}static services=[du];convert(e){let n=e.isReady(),r=e.getColumns(),o=e.getActiveColumns(),s=this.convertToColumnDef(r),a=this.convertActiveColumnsToColumnDef(o),l=e.getWidth(),d=e.isResizeEnabled(),p=e.getId();return new qf(p.toReadModelRootId(),n,s,a,l,d)}convertToColumnDef(e){let n=[];return e.forEach(r=>{let o=this.columnDefinitionFactory.create(r);n.push(o)}),n}convertActiveColumnsToColumnDef(e){let n=[];return e.forEach(r=>{let o=this.columnDefinitionFactory.create(r);n.push(o)}),n}}return i})(),dx=(()=>{class i extends xa{inMemoryCompositionStore;compositionConverter;constructor(e,n){super(e),this.inMemoryCompositionStore=e,this.compositionConverter=n}static services=[ps,jC];toReadModel(e){return this.compositionConverter.convert(e)}}return i})(),fs=class extends Ql{constructor(){super()}},uu=class extends di{constructor(t){super(t,null,"CompositionCreatedEvent")}},VC=(()=>{class i extends fs{inMemoryCompositionReadStore;compositionIdToComposition=new Map;composition$=new Tt(1);constructor(e){super(),this.inMemoryCompositionReadStore=e}static services=[dx];on(e){return this.composition$.toObservable().pipe(ye(n=>{let r=e.getId();return n.has(r)}),P(n=>n.get(e.getId())))}find(e){let n=e.getId();return Xe.of(this.compositionIdToComposition.get(n))}forEvents(){return[uu,Qr,us,ms,hs,Ja,ec,tc,ic]}subscribe(e){let n=e.getAggregateId();this.inMemoryCompositionReadStore.getById(n).ifPresent(o=>{let s=o.getId().toString();this.compositionIdToComposition.set(s,o),this.composition$.next(this.compositionIdToComposition)})}}return i})(),Yf=class{forCommand(){return Xd}},lc=class{MIN_COLUMN_WIDTH;constructor(t){this.MIN_COLUMN_WIDTH=t}calculateMinWidth(t){let{staticColumns:e,fluidColumns:n}=this.segregateColumns(t),r=0;return e.forEach(o=>{r+=o.getWidth()}),r+=n.length*this.MIN_COLUMN_WIDTH,r}segregateColumns(t){let e=t.filter(r=>r.isTypeNumber()&&r.getWidth()>this.MIN_COLUMN_WIDTH),n=t.filter(r=>r.isTypeAuto()||r.isTypePercentage()||r.isTypeNumber()&&r.getWidth()<=this.MIN_COLUMN_WIDTH);return{staticColumns:e,fluidColumns:n}}},wi=class extends br{},Qf=class extends wi{constructor(t){super(t,"CompositionWidthSetAggregateEvent")}toDomainEvent(){return new hs(this.getAggregateId())}},Kf=class extends wi{containerWidth;constructor(t,e){super(t,"CompositionContainerWidthSetAggregateEvent"),this.containerWidth=e}toDomainEvent(){return new ms(this.getAggregateId(),this.containerWidth)}},Zf=class extends wi{constructor(t){super(t,"CompositionResizeWidthSetAggregateEvent")}toDomainEvent(){return new Qr(this.getAggregateId())}},Xf=class extends wi{activeColumns;constructor(t,e){super(t,"CompositionColumnSetEnabledAggregateEvent"),this.activeColumns=e}toDomainEvent(){return new Ja(this.getAggregateId())}getActiveColumns(){return this.activeColumns}},ji=function(i){return i[i.PERCENTAGE=0]="PERCENTAGE",i[i.NUMBER=1]="NUMBER",i[i.AUTO=2]="AUTO",i}(ji||{}),os=class i{template;baseWidth;width;constructor(t){this.baseWidth=t,this.setWidthAndType(t)}getWidth(){return this.width}getColumnType(){return this.template}isTypePercentage(){return this.template===ji.PERCENTAGE}isTypeAuto(){return this.template===ji.AUTO}isTypeNumber(){return this.template===ji.NUMBER}setWidth(t){this.width=t}setWidthAndType(t){t==null||t==="auto"?(this.template=ji.AUTO,this.setWidth(null)):this.isPercentage(t)?(this.template=ji.PERCENTAGE,this.setWidth(this.percentageToNumber(""+t))):this.isStringNumber(t)?(this.template=ji.NUMBER,this.setWidth(+t)):(this.template=ji.NUMBER,this.setWidth(+t))}clone(){return new i(this.baseWidth)}isPercentage(t){return typeof t=="string"&&t[t.length-1]==="%"}percentageToNumber(t){return+t.slice(0,-1)}isStringNumber(t){let e=+t;return Number.isNaN(e)}},Jf=class{source;width;MIN_COLUMN_WIDTH;columns;constructor(t,e,n){this.source=t,this.width=e,this.MIN_COLUMN_WIDTH=n,this.columns=this.source.map(r=>r.clone())}calculate(){let t=this.width,e=Array.from(this.columns);this.adjustMinimalWidth(e);let n=[];if(e.forEach((r,o)=>{r.isTypeNumber()?t-=r.getWidth():n.push(r)}),e=n,e.length!==0){let r=t/e.length;e.forEach((o,s)=>{o.setWidth(r)})}return this.columns}adjustMinimalWidth(t){t.forEach(e=>{e.isTypeNumber()&&e.getWidth()e.isTypePercentage());for(let e of this.columns)e.getColumnType()===ji.PERCENTAGE&&e.setWidth(this.width*e.getWidth()*.01)}adjustAutoWidth(){let t=this.width,e=[];for(let n=0;n0){let n=t/e.length;for(let r of e)r.setWidth(n)}}},mu=class{MIN_COLUMN_WIDTH;baseColumnWidths;columnWidths;width;constructor(t,e=[],n=100){this.MIN_COLUMN_WIDTH=t,this.baseColumnWidths=e.map(r=>new os(r.width)),this.columnWidths=e.map(r=>new os(r.width)),this.setContainerWidth(n),this.calculate()}getColumnWidths(){return this.baseColumnWidths}getColumnsWidth(){return this.width}getWidths(){return this.columnWidths.map(t=>t.getWidth())}getMinWidth(){return new lc(this.MIN_COLUMN_WIDTH).calculateMinWidth(this.columnWidths)}setWidth(t){this.setContainerWidth(t),this.calculate()}setColumns(t){this.baseColumnWidths=t.map(e=>new os(e.width)),this.columnWidths=t.map(e=>new os(e.width)),this.calculate()}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}calculate(){if(this.baseColumnWidths&&this.width){let t=new Jf(this.baseColumnWidths,this.width,this.MIN_COLUMN_WIDTH);this.columnWidths=t.calculate()}}setContainerWidth(t){this.getMinWidth()>t?this.width=this.getMinWidth():this.width=t,this.calculate()}},eb=class extends wi{activeColumns;constructor(t,e){super(t,"CompositionChangeSortStatusAggregateEvent"),this.activeColumns=e}toDomainEvent(){return new ic(this.getAggregateId(),this.activeColumns)}},tb=class{compositionId;MIN_COLUMN_WIDTH=50;columns;columnWidthCollection=new mu(this.MIN_COLUMN_WIDTH);constructor(t,e=[],n,r){this.compositionId=t,this.columns=e,n&&r&&(this.columnWidthCollection=new mu(this.MIN_COLUMN_WIDTH,r,n))}getColumnWidths(){return this.columnWidthCollection.getColumnWidths()}getColumns(){return this.columns}setWidth(t){this.columnWidthCollection.setWidth(t)}addColumn(t,e){this.columns.splice(e,0,t)}removeColumn(t){this.columns.splice(t,1)}setColumns(t,e){this.columns=t,this.columnWidthCollection.setColumns(e);let n=this.columnWidthCollection.getWidths();this.columns.forEach((r,o)=>{r.setWidth(n[o])})}changeSort(t){this.columns.forEach(e=>{e.setSortStatus(ct.NONE)});for(let e of t){let n=e.fieldId,r=e.direction,o=r?ct.ASC:ct.DESC,s=this.columns.filter(a=>a.getField().getId().getId()===n.getId());s.length>0&&s.forEach(a=>{a.setSortStatus(o)})}return new eb(this.getCompositionId(),this.columns)}moveLeft(t){let e=this.findColumnIndex(t);this.move(e,e-1)}moveRight(t){let e=this.findColumnIndex(t);this.move(e,e+1)}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}move(t,e){if(!this.validateMoveIndex(t)||!this.validateMoveIndex(e))return;let n=this.columns[t];this.columns[t]=this.columns[e],this.columns[e]=n}validateMoveIndex(t){return t>=0}getCompositionId(){return this.compositionId}findColumnIndex(t){return this.columns.findIndex(e=>e.getId().equals(t))}},ib=class i extends ac{constructor(t,e,n,r,o,s,a){super(t,e,s,!0,a,n,r,o,void 0)}static fromEntity(t){return new i(t.getId(),t.getField(),t.getHeader(),t.getAlign(),t.getView(),t.getColumnConfig(),t.getPresentation())}},nb=class{convertMany(t){return t.map(e=>this.convert(e))}convert(t){return ib.fromEntity(t)}},rb=class extends wi{constructor(t){super(t,"CompositionColumnMovedLeftAggregateEvent")}toDomainEvent(){return new ec(this.getAggregateId())}},ob=class extends wi{constructor(t){super(t,"CompositionColumnMovedRightAggregateEvent")}toDomainEvent(){return new tc(this.getAggregateId())}},sb=class extends wi{constructor(t){super(t,"ColumnsSetAggregateEvent")}toDomainEvent(){return new us(this.getAggregateId())}},ab=class extends wi{constructor(t){super(t,"SchemaCreatedEvent")}toDomainEvent(){return new uu(this.getAggregateId())}},vA=new iu(new nu("-1"),"",100),cb=class extends xr{allColumns=[];baseColumns;baseParams;width;containerInDOMWidth;resizeWidthEnabled=!0;columnFactory;groupFactory;activeColumnContainer;activeColumnEntityConverter=new nb;groups=new Bo;columnNameToGroupId=new Map;constructor(t,e,n,r=[],o,s){super(t,"CompositionAggregate");let a=r.map(d=>d.getColumn());this.baseParams=r,this.baseColumns=a,this.columnFactory=e,this.groupFactory=n,this.width=o,this.allColumns=this.columnFactory.create(r);let l=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer=new tb(this.getId(),l,o,a),s!=null&&(this.resizeWidthEnabled=s)}createEvent(){return ab}getColumns(){return this.allColumns}getActiveColumns(){return this.activeColumnContainer.getColumns()}getWidth(){return this.resizeWidthEnabled?this.containerInDOMWidth:this.width}isResizeEnabled(){return this.resizeWidthEnabled}isReady(){return!!this.getWidth()&&this.getActiveColumns().length>0}setGroups(t){for(let e=0;e{this.columnNameToGroupId.set(o.header,r.id)})}else this.columnNameToGroupId.set(n.header,vA.id)}}setColumns(t){this.allColumns=this.columnFactory.create(t);let e=t.map(r=>r.getColumn()),n=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(n,e),this.addEvent(new sb(this.getId()))}setContainerWidth(t){this.setContainerWidthWithEvent(t),this.recalculateColumns()}setWidth(t){this.setWidthWithEvent(t),this.setResizeWidthWithEvent(!1),this.recalculateColumns()}setResizeWidth(t){this.setResizeWidthWithEvent(t)}changeSort(t){this.addEvent(this.activeColumnContainer.changeSort(t))}enableColumn(t,e){let n=-1;if(this.allColumns.forEach((r,o)=>{if(r.getId().getId()===t.getId()){let s=r.isEnabled();r.setEnabled(e),s!==e&&(n=o)}}),n>0)if(e){let r=this.activeColumnEntityConverter.convert(this.allColumns[n]);this.activeColumnContainer.addColumn(r,n)}else this.activeColumnContainer.removeColumn(n);this.recalculateColumns(),this.addEvent(new Xf(this.getId(),this.getActiveColumns()))}moveLeft(t){let e=this.findColumnIndex(t),n,r=-1;for(let o=e-1;o>=0;o-=1){let s=this.allColumns[o];if(s.isEnabled()){n=s,r=o;break}}if(n&&r>=0&&e>=0){let o=this.allColumns[e];this.allColumns[e]=n,this.allColumns[r]=o}this.activeColumnContainer.moveLeft(t),this.addEvent(new rb(this.getId()))}moveRight(t){let e=this.findColumnIndex(t),n,r=-1;for(let o=e+1;o=0&&e>=0){let o=this.allColumns[e];this.allColumns[e]=n,this.allColumns[r]=o}this.activeColumnContainer.moveRight(t),this.addEvent(new ob(this.getId()))}recalculateColumns(){let t=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(t,t.map(e=>e.getColumnConfig()))}setWidthWithEvent(t){let n=new lc(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());n>t?this.width=n:this.width=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Qf(this.getId()))}setContainerWidthWithEvent(t){let n=new lc(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());n>t?this.containerInDOMWidth=n:this.containerInDOMWidth=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Kf(this.getId(),t))}setResizeWidthWithEvent(t){this.resizeWidthEnabled=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Zf(this.getId()))}getEnabledColumns(){return this.allColumns.filter(t=>t.isEnabled())}findColumnIndex(t){return this.allColumns.findIndex(e=>e.getId().equals(t))}getMinColumnWidth(){return this.activeColumnContainer.getMinColumnWidth()}},xA=(()=>{class i extends fr{columnFactory;groupFactory;constructor(e,n){super(),this.columnFactory=e,this.groupFactory=n}static services=[PC,ru];create(e){return new cb(e,this.columnFactory,this.groupFactory)}}return i})(),vC="CompositionAggregate",lb=class{defineAggregate(){return{aggregateKey:vC,createCommandHandler:Yf,factory:xA,repository:bC}}registerKey(){return vC}registerProviders(t){t.provide(NC),t.provide(su,bC),t.provide(rc),t.provide(PC),t.provide(tu),t.provide(dn),t.provide(Ur),t.provide(ru),t.provide(cc),t.provide(ps),t.provide(dx),t.provide(fs,VC)}registerCommandHandlers(){return[sA,$f,Uf,aA,cA,Wf,lA,dA,bA]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[uA]}},_A=(()=>{class i extends gt{sanitizer;element;safeHTML;constructor(e,n){super(n),this.sanitizer=e,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-function-view"}static \u0275fac=function(n){return new(n||i)(c(In),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-function-view"]],inputs:{element:"element"},features:[C,G],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(n,r){n&1&&b(0,"div",0),n&2&&m("innerHTML",r.safeHTML,sr)},encapsulation:2,changeDetection:0})}return i})(),LC=(()=>{class i extends gt{value;constructor(e){super(e)}getSelectorName(){return"gui-percentage-view"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["gui-percentage-view","value",""]],inputs:{value:"value"},features:[C],attrs:sx,decls:1,vars:1,template:function(n,r){n&1&&S(0),n&2&&oe(" ",r.value," % ")},encapsulation:2,changeDetection:0})}return i})(),yA=(()=>{class i extends gt{value;showPercentage=!1;width;constructor(e){super(e)}ngOnChanges(e){Re(e.value,()=>{this.width=this.value>100?100:this.value})}getSelectorName(){return"gui-bar-view"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["gui-bar-view","value",""]],inputs:{value:"value",showPercentage:"showPercentage"},features:[C,G],attrs:sx,decls:3,vars:3,consts:[[1,"gui-percentage-bar"],[1,"gui-percentage"],[3,"value",4,"ngIf"],[3,"value"]],template:function(n,r){n&1&&(h(0,"div",0),b(1,"div",1),D(2,hM,1,1,"gui-percentage-view",2),g()),n&2&&(u(),Ae("width",r.width,"%"),u(),m("ngIf",r.showPercentage))},dependencies:[je,LC],encapsulation:2,changeDetection:0})}return i})(),ux=(()=>{class i{sanitizer;constructor(e){this.sanitizer=e}transform(e,n){switch(n){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error(`Invalid safe type specified: ${n}`)}}static \u0275fac=function(n){return new(n||i)(c(In,16))};static \u0275pipe=As({name:"guiSafe",type:i,pure:!0})}return i})(),wA=(()=>{class i extends gt{value;isHtml=!1;constructor(e,n,r){super(r),e!==null&&this.addClassToHost("gui-bold"),n!==null&&this.addClassToHost("gui-italic")}ngOnChanges(){this.isHtml=this.value.type===Hd.HTML}getSelectorName(){return"gui-text-view"}static \u0275fac=function(n){return new(n||i)(rr("bold"),rr("italic"),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-view-text","value",""]],inputs:{value:"value"},features:[C,G],attrs:sx,decls:3,vars:2,consts:[["text",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"]],template:function(n,r){if(n&1&&D(0,gM,3,4,"ng-container",1)(1,pM,2,1,"ng-template",null,0,Ee),n&2){let o=Qi(2);m("ngIf",r.isHtml)("ngIfElse",o)}},dependencies:[je,ux],encapsulation:2,changeDetection:0})}return i})(),CA=(()=>{class i extends gt{sanitizer;element;safeHTML;constructor(e,n){super(n),this.sanitizer=e,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-html-view"}static \u0275fac=function(n){return new(n||i)(c(In),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-html-view"]],inputs:{element:"element"},features:[C,G],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(n,r){n&1&&b(0,"div",0),n&2&&m("innerHTML",r.safeHTML,sr)},encapsulation:2,changeDetection:0})}return i})(),IA=(()=>{class i{textTemplate;numberTemplate;chipTemplate;linkTemplate;imageTemplate;checkboxTemplate;boldTemplate;italicTemplate;customTemplate;functionTemplate;htmlTemplate;dateTemplate;barTemplate;percentageBarTemplate;percentageTemplate;getTemplate(e){switch(e){case j.TEXT:return this.textTemplate;case j.NUMBER:return this.numberTemplate;case j.CHIP:return this.chipTemplate;case j.LINK:return this.linkTemplate;case j.IMAGE:return this.imageTemplate;case j.CHECKBOX:return this.checkboxTemplate;case j.BOLD:return this.boldTemplate;case j.ITALIC:return this.italicTemplate;case j.CUSTOM:return this.customTemplate;case j.FUNCTION:return this.functionTemplate;case j.HTML:return this.htmlTemplate;case j.DATE:return this.dateTemplate;case j.BAR:return this.barTemplate;case j.PERCENTAGE_BAR:return this.percentageBarTemplate;case j.PERCENTAGE:return this.percentageTemplate;default:return this.textTemplate}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&(X(fM,7,Pe),X(wC,7,Pe),X(bM,7,Pe),X(vM,7,Pe),X(xM,7,Pe),X(CC,7,Pe),X(_M,7,Pe),X(yM,7,Pe),X(wM,7,Pe),X(CM,7,Pe),X(IM,7,Pe),X(IC,7,Pe),X(kM,7,Pe),X(EM,7,Pe),X(SM,7,Pe)),n&2){let o;L(o=z())&&(r.textTemplate=o.first),L(o=z())&&(r.numberTemplate=o.first),L(o=z())&&(r.chipTemplate=o.first),L(o=z())&&(r.linkTemplate=o.first),L(o=z())&&(r.imageTemplate=o.first),L(o=z())&&(r.checkboxTemplate=o.first),L(o=z())&&(r.boldTemplate=o.first),L(o=z())&&(r.italicTemplate=o.first),L(o=z())&&(r.customTemplate=o.first),L(o=z())&&(r.functionTemplate=o.first),L(o=z())&&(r.htmlTemplate=o.first),L(o=z())&&(r.dateTemplate=o.first),L(o=z())&&(r.barTemplate=o.first),L(o=z())&&(r.percentageBarTemplate=o.first),L(o=z())&&(r.percentageTemplate=o.first)}},decls:30,vars:0,consts:[["text",""],["number",""],["chip",""],["link",""],["image",""],["checkbox",""],["bold",""],["italic",""],["custom",""],["function",""],["html",""],["date",""],["bar",""],["percentageBar",""],["percentage",""],[3,"value"],[1,"gui-cell-number"],["gui-button","","link","true",3,"href"],[3,"src"],[1,"gui-cell-boolean"],[3,"checked","disabled"],["bold","",3,"value"],["italic","",3,"value"],[3,"element"],[1,"gui-view-text"],[3,"value","showPercentage"]],template:function(n,r){n&1&&D(0,DM,1,1,"ng-template",null,0,Ee)(2,TM,2,1,"ng-template",null,1,Ee)(4,MM,2,1,"ng-template",null,2,Ee)(6,FM,2,2,"ng-template",null,3,Ee)(8,RM,1,1,"ng-template",null,4,Ee)(10,AM,2,2,"ng-template",null,5,Ee)(12,OM,1,1,"ng-template",null,6,Ee)(14,PM,1,1,"ng-template",null,7,Ee)(16,NM,1,1,"ng-template",null,8,Ee)(18,jM,1,1,"ng-template",null,9,Ee)(20,VM,1,1,"ng-template",null,10,Ee)(22,LM,3,4,"ng-template",null,11,Ee)(24,zM,1,2,"ng-template",null,12,Ee)(26,BM,1,2,"ng-template",null,13,Ee)(28,HM,1,1,"ng-template",null,14,Ee)},dependencies:[Up,Pn,on,_A,yA,LC,wA,CA,ul],encapsulation:2})}return i})(),hu=class{templatesComponentDefinition;componentFactoryResolver;templates=new Map;templatesComponent=null;constructor(t,e){this.templatesComponentDefinition=t,this.componentFactoryResolver=e,this.createTemplatesComponent()}getTemplates(){return this.templates}destroy(){this.templatesComponent&&(this.templatesComponent.destroy(),this.templatesComponent=null)}createTemplatesComponent(){let t=this.componentFactoryResolver.resolveComponentFactory(this.templatesComponentDefinition),e=ve.create({providers:[]});this.templatesComponent=t.create(e),this.generateMap()}generateMap(){this.generateMapKeys().forEach(t=>{this.findAndSetTemplate(t)})}findAndSetTemplate(t){let e=this.templatesComponent.instance.getTemplate(t);this.templates.set(t,e)}},gu=(()=>{class i extends hu{constructor(e){super(IA,e)}static services=[Je];generateMapKeys(){return Object.keys(j).map(e=>j[e])}static \u0275fac=function(n){return new(n||i)(v(Je))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),mx=(()=>{class i{columnTemplateFactory;constructor(e){this.columnTemplateFactory=e}static services=[gu];findTemplate(e){return this.columnTemplateFactory.getTemplates().get(e)}static \u0275fac=function(n){return new(n||i)(v(gu))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),bs=function(i){return i[i.SUBMIT=0]="SUBMIT",i[i.BLUR=1]="BLUR",i[i.CANCEL=2]="CANCEL",i}(bs||{}),hx=(()=>{class i extends qe{value;valueChanges;status;focus;parent;ENTER_KEY_CODE=13;ESC_KEY_CODE=27;constructor(e,n){super(e,n)}submit(){this.emitStatus(bs.SUBMIT)}cancel(){this.emitStatus(bs.CANCEL)}emitStatus(e){this.status&&this.status.emit(e)}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275dir=N({type:i,inputs:{value:"value",valueChanges:"valueChanges",status:"status",focus:"focus",parent:"parent"},features:[C]})}return i})(),zC=(()=>{class i extends hx{formBuilder;inputRef;filterForm;filterFieldName="phrase";constructor(e,n,r){super(e,n),this.formBuilder=r,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnChanges(e){e.value!==void 0&&this.filterForm.get(this.filterFieldName).setValue(this.value)}ngOnInit(){this.observeChanges()}ngAfterViewInit(){let e=this.inputRef.nativeElement;this.focusField(e),this.emitValueChange(e.value),ya(e,"blur").pipe(this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()});let n=ya(e,"keyup");n.pipe(ye(r=>r.keyCode===this.ENTER_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()}),n.pipe(ye(r=>r.keyCode===this.ESC_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.cancel()})}focusField(e){this.focus&&e.focus()}observeChanges(){Mn(this.filterForm.controls[this.filterFieldName].valueChanges).pipe(this.takeUntil()).subscribe(e=>{this.emitValueChange(e)})}emitValueChange(e){this.valueChanges&&this.valueChanges.emit(e)}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(xi))};static \u0275dir=N({type:i,viewQuery:function(n,r){if(n&1&&X($M,7),n&2){let o;L(o=z())&&(r.inputRef=o.first)}},features:[C,G]})}return i})(),kA=(()=>{class i extends zC{constructor(e,n,r){super(e,n,r)}focusField(e){this.focus&&(e.focus(),e.setSelectionRange(0,e.value.length))}getSelectorName(){return"gui-string-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(xi))};static \u0275cmp=I({type:i,selectors:[["gui-string-edit"]],features:[C],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","type",1,"gui-input",3,"formControlName"]],template:function(n,r){n&1&&(h(0,"form",1),b(1,"input",2,0),g()),n&2&&(m("formGroup",r.filterForm),u(),m("formControlName",r.filterFieldName))},dependencies:[Oi,ii,Ri,Ai,$t,vi],encapsulation:2,changeDetection:0})}return i})(),EA=(()=>{class i extends zC{constructor(e,n,r){super(e,n,r)}getSelectorName(){return"gui-number-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(xi))};static \u0275cmp=I({type:i,selectors:[["gui-number-edit"]],features:[C],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","number",1,"gui-input",3,"formControlName"]],template:function(n,r){n&1&&(h(0,"form",1),b(1,"input",2,0),g()),n&2&&(m("formGroup",r.filterForm),u(),m("formControlName",r.filterFieldName))},dependencies:[Oi,ii,ka,Ri,Ai,$t,vi],encapsulation:2,changeDetection:0})}return i})(),SA=(()=>{class i extends hx{changeDetectorRef;checkboxRef;filterFieldName="booleanEdit";constructor(e,n){super(e,n),this.changeDetectorRef=e}toggle(e){this.valueChanges.emit(e),this.submit()}getSelectorName(){return"gui-boolean-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-boolean-edit"]],viewQuery:function(n,r){if(n&1&&X(CC,7,x),n&2){let o;L(o=z())&&(r.checkboxRef=o.first)}},features:[C],decls:3,vars:2,consts:[["checkbox",""],[1,"gui-cell-boolean"],[3,"changed","checked","name"]],template:function(n,r){if(n&1){let o=Z();h(0,"span",1)(1,"gui-checkbox",2,0),F("changed",function(a){return R(o),A(r.toggle(a))}),g()()}n&2&&(u(),m("checked",r.value)("name",r.filterFieldName))},dependencies:[Pn],encapsulation:2,changeDetection:0})}return i})(),DA=(()=>{class i extends hx{changeDetectorRef;datePickerRef;filterFieldName="dateEdit";opened=!1;localStreamCloser=new Ad;constructor(e,n){super(e,n),this.changeDetectorRef=e}ngAfterViewInit(){let e=this.datePickerRef.nativeElement.querySelector(".gui-date-picker-input"),n=ya(e,"keyup");n.pipe(ye(r=>r.keyCode===this.ENTER_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.submit()}),n.pipe(ye(r=>r.keyCode===this.ESC_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.cancel()})}ngOnDestroy(){this.localStreamCloser.unsubscribe(),super.ngOnDestroy()}toggle(e){this.valueChanges.emit(e)}dialogOpened(e){this.opened=e,e||(this.localStreamCloser.unsubscribe(),this.submit())}getSelectorName(){return"gui-date-edit"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["gui-date-edit"]],viewQuery:function(n,r){if(n&1&&X(UM,7,x),n&2){let o;L(o=z())&&(r.datePickerRef=o.first)}},features:[C],decls:2,vars:5,consts:[["datepicker",""],[3,"dialogOpened","dateSelected","selectDate","name","openDialog","onlyDialog","parentElement"]],template:function(n,r){if(n&1){let o=Z();h(0,"gui-date-picker",1,0),F("dialogOpened",function(a){return R(o),A(r.dialogOpened(a))})("dateSelected",function(a){return R(o),A(r.toggle(a))}),g()}n&2&&m("selectDate",r.value)("name",r.filterFieldName)("openDialog",!0)("onlyDialog",!1)("parentElement",r.parent)},dependencies:[sC],encapsulation:2,changeDetection:0})}return i})(),TA=(()=>{class i{stringTemplate;numberTemplate;booleanTemplate;dateTemplate;emptyTemplate;getTemplate(e){switch(e){case $.STRING:return this.stringTemplate;case $.NUMBER:return this.numberTemplate;case $.BOOLEAN:return this.booleanTemplate;case $.DATE:return this.dateTemplate;default:return this.emptyTemplate}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],viewQuery:function(n,r){if(n&1&&(X(WM,7,Pe),X(wC,7,Pe),X(GM,7,Pe),X(IC,7,Pe),X(qM,7,Pe)),n&2){let o;L(o=z())&&(r.stringTemplate=o.first),L(o=z())&&(r.numberTemplate=o.first),L(o=z())&&(r.booleanTemplate=o.first),L(o=z())&&(r.dateTemplate=o.first),L(o=z())&&(r.emptyTemplate=o.first)}},decls:10,vars:0,consts:[["string",""],["number",""],["boolean",""],["date",""],["empty",""],[3,"valueChanges","value","status","focus"],[3,"valueChanges","value","status","focus","parent"]],template:function(n,r){n&1&&D(0,YM,1,4,"ng-template",null,0,Ee)(2,QM,1,4,"ng-template",null,1,Ee)(4,KM,1,4,"ng-template",null,2,Ee)(6,ZM,1,5,"ng-template",null,3,Ee)(8,XM,0,0,"ng-template",null,4,Ee)},dependencies:[kA,EA,SA,DA],encapsulation:2})}return i})(),pu=(()=>{class i extends hu{constructor(e){super(TA,e)}static services=[Je];generateMapKeys(){return Object.keys($).map(e=>$[e])}static \u0275fac=function(n){return new(n||i)(v(Je))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),gx=(()=>{class i{editTemplateFactory;constructor(e){this.editTemplateFactory=e}static services=[pu];findTemplate(e){return this.editTemplateFactory.getTemplates().get(e)}static \u0275fac=function(n){return new(n||i)(v(pu))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),db=class{groups;showGroups;constructor(t,e){this.groups=t,this.showGroups=e}getGroups(){return this.groups}isVisible(){return this.showGroups}},dc=class i extends Fe{static default=new db([],!1);constructor(){super(i.default)}},MA=(()=>{class i extends ci{compositionDispatcher;compositionGroupRepository;columnHighlightArchive;constructor(e,n,r){super(),this.compositionDispatcher=e,this.compositionGroupRepository=n,this.columnHighlightArchive=r}static services=[rc,dc,cc];create(e){this.compositionDispatcher.create(e)}setColumns(e,n){this.compositionDispatcher.setColumns(n,e)}setGroups(e,n){this.compositionDispatcher.setGroups(n,e)}setWidth(e,n){this.compositionDispatcher.setWidth(n,e)}setContainerWidth(e,n){this.compositionDispatcher.setContainerWidth(n,e)}setResizeWidth(e,n){this.compositionDispatcher.setResizeWidth(n,e)}enableColumn(e,n){this.compositionDispatcher.setColumnEnabled(n,this.toColumnId(e),!0)}disableColumn(e,n){this.compositionDispatcher.setColumnEnabled(n,this.toColumnId(e),!1)}moveLeft(e,n){this.compositionDispatcher.moveLeft(n,this.toColumnId(e))}moveRight(e,n){this.compositionDispatcher.moveRight(n,this.toColumnId(e))}highlightColumn(e,n){this.columnHighlightArchive.toggle(n,new gs(e.getId()))}toColumnId(e){return new gs(e.getId())}}return i})(),FA=(()=>{class i extends At{compositionRepository;compositionGroupArchive;columnHighlightArchive;constructor(e,n,r){super(),this.compositionRepository=e,this.compositionGroupArchive=n,this.columnHighlightArchive=r}static services=[fs,dc,cc];onWidth(e){return this.compositionRepository.on(e).pipe(P(n=>n.getWidth()))}onContainerWidth(e){return this.compositionRepository.on(e).pipe(P(n=>n.getContainerWidth()))}onWidthForEachColumn(e){return this.compositionRepository.on(e).pipe(P(n=>n.getAllColumns().map(r=>r.width)))}onHeaderColumns(e){return this.compositionRepository.on(e).pipe(P(n=>n.getActiveHeaderColumns()))}onAllColumns(e){return this.compositionRepository.on(e).pipe(P(n=>n.getHeaderColumns()))}onSortOrder(e,n){return this.compositionRepository.on(n).pipe(P(r=>r.getActiveHeaderColumns()),P(r=>r.filter(o=>o.getFieldId().equals(e))),ye(r=>r.length>0),P(r=>r[0].getSortStatus()))}onTemplateColumns(e){return this.compositionRepository.on(e).pipe(P(n=>n.getTemplateColumns()))}onResizeWidth(e){return this.compositionRepository.on(e).pipe(P(n=>n.isResizeWidthEnabled()))}onGroups(e){return this.compositionGroupArchive.on(e)}onHighlightedColumn(e,n){return this.columnHighlightArchive.on(n).pipe(P(r=>r.isHighlighted(e)))}findColumnNames(e){let n=[];return this.compositionRepository.find(e).ifPresent(r=>{n=r.getAllColumns().map(o=>o.getName())}),n}}return i})(),ub=class extends Wn{constructor(){super()}onColumnsChanged(t){return this.onEvent(t,us)}onContainerWidthChanged(t){return this.onEvent(t,ms).pipe(P(e=>e.getPayload()),ye(e=>!!e))}},mb=class extends Un{configure(t){if(t!=null&&Array.isArray(t)&&t.length===0)return[];let e=t[0];return Object.keys(e).map((n,r)=>this.toColumnConfig(n,e))}toColumnConfig(t,e){return{field:this.getField(t),header:this.getHeader(t),type:this.getType(t,e)}}getField(t){return t}getHeader(t){return t[0].toUpperCase()+t.slice(1)}getType(t,e){return typeof e[t]=="string"?$.STRING:typeof e[t]=="number"?$.NUMBER:e[t]instanceof Date?$.DATE:typeof e[t]=="boolean"?$.BOOLEAN:$.UNKNOWN}},hb=class{registerProviders(t){t.provide(dx),t.provide(fs,VC),t.provide(du),t.provide(mx),t.provide(gu),t.provide(pu),t.provide(gx),t.provide(ps),t.provide(jC),t.provide(dc),t.provide(ci,MA),t.provide(At,FA),t.provide(Wn,ub),t.provide(Un,mb)}};function RA(){new wt(new hb,new lb).init()}var Bc=(()=>{class i{compositionWarehouse;viewTemplateRepository;editTemplateRepository;constructor(e,n,r){this.compositionWarehouse=e,this.viewTemplateRepository=n,this.editTemplateRepository=r}onHeaderCols(e){return this.compositionWarehouse.onHeaderColumns(e).pipe(P(n=>n.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(j.FUNCTION):o=this.findViewTemplate(j.HTML);let s=this.findEditTemplate(r.getDataType());return new Bd(o,s,r)})))}onAll(e){return this.compositionWarehouse.onAllColumns(e).pipe(P(n=>n.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(j.FUNCTION):o=this.findViewTemplate(j.HTML);let s=this.findEditTemplate(r.getDataType());return new Bd(o,s,r)})))}onTemplateCols(e){return this.compositionWarehouse.onTemplateColumns(e).pipe(P(n=>n.map(r=>{let o;r.getCellView()===j.NG_TEMPLATE?o=r.getColumnConfig().templateRef:o=this.findViewTemplate(r.getCellView());let s=this.findEditTemplate(r.getDataType());return new Bf(o,s,r)})))}findViewTemplate(e){return e===j.FUNCTION?this.viewTemplateRepository.findTemplate(j.FUNCTION):this.viewTemplateRepository.findTemplate(e)}findEditTemplate(e){return this.editTemplateRepository.findTemplate(e)}static \u0275fac=function(n){return new(n||i)(v(At),v(mx),v(gx))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Zr=class extends Fi{constructor(){super()}},AA=(()=>{class i extends qe{structureSummariesEventRepository;translationService;sourceWarehouse;enabled;state=_(tt);compositionId=_(et);structureId=_(se);formationWarehouse=_(Rt);compositionTemplateWarehouse=_(Bc);headerColumns$=this.compositionTemplateWarehouse.onHeaderCols(this.compositionId);state$=this.state.select();checkboxSelection$=this.selectCheckboxSelection();constructor(e,n,r,o,s){super(e,n),this.structureSummariesEventRepository=r,this.translationService=o,this.sourceWarehouse=s,this.addClassToHost("gui-flex"),this.state.connect("summariesTranslations",this.selectSummariesTranslations()),this.state.connect("sourceEmpty",this.selectSourceEmpty()),this.state.connect("summaries",this.selectSummaries())}isSummariesTypePresent(e){return e!=null}getSelectorName(){return"gui-structure-summaries-panel"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.CHECKBOX))}selectSourceEmpty(){return this.sourceWarehouse.onItemsSize(this.structureId).pipe(P(e=>e===0))}selectSummariesTranslations(){return this.translationService.onTranslation().pipe(P(e=>new zf(e.summariesDistinctValuesTooltip,e.summariesAverageTooltip,e.summariesMinTooltip,e.summariesMaxTooltip,e.summariesMedTooltip,e.summariesCountTooltip)))}selectSummaries(){return this.structureSummariesEventRepository.onSummariesChanged(this.structureId.toReadModelRootId()).pipe(P(e=>e.getSummaries()))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(Zr),c(yi),c(Qt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-summaries-panel","","enabled",""]],inputs:{enabled:"enabled"},features:[ge([tt]),C],attrs:JM,decls:1,vars:1,consts:[[4,"guiLet"],[4,"ngIf"],["class",`gui-structure-summaries-cell gui-row-checkbox gui-flex gui-justify-between + gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border + gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class","gui-structure-summaries-cell",3,"width",4,"ngFor","ngForOf"],[1,"gui-structure-summaries-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-structure-summaries-cell"],["class","gui-structure-summaries-value",4,"ngIf"],[1,"gui-structure-summaries-value"],[3,"gui-tooltip"],[1,"gui-summaries-value"]],template:function(n,r){n&1&&D(0,h2,2,1,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[rt,je,bd,It,Kt,Ss],encapsulation:2,changeDetection:0})}return i})(),OA=(()=>{class i extends FC{constructor(e,n){super(e,n)}getSelectorName(){return"gui-info-dialog"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-info-dialog",""]],features:[C],attrs:g2,decls:31,vars:0,consts:[[1,"gui-structure-info-modal","gui-flex","gui-flex-col","gui-p-0","gui-text-lg","gui-w-full"],[1,"gui-text-3xl","gui-mb-8","gui-font-bold"],[1,"gui-text-xl","gui-mb-18","gui-font-bold"],[1,"gui-quote","gui-text-2xl","gui-italic","gui-font-light"],[1,"gui-m-0","gui-px-0","gui-pt-10","gui-pb-6"],[1,"gui-font-bold"],[1,"gui-m-0","gui-pl-9","gui-list-none"],["href","https://generic-ui.com/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://generic-ui.com/guide/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/tree/master/ngx-grid",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/issues",1,"gui-mb-6","gui-no-underline","gui-leading-6"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"p",1),S(2," Generic UI Grid "),g(),h(3,"p",2),S(4," ver. 0.21.0 "),g(),h(5,"p",3),S(6,' "The best way to success is to help others succeed." '),g(),b(7,"br"),h(8,"section",4)(9,"p",5),S(10,"Links:"),g(),h(11,"ul",6)(12,"li")(13,"a",7),S(14,"Website"),g()(),h(15,"li")(16,"a",8),S(17,"Documentation"),g()(),h(18,"li")(19,"a",9),S(20,"Github"),g()()(),b(21,"br"),h(22,"p",5),S(23,"Feedback:"),g(),h(24,"ul",6)(25,"li")(26,"a",10),S(27,"Report a bug"),g()(),h(28,"li")(29,"a",10),S(30,"Suggest an idea"),g()()()()())},encapsulation:2,changeDetection:0})}return i})(),BC=(()=>{class i extends qe{compositionId;compositionCommandInvoker;compositionTemplateWarehouse;state=_(tt);state$=this.state.select();constructor(e,n,r,o,s){super(e,n),this.compositionId=r,this.compositionCommandInvoker=o,this.compositionTemplateWarehouse=s,this.addClassToHost("gui-block"),this.state.connect("columns",this.selectColumns()),this.state.connect("enabledColumnsCount",this.selectEnabledColumnsCount())}toggleColumn(e){event.stopPropagation(),e.isEnabled()?this.compositionCommandInvoker.disableColumn(e.getColumnDefinitionId(),this.compositionId):this.compositionCommandInvoker.enableColumn(e.getColumnDefinitionId(),this.compositionId)}getSelectorName(){return"gui-structure-column-manager"}selectColumns(){return this.compositionTemplateWarehouse.onAll(this.compositionId)}selectEnabledColumnsCount(){return this.compositionTemplateWarehouse.onAll(this.compositionId).pipe(P(e=>e.map(n=>+n.isEnabled()).reduce((n,r)=>n+r)))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(et),c(ci),c(Bc))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-manager",""]],features:[ge([tt]),C],attrs:p2,decls:1,vars:1,consts:[["class","gui-structure-ordered-list gui-p-0 gui-my-4 gui-list-none gui-overflow-auto",4,"guiLet"],[1,"gui-structure-ordered-list","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked","disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&D(0,v2,2,1,"ol",0),n&2&&m("guiLet",r.state$)},dependencies:[rt,_n,Pn,It],encapsulation:2,changeDetection:0})}return i})(),PA=(()=>{class i extends qe{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-dialog-column-manager"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-dialog-column-manager",""]],features:[C],attrs:x2,decls:4,vars:3,consts:[[1,"gui-dialog-title"],["gui-structure-column-manager","",1,"-gui-mx-10"]],template:function(n,r){n&1&&(h(0,"div",0),S(1),J(2,"guiTranslate"),g(),b(3,"div",1)),n&2&&(u(),xe(ie(2,1,"columnManagerModalTitle")))},dependencies:[BC,Kt],encapsulation:2,changeDetection:0})}return i})(),Hc=(()=>{class i{convertTheme(e){switch(e){case H.FABRIC:return Ce.FABRIC;case H.MATERIAL:return Ce.MATERIAL;case H.GENERIC:return Ce.GENERIC;case H.LIGHT:return Ce.LIGHT;case H.DARK:return Ce.DARK;default:return Ce.FABRIC}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),HC=(()=>{class i extends vt{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(e,n,r,o){super(),this.injector=e,this.schemaWarehouse=n,this.structureThemeConverter=r,this.fabricDialogService=o}open(e,n,r){r||(r=this.injector);let o=ve.create({parent:r,providers:[{provide:et,useValue:e}]});this.schemaWarehouse.findTheme(n).ifPresent(s=>{this.fabricDialogService.open({injector:o,component:PA,theme:this.structureThemeConverter.convertTheme(s)})})}static \u0275fac=function(n){return new(n||i)(v(ve),v(Yt),v(Hc),v(Ar))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),NA=(()=>{class i extends qe{structureId;schemaPublisher;schemaWarehouse=_(Yt);schemaReadModelRootId=_(lt);coloring=this.createColoringOptions();themes=this.createThemeOptions();rowColoring$=this.selectRowColoring();theme$=this.selectTheme();verticalGrid$=this.schemaWarehouse.onVerticalGrid(this.schemaReadModelRootId);horizontalGrid$=this.schemaWarehouse.onHorizontalGrid(this.schemaReadModelRootId);constructor(e,n,r,o){super(e,n),this.structureId=r,this.schemaPublisher=o}toggleTheme(e){this.schemaPublisher.setTheme(this.toTheme(e.value),this.schemaReadModelRootId,this.structureId)}toggleRowColoring(e){this.schemaPublisher.setRowColoring(this.toRowColoring(e.value),this.schemaReadModelRootId)}toggleVerticalGrid(e){event.stopPropagation(),this.schemaPublisher.setVerticalGrid(!e,this.schemaReadModelRootId)}toggleHorizontalGrid(e){event.stopPropagation(),this.schemaPublisher.setHorizontalGrid(!e,this.schemaReadModelRootId)}getSelectorName(){return"gui-structure-schema-manager"}createColoringOptions(){return Object.keys(Ge).map(e=>Ge[e]).filter(e=>!Number.isInteger(e)).map(e=>({value:e,name:e}))}createThemeOptions(){return Object.keys(H).map(e=>H[e]).filter(e=>!Number.isInteger(e)).map(e=>({value:e,name:e}))}selectRowColoring(){return this.schemaWarehouse.onRowColoring(this.schemaReadModelRootId).pipe(P(e=>({value:Ge[e],name:Ge[e]})))}selectTheme(){return this.schemaWarehouse.onTheme(this.schemaReadModelRootId).pipe(P(e=>({value:H[e],name:H[e]})))}toTheme(e){switch(e.toLowerCase()){case"fabric":return H.FABRIC;case"material":return H.MATERIAL;case"generic":return H.GENERIC;case"light":return H.LIGHT;case"dark":return H.DARK;default:return H.FABRIC}}toRowColoring(e){switch(e.toLowerCase()){case"none":return at.NONE;case"odd":return at.ODD;case"even":return at.EVEN;default:return at.NONE}}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Ot))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-schema-manager",""]],features:[C],attrs:_2,decls:19,vars:21,consts:[[1,"gui-schema-manager","gui-flex","gui-flex-col"],[1,"gui-dialog-title","gui-mb-8"],[1,"gui-structure-schema-manager-select","gui-flex","gui-flex-col"],[1,"gui-mb-4","gui-text-xs"],[3,"optionChanged","options","selected","width"],[1,"gui-structure-ordered-list","gui-mx-10","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"guiLet"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),S(2),J(3,"guiTranslate"),g(),h(4,"div",2)(5,"span",3),S(6),J(7,"guiTranslate"),g(),h(8,"gui-select",4),J(9,"guiPush"),F("optionChanged",function(s){return r.toggleTheme(s)}),g()(),h(10,"div",2)(11,"span",3),S(12),J(13,"guiTranslate"),g(),h(14,"gui-select",4),J(15,"guiPush"),F("optionChanged",function(s){return r.toggleRowColoring(s)}),g()(),h(16,"ol",5),D(17,y2,4,4,"li",6)(18,w2,4,4,"li",6),g()()),n&2&&(u(2),xe(ie(3,11,"themeManagerModalTitle")),u(4),xe(ie(7,13,"themeManagerModalTheme")),u(2),m("options",r.themes)("selected",ie(9,15,r.theme$))("width",180),u(4),oe(" ",ie(13,17,"themeManagerModalRowColoring")," "),u(2),m("options",r.coloring)("selected",ie(15,19,r.rowColoring$))("width",180),u(3),m("guiLet",r.verticalGrid$),u(),m("guiLet",r.horizontalGrid$))},dependencies:[Pn,vd,It,Kt,Ss],encapsulation:2,changeDetection:0})}return i})(),jA=(()=>{class i extends gt{constructor(e){super(e)}getSelectorName(){return"gui-schema-manager-dialog"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-schema-manager-dialog",""]],features:[C],attrs:C2,decls:1,vars:0,consts:[["gui-structure-schema-manager",""]],template:function(n,r){n&1&&b(0,"div",0)},dependencies:[NA],encapsulation:2,changeDetection:0})}return i})(),$C=(()=>{class i extends vt{injector;fabricDialogService;constructor(e,n){super(),this.injector=e,this.fabricDialogService=n}open(e,n){n||(n=this.injector);let r=ve.create({providers:[{provide:lt,useValue:e}],parent:n});this.fabricDialogService.open({injector:r,component:jA})}static \u0275fac=function(n){return new(n||i)(v(ve),v(Ar))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),VA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-column-manager-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-manager-icon",""]],features:[C],attrs:I2,decls:7,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 10.31"],["x1","9.57","y1","3.65","x2","0.75","y2","3.65",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-2"],["x1","0.75","y1","9.56","x2","0.75","y2","0.88",1,"cls-2"],["x1","3.69","y1","9.65","x2","3.69","y2","3.89",1,"cls-1"],["x1","6.63","y1","9.56","x2","6.63","y2","3.89",1,"cls-1"],["x1","9.57","y1","9.56","x2","9.57","y2","0.88",1,"cls-2"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6),g())},encapsulation:2,changeDetection:0})}return i})(),LA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-schema-manager-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-schema-manager-icon",""]],features:[C],attrs:k2,decls:11,vars:0,consts:[["height","24","viewBox","0 0 32 24","width","32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(0 -4)"],["d","M23.337,4H32v6H23.337Z","data-name","Path 303","id","Path_303"],["d","M11.662,4h8.662v6H11.662Z","data-name","Path 304","id","Path_304"],["d","M0,4H8.662v6H0Z","data-name","Path 305","id","Path_305"],["d","M23.337,22H32v6H23.337Z","data-name","Path 306","id","Path_306"],["d","M0,22H8.662v6H0Z","data-name","Path 307","id","Path_307"],["d","M11.662,22h8.662v6H11.662Z","data-name","Path 308","id","Path_308"],["d","M23.337,13H32v6H23.337Z","data-name","Path 309","id","Path_309"],["d","M11.662,13h8.662v6H11.662Z","data-name","Path 310","id","Path_310"],["d","M0,13H8.662v6H0Z","data-name","Path 311","id","Path_311"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0)(1,"g",1),b(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10),g()())},encapsulation:2,changeDetection:0})}return i})(),zA=(()=>{class i extends qe{structureId=_(se);searchCommandDispatcher=_(Gt);searchWarehouse=_(Hi);phrase$=this.searchWarehouse.onPhrase(this.structureId);constructor(e,n){super(e,n)}clearSearch(){event.stopPropagation(),this.searchCommandDispatcher.search("",this.structureId)}getSelectorName(){return"gui-active-search"}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-active-search",""]],features:[C],attrs:E2,decls:1,vars:1,consts:[[4,"guiLet"],["gui-button","",3,"click","outline","primary"]],template:function(n,r){n&1&&D(0,S2,9,3,"ng-container",0),n&2&&m("guiLet",r.phrase$)},dependencies:[on,Up,It],encapsulation:2,changeDetection:0})}return i})(),BA=(()=>{class i extends qe{filterCommandDispatcher;structureId=_(se);filterWarehouse=_(Vi);activeFilters$=this.filterWarehouse.onActiveFilters(this.structureId);constructor(e,n,r){super(e,n),this.filterCommandDispatcher=r}removeFilter(e){this.filterCommandDispatcher.remove(e.getFilterId(),this.structureId)}getSelectorName(){return"gui-active-filter-list"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(_i))};static \u0275cmp=I({type:i,selectors:[["div","gui-active-filter-list",""]],features:[C],attrs:D2,decls:2,vars:1,consts:[[4,"guiLet"],["gui-active-search",""],[4,"ngFor","ngForOf"],[3,"click"]],template:function(n,r){n&1&&(D(0,M2,2,1,"ng-container",0),b(1,"div",1)),n&2&&m("guiLet",r.activeFilters$)},dependencies:[rt,It,zA],encapsulation:2,changeDetection:0})}return i})(),HA=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],decls:8,vars:3,consts:[["gui-active-filter-list",""],["gui-button","",3,"text"],["gui-button","",3,"outline","primary"]],template:function(n,r){n&1&&(h(0,"h3"),S(1,"Active filters"),g(),b(2,"div",0),h(3,"div")(4,"button",1),S(5," Cancel "),g(),h(6,"button",2),S(7," Clear All "),g()()),n&2&&(u(4),m("text",!0),u(2),m("outline",!0)("primary",!0))},dependencies:[BA,on],encapsulation:2})}return i})(),UC=(()=>{class i extends vt{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(e,n,r,o){super(),this.injector=e,this.schemaWarehouse=n,this.structureThemeConverter=r,this.fabricDialogService=o}open(e,n){let r=ve.create({parent:this.injector,providers:[{provide:lt,useValue:e},{provide:se,useValue:n}]});this.schemaWarehouse.findTheme(e).ifPresent(o=>{this.fabricDialogService.open({injector:r,component:HA,theme:this.structureThemeConverter.convertTheme(o)})})}static \u0275fac=function(n){return new(n||i)(v(ve),v(Yt),v(Hc),v(Ar))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),$A=(()=>{class i{el;structureId;activeFilterService;schemaReadModelRootId;constructor(e,n,r,o){this.el=e,this.structureId=n,this.activeFilterService=r,this.schemaReadModelRootId=o}ngOnInit(){}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(UC),c(lt))};static \u0275dir=N({type:i,selectors:[["","gui-active-filter-menu-trigger",""]]})}return i})(),UA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-info-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-info-icon",""]],features:[C],attrs:F2,decls:3,vars:0,consts:[["data-name","Layer 1","viewBox","0 0 10.08 10.08","xmlns","http://www.w3.org/2000/svg"],["d","M401.64,307.76c0-.28.23-.45.54-.45s.55.17.55.45v0a.49.49,0,0,1-.55.46.48.48,0,0,1-.54-.46Zm.05,1.27a.49.49,0,0,1,1,0v2.54a.49.49,0,0,1-1,0Z","transform","translate(-397.14 -304.64)",1,"cls-1"],["cx","5.04","cy","5.04","r","4.54",1,"cls-2"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"path",1)(2,"circle",2),g())},encapsulation:2,changeDetection:0})}return i})(),WA=(()=>{class i{transform(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}static \u0275fac=function(n){return new(n||i)};static \u0275pipe=As({name:"numberFormatter",type:i,pure:!0})}return i})(),GA=(()=>{class i extends qe{injector;dialog;compositionId;schemaReadModelRootId;menuColumnManagerService;translationService;schemaManagerService;structureInfoPanelArchive;state=_(tt);sourceWarehouse=_(Qt);structureId=_(se);state$=this.state.select();totalItemsSize$=this.sourceWarehouse.onOriginSize(this.structureId);infoModal=OA;constructor(e,n,r,o,s,a,l,d,p,w){super(e,n),this.injector=r,this.dialog=o,this.compositionId=s,this.schemaReadModelRootId=a,this.menuColumnManagerService=l,this.translationService=d,this.schemaManagerService=p,this.structureInfoPanelArchive=w,this.state.connect("infoPanelConfig",this.structureInfoPanelArchive.on()),this.state.connect("preparedItemsSize",this.sourceWarehouse.onPreparedItems(this.structureId).pipe(P(E=>E.length))),this.state.connect("translations",this.translationService.onTranslation())}openInfo(){this.dialog.open({component:this.infoModal})}openColumnManager(){this.menuColumnManagerService.open(this.compositionId,this.schemaReadModelRootId,this.injector)}openSchemaManager(){this.schemaManagerService.open(this.schemaReadModelRootId,this.injector)}getSelectorName(){return"gui-structure-info-panel"}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(ve),c(Ar),c(et),c(lt),c(HC),c(yi),c($C),c($n))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-info-panel",""]],features:[ge([tt]),C],attrs:R2,decls:1,vars:1,consts:[[4,"guiLet"],[1,"gui-right-section"],[3,"click",4,"ngIf"],[4,"ngIf"],["gui-active-filter-menu-trigger","",4,"ngIf"],["gui-active-filter-menu-trigger",""],[3,"click"],["gui-structure-schema-manager-icon","",3,"gui-tooltip"],["gui-structure-column-manager-icon","",3,"gui-tooltip"],["gui-structure-info-icon","",3,"gui-tooltip"]],template:function(n,r){n&1&&D(0,B2,7,4,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[je,bd,VA,LA,$A,It,UA,WA,Kt],encapsulation:2,changeDetection:0})}return i})(),fu=(()=>{class i{destroy$=new Tt(1);register(e,n,r){return e.pipe(Mt(this.destroy$)).subscribe(o=>n(o),o=>console.log(o),r?()=>r():()=>{})}destroy(){this.destroy$.next(),this.destroy$.complete()}ngOnDestroy(){this.destroy()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),qA=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-search-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-search-icon",""]],features:[C],attrs:H2,decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","width","10.231","height","10.601","viewBox","0 0 10.231 10.601",1,"gui-search-icon-svg"],["x2","1.77","y2","1.77","transform","translate(7.4 7.77)","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5"],["cx","4.02","cy","4.02","r","4.02","transform","translate(0.5 0.5)","stroke-width","1","stroke-linecap","round","stroke-linejoin","round","fill","none"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"circle",2),g())},encapsulation:2,changeDetection:0})}return i})(),YA=(()=>{class i extends qe{formBuilder;effects;searchCommandDispatcher;static FORM_SEARCH_NAME="searchPhrase";formRef;structureId=_(se);searchWarehouse=_(Hi);searchForm;placeholder$=this.searchWarehouse.onPlaceholder(this.structureId);searchingEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);searchInputSubscription;constructor(e,n,r,o,s){super(n,r),this.formBuilder=e,this.effects=o,this.searchCommandDispatcher=s;let a={};a[i.FORM_SEARCH_NAME]="",this.searchForm=this.formBuilder.group(a),this.registerOnPhraseEffect()}ngOnInit(){this.registerOnChangesEffect()}clear(){this.searchForm.reset()}getSelectorName(){return"gui-search-bar"}selectPhrase(){let e=this.searchForm.controls[i.FORM_SEARCH_NAME].valueChanges;return Mn(e.pipe(Fs(200)))}registerOnChangesEffect(){this.searchInputSubscription=this.effects.register(this.selectPhrase(),e=>{this.searchCommandDispatcher.search(e,this.structureId)})}registerOnPhraseEffect(){this.effects.register(this.searchWarehouse.onPhrase(this.structureId),e=>{e===void 0&&(e=null);let n={};n[i.FORM_SEARCH_NAME]=e,e!==this.searchForm.get([i.FORM_SEARCH_NAME]).value&&(this.unregisterObserveChangesEffect(),this.searchForm.setValue(n),this.registerOnChangesEffect())})}unregisterObserveChangesEffect(){this.searchInputSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||i)(c(xi),c(B),c(x),c(fu),c(Gt))};static \u0275cmp=I({type:i,selectors:[["div","gui-search-bar",""]],viewQuery:function(n,r){if(n&1&&X($2,5,x),n&2){let o;L(o=z())&&(r.formRef=o.first)}},features:[ge([fu]),C],attrs:U2,decls:1,vars:1,consts:[["formRef",""],[4,"guiIf"],[1,"gui-flex","gui-relative","gui-w-full",3,"formGroup"],["gui-search-icon",""],["formControlName","searchPhrase",1,"gui-border-0","gui-w-full","gui-h-full","gui-py-5","gui-pr-5","gui-pl-21",3,"placeholder"],["class","gui-clear-search-icon",3,"click",4,"ngIf"],[1,"gui-clear-search-icon",3,"click"]],template:function(n,r){n&1&&D(0,G2,7,5,"ng-container",1),n&2&&m("guiIf",r.searchingEnabled$)},dependencies:[je,Oi,ii,Ri,Ai,$t,vi,lx,qA,Ss],styles:[`.gui-search-bar form{background:#fff}.gui-search-bar form:hover .gui-search-icon-svg line,.gui-search-bar form:hover .gui-search-icon-svg circle{stroke:#333}.gui-search-bar .gui-search-icon-svg{height:17px;left:10px;position:absolute;top:6px;width:17px}.gui-search-bar .gui-search-icon-svg line,.gui-search-bar .gui-search-icon-svg circle{stroke:#ccc;transition:stroke .3s ease-in-out} +`],encapsulation:2,changeDetection:0})}return i})(),QA=(()=>{class i extends gt{constructor(e){super(e),this.addClassToHost("gui-p-6"),this.addClassToHost("gui-border-b"),this.addClassToHost("gui-border-b-solid")}getSelectorName(){return"gui-structure-top-panel"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-top-panel",""]],features:[C],attrs:q2,decls:1,vars:0,consts:[["gui-search-bar","",1,"gui-flex","gui-items-center","gui-h-full","gui-w-3/5","gui-mr-auto"]],template:function(n,r){n&1&&b(0,"div",0)},dependencies:[YA],encapsulation:2,changeDetection:0})}return i})(),KA=(()=>{class i extends gt{items;constructor(e){super(e),this.addClassToHost("gui-py-23"),this.addClassToHost("gui-px-6")}ngOnChanges(e){Re(e.items,()=>{this.items.length===0?(this.removeClassFromHost("gui-hidden"),this.addClassToHost("gui-block")):(this.removeClassFromHost("gui-block"),this.addClassToHost("gui-hidden"))})}getSelectorName(){return"gui-empty-source"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-empty-source","","items",""]],inputs:{items:"items"},features:[C,G],attrs:Y2,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(n,r){n&1&&D(0,Q2,3,3,"ng-container",0),n&2&&m("ngIf",r.items.length===0)},dependencies:[je,Kt],encapsulation:2,changeDetection:0})}return i})(),un=class{constructor(){}},ZA=(()=>{class i extends gt{constructor(e){super(e)}getSelectorName(){return"gui-structure-menu-column-manager"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-menu-column-manager",""]],features:[C],attrs:K2,decls:1,vars:0,consts:[["gui-structure-column-manager",""]],template:function(n,r){n&1&&b(0,"div",0)},dependencies:[BC],encapsulation:2,changeDetection:0})}return i})(),XA=(()=>{class i extends qe{structureId;filterWarehouse;filterCommandInvoker;set fieldId(e){this.state.setValue({fieldId:e})}state=_(tt);state$=this.state.select();constructor(e,n,r,o,s){super(e,n),this.structureId=r,this.filterWarehouse=o,this.filterCommandInvoker=s,this.state.connect("uniqueValues",this.selectUniqueValues()),this.state.connect("selectAllChecked",this.isSelectAllChecked()),this.state.connect("selectAllIndeterminate",this.isSelectAllIndeterminate())}toggleAllSelect(){event.stopPropagation();let e=this.state.getValue("fieldId");this.state.getValue("selectAllChecked")?this.filterCommandInvoker.unselectAllUniqueFilter(e,this.structureId):this.filterCommandInvoker.selectAllUniqueFilter(e,this.structureId)}toggleSelect(e){event.stopPropagation();let n=this.state.getValue("fieldId");e.isEnabled()?this.filterCommandInvoker.unselectUniqueFilter(n,e.getId(),this.structureId):this.filterCommandInvoker.selectUniqueFilter(n,e.getId(),this.structureId)}clearFilters(){let e=this.state.getValue("fieldId");this.filterCommandInvoker.selectAllUniqueFilter(e,this.structureId)}getSelectorName(){return"gui-unique-value-list"}selectUniqueValues(){return this.state.select("fieldId").pipe(Ht(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(P(n=>n.getValues(e)))))}isSelectAllChecked(){return this.state.select("fieldId").pipe(Ht(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(P(n=>n.isSelectAllChecked(e)))))}isSelectAllIndeterminate(){return this.state.select("fieldId").pipe(Ht(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(P(n=>n.isIndeterminate(e)))))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Vi),c(_i))};static \u0275cmp=I({type:i,selectors:[["div","gui-unique-value-list","","fieldId",""]],inputs:{fieldId:"fieldId"},features:[ge([tt]),C],attrs:Z2,decls:1,vars:1,consts:[[4,"guiLet"],[3,"changed","checked","indeterminate"],[1,"gui-unique-value-list-container","gui-overflow-y-auto","gui-overflow-x-hidden"],[4,"ngFor","ngForOf"],[1,"gui-unique-value-list-actions","gui-px-4","gui-pb-4","gui-pt-2","gui-flex","gui-justify-end"],["gui-button","",1,"gui-clear-unique-filters","gui-px-4","gui-py-2",3,"click","outline","primary"],[3,"changed","checked"]],template:function(n,r){n&1&&D(0,J2,8,5,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[rt,on,Pn,It],styles:[`.gui-unique-value-list-container{max-height:300px} +`],encapsulation:2,changeDetection:0})}return i})(),Ln=function(i){return i[i.UP=0]="UP",i[i.DOWN=1]="DOWN",i[i.LEFT=2]="LEFT",i[i.RIGHT=3]="RIGHT",i}(Ln||{}),px=(()=>{class i extends Es{position=Ln.UP;sort;styleModifier;constructor(e,n){super(e,n),this.sort&&this.addClassToHost("gui-structure-column-menu-sort-icon"),this.styleModifier=new hh(e.nativeElement)}ngOnChanges(e){Re(e.position,()=>{this.position&&this.styleModifier.getHost().setStyleByName("transform",this.getTransformValue())})}getSelectorName(){return"gui-structure-column-menu-arrow-icon"}getTransformValue(){return"rotate("+this.getRotationDeg()+"deg)"}getRotationDeg(){switch(this.position){case Ln.UP:return 0;case Ln.DOWN:return 180;case Ln.LEFT:return-90;case Ln.RIGHT:return 90;default:return 0}}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-arrow-icon",""]],inputs:{position:"position",sort:"sort"},features:[C,G],attrs:eF,decls:4,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.04 11.72"],["x1","5.02","y1","2.15","x2","5.02","y2","10.97",1,"cls-1"],["x1","5.02","y1","0.75","x2","9.29","y2","5.02",1,"cls-1"],["x1","5.02","y1","0.75","x2","0.75","y2","5.02",1,"cls-1"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"line",2)(3,"line",3),g())},encapsulation:2,changeDetection:0})}return i})(),JA=(()=>{class i extends qe{changeDetectorRef;compositionId;structureId;sortingCommandDispatcher;compositionReadModelService;set column(e){this.state.setValue({fieldId:e.getFieldId()})}dropdownTextTranslation;state=_(tt);placement=Mr.Right;status=ct;StructureArrowPosition=Ln;sortOrder$=this.state.select("sortOrder");constructor(e,n,r,o,s,a){super(e,n),this.changeDetectorRef=e,this.compositionId=r,this.structureId=o,this.sortingCommandDispatcher=s,this.compositionReadModelService=a,this.state.connect("sortOrder",this.selectSortOrder())}isAscSort(){return this.state.getValue("sortOrder")===ct.ASC}isDescSort(){return this.state.getValue("sortOrder")===ct.DESC}isNoneSort(){return this.state.getValue("sortOrder")===ct.NONE}setSortOrder(e){event.preventDefault(),event.stopPropagation();let n=this.state.getValue("fieldId");this.sortingCommandDispatcher.setSortOrder(n,e,this.compositionId,this.structureId)}getSelectorName(){return"gui-structure-column-config-sort"}selectSortOrder(){return this.state.select("fieldId").pipe(Ht(e=>this.compositionReadModelService.onSortOrder(e,this.compositionId)))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(et),c(se),c(qt),c(At))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-sort","","column","","dropdownTextTranslation",""]],inputs:{column:"column",dropdownTextTranslation:"dropdownTextTranslation"},features:[ge([tt]),C],attrs:tF,decls:1,vars:1,consts:[["class","gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width",4,"guiLet"],[1,"gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width"],[3,"click"],[1,"gui-sort-title"],["gui-structure-arrow-icon","",3,"sort"],["gui-structure-arrow-icon","",3,"position","sort"]],template:function(n,r){n&1&&D(0,iF,14,22,"gui-dropdown",0),n&2&&m("guiLet",r.sortOrder$)},dependencies:[aC,cC,It,px,Kt],encapsulation:2,changeDetection:0})}return i})(),eO=(()=>{class i extends gt{column;columnHidden=new W;constructor(e){super(e)}hideColumn(){this.columnHidden.emit()}getSelectorName(){return"gui-structure-column-config-column-hide"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-column-hide",""]],inputs:{column:"column"},outputs:{columnHidden:"columnHidden"},features:[C],attrs:nF,decls:3,vars:3,consts:[[1,"gui-header-menu-item",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0),F("click",function(){return r.hideColumn()}),S(1),J(2,"guiTranslate"),g()),n&2&&(u(),oe(" ",ie(2,1,"headerMenuMainTabHideColumn"),` +`))},dependencies:[Kt],encapsulation:2,changeDetection:0})}return i})(),tO=(()=>{class i extends gt{column;movedLeft=new W;movedRight=new W;StructureArrowPosition=Ln;constructor(e){super(e)}moveLeft(){this.movedLeft.emit()}moveRight(){this.movedRight.emit()}getSelectorName(){return"gui-structure-column-config-column-move"}static \u0275fac=function(n){return new(n||i)(c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-column-move","","column",""]],inputs:{column:"column"},outputs:{movedLeft:"movedLeft",movedRight:"movedRight"},features:[C],attrs:rF,decls:9,vars:8,consts:[[1,"gui-header-menu-column-move"],[1,"gui-header-menu-column-move-item","left",3,"click"],["gui-structure-arrow-icon","",3,"position"],[1,"gui-header-menu-column-move-item","right",3,"click"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),F("click",function(){return r.moveLeft()}),b(2,"div",2),S(3),J(4,"guiTranslate"),g(),h(5,"div",3),F("click",function(){return r.moveRight()}),S(6),J(7,"guiTranslate"),b(8,"div",2),g()()),n&2&&(u(2),m("position",r.StructureArrowPosition.LEFT),u(),oe(" ",ie(4,4,"headerMenuMainTabMoveLeft")," "),u(3),oe(" ",ie(7,6,"headerMenuMainTabMoveRight")," "),u(2),m("position",r.StructureArrowPosition.RIGHT))},dependencies:[px,Kt],encapsulation:2,changeDetection:0})}return i})(),iO=(()=>{class i extends qe{translationFacade;structureColumnMenuConfigArchive;compositionId;compositionCommandInvoker;injector;column;headerSortMenu;state=_(tt);state$=this.state.select();structureColumnConfigService;constructor(e,n,r,o,s,a,l,d){super(e,n),this.translationFacade=r,this.structureColumnMenuConfigArchive=o,this.compositionId=s,this.compositionCommandInvoker=a,this.injector=l,this.column=d,this.structureColumnConfigService=this.injector.get(gh),this.state.connect("isEnabled",this.selectIsEnabled()),this.state.connect("config",this.structureColumnMenuConfigArchive.on()),this.state.connect("translations",this.translationFacade.onTranslation())}isEnabled(e){return e.isEnabled()}hideColumn(){this.compositionCommandInvoker.disableColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveLeft(){this.compositionCommandInvoker.moveLeft(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveRight(){this.compositionCommandInvoker.moveRight(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}highlightColumn(){this.compositionCommandInvoker.highlightColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}getSelectorName(){return"gui-column-config"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(P(e=>e.isEnabled()))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(yi),c(qa),c(et),c(ci),c(ve),c("column"))};static \u0275cmp=I({type:i,selectors:[["div","gui-column-config",""]],viewQuery:function(n,r){if(n&1&&X(oF,5,x),n&2){let o;L(o=z())&&(r.headerSortMenu=o.first)}},features:[ge([tt]),C],attrs:sF,decls:1,vars:1,consts:[[4,"guiLet"],["class","gui-header-menu-tab",4,"ngIf"],[1,"gui-header-menu-tab"],[3,"active","menu"],[4,"ngIf"],[1,"gui-tab-item-dropdown",3,"tab"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation",4,"ngIf"],["gui-structure-column-config-column-hide","",3,"columnHidden","column"],[1,"gui-header-menu-item",3,"click"],["gui-structure-column-config-column-move","",3,"movedLeft","movedRight","column"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation"],[3,"tab"],["gui-unique-value-list","",3,"fieldId"],["gui-structure-menu-column-manager",""]],template:function(n,r){n&1&&D(0,mF,2,1,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[je,mC,hC,It,ZA,XA,JA,eO,tO,Kt],encapsulation:2,changeDetection:0})}return i})(),gh=(()=>{class i extends vt{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(e,n,r,o,s){super(),this.injector=e,this.schemaReadModelRootId=n,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(e,n){this.close();let r=ve.create({providers:[{provide:"column",useValue:n}],parent:this.injector});this.schemaWarehouse.onceTheme(this.schemaReadModelRootId).pipe(this.hermesTakeUntil()).subscribe(o=>{this.inlineDialogService.open(e,iO,{injector:r,placement:Ni.BOTTOM,offset:-34,theme:this.structureThemeConverter.convertTheme(o),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(n){return new(n||i)(v(ve),v(lt),v(Yt),v(Hc),v(rs))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),nO=(()=>{class i extends MC{formationPublisher;structureId=_(se);formationWarehouse=_(Rt);selection$=this.formationWarehouse.onCustomSelections(this.structureId);constructor(e,n){super(e),this.formationPublisher=n}selectCustom(e){this.formationPublisher.selectCustom(e,this.structureId)}getSelectorName(){return"gui-select-custom-modal"}static \u0275fac=function(n){return new(n||i)(c(x),c(_t))};static \u0275cmp=I({type:i,selectors:[["div","gui-select-custom-modal",""]],features:[C],attrs:hF,decls:1,vars:1,consts:[[4,"guiLet"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(n,r){n&1&&D(0,pF,2,1,"ul",0),n&2&&m("guiLet",r.selection$)},dependencies:[rt,It],styles:[`.gui-select-custom-modal{background:#fff;border:1px solid #d6d6d6;border-radius:0 0 4px 4px}.gui-select-custom-modal ul{list-style:none;margin:0;padding:0}.gui-select-custom-modal ul li{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;cursor:pointer;display:block;font:14px Arial;padding:8px 12px} +`],encapsulation:2,changeDetection:0})}return i})(),xC=(()=>{class i extends vt{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(e,n,r,o,s){super(),this.injector=e,this.schemaReadModelRootId=n,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(e){this.close(),this.schemaWarehouse.findTheme(this.schemaReadModelRootId).ifPresent(n=>{this.inlineDialogService.open(e,nO,{injector:this.injector,placement:Ni.BOTTOM,offset:0,theme:this.structureThemeConverter.convertTheme(n),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(n){return new(n||i)(v(ve),v(lt),v(Yt),v(Hc),v(rs))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),WC=(()=>{class i extends uo{structureId;formationCommandDispatcher;formationWarehouse;state=_(tt);state$=this.state.select();constructor(e,n,r,o){super(e),this.structureId=n,this.formationCommandDispatcher=r,this.formationWarehouse=o,this.state.setValue({modeMulti:!1}),this.state.connect("modeMulti",this.selectModeMulti()),this.state.connect("isAllChecked",this.selectAllChecked()),this.state.connect("isAllIndeterminate",this.selectAllIndeterminate())}toggleSelectAll(e,n){e?this.formationCommandDispatcher.unselectAll(this.structureId):n?this.formationCommandDispatcher.unselectAll(this.structureId):this.formationCommandDispatcher.selectAll(this.structureId)}getSelectorName(){return"gui-select-all"}selectModeMulti(){return this.formationWarehouse.onMode(this.structureId).pipe(P(e=>e===ai.MULTIPLE))}selectAllChecked(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(P(e=>e.isAllSelected()))}selectAllIndeterminate(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(P(e=>e.isIndeterminate()))}static \u0275fac=function(n){return new(n||i)(c(x),c(se),c(_t),c(Rt))};static \u0275cmp=I({type:i,selectors:[["div","gui-select-all",""]],features:[ge([tt]),C],attrs:fF,decls:1,vars:1,consts:[[4,"guiLet"],[3,"checked","gui-tooltip","indeterminate","changed",4,"ngIf"],[3,"changed","checked","gui-tooltip","indeterminate"]],template:function(n,r){n&1&&D(0,vF,2,1,"ng-container",0),n&2&&m("guiLet",r.state$)},dependencies:[je,It,Pn,bd],encapsulation:2,changeDetection:0})}return i})(),rO=(()=>{class i extends Es{constructor(e,n){super(e,n)}getSelectorName(){return"gui-structure-column-menu-icon"}static \u0275fac=function(n){return new(n||i)(c(x),c(B))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-menu-icon",""]],features:[C],attrs:xF,decls:4,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 7.46"],["x1","9.57","y1","3.73","x2","0.75","y2","3.73",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-1"],["x1","9.57","y1","6.71","x2","0.75","y2","6.71",1,"cls-1"]],template:function(n,r){n&1&&(Ke(),h(0,"svg",0),b(1,"line",1)(2,"line",2)(3,"line",3),g())},encapsulation:2,changeDetection:0})}return i})(),oO=(()=>{class i extends qe{structureColumnConfigService;headerDialogContainer;column;structureColumnMenuConfigArchive=_(qa);isEnabled$=this.selectIsEnabled();constructor(e,n,r){super(n,e),this.structureColumnConfigService=r}openConfigDialog(){this.structureColumnConfigService.open(this.headerDialogContainer,this.column)}getSelectorName(){return"gui-structure-column-config-trigger"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(P(e=>e.isEnabled()))}static \u0275fac=function(n){return new(n||i)(c(x),c(B),c(gh))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-column-config-trigger",""]],viewQuery:function(n,r){if(n&1&&X(_F,5,x),n&2){let o;L(o=z())&&(r.headerDialogContainer=o.first)}},inputs:{column:"column"},features:[C],attrs:yF,decls:1,vars:1,consts:[["headerDialogContainer",""],["class","gui-header-menu-icon-wrapper",3,"click",4,"guiIf"],[1,"gui-header-menu-icon-wrapper",3,"click"],["gui-structure-menu-icon","",3,"ngClass"]],template:function(n,r){n&1&&D(0,wF,3,1,"div",1),n&2&&m("guiIf",r.isEnabled$)},dependencies:[Ki,lx,rO],encapsulation:2,changeDetection:0})}return i})(),sO=(()=>{class i extends qe{elementRef;injector;changeDetectorRef;compositionId;structureId;structureSelectCustomService;formationCommandDispatcher;sortingCommandDispatcher;selectCustomContainer;columns;showSelection=!1;showCustom=!0;constructor(e,n,r,o,s,a,l,d){super(r,e),this.elementRef=e,this.injector=n,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.structureSelectCustomService=a,this.formationCommandDispatcher=l,this.sortingCommandDispatcher=d}toggleSort(e){e.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(e.getFieldId(),this.compositionId,this.structureId)}openConfigDialog(){this.structureSelectCustomService.open(this.selectCustomContainer)}getSelectorName(){return"gui-structure-header-columns"}static \u0275fac=function(n){return new(n||i)(c(x),c(ve),c(B),c(et),c(se),c(xC),c(_t),c(qt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header-columns","","columns",""]],viewQuery:function(n,r){if(n&1&&X(CF,5,x),n&2){let o;L(o=z())&&(r.selectCustomContainer=o.first)}},inputs:{columns:"columns",showSelection:"showSelection"},features:[ge([gh,xC]),C],attrs:IF,decls:2,vars:2,consts:[["class",`gui-header-cell gui-row-checkbox + gui-flex gui-justify-between + gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border + gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between + gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border + gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"class","ngClass","width","style","click",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis",3,"click","ngClass"],[1,"gui-header-title"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","gui-ml-6","gui-structure-arrow-icon","",3,"position","sort",4,"ngIf"],[1,"gui-header-menu"],["gui-structure-column-config-trigger","",3,"column"],["gui-structure-arrow-icon","",1,"gui-ml-6",3,"position","sort"]],template:function(n,r){n&1&&D(0,EF,2,0,"div",0)(1,TF,6,13,"div",1),n&2&&(m("ngIf",r.showSelection),u(),m("ngForOf",r.columns))},dependencies:[Ki,rt,je,_n,WC,oO,px],encapsulation:2,changeDetection:0})}return i})(),aO=(()=>{class i extends gt{elementRef;injector;changeDetectorRef;compositionId;structureId;formationCommandDispatcher;sortingCommandDispatcher;groups;showGroups;checkboxSelection=!1;globalSearching=!1;constructor(e,n,r,o,s,a,l){super(e),this.elementRef=e,this.injector=n,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.formationCommandDispatcher=a,this.sortingCommandDispatcher=l}toggleSort(e){e.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(e.getFieldId(),this.compositionId,this.structureId)}isSortAsc(e){return e.getSortStatus()===ct.ASC}isSortDesc(e){return e.getSortStatus()===ct.DESC}isGlobalSortEnabled(){return this.globalSearching}getSelectorName(){return"gui-structure-header-groups"}static \u0275fac=function(n){return new(n||i)(c(x),c(ve),c(B),c(et),c(se),c(_t),c(qt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header-groups","","groups","","checkboxSelection",""]],inputs:{groups:"groups",showGroups:"showGroups",checkboxSelection:"checkboxSelection"},features:[ge([gh]),C],attrs:MF,decls:2,vars:2,consts:[["class",`gui-header-cell gui-row-checkbox gui-flex gui-justify-between + gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border + gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between + gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border + gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-header-title"]],template:function(n,r){n&1&&D(0,FF,2,0,"div",0)(1,RF,3,3,"div",1),n&2&&(m("ngIf",r.checkboxSelection),u(),m("ngForOf",r.groups))},dependencies:[rt,je,WC],encapsulation:2,changeDetection:0})}return i})(),cO=(()=>{class i extends gt{structureFilterCommandService;formBuilder;cd;effects;structureId;columns;closed=new W;filterFieldName="phrase";filterForm;filterMode=!1;constructor(e,n,r,o,s,a){super(s),this.structureFilterCommandService=e,this.formBuilder=n,this.cd=r,this.effects=o,this.structureId=a,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnInit(){this.effects.register(this.selectFilterFormChanges(),e=>{this.filter(e[this.filterFieldName])})}filter(e){e==null&&(e="")}clearFilters(){this.filterForm.reset()}turnOnFilterMode(){this.filterMode=!0,this.cd.detectChanges()}turnOffFilterMode(){this.filterMode=!1,this.cd.detectChanges()}getSelectorName(){return""}selectFilterFormChanges(){return Mn(this.filterForm.valueChanges)}static \u0275fac=function(n){return new(n||i)(c(_i),c(xi),c(B),c(fu),c(x),c(se))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header-filters","","columns",""]],inputs:{columns:"columns"},outputs:{closed:"closed"},features:[ge([fu]),C],attrs:AF,decls:2,vars:2,consts:[[4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between + gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border + gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[3,"click"],[3,"options","selected"],[3,"formGroup"],["type","text","gui-input","",3,"formControlName"],["gui-button","",3,"click"]],template:function(n,r){n&1&&D(0,NF,2,1,"ng-container",0)(1,jF,8,5,"ng-container",0),n&2&&(m("ngIf",!r.filterMode),u(),m("ngIf",r.filterMode))},dependencies:[rt,je,Oi,ii,Ri,Ai,$t,vi,on,vd,pd],encapsulation:2,changeDetection:0})}return i})(),GC=(()=>{class i extends uo{filterWarehouse;formationWarehouse;compositionTemplateWarehouse;state=_(tt);compositionWarehouse=_(At);structureId=_(se);compositionId=_(et);verticalFormationWarehouse=_(un);state$=this.state.select();width$=this.compositionWarehouse.onContainerWidth(this.compositionId).pipe(P(e=>({width:e})));filterHeaderHeight$=this.verticalFormationWarehouse.onRowHeight(this.structureId).pipe(P(e=>({height:+e+2})));constructor(e,n,r,o){super(e),this.filterWarehouse=n,this.formationWarehouse=r,this.compositionTemplateWarehouse=o,this.state.setValue({headerColumns:[],filterRowEnabled:!1,showGroups:!1}),this.state.connect("showSelection",this.selectShowSelection()),this.state.connect("headerColumns",this.compositionTemplateWarehouse.onHeaderCols(this.compositionId)),this.state.connect("filterRowEnabled",this.filterWarehouse.onFilteringEnabled(this.structureId)),this.state.connect("showGroups",this.selectShowGroups()),this.state.connect("groups",this.selectGroups())}getSelectorName(){return"gui-structure-header"}selectGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(P(e=>e.getGroups()))}selectShowGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(P(e=>e.isVisible()))}selectShowSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.CHECKBOX||e===xt.RADIO))}static \u0275fac=function(n){return new(n||i)(c(x),c(Vi),c(Rt),c(Bc))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-header",""]],features:[ge([tt]),C],attrs:VF,decls:3,vars:3,consts:[[4,"guiLet"],["class","gui-header","gui-structure-header-columns","",3,"columns","guiStyle","showSelection",4,"guiLet"],["class","gui-header","gui-structure-header-groups","",3,"checkboxSelection","groups",4,"ngIf"],["gui-structure-header-groups","",1,"gui-header",3,"checkboxSelection","groups"],["gui-structure-header-columns","",1,"gui-header",3,"columns","guiStyle","showSelection"],["class","gui-header","gui-structure-header-filters","",3,"columns","guiStyle",4,"ngIf"],["gui-structure-header-filters","",1,"gui-header",3,"columns","guiStyle"]],template:function(n,r){n&1&&D(0,zF,2,1,"ng-container",0)(1,BF,1,3,"div",1)(2,$F,2,1,"ng-container",0),n&2&&(m("guiLet",r.state$),u(),m("guiLet",r.state$),u(),m("guiLet",r.state$))},dependencies:[je,It,eA,sO,aO,cO],encapsulation:2,changeDetection:0})}return i})(),qC=(()=>{class i{platformId;constructor(e){this.platformId=e}on(e){return St(this.platformId)?Mn(new gi(n=>{let r=new ResizeObserver(o=>{o&&o.length>0&&n.next(o[0].contentRect)});return r.observe(e),()=>r.disconnect()}).pipe(v_(25))):vp()}destroy(e){}static \u0275fac=function(n){return new(n||i)(v(Ue))};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),Ut=function(i){return i[i.NONE=0]="NONE",i[i.ADD=1]="ADD",i[i.RANGE=2]="RANGE",i}(Ut||{}),vs=class{subject$=new Tt(1);constructor(){}emit(t){this.subject$.next(t)}on(){return this.subject$.toObservable()}},uc=class{itemId;columnFieldId;value;constructor(t,e,n){this.itemId=t,this.columnFieldId=e,this.value=n}getItemId(){return this.itemId}getColumnFieldId(){return this.columnFieldId}getValue(){return this.value}},lO=(()=>{class i extends qe{changeDetectorRef;structureId;sourceCommandService;cellContainerRef;entity;cell;editContext;valueChanges$;status$;actualValue;constructor(e,n,r,o){super(e,n),this.changeDetectorRef=e,this.structureId=r,this.sourceCommandService=o}ngOnChanges(e){Re(e.entity,()=>{this.initEditContext()}),Re(e.cell,()=>{this.initEditContext()})}ngOnInit(){this.initEditContext()}getSelectorName(){return"gui-structure-cell-edit-boolean"}submitChanges(){let e=this.entity.getId(),n=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new uc(e,r,n),this.structureId)}initEditContext(){this.valueChanges$=new vs,this.status$=new vs,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:!1,parent:this.cellContainerRef},this.observeValueChanges(),this.status$.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case bs.SUBMIT:this.submitChanges();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(e=>{this.actualValue=e})}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(Wt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-cell-edit-boolean","","entity","","cell",""]],viewQuery:function(n,r){if(n&1&&X(UF,7),n&2){let o;L(o=z())&&(r.cellContainerRef=o.first)}},inputs:{entity:"entity",cell:"cell"},features:[C,G],attrs:WF,decls:3,vars:2,consts:[["cellContainer",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&(h(0,"span",null,0),D(2,GF,1,0,"ng-container",1),g()),n&2&&(u(2),m("ngTemplateOutlet",r.cell.editTemplate)("ngTemplateOutletContext",r.editContext))},dependencies:[_n],encapsulation:2,changeDetection:0})}return i})(),dO=(()=>{class i extends qe{changeDetectorRef;elementRef;structureId;compositionId;structureCellEditStore;cellEditCloseAllService;sourceCommandService;compositionWarehouse;entity;cell;editMode;cellEditorManager;searchPhrase;rowIndex;columnIndex;inEditMode=!1;editContext;valueChanges$;status$;actualValue;isHighlighted;constructor(e,n,r,o,s,a,l,d){super(e,n),this.changeDetectorRef=e,this.elementRef=n,this.structureId=r,this.compositionId=o,this.structureCellEditStore=s,this.cellEditCloseAllService=a,this.sourceCommandService=l,this.compositionWarehouse=d}ngOnInit(){this.subscribe(this.compositionWarehouse.onHighlightedColumn(new gs(this.cell.columnDefinitionId.toString()),this.compositionId),e=>{this.isHighlighted=e})}ngAfterViewInit(){super.ngAfterViewInit(),this.subscribeWithoutRender(this.cellEditCloseAllService.onCloseAll(),()=>{this.exitEditMode()})}isCellEditingEnabled(){return this.cellEditorManager.isEnabled(this.cell.getValue(this.entity),this.entity.getSourceItem(),this.rowIndex)&&this.cell.isCellEditingEnabled()}enterEditMode(e=!0){this.isCellEditingEnabled()&&(this.cellEditCloseAllService.closeAll(),_p(0).pipe(this.takeUntil()).subscribe(()=>{this.inEditMode=!0,this.valueChanges$=new vs,this.status$=new vs,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:e,parent:this.elementRef},this.observeFieldStatus(),this.observeValueChanges(),this.publishEditEnter(),e?this.changeDetectorRef.detectChanges():this.changeDetectorRef.markForCheck()}))}exitEditMode(){this.inEditMode=!1,this.changeDetectorRef.detectChanges()}submitChangesAndExit(){let e=this.entity.getId(),n=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new uc(e,r,n),this.structureId),this.exitEditMode()}getSelectorName(){return"gui-structure-cell"}observeFieldStatus(){this.status$.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case bs.SUBMIT:this.submitChangesAndExit(),this.publishEditSubmit();break;case bs.CANCEL:this.exitEditMode(),this.publishEditCancel();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(e=>{this.actualValue=e})}publishEditState(e){this.structureCellEditStore.next(e)}publishEditEnter(){this.publishEditState(zr.ENTER)}publishEditCancel(){this.publishEditState(zr.CANCEL)}publishEditSubmit(){this.publishEditState(zr.SUBMIT)}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(se),c(et),c(Ed),c(SC),c(Wt),c(At))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-cell","","entity","","cell",""]],inputs:{entity:"entity",cell:"cell",editMode:"editMode",cellEditorManager:"cellEditorManager",searchPhrase:"searchPhrase",rowIndex:"rowIndex",columnIndex:"columnIndex"},features:[C],attrs:qF,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","gui-cell-edit-mode",4,"ngIf"],[3,"click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"gui-cell-edit-mode"],["gui-structure-cell-edit-boolean","",3,"cell","entity"]],template:function(n,r){n&1&&D(0,eR,3,2,"ng-container",0)(1,tR,2,2,"ng-container",0),n&2&&(m("ngIf",!r.cell.isBooleanDataType()||r.cell.isBooleanDataType()&&!r.isCellEditingEnabled()),u(),m("ngIf",r.cell.isBooleanDataType()&&r.isCellEditingEnabled()))},dependencies:[Ki,je,_n,lO],encapsulation:2,changeDetection:0})}return i})(),YC=(()=>{class i extends qe{changeDetectorRef;elRef;structureId;formationWarehouse;formationCommandDispatcher;cssClassModifier;entity;columns;editMode;cellEditing;searchPhrase;index;rowStyle;rowClass;checkboxSelection=!1;radioSelection=!1;selectedItem=!1;row;styleModifier;classModifier;constructor(e,n,r,o,s,a){super(e,n),this.changeDetectorRef=e,this.elRef=n,this.structureId=r,this.formationWarehouse=o,this.formationCommandDispatcher=s,this.cssClassModifier=a,this.styleModifier=new hh(this.elRef.nativeElement),this.classModifier=new zc(this.elRef.nativeElement)}ngOnChanges(e){Re(e.entity,()=>{this.checkSelectedItem(),this.updateRowClass(e.entity.previousValue),this.updateRowStyle(e.entity.previousValue)}),Re(e.rowClass,()=>{this.updateRowClass()}),Re(e.rowStyle,()=>{this.updateRowStyle()})}ngOnInit(){this.subscribeWithoutRender(this.formationWarehouse.onRowSelectedReadModel(this.structureId),e=>{this.row=e;let n=this.selectedItem;this.checkSelectedItem(),n!==this.selectedItem&&(n?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement),this.changeDetectorRef.detectChanges())})}ngAfterViewInit(){super.ngAfterViewInit(),this.updateRowClass(),this.updateRowStyle()}trackByFn(){return 0}selectCheckbox(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),Ut.ADD,this.structureId)}selectRadio(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),Ut.NONE,this.structureId)}checkSelectedItem(){if(this.row){let e=this.selectedItem;this.selectedItem=this.row.isSelected(this.entity.getId()),e!==this.selectedItem&&(e?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement))}}getSelectorName(){return"gui-structure-row"}calculateRowStyle(e){return this.rowStyle?typeof this.rowStyle.style=="string"?this.rowStyle.style||"":typeof this.rowStyle.styleFunction=="function"?this.rowStyle.styleFunction(e.getSourceItem(),e.getPosition()):"":""}updateRowStyle(e){if(e){let r=this.calculateRowStyle(e);this.removeRowStyles(r)}let n=this.calculateRowStyle(this.entity);this.renderRowStyles(n)}removeRowStyles(e){if(!e)return;let n=e.split(";");for(let r=0;r{class i extends qe{formationPublisher;structureEditModeArchive;formationWarehouse;structureWarehouse;verticalFormationWarehouse;structureId;schemaReadModelRootId;searchWarehouse;schemaWarehouse;source;columns;state=_(tt);state$=this.state.select();constructor(e,n,r,o,s,a,l,d,p,w,E){super(n,e),this.formationPublisher=r,this.structureEditModeArchive=o,this.formationWarehouse=s,this.structureWarehouse=a,this.verticalFormationWarehouse=l,this.structureId=d,this.schemaReadModelRootId=p,this.searchWarehouse=w,this.schemaWarehouse=E,this.state.setValue({checkboxSelection:!1,radioSelection:!1,searchPhrase:""}),this.state.connect("editMode",this.structureEditModeArchive.on()),this.state.connect("selectionEnabled",this.formationWarehouse.onSelectionEnabled(this.structureId)),this.state.connect("rowHeight",this.verticalFormationWarehouse.onRowHeight(this.structureId)),this.state.connect("cellEditing",this.structureWarehouse.onEditManager(this.structureId)),this.state.connect("schemaRowClass",this.schemaWarehouse.onRowClass(this.schemaReadModelRootId)),this.state.connect("schemaRowStyle",this.schemaWarehouse.onRowStyle(this.schemaReadModelRootId)),this.state.connect("checkboxSelection",this.selectCheckboxSelection()),this.state.connect("radioSelection",this.selectRadioSelection()),this.state.connect("searchPhrase",this.selectSearchPhrase())}trackByFn(){return 0}translateY(e,n){return`translateY(${e*n}px)`}toggleSelectedRow(e,n,r,o){n&&!r&&!o&&this.formationPublisher.toggleSelectedRow(e.getId(),Ut.NONE,this.structureId)}getSelectorName(){return"gui-structure-content"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.CHECKBOX))}selectRadioSelection(){return this.formationWarehouse.onType(this.structureId).pipe(P(e=>e===xt.RADIO))}selectSearchPhrase(){return Mn(gn(Ji(this.searchWarehouse.onPhrase(this.structureId)),Ji(this.searchWarehouse.onHighlight(this.structureId)))).pipe(P(([e,n])=>n?e:""))}static \u0275fac=function(n){return new(n||i)(c(x),c(B),c(_t),c(Sd),c(Rt),c(mo),c(un),c(se),c(lt),c(Hi),c(Yt))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-content",""]],inputs:{source:"source",columns:"columns"},features:[ge([tt]),C],attrs:sR,decls:1,vars:1,consts:[["class","gui-content",4,"guiLet"],[1,"gui-content"],["class","gui-row","gui-structure-row","",3,"cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase","height","click",4,"ngFor","ngForOf","ngForTrackBy"],["gui-structure-row","",1,"gui-row",3,"click","cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase"]],template:function(n,r){n&1&&D(0,dR,2,2,"div",0),n&2&&m("guiLet",r.state$)},dependencies:[Ki,rt,G_,It,YC],encapsulation:2,changeDetection:0})}return i})(),KC=(()=>{class i extends qe{elRef;ngZone;structureId;compositionId;structureCommandService;structureWarehouse;verticalFormationWarehouse;sourceWarehouse;compositionCommandInvoker;compositionWarehouse;compositionTemplateWarehouse;formationWarehouse;resizeDetector;structureInitialValuesReadyArchive;structureParent;sourceCollectionRef;columns=[];source=[];height;rowColoring;autoResizeWidthEnabled=!1;scrollObservation$=new Ze;styleModifier;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y){super(e,n),this.elRef=n,this.ngZone=r,this.structureId=o,this.compositionId=s,this.structureCommandService=a,this.structureWarehouse=l,this.verticalFormationWarehouse=d,this.sourceWarehouse=p,this.compositionCommandInvoker=w,this.compositionWarehouse=E,this.compositionTemplateWarehouse=Q,this.formationWarehouse=ne,this.resizeDetector=ce,this.structureInitialValuesReadyArchive=O,this.structureParent=Y,this.styleModifier=new hh(this.elRef.nativeElement)}ngOnInit(){this.subscribeWithoutRender(this.verticalFormationWarehouse.onContainerHeight(this.structureId),e=>{this.setContainerHeight(e)}),this.subscribe(Mn(Ji(this.structureInitialValuesReadyArchive.once(this.structureId)).pipe(g_(()=>gn(Ji(this.sourceWarehouse.onItems(this.structureId)),Ji(this.compositionTemplateWarehouse.onTemplateCols(this.compositionId)))))),e=>{this.source=e[0],this.columns=e[1]}),this.subscribeWithoutRender(this.compositionWarehouse.onResizeWidth(this.compositionId),e=>{this.autoResizeWidthEnabled=e})}ngAfterViewInit(){super.ngAfterViewInit(),this.structureParent&&this.subscribeWithoutRender(this.resizeDetector.on(this.structureParent.getElementRef().nativeElement).pipe(ye(()=>this.autoResizeWidthEnabled),P(e=>e.width),ti()),e=>{this.recalculateContainer(e)}),this.subscribeWithoutRender(this.compositionWarehouse.onContainerWidth(this.compositionId),e=>{this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setWidth(e)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onEnabled(this.structureId),e=>{e?this.enableScrollObservation():this.disableScrollObservation()}),this.subscribeWithoutRender(this.structureWarehouse.on(this.structureId).pipe(ye(e=>e.isVerticalScrollEnabled())),e=>{let n=e.getTopMargin(),r=e.getSourceHeight();this.setSourceHeight(n,r)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onScrollBarPosition(this.structureId),e=>{this.elRef.nativeElement.scrollTop=e})}ngOnDestroy(){super.ngOnDestroy(),this.resizeDetector.destroy(this.elRef.nativeElement)}getSelectorName(){return"gui-structure-container"}setContainerHeight(e){this.height=e,this.styleModifier.getHost().setHeight(e)}setSourceHeight(e,n){this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setPaddingTop(e),this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setHeight(n)}recalculateContainer(e){this.autoResizeWidthEnabled&&this.compositionCommandInvoker.setContainerWidth(e,this.compositionId)}enableScrollObservation(){this.ngZone.runOutsideAngular(()=>{ya(this.elRef.nativeElement,"scroll").pipe(Mt(this.scrollObservation$)).subscribe(e=>{let n=e.target.scrollTop;this.structureCommandService.setScrollPosition(n,this.structureId)})})}disableScrollObservation(){this.scrollObservation$.next(),this.scrollObservation$.complete()}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(de),c(se),c(et),c(Pt),c(mo),c(un),c(Qt),c(ci),c(At),c(Bc),c(Rt),c(qC),c(ks),c(kC,8))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-container",""]],viewQuery:function(n,r){if(n&1&&X(uR,5,x),n&2){let o;L(o=z())&&(r.sourceCollectionRef=o.first)}},features:[C],attrs:mR,decls:3,vars:2,consts:[["sourceCollection",""],[1,"gui-h-full","gui-w-full","gui-absolute","gui-structure-container-element"],["gui-structure-content","",3,"columns","source"]],template:function(n,r){n&1&&(h(0,"div",1,0),b(2,"div",2),g()),n&2&&(u(2),m("columns",r.columns)("source",r.source))},dependencies:[QC],encapsulation:2,changeDetection:0})}return i})(),ZC=(()=>{class i extends qe{bannerPanel$;constructor(e,n){super(e,n)}initObservables(){this.bannerPanel$=this.selectBannerPanelTemplate()}selectBannerPanelTemplate(){return this.onBannerPanelConfig().pipe(P(e=>typeof e.template=="function"?e.template():e.template))}static \u0275fac=function(n){return new(n||i)(c(B),c(x))};static \u0275dir=N({type:i,features:[C]})}return i})(),uO=(()=>{class i extends ZC{structureTitlePanelConfigArchive;constructor(e,n,r){super(n,r),this.structureTitlePanelConfigArchive=e,this.initObservables()}onBannerPanelConfig(){return this.structureTitlePanelConfigArchive.on()}getSelectorName(){return"gui-structure-title-panel"}static \u0275fac=function(n){return new(n||i)(c(Za),c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-title-panel",""]],features:[C],attrs:hR,decls:3,vars:6,consts:[[1,"gui-title-panel","gui-p-6","gui-border-b","gui-border-b-solid",3,"innerHTML"]],template:function(n,r){n&1&&(b(0,"div",0),J(1,"guiPush"),J(2,"guiSafe")),n&2&&m("innerHTML",cr(2,3,ie(1,1,r.bannerPanel$),"html"),sr)},dependencies:[Ss,ux],encapsulation:2,changeDetection:0})}return i})(),mO=(()=>{class i extends ZC{structureFooterPanelConfigArchive;constructor(e,n,r){super(n,r),this.structureFooterPanelConfigArchive=e,this.initObservables()}onBannerPanelConfig(){return this.structureFooterPanelConfigArchive.on()}getSelectorName(){return"gui-structure-footer-panel"}static \u0275fac=function(n){return new(n||i)(c(Xa),c(B),c(x))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-footer-panel",""]],features:[C],attrs:gR,decls:3,vars:6,consts:[[1,"gui-footer-panel","gui-p-6","gui-border-t","gui-border-t-solid",3,"innerHTML"]],template:function(n,r){n&1&&(b(0,"div",0),J(1,"guiPush"),J(2,"guiSafe")),n&2&&m("innerHTML",cr(2,3,ie(1,1,r.bannerPanel$),"html"),sr)},dependencies:[Ss,ux],encapsulation:2,changeDetection:0})}return i})(),hO=(()=>{class i extends qe{structureDefinition;className;structureId=_(se);summariesWarehouse=_(Yr);structureHeaderTopEnabledArchive=_(cx);structureHeaderBottomEnabledArchive=_(Ga);searchWarehouse=_(Hi);pagingWarehouse=_(ln);structureWarehouse=_(mo);structureInfoPanelArchive=_($n);structureTitlePanelConfigArchive=_(Za);structureFooterPanelConfigArchive=_(Xa);bottomSummariesPanelEnabled$=this.summariesWarehouse.onBottomEnabled(this.structureId);contentCssClass;headerCssClass;headerTopClasses;headerBottomClasses;topHeaderEnabled$=this.structureHeaderTopEnabledArchive.on();bottomHeaderEnabled$=this.structureHeaderBottomEnabledArchive.on();footerPanelEnabled$=this.selectFooterPanelEnabled();items$=this.selectItems();topSummariesPanelEnabled$=this.summariesWarehouse.onTopEnabled(this.structureId);searchEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);titlePanelEnabled$=this.selectTitlePanelEnabled();infoPanelEnabled$=this.selectInfoPanelEnabled();pagingModel$=this.pagingWarehouse.onPaging(this.structureId);constructor(e,n,r,o){super(e,n),this.structureDefinition=r,this.className=o,this.headerCssClass=`gui-${this.className}-header`,this.contentCssClass=`gui-${this.className}-content`,this.headerTopClasses=this.headerCssClass+" gui-header-top",this.headerBottomClasses=this.headerCssClass+" gui-header-bottom"}isColumnHeaderTopEnabled(e){return this.structureDefinition.isHeaderEnabled()&&e}isColumnHeaderBottomEnabled(e){return this.structureDefinition.isHeaderEnabled()&&e}isPagingTopEnabled(e){return this.structureDefinition.getTopPaging().isEnabled()&&e.isPagerTop()}isPagingBottomEnabled(e){return this.structureDefinition.getBottomPaging().isEnabled()&&e.isPagerBottom()}getSelectorName(){return"gui-structure-blueprint"}selectTitlePanelEnabled(){return this.structureTitlePanelConfigArchive.on().pipe(P(e=>e.enabled))}selectInfoPanelEnabled(){return this.structureInfoPanelArchive.on().pipe(P(e=>e.isEnabled()))}selectFooterPanelEnabled(){return this.structureFooterPanelConfigArchive.on().pipe(P(e=>e.enabled))}selectItems(){return this.structureWarehouse.on(this.structureId).pipe(P(e=>e.getEntities()))}static \u0275fac=function(n){return new(n||i)(c(B),c(x),c(lo),c(Lf))};static \u0275cmp=I({type:i,selectors:[["div","gui-structure-blueprint",""]],features:[C],attrs:pR,decls:15,vars:18,consts:[["gui-structure-title-panel","",4,"guiIf"],["gui-structure-top-panel","",4,"guiIf"],[4,"guiLet"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-top",3,"enabled"],["gui-structure-container","",3,"ngClass"],["gui-empty-source","",3,"items"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-bottom",3,"enabled"],["gui-structure-info-panel","",4,"guiIf"],["gui-structure-title-panel",""],["gui-structure-top-panel",""],["gui-paging","",3,"position",4,"ngIf"],["gui-paging","",3,"position"],["gui-structure-header","",3,"ngClass",4,"ngIf"],["gui-structure-header","",3,"ngClass"],["gui-structure-footer-panel","",4,"ngIf"],["gui-structure-footer-panel",""],["gui-structure-info-panel",""]],template:function(n,r){n&1&&(D(0,fR,1,0,"div",0)(1,bR,1,0,"div",1)(2,xR,2,1,"ng-container",2),b(3,"div",3),J(4,"guiPush"),D(5,yR,2,1,"ng-container",2),b(6,"div",4)(7,"div",5),J(8,"guiPush"),D(9,CR,2,1,"ng-container",2),b(10,"div",6),J(11,"guiPush"),D(12,kR,2,1,"ng-container",2)(13,SR,2,1,"ng-container",2)(14,DR,1,0,"div",7)),n&2&&(m("guiIf",r.titlePanelEnabled$),u(),m("guiIf",r.searchEnabled$),u(),m("guiLet",r.pagingModel$),u(),m("enabled",ie(4,12,r.topSummariesPanelEnabled$)),u(2),m("guiLet",r.topHeaderEnabled$),u(),m("ngClass",r.contentCssClass),u(),m("items",ie(8,14,r.items$)),u(2),m("guiLet",r.bottomHeaderEnabled$),u(),m("enabled",ie(11,16,r.bottomSummariesPanelEnabled$)),u(2),m("guiLet",r.footerPanelEnabled$),u(),m("guiLet",r.pagingModel$),u(),m("guiIf",r.infoPanelEnabled$))},dependencies:[Ki,je,It,lx,YR,AA,GA,QA,KA,GC,KC,uO,mO,Ss],encapsulation:2,changeDetection:0})}return i})();function gO(i){return new se("gui-grid-"+i.generateId())}function pO(i){return new et("gui-grid-"+i.generateId())}function fO(i){return new lt("gui-grid-"+i.generateId())}var XC=(()=>{class i extends BR{elementRef;detectorRef;injector;structureDefinition;structureWarehouse;compositionWarehouse;schemaStylesManager;schemaReadModelRootId;structureDetailViewService;loaderEnabled=!1;circleLoaderEnabled=!0;initialLoaderAnimation=!1;styleModifier;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y,Ie,pt,Qe,Ui,Ci,Wi,bo,Rh,Ah,e_,t_,i_,Q1,K1,Z1,X1,n_,r_,J1,ek,tk,ik,nk,o_,rk){super(r_,n_,X1,e,n,o_,ce,r,o,l,d,s,a,w,E,Q,ne,O,Y,pt,Qe,Ui,bo,Rh,Ah,Q1,K1,Z1),this.elementRef=n_,this.detectorRef=r_,this.injector=J1,this.structureDefinition=ek,this.structureWarehouse=tk,this.compositionWarehouse=ik,this.schemaStylesManager=nk,this.schemaReadModelRootId=o_,this.structureDetailViewService=rk,this.styleModifier=new hh(this.elementRef.nativeElement),ce.create(this.structureId),E.create(this.compositionId),w.create(this.schemaId)}ngOnInit(){super.ngOnInit(),this.subscribe(this.structureWarehouse.on(this.structureId),e=>{this.loaderEnabled=e.getSource().isLoading(),this.circleLoaderEnabled=e.isLoaderVisible(),this.loaderEnabled&&!this.initialLoaderAnimation&&(this.initialLoaderAnimation=!0),this.detectorRef.detectChanges()}),this.structureDetailViewService.init(this.elementRef)}ngAfterViewInit(){this.structureInitialValuesReadyArchive.next(this.structureId,!0);let e=this.elementRef.nativeElement.offsetWidth;e>0?this.compositionCommandDispatcher.setContainerWidth(e,this.compositionId):_p(0).pipe(this.takeUntil()).subscribe(()=>{e=this.elementRef.nativeElement.offsetWidth,e>0&&this.compositionCommandDispatcher.setContainerWidth(e,this.compositionId)}),this.schemaStylesManager.init(this.elementRef,this.schemaReadModelRootId),this.subscribeWithoutRender(this.compositionWarehouse.onWidth(this.compositionId),n=>{this.styleModifier.getHost().setWidth(n)})}isBorderEnabled(){return this.structureDefinition.isBorderEnabled()}getStructureId(){return this.structureId}getElementRef(){return this.elementRef}getSelectorName(){return"gui-structure"}static \u0275fac=function(n){return new(n||i)(c(se),c(et),c(Nt),c(Li),c(Wt),c($r),c(qt),c(Gt),c(qr),c(Ot),c(ci),c(Wn),c(Qn),c(Pt),c(Sd),c(cn),c($n),c(Md),c(Ed),c(Ur),c(qa),c(uh),c(_t),c(zi),c(Ga),c(Rd),c(Za),c(Xa),c(Bi),c(yi),c(ks),c(Un),c(x),c(B),c(ve),c(lo),c(mo),c(At),c(pC),c(lt),c(fC))};static \u0275cmp=I({type:i,selectors:[["gui-structure"]],hostVars:3,hostBindings:function(n,r){n&2&&(ar("id",r.structureId.toString()),U("gui-structure-border",r.isBorderEnabled()))},features:[ge([{provide:se,useFactory:gO,deps:[Vr]},{provide:et,useFactory:pO,deps:[Vr]},{provide:lt,useFactory:fO,deps:[Vr]},pC,SC,Ed,Sd,$n,Md,qa,mh.forComponent(),mn.forComponent(),cx,Ga,Rd,fC,Za,Xa,{provide:zR,useExisting:i},{provide:rA,useExisting:i}]),C],decls:3,vars:5,consts:[["gui-structure-blueprint",""],[1,"gui-loading",3,"ngClass"],[3,"diameter","primary",4,"ngIf"],[3,"diameter","primary"]],template:function(n,r){n&1&&(b(0,"div",0),h(1,"div",1),D(2,MR,1,2,"gui-spinner",2),g()),n&2&&(u(),m("ngClass",Bh(2,TR,r.loaderEnabled,!r.loaderEnabled&&r.initialLoaderAnimation)),u(),m("ngIf",r.circleLoaderEnabled))},dependencies:[Ki,je,gC,hO],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-structure *,.gui-structure *:after,.gui-structure *:before{box-sizing:border-box}.gui-structure input{font-size:13px;outline:0}.gui-bold{font-weight:700}.gui-italic{font-style:italic}.gui-bar-view{width:100%}.gui-align-right{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;text-align:right;width:100%}.gui-align-left{text-align:left;width:100%}.gui-align-center{-ms-flex-pack:center;justify-content:center;text-align:center;width:100%}.gui-icon{cursor:pointer}.gui-icon svg{fill:#aaa;stroke:#aaa;transition:stroke .3s ease-in-out}.gui-icon svg:hover{fill:#464646!important;stroke:#464646!important}.gui-view-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gui-percentage-bar{background:#deebff;border-radius:4px;box-shadow:inset 1px 1px 2px #ccc;color:#0747a6;height:22px;padding:4px;position:relative;text-align:center;width:100%}.gui-percentage-bar .gui-percentage{background:#8abcfc;border-radius:4px;height:22px;left:0;position:absolute;top:0}.gui-percentage-bar .gui-percentage-view{color:#031d44;position:relative;width:100%}.gui-clear-search-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);width:16px}.gui-clear-search-icon:before,.gui-clear-search-icon:after{background-color:#aaa;border-radius:8px;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-clear-search-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-clear-search-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-clear-search-icon:hover:before,.gui-clear-search-icon:hover:after{background-color:#464646} +`,`.gui-structure,.gui-structure *{border-color:#d6d6d6;font-size:14px}.gui-structure input{color:#333;font-family:Arial}.gui-header{background:#f2f3f4;border-bottom:1px solid;border-color:inherit;height:36px}.gui-header .gui-header-cell.gui-header-sortable{cursor:pointer}.gui-header .gui-header-cell.gui-header-sortable:hover{background:#e6e7e8}.gui-header .gui-header-cell .gui-header-menu-icon{display:none}.gui-header .gui-header-cell:hover .gui-header-menu{cursor:pointer}.gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:block}.gui-header .gui-header-cell:last-of-type{border-right:0}.gui-header .gui-header-cell .gui-header-title{display:-ms-flexbox;display:flex;line-height:1.4em}.gui-header .gui-header-cell .gui-header-menu{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:16px;padding:16px;position:relative;right:0;width:16px}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:none;height:16px;width:16px}.gui-header-bottom .gui-header{border-bottom:0;border-color:inherit;border-top:1px solid}.gui-structure{background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;display:block;font-family:Arial;font-size:14px;position:relative}.gui-structure *{box-sizing:border-box}.gui-structure .gui-structure-header{display:block;height:100%;width:100%}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header{height:32px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell{padding:4px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell input{box-sizing:border-box;height:100%;padding:2px;position:relative;width:100%;border-color:#d6d6d6;border-style:solid;border-width:1px;font-size:13px}.gui-structure-container{display:block;height:100%;overflow:auto;overflow-x:hidden;position:relative;width:100%}.gui-structure-container .gui-structure-container-element{height:100%;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content{height:100%;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid transparent;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:last-child{border-bottom:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#ecedee}.gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#d0e8fb}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell{border-right:1px solid transparent;box-sizing:border-box;line-height:1em;overflow:hidden;padding:0;white-space:nowrap}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-view span{line-height:1.4em}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-button{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-boolean{-ms-flex-pack:center;justify-content:center}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox{line-height:24px;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox input{position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-chip{line-height:1em;margin:0;padding:4px 8px}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-badge{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-input{background:transparent;font-size:14px;padding:0;border-radius:0;border-style:none}.gui-structure-container .gui-cell{display:inline-block}.gui-structure-container .gui-cell:last-child .gui-cell-view{padding-right:20px}.gui-structure-container .gui-cell>span{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;padding:0 8px;width:100%}.gui-structure-container .gui-cell .gui-cell-edit-mode{border:2px solid #2185d0;height:100%;padding:6px}.gui-structure-container .gui-cell .gui-cell-edit-mode .gui-boolean-edit{margin-left:calc(50% - 11px)}.gui-structure-container .gui-cell .gui-cell-edit-mode input:focus{box-shadow:none;outline:none}.gui-vertical-grid .gui-structure-summaries-cell,.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell{border-right:1px solid;border-right-color:inherit}.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell:last-of-type,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell:last-of-type{border-right:0}.gui-vertical-grid .gui-row-checkbox{border-right:1px solid!important;border-right-color:inherit!important}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid;border-bottom-color:inherit}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row:last-of-type{border-bottom:0}.gui-rows-even .gui-row.even,.gui-rows-odd .gui-row.odd{background:#f7f8f9}.gui-structure-info-panel{-ms-flex-align:center;align-items:center;background:#f2f3f4;box-sizing:border-box;display:-ms-flexbox;display:flex;height:36px;-ms-flex-pack:justify;justify-content:space-between;padding:0 6px;width:100%;border-top-color:inherit;border-top-style:solid;border-top-width:1px}.gui-structure-info-panel p{margin:0}.gui-structure-info-panel p b{font-weight:700}.gui-structure-info-panel div button{background:#ccc;color:#fff;cursor:pointer;font-family:Arial;font-weight:700;height:16px;line-height:14px;padding:0;width:16px;border-color:transparent;border-radius:50%;border-style:solid;border-width:1px}.gui-structure-info-panel div button:focus{box-shadow:0 0 4px #ccc;outline:none}.gui-structure-border{border:1px solid;border-color:#d6d6d6}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.gui-loading{-ms-flex-line-pack:center;align-content:center;animation-duration:.2s;background:rgba(255,255,255,.8);border:1px solid;border-color:inherit;display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;left:0;opacity:0;position:absolute;top:0;visibility:hidden;width:100%}.gui-loading .gui-spinner{-ms-flex-item-align:center;align-self:center}.gui-loading.gui-loader-hidden{animation-name:fadeOut;opacity:0;visibility:visible;z-index:-1}.gui-loading.gui-loader-visible{animation-name:fadeIn;opacity:1;visibility:visible;z-index:1}.gui-text-highlight{background:#fff799;padding:0!important}.gui-title-panel{border-bottom-color:#d6d6d6}.gui-footer-panel{border-top-color:#d6d6d6}.gui-structure-schema-manager-icon{margin-right:16px}.gui-structure-schema-manager-icon svg{height:18px;margin-bottom:-1px;width:18px}.gui-row-radio{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-radio .gui-radio-button{height:24px;margin:0;padding:0;width:24px}.gui-row-checkbox{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-checkbox .gui-checkbox{height:24px;margin:0;padding:0;width:24px}.gui-select-all .gui-checkbox .gui-checkmark{top:0}.gui-structure-cell-edit-boolean{height:100%}.gui-column-highlighted{background:#fffddd}.gui-structure-column-manager>div:hover{background:#ecedee}.gui-structure-column-manager label{margin-bottom:0}.gui-structure-ordered-list li:hover{background:#ecedee} +`,`.gui-structure-column-menu-icon svg{height:16px;width:16px}.gui-structure-column-menu-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}.gui-structure-column-menu-arrow-icon{display:inline-block}.gui-structure-column-menu-arrow-icon svg{height:10px;width:12px}.gui-structure-column-menu-arrow-icon .gui-structure-column-menu-sort-icon svg{height:16px}.gui-structure-column-menu-arrow-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px} +`,`.gui-summaries-value{font-weight:700}.gui-structure-summaries-panel{background:#f2f3f4}.gui-structure-summaries-panel.gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top:1px solid #d6d6d6}.gui-structure-summaries-panel.gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom:1px solid #d6d6d6}.gui-structure-summaries-panel .gui-structure-summaries-cell{font-size:14px;padding-left:16px;padding-right:16px}.gui-structure-summaries-panel .gui-structure-summaries-cell:last-child{padding-right:20px}.gui-structure-summaries-panel .gui-structure-summaries-value{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;line-height:1em;overflow:hidden;padding:8px 0}.gui-structure-summaries-panel .gui-structure-summaries-value div .gui-math-symbol{position:relative;top:-1px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean,.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean span:nth-child(1){left:1px;position:absolute;top:-15px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median span:nth-child(1){left:1px;position:absolute;top:-8px} +`,`.gui-structure-column-manager-icon svg{height:16px;width:16px}.gui-structure-column-manager-icon .cls-1,.gui-structure-column-manager-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-column-manager-icon .cls-2{stroke-width:1.5px}.gui-structure-info-icon svg{height:16px;width:16px}.gui-structure-info-icon .cls-1{stroke-width:0}.gui-structure-info-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-info-panel div,.gui-structure-info-panel div button{display:inline-block}.gui-structure-info-panel .gui-right-section .gui-structure-column-manager-icon{margin-right:16px;position:relative}.gui-structure-info-panel .gui-right-section .gui-structure-info-icon{margin-right:4px;position:relative}.gui-structure-info-modal .gui-quote{color:#575757}.gui-structure-info-modal p{color:#333}.gui-structure-info-modal a{color:#2185d0}.gui-structure-info-modal a:hover{color:#59a9e5;text-decoration:underline} +`,`@media (max-width: 500px){.gui-paging>*{padding-left:4px}.gui-paging .gui-paging-stats{padding-left:4px}} +`,`.gui-header{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.gui-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.gui-content .gui-structure-cell-container,.gui-content .gui-row{display:-ms-flexbox;display:flex}.gui-content .gui-structure-cell-container .gui-cell,.gui-content .gui-row .gui-cell{display:inline-block}.gui-content .gui-structure-row-details{background:#80cbc4;display:block;height:200px;position:absolute;-ms-transform:translateY(0);transform:translateY(0);width:100%} +`,`.gui-inline-dialog-header-menu.gui-inline-dialog-wrapper .gui-inline-dialog-content{background:transparent;box-shadow:none}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-item-active{font-weight:700}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#fff}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#333}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#2185d0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 3px 7px #ccc;box-sizing:content-box;padding:0;width:225px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#333;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.left{padding:12px 16px 12px 12px;width:48%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.right{padding:12px 10px;width:52%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container{border:none;border-radius:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow{opacity:1}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu{width:125px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item{background:#fff;color:#333;display:-ms-flexbox;display:flex;padding:8px 8px 8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover .gui-sort-title svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg{margin-top:3px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#333;cursor:pointer;display:block;padding:8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#333;margin-left:12px;padding:8px 12px 8px 32px;width:169px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox label{display:inline-block;width:inherit} +`,`.gui-schema-manager-dialog .gui-schema-manager{min-width:180px}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select,.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox{color:#333}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select:nth-last-child(1),.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox:nth-last-child(1){margin-bottom:0}.gui-dialog-title{border-bottom:solid 1px #d6d6d6;font-size:18px;font-weight:700;margin-left:-16px;margin-right:-16px;padding-bottom:16px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-structure-schema-manager-select{padding:8px 0 24px}.gui-structure-dialog-column-manager ol{max-height:400px;min-width:250px} +`,`.gui-cell .gui-checkbox{display:block}.gui-cell .gui-chip{margin:0;padding:2px 8px}.gui-cell .gui-input{display:block;font-size:11px;padding:2px 4px;width:100%}.gui-cell .gui-button{padding:2px 8px}.gui-cell .gui-cell-number{display:block;width:100%}.gui-cell .gui-cell-boolean{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;text-align:center;width:100%}.gui-cell .gui-string-edit{width:100%} +`,`.gui-fabric{border-color:#d6d6d6;font-family:Arial;font-size:14px}.gui-fabric .gui-header-cell,.gui-fabric .gui-structure-header-columns,.gui-fabric .gui-structure-top-panel,.gui-fabric .gui-structure-info-panel,.gui-fabric .gui-paging{height:42px} +`,`.gui-material{border-color:#0000001f;font-family:Arial;font-size:14px}.gui-material *{border-color:#0000001f}.gui-material.gui-structure{border:0;border-radius:0;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003}.gui-material.gui-structure,.gui-material .gui-header{font-family:Arial}.gui-material .gui-header-cell,.gui-material .gui-structure-header-columns{height:56px}.gui-material .gui-header .gui-header-cell.gui-header-sortable:hover{background:transparent}.gui-material .gui-header-cell{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-material .gui-structure-header .gui-header{background:transparent;color:#464646;font-weight:700}.gui-material .gui-structure-header .gui-header .gui-header-cell{border-color:inherit}.gui-material .gui-cell .gui-button,.gui-material .gui-cell .gui-badge{padding:0}.gui-material .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-material .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-material .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-material .gui-structure-summaries-panel{background:#fff}.gui-material gui-structure-top-panel,.gui-material .gui-structure-info-panel,.gui-material .gui-paging{height:52px;padding-left:16px;padding-right:16px}.gui-material .gui-structure-info-panel{background:#fff;border-radius:0}.gui-material gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-material gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-material .gui-search-bar form input{border:0;outline:none} +`,`.gui-dark{border-color:#575757;border-radius:2px;color:#f0f0f0;font-family:Arial;font-size:14px}.gui-dark *{border-color:#575757;color:#f0f0f0}.gui-dark.gui-structure{border-radius:2px}.gui-dark .gui-header-cell,.gui-dark .gui-structure-header-columns{background:#333;height:46px}.gui-dark .gui-structure-border{border:none;box-shadow:5px 5px 10px 2px #1f1f1f}.gui-dark .gui-header-cell{border-bottom:1px solid;border-color:inherit;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-dark .gui-structure-header .gui-header{border-bottom-color:#666;color:#bdbdbd}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover{background:#525252}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#383838}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 1px 2px #525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-structure-column-manager ol li:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#666}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item{background:#383838;color:#f0f0f0;display:-ms-flexbox;display:flex}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#f0f0f0}.gui-dark .gui-structure-column-manager>div:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-dark.gui-rows-odd .gui-row.odd,.gui-dark.gui-rows-even .gui-row.even{background:#4f4f4f}.gui-dark .gui-horizontal-grid .gui-structure-container-element .gui-row .gui-cell{border-bottom-color:#666}.gui-dark .gui-paging.gui-paging-bottom{border-top-color:#666}.gui-dark .gui-paging.gui-paging-top{border-bottom-color:#666}.gui-dark ::-webkit-scrollbar{width:15px}.gui-dark ::-webkit-scrollbar-track{background:#616161}.gui-dark ::-webkit-scrollbar-thumb{background:#424242}.gui-dark ::-webkit-scrollbar-thumb:hover{background:#212121}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging,.gui-dark .gui-structure-container-element,.gui-dark .gui-row{background:#444}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging{height:42px;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-summaries-cell{background:#383838;color:#f0f0f0}.gui-dark .gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top-color:#666}.gui-dark .gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom-color:#666}.gui-dark .gui-structure-info-panel{background:#383838;border-top-color:#666}.gui-dark .gui-structure-info-panel div{color:#f0f0f0}.gui-dark .gui-structure-info-panel div button{background:#616161}.gui-dark .gui-structure-info-panel p,.gui-dark .gui-structure-info-modal p{color:#f0f0f0}.gui-dark gui-paging-alternative-navigator .gui-button{background:transparent;color:#f0f0f0;margin:0 4px;padding:0}.gui-dark gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-dark gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#f0f0f0;opacity:.4}.gui-dark gui-paging-alternative-navigator gui-paging-alternative-pages .gui-paging-active-page{box-shadow:0 1px #f0f0f0;color:#f0f0f0}.gui-dark .gui-search-bar form{background:#444}.gui-dark .gui-search-bar input{background:#444;border:0;color:#f0f0f0;cursor:pointer}.gui-dark .gui-search-bar:hover .gui-search-icon-svg line,.gui-dark .gui-search-bar:hover .gui-search-icon-svg circle{stroke:#878787}.gui-dark .gui-icon{cursor:pointer}.gui-dark .gui-icon svg{stroke:#aaa;transition:stroke .3s ease-in-out}.gui-dark .gui-icon svg:hover{stroke:#e6e6e6!important}.gui-dark .gui-empty-source div{background:#383838}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-schema-manager-dialog .gui-dialog-title{color:#f0f0f0}.gui-dark .gui-title-panel,.gui-dark .gui-footer-panel{background:#383838}.gui-dark .gui-structure-ordered-list li:hover{background:#525252} +`,`.gui-light{border-color:#f0f0f0;font-family:Arial;font-size:14px}.gui-light *{border-color:#f0f0f0}.gui-light.gui-structure-border{border:0}.gui-light.gui-structure,.gui-light .gui-header{background:#fff;color:#333;font-family:Arial}.gui-light .gui-header-cell,.gui-light .gui-structure-header-columns{height:56px}.gui-light.gui-structure-border{border-color:#f0f0f0 transparent}.gui-light .gui-header-cell,.gui-light .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-light .gui-structure-header .gui-header{color:#333;font-weight:700}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover{background:#f3f9ff}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-light.gui-rows-odd .gui-row.odd,.gui-light.gui-rows-even .gui-row.even{background:#f7f7f7}.gui-light gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-light gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-light gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#333;opacity:.4}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging{height:56px;padding-left:16px;padding-right:16px}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging,.gui-light .gui-structure-summaries-panel{background:#fff}.gui-light .gui-search-bar form input{border:0;outline:none} +`,`.gui-structure.gui-generic{border-color:#2224261a;font-family:Arial;font-size:14px}.gui-structure.gui-generic *{border-color:#2224261a}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-header-columns{height:46px}.gui-structure.gui-generic .gui-header .gui-header-cell.gui-header-sortable:hover{background:rgba(0,0,0,.04);transition:.15s all}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell>span{padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell:last-child>span{padding-right:20px}.gui-structure.gui-generic .gui-structure-header.gui-header-bottom .gui-header{border-color:inherit;border-style:solid;border-width:2px 0 0}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-structure.gui-generic .gui-structure-header .gui-header{background:#f9fafb;border-width:0 0 2px;color:#464646;font-weight:700}.gui-structure.gui-generic .gui-rows-odd .gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-cell .gui-button,.gui-structure.gui-generic .gui-cell .gui-badge{padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-structure.gui-generic .gui-structure-summaries-panel{background:#f9fafb}.gui-structure.gui-generic .gui-structure-top-panel,.gui-structure.gui-generic .gui-structure-info-panel,.gui-structure.gui-generic .gui-paging{height:46px;padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-info-panel{background:#f9fafb;border-radius:0}.gui-structure.gui-generic .gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-structure.gui-generic .gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-structure.gui-generic .gui-rows-odd gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-row:hover{background:#f9fafb;transition:.15s all} +`],encapsulation:2,changeDetection:0})}return i})(),JC=(()=>{class i extends dt{structureHeaderTopEnabledArchive;structureHeaderBottomEnabledArchive;columnHeaderTop;columnHeaderBottom;constructor(e,n){super(),this.structureHeaderTopEnabledArchive=e,this.structureHeaderBottomEnabledArchive=n}ngOnChanges(e){this.isDefined("columnHeaderTop",e)&&this.structureHeaderTopEnabledArchive.next(this.columnHeaderTop),this.isDefined("columnHeaderBottom",e)&&this.structureHeaderBottomEnabledArchive.next(this.columnHeaderBottom)}static \u0275fac=function(n){return new(n||i)(c(cx),c(Ga))};static \u0275dir=N({type:i,selectors:[["gui-structure","columnHeaderTop","","columnHeaderBottom",""],["gui-structure","columnHeaderTop",""],["gui-structure","columnHeaderBottom",""]],inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom"},features:[C,G]})}return i})(),bO=(()=>{class i extends dt{structureId;compositionId;pagingCommandInvoker;pagingEventRepository;paging;pageChanged=new W;pageSizeChanged=new W;constructor(e,n,r,o){super(),this.structureId=e,this.compositionId=n,this.pagingCommandInvoker=r,this.pagingEventRepository=o}ngOnChanges(e){if(this.isDefined("paging",e)){let n;typeof this.paging=="boolean"?n={enabled:this.paging}:n=this.paging,this.pagingCommandInvoker.setPaging(n,this.compositionId)}}ngOnInit(){this.subscribeAndEmit(this.pagingEventRepository.onPageChange(this.structureId.toReadModelRootId()),this.pageChanged),this.subscribeAndEmit(this.pagingEventRepository.onPageSizeChange(this.structureId.toReadModelRootId()),this.pageSizeChanged)}onPageChange(e){this.pageChanged.emit(e)}static \u0275fac=function(n){return new(n||i)(c(se),c(et),c(Nt),c(Li))};static \u0275dir=N({type:i,inputs:{paging:"paging"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged"},features:[C,G]})}return i})(),eI=(()=>{class i extends bO{pagingDisplayModeArchive;constructor(e,n,r,o,s){super(e,n,r,o),this.pagingDisplayModeArchive=s}ngOnChanges(e){if(this.isDefined("paging",e)){let n;typeof this.paging=="boolean"?n={enabled:this.paging}:(n=this.paging,this.paging.displayMode!==void 0&&this.pagingDisplayModeArchive.next(this.paging.displayMode)),this.pagingCommandInvoker.setPaging(n,this.structureId)}}static \u0275fac=function(n){return new(n||i)(c(se),c(et),c(Nt),c(Li),c(uh))};static \u0275dir=N({type:i,selectors:[["gui-structure","paging",""]],features:[C,G]})}return i})(),vO=(()=>{class i extends dt{structureId;searchEventRepository;searchCommandInvoker;searching;searchPhraseChanged=new W;constructor(e,n,r){super(),this.structureId=e,this.searchEventRepository=n,this.searchCommandInvoker=r}ngOnChanges(e){if(this.isDefined("searching",e)){let n;typeof this.searching=="boolean"?n={enabled:this.searching}:n=this.searching,this.searchCommandInvoker.setSearchingConfig(n,this.structureId)}}ngOnInit(){this.subscribeAndEmit(this.searchEventRepository.onSearchPhrase(this.structureId.toReadModelRootId()),this.searchPhraseChanged)}static \u0275fac=function(n){return new(n||i)(c(se),c(zi),c(Gt))};static \u0275dir=N({type:i,inputs:{searching:"searching"},outputs:{searchPhraseChanged:"searchPhraseChanged"},features:[C,G]})}return i})(),tI=(()=>{class i extends vO{constructor(e,n,r){super(e,n,r)}static \u0275fac=function(n){return new(n||i)(c(se),c(zi),c(Gt))};static \u0275dir=N({type:i,selectors:[["gui-structure","searching",""]],features:[C]})}return i})(),xO=(()=>{class i extends dt{structureId;formationEventRepository;formationPublisher;rowSelection;itemsSelected=new W;selectedRows=new W;constructor(e,n,r){super(),this.structureId=e,this.formationEventRepository=n,this.formationPublisher=r}ngOnChanges(e){this.isDefined("rowSelection",e)&&(this.rowSelection.isEnabledDefined()&&this.formationPublisher.setSelection(this.rowSelection.isEnabled(),this.structureId),this.rowSelection.isTypeDefined()&&this.formationPublisher.changeType(this.rowSelection.getType(),this.structureId),this.rowSelection.isModeDefined()&&this.formationPublisher.changeMode(this.rowSelection.getMode(),this.structureId),this.rowSelection.isMatcherDefined()&&this.formationPublisher.setMatcher(this.rowSelection.getMatcher(),this.structureId),this.rowSelection.isSelectedRowIndexesDefined()&&this.formationPublisher.selectByIndex(this.rowSelection.getSelectedRowIndexes(),this.structureId),this.rowSelection.isSelectedRowIdsDefined()&&this.formationPublisher.selectByIds(this.rowSelection.getSelectedRowIds(),this.structureId),this.rowSelection.isCustomSelectConfig()&&this.formationPublisher.setCustomSelection(this.rowSelection.getCustomSelectConfig(),this.structureId))}ngOnInit(){this.subscribeAndEmit(this.formationEventRepository.onItemSelected(this.structureId),this.selectedRows),this.subscribeAndEmit(this.selectItemsSelected(),this.itemsSelected)}selectItemsSelected(){return this.formationEventRepository.onItemSelected(this.structureId).pipe(P(e=>e.map(n=>n.getItem())))}static \u0275fac=function(n){return new(n||i)(c(se),c(Qn),c(_t))};static \u0275dir=N({type:i,inputs:{rowSelection:"rowSelection"},outputs:{itemsSelected:"itemsSelected",selectedRows:"selectedRows"},features:[C,G]})}return i})(),iI=(()=>{class i extends xO{selectionGate;constructor(e,n,r){super(e,n,r)}static \u0275fac=function(n){return new(n||i)(c(se),c(Qn),c(_t))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowSelection",""],["gui-structure","selectionGate",""]],inputs:{selectionGate:"selectionGate"},features:[C]})}return i})(),nI=(()=>{class i extends dt{translationService;localization;constructor(e){super(),this.translationService=e}ngOnChanges(e){this.isDefined("localization",e)&&(this.localization.translationResolver&&this.translationService.setResolver(this.localization.translationResolver),this.localization.translation&&this.translationService.changeTranslation(this.localization.translation))}static \u0275fac=function(n){return new(n||i)(c(yi))};static \u0275dir=N({type:i,selectors:[["gui-structure","localization",""]],inputs:{localization:"localization"},features:[C,G]})}return i})(),rI=(()=>{class i extends dt{structureTitlePanelConfigArchive;structureFooterPanelConfigArchive;titlePanel;footerPanel;constructor(e,n){super(),this.structureTitlePanelConfigArchive=e,this.structureFooterPanelConfigArchive=n}ngOnChanges(e){this.isDefined("titlePanel",e)&&this.structureTitlePanelConfigArchive.next(this.titlePanel),this.isDefined("footerPanel",e)&&this.structureFooterPanelConfigArchive.next(this.footerPanel)}static \u0275fac=function(n){return new(n||i)(c(Za),c(Xa))};static \u0275dir=N({type:i,selectors:[["gui-structure","titlePanel","","footerPanel",""]],inputs:{titlePanel:"titlePanel",footerPanel:"footerPanel"},features:[C,G]})}return i})(),oI=(()=>{class i extends dt{structureDetailViewConfigArchive;rowDetail;constructor(e){super(),this.structureDetailViewConfigArchive=e}ngOnChanges(e){this.isDefined("rowDetail",e)&&this.structureDetailViewConfigArchive.next(this.rowDetail)}static \u0275fac=function(n){return new(n||i)(c(Rd))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowDetail",""]],inputs:{rowDetail:"rowDetail"},features:[C,G]})}return i})(),sI=(()=>{class i extends dt{structureColumnMenuConfigArchive;columnMenu;constructor(e){super(),this.structureColumnMenuConfigArchive=e}ngOnChanges(e){this.isDefined("columnMenu",e)&&this.structureColumnMenuConfigArchive.nextConfig(this.columnMenu)}static \u0275fac=function(n){return new(n||i)(c(qa))};static \u0275dir=N({type:i,selectors:[["gui-structure","columnMenu",""]],inputs:{columnMenu:"columnMenu"},features:[C,G]})}return i})(),aI=(()=>{class i extends dt{structureId;summariesCommandInvoker;summaries;constructor(e,n){super(),this.structureId=e,this.summariesCommandInvoker=n}ngOnChanges(e){Re(e.summaries,()=>{this.summariesCommandInvoker.setConfig(this.summaries,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(Hn))};static \u0275dir=N({type:i,selectors:[["gui-structure","summaries",""]],inputs:{summaries:"summaries"},features:[C,G]})}return i})(),cI=(()=>{class i extends dt{structureInfoPanelConfigService;infoPanel;constructor(e){super(),this.structureInfoPanelConfigService=e}ngOnChanges(e){this.isDefined("infoPanel",e)&&(typeof this.infoPanel=="boolean"&&(this.infoPanel={enabled:this.infoPanel}),this.structureInfoPanelConfigService.set(this.infoPanel))}static \u0275fac=function(n){return new(n||i)(c(Md))};static \u0275dir=N({type:i,selectors:[["gui-structure","infoPanel",""]],inputs:{infoPanel:"infoPanel"},features:[C,G]})}return i})(),lI=(()=>{class i extends dt{schemaReadModelRootId;schemaPublisher;rowClass;constructor(e,n){super(),this.schemaReadModelRootId=e,this.schemaPublisher=n}ngOnChanges(e){this.isDefined("rowClass",e)&&this.schemaPublisher.setRowClass(this.rowClass,this.schemaReadModelRootId)}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowClass",""]],inputs:{rowClass:"rowClass"},features:[C,G]})}return i})(),dI=(()=>{class i extends dt{schemaReadModelRootId;schemaPublisher;rowStyle;constructor(e,n){super(),this.schemaReadModelRootId=e,this.schemaPublisher=n}ngOnChanges(e){this.isDefined("rowStyle",e)&&this.schemaPublisher.setRowStyle(this.rowStyle,this.schemaReadModelRootId)}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowStyle",""]],inputs:{rowStyle:"rowStyle"},features:[C,G]})}return i})(),uI=(()=>{class i extends dt{schemaId;schemaCommandInvoker;schemaEventRepository;rowColoring;rowColoringChanged=new W;constructor(e,n,r){super(),this.schemaId=e,this.schemaCommandInvoker=n,this.schemaEventRepository=r}ngOnChanges(e){this.isDefined("rowColoring",e)&&this.schemaCommandInvoker.setRowColoring(this.rowColoring,this.schemaId)}ngOnInit(){this.subscribeAndEmit(this.schemaEventRepository.onRowColoring(this.schemaId),this.rowColoringChanged)}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot),c(Bi))};static \u0275dir=N({type:i,selectors:[["gui-structure","rowColoring",""]],inputs:{rowColoring:"rowColoring"},outputs:{rowColoringChanged:"rowColoringChanged"},features:[C,G]})}return i})(),mI=(()=>{class i extends dt{schemaId;schemaCommandInvoker;schemaEventRepository;verticalGrid;horizontalGrid;horizontalGridChanged=new W;verticalGridChanged=new W;constructor(e,n,r){super(),this.schemaId=e,this.schemaCommandInvoker=n,this.schemaEventRepository=r,this.subscribeAndEmit(this.schemaEventRepository.onHorizontalGridChanged(this.schemaId),this.horizontalGridChanged),this.subscribeAndEmit(this.schemaEventRepository.onVerticalGridChanged(this.schemaId),this.verticalGridChanged)}ngOnChanges(e){this.isDefined("verticalGrid",e)&&this.schemaCommandInvoker.setVerticalGrid(this.verticalGrid,this.schemaId),this.isDefined("horizontalGrid",e)&&this.schemaCommandInvoker.setHorizontalGrid(this.horizontalGrid,this.schemaId)}static \u0275fac=function(n){return new(n||i)(c(lt),c(Ot),c(Bi))};static \u0275dir=N({type:i,selectors:[["gui-structure","verticalGrid","","horizontalGrid",""]],inputs:{verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid"},outputs:{horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged"},features:[C,G]})}return i})(),hI=(()=>{class i extends dt{structureId;sortingCommandInvoker;sorting;constructor(e,n){super(),this.structureId=e,this.sortingCommandInvoker=n}ngOnChanges(e){Re(e.sorting,()=>{let n;typeof this.sorting=="boolean"?n={enabled:this.sorting}:n=this.sorting,this.sortingCommandInvoker.setSortingConfig(n,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(qt))};static \u0275dir=N({type:i,selectors:[["gui-structure","sorting",""]],inputs:{sorting:"sorting"},features:[C,G]})}return i})(),gI=(()=>{class i extends dt{structureId;sourceCommandInvoker;loading;constructor(e,n){super(),this.structureId=e,this.sourceCommandInvoker=n}ngOnChanges(e){this.isDefined("loading",e)&&this.sourceCommandInvoker.setLoading(this.loading,this.structureId)}ngOnInit(){}static \u0275fac=function(n){return new(n||i)(c(se),c(Wt))};static \u0275dir=N({type:i,selectors:[["gui-structure","loading",""]],inputs:{loading:"loading"},features:[C,G]})}return i})(),pI=(()=>{class i extends dt{structureId;structureCommandInvoker;filtering;constructor(e,n){super(),this.structureId=e,this.structureCommandInvoker=n}ngOnChanges(e){Re(e.filtering,()=>{let n;typeof this.filtering=="boolean"?n={enabled:this.filtering}:n=this.filtering,this.structureCommandInvoker.setFilterConfig(n,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(Pt))};static \u0275dir=N({type:i,selectors:[["gui-structure","filtering",""]],inputs:{filtering:"filtering"},features:[C,G]})}return i})(),fI=(()=>{class i extends dt{structureId;structureCommandInvoker;quickFilters;constructor(e,n){super(),this.structureId=e,this.structureCommandInvoker=n}ngOnChanges(e){Re(e.quickFilters,()=>{let n;typeof this.quickFilters=="boolean"?n={enabled:this.quickFilters}:n=this.quickFilters,this.structureCommandInvoker.setQuickFiltersConfig(n,this.structureId)})}static \u0275fac=function(n){return new(n||i)(c(se),c(Pt))};static \u0275dir=N({type:i,selectors:[["gui-structure","quickFilters",""]],inputs:{quickFilters:"quickFilters"},features:[C,G]})}return i})(),bI=(()=>{class i extends dt{structureId;structureCommandInvoker;virtualScroll;constructor(e,n){super(),this.structureId=e,this.structureCommandInvoker=n}ngOnChanges(e){this.isDefined("virtualScroll",e)&&(this.virtualScroll?this.structureCommandInvoker.enableVirtualScroll(this.structureId):this.structureCommandInvoker.disableVirtualScroll(this.structureId))}static \u0275fac=function(n){return new(n||i)(c(se),c(Pt))};static \u0275dir=N({type:i,selectors:[["gui-structure","virtualScroll",""]],inputs:{virtualScroll:"virtualScroll"},features:[C,G]})}return i})(),ph=(()=>{class i extends NR{platformId;elementRef;changeDetectorRef;gridRegister;structureIdGenerator;formationCommandDispatcher;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandDispatcher;searchCommandInvoker;schemaCommandInvoker;structureCommandDispatcher;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;static GUI_GRID_ID="gui-grid-id";structureRef;gridId;api;localGridId;gridThemeCommandInvoker;classModifier;attributeModifier;constructor(e,n,r,o,s,a,l,d,p,w,E,Q,ne,ce,O,Y,Ie){super(),this.platformId=e,this.elementRef=n,this.changeDetectorRef=r,this.gridRegister=o,this.structureIdGenerator=s,this.formationCommandDispatcher=a,this.formationWarehouse=l,this.compositionCommandInvoker=d,this.compositionWarehouse=p,this.filterIntegration=w,this.sourceCommandDispatcher=E,this.searchCommandInvoker=Q,this.schemaCommandInvoker=ne,this.structureCommandDispatcher=ce,this.summariesCommandInvoker=O,this.sortingCommandInvoker=Y,this.pagingCommandInvoker=Ie,this.gridThemeCommandInvoker=new bf(this.schemaCommandInvoker,this.gridThemeConverter,this.gridRowColoringConverter),this.classModifier=new zc(this.elementRef.nativeElement),this.attributeModifier=new jR(this.elementRef.nativeElement)}ngOnInit(){this.classModifier.getHost().add("gui-grid"),this.initApi();let e=this.gridId;e===void 0&&(e="gui-grid-"+this.structureIdGenerator.generateId()),this.localGridId=e,this.exposeGridId(),this.gridRegister.register(e,this,this.structureRef.getStructureId()),St(this.platformId)&&(window.getGuiGrid=n=>{if(this.gridRegister.getValues(n))return this.api})}ngOnDestroy(){this.gridRegister.unregister(this.localGridId)}getElementRef(){return this.elementRef}detectChanges(){this.changeDetectorRef.detectChanges()}exposeGridId(){this.attributeModifier.getHost().setAttribute(i.GUI_GRID_ID,this.localGridId)}initApi(){this.api=new ff(this.structureRef.structureId,this.structureRef.compositionId,this.structureRef.schemaReadModelRootId,this.formationCommandDispatcher,this.formationWarehouse,this.compositionCommandInvoker,this.compositionWarehouse,this.filterIntegration,this.sourceCommandDispatcher,this.searchCommandInvoker,this.gridThemeCommandInvoker,this.structureCommandDispatcher,this.summariesCommandInvoker,this.sortingCommandInvoker,this.pagingCommandInvoker).provide()}static \u0275fac=function(n){return new(n||i)(c(Ue),c(x),c(B),c(EC),c(Vr),c(_t),c(Rt),c(ci),c(At),c(dh),c(Wt),c(Gt),c(Ot),c(Pt),c(Hn),c(qt),c(Nt))};static \u0275cmp=I({type:i,selectors:[["gui-grid"]],viewQuery:function(n,r){if(n&1&&X(FR,7),n&2){let o;L(o=z())&&(r.structureRef=o.first)}},inputs:{gridId:"gridId"},features:[ge([{provide:lo,useValue:LR},{provide:kC,useExisting:i}]),C],decls:2,vars:31,consts:[["structure",""],[3,"cellEditCanceled","cellEditEntered","cellEditSubmitted","columnsChanged","containerWidthChanged","horizontalGridChanged","itemsSelected","pageChanged","pageSizeChanged","rowColoringChanged","searchPhraseChanged","selectedRows","sourceEdited","themeChanged","verticalGridChanged","autoResizeWidth","cellEditing","columnHeaderBottom","columnHeaderTop","columnMenu","columns","editMode","filtering","footerPanel","horizontalGrid","infoPanel","loading","localization","maxHeight","paging","quickFilters","rowClass","rowColoring","rowDetail","rowHeight","rowSelection","rowStyle","searching","sorting","source","summaries","theme","titlePanel","verticalGrid","virtualScroll","width"]],template:function(n,r){if(n&1){let o=Z();h(0,"gui-structure",1,0),F("cellEditCanceled",function(){return R(o),A(r.onCellEditCancel())})("cellEditEntered",function(){return R(o),A(r.onCellEditEnter())})("cellEditSubmitted",function(){return R(o),A(r.onCellEditSubmit())})("columnsChanged",function(){return R(o),A(r.onColumnsChange())})("containerWidthChanged",function(a){return R(o),A(r.onContainerWidthChange(a))})("horizontalGridChanged",function(a){return R(o),A(r.onHorizontalGrid(a))})("itemsSelected",function(a){return R(o),A(r.onItemSelect(a))})("pageChanged",function(a){return R(o),A(r.onPageChange(a))})("pageSizeChanged",function(a){return R(o),A(r.onPageSizeChange(a))})("rowColoringChanged",function(a){return R(o),A(r.onRowColoring(a))})("searchPhraseChanged",function(a){return R(o),A(r.onSearchPhrase(a))})("selectedRows",function(a){return R(o),A(r.onRowsSelect(a))})("sourceEdited",function(a){return R(o),A(r.onSourceEdit(a))})("themeChanged",function(a){return R(o),A(r.onTheme(a))})("verticalGridChanged",function(a){return R(o),A(r.onVerticalGrid(a))}),g()}n&2&&m("autoResizeWidth",r.autoResizeWidth)("cellEditing",r.cellEditingConfig)("columnHeaderBottom",r.columnHeaderBottom)("columnHeaderTop",r.columnHeaderTop)("columnMenu",r.columnMenuConfig)("columns",r.columnsConfig)("editMode",r.editMode)("filtering",r.filtering)("footerPanel",r.footerPanel)("horizontalGrid",r.horizontalGrid)("infoPanel",r.infoPanel)("loading",r.loading)("localization",r.localization)("maxHeight",r.maxHeight)("paging",r.paging)("quickFilters",r.quickFilters)("rowClass",r.rowClass)("rowColoring",r.rowColoringConfig)("rowDetail",r.rowDetail)("rowHeight",r.rowHeight)("rowSelection",r.rowSelectionConfig)("rowStyle",r.rowStyle)("searching",r.searching)("sorting",r.sorting)("source",r.source)("summaries",r.summaries)("theme",r.themeConfig)("titlePanel",r.titlePanel)("verticalGrid",r.verticalGrid)("virtualScroll",r.virtualScroll)("width",r.width)},dependencies:[XC,JC,eI,tI,iI,nI,rI,oI,sI,aI,cI,lI,dI,uI,mI,hI,gI,pI,fI,bI],styles:[`.gui-grid{display:block;width:100%} +`],encapsulation:2})}return i})(),ho=[Wo,ni,Go,tn,An,qo,Yo,Xo,Jo,Ko,Zo,es,ts,On,Rr,is,nn,Qo,Fr,On],_O=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})();var fx=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[HC],imports:[q,ho,mi,mn]})}return i})(),vI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[$C],imports:[q,ho,mn,mi]})}return i})();var Xr=class{constructor(){}};var gb=class extends ae{fieldId;externalFilterId;filterValue;constructor(t,e,n,r){super(t,"ToggleFilterCommand"),this.fieldId=e,this.externalFilterId=n,this.filterValue=r}getFieldId(){return this.fieldId}getExternalFilterId(){return this.externalFilterId}getFilterValue(){return this.filterValue}},mc=class extends me{constructor(t){super(t,null,"FilterToggledEvent")}},pb=class{domainEventPublisher=y.resolve(_e);forCommand(){return gb}handle(t,e){let n=e.getFieldId(),r=e.getExternalFilterId(),o=e.getFilterValue();t.toggleFilter(n,r,o)}publish(t,e){this.domainEventPublisher.publish(new mc(e.getAggregateId()))}},bu=class extends ae{fieldId;filterTypeId;value;constructor(t,e,n,r){super(t,"AddFilterCommand"),this.fieldId=e,this.filterTypeId=n,this.value=r}getFieldId(){return this.fieldId}getFilterTypeId(){return this.filterTypeId}getValue(){return this.value}},fb=class{forCommand(){return bu}handle(t,e){let n=e.getFieldId(),r=e.getFilterTypeId(),o=e.getValue();t.addFilter(n,r,o)}},vu=class extends ae{constructor(t){super(t,"RemoveAllFiltersCommand")}},bb=class{forCommand(){return vu}handle(t,e){t.removeAllFilters()}},xu=class extends ae{filterId;constructor(t,e){super(t,"RemoveFilterCommand"),this.filterId=e}getFilterId(){return this.filterId}},vb=class{forCommand(){return xu}handle(t,e){let n=e.getFilterId();t.removeFilter(n)}},_u=class extends ae{filterConfig;constructor(t,e){super(t,"SetConfigFilterCommand"),this.filterConfig=e}getConfig(){return this.filterConfig}},yu=class extends me{enabled;constructor(t,e){super(t,e,"ConfigFilterSetEvent"),this.enabled=e}getEnabled(){return this.enabled}},xb=class{domainEventPublisher=y.resolve(_e);forCommand(){return _u}handle(t,e){let n=e.getConfig();t.setFilterConfig(n)}publish(t,e){let n=e.getConfig();this.domainEventPublisher.publish(new yu(e.getAggregateId(),n.enabled))}},wu=class extends ae{quickFiltersConfig;constructor(t,e){super(t,"SetConfigQuickFilterCommand"),this.quickFiltersConfig=e}getConfig(){return this.quickFiltersConfig}},Cu=class extends me{enabled;constructor(t,e){super(t,e,"ConfigQuickFilterSetEvent"),this.enabled=e}getEnabled(){return this.enabled}},_b=class{domainEventPublisher=y.resolve(_e);forCommand(){return wu}handle(t,e){let n=e.getConfig();t.setQuickFiltersConfig(n)}publish(t,e){let n=e.getAggregateId(),r=e.getConfig();this.domainEventPublisher.publish(new Cu(n,r.enabled))}},yb=class extends Cr{filterId;fieldId;filterTypeId;filterValue;constructor(t,e,n,r){super(t),this.filterId=t,this.fieldId=e,this.filterTypeId=n,this.filterValue=r}getFilterId(){return this.filterId}getFilterTypeId(){return this.filterTypeId}getFieldId(){return this.fieldId}getFilterValue(){return this.filterValue}},wb=class{filteringEnabled=!1;searchEnabled=!1;quickFiltersEnabled=!1;constructor(t=!1,e=!1,n=!1){this.filteringEnabled=t,this.searchEnabled=e,this.quickFiltersEnabled=n}isFilteringEnabled(){return this.filteringEnabled}isQuickFilteringEnabled(){return this.quickFiltersEnabled}isSearchingEnabled(){return this.searchEnabled}setFilterConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.filteringEnabled=t.enabled)}setSearchingConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.searchEnabled=t.enabled)}setQuickFiltersConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.quickFiltersEnabled=t.enabled)}},Cb=class extends Xi{constructor(t){super(t)}toString(){return this.getId().toString()}filterMany(t,e,n){return t.length===0?t:t.filter(r=>this.filterEntity(r,e,n))}filterOne(t,e,n){return this.filterEntity(t,e,n)}},Ib=class extends Cb{constructor(t){super(t)}getName(){return"Contains"}filterEntity(t,e,n){return!!e.getValue(t).includes(n)}},kb=class extends Xi{id;constructor(t){super(t),this.id=t}toString(){return this.id}},yO=(()=>{class i{static index=0;generate(){return i.index+=1,new kb(`${i.index}`)}}return i})(),Eb=class{filterTypeId;name;constructor(t,e){this.filterTypeId=t,this.name=e}getId(){return this.filterTypeId}getName(){return this.name}},Sb=class{fieldIds=[];map=new WeakMap;filterTypeMap=new WeakMap;dataTypeToFilterType=new Map;filterTypeIdGenerator=new yO;constructor(t){this.assignFilterTypes(),this.addFields(t)}getFilterType(t){return this.filterTypeMap.get(t)}getFieldIdsToFilterTypes(){let t=new Map;for(let e of this.fieldIds){let n=this.map.get(e),r=n.map(o=>new Eb(o.getId(),o.getName()));t.set(e.toString(),r)}return t}addFields(t){for(let e of t)this.addField(e)}addField(t){let e=t.getId(),n=t.getDataType(),r=this.dataTypeToFilterType.get(n);this.fieldIds.push(e),this.map.set(e,Array.from(r))}assignFilterTypes(){this.assignFilterTypesForDataTypeUnknown(),this.assignFilterTypesForDataTypeNumber(),this.assignFilterTypesForDataTypeString(),this.assignFilterTypesForDataTypeBoolean(),this.assignFilterTypesForDataTypeDate(),this.assignFilterTypesForDataTypeCustom()}assignFilterTypesForDataTypeUnknown(){this.dataTypeToFilterType.set($.UNKNOWN,[])}assignFilterTypesForDataTypeNumber(){this.dataTypeToFilterType.set($.NUMBER,[])}assignFilterTypesForDataTypeString(){let t=[new Ib(this.generateId())];this.dataTypeToFilterType.set($.STRING,t),this.addFilterTypes(t)}assignFilterTypesForDataTypeBoolean(){this.dataTypeToFilterType.set($.BOOLEAN,[])}assignFilterTypesForDataTypeDate(){this.dataTypeToFilterType.set($.DATE,[])}assignFilterTypesForDataTypeCustom(){this.dataTypeToFilterType.set($.CUSTOM,[])}generateId(){return this.filterTypeIdGenerator.generate()}addFilterTypes(t){for(let e of t)this.filterTypeMap.set(e.getId(),e)}},Db=class extends Xi{constructor(t){super(t)}toString(){return this.getId()}},wO=(()=>{class i{static index=0;static generateId(){return new Db(`${i.index}`)}}return i})(),Tb=class{filterId;fieldName;filterTypeName;value;constructor(t,e,n,r){this.filterId=t,this.fieldName=e,this.filterTypeName=n,this.value=r}getText(){return`${this.fieldName}: ${this.filterTypeName}: ${this.value}`}getFilterId(){return this.filterId}getFieldName(){return this.fieldName}getFilterTypeName(){return this.filterTypeName}getValue(){return this.value}},Mb=class{filterSettings=new wb;filters=new Map;activeFilters=[];filterTypeManager;constructor(){}getSettings(){return this.filterSettings}getAll(){return Array.from(this.filters).map(t=>t[1])}getAllActiveFilters(t){return this.activeFilters.map(e=>new Tb(e.getFilterId(),t.get(e.getFieldId().toString()).getName(),this.filterTypeManager.getFilterType(e.getFilterTypeId()).getName(),e.getFilterValue()))}getFilterTypes(){return this.filterTypeManager.getFieldIdsToFilterTypes()}assignFilterTypes(t){this.filterTypeManager=new Sb(t)}add(t,e,n){let r=new yb(wO.generateId(),t,e,n);this.activeFilters.push(r)}filter(t,e){let n=Array.from(t);for(let r of this.activeFilters){let o=r.getFilterTypeId(),s=this.getFilterType(o),a=r.getFilterValue();n=s.filterMany(n,e.get(r.getFieldId().toString()),a)}return n}removeAll(){this.activeFilters.length=0}remove(t){this.activeFilters=this.activeFilters.filter(e=>e.getFilterId()!==t)}getFilterType(t){return this.filterTypeManager.getFilterType(t)}},Iu=class{create(t=!1){return new Mb}},bx=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}}return i})(),CO=(()=>{class i{quickFilterEnabledArchive;constructor(e){this.quickFilterEnabledArchive=e}static services=[bx];forEvent(){return Cu}handle(e){e.ofMessageType("ConfigQuickFilterSetEvent")&&this.quickFilterEnabledArchive.next(e.getAggregateId(),e.getEnabled())}}return i})(),vx=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}}return i})(),IO=(()=>{class i{filterEnabledArchive;constructor(e){this.filterEnabledArchive=e}static services=[vx];forEvent(){return yu}handle(e){e.ofMessageType("ConfigFilterSetEvent")&&this.filterEnabledArchive.next(e.getAggregateId(),e.getEnabled())}}return i})(),ku=class{map;constructor(t){this.map=t}getFilterTypes(t){let e=this.map.get(t.toString());return e===void 0?[]:e}},hc=class i extends Fe{static default=new ku(new Map);constructor(){super(i.default)}},Eu=class extends me{map;constructor(t,e){super(t,e,"FilterTypesInitedEvent"),this.map=e}getMap(){return this.map}},xx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}}return i})(),_x=bp();_x.provide(xx);_x.provide(hc);var Su=_x,Fb=class{filterTypeArchive=Su.resolve(hc);forEvent(){return Eu}handle(t){if(t.ofMessageType("FilterTypesInitedEvent")){let e=t.getMap();this.filterTypeArchive.next(t.getAggregateId(),new ku(e))}}},Yn=class extends me{filters;constructor(t,e){super(t,e,"ActiveFiltersSetEvent"),this.filters=e}getFilters(){return this.filters}},Rb=class{activeFilterRepository=Su.resolve(xx);forEvent(){return Yn}handle(t){if(t.ofMessageType("ActiveFiltersSetEvent")){let e=t.getFilters();this.activeFilterRepository.next(t.getAggregateId(),e)}}},Du=class extends me{map;constructor(t,e){super(t,e,"UniqueFilterCalculatedEvent"),this.map=e}getUniqueValues(){return this.map}},Tu=class{map=new Map;allSelected=new Map;allDisabled=new Map;constructor(t){this.map=t,this.calculateSelection()}getValues(t){return this.map.get(t.toString())}areAllSelected(t){return this.allSelected.get(t.toString())}areAllDisabled(t){return this.allDisabled.get(t.toString())}isSelectAllChecked(t){return this.areAllSelected(t)}isIndeterminate(t){return!(this.areAllSelected(t)||this.areAllDisabled(t))}calculateSelection(){for(let t of Array.from(this.map.keys())){let e=this.map.get(t);this.allSelected.set(t,!e.some(n=>!n.isEnabled())),this.allDisabled.set(t,!e.some(n=>n.isEnabled()))}}},gc=class i extends Fe{static default=new Tu(new Map);constructor(){super(i.default)}},Ab=class{id;value;displayValue;enabled;constructor(t,e,n){this.id=t,this.value=e,this.enabled=n}getId(){return this.id}getValue(){return this.value}geDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}},kO=(()=>{class i{uniqueValuesRepository;constructor(e){this.uniqueValuesRepository=e}static services=[gc];forEvent(){return Du}handle(e){if(e.ofMessageType("UniqueFilterCalculatedEvent")){let n=new Map;e.getUniqueValues().forEach((o,s)=>{let a=o.map(l=>new Ab(l.getId(),l.getDisplayValue(),l.isEnabled()));n.set(s,a)});let r=new Tu(n);this.uniqueValuesRepository.next(e.getAggregateId(),r)}}}return i})(),Ob=class{forEvent(){return cs}handle(t){}},Mu=class extends ae{fieldId;constructor(t,e){super(t,"UnselectAllUniqueFilterCommand"),this.fieldId=e}getFieldId(){return this.fieldId}},Pb=class{forCommand(){return Mu}handle(t,e){let n=e.getFieldId();t.unselectAllUniqueFilter(n)}},Fu=class extends ae{fieldId;uniqueValueId;constructor(t,e,n){super(t,"UnselectUniqueFilterCommand"),this.fieldId=e,this.uniqueValueId=n}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},Nb=class{forCommand(){return Fu}handle(t,e){let n=e.getFieldId(),r=e.getUniqueValueId();t.unselectUniqueFilter(n,r)}},Ru=class extends ae{fieldId;constructor(t,e){super(t,"SelectAllUniqueFilterCommand"),this.fieldId=e}getFieldId(){return this.fieldId}},jb=class{forCommand(){return Ru}handle(t,e){let n=e.getFieldId();t.selectAllUniqueFilter(n)}},Au=class extends ae{fieldId;uniqueValueId;constructor(t,e,n){super(t,"SelectUniqueFilterCommand"),this.fieldId=e,this.uniqueValueId=n}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},Vb=class{forCommand(){return Au}handle(t,e){let n=e.getFieldId(),r=e.getUniqueValueId();t.selectUniqueFilter(n,r)}},Lb=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Iu)}registerCommandHandlers(){return[xb,_b,pb,fb,bb,vb,Vb,jb,Nb,Pb]}registerDomainEventHandler(){return[CO,IO,Fb,Rb,kO,Ob]}registerMultiDomainEventHandler(){return[]}},EO=(()=>{class i extends Vi{filterEnabledArchive;structureQuickFilterRepository;uniqueValuesArchive;activeFilterArchive=Su.resolve(xx);filterTypeArchive=Su.resolve(hc);constructor(e,n,r){super(),this.filterEnabledArchive=e,this.structureQuickFilterRepository=n,this.uniqueValuesArchive=r}static services=[vx,bx,gc];onFilteringEnabled(e){return this.filterEnabledArchive.on(e)}onQuickFiltersEnabled(e){return this.structureQuickFilterRepository.on(e)}onFilterTypes(e){return this.filterTypeArchive.on(e)}findFilterTypes(e){return this.filterTypeArchive.find(e)}onFilterTypesForFieldId(e,n){return this.onFilterTypes(n).pipe(P(r=>r.getFilterTypes(e)))}onActiveFilters(e){return this.activeFilterArchive.on(e)}findFilters(e){return this.activeFilterArchive.find(e)}onUniqueValues(e){return this.uniqueValuesArchive.on(e)}onceFilterTypeId(e,n,r){return Sr(this.onFilterTypes(r).pipe(P(o=>{let a=o.getFilterTypes(e).find(l=>l.getName()===n);return a===void 0?Xe.empty():Xe.of(a.getId())})))}}return i})(),SO=(()=>{class i extends _i{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[ut];setConfig(e,n){this.commandDispatcher.dispatch(new _u(n,e))}add(e,n,r,o){this.commandDispatcher.dispatch(new bu(o,e,n,r))}removeAll(e){this.commandDispatcher.dispatch(new vu(e))}remove(e,n){this.commandDispatcher.dispatch(new xu(n,e))}selectAllUniqueFilter(e,n){this.commandDispatcher.dispatch(new Ru(n,e))}unselectAllUniqueFilter(e,n){this.commandDispatcher.dispatch(new Mu(n,e))}selectUniqueFilter(e,n,r){this.commandDispatcher.dispatch(new Au(r,e,n))}unselectUniqueFilter(e,n,r){this.commandDispatcher.dispatch(new Fu(r,e,n))}}return i})(),zb=class{registerProviders(t){t.provide(_i,SO),t.provide(Vi,EO),t.provide(gc),t.provide(vx),t.provide(bx),t.provide(dh)}};function DO(){new wt(new zb,new Lb).init()}DO();function TO(){return y.resolve(_i)}function MO(){return y.resolve(Vi)}function FO(){return y.resolve(dh)}var yx=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:_i,useFactory:TO},{provide:Vi,useFactory:MO},{provide:dh,useFactory:FO}]})}return i})(),xI=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ho,mi,yx]})}return i})(),wx=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Nn,Pi,mi,yx,xI]})}return i})(),RO=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[UC],imports:[q,wx,xI,ni]})}return i})(),AO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[Wa],imports:[q,_O,Nn,fx,vI,RO,mn,mi]})}return i})();var Bb=class extends qn{warn(t){console.warn(t)}error(t){console.error(t)}};function OO(){y.provide(qn,Bb)}OO();function PO(){return y.resolve(qn)}var NO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:qn,useFactory:PO}]})}return i})(),pc=class{id;source;position;version=0;constructor(t,e,n,r=0){this.source=t,this.position=e,this.version=r,n?this.id=n:this.id=Tn.generate()}getSourceItem(){return this.source}getUiId(){return"gui"+this.id.replace(/-/g,"")}getId(){return this.id}getVersion(){return this.version}getPosition(){return this.position}isSelected(){return!1}isEven(){return this.position%2===0}isOdd(){return this.position%2===1}equals(t){return this.id===t.id&&this.getVersion()===t.getVersion()}equalsById(t){return this.id===t}},Ou=class i extends Cr{sourceItem;version;position;constructor(t,e,n,r=0){super(t),this.sourceItem=e,this.position=n,this.version=r}getSourceItem(){return this.sourceItem}getVersion(){return this.version}getPosition(){return this.position}bumpVersion(){this.version+=1}setPosition(t){this.position=t}clone(){let t=V({},this.sourceItem);return new i(this.getId(),t,this.version)}},Hb=class{create(t){return Array.isArray(t)?this.createItems(t):this.createItem(t)}createItems(t){return t.map(e=>this.createItem(e))}createItem(t){return t instanceof Ou?new pc(t.sourceItem,t.getPosition(),t.getId().toString(),t.getVersion()):new pc(t,0)}},Pu=class extends ae{searchConfig;constructor(t,e){super(t,"SetConfigSearchingCommand"),this.searchConfig=e}getConfig(){return this.searchConfig}},Nu=class extends me{enabled;constructor(t,e){super(t,e,"ConfigSearchingSetEvent"),this.enabled=e}isEnabled(){return this.enabled}},$b=class{domainEventPublisher=y.resolve(_e);forCommand(){return Pu}handle(t,e){let n=e.getConfig();t.setSearchingConfig(n)}publish(t,e){let n=e.getConfig();this.domainEventPublisher.publish(new Nu(e.getAggregateId(),n.enabled))}},fc=class extends ae{phrase;initial;constructor(t,e,n){super(t,"SetSearchPhraseCommand"),this.phrase=e,this.initial=n}getPhrase(){return this.phrase}isInitial(){return this.initial}},Jr=class extends me{phrase;initial;constructor(t,e,n){super(t,{phrase:e,initial:n},"SearchPhraseSetDomainEvent"),this.phrase=e,this.initial=n}getPhrase(){return this.phrase}isInitial(){return this.initial}},eo=class extends me{origin;constructor(t,e){super(t,e,"OriginSetEvent"),this.origin=e}getOrigin(){return this.origin}},bc=class extends me{values;constructor(t,e){super(t,e,"StructureSummariesChangedEvent"),this.values=e}getSummaries(){return this.values}},vc=class extends me{preparedItems;constructor(t,e){super(t,e,"StructurePreparedEntitiesSetEvent"),this.preparedItems=e}getPreparedItems(){return this.preparedItems}},to=class{domainEventPublisher=y.resolve(_e);publish(t){t.forEach(e=>{this.publishEvent(e)})}publishEvent(t){if(t.getType()==="StructureOriginChangedAggregateEvent"){let e=t,n=new eo(e.getAggregateId(),e.getOrigin());this.domainEventPublisher.publish(n)}if(t.getType()==="StructureSourceItemEditedAggregateEvent"){let e=t,n=new $a(e.getAggregateId(),e.getBeforeItem(),e.getAfterItem());this.domainEventPublisher.publish(n)}if(t.getType()==="StructureSummariesChangedAggregateEvent"){let e=t,n=new bc(e.getAggregateId(),e.getSummaries());this.domainEventPublisher.publish(n)}if(t.getType()==="StructurePreparedEntitiesSetAggregateEvent"){let e=t,n=new vc(e.getAggregateId(),e.getPreparedItems());this.domainEventPublisher.publish(n)}if(t.getType()==="UniqueFilterCalculatedAggregateEvent"){let n=t.toDomainEvent();this.domainEventPublisher.publish(n)}}},jO=(()=>{class i{structureSourceDomainEventPublisher;domainEventPublisher=y.resolve(_e);constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return fc}handle(e,n){let r=n.getPhrase();e.addSearchPhrase(r)}publish(e,n){let r=n.getPhrase(),o=n.isInitial();this.domainEventPublisher.publish(new Jr(n.getAggregateId(),r,o)),this.structureSourceDomainEventPublisher.publish(e.getEvents())}}return i})(),Ub=class{searchFields=[];searchPhrase;enabledDataTypes=[$.STRING];addSearchPhrase(t,e){if(!e){this.searchFields=[];return}let n=t.filter(r=>this.enabledDataTypes.some(o=>o===r.getDataType()));n.length!==0&&(this.searchFields=n,this.searchPhrase=e)}removeSearchFilters(){this.searchFields=[]}search(t){if(t.length===0||this.searchFields.length===0)return t;let e=new Set;for(let n=0;nr.search(t[n],this.searchPhrase)).forEach(()=>{e.add(t[n])});return Array.from(e)}},ju=class{create(){return new Ub}},Cx=(()=>{class i extends Fe{static HIGHLIGHTING=!0;constructor(){super(i.HIGHLIGHTING)}}return i})(),Ix=(()=>{class i extends Fe{static PLACEHOLDER="Search...";constructor(){super(i.PLACEHOLDER)}}return i})(),_I=(()=>{class i{commandDispatcher;searchHighlightArchive;searchPlaceholderArchive;constructor(e,n,r){this.commandDispatcher=e,this.searchHighlightArchive=n,this.searchPlaceholderArchive=r}static services=[ut,Cx,Ix];setSearchingConfig(e,n){e.highlighting!==void 0&&e.highlighting!==null&&this.searchHighlightArchive.next(n,e.highlighting),e.placeholder!==void 0&&e.placeholder!==null&&this.searchPlaceholderArchive.next(n,e.placeholder),e.phrase!==void 0&&e.phrase!==null&&this.searchOnInit(e.phrase,n),this.commandDispatcher.dispatch(new Pu(n,e))}search(e,n){this.commandDispatcher.dispatch(new fc(n,e,!1))}searchOnInit(e,n){this.commandDispatcher.dispatch(new fc(n,e,!0))}}return i})(),kx=(()=>{class i extends Fe{static SEARCH_PHRASE="";constructor(){super(i.SEARCH_PHRASE)}}return i})(),VO=(()=>{class i{searchPhraseRepository;constructor(e){this.searchPhraseRepository=e}static services=[kx];forEvent(){return Jr}handle(e){e.ofMessageType("SearchPhraseSetDomainEvent")&&this.searchPhraseRepository.next(e.getAggregateId(),e.getPhrase())}}return i})(),Ex=(()=>{class i extends Fe{static ENABLED=!1;constructor(){super(i.ENABLED)}}return i})(),LO=(()=>{class i{searchingEnabledArchive;constructor(e){this.searchingEnabledArchive=e}static services=[Ex];forEvent(){return Nu}handle(e){e.ofMessageType("ConfigSearchingSetEvent")&&this.searchingEnabledArchive.next(e.getAggregateId(),e.isEnabled())}}return i})(),Wb=class extends ae{constructor(t){super(t,"RemoveSearchPhraseCommand")}},Gb=class{domainEventPublisher=y.resolve(_e);forCommand(){return Wb}handle(t,e){t.removeSearchPhrase()}publish(t,e){this.domainEventPublisher.publish(new mc(e.getAggregateId()))}},qb=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(ju),t.provide(_I)}registerCommandHandlers(){return[$b,jO,Gb]}registerDomainEventHandler(){return[VO,LO]}registerMultiDomainEventHandler(){return[]}},zO=(()=>{class i extends Hi{searchingEnabledArchive;searchPhraseArchive;searchHighlightArchive;searchPlaceholderArchive;constructor(e,n,r,o){super(),this.searchingEnabledArchive=e,this.searchPhraseArchive=n,this.searchHighlightArchive=r,this.searchPlaceholderArchive=o}static services=[Ex,kx,Cx,Ix];onSearchEnabled(e){return this.searchingEnabledArchive.on(e)}onPhrase(e){return this.searchPhraseArchive.on(e)}onHighlight(e){return this.searchHighlightArchive.on(e)}onPlaceholder(e){return this.searchPlaceholderArchive.on(e)}}return i})(),Yb=class extends zi{constructor(){super()}onSearchPhrase(t){return this.onEvent(t,Jr).pipe(ye(e=>e.isInitial()===!1),P(e=>e.getPhrase()),ye(e=>e!==null))}},BO=(()=>{class i extends Gt{searchDispatcher;constructor(e){super(),this.searchDispatcher=e}static services=[_I];setSearchingConfig(e,n){this.searchDispatcher.setSearchingConfig(e,n)}search(e,n){this.searchDispatcher.search(e,n)}}return i})(),Qb=class{registerProviders(t){t.provide(Gt,BO),t.provide(Hi,zO),t.provide(zi,Yb),t.provide(kx),t.provide(Cx),t.provide(Ix),t.provide(Ex)}};function HO(){new wt(new Qb,new qb).init()}HO();function $O(){return y.resolve(Gt)}function UO(){return y.resolve(Hi)}function WO(){return y.resolve(zi)}var yI=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Gt,useFactory:$O},{provide:Hi,useFactory:UO},{provide:zi,useFactory:WO}],imports:[q,Nn,Pi,mi]})}return i})(),GO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,Pi,wx,yI]})}return i})(),qO=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ho,mi,yx]})}return i})();var wI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})();var CI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({})}return i})();var YO=[wI,CI],QO=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,ho,mi,fx,qO,mn,YO]})}return i})();var KO=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({imports:[q,mn]})}return i})(),Vu=class extends ae{compositionId;fieldId;constructor(t,e,n){super(t,"ToggleSortCommand"),this.compositionId=e,this.fieldId=n}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}},Kb=class{domainEventPublisher=y.resolve(_e);forCommand(){return Vu}handle(t,e){let n=e.getAggregateId(),r=e.getCompositionId(),o=e.getFieldId(),s=t.toggleSort(o);this.publishSortEvent(n,r,o,s)}publish(t,e){}publishSortEvent(t,e,n,r){let o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new nc(t,e,o))}},Lu=class extends ae{sortingConfig;constructor(t,e){super(t,"SetSortingCommand"),this.sortingConfig=e}getSortingConfig(){return this.sortingConfig}},Zb=class extends me{constructor(t){super(t,null,"SortingSetEvent")}},Xb=class{domainEventPublisher=y.resolve(_e);forCommand(){return Lu}handle(t,e){let n=e.getSortingConfig();t.setSortingConfig(n)}publish(t,e){this.domainEventPublisher.publish(new Zb(e.getAggregateId()))}},zu=class extends ae{compositionId;fieldId;sortOrder;constructor(t,e,n,r){super(t,"SetSortOrderCommand"),this.compositionId=e,this.fieldId=n,this.sortOrder=r}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}getSortOrder(){return this.sortOrder}},Jb=class{domainEventPublisher=y.resolve(_e);forCommand(){return zu}handle(t,e){let n=e.getAggregateId(),r=e.getCompositionId(),o=e.getFieldId(),s=e.getSortOrder(),a=t.setSortOrder(o,s);this.publishSortEvent(n,r,o,a)}publish(t,e){}publishSortEvent(t,e,n,r){let o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new oc(t,e,o))}},Bu=class{commandDispatcher=y.resolve(ut);setSortingConfig(t,e){this.commandDispatcher.dispatch(new Lu(e,t))}toggleSort(t,e,n){this.commandDispatcher.dispatch(new Vu(n,e,t))}setSortOrder(t,e,n,r){this.commandDispatcher.dispatch(new zu(r,n,t,e))}},ev=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Bu)}registerCommandHandlers(){return[Kb,Xb,Jb]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},ZO=(()=>{class i extends qt{sortingDispatcher;constructor(e){super(),this.sortingDispatcher=e}static services=[Bu];setSortingConfig(e,n){this.sortingDispatcher.setSortingConfig(e,n)}toggleSort(e,n,r){this.sortingDispatcher.toggleSort(e,n,r)}setSortOrder(e,n,r,o){this.sortingDispatcher.setSortOrder(e,n,r,o)}}return i})(),tv=class{registerProviders(t){t.provide(qt,ZO)}};function XO(){new wt(new tv,new ev).init()}XO();function JO(){return y.resolve(qt)}var eP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:qt,useFactory:JO}],imports:[q]})}return i})(),Sx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}}return i})(),iv=class{id;dataType;name;constructor(t,e,n){this.id=t,this.dataType=e,this.name=n}getFieldId(){return this.id}getId(){return this.id.getId()}getDataType(){return this.dataType}getName(){return this.name}},Hu=class{convert(t){return t.map(e=>this.convertOne(e))}convertOne(t){return new iv(t.getId(),t.getDataType(),t.getName())}},nv=class{fieldFactory;fields=new Map;constructor(t){this.fieldFactory=t}getField(t){return t===null?this.getAllFields()[0]:this.fields.get(t.getId())}getAllFieldIds(){return Array.from(this.fields.keys())}getAllFields(){return Array.from(this.fields.values())}getFieldsAsMap(){return this.fields}initFields(t){let e=this.fieldFactory.create(t);this.clear(),this.addFields(e)}addFields(t){for(let e of t)this.addField(e)}addField(t){this.fields.set(t.getId().toString(),t)}clear(){this.fields.clear()}},rv=class i extends Cr{id;field;name;constructor(t,e,n){super(t),this.id=t,this.field=e,this.name=n}static of(t,e,n){return new i(t,e,n)}getId(){return this.id}getKey(){return this.getId().toString()}getDataType(){return this.field.getDataType()}getName(){return this.name}getField(){return this.field}getAccessor(){return this.field.getAccessor()}getAccessorMethod(){return this.field.getAccessorMethod()}getSearchAccessorMethod(){return this.field.getSearchAccessorMethod()}getValue(t){return this.field.getValue(t)}getDisplayValue(t){return this.field.getDisplayValue(t)}isSummaries(t){return this.field.isSummaries(t)}isSummariesEnabled(){return this.field.isSummariesEnabled()}search(t,e){return this.field.search(t,e)}filter(t,e){let n=this.field.getValue(t);return this.field.getDataType()===$.NUMBER?this.field.filter(n,e):this.field.getDataType()===$.BOOLEAN?this.field.filter(n,e):this.field.getDataType()===$.STRING?this.field.filter(n,e):this.field.getDataType()===$.DATE?this.field.filter(n,e):!0}sort(t,e,n){let r=n?this.field.getSortValue(t):this.field.getSortValue(e),o=n?this.field.getSortValue(e):this.field.getSortValue(t);return this.field.getDataType()===$.NUMBER?this.field.sort(r,o):this.field.getDataType()===$.BOOLEAN?this.field.sort(r,o):this.field.getDataType()===$.STRING?this.field.sort(r,o):this.field.getDataType()===$.DATE?this.field.sort(r,o):0}},ov=class{accessor;dataType;accessorMethod;matchers;constructor(t,e,n){this.accessor=t,this.dataType=e,this.matchers=n,typeof t=="string"?this.accessorMethod=r=>r.getSourceItem()[t]:typeof t=="function"?this.accessorMethod=r=>t(r.getSourceItem()):this.accessorMethod=r=>r}getDataType(){return this.dataType}getAccessor(){return this.accessor}getAccessorMethod(){return this.accessorMethod}getMatchers(){return this.matchers}getSearchAccessorMethod(){let t;return this.matchers.getSearchMatcher().ifPresent(e=>{t=e}),t?e=>{let n=this.accessorMethod(e);return t(n)}:e=>this.accessorMethod(e)}getValue(t){return this.accessorMethod(t)}getSortValue(t){let e=this.accessorMethod(t);return this.matchers.getSortMatcher().ifPresent(n=>{e=n(e)}),e}getSearchValue(t){let e=this.accessorMethod(t);return this.matchers.getSearchMatcher().ifPresent(n=>{e=n(e)}),e}},io=class extends ov{summariesEnabled=!0;summariesTypes;possibleSummaries;constructor(t,e,n,r){super(t,e,n),this.possibleSummaries=this.assignPossibleSummaries(),this.assignSummaries(r)}isSummaries(t){return this.isSummariesEnabled()?!!(this.summariesTypes&t):!1}isSummariesEnabled(){return this.summariesEnabled}setSummariesEnabled(t){this.summariesEnabled=t}assignSummaries(t){t&&Object.keys(t).length!==0?(t.enabled&&(this.summariesEnabled=!!t.enabled),t.summariesTypes?(this.summariesTypes=ee.DISTINCT,t.summariesTypes.forEach(e=>{this.summariesTypes|=e})):this.summariesTypes=this.assignDefaultSummaries()):this.summariesTypes=this.assignDefaultSummaries()}},$u=class extends io{constructor(t,e,n){super(t,$.UNKNOWN,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT}search(t,e){return!1}sort(t,e){return 0}filter(t,e){return!1}equals(t,e){return!1}getDisplayValue(t){return t}},sv=class extends io{constructor(t,e,n){super(t,$.NUMBER,e,n)}getField(){return this}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT|ee.SUM|ee.MIN|ee.MAX|ee.AVERAGE|ee.MEDIAN}search(t,e){return!1}sort(t,e){let n=+t,r=+e;return n-r}filter(t,e){return t>e}equals(t,e){return this.getValue(t)===e}getDisplayValue(t){return`${t}`}},av=class extends io{constructor(t,e,n){super(t,$.STRING,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT}search(t,e){let n=this.getSearchValue(t);return typeof n=="string"?n.toLowerCase().indexOf(e.toLowerCase())>-1:!1}sort(t,e){let n=""+t,r=""+e;return n.localeCompare(r)}filter(t,e){return t.toLowerCase().indexOf(e.toLowerCase())>-1}equals(t,e){return this.getValue(t)===e}getDisplayValue(t){return t}},cv=class extends io{constructor(t,e,n){super(t,$.BOOLEAN,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT|ee.TRUTHY|ee.FALSY}search(t,e){return!1}sort(t,e){let n=!!t,r=!!e;return n===r?0:r?-1:1}filter(t,e){return t===e}equals(t,e){return this.getValue(t)===e}getDisplayValue(t){return t?"True":"False"}},lv=class extends io{constructor(t,e,n){super(t,$.DATE,e,n)}assignDefaultSummaries(){return ee.DISTINCT}assignPossibleSummaries(){return ee.COUNT|ee.DISTINCT}search(t,e){return!1}sort(t,e){return t-e}filter(t,e){return!1}equals(t,e){return this.getValue(t).getTime()===e.getTime()}getDisplayValue(t){return t.toDateString()}},dv=class{matcher;sortMatcher;searchMatcher;constructor(t,e,n){this.matcher=t,this.sortMatcher=e,this.searchMatcher=n}getMatcher(){return Xe.of(this.matcher)}getSortMatcher(){let t;return this.sortMatcher&&(t=this.sortMatcher),this.matcher&&(t=this.matcher),Xe.of(t)}getSearchMatcher(){let t;return this.searchMatcher&&(t=this.searchMatcher),this.matcher&&(t=this.matcher),Xe.of(t)}},Uu=class{create(t){let e=this.createMatchers(t),n=t.type;return n===void 0&&(n=$.STRING),n===$.UNKNOWN?new $u(t.field,e,t.summaries):n===$.NUMBER?new sv(t.field,e,t.summaries):n===$.STRING?new av(t.field,e):n===$.BOOLEAN?new cv(t.field,e):n===$.DATE?new lv(t.field,e):new $u(t.field,e,t.summaries)}createMatchers(t){let e=t.matcher,n;return t.sorting&&(n=t.sorting.matcher),new dv(e,n)}},Wu=class{generateId(){let t=Tn.generate();return new Lr(t)}},II=(()=>{class i{fieldIdGenerator;dataFieldFactory;constructor(e,n){this.fieldIdGenerator=e,this.dataFieldFactory=n}static services=[Wu,Uu];create(e){return e?e.map((n,r)=>{let o=this.fieldIdGenerator.generateId(),s=this.dataFieldFactory.create(n);return new rv(o,s,this.getFieldName(n,r))}):[]}getFieldName(e,n){return typeof e.field=="string"?e.field.toLowerCase():"Field #"+n}}return i})(),kI=(()=>{class i{fieldFactory;constructor(e){this.fieldFactory=e}static services=[II];create(){return new nv(this.fieldFactory)}}return i})(),uv=class{forCommand(){return Ba}handle(t,e){let n=e.getFieldConfigs();t.createFields(n)}},tP=(()=>{class i{fieldArchive;fieldConverter;constructor(e,n){this.fieldArchive=e,this.fieldConverter=n}static services=[Sx,Hu];forEvent(){return cs}handle(e){if(e.ofMessageType("FieldsInitedEvent")){let n=this.fieldConverter.convert(e.getFields());this.fieldArchive.next(e.getAggregateId(),n)}}}return i})(),mv=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(kI),t.provide(II),t.provide(Wu),t.provide(Uu)}registerCommandHandlers(){return[uv]}registerDomainEventHandler(){return[tP]}registerMultiDomainEventHandler(){return[]}},iP=(()=>{class i extends Xr{fieldReadModelArchive;constructor(e){super(),this.fieldReadModelArchive=e}static services=[Sx];onFields(e){return this.fieldReadModelArchive.on(e)}findFields(e){return this.fieldReadModelArchive.find(e)}}return i})(),nP=(()=>{class i extends qr{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[ut];initFields(e,n){this.commandDispatcher.dispatch(new Ba(n,e))}}return i})(),hv=class{registerProviders(t){t.provide(qr,nP),t.provide(Sx),t.provide(Hu),t.provide(Xr,iP)}};function rP(){new wt(new hv,new mv).init()}rP();function oP(){return y.resolve(qr)}function sP(){return y.resolve(Xr)}var aP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:qr,useFactory:oP},{provide:Xr,useFactory:sP}],imports:[q]})}return i})(),Gu=class extends ae{enabled;constructor(t,e){super(t,"StructureSetSummariesEnabledCommand"),this.enabled=e}isEnabled(){return this.enabled}},cP="StructureSummariesEnabledSetEvent",qu=class extends me{enabled;constructor(t,e){super(t,e,cP),this.enabled=e}isEnabled(){return this.enabled}},lP=(()=>{class i{structureSourceDomainEventPublisher;domainEventPublisher=y.resolve(_e);constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return Gu}handle(e,n){let r=n.isEnabled();e.setSummariesEnabled(r)}publish(e,n){let r=n.isEnabled(),o=e.getEvents();this.domainEventPublisher.publish(new qu(n.getAggregateId(),r)),this.structureSourceDomainEventPublisher.publish(o)}}return i})(),gv=class extends Le{summarizedValues;constructor(t,e){super(t,"StructureSummariesChangedAggregateEvent"),this.summarizedValues=e}toDomainEvent(){return new bc(this.getAggregateId(),this.summarizedValues)}getSummaries(){return this.summarizedValues}},pv=(()=>{class i{calculators;static DEFAULT_ENABLED=!1;structureId;enabled;values=new Map;constructor(e,n){this.calculators=n,this.structureId=e,this.enabled=i.DEFAULT_ENABLED}calculate(e,n){if(!this.enabled)return[];let r=new Map;return this.calculators.forEach(o=>{let s=o.calculate(e,n);s&&Array.from(s.keys()).forEach(a=>{r.set(a,s.get(a))})}),r.size>0?[new gv(this.structureId,r)]:[]}setEnabled(e){this.enabled=e}add(){}remove(){}update(){}}return i})(),xs=class extends Fe{constructor(){super(pv.DEFAULT_ENABLED)}init(t){this.next(t,pv.DEFAULT_ENABLED)}},dP=(()=>{class i{summariesEnabledArchive;constructor(e){this.summariesEnabledArchive=e}static services=[xs];forEvent(){return qu}handle(e){e.ofMessageType("StructureSummariesEnabledSetEvent")&&this.summariesEnabledArchive.next(e.getAggregateId(),e.isEnabled())}}return i})(),no=class{calculate(t,e){let n=t.filter(a=>this.forDataType(a.getDataType()));if(!n||n.length===0||e.length===0)return null;let r=new Map,o=new Map;n.forEach(a=>{let l=a.getKey();r.set(l,0),o.set(l,new Set),this.prepare(a)}),e.forEach(a=>{n.forEach(l=>{let d=l.getKey(),p=l.getValue(a);if(p!==null||p!==void 0||p!==""){if(l.isSummaries(ee.COUNT)){let w=r.get(d);r.set(d,w+1)}l.isSummaries(ee.DISTINCT)&&o.get(d).add(p)}this.aggregate(l,p)})}),n.forEach(a=>{this.postCalculate(a,e)});let s=new Map;return n.forEach(a=>{let l=a.getKey(),d=this.generateAggregatedValues(a);a.isSummaries(ee.COUNT)&&d.setCount(r.get(l)),a.isSummaries(ee.DISTINCT)&&d.setDistinct(o.get(l).size),s.set(l,d)}),s}},ro=class{count;distinct;setCount(t){this.count=t}setDistinct(t){this.distinct=t}},fv=class extends ro{truthy;falsy;constructor(t,e){super(),this.truthy=t,this.falsy=e}},Yu=class extends no{truthy=new Map;falsy=new Map;constructor(){super()}forDataType(t){return t===$.BOOLEAN}prepare(t){let e=t.getKey();t.isSummaries(ee.TRUTHY)&&this.truthy.set(e,0),t.isSummaries(ee.FALSY)&&this.falsy.set(e,0)}postCalculate(t,e){}aggregate(t,e){let n=e,r=t.getKey(),o=this.truthy.get(r),s=this.falsy.get(r);n?t.isSummaries(ee.TRUTHY)&&this.truthy.set(r,o+1):t.isSummaries(ee.FALSY)&&this.falsy.set(r,s+1)}generateAggregatedValues(t){let e=t.getKey();return new fv(this.truthy.get(e),this.falsy.get(e))}},bv=class extends ro{constructor(){super()}},Qu=class extends no{constructor(){super()}forDataType(t){return t===$.DATE}prepare(t){}postCalculate(t,e){}aggregate(t,e){}generateAggregatedValues(t){return new bv}},vv=class extends ro{sum;min;max;average;median;constructor(t,e,n,r,o){super(),this.sum=this.setValueWithPrecision(t),this.min=this.setValueWithPrecision(e),this.max=this.setValueWithPrecision(n),this.average=this.setValueWithPrecision(r),this.median=this.setValueWithPrecision(o)}setValueWithPrecision(t){return!t&&t!==0?null:t===0?0:+t.toFixed(2)}},Ku=class extends no{sum=new Map;min=new Map;max=new Map;average=new Map;median=new Map;constructor(){super()}forDataType(t){return t===$.NUMBER}prepare(t){let e=t.getKey();this.sum.set(e,0),this.min.set(e,Number.MAX_SAFE_INTEGER),this.max.set(e,0)}postCalculate(t,e){let n=t.getKey();t.isSummaries(ee.AVERAGE)&&this.average.set(n,this.sum.get(n)/e.length),t.isSummaries(ee.MEDIAN)&&this.median.set(n,t.getValue(e[Math.floor(e.length/2)]))}aggregate(t,e){let n=+e,r=t.getKey(),o=this.sum.get(r),s=this.min.get(r),a=this.max.get(r);(t.isSummaries(ee.SUM)||t.isSummaries(ee.AVERAGE))&&this.sum.set(r,o+n),t.isSummaries(ee.MIN)&&s>n&&this.min.set(r,n),t.isSummaries(ee.MAX)&&a{class i{calculators;constructor(e){this.calculators=e}static services=[{inject:Pr,collection:!0}];create(e){return new pv(e,this.calculators)}}return i})(),Ju=class{commandDispatcher=y.resolve(ut);setSummariesEnabled(t,e){this.commandDispatcher.dispatch(new Gu(e,t))}},SI=(()=>{class i{static defaultTop=!1;static defaultBottom=!0;top=i.defaultTop;bottom=i.defaultBottom;setTop(e){this.top=e}setBottom(e){this.bottom=e}isTopEnabled(){return this.top}isBottomEnabled(){return this.bottom}}return i})(),xc=class i extends Fe{static default=new SI;constructor(){super(i.default)}},em=class{convert(t){let e=new SI;return t.top!==void 0&&t.top!==null&&e.setTop(t.top),t.bottom!==void 0&&t.bottom!==null&&e.setBottom(t.bottom),e}},yv=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(EI),t.provide(Ju),t.provide(xc),t.provide(em),t.provideCollection(Pr,Yu),t.provideCollection(Pr,Qu),t.provideCollection(Pr,Ku),t.provideCollection(Pr,Zu),t.provideCollection(Pr,Xu)}registerCommandHandlers(){return[lP]}registerDomainEventHandler(){return[dP]}registerMultiDomainEventHandler(){return[]}},uP=(()=>{class i extends Yr{summariesEnabledArchive;structureSummariesArchive;constructor(e,n){super(),this.summariesEnabledArchive=e,this.structureSummariesArchive=n}static services=[xs,xc];onEnabled(e){return this.summariesEnabledArchive.on(e)}onTopEnabled(e){return this.onEnabled(e).pipe(Ht(n=>this.structureSummariesArchive.on(e).pipe(P(r=>n&&r.isTopEnabled()))))}onBottomEnabled(e){return this.onEnabled(e).pipe(Ht(n=>this.structureSummariesArchive.on(e).pipe(P(r=>n&&r.isBottomEnabled()))))}}return i})(),mP=(()=>{class i extends Hn{summariesDispatcher;configConverter;structureSummariesConfigArchive;constructor(e,n,r){super(),this.summariesDispatcher=e,this.configConverter=n,this.structureSummariesConfigArchive=r}static services=[Ju,em,xc];setSummariesEnabled(e,n){this.summariesDispatcher.setSummariesEnabled(e,n)}setConfig(e,n){let r=this.configConverter.convert(e);this.setSummariesEnabled(e.enabled,n),this.structureSummariesConfigArchive.next(n,r)}}return i})(),wv=class extends Zr{constructor(){super()}onSummariesChanged(t){return this.onEvent(t,bc)}},Cv=class{registerProviders(t){t.provide(Hn,mP),t.provide(Zr,wv),t.provide(Yr,uP),t.provide(xs)}};function hP(){new wt(new Cv,new yv).init()}function Aa(i){return{provide:Pr,useClass:i,multi:!0}}hP();function gP(){return y.resolve(Hn)}function pP(){return y.resolve(Yr)}function fP(){return y.resolve(Zr)}var bP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Hn,useFactory:gP},{provide:Yr,useFactory:pP},{provide:Zr,useFactory:fP},Aa(Yu),Aa(Qu),Aa(Ku),Aa(Zu),Aa(Xu)],imports:[q,Nn,mn,mi]})}return i})(),tm=class{start;end;margin;constructor(t,e,n){this.start=t,this.end=e,this.margin=n}getStart(){return this.start}getEnd(){return this.end}getMargin(){return this.margin}},vP=(()=>{let i=class{containerHeight=Xe.empty();sourceHeight;isContainerHeightProperForVirtualScroll(){return this.containerHeight.isPresent()?this.containerHeight.getValueOrNullOrThrowError()>0:!1}getVisibleContainerHeight(){return this.getHeight()}getHeight(){return this.containerHeight.isPresent()?this.getContainerHeight():this.sourceHeight}getSourceHeight(){return this.sourceHeight}setContainerHeight(e){e>=0&&(this.containerHeight=Xe.of(e))}setSourceSize(e){this.sourceHeight=e}getContainerHeight(){return this.containerHeight.getValueOrNullOrThrowError()>this.sourceHeight?this.sourceHeight:this.containerHeight.getValueOrNullOrThrowError()}};return i=vo([xp],i),i})(),im=class extends me{position;constructor(t,e){super(t,e,"ScrollBarPositionSetEvent"),this.position=e}getPosition(){return this.position}},Iv=class extends Le{position;constructor(t,e){super(t,"ScrollBarPositionSetAggregateEvent"),this.position=e}toDomainEvent(){return new im(this.getAggregateId(),this.position)}},Oa,zn,kv=(zn=class{structureId;enabled;rowHeight=Oa.ROW_HEIGHT;hiddenItemsTop=Oa.HIDDEN_ITEMS_TOP;hiddenItemsBottom=Oa.HIDDEN_ITEMS_BOTTOM;container=new vP;scrollPosition;range;sourceSize;logger;constructor(t,e=!1,n=0,r=0,o=0,s,a,l){this.structureId=t,this.enabled=e,this.sourceSize=r,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.container.setContainerHeight(n),this.scrollPosition=o,Number.isInteger(s)&&(this.rowHeight=s),Number.isInteger(a)&&(this.hiddenItemsTop=a),Number.isInteger(l)&&(this.hiddenItemsBottom=l),this.calculateRange()}isEnabled(){return this.enabled&&this.container.getHeight()>0&&this.sourceSize>0}getViewPortHeight(){return this.container.getVisibleContainerHeight()}getSourceHeight(){return this.container.getSourceHeight()}getRowHeight(){return this.rowHeight}getRange(){return this.range}getTopMargin(){return this.range.getStart()*this.rowHeight}calculateRange(){if(this.calcFullHeight()<=this.container.getHeight()){this.range=new tm(0,this.sourceSize,0);return}let t=Math.ceil(this.container.getHeight()/this.rowHeight),e=Math.floor(this.scrollPosition/this.rowHeight),n=e+t+this.hiddenItemsBottom,r=e;r+t>=this.sourceSize&&(r=this.sourceSize-t);let o=Math.max(e-this.hiddenItemsTop,0);return n>this.sourceSize&&(n=this.sourceSize,o=n-t),this.range=new tm(o,n,r),{start:o,end:n,topMargin:r}}setEnabled(t){this.enabled=t,this.enabled&&!this.container.isContainerHeightProperForVirtualScroll()&&this.logger.warn("Height needs to be specified in order for virtual scroll to work."),this.calculateRange()}setSourceSize(t=0){this.sourceSize=t,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setTopHiddenItemsCount(t){this.hiddenItemsTop=t,this.calculateRange()}setBottomHiddenItemsCount(t){this.hiddenItemsBottom=t,this.calculateRange()}setScrollPosition(t){this.scrollPosition=t,this.calculateRange()}scrollToIndex(t){t>=this.sourceSize&&(t=this.sourceSize),t<-1&&(t=0);let e=t*this.rowHeight;return new Iv(this.structureId,e)}setViewportHeight(t){this.container.setContainerHeight(t),this.calculateRange()}setRowHeight(t){this.rowHeight=t,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setLogger(t){this.logger=t}calcFullHeight(){return this.sourceSize*this.rowHeight}},Oa=zn,qc(zn,"ROW_HEIGHT",42),qc(zn,"HIDDEN_ITEMS_TOP",5),qc(zn,"HIDDEN_ITEMS_BOTTOM",2),zn);kv=Oa=vo([xp],kv);var DI=(()=>{class i{logger;constructor(e){this.logger=e}static services=[qn];create(e,n=!1,r=-1,o=0,s=0,a,l,d){let p=new kv(e,n,r,o,s,a,l,d);return p.setLogger(this.logger),p}}return i})(),nm=class extends ae{position;constructor(t,e){super(t,"SetScrollPositionCommand"),this.position=e}getPosition(){return this.position}},_c=class extends me{constructor(t){super(t,null,"ScrollPositionSetEvent")}},Ev=class{domainEventPublisher=y.resolve(_e);forCommand(){return nm}handle(t,e){let n=e.getPosition();t.setScrollPosition(n)}publish(t,e){this.domainEventPublisher.publish(new _c(e.getAggregateId()))}},rm=class extends ae{enabled;constructor(t,e){super(t,"SetVerticalScrollEnabledCommand"),this.enabled=e}isEnabled(){return this.enabled}},yc=class extends me{constructor(t){super(t,null,"VerticalScrollEnabledSetEvent")}},Sv=class{domainEventPublisher=y.resolve(_e);forCommand(){return rm}handle(t,e){let n=e.isEnabled();t.setVerticalFormationEnabled(n)}publish(t,e){this.domainEventPublisher.publish(new yc(e.getAggregateId()))}},om=class extends ae{theme;constructor(t,e){super(t,"SetRowHeightBasedOnThemeCommand"),this.theme=e}getTheme(){return this.theme}},wc=class extends me{constructor(t){super(t,null,"RowHeightSetBasedOnThemeEvent")}},Dv=class{domainEventPublisher=y.resolve(_e);forCommand(){return om}handle(t,e){let n=e.getTheme();t.setTheme(n)}publish(t,e){this.domainEventPublisher.publish(new wc(e.getAggregateId()))}},sm=class extends ae{rowHeight;constructor(t,e){super(t,"SetRowHeightCommand"),this.rowHeight=e}getRowHeight(){return this.rowHeight}},Cc=class extends me{constructor(t){super(t,null,"RowHeightSetEvent")}},Tv=class{domainEventPublisher=y.resolve(_e);forCommand(){return sm}handle(t,e){let n=e.getRowHeight();t.getVerticalFormation().setRowHeight(n)}publish(t,e){this.domainEventPublisher.publish(new Cc(e.getAggregateId()))}},am=class extends ae{height;constructor(t,e){super(t,"StructureSetHeightCommand"),this.height=e}getHeight(){return this.height}},Ic=class extends me{constructor(t){super(t,null,"StructureHeightSetEvent")}},Mv=class{domainEventPublisher=y.resolve(_e);forCommand(){return am}handle(t,e){let n=e.getHeight();t.setHeight(n)}publish(t,e){this.domainEventPublisher.publish(new Ic(e.getAggregateId()))}},Dx=(()=>{class i extends Fe{static DEFAULT_POSITION=0;constructor(){super(i.DEFAULT_POSITION)}}return i})(),xP=(()=>{class i{positionRepository;constructor(e){this.positionRepository=e}static services=[Dx];forEvent(){return im}handle(e){e.ofMessageType("ScrollBarPositionSetEvent")&&this.positionRepository.next(e.getAggregateId(),e.getPosition())}}return i})(),cm=class extends ae{position;constructor(t,e){super(t,"SetScrollBarPositionCommand"),this.position=e}getPosition(){return this.position}},Fv=class{forCommand(){return cm}handle(t,e){let n=e.getPosition();t.scrollToIndex(n)}},lm=class{commandDispatcher=y.resolve(ut);setVirtualScrollEnabled(t,e){this.commandDispatcher.dispatch(new rm(e,t))}scrollTo(t,e){this.commandDispatcher.dispatch(new cm(e,t))}setScrollPosition(t,e){this.commandDispatcher.dispatch(new nm(e,t))}},Rv=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(DI),t.provide(lm)}registerCommandHandlers(){return[Ev,Sv,Dv,Tv,Mv,Fv]}registerDomainEventHandler(){return[xP]}registerMultiDomainEventHandler(){return[]}},_P=(()=>{let i=class{enabled;topMargin;sourceHeight;viewportHeight;rowHeight;constructor(e,n,r,o,s){this.enabled=e,this.topMargin=n,this.sourceHeight=r,this.viewportHeight=o,this.rowHeight=s}isEnabled(){return this.enabled}getTopMargin(){return this.topMargin}getSourceHeight(){return this.sourceHeight}getViewPortHeight(){return this.viewportHeight}getRowHeight(){return this.rowHeight}};return i=vo([ed],i),i})(),dm=class{convert(t){let e=t.isEnabled(),n=t.getTopMargin(),r=t.getSourceHeight(),o=t.getViewPortHeight(),s=t.getRowHeight();return new _P(e,n,r,o,s)}},_s=class extends me{constructor(t){super(t,null,"StructureCreatedEvent")}},kc=class extends kr{},yP=(()=>{let i=class{loading;constructor(e){this.loading=e}isLoading(){return this.loading}};return i=vo([ed],i),i})(),um=class{convert(t){return new yP(t.isLoading())}},Av=class extends va{paging;entities;source;verticalFormation;constructor(t,e,n,r,o){super(t),this.paging=e,this.entities=n,this.source=r,this.verticalFormation=o}getPaging(){return this.paging}getEntities(){return this.entities}getSource(){return this.source}getVerticalFormation(){return this.verticalFormation}getTopMargin(){return this.verticalFormation.getTopMargin()}isLoaderVisible(){return this.getSource().isLoading()}getSourceHeight(){return this.verticalFormation.getSourceHeight()}isReadyToDisplay(){return this.entities.length>0}isVerticalScrollEnabled(){return this.verticalFormation.isEnabled()}},TI=(()=>{class i{pagingConverter;sourceConverter;verticalFormationConverter;constructor(e,n,r){this.pagingConverter=e,this.sourceConverter=n,this.verticalFormationConverter=r}static services=[Ld,um,dm];convert(e){let n=e.getPaging(),r=e.getEntities(),o=e.getSource(),s=e.getVerticalFormation();return new Av(e.getId().toReadModelRootId(),this.pagingConverter.convert(n),this.convertSource(r),this.sourceConverter.convert(o),this.verticalFormationConverter.convert(s))}convertSource(e){return e.map(n=>new pc(n.sourceItem,n.getPosition(),n.getId().toString(),n.getVersion()))}}return i})(),Tx=(()=>{class i extends xa{inMemoryProjectStore;structureConverter;constructor(e,n){super(e),this.inMemoryProjectStore=e,this.structureConverter=n}static services=[kc,TI];toReadModel(e){return this.structureConverter.convert(e)}}return i})(),oo=class extends Zi{},so=class extends oo{theme;constructor(t,e){super(t,e,"SchemaThemeSetEvent"),this.theme=e}getTheme(){return this.theme}},Ec=class extends me{constructor(t){super(t,null,"UniqueFilterUnselectedEvent")}},Sc=class extends me{constructor(t){super(t,null,"AllUniqueFilterUnselectedEvent")}},Dc=class extends me{constructor(t){super(t,null,"AllUniqueFilterSelectedEvent")}},Tc=class extends me{constructor(t){super(t,null,"UniqueFilterSelectedEvent")}},MI=(()=>{class i extends vt{inMemoryStructureReadStore;verticalFormation=new Map;verticalFormation$=new Tt(1);domainEventBus=y.resolve(ei);constructor(e){super(),this.inMemoryStructureReadStore=e,this.domainEventBus.ofEvents([_s,yc,eo,Ic,Cc,so,wc,_c,Jr,Ec,Sc,Dc,Tc,ls,Ya,Yn]).pipe(this.hermesTakeUntil()).subscribe(n=>{let r=n.getAggregateId();this.inMemoryStructureReadStore.getById(r).ifPresent(s=>{let a=s.getVerticalFormation();this.next(r,a)})})}static services=[Tx];onVerticalScrollEnabled(e){return this.onVerticalFormation(e).pipe(P(n=>n.isEnabled()),ti())}onRowHeight(e){return this.onVerticalFormation(e).pipe(P(n=>n.getRowHeight()),ti())}onContainerHeight(e){return this.onVerticalFormation(e).pipe(P(n=>n.getViewPortHeight()),ti())}onTopMargin(e){return this.onVerticalFormation(e).pipe(P(n=>n.getTopMargin()),ti())}onVerticalFormation(e){return this.verticalFormation$.toObservable().pipe(ye(n=>{let r=e.getId();return n.has(r)}),P(n=>n.get(e.getId())))}next(e,n){this.verticalFormation.set(e.toString(),n),this.verticalFormation$.next(this.verticalFormation)}}return i})(),wP=(()=>{class i extends un{verticalFormationRepository;positionRepository;constructor(e,n){super(),this.verticalFormationRepository=e,this.positionRepository=n}static services=[MI,Dx];onEnabled(e){return this.verticalFormationRepository.onVerticalScrollEnabled(e)}onRowHeight(e){return this.verticalFormationRepository.onRowHeight(e)}onContainerHeight(e){return this.verticalFormationRepository.onContainerHeight(e)}onTopMargin(e){return this.verticalFormationRepository.onTopMargin(e)}onScrollBarPosition(e){return this.positionRepository.on(e)}}return i})(),ao=class{constructor(){}},CP=(()=>{class i extends ao{verticalFormationDispatcher;constructor(e){super(),this.verticalFormationDispatcher=e}static services=[lm];enableVirtualScroll(e){this.verticalFormationDispatcher.setVirtualScrollEnabled(!0,e)}disableVirtualScroll(e){this.verticalFormationDispatcher.setVirtualScrollEnabled(!1,e)}scrollToTop(e){this.verticalFormationDispatcher.scrollTo(0,e)}scrollToBottom(e){this.verticalFormationDispatcher.scrollTo(Number.MAX_SAFE_INTEGER,e)}scrollToIndex(e,n){this.verticalFormationDispatcher.scrollTo(e,n)}setScrollPosition(e,n){this.verticalFormationDispatcher.setScrollPosition(e,n)}}return i})(),Ov=class{registerProviders(t){t.provide(dm),t.provide(MI),t.provide(un,wP),t.provide(ao,CP),t.provide(Dx)}};function IP(){new wt(new Ov,new Rv).init()}IP();function kP(){return y.resolve(ao)}function EP(){return y.resolve(un)}var SP=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:ao,useFactory:kP},{provide:un,useFactory:EP}],imports:[q]})}return i})(),mm=class extends vr{},hm=class extends kr{},FI=(()=>{class i extends Ir{constructor(e){super(e)}static services=[hm]}return i})(),RI=(()=>{class i extends mm{inMemorySchemaAggregateStore;constructor(e){super(),this.inMemorySchemaAggregateStore=e}static services=[FI];findById(e){return this.inMemorySchemaAggregateStore.findById(e)}save(e){this.inMemorySchemaAggregateStore.save(e)}}return i})(),ys=class extends Dn{},gm=class extends ys{theme;constructor(t,e){super(t,"SetSchemaThemeCommand"),this.theme=e}getTheme(){return this.theme}},Pv=class{forCommand(){return gm}handle(t,e){let n=e.getTheme();t.changeTheme(n)}},pm=class extends ys{coloring;constructor(t,e){super(t,"SetRowColoringCommand"),this.coloring=e}getColoring(){return this.coloring}},Nv=class{forCommand(){return pm}handle(t,e){let n=e.getColoring();t.setRowColoring(n)}},fm=class extends ys{enabled;constructor(t,e){super(t,"SetSchemaHorizontalGridCommand"),this.enabled=e}isEnabled(){return this.enabled}},jv=class{domainEventPublisher=y.resolve(_e);forCommand(){return fm}handle(t,e){let n=e.isEnabled();t.setHorizontalGrid(n)}publish(t,e){this.domainEventPublisher.publishFromAggregate(t)}},bm=class extends ys{enabled;constructor(t,e){super(t,"SetSchemaVerticalGridCommand"),this.enabled=e}isEnabled(){return this.enabled}},Vv=class{domainEventPublisher=y.resolve(_e);forCommand(){return bm}handle(t,e){let n=e.isEnabled();t.setVerticalGrid(n)}publish(t,e){this.domainEventPublisher.publishFromAggregate(t)}},Mc=class extends Fe{constructor(){super()}},ws=class extends oo{rowColoring;constructor(t,e){super(t,e,"RowColoringSetEvent"),this.rowColoring=e}getRowColoring(){return this.rowColoring}},Cs=class extends oo{horizontalGrid;constructor(t,e){super(t,e,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=e}getHorizontalGrid(){return this.horizontalGrid}},Is=class extends oo{verticalGrid;constructor(t,e){super(t,e,"SchemaVerticalGridSetEvent"),this.verticalGrid=e}getVerticalGrid(){return this.verticalGrid}},Lv=class{verticalGrid;horizontalGrid;theme;rowColoring;constructor(t,e,n,r){this.verticalGrid=t,this.horizontalGrid=e,this.theme=n,this.rowColoring=r}getRowColoring(){return this.rowColoring}},DP=(()=>{class i{schemaCssClassesRepository;rowColoring;horizontalGrid;verticalGrid;schemaTheme;constructor(e){this.schemaCssClassesRepository=e}static services=[Mc];forEvents(){return[so,ws,Cs,Is]}handle(e){e.ofMessageType("RowColoringSetEvent")&&(this.rowColoring=e.getRowColoring()),e.ofMessageType("SchemaHorizontalGridSetEvent")&&(this.horizontalGrid=e.getHorizontalGrid()),e.ofMessageType("SchemaVerticalGridSetEvent")&&(this.verticalGrid=e.getVerticalGrid()),e.ofMessageType("SchemaThemeSetEvent")&&(this.schemaTheme=e.getTheme()),this.publish(e.getAggregateId())}publish(e){this.rowColoring!==void 0&&this.horizontalGrid!==void 0&&this.verticalGrid!==void 0&&this.schemaTheme!==void 0&&this.schemaCssClassesRepository.next(e,new Lv(this.verticalGrid,this.horizontalGrid,this.schemaTheme,this.rowColoring))}}return i})(),_C="SchemaAggregate",vm=class extends bi{constructor(){super()}forEvent(){return Is}},xm=class extends bi{constructor(){super()}forEvent(){return so}},_m=class extends bi{constructor(){super()}forEvent(){return ws}},ym=class extends bi{constructor(){super()}forEvent(){return Cs}},wm=class extends _a{constructor(t){super(t,"CreateSchemaCommand")}},zv=class{forCommand(){return wm}},co=class extends br{},Bv=class extends co{theme;constructor(t,e){super(t,"SchemaThemeSetAggregateEvent"),this.theme=e}toDomainEvent(){return new so(this.getAggregateId(),this.theme)}},Hv=class extends co{rowColoring;constructor(t,e){super(t,"RowColoringSetEvent"),this.rowColoring=e}toDomainEvent(){return new ws(this.getAggregateId(),this.rowColoring)}},$v=class extends co{verticalGrid;constructor(t,e){super(t,"SchemaHorizontalGridSetEvent"),this.verticalGrid=e}toDomainEvent(){return new Is(this.getAggregateId(),this.verticalGrid)}},Uv=class extends co{horizontalGrid;constructor(t,e){super(t,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=e}toDomainEvent(){return new Cs(this.getAggregateId(),this.horizontalGrid)}},Wv=class extends oo{constructor(t){super(t,null,"SchemaCreatedEvent")}},Gv=class extends co{constructor(t){super(t,"SchemaCreatedAggregateEvent")}toDomainEvent(){return new Wv(this.getAggregateId())}},Cm=class i extends xr{static DEFAULT_THEME=H.GENERIC;static DEFAULT_ROW_COLORING=Ge.ODD;static DEFAULT_VERTICAL_GRID=!0;static DEFAULT_HORIZONTAL_GRID=!0;horizontalGrid;verticalGrid;theme;rowColoring;constructor(t){super(t,"SchemaAggregate"),this.setTheme(i.DEFAULT_THEME),this.setHorizontalGrid(i.DEFAULT_HORIZONTAL_GRID),this.setVerticalGrid(i.DEFAULT_VERTICAL_GRID),this.setRowColoring(i.DEFAULT_ROW_COLORING)}createEvent(){return Gv}changeTheme(t){this.setTheme(t),t===H.MATERIAL&&(this.setRowColoring(Ge.NONE),this.setVerticalGrid(!1)),t===H.LIGHT&&(this.setRowColoring(Ge.NONE),this.setVerticalGrid(!1)),t===H.DARK&&(this.setRowColoring(Ge.NONE),this.setVerticalGrid(!1)),t===H.GENERIC&&this.setRowColoring(Ge.ODD)}setRowColoring(t){this.rowColoring=t,this.addEvent(new Hv(this.getId(),this.rowColoring))}setVerticalGrid(t){this.verticalGrid=t,this.addEvent(new $v(this.getId(),this.verticalGrid))}setHorizontalGrid(t){this.horizontalGrid=t,this.addEvent(new Uv(this.getId(),this.horizontalGrid))}setTheme(t){this.theme=t,this.addEvent(new Bv(this.getId(),this.theme))}},qv=class extends fr{constructor(){super()}create(t){return new Cm(t)}},Fc=class extends Fe{constructor(){super()}},Rc=class extends Fe{constructor(){super()}},Yv=class{defineAggregate(){return{aggregateKey:_C,createCommandHandler:zv,factory:qv,repository:RI}}registerKey(){return _C}registerProviders(t){t.provide(Fc),t.provide(Rc)}registerCommandHandlers(){return[Pv,Nv,jv,Vv]}registerDomainEventHandler(){return[xm,ym,_m,vm]}registerMultiDomainEventHandler(){return[DP]}},Im=class{commandDispatcher=y.resolve(ut);create(t){this.commandDispatcher.dispatch(new wm(t))}setTheme(t,e){this.commandDispatcher.dispatch(new gm(e,t))}setRowColoring(t,e){this.commandDispatcher.dispatch(new pm(e,t))}setVerticalGrid(t,e){this.commandDispatcher.dispatch(new bm(e,t))}setHorizontalGrid(t,e){this.commandDispatcher.dispatch(new fm(e,t))}},TP=(()=>{class i extends Ot{schemaDispatcher;structurePublisher;fabricModalThemeService;schemaRowClassArchive;schemaRowStyleArchive;constructor(e,n,r,o,s){super(),this.schemaDispatcher=e,this.structurePublisher=n,this.fabricModalThemeService=r,this.schemaRowClassArchive=o,this.schemaRowStyleArchive=s}static services=[Im,Pt,ri,Fc,Rc];create(e){this.schemaDispatcher.create(e.toAggregateId())}setTheme(e,n,r){this.schemaDispatcher.setTheme(e,n.toAggregateId()),this.fabricModalThemeService.changeTheme(this.toFabricTheme(e)),this.structurePublisher.setRowHeightBasedOnTheme(e,r)}setRowColoring(e,n){let r=this.toSchemaRowColoring(e);this.schemaDispatcher.setRowColoring(r,n.toAggregateId())}setVerticalGrid(e,n){this.schemaDispatcher.setVerticalGrid(e,n.toAggregateId())}setHorizontalGrid(e,n){this.schemaDispatcher.setHorizontalGrid(e,n.toAggregateId())}setRowClass(e,n){return this.schemaRowClassArchive.next(n.toAggregateId(),e)}setRowStyle(e,n){return this.schemaRowStyleArchive.next(n.toAggregateId(),e)}toSchemaRowColoring(e){switch(e){case at.NONE:return Ge.NONE;case at.ODD:return Ge.ODD;case at.EVEN:return Ge.EVEN;default:return Ge.NONE}}toFabricTheme(e){switch(e){case H.DARK:return Ce.DARK;case H.FABRIC:return Ce.FABRIC;case H.GENERIC:return Ce.GENERIC;case H.LIGHT:return Ce.LIGHT;case H.MATERIAL:return Ce.MATERIAL;default:return Ce.FABRIC}}}return i})(),MP=(()=>{class i extends Yt{schemaCssClassesRepository;schemaThemeRepository;schemaHorizontalGridRepository;schemaRowColoringRepository;schemaVerticalGridRepository;schemaRowClassArchive;schemaRowStyleArchive;constructor(e,n,r,o,s,a,l){super(),this.schemaCssClassesRepository=e,this.schemaThemeRepository=n,this.schemaHorizontalGridRepository=r,this.schemaRowColoringRepository=o,this.schemaVerticalGridRepository=s,this.schemaRowClassArchive=a,this.schemaRowStyleArchive=l}static services=[Mc,xm,ym,_m,vm,Fc,Rc];onTheme(e){return this.schemaThemeRepository.on(e.toAggregateId())}onceTheme(e){return Sr(this.onTheme(e))}findTheme(e){return this.schemaThemeRepository.find(e.toAggregateId())}onHorizontalGrid(e){return this.schemaHorizontalGridRepository.on(e.toAggregateId())}onVerticalGrid(e){return this.schemaVerticalGridRepository.on(e.toAggregateId())}onRowColoring(e){return this.schemaRowColoringRepository.on(e.toAggregateId())}onCssClasses(e){return this.schemaCssClassesRepository.on(e.toAggregateId())}onRowClass(e){return this.schemaRowClassArchive.on(e.toAggregateId())}onRowStyle(e){return this.schemaRowStyleArchive.on(e.toAggregateId())}}return i})(),Qv=class extends Bi{constructor(){super()}onThemeChanged(t){return this.onEvent(t,so).pipe(P(e=>e.getTheme()))}onHorizontalGridChanged(t){return this.onEvent(t,Cs).pipe(P(e=>e.getHorizontalGrid()))}onVerticalGridChanged(t){return this.onEvent(t,Is).pipe(P(e=>e.getVerticalGrid()))}onRowColoring(t){return this.onEvent(t,ws).pipe(P(e=>e.getRowColoring()))}},Kv=class{registerProviders(t){t.provide(Im),t.provide(mm,RI),t.provide(FI),t.provide(hm),t.provide(Ot,TP),t.provide(Yt,MP),t.provide(Bi,Qv),t.provide(Mc)}},FP=()=>{new wt(new Kv,new Yv).init()};function RP(){return y.resolve(Ot)}function AP(){return y.resolve(Yt)}function OP(){return y.resolve(Bi)}FP();var PP=(()=>{class i extends st{constructor(){super()}static forComponent(){return[]}static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Ot,useFactory:RP},{provide:Yt,useFactory:AP},{provide:Bi,useFactory:OP}],imports:[q]})}return i})(),AI=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[q]})}return i})();RA();function NP(){return y.resolve(ci)}function jP(){return y.resolve(At)}function VP(){return y.resolve(Wn)}function LP(){return y.resolve(Un)}function zP(){return y.resolve(Ur)}var BP=(()=>{class i extends st{constructor(e){super(),y.provideValue(Je,e)}static forComponent(){return[]}static \u0275fac=function(n){return new(n||i)(v(Je))};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:ci,useFactory:NP},{provide:At,useFactory:jP},{provide:Wn,useFactory:VP},Bc,mx,gu,gx,pu,{provide:Un,useFactory:LP},{provide:Ur,useFactory:zP}],imports:[q,Pi,AI,An,tn,ni,nn,md,An,tn,ni,nn]})}return i})(),HP=[JC,eI,tI,iI,nI,rI,oI,sI,aI,cI,lI,dI,uI,mI,hI,gI,pI,fI,bI],km=class extends me{constructor(t){super(t,null,"SetSourceLoadingEvent")}},Em=class extends ae{enabled;constructor(t,e){super(t,"SourceSetLoadingCommand"),this.enabled=e}isEnabled(){return this.enabled}},Zv=class{domainEventPublisher=y.resolve(_e);forCommand(){return Em}handle(t,e){let n=e.isEnabled();t.getSource().setLoading(n)}publish(t,e){this.domainEventPublisher.publish(new km(e.getAggregateId()))}},Sm=class extends ae{items;constructor(t,e=[]){super(t,"SetOriginCommand"),this.items=e}getItems(){return this.items}},$P=(()=>{class i{structureSourceDomainEventPublisher;constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return Sm}handle(e,n){let r=n.getItems();e.setOrigin(r)}publish(e,n){let r=e.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return i})(),Dm=class extends ae{params;constructor(t,e){super(t,"StructureEditSourceItemCommand"),this.params=e}getParams(){return this.params}},UP=(()=>{class i{structureSourceDomainEventPublisher;constructor(e){this.structureSourceDomainEventPublisher=e}static services=[to];forCommand(){return Dm}handle(e,n){let r=n.getParams();e.editItem(r)}publish(e,n){let r=e.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return i})(),Xv=class extends Le{beforeItem;afterItem;constructor(t,e,n){super(t,"StructureSourceItemEditedAggregateEvent"),this.beforeItem=e,this.afterItem=n}toDomainEvent(){return new $a(this.getAggregateId(),this.beforeItem,this.afterItem)}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},Jv=class extends Le{origin;constructor(t,e){super(t,"StructureOriginChangedAggregateEvent"),this.origin=e}toDomainEvent(){return new eo(this.getAggregateId(),this.origin)}getOrigin(){return this.origin}},ss=class extends Xi{constructor(t){super(t)}toString(){return this.getId()}},Tm=class{events=[];loading=!1;fetched=!1;origin;entities=[];preparedEntities=[];slicedEntities=[];formationManager;constructor(t){this.formationManager=t,this.events.push(...this.formationManager.init(!0,ai.SINGLE,xt.ROW))}isLoading(){return this.loading}setLoading(t){this.loading=t}setEntities(t){this.entities=t,this.recalculatePositions()}getEntities(){return this.entities}setPreparedEntities(){this.preparedEntities=Array.from(this.entities)}getPreparedEntities(){return this.preparedEntities}setSlicedEntities(t){this.slicedEntities=t}getSlicedEntities(){return this.slicedEntities}setOrigin(t=[],e){return this.origin=this.convertItems(t),this.createOriginChangedEvent(e)}setConvertedOrigin(t=[],e){return this.origin=Array.from(t),this.createOriginChangedEvent(e)}getOrigin(){return this.origin}editOriginItem(t,e,n,r){let o=this.findOriginItem(t),s=o.clone();return o&&(o.sourceItem[n.getAccessor()]=e,o.bumpVersion()),[new Xv(r,s,o.clone()),this.createOriginChangedEvent(r)]}deleteAllSelected(t){let e=[];return this.formationManager.getSelectedItemIds().forEach(r=>{e=e.concat(this.deleteOriginItemByItemId(r,t))}),e}deleteOriginItem(t,e){if(t instanceof ss)return this.deleteOriginItemByItemId(t,e);if(Array.isArray(t)){let n=[];return t.forEach(r=>{n=n.concat(this.deleteOneOriginItem(r,e))}),n}else return Number.isInteger(t)?this.deleteOriginItemByIndex(t,e):[]}addOriginItem(t,e){return this.origin.push(t),[this.createOriginChangedEvent(e)]}setCustomConfig(t){return this.formationManager.setCustomConfig(t)}selectCustom(t){this.formationManager.selectCustom(t,this.getEntities())}selectAll(){this.formationManager.selectAll(this.getEntities().map(t=>t.getId()))}unselectAll(){this.formationManager.unselectAll()}selectByIndex(t){this.formationManager.selectByIndex(t,this.getEntities().map(e=>e.getId()))}selectByIds(t){this.formationManager.selectByIds(t,this.getEntities())}reSelect(){this.formationManager.reSelectByIds(this.getEntities())}setSelectedRows(t){this.formationManager.selectRows(t,this.getEntities().map(e=>e.getId()))}toggleRow(t,e){this.formationManager.toggleRow(t,e,this.getEntities().map(n=>n.getId()))}getFormation(){return this.formationManager}convertItems(t){return t.map((e,n)=>new Ou(new ss(Tn.generate()),e,n))}createOriginChangedEvent(t){return new Jv(t,this.origin)}findOriginItem(t){return this.origin.find(e=>e.getId().toString()===t)}findOriginItemIndex(t){return this.origin.findIndex(e=>e.getId().toString()===t)}recalculatePositions(){this.entities.forEach((t,e)=>{t.setPosition(e)})}deleteOneOriginItem(t,e){return t instanceof ss?this.deleteOriginItemByItemId(t,e):Number.isInteger(t)?this.deleteOriginItemByIndex(t,e):[]}deleteOriginItemByItemId(t,e){let n=this.findOriginItemIndex(t.toString());return this.deleteOriginItemByIndex(n,e)}deleteOriginItemByIndex(t,e){if(t>-1){let n=this.origin.splice(t,1);if(n.length>0){for(let r of n)this.formationManager.unselectRow(r.getId());this.formationManager.calculateAllSelected(n.map(r=>r.getId())),this.formationManager.calculateAllUnselected()}return[this.createOriginChangedEvent(e)]}return[]}deleteManyOriginItemByIndex(t,e){let n=[];return t.forEach(r=>{n=n.concat(this.deleteOriginItemByIndex(r,e))}),n}deleteManyOriginItemByItemID(t,e){let n=[];return t.forEach(r=>{n=n.concat(this.deleteOriginItemByItemId(r,e))}),n}},e0=class{mode;type;constructor(t,e){this.mode=t,this.type=e}setMode(t){this.mode=t}getMode(){return this.type===xt.RADIO?ai.SINGLE:this.mode}isSingle(){return this.getMode()===ai.SINGLE}setType(t){this.type=t}getType(){return this.type}},Mm=class extends me{mode;constructor(t,e){super(t,e,"SelectionModeSetEvent"),this.mode=e}getMode(){return this.mode}},Na=class extends Le{mode;constructor(t,e){super(t,"SelectionModeSetAggregateEvent"),this.mode=e}toDomainEvent(){return new Mm(this.getAggregateId(),this.mode)}},Fm=class extends me{selectionType;constructor(t,e){super(t,e,"SelectionTypeSetEvent"),this.selectionType=e}getType(){return this.selectionType}},ja=class extends Le{selectionType;constructor(t,e){super(t,"SelectionTypeSetAggregateEvent"),this.selectionType=e}toDomainEvent(){return new Fm(this.getAggregateId(),this.selectionType)}},Ac=class extends me{enabled;constructor(t,e){super(t,e,"SelectionEnabledSetEvent"),this.enabled=e}isEnabled(){return this.enabled}},Oc=class extends Le{enabled;constructor(t,e){super(t,"SelectionEnabledSetAggregateEvent"),this.enabled=e}toDomainEvent(){return new Ac(this.getAggregateId(),this.enabled)}},Br=class extends _r{constructor(t){super(t)}toString(){return super.getId()}},Hr=class{key;text;customSelectId;builtIn;method;constructor(t,e,n,r,o){this.key=t,this.text=e,this.customSelectId=n,this.builtIn=r,this.method=o}getKey(){return this.key}getText(){return this.text}getCustomSelectId(){return this.customSelectId}isBuiltIn(){return this.builtIn}customSelect(t){return this.method(t)}},Rm=class{enabled;selections;constructor(t,e){this.enabled=t,this.selections=e}isEnabled(){return this.enabled}getSelections(){return this.selections}},WP=(()=>{class i{enabled;selections;static id=0;constructor(e,n){this.enabled=e,this.selections=n}init(){return[]}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}getSelections(){return this.selections}setSelections(e){this.selections=e.map(n=>typeof n=="string"?new Hr("",n,new Br(n),!0):(i.id++,new Hr(n.key,n.text,new Br(`${i.id}`),!1,n.select)))}findSelection(e){return Xe.of(this.selections.find(n=>n.getCustomSelectId().equals(e)))}}return i})(),Am=class extends me{customSelection;constructor(t,e){super(t,e,"FormationCustomSelectionChangeEvent"),this.customSelection=e}getCustomSelection(){return this.customSelection}},Om=class extends Le{customSelection;constructor(t,e){super(t,"FormationCustomSelectionChangeAggregateEvent"),this.customSelection=e}toDomainEvent(){return new Am(this.getAggregateId(),this.customSelection)}},t0=class{id;selectedItemIds;enabled;selection=new e0(ai.SINGLE,xt.ROW);allSelected;allUnselected;customSelection;matcher=t=>t.id;constructor(t,e){this.id=t,this.selectedItemIds=e}init(t,e,n){return this.enabled=t,this.selection.setMode(e),this.selection.setType(n),this.customSelection=new WP(!1,[new Hr("select_all","SELECT_ALL",new Br("SELECT_ALL"),!0),new Hr("UNSELECT_ALL","UNSELECT_ALL",new Br("UNSELECT_ALL"),!0),new Hr("","INVERT",new Br("INVERT"),!0)]),[new Oc(this.getId(),this.enabled),new Na(this.getId(),this.selection.getMode()),new ja(this.getId(),this.selection.getType()),new Om(this.getId(),new Rm(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}setSelection(t){return this.enabled=t,[new Oc(this.getId(),this.enabled)]}setMode(t){return this.selection.setMode(t),[new Na(this.getId(),this.selection.getMode()),new ja(this.getId(),this.selection.getType())]}setType(t){return this.selection.setType(t),[new Na(this.getId(),this.selection.getMode()),new ja(this.getId(),this.selection.getType())]}setMatcher(t){this.matcher=t}setCustomConfig(t){return t?.enabled&&this.customSelection.setEnabled(t.enabled),t?.selections&&this.customSelection.setSelections(t.selections),[new Om(this.getId(),new Rm(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}getSelectedItemIds(){return Array.from(this.selectedItemIds).map(t=>new ss(t))}selectCustom(t,e){this.customSelection.findSelection(t).ifPresent(n=>{if(n.isBuiltIn())switch(n.getCustomSelectId().toString()){case"SELECT_ALL":this.selectAll(e.map(r=>r.getId()));break;case"UNSELECT_ALL":this.unselectAll();break;case"INVERT":this.invertSelected(e.map(r=>r.getId()));break;default:break}else{let r=n.customSelect(e);this.selectedItemIds=new Set(r.map(o=>o.getId().toString()))}})}selectAll(t){this.selectedItemIds=new Set(t.map(e=>e.toString())),this.allSelected=!0,this.allUnselected=!1}unselectAll(){this.selectedItemIds.clear(),this.allSelected=!1,this.allUnselected=!0}invertSelected(t){let e=this.getSelectedItemIds(),n=t.filter(r=>!e.some(o=>o.equals(r)));this.selectedItemIds=new Set(n.map(r=>r.toString())),this.calculateAllSelected(t),this.calculateAllUnselected()}reSelectByIds(t){this.selectByIds(this.getSelectedItemIds().map(e=>e.getId()),t),this.calculateAllSelected(t.map(e=>e.getId())),this.calculateAllUnselected()}selectByIds(t,e){if(!this.enabled)return;let n=[];for(let o=0;othis.matcher(a.getSourceItem())===t[o]).map(a=>a.getId().toString());n.push(...s)}let r=Ut.ADD;this.selection.isSingle()&&(r=Ut.NONE),n.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(e.map(o=>o.getId())),this.calculateAllUnselected()}selectByIndex(t,e){if(!this.enabled)return;let n=t.map(o=>(e[o]||console.error("Item not found"),e[o].toString())),r=Ut.ADD;this.selection.isSingle()&&(r=Ut.NONE),n.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(e),this.calculateAllUnselected()}selectRows(t,e){}toggleRow(t,e,n){this.enabled&&(e===Ut.ADD&&this.selection.isSingle()&&(e=Ut.NONE),this.toggleRowByType(e,t),this.calculateAllSelected(n),this.calculateAllUnselected())}calculateAllSelected(t){if(t.length!==this.selectedItemIds.size)this.allSelected=!1;else{let e=Array.from(this.selectedItemIds),n=!0;e.sort(),t.sort();for(let r=0;r{class i{formationManagerFactory;constructor(e){this.formationManagerFactory=e}static services=[Pm];createDefault(e){let n=this.formationManagerFactory.create(e);return new Tm(n)}create(e){let n=this.formationManagerFactory.create(e);return new Tm(n)}}return i})(),Pa=function(i){return i[i.INDEX=0]="INDEX",i[i.ITEM_ID=1]="ITEM_ID",i[i.MANY_INDEX=2]="MANY_INDEX",i[i.MANY_ITEM_ID=3]="MANY_ITEM_ID",i}(Pa||{}),jr=class i extends ae{payload;type;constructor(t,e,n){super(t,"DeleteOriginItemCommand"),this.payload=e,this.type=n}static byIndex(t,e){return new i(t,e,Pa.INDEX)}static byManyIndex(t,e){return new i(t,e,Pa.MANY_INDEX)}static byItemId(t,e){return new i(t,e,Pa.ITEM_ID)}static byManyItemId(t,e){return new i(t,e,Pa.MANY_ITEM_ID)}getType(){return this.type}getPayload(){return this.payload}},i0=class{forCommand(){return jr}handle(t,e){t.deleteItem(e.getPayload())}},Mx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}}return i})(),GP=(()=>{class i{structureSourceOriginRepository;constructor(e){this.structureSourceOriginRepository=e}static services=[Mx];forEvent(){return eo}handle(e){if(e.ofMessageType("OriginSetEvent")){let n=e.getOrigin();this.structureSourceOriginRepository.next(e.getAggregateId(),n)}}}return i})(),Fx=(()=>{class i extends Fe{static default=[];constructor(){super(i.default)}getPreparedItems(e){return this.find(e).getValueOrNullOrThrowError()}}return i})(),qP=(()=>{class i{structurePreparedItemsRepository;constructor(e){this.structurePreparedItemsRepository=e}static services=[Fx];forEvent(){return vc}handle(e){if(e.ofMessageType("StructurePreparedEntitiesSetEvent")){let n=e.getPreparedItems();this.structurePreparedItemsRepository.next(e.getAggregateId(),n)}}}return i})(),n0=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Mx),t.provide(OI),t.provide(to)}registerCommandHandlers(){return[Zv,$P,UP,i0]}registerDomainEventHandler(){return[GP,qP]}registerMultiDomainEventHandler(){return[]}},YP=(()=>{class i extends Qt{structureRepository;structurePreparedItemsRepository;structureSourceOriginRepository;constructor(e,n,r){super(),this.structureRepository=e,this.structurePreparedItemsRepository=n,this.structureSourceOriginRepository=r}static services=[Gr,Fx,Mx];findItems(e){return this.structureRepository.getStructure(e).getEntities()}onItems(e){return this.structureRepository.on(e).pipe(P(n=>n.getEntities()),ti((n,r)=>{if(n.length!==r.length)return!1;let o=!0;return n.forEach((s,a)=>{if(!s.equals(r[a])){o=!1;return}}),o}))}onItemsSize(e){return this.onItems(e).pipe(P(n=>n.length))}onceItems(e){return Sr(this.onItems(e))}onOriginSize(e){return this.structureSourceOriginRepository.on(e).pipe(P(n=>n.length))}onLoading(e){return this.structureRepository.on(e).pipe(P(n=>n.getSource().isLoading()))}onPreparedItems(e){return this.structurePreparedItemsRepository.on(e)}findPreparedItems(e){return this.structurePreparedItemsRepository.getPreparedItems(e)}}return i})(),QP=(()=>{class i extends Wt{commandDispatcher;fieldWarehouse;sourceReadModelService;constructor(e,n,r){super(),this.commandDispatcher=e,this.fieldWarehouse=n,this.sourceReadModelService=r}static services=[ut,Xr,Qt];setOrigin(e,n){this.commandDispatcher.dispatch(new Sm(n,e))}setLoading(e,n){this.commandDispatcher.dispatch(new Em(n,e))}editItem(e,n){this.commandDispatcher.dispatch(new Dm(n,e))}editItemByIndex(e,n,r,o){let s=Ji(this.sourceReadModelService.onceItems(o).pipe(P(l=>l[e].getId()))),a=Ji(this.fieldWarehouse.onFields(o));Mn(u_(s,a)).pipe(Er(1)).subscribe(l=>{let d=l[0],p=l[1];this.editItem(new uc(d,p[n],r),o)})}deleteRow(e,n){e.getItemId()!==void 0?this.deleteItemById(e.getItemId(),n):e.getIndex()!==void 0&&this.deleteItemByIndex(e.getIndex(),n)}deleteRows(e,n){e.length>0&&(e[0].getItemId()!==void 0?this.deleteManyItemsByItemIds(e.map(r=>r.getItemId()),n):e[0].getIndex()!==void 0&&this.deleteManyItemsByIndex(e.map(r=>r.getIndex()),n))}deleteItemByIndex(e,n){this.commandDispatcher.dispatch(jr.byIndex(n,e))}deleteItemById(e,n){this.commandDispatcher.dispatch(jr.byItemId(n,e))}deleteManyItemsByIndex(e,n){this.commandDispatcher.dispatch(jr.byManyIndex(n,e))}deleteManyItemsByItemIds(e,n){this.commandDispatcher.dispatch(jr.byManyItemId(n,e))}}return i})(),r0=class{registerProviders(t){t.provide(Wt,QP),t.provide(Qt,YP),t.provide($r),t.provide(Fx),t.provide(um)}};function KP(){new wt(new r0,new n0).init()}KP();function ZP(){return y.resolve(Wt)}function XP(){return y.resolve(Qt)}function JP(){return y.resolve($r)}var eN=(()=>{class i extends st{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Wt,useFactory:ZP},{provide:Qt,useFactory:XP},{provide:$r,useFactory:JP}],imports:[q]})}return i})();y.provide(Wr);function tN(){return y.resolve(Wr)}var iN=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:Wr,useFactory:tN}]})}return i})(),nN=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({imports:[iN]})}return i})(),rN=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:[qC]})}return i})(),Nm=class{itemIds;allSelected;allUnselected;constructor(t,e,n){this.itemIds=t,this.allSelected=e,this.allUnselected=n}getAll(){return this.itemIds}isSelected(t){return this.itemIds.some(e=>e===t)}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}isIndeterminate(){return!(this.isAllSelected()||this.isAllUnselected())}},Pc=class i extends Fe{static default=new Nm([],!1,!1);constructor(){super(i.default)}},jm=class extends ae{enabled;constructor(t,e){super(t,"SetEnabledSelectionCommand"),this.enabled=e}isEnabled(){return this.enabled}},o0=class{forCommand(){return jm}handle(t,e){t.setSelection(e.isEnabled())}},Vm=class extends ae{selectedRow;type;constructor(t,e,n){super(t,"ToggleSelectedRowCommand"),this.selectedRow=e,this.type=n}getSelectedRow(){return this.selectedRow}getType(){return this.type}},s0=class{forCommand(){return Vm}handle(t,e){let n=e.getSelectedRow(),r=e.getType();t.toggleRow(n,r)}},oN=(()=>{class i{rowSelectedArchive;constructor(e){this.rowSelectedArchive=e}static services=[Pc];forEvent(){return Ua}handle(e){if(e.ofMessageType("SelectedRowChangedEvent")){let n=new Nm(e.getSelectedRows(),e.isAllSelected(),e.isAllUnselected());this.rowSelectedArchive.next(e.getAggregateId(),n)}}}return i})(),Lm=class extends ae{mode;constructor(t,e){super(t,"SetSelectionModeCommand"),this.mode=e}getMode(){return this.mode}},a0=class{forCommand(){return Lm}handle(t,e){t.setSelectionMode(e.getMode())}},zm=class extends ae{constructor(t){super(t,"SelectAllRowsCommand")}},c0=class{forCommand(){return zm}handle(t,e){t.selectAll()}},Bm=class extends ae{constructor(t){super(t,"UnselectAllRowsCommand")}},l0=class{forCommand(){return Bm}handle(t,e){t.unselectAll()}},Hm=class extends ae{type;constructor(t,e){super(t,"SetSelectionTypeCommand"),this.type=e}getType(){return this.type}},d0=class{forCommand(){return Hm}handle(t,e){t.setSelectionType(e.getType())}},$m=class extends bi{constructor(){super()}forEvent(){return Fm}},Um=class extends bi{constructor(){super()}forEvent(){return Mm}},Wm=class extends bi{constructor(){super()}forEvent(){return Ac}},Gm=class extends ae{selectedRows;constructor(t,e){super(t,"SetSelectedRowCommand"),this.selectedRows=e}getSelectedRows(){return this.selectedRows}},u0=class{forCommand(){return Gm}handle(t,e){let n=e.getSelectedRows();t.setSelectedRows(n)}},qm=class extends ae{indexes;constructor(t,e){super(t,"SelectRowByIndexCommand"),this.indexes=e}getIndexes(){return this.indexes}},m0=class{forCommand(){return qm}handle(t,e){let n=e.getIndexes();t.selectByIndex(n)}},Ym=class extends ae{ids;constructor(t,e){super(t,"SelectRowByIdCommand"),this.ids=e}getIds(){return this.ids}},h0=class{forCommand(){return Ym}handle(t,e){let n=e.getIds();t.selectByIds(n)}},Qm=class extends ae{matcher;constructor(t,e){super(t,"FormationSetMatcherCommand"),this.matcher=e}getMatcher(){return this.matcher}},g0=class{forCommand(){return Qm}handle(t,e){let n=e.getMatcher();t.setFormationMatcher(n)}},Km=class extends bi{constructor(){super()}forEvent(){return Am}},Zm=class extends ae{customSelectId;constructor(t,e){super(t,"FormationCustomSelectCommand"),this.customSelectId=e}getCustomSelectId(){return this.customSelectId}},p0=class{forCommand(){return Zm}handle(t,e){let n=e.getCustomSelectId();t.selectCustom(n)}},Xm=class extends ae{config;constructor(t,e){super(t,"FormationSetCustomSelectConfigCommand"),this.config=e}getConfig(){return this.config}},f0=class{forCommand(){return Xm}handle(t,e){let n=e.getConfig();t.setSelectionCustomConfig(n)}},b0=class{defineAggregate(){return null}registerKey(){return li}registerProviders(t){t.provide(Pm)}registerCommandHandlers(){return[o0,a0,d0,c0,l0,s0,u0,m0,h0,g0,p0,f0]}registerDomainEventHandler(){return[oN,$m,Um,Wm,Km]}registerMultiDomainEventHandler(){return[]}},sN=(()=>{class i extends Rt{rowSelectedRepository;formationModeRepository;formationTypeRepository;formationEnabledRepository;formationCustomRepository;sourceWarehouse;constructor(e,n,r,o,s,a){super(),this.rowSelectedRepository=e,this.formationModeRepository=n,this.formationTypeRepository=r,this.formationEnabledRepository=o,this.formationCustomRepository=s,this.sourceWarehouse=a}static services=[Pc,Um,$m,Wm,Km,Qt];findSelectedRows(e){let n=this.sourceWarehouse.findPreparedItems(e),r=this.findSelectedItemIds(e).getValueOrNullOrThrowError(),o=[],s=n.length;for(let a=0;ad===l.getId().toString())&&o.push(new as(l.getSourceItem(),a,l.getId()))}return Xe.of(o)}onRowSelectedReadModel(e){return this.rowSelectedRepository.on(e)}findSelectedItemIds(e){return this.rowSelectedRepository.find(e).map(n=>n.getAll())}onSelectedRows(e){return this.rowSelectedRepository.on(e).pipe(P(n=>n.getAll()))}onMode(e){return this.formationModeRepository.on(e)}onType(e){return this.formationTypeRepository.on(e)}onSelectionEnabled(e){return this.formationEnabledRepository.on(e)}onCustomSelections(e){return this.formationCustomRepository.on(e)}}return i})(),aN=(()=>{class i extends _t{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[ut];setSelection(e,n){this.commandDispatcher.dispatch(new jm(n,e))}selectRows(e,n){this.commandDispatcher.dispatch(new Gm(n,e))}selectByIndex(e,n){this.commandDispatcher.dispatch(new qm(n,e))}selectByIds(e,n){this.commandDispatcher.dispatch(new Ym(n,e))}toggleSelectedRow(e,n,r){this.commandDispatcher.dispatch(new Vm(r,e,n))}changeMode(e,n){this.commandDispatcher.dispatch(new Lm(n,e))}changeType(e,n){this.commandDispatcher.dispatch(new Hm(n,e))}setMatcher(e,n){this.commandDispatcher.dispatch(new Qm(n,e))}selectAll(e){this.commandDispatcher.dispatch(new zm(e))}unselectAll(e){this.commandDispatcher.dispatch(new Bm(e))}selectCustom(e,n){this.commandDispatcher.dispatch(new Zm(n,e))}setCustomSelection(e,n){this.commandDispatcher.dispatch(new Xm(n,e))}}return i})(),v0=class{registerProviders(t){t.provide(Pc),t.provide(Qn),t.provide(_t,aN),t.provide(Rt,sN)}};function cN(){new wt(new v0,new b0).init()}cN();function lN(){return y.resolve(_t)}function dN(){return y.resolve(Rt)}function uN(){return y.resolve(Qn)}var mN=(()=>{class i extends st{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(i)))(r||i)}})();static \u0275mod=M({type:i});static \u0275inj=T({providers:[{provide:_t,useFactory:lN},{provide:Rt,useFactory:dN},{provide:Qn,useFactory:uN}],imports:[q,mi,tn,Rr]})}return i})(),Jm=class extends ae{constructor(t){super(t,"CreateStructureCommand")}},x0=class{forCommand(){return Jm}},_0=class extends Le{preparedItems;constructor(t,e){super(t,"StructurePreparedEntitiesSetAggregateEvent"),this.preparedItems=e}toDomainEvent(){return new vc(this.getAggregateId(),this.preparedItems)}getPreparedItems(){return this.preparedItems}},y0=class extends Le{fieldConfigs;fields;constructor(t,e,n){super(t,"FieldsInitedAggregateEvent"),this.fieldConfigs=e,this.fields=n}toDomainEvent(){return new cs(this.getAggregateId(),this.fieldConfigs,this.fields)}getFieldConfigs(){return this.fieldConfigs}getFields(){return this.fields}},w0=class extends Le{constructor(t){super(t,"StructureCreatedAggregateEvent")}toDomainEvent(){return new _s(this.getAggregateId())}},C0=class extends Le{filterTypes;constructor(t,e){super(t,"FilterTypesInitedAggregateEvent"),this.filterTypes=e}toDomainEvent(){return new Eu(this.getAggregateId(),this.filterTypes)}getFilterTypes(){return this.filterTypes}},I0=class extends Le{constructor(t){super(t,"FilterAddedEvent")}toDomainEvent(){return new Yn(this.getAggregateId(),[])}},k0=class extends Le{activeFilters;constructor(t,e){super(t,"FilterAddedEvent"),this.activeFilters=e}toDomainEvent(){return new Yn(this.getAggregateId(),this.activeFilters)}},E0=class extends Le{activeFilters;constructor(t,e){super(t,"FilterRemovedAggregateEvent"),this.activeFilters=e}toDomainEvent(){return new Yn(this.getAggregateId(),this.activeFilters)}},S0=class extends Le{map;constructor(t,e){super(t,"UniqueFilterCalculatedAggregateEvent"),this.map=e}toDomainEvent(){return new Du(this.getAggregateId(),this.map)}},D0=class extends Le{constructor(t){super(t,"UniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new Tc(this.getAggregateId())}},T0=class extends Le{constructor(t){super(t,"UniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new Ec(this.getAggregateId())}},M0=class extends Le{constructor(t){super(t,"AllUniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new Sc(this.getAggregateId())}},F0=class extends Le{constructor(t){super(t,"AllUniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new Dc(this.getAggregateId())}},R0=class extends Le{selectedRows;allSelected;allUnselected;constructor(t,e,n,r){super(t,"SelectedRowChangedAggregateEvent"),this.selectedRows=e,this.allSelected=n,this.allUnselected=r}toDomainEvent(){return new Ua(this.getAggregateId(),this.selectedRows,this.allSelected,this.allUnselected)}},A0=class extends xr{pagingManager;sourceManager;sorterManager;filterManager;searchManager;verticalFormation;fieldCollection;summariesManager;uniqueFilterManager;constructor(t,e,n,r,o,s,a,l,d,p){super(t,li),this.pagingManager=e,this.sourceManager=n,this.verticalFormation=r,this.summariesManager=o,this.sorterManager=s,this.filterManager=a,this.uniqueFilterManager=l,this.searchManager=d,this.fieldCollection=p,this.addEvent(this.sourceManager.events),this.sourceManager.events=[]}createEvent(){return w0}clearEvents(){super.clearEvents(),this.pagingManager.clearEvents()}init(){this.initTheme()}setVerticalFormationEnabled(t){this.verticalFormation.setEnabled(t),this.calculateSource()}getVerticalFormation(){return this.verticalFormation}setSummariesEnabled(t){return this.summariesManager.setEnabled(t),this.calculateSource(),this.getEvents()}setOrigin(t){return this.addEvent(this.sourceManager.setOrigin(t,this.getId())),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}deleteItem(t){this.addEvent(this.sourceManager.deleteOriginItem(t,this.getId())),this.generateSelectedRowChangedEvent(),this.calculateSource()}editItem(t){let e=t.getItemId(),n=t.getColumnFieldId(),r=this.fieldCollection.getField(n),o=t.getValue();return this.sourceManager.editOriginItem(e,o,r,this.getId()).forEach(a=>this.addEvent(a)),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}setHeight(t){this.verticalFormation.setViewportHeight(t),this.calculateSourceBasedOnVirtualScroll()}setTheme(t){t===H.MATERIAL&&this.getVerticalFormation().setRowHeight(52),t===H.GENERIC&&this.getVerticalFormation().setRowHeight(42),t===H.FABRIC&&this.getVerticalFormation().setRowHeight(36),t===H.LIGHT&&this.getVerticalFormation().setRowHeight(56),t===H.DARK&&this.getVerticalFormation().setRowHeight(38)}setScrollPosition(t){this.verticalFormation.setScrollPosition(t),this.calculateSourceBasedOnVirtualScroll()}scrollToIndex(t){this.addEvent(this.verticalFormation.scrollToIndex(t))}setSelection(t){this.sourceManager.getFormation().setSelection(t),this.addEvent(new Oc(this.getId(),t))}setSelectionMode(t){this.addEvent(this.sourceManager.getFormation().setMode(t))}setSelectionType(t){this.addEvent(this.sourceManager.getFormation().setType(t))}setFormationMatcher(t){this.getFormation().setMatcher(t),this.sourceManager.reSelect(),this.generateSelectedRowChangedEvent()}selectByIndex(t){this.sourceManager.selectByIndex(t),this.generateSelectedRowChangedEvent()}selectByIds(t){this.sourceManager.selectByIds(t),this.generateSelectedRowChangedEvent()}setSelectedRows(t){this.sourceManager.setSelectedRows(t),this.generateSelectedRowChangedEvent()}setSelectionCustomConfig(t){this.addEvent(this.sourceManager.setCustomConfig(t))}toggleRow(t,e){this.sourceManager.toggleRow(t,e),this.generateSelectedRowChangedEvent()}selectCustom(t){this.sourceManager.selectCustom(t),this.generateSelectedRowChangedEvent()}selectAll(){this.sourceManager.selectAll(),this.generateSelectedRowChangedEvent()}unselectAll(){this.sourceManager.unselectAll(),this.generateSelectedRowChangedEvent()}getFormation(){return this.sourceManager.getFormation()}getPaging(){return this.pagingManager}changePaging(t){this.pagingManager.change(t),this.calculateSource()}setPaging(t){this.pagingManager=t,this.calculateSource()}nextPage(){this.pagingManager.nextPage(),this.calculateSource()}prevPage(){this.pagingManager.prevPage(),this.calculateSource()}changePageSize(t){return this.pagingManager.changePageSize(t).forEach(n=>{this.addEvent(n)}),this.calculateSource(),this.getEvents()}getEntities(){return this.sourceManager.getSlicedEntities()}getSource(){return this.sourceManager}createFields(t){this.fieldCollection.initFields(t);let e=this.fieldCollection.getAllFields();return this.addEvent(new y0(this.getId(),t,e)),this.filterManager.assignFilterTypes(e),this.addEvent(new C0(this.getId(),this.filterManager.getFilterTypes())),this.getEvents()}setSortingConfig(t){this.sorterManager.setConfig(t)}toggleSort(t){let e=this.fieldCollection.getField(t);return this.sorterManager.toggle(e),this.calculateSource(),this.sorterManager.getAll()}setSortOrder(t,e){let n=this.fieldCollection.getField(t);return this.sorterManager.setSortOrder(n,e),this.calculateSource(),this.sorterManager.getAll()}setFilterConfig(t){this.filterManager.getSettings().setFilterConfig(t)}setQuickFiltersConfig(t){this.filterManager.getSettings().setQuickFiltersConfig(t)}toggleFilter(t,e,n){return this.fieldCollection.getField(t)===void 0?[]:(this.calculateSource(),[])}addFilter(t,e,n){this.filterManager.add(t,e,n);let r=this.fieldCollection.getFieldsAsMap(),o=this.filterManager.getAllActiveFilters(r);this.addEvent(new k0(this.getId(),o)),this.calculateSource()}removeAllFilters(){this.filterManager.removeAll(),this.addEvent(new I0(this.getId())),this.calculateSource()}removeFilter(t){this.filterManager.remove(t);let e=this.fieldCollection.getFieldsAsMap(),n=this.filterManager.getAllActiveFilters(e);this.addEvent(new E0(this.getId(),n)),this.calculateSource()}setSearchingConfig(t){this.filterManager.getSettings().setSearchingConfig(t)}addSearchPhrase(t){let e=this.fieldCollection.getAllFields();return this.searchManager.addSearchPhrase(e,t),this.calculateSource(),[]}removeSearchPhrase(){return this.searchManager.removeSearchFilters(),this.calculateSource(),[]}selectAllUniqueFilter(t){this.uniqueFilterManager.selectAll(t),this.addEvent(new F0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}selectUniqueFilter(t,e){this.uniqueFilterManager.select(t,e),this.addEvent(new D0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectAllUniqueFilter(t){this.uniqueFilterManager.unselectAll(t),this.addEvent(new M0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectUniqueFilter(t,e){this.uniqueFilterManager.unselect(t,e),this.addEvent(new T0(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}calculateSource(){if(!this.sourceManager.getOrigin()||!this.pagingManager)return;this.sourceManager.setEntities(this.sourceManager.getOrigin()),this.sourceManager.setEntities(this.filterManager.filter(this.sourceManager.getEntities(),this.fieldCollection.getFieldsAsMap()));let t=this.searchManager.search(this.sourceManager.getEntities());this.sourceManager.setEntities(t);let e=this.sorterManager.sort(this.sourceManager.getEntities());this.sourceManager.setEntities(e),this.sourceManager.setPreparedEntities(),this.pagingManager.setSourceSize(this.sourceManager.getPreparedEntities().length),this.addEvent(new _0(this.getId(),e)),this.summariesManager.calculate(this.fieldCollection.getAllFields(),this.sourceManager.getEntities()).forEach(r=>{this.addEvent(r)}),this.sourceManager.setEntities(this.pagingManager.sample(this.sourceManager.getEntities())),this.verticalFormation.setSourceSize(this.sourceManager.getEntities().length),this.calculateSourceBasedOnVirtualScroll()}calculateSourceBasedOnVirtualScroll(){if(this.verticalFormation.isEnabled()){let t=this.verticalFormation.getRange();this.sourceManager.setSlicedEntities(this.sourceManager.getEntities().slice(t.getStart(),t.getEnd()))}else this.sourceManager.setSlicedEntities(this.sourceManager.getEntities())}initTheme(){let t=Cm.DEFAULT_THEME;this.setTheme(t)}calculateUniqueValues(){let t=this.fieldCollection.getAllFields(),e=this.sourceManager.getOrigin();this.uniqueFilterManager.calculateAll(e,t),this.generateCalculateUniqueValuesAggregateEvent()}generateCalculateUniqueValuesAggregateEvent(){this.addEvent(new S0(this.getId(),this.uniqueFilterManager.getAll(this.fieldCollection.getAllFields())))}generateSelectedRowChangedEvent(){this.addEvent(new R0(this.getId(),this.sourceManager.getFormation().getSelectedItemIds().map(t=>t.toString()),this.sourceManager.getFormation().isAllSelected(),this.sourceManager.getFormation().isAllUnselected()))}},O0=class{sorterId;columnId;field;rank=1;direction;constructor(t,e,n=!0){this.sorterId=t,this.field=e,this.direction=n}getId(){return this.sorterId}getRank(){return this.rank}getField(){return this.field}hasDirection(){return this.direction}changeDirection(){this.direction=!this.direction}setDirection(t){this.direction=t}sort(t){return t.length===0?t:t.sort((e,n)=>this.field.sort(e,n,this.direction))}},P0=class{sorterId;constructor(t){this.sorterId=t}getId(){return this.sorterId}},N0=class{enabled;multi;sorters=new Map;constructor(t=!1,e=!1){this.enabled=t,this.multi=e}setConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.enabled=t.enabled),t&&t.multiSorting!==void 0&&t.multiSorting!==null&&(this.multi=t.multiSorting,this.sorters.clear())}toggle(t){let e=t.getId(),n=this.sorters.get(e.getId());n?n.hasDirection()?n.changeDirection():this.delete(e):this.add(t)}setSortOrder(t,e){let n=t.getId(),r=this.sorters.get(n.getId());if(e===ct.NONE)this.delete(n);else if(e===ct.ASC||e===ct.DESC){this.delete(n);let o=e===ct.ASC;this.add(t,o)}}add(t,e=!0){this.addSorter(t.getId(),new O0(new P0(Tn.generate()),t,e))}addSorter(t,e){this.multi||this.sorters.clear(),this.sorters.set(t.getId(),e)}delete(t){this.sorters.delete(t.getId())}update(){}sort(t){let e=this.getAll(),n=Array.from(t);for(let r of e)n=r.sort(n);return n}getAll(){return this.enabled?Array.from(this.sorters).map(t=>t[1]).sort((t,e)=>t.getRank()-e.getRank()).reverse():[]}},j0=class{id;value;displayValue;enabled;constructor(t,e,n,r){this.id=t,this.value=e,this.displayValue=n,this.enabled=r}getId(){return this.id}getValue(){return this.value}getDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}select(){this.enabled=!0}unselect(){this.enabled=!1}},V0=class{id;constructor(t){this.id=t}toString(){return this.id}equals(t){return t.toString()===this.id}},hN=(()=>{class i{static index=0;static generate(){return i.index+=1,new V0(`${i.index}`)}}return i})(),L0=class{values=[];allSelected;allDisabled;constructor(t,e){for(let n of t)this.values.push(new j0(hN.generate(),n,e.getDisplayValue(n),!0));this.calculateAllSelected(),this.calculateAllDisabled()}getAll(){return this.values}isAllSelected(){return this.allSelected}isAllDisabled(){return this.allDisabled}getNotSelected(){return this.values.filter(t=>t.isDisabled())}selectAll(){this.values.forEach(t=>{t.select()}),this.allSelected=!0,this.allDisabled=!1}select(t){this.values.filter(e=>e.getId().equals(t)).forEach(e=>{e.select()}),this.calculateAllSelected(),this.calculateAllDisabled()}unselectAll(){this.values.forEach(t=>{t.unselect()}),this.allSelected=!1,this.allDisabled=!0}unselect(t){this.values.filter(e=>e.getId().equals(t)).forEach(e=>{e.unselect()}),this.calculateAllSelected(),this.calculateAllDisabled()}calculateAllSelected(){this.allSelected=!this.values.some(t=>t.isDisabled())}calculateAllDisabled(){this.allDisabled=!this.values.some(t=>t.isEnabled())}},z0=class{uniqueValueMap=new Bo;calculate(t,e){let n=e.getId();this.uniqueValueMap.find(n).ifEmpty(()=>{let o=new Set;for(let l of t)o.add(e.getValue(l));let s=Array.from(o.values()).sort((l,d)=>e.getField().sort(l,d)),a=new L0(s,e);this.uniqueValueMap.set(e.getId(),a)})}calculateAll(t,e){for(let n of e)this.calculate(t,n)}filterAll(t,e){let n=t;for(let r of e)n=this.filter(n,r);return n}filter(t,e){let n=[];return this.uniqueValueMap.find(e.getId()).ifPresent(r=>{r.isAllSelected()?n=t:r.isAllDisabled()?n=[]:n=t.filter(o=>{for(let s of r.getNotSelected())if(e.getField().equals(o,s.getValue()))return!1;return!0})}),n}selectAll(t){this.uniqueValueMap.find(t).ifPresent(e=>{e.selectAll()})}select(t,e){this.uniqueValueMap.find(t).ifPresent(n=>{n.select(e)})}unselectAll(t){this.uniqueValueMap.find(t).ifPresent(e=>{e.unselectAll()})}unselect(t,e){this.uniqueValueMap.find(t).ifPresent(n=>{n.unselect(e)})}getAll(t){let e=new Map;for(let n of t)this.getValues(n).ifPresent(r=>{e.set(n.getId().toString(),r)});return e}getValues(t){return this.uniqueValueMap.find(t.getId()).map(e=>e.getAll())}},PI=(()=>{class i extends fr{pagingAggregateFactory;sourceManagerFactory;verticalFormationFactory;summariesManagerFactory;filterManagerFactory;searchManagerFactory;fieldCollectionFactory;constructor(e,n,r,o,s,a,l){super(),this.pagingAggregateFactory=e,this.sourceManagerFactory=n,this.verticalFormationFactory=r,this.summariesManagerFactory=o,this.filterManagerFactory=s,this.searchManagerFactory=a,this.fieldCollectionFactory=l}static services=[RC,OI,DI,EI,Iu,ju,kI];create(e){let n=this.pagingAggregateFactory.createDefault(),r=this.sourceManagerFactory.createDefault(e),o=this.verticalFormationFactory.create(e),s=new N0,a=this.filterManagerFactory.create(!1),l=this.fieldCollectionFactory.create(),d=this.summariesManagerFactory.create(e),p=this.searchManagerFactory.create(),w=new A0(e,n,r,o,d,s,a,new z0,p,l);return this.init(w),w}init(e){e.init()}}return i})(),eh=class extends vr{},NI=(()=>{class i extends Ir{constructor(e){super(e)}static services=[kc]}return i})(),jI=(()=>{class i extends eh{inMemoryStructureAggregateStore;constructor(e){super(),this.inMemoryStructureAggregateStore=e}static services=[NI];findById(e){return this.inMemoryStructureAggregateStore.findById(e)}save(e){this.inMemoryStructureAggregateStore.save(e)}}return i})(),gN=(()=>{class i{summariesEnabledArchive;constructor(e){this.summariesEnabledArchive=e}static services=[xs];forEvent(){return _s}handle(e){if(e.ofMessageType("StructureCreatedEvent")){let n=e.getAggregateId();this.summariesEnabledArchive.init(n)}}}return i})(),B0=class{defineAggregate(){return{aggregateKey:li,createCommandHandler:x0,factory:PI,repository:jI}}registerKey(){return li}registerProviders(t){}registerCommandHandlers(){return[]}registerDomainEventHandler(){return[gN]}registerMultiDomainEventHandler(){return[]}},H0=class extends me{fieldId;filterTypeId;value;constructor(t,e,n,r){super(t,{fieldId:e,filterTypeId:n,value:r},"FilterAddedEvent"),this.fieldId=e,this.filterTypeId=n,this.value=r}},pN=(()=>{class i extends Gr{inMemoryStructureReadStore;structureIdToStructure=new Map;hermesStructure$=new Tt(1);constructor(e){super(),this.inMemoryStructureReadStore=e}static services=[Tx];getStructure(e){return this.structureIdToStructure.get(e.getId())}on(e){return this.hermesStructure$.toObservable().pipe(ye(n=>{let r=e.getId();return n.has(r)}),P(n=>n.get(e.getId())))}forEvents(){return[_s,km,Ya,Ka,Qa,ds,Ac,yc,_c,nc,mc,Jr,oc,eo,Cc,Ic,wc,H0,Yn,Tc,Dc,Ec,Sc]}subs(e){let n=e.getAggregateId();this.inMemoryStructureReadStore.getById(n).ifPresent(o=>{let s=o.getId().toString();this.structureIdToStructure.set(s,o),this.hermesStructure$.next(this.structureIdToStructure)})}}return i})(),fN=(()=>{class i extends Pt{filterCommandInvoker;sourcePublisher;verticalFormationCommandInvoker;structureCellEditArchive;commandDispatcher=y.resolve(ut);constructor(e,n,r,o){super(),this.filterCommandInvoker=e,this.sourcePublisher=n,this.verticalFormationCommandInvoker=r,this.structureCellEditArchive=o}static services=[_i,Wt,ao,cn];create(e){this.commandDispatcher.dispatch(new Jm(e))}enableVirtualScroll(e){this.verticalFormationCommandInvoker.enableVirtualScroll(e)}disableVirtualScroll(e){this.verticalFormationCommandInvoker.disableVirtualScroll(e)}scrollToTop(e){this.verticalFormationCommandInvoker.scrollToTop(e)}scrollToBottom(e){this.verticalFormationCommandInvoker.scrollToBottom(e)}scrollToIndex(e,n){this.verticalFormationCommandInvoker.scrollToIndex(e,n)}setScrollPosition(e,n){this.verticalFormationCommandInvoker.setScrollPosition(e,n)}setFilterConfig(e,n){this.filterCommandInvoker.setConfig(e,n)}setQuickFiltersConfig(e,n){this.commandDispatcher.dispatch(new wu(n,e))}setRowHeight(e,n){this.commandDispatcher.dispatch(new sm(n,+e))}setContainerHeight(e,n){this.commandDispatcher.dispatch(new am(n,+e))}setRowHeightBasedOnTheme(e,n){this.commandDispatcher.dispatch(new om(n,e))}setCellEdit(e,n){this.structureCellEditArchive.next(n,new Td(e))}}return i})(),$0=class{registerProviders(t){t.provide(Tx),t.provide(Gr,pN),t.provide(PI),t.provide(TI),t.provide(mo),t.provide(Pt,fN),t.provide(ks),t.provide(NI),t.provide(kc),t.provide(eh,jI),t.provide(ri),t.provide(cn)}};function bN(){new wt(new $0,new B0).init()}var th=class extends _a{constructor(t){super(t,"CreateListViewCommand")}},ih=class extends Dn{},nh=class extends ih{mode;constructor(t,e){super(t,"SetListViewModeCommand"),this.mode=e}getMode(){return this.mode}},rh=class extends ih{enabled;constructor(t,e){super(t,"ToggleListViewSelectorCommand"),this.enabled=e}isEnabled(){return this.enabled}},oh=class{commandDispatcher=y.resolve(ut);create(t){this.commandDispatcher.dispatch(new th(t))}setMode(t,e){this.commandDispatcher.dispatch(new nh(e,t))}toggleSelector(t,e){this.commandDispatcher.dispatch(new rh(e,t))}},U0=class extends yr{constructor(t){super(t)}toReadModelRootId(){return new sh(this.getId())}},sh=class extends wr{constructor(t){super(t)}toAggregateId(){return new U0(this.getId())}},ef=new sh("-1"),vN=(()=>{class i{listViewDispatcher;constructor(e){this.listViewDispatcher=e}static services=[oh];create(e=ef){this.listViewDispatcher.create(e.toAggregateId())}setMode(e,n=ef){this.listViewDispatcher.setMode(e,n.toAggregateId())}toggleSelector(e,n=ef){this.listViewDispatcher.toggleSelector(e,n.toAggregateId())}}return i})(),Nc=class extends Zi{},jc=class extends Nc{mode;constructor(t,e){super(t,e,"ListViewModeSetEvent"),this.mode=e}getTheme(){return this.mode}},W0=class extends Fi{constructor(){super()}onModeChange(t){return this.onEvent(t,jc)}},Rx=function(i){return i.LIST="List",i.CARD="Card",i}(Rx||{}),Vc=class i extends Fe{static default=Rx.LIST;constructor(){super(i.default)}},Ax=(()=>{class i extends Fe{static default=!1;constructor(){super(i.default)}}return i})(),xN=(()=>{class i{listViewModeArchive;listViewSelectorArchive;constructor(e,n){this.listViewModeArchive=e,this.listViewSelectorArchive=n}static services=[Vc,Ax];onMode(e){return this.listViewModeArchive.on(e)}onSelector(e){return this.listViewSelectorArchive.on(e)}}return i})(),ah=class extends kr{},VI=(()=>{class i extends Ir{constructor(e){super(e)}static services=[ah]}return i})(),G0=class{forCommand(){return nh}handle(t,e){let n=e.getMode();t.setMode(n)}},q0=class{forCommand(){return rh}handle(t,e){let n=e.isEnabled();t.toggleModeSelector(n)}},_N=(()=>{class i{listViewModeArchive;constructor(e){this.listViewModeArchive=e}static services=[Vc];forEvent(){return jc}handle(e){e.ofMessageType("ListViewModeSetEvent")&&this.listViewModeArchive.next(e.getAggregateId(),e.getTheme())}}return i})(),ch=class extends Nc{enabled;constructor(t,e){super(t,e,"ListViewSelectorToggledEvent"),this.enabled=e}isEnabled(){return this.enabled}},yN=(()=>{class i{listViewSelectorArchive;constructor(e){this.listViewSelectorArchive=e}static services=[Ax];forEvent(){return ch}handle(e){e.ofMessageType("ListViewSelectorToggledEvent")&&this.listViewSelectorArchive.next(e.getAggregateId(),e.isEnabled())}}return i})(),Y0=class{forCommand(){return th}},Q0=class extends Nc{constructor(t){super(t,null,"ListViewCreatedEvent")}},Lc=class extends br{},K0=class extends Lc{constructor(t){super(t,"ListViewCreatedAggregateEvent")}toDomainEvent(){return new Q0(this.getAggregateId())}},Z0=class extends Lc{mode;constructor(t,e){super(t,"ListViewModeSetAggregateEvent"),this.mode=e}toDomainEvent(){return new jc(this.getAggregateId(),this.mode)}},X0=class{enabled=null;visible=!1;constructor(){}isVisible(){return this.enabled!==null?this.enabled:this.visible}setEnabled(t){this.enabled=t}setVisible(t){this.visible=t}},J0=class extends Lc{enabled;constructor(t,e){super(t,"ListViewSelectorToggledAggregateEvent"),this.enabled=e}toDomainEvent(){return new ch(this.getAggregateId(),this.enabled)}},ex=class extends xr{mode;selectorVisibility;constructor(t){super(t,"ListViewAggregate"),this.setMode(Rx.LIST),this.initSelectorVisibility()}createEvent(){return K0}setMode(t){this.mode=t,this.addEvent(new Z0(this.getId(),this.mode))}toggleModeSelector(t){this.selectorVisibility.setEnabled(t),this.emitEventAfterSelectorVisibilityChange()}initSelectorVisibility(){this.selectorVisibility=new X0,this.emitEventAfterSelectorVisibilityChange()}emitEventAfterSelectorVisibilityChange(){this.addEvent(new J0(this.getId(),this.selectorVisibility.isVisible()))}},tx=class extends fr{constructor(){super()}create(t){return new ex(t)}},ix=class extends vr{},wN=(()=>{class i extends ix{inMemorySchemaAggregateStore;constructor(e){super(),this.inMemorySchemaAggregateStore=e}static services=[VI];findById(e){return this.inMemorySchemaAggregateStore.findById(e)}save(e){this.inMemorySchemaAggregateStore.save(e)}}return i})(),nx=class{defineAggregate(){return{aggregateKey:yC,createCommandHandler:Y0,factory:tx,repository:wN}}registerKey(){return yC}registerProviders(t){t.provide(oh)}registerCommandHandlers(){return[G0,q0]}registerDomainEventHandler(){return[_N,yN]}registerMultiDomainEventHandler(){return[]}},yC="ListViewKey",rx=class{registerProviders(t){t.provide(vN),t.provide(W0),t.provide(xN),t.provide(Vc),t.provide(Ax),t.provide(VI),t.provide(ah)}};function CN(){new wt(new rx,new nx).init()}function IN(){return y.resolve(Pt)}function kN(){return y.resolve(mo)}function EN(){return y.resolve(ks)}var SN=[{provide:Pt,useFactory:IN},{provide:mo,useFactory:kN},{provide:ks,useFactory:EN}];function DN(){return new lo.DefaultBuilder().build()}var TN=[CI,wI],MN=[q,Pi,mn,mi,ho,rN,mh,eP,aP,mN,yI,wx,eN,bP,SP,PP,nN,AO,GO,QO,fx,vI,KO,BP,NO,AI,TN];var FN=[Nn,XC,GC,QC,YC,KC,ho,mh,HP];function RN(){return y.resolve(cn)}function AN(){return y.resolve(ri)}CN();bN();var ox=class i{platformId;static HERMES_API="hermesApi";static exportDeclarations=Array.from(FN);static withConfig(t={cssClassName:"",hermesModuleConfig:{loggers:!1}}){return{ngModule:i,providers:[{provide:Lf,useValue:t.cssClassName},{provide:Xl,useValue:t.hermesModuleConfig.loggers},{provide:Jl,useValue:t.hermesModuleConfig.loggers},{provide:Lf,useValue:"structure"},{provide:lo,useFactory:DN},Hb,Hc,Vr,{provide:cn,useFactory:RN},{provide:ri,useFactory:AN},SN]}}constructor(t){this.platformId=t,vw(),St(this.platformId)&&(_w(),window[i.HERMES_API].loggers=!1)}static \u0275fac=function(e){return new(e||i)(v(Ue))};static \u0275mod=M({type:i});static \u0275inj=T({imports:[MN,Nn,Wo,ni,Go,tn,An,qo,Yo,Xo,Jo,Ko,Zo,es,ts,On,Rr,is,nn,Qo,Fr,On,mh]})},ON=(()=>{class i{static PREFIX="gui-grid-";static index=0;generateId(){return i.index++,i.PREFIX+i.index}static \u0275fac=function(n){return new(n||i)};static \u0275prov=k({token:i,factory:i.\u0275fac})}return i})(),PN=[ox.withConfig({cssClassName:"grid",hermesModuleConfig:{loggers:!0}})];var NN=[ON,EC],jN=[ph,ax],VN=[ph,ax],lh=class i{static exportDeclarations=Array.from(jN);static elementComponents=Array.from(VN);static \u0275fac=function(e){return new(e||i)};static \u0275mod=M({type:i});static \u0275inj=T({providers:NN,imports:[PN]})};var Ds=new K("API_URL");var LI=(()=>{let t=class t{constructor(n){this.http=n;let r=_(Ds);this.url=`${r}/envelopereceiver`}getEnvelopeReceiver(){return this.http.get(this.url,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}};t.\u0275fac=function(r){return new(r||t)(v(ur))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var zI=(()=>{let t=class t{constructor(n){this.erService=n,this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.sorting={enabled:!0,multiSorting:!0},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[10,25,50],pagerTop:!0,pagerBottom:!0,display:Va.ADVANCED},this.searching={enabled:!0},this.summaries={enabled:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!1,schemaManager:!0},this.localization={translationResolver:(r,o)=>"[de-DE]"},this.source=[],this.columns=[{header:"Title",field:r=>r.envelope.title},{header:"Status",field:r=>r.envelope.status},{header:"Type",field:r=>r.envelope.contractType},{header:"PrivateMessage",field:"privateMessage"},{header:"AddedWhen",field:"addedWhen"}]}ngOnInit(){this.erService.getEnvelopeReceiver().subscribe({next:n=>this.source=n,error:console.error})}};t.\u0275fac=function(r){return new(r||t)(c(LI))},t.\u0275cmp=I({type:t,selectors:[["app-envelope-table"]],standalone:!0,features:[Oe],decls:1,vars:9,consts:[[3,"columns","source","columnMenu","paging","sorting","searching","summaries","infoPanel","localization"]],template:function(r,o){r&1&&b(0,"gui-grid",0),r&2&&m("columns",o.columns)("source",o.source)("columnMenu",o.columnMenu)("paging",o.paging)("sorting",o.sorting)("searching",o.searching)("summaries",o.summaries)("infoPanel",o.infoPanel)("localization",o.localization)},dependencies:[lh,ph]});let i=t;return i})();var Px;try{Px=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Px=!1}var Ye=(()=>{let t=class t{constructor(n){this._platformId=n,this.isBrowser=this._platformId?St(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Px)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(r){return new(r||t)(v(Ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Ts,BI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Nx(){if(Ts)return Ts;if(typeof document!="object"||!document)return Ts=new Set(BI),Ts;let i=document.createElement("input");return Ts=new Set(BI.filter(t=>(i.setAttribute("type",t),i.type===t))),Ts}var $c;function BN(){if($c==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$c=!0}))}finally{$c=$c||!1}return $c}function Kn(i){return BN()?i:!!i.capture}var Ox;function HN(){if(Ox==null){let i=typeof document<"u"?document.head:null;Ox=!!(i&&(i.createShadowRoot||i.attachShadow))}return Ox}function HI(i){if(HN()){let t=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Zn(i){return i.composedPath?i.composedPath()[0]:i.target}function $I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function go(i){return i!=null&&`${i}`!="false"}function jx(i){return Array.isArray(i)?i:[i]}function $i(i){return i instanceof x?i.nativeElement:i}var $N=(()=>{let t=class t{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var fh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({providers:[$N]});let i=t;return i})();var UI=new Set,po,UN=(()=>{let t=class t{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):GN}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&WN(n,this._nonce),this._matchMedia(n)}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(Os,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function WN(i,t){if(!UI.has(i))try{po||(po=document.createElement("style"),t&&po.setAttribute("nonce",t),po.setAttribute("type","text/css"),document.head.appendChild(po)),po.sheet&&(po.sheet.insertRule(`@media ${i} {body{ }}`,0),UI.add(i))}catch(e){console.error(e)}}function GN(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var GI=(()=>{let t=class t{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return WI(jx(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=WI(jx(n)).map(a=>this._registerQuery(a).observable),s=gn(o);return s=Qc(s.pipe(jt(1)),s.pipe(nr(1),Fs(0))),s.pipe(le(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:p})=>{l.matches=l.matches||d,l.breakpoints[p]=d}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),s={observable:new gi(a=>{let l=d=>this._zone.run(()=>a.next(d));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Xc(r),le(({matches:a})=>({query:n,matches:a})),re(this._destroySubject)),mql:r};return this._queries.set(n,s),s}};t.\u0275fac=function(r){return new(r||t)(v(UN),v(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function WI(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Lx(i){return i.buttons===0||i.detail===0}function zx(i){let t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var qN=new K("cdk-input-modality-detector-options"),YN={ignoreKeys:[18,17,224,91,16]},QI=650,Ms=Kn({passive:!0,capture:!0}),QN=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new nt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(zx(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zn(a)},this._options=V(V({},YN),s),this.modalityDetected=this._modality.pipe(nr(1)),this.modalityChanged=this.modalityDetected.pipe(Zc()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ms),o.addEventListener("mousedown",this._onMousedown,Ms),o.addEventListener("touchstart",this._onTouchstart,Ms)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ms),document.removeEventListener("mousedown",this._onMousedown,Ms),document.removeEventListener("touchstart",this._onTouchstart,Ms))}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(de),v(ue),v(qN,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var vh=function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i}(vh||{}),KN=new K("cdk-focus-monitor-default-options"),bh=Kn({passive:!0,capture:!0}),KI=(()=>{let t=class t{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,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 ke,this._rootNodeFocusAndBlurListener=l=>{let d=Zn(l);for(let p=d;p;p=p.parentElement)l.type==="focus"?this._onFocus(l,p):this._onBlur(l,p)},this._document=s,this._detectionMode=a?.detectionMode||vh.IMMEDIATE}monitor(n,r=!1){let o=$i(n);if(!this._platform.isBrowser||o.nodeType!==1)return te();let s=HI(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new ke,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let r=$i(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){let s=$i(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([l,d])=>this._originChanged(l,r,d)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===vh.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===vh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?QI:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,r){let o=this._elementInfo.get(r),s=Zn(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(re(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let t=class t{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=_(GI).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return fo.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return fo.BLACK_ON_WHITE}return fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(Vx,qI,YI),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===fo.BLACK_ON_WHITE?n.add(Vx,qI):r===fo.WHITE_ON_BLACK&&n.add(Vx,YI)}}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(ue))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var XN=new K("cdk-dir-doc",{providedIn:"root",factory:JN});function JN(){return _(ue)}var e3=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function t3(i){let t=i?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?e3.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var XI=(()=>{let t=class t{constructor(n){if(this.value="ltr",this.change=new W,n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=t3(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};t.\u0275fac=function(r){return new(r||t)(v(XN,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Bx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})();function r3(){return!0}var o3=new K("mat-sanity-checks",{providedIn:"root",factory:r3}),Ve=(()=>{let t=class t{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return $I()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};t.\u0275fac=function(r){return new(r||t)(v(ZI),v(o3,8),v(ue))},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Bx,Bx]});let i=t;return i})();var _h=class{constructor(t,e,n,r,o){this._defaultMatcher=t,this.ngControl=e,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let t=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,e)??!1;o!==t&&(this.errorState=o,this._stateChanges.next())}};var a1=(()=>{let t=class t{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var hi=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(hi||{}),Ux=class{constructor(t,e,n,r=!1){this._renderer=t,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=hi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},JI=Kn({passive:!0,capture:!0}),Wx=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let e=Zn(t);e&&this._events.get(t.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,n,r){let o=this._events.get(e);if(o){let s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,JI)})}removeHandler(t,e,n){let r=this._events.get(t);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,JI)))}},e1={enterDuration:225,exitDuration:150},s3=800,t1=Kn({passive:!0,capture:!0}),i1=["mousedown","touchstart"],n1=["mouseup","mouseleave","touchend","touchcancel"],Uc=class Uc{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=$i(n))}fadeInRipple(t,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=V(V({},e1),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);let s=n.radius||a3(t,e,r),a=t-r.left,l=e-r.top,d=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=`${a-s}px`,p.style.top=`${l-s}px`,p.style.height=`${s*2}px`,p.style.width=`${s*2}px`,n.color!=null&&(p.style.backgroundColor=n.color),p.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(p);let w=window.getComputedStyle(p),E=w.transitionProperty,Q=w.transitionDuration,ne=E==="none"||Q==="0s"||Q==="0s, 0s"||r.width===0&&r.height===0,ce=new Ux(this,p,n,ne);p.style.transform="scale3d(1, 1, 1)",ce.state=hi.FADING_IN,n.persistent||(this._mostRecentTransientRipple=ce);let O=null;return!ne&&(d||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Y=()=>this._finishRippleTransition(ce),Ie=()=>this._destroyRipple(ce);p.addEventListener("transitionend",Y),p.addEventListener("transitioncancel",Ie),O={onTransitionEnd:Y,onTransitionCancel:Ie}}),this._activeRipples.set(ce,O),(ne||!d)&&this._finishRippleTransition(ce),ce}fadeOutRipple(t){if(t.state===hi.FADING_OUT||t.state===hi.HIDDEN)return;let e=t.element,n=V(V({},e1),t.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",t.state=hi.FADING_OUT,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=$i(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,i1.forEach(n=>{Uc._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{n1.forEach(e=>{this._triggerElement.addEventListener(e,this,t1)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===hi.FADING_IN?this._startFadeOutTransition(t):t.state===hi.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=hi.VISIBLE,!n&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=hi.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){let e=Lx(t),n=this._lastTouchStartEvent&&Date.now(){let e=t.state===hi.VISIBLE||t.config.terminateOnPointerUp&&t.state===hi.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(i1.forEach(e=>Uc._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(n1.forEach(e=>t.removeEventListener(e,this,t1)),this._pointerUpEventsRegistered=!1))}};Uc._eventManager=new Wx;var yh=Uc;function a3(i,t,e){let n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}var Gx=new K("mat-ripple-global-options"),c3=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new yh(this,r,n,o)}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:V(V(V({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,V(V({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,V(V({},this.rippleConfig),n))}};t.\u0275fac=function(r){return new(r||t)(c(x),c(de),c(Ye),c(Gx,8),c(ki,8))},t.\u0275dir=N({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&U("mat-ripple-unbounded",o.unbounded)},inputs:{color:[we.None,"matRippleColor","color"],unbounded:[we.None,"matRippleUnbounded","unbounded"],centered:[we.None,"matRippleCentered","centered"],radius:[we.None,"matRippleRadius","radius"],animation:[we.None,"matRippleAnimation","animation"],disabled:[we.None,"matRippleDisabled","disabled"],trigger:[we.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let i=t;return i})(),wh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var c1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve]});let i=t;return i})();var r1={capture:!0},o1=["focus","click","mouseenter","touchstart"],Hx="mat-ripple-loader-uninitialized",$x="mat-ripple-loader-class-name",s1="mat-ripple-loader-centered",xh="mat-ripple-loader-disabled",l1=(()=>{let t=class t{constructor(){this._document=_(ue,{optional:!0}),this._animationMode=_(ki,{optional:!0}),this._globalRippleOptions=_(Gx,{optional:!0}),this._platform=_(Ye),this._ngZone=_(de),this._hosts=new Map,this._onInteraction=n=>{if(!(n.target instanceof HTMLElement))return;let o=n.target.closest(`[${Hx}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(let n of o1)this._document?.addEventListener(n,this._onInteraction,r1)})}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);for(let r of o1)this._document?.removeEventListener(r,this._onInteraction,r1)}configureRipple(n,r){n.setAttribute(Hx,""),(r.className||!n.hasAttribute($x))&&n.setAttribute($x,r.className||""),r.centered&&n.setAttribute(s1,""),r.disabled&&n.setAttribute(xh,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,r){let o=this._hosts.get(n);if(o){o.disabled=r;return}r?n.setAttribute(xh,""):n.removeAttribute(xh)}_createRipple(n){if(!this._document)return;let r=this._hosts.get(n);if(r)return r;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute($x)),n.append(o);let s=new c3(new x(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(s1),s.disabled=n.hasAttribute(xh),this.attachRipple(n,s),s}attachRipple(n,r){n.removeAttribute(Hx),this._hosts.set(n,r)}destroyRipple(n){let r=this._hosts.get(n);r&&(r.ngOnDestroy(),this._hosts.delete(n))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var d3=["*"],Ch;function u3(){if(Ch===void 0&&(Ch=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Ch=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Ch}function Wc(i){return u3()?.createHTML(i)||i}function d1(i){return Error(`Unable to find icon with the name "${i}"`)}function m3(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function u1(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function m1(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var hn=class{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}},h3=(()=>{let t=class t{constructor(n,r,o,s){this._httpClient=n,this._sanitizer=r,this._errorHandler=s,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=o}addSvgIcon(n,r,o){return this.addSvgIconInNamespace("",n,r,o)}addSvgIconLiteral(n,r,o){return this.addSvgIconLiteralInNamespace("",n,r,o)}addSvgIconInNamespace(n,r,o,s){return this._addSvgIconConfig(n,r,new hn(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,o,s){let a=this._sanitizer.sanitize(Vt.HTML,o);if(!a)throw m1(o);let l=Wc(a);return this._addSvgIconConfig(n,r,new hn("",l,s))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,o){return this._addSvgIconSetConfig(n,new hn(r,null,o))}addSvgIconSetLiteralInNamespace(n,r,o){let s=this._sanitizer.sanitize(Vt.HTML,r);if(!s)throw m1(r);let a=Wc(s);return this._addSvgIconSetConfig(n,new hn("",a,o))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let r=this._sanitizer.sanitize(Vt.RESOURCE_URL,n);if(!r)throw u1(n);let o=this._cachedIconsByUrl.get(r);return o?te(Ih(o)):this._loadSvgIconFromConfig(new hn(n,null)).pipe(He(s=>this._cachedIconsByUrl.set(r,s)),le(s=>Ih(s)))}getNamedSvgIcon(n,r=""){let o=h1(r,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):er(d1(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?te(Ih(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(le(r=>Ih(r)))}_getSvgFromIconSetConfigs(n,r){let o=this._extractIconWithNameFromAnySet(n,r);if(o)return te(o);let s=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(pn(l=>{let p=`Loading icon set URL: ${this._sanitizer.sanitize(Vt.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(p)),te(null)})));return Kc(s).pipe(le(()=>{let a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw d1(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let o=r.length-1;o>=0;o--){let s=r[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(s),l=this._extractSvgIconFromSet(a,n,s.options);if(l)return l}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(He(r=>n.svgText=r),le(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?te(null):this._fetchIcon(n).pipe(He(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,o){let s=n.querySelector(`[id="${r}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let l=this._svgElementFromString(Wc(""));return l.appendChild(a),this._setSvgAttributes(l,o)}_svgElementFromString(n){let r=this._document.createElement("DIV");r.innerHTML=n;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){let r=this._svgElementFromString(Wc("")),o=n.attributes;for(let s=0;sWc(p)),fn(()=>this._inProgressUrlFetches.delete(a)),f_());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(n,r,o){return this._svgIconConfigs.set(h1(n,r),o),this}_addSvgIconSetConfig(n,r){let o=this._iconSetConfigs.get(n);return o?o.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){let r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let o=0;ot?t.pathname+t.search:""}}var g1=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],v3=g1.map(i=>`[${i}]`).join(", "),x3=/^url\(['"]?#(.*?)['"]?\)$/,kh=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,o,s,a,l){this._elementRef=n,this._iconRegistry=r,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Jn.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let 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(n){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=n.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let r=n.querySelectorAll(v3),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let l=r[s],d=l.getAttribute(a),p=d?d.match(x3):null;if(p){let w=o.get(l);w||(w=[],o.set(l,w)),w.push({name:a,value:p[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[r,o]=this._splitIconName(n);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(jt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${r}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};t.\u0275fac=function(r){return new(r||t)(c(x),c(h3),rr("aria-hidden"),c(f3),c(or),c(p3,8))},t.\u0275cmp=I({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(De("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Yi(o.color?"mat-"+o.color:""),U("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[we.HasDecoratorInputTransform,"inline","inline",fi],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Si,Oe],ngContentSelectors:d3,decls:1,vars:0,template:function(r,o){r&1&&(Ne(),be(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let i=t;return i})(),Eh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var _3=["mat-button",""],y3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],w3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var C3=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var I3=["mat-icon-button",""],k3=["*"];var E3=new K("MAT_BUTTON_CONFIG");var S3=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],f1=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,r,o,s){this._elementRef=n,this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=_(KI),this._rippleLoader=_(l1),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=_(E3,{optional:!0}),l=n.nativeElement,d=l.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(l,{className:"mat-mdc-button-ripple"});for(let{attribute:p,mdcClasses:w}of S3)l.hasAttribute(p)&&d.add(...w)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",r){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(r){js()},t.\u0275dir=N({type:t,inputs:{color:"color",disableRipple:[we.HasDecoratorInputTransform,"disableRipple","disableRipple",fi],disabled:[we.HasDecoratorInputTransform,"disabled","disabled",fi],ariaDisabled:[we.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",fi],disabledInteractive:[we.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",fi]},features:[Si]});let i=t;return i})();var b1=(()=>{let t=class t extends f1{constructor(n,r,o,s){super(n,r,o,s)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(de),c(ki,8))},t.\u0275cmp=I({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yi(o.color?"mat-"+o.color:""),U("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[C,Oe],attrs:_3,ngContentSelectors:w3,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ne(y3),b(0,"span",0),be(1),h(2,"span",1),be(3,1),g(),be(4,2),b(5,"span",2)(6,"span",3)),r&2&&U("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=t;return i})();var Sh=(()=>{let t=class t extends f1{constructor(n,r,o,s){super(n,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(de),c(ki,8))},t.\u0275cmp=I({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yi(o.color?"mat-"+o.color:""),U("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[C,Oe],attrs:I3,ngContentSelectors:k3,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ne(),b(0,"span",0),be(1),b(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',C3],encapsulation:2,changeDetection:0});let i=t;return i})();var Dh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,wh,Ve]});let i=t;return i})();var x1=Kn({passive:!0}),_1=(()=>{let t=class t{constructor(n,r){this._platform=n,this._ngZone=r,this._monitoredElements=new Map}monitor(n){if(!this._platform.isBrowser)return Ii;let r=$i(n),o=this._monitoredElements.get(r);if(o)return o.subject;let s=new ke,a="cdk-text-field-autofilled",l=d=>{d.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(a)?(r.classList.add(a),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!0}))):d.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",l,x1),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",l,x1)}}),s}stopMonitoring(n){let r=$i(n),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.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((n,r)=>this.stopMonitoring(r))}};t.\u0275fac=function(r){return new(r||t)(v(Ye),v(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var y1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})();var qx=class{constructor(t){this._box=t,this._destroyed=new ke,this._resizeSubject=new ke,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new gi(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(kt(e=>e.some(n=>n.target===t)),b_({bufferSize:1,refCount:!0}),re(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},w1=(()=>{let t=class t{constructor(){this._observers=new Map,this._ngZone=_(de),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new qx(o)),this._observers.get(o).observe(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var T3=["notch"],M3=["matFormFieldNotchedOutline",""],F3=["*"],R3=["textField"],A3=["iconPrefixContainer"],O3=["textPrefixContainer"],P3=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],N3=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function j3(i,t){i&1&&b(0,"span",17)}function V3(i,t){if(i&1&&(h(0,"label",16),be(1,1),D(2,j3,1,0,"span",17),g()),i&2){let e=f(2);m("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),De("for",e._control.disableAutomaticLabeling?null:e._control.id),u(2),ft(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function L3(i,t){if(i&1&&D(0,V3,3,5,"label",16),i&2){let e=f();ft(0,e._hasFloatingLabel()?0:-1)}}function z3(i,t){i&1&&b(0,"div",5)}function B3(i,t){}function H3(i,t){if(i&1&&D(0,B3,0,0,"ng-template",11),i&2){f(2);let e=Qi(1);m("ngTemplateOutlet",e)}}function $3(i,t){if(i&1&&(h(0,"div",7),D(1,H3,1,1,null,11),g()),i&2){let e=f();m("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),u(),ft(1,e._forceDisplayInfixLabel()?-1:1)}}function U3(i,t){i&1&&(h(0,"div",8,2),be(2,2),g())}function W3(i,t){i&1&&(h(0,"div",9,3),be(2,3),g())}function G3(i,t){}function q3(i,t){if(i&1&&D(0,G3,0,0,"ng-template",11),i&2){f();let e=Qi(1);m("ngTemplateOutlet",e)}}function Y3(i,t){i&1&&(h(0,"div",12),be(1,4),g())}function Q3(i,t){i&1&&(h(0,"div",13),be(1,5),g())}function K3(i,t){i&1&&b(0,"div",14)}function Z3(i,t){if(i&1&&(h(0,"div",18),be(1,6),g()),i&2){let e=f();m("@transitionMessages",e._subscriptAnimationState)}}function X3(i,t){if(i&1&&(h(0,"mat-hint",20),S(1),g()),i&2){let e=f(2);m("id",e._hintLabelId),u(),xe(e.hintLabel)}}function J3(i,t){if(i&1&&(h(0,"div",19),D(1,X3,2,2,"mat-hint",20),be(2,7),b(3,"div",21),be(4,8),g()),i&2){let e=f();m("@transitionMessages",e._subscriptAnimationState),u(),ft(1,e.hintLabel?1:-1)}}var Mh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["mat-label"]],standalone:!0});let i=t;return i})();var e4=new K("MatError");var t4=0,C1=(()=>{let t=class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${t4++}`}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(ar("id",o.id),De("align",null),U("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=t;return i})(),i4=new K("MatPrefix");var F1=new K("MatSuffix"),R1=(()=>{let t=class t{constructor(){this._isText=!1}set _isTextSelector(n){this._isText=!0}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[we.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[ge([{provide:F1,useExisting:t}])]});let i=t;return i})(),A1=new K("FloatingLabelParent"),I1=(()=>{let t=class t{get floating(){return this._floating}set floating(n){this._floating=n,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(n){this._monitorResize=n,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(n){this._elementRef=n,this._floating=!1,this._monitorResize=!1,this._resizeObserver=_(w1),this._ngZone=_(de),this._parent=_(A1),this._resizeSubscription=new Jn}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return n4(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};t.\u0275fac=function(r){return new(r||t)(c(x))},t.\u0275dir=N({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&U("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=t;return i})();function n4(i){let t=i;if(t.offsetParent!==null)return t.scrollWidth;let e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var k1="mdc-line-ripple--active",Th="mdc-line-ripple--deactivating",E1=(()=>{let t=class t{constructor(n,r){this._elementRef=n,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(Th);o.propertyName==="opacity"&&a&&s.remove(k1,Th)},r.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let n=this._elementRef.nativeElement.classList;n.remove(Th),n.add(k1)}deactivate(){this._elementRef.nativeElement.classList.add(Th)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(de))},t.\u0275dir=N({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=t;return i})(),S1=(()=>{let t=class t{constructor(n,r){this._elementRef=n,this._ngZone=r,this.open=!1}ngAfterViewInit(){let n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){!this.open||!n?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};t.\u0275fac=function(r){return new(r||t)(c(x),c(de))},t.\u0275cmp=I({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&X(T3,5),r&2){let s;L(s=z())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&U("mdc-notched-outline--notched",o.open)},inputs:{open:[we.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Oe],attrs:M3,ngContentSelectors:F3,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(Ne(),b(0,"div",1),h(1,"div",2,0),be(3),g(),b(4,"div",3))},encapsulation:2,changeDetection:0});let i=t;return i})(),r4={transitionMessages:Y_("transitionMessages",[K_("enter",Uh({opacity:1,transform:"translateY(0%)"})),Z_("void => enter",[Uh({opacity:0,transform:"translateY(-5px)"}),Q_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t});let i=t;return i})();var Qx=new K("MatFormField"),o4=new K("MAT_FORM_FIELD_DEFAULT_OPTIONS"),D1=0,T1="fill",s4="auto",M1="fixed",a4="translateY(-50%)",O1=(()=>{let t=class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=go(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||s4}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){let r=this._appearance,o=n||this._defaults?.appearance||T1;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||M1}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||M1}get hintLabel(){return this._hintLabel}set hintLabel(n){this._hintLabel=n,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(n){this._explicitFormFieldControl=n}constructor(n,r,o,s,a,l,d,p){this._elementRef=n,this._changeDetectorRef=r,this._ngZone=o,this._dir=s,this._platform=a,this._defaults=l,this._animationMode=d,this._hideRequiredMarker=!1,this.color="primary",this._appearance=T1,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${D1++}`,this._hintLabelId=`mat-mdc-hint-${D1++}`,this._subscriptAnimationState="",this._destroyed=new ke,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let n=this._control;n.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${n.controlType}`),n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),n.ngControl&&n.ngControl.valueChanges&&n.ngControl.valueChanges.pipe(re(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(n=>!n._isText),this._hasTextPrefix=!!this._prefixChildren.find(n=>n._isText),this._hasIconSuffix=!!this._suffixChildren.find(n=>!n._isText),this._hasTextSuffix=!!this._suffixChildren.find(n=>n._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),d_(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(re(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(re(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(n){let r=this._control?this._control.ngControl:null;return r&&r[n]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&n.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?n.push(r.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;let n=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){n.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdateOnStable=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,l=this._dir.value==="rtl"?"-1":"1",d=`${s+a}px`,w=`calc(${l} * (${d} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;n.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${a4} translateX(${w}) + )`}_isAttachedToDom(){let n=this._elementRef.nativeElement;if(n.getRootNode){let r=n.getRootNode();return r&&r!==n}return document.documentElement.contains(n)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(B),c(de),c(XI),c(Ye),c(o4,8),c(ki,8),c(ue))},t.\u0275cmp=I({type:t,selectors:[["mat-form-field"]],contentQueries:function(r,o,s){if(r&1&&(yt(s,Mh,5),yt(s,Mh,7),yt(s,Yx,5),yt(s,i4,5),yt(s,F1,5),yt(s,e4,5),yt(s,C1,5)),r&2){let a;L(a=z())&&(o._labelChildNonStatic=a.first),L(a=z())&&(o._labelChildStatic=a.first),L(a=z())&&(o._formFieldControl=a.first),L(a=z())&&(o._prefixChildren=a),L(a=z())&&(o._suffixChildren=a),L(a=z())&&(o._errorChildren=a),L(a=z())&&(o._hintChildren=a)}},viewQuery:function(r,o){if(r&1&&(X(R3,5),X(A3,5),X(O3,5),X(I1,5),X(S1,5),X(E1,5)),r&2){let s;L(s=z())&&(o._textField=s.first),L(s=z())&&(o._iconPrefixContainer=s.first),L(s=z())&&(o._textPrefixContainer=s.first),L(s=z())&&(o._floatingLabel=s.first),L(s=z())&&(o._notchedOutline=s.first),L(s=z())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&U("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[ge([{provide:Qx,useExisting:t},{provide:A1,useExisting:t}]),Oe],ngContentSelectors:N3,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(r,o){if(r&1){let s=Z();Ne(P3),D(0,L3,1,1,"ng-template",null,0,Ee),h(2,"div",4,1),F("click",function(l){return R(s),A(o._control.onContainerClick(l))}),D(4,z3,1,0,"div",5),h(5,"div",6),D(6,$3,2,2,"div",7)(7,U3,3,0,"div",8)(8,W3,3,0,"div",9),h(9,"div",10),D(10,q3,1,1,null,11),be(11),g(),D(12,Y3,2,0,"div",12)(13,Q3,2,0,"div",13),g(),D(14,K3,1,0,"div",14),g(),h(15,"div",15),D(16,Z3,2,1)(17,J3,5,2),g()}if(r&2){let s;u(2),U("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),u(2),ft(4,!o._hasOutline()&&!o._control.disabled?4:-1),u(2),ft(6,o._hasOutline()?6:-1),u(),ft(7,o._hasIconPrefix?7:-1),u(),ft(8,o._hasTextPrefix?8:-1),u(2),ft(10,!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),u(2),ft(12,o._hasTextSuffix?12:-1),u(),ft(13,o._hasIconSuffix?13:-1),u(),ft(14,o._hasOutline()?-1:14),u(),U("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),u(),ft(16,(s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[I1,S1,_n,E1,C1],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";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;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[r4.transitionMessages]},changeDetection:0});let i=t;return i})(),Gc=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,q,fh,Ve]});let i=t;return i})();var l4=new K("MAT_INPUT_VALUE_ACCESSOR"),d4=["button","checkbox","file","hidden","image","radio","range","reset","submit"],u4=0,P1=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(n){this._disabled=go(n),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(n){this._id=n||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Dr.required)??!1}set required(n){this._required=go(n)}get type(){return this._type}set type(n){this._type=n||"text",this._validateType(),!this._isTextarea&&Nx().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(n){this._errorStateTracker.matcher=n}get value(){return this._inputValueAccessor.value}set value(n){n!==this.value&&(this._inputValueAccessor.value=n,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(n){this._readonly=go(n)}get errorState(){return this._errorStateTracker.errorState}set errorState(n){this._errorStateTracker.errorState=n}constructor(n,r,o,s,a,l,d,p,w,E){this._elementRef=n,this._platform=r,this.ngControl=o,this._autofillMonitor=p,this._formField=E,this._uid=`mat-input-${u4++}`,this.focused=!1,this.stateChanges=new ke,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(ce=>Nx().has(ce)),this._iOSKeyupListener=ce=>{let O=ce.target;!O.value&&O.selectionStart===0&&O.selectionEnd===0&&(O.setSelectionRange(1,1),O.setSelectionRange(0,0))};let Q=this._elementRef.nativeElement,ne=Q.nodeName.toLowerCase();this._inputValueAccessor=d||Q,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&w.runOutsideAngular(()=>{n.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new _h(l,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=ne==="select",this._isTextarea=ne==="textarea",this._isInFormField=!!E,this._isNativeSelect&&(this.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(n=>{this.autofilled=n.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(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(n){this._elementRef.nativeElement.focus(n)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(n){n!==this.focused&&(this.focused=n,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let n=this._elementRef.nativeElement.value;this._previousNativeValue!==n&&(this._previousNativeValue=n,this.stateChanges.next())}_dirtyCheckPlaceholder(){let n=this._getPlaceholder();if(n!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=n,n?r.setAttribute("placeholder",n):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){d4.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let n=this._elementRef.nativeElement.validity;return n&&n.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let n=this._elementRef.nativeElement,r=n.options[0];return this.focused||n.multiple||!this.empty||!!(n.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(n){n.length?this._elementRef.nativeElement.setAttribute("aria-describedby",n.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let n=this._elementRef.nativeElement;return this._isNativeSelect&&(n.multiple||n.size>1)}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(Tr,10),c(Op,8),c($t,8),c(a1),c(l4,10),c(_1),c(de),c(Qx,8))},t.\u0275dir=N({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&F("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(ar("id",o.id)("disabled",o.disabled)("required",o.required),De("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),U("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[we.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[ge([{provide:Yx,useExisting:t}]),G]});let i=t;return i})(),N1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Gc,Gc,y1,Ve]});let i=t;return i})();var Fh=(()=>{let t=class t{constructor(n){this.http=n;let r=_(Ds);this.url=`${r}/auth`}login(n){return this.http.post(`${this.url}/login`,n,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}logout(){return this.http.post(`${this.url}/logout`,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}isAuthenticated(){return this.http.get(`${this.url}/check`,{withCredentials:!0,headers:{"Content-Type":"application/json"}})}};t.\u0275fac=function(r){return new(r||t)(v(ur))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var j1=(()=>{let t=class t{constructor(n,r,o){this.fb=n,this.authService=r,this.router=o,this.hide=!0,this.loginForm=this.fb.group({username:["",Dr.required],password:["",Dr.required]})}togglePWVisibility(n){this.hide=!this.hide,n.stopPropagation()}onSubmit(){this.loginForm.valid&&this.authService.login(this.loginForm.value).subscribe({next:()=>{this.router.navigate(["/envelope"])},error:n=>{console.error("Login failed",n)}})}};t.\u0275fac=function(r){return new(r||t)(c(xi),c(Fh),c(Oo))},t.\u0275cmp=I({type:t,selectors:[["app-login"]],standalone:!0,features:[Oe],decls:17,vars:5,consts:[[3,"ngSubmit","formGroup"],[1,"mb-3"],["matInput","","formControlName","username"],["matInput","","formControlName","password",3,"type"],["type","button","mat-icon-button","","matSuffix","",3,"click"],["mat-flat-button","","color","primary","type","submit"]],template:function(r,o){r&1&&(h(0,"form",0),F("ngSubmit",function(){return o.onSubmit()}),h(1,"div",1)(2,"mat-form-field")(3,"mat-label"),S(4,"Username"),g(),b(5,"input",2),g()(),h(6,"div",1)(7,"mat-form-field")(8,"mat-label"),S(9,"Enter your password"),g(),b(10,"input",3),h(11,"button",4),F("click",function(a){return o.togglePWVisibility(a)}),h(12,"mat-icon"),S(13),g()()()(),h(14,"div",1)(15,"button",5),S(16,"Log In"),g()()()),r&2&&(m("formGroup",o.loginForm),u(10),m("type",o.hide?"password":"text"),u(),De("aria-label","Hide password")("aria-pressed",o.hide),u(2),xe(o.hide?"visibility_off":"visibility"))},dependencies:[Gc,O1,Mh,R1,N1,P1,Dh,b1,Sh,Eh,kh,Pi,Oi,ii,Ri,Ai,$t,vi],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=t;return i})();var g4=(i,t)=>t.title,p4=()=>({title:"Explore Digital Data",link:"https://digitaldata.works/"}),f4=()=>({title:"Learn signFlow",link:"/"}),b4=()=>({title:"API Docs",link:"/"}),v4=(i,t,e)=>[i,t,e];function x4(i,t){if(i&1&&(h(0,"a",6)(1,"span"),S(2),g(),Ke(),h(3,"svg",17),b(4,"path",18),g()()),i&2){let e=t.$implicit;m("href",e.link,wo),u(2),xe(e.title)}}var Kx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["app-home"]],standalone:!0,features:[Oe],decls:19,vars:7,consts:[[1,"main"],[1,"content"],[1,"left-side"],["role","separator","aria-label","Divider",1,"divider"],[1,"right-side"],[1,"pill-group"],["target","_blank","rel","noopener",1,"pill",3,"href"],[1,"social-links"],["href","/","aria-label","Github","target","_blank","rel","noopener"],["width","25","height","24","viewBox","0 0 25 24","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Github"],["d","M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z"],["href","/","aria-label","Twitter","target","_blank","rel","noopener"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Twitter"],["d","M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"],["href","/","aria-label","Youtube","target","_blank","rel","noopener"],["width","29","height","20","viewBox","0 0 29 20","fill","none","xmlns","http://www.w3.org/2000/svg","alt","Youtube"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 19.4032C3.11363 19.2389 2.56449 18.9191 2.12405 18.4758C1.68361 18.0325 1.36732 17.4813 1.20683 16.8774C0.613281 14.6484 0.613281 10 0.613281 10C0.613281 10 0.613281 5.35161 1.20683 3.12258C1.36732 2.51866 1.68361 1.96749 2.12405 1.52422C2.56449 1.08095 3.11363 0.76113 3.71651 0.596774C5.93586 0 14.8068 0 14.8068 0C14.8068 0 23.6778 0 25.8972 0.596774C26.5 0.76113 27.0492 1.08095 27.4896 1.52422ZM19.3229 10L11.9036 5.77905V14.221L19.3229 10Z"],["xmlns","http://www.w3.org/2000/svg","height","14","viewBox","0 -960 960 960","width","14","fill","currentColor"],["d","M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1)(2,"div",2),b(3,"app-login"),g(),b(4,"div",3),h(5,"div",4)(6,"div",5),P_(7,x4,5,2,"a",6,g4),g(),h(9,"div",7)(10,"a",8),Ke(),h(11,"svg",9),b(12,"path",10),g()(),xn(),h(13,"a",11),Ke(),h(14,"svg",12),b(15,"path",13),g()(),xn(),h(16,"a",14),Ke(),h(17,"svg",15),b(18,"path",16),g()()()()()()),r&2&&(u(7),N_(j_(3,v4,Io(0,p4),Io(1,f4),Io(2,b4))))},dependencies:[j1],styles:['@charset "UTF-8";[_nghost-%COMP%]{--bright-blue: oklch(51.01% .274 263.83);--electric-violet: oklch(53.18% .28 296.97);--french-violet: oklch(47.66% .246 305.88);--vivid-pink: oklch(69.02% .277 332.77);--hot-red: oklch(61.42% .238 15.34);--orange-red: oklch(63.32% .24 31.68);--gray-900: oklch(19.37% .006 300.98);--gray-700: oklch(36.98% .014 302.71);--gray-400: oklch(70.9% .015 304.04);--red-to-pink-to-purple-vertical-gradient: linear-gradient(180deg, var(--orange-red) 0%, var(--vivid-pink) 50%, var(--electric-violet) 100%);--red-to-pink-to-purple-horizontal-gradient: linear-gradient(90deg, var(--orange-red) 0%, var(--vivid-pink) 50%, var(--electric-violet) 100%);--pill-accent: var(--bright-blue);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1[_ngcontent-%COMP%]{font-size:3.125rem;color:var(--gray-900);font-weight:500;line-height:100%;letter-spacing:-.125rem;margin:0;font-family:Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}p[_ngcontent-%COMP%]{margin:0;color:var(--gray-700)}.main[_ngcontent-%COMP%]{width:100%;min-height:100%;display:flex;justify-content:center;align-items:center;padding:1rem;box-sizing:inherit;position:relative}.angular-logo[_ngcontent-%COMP%]{max-width:9.2rem}.content[_ngcontent-%COMP%]{display:flex;justify-content:space-around;width:100%;max-width:700px;margin-bottom:3rem}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:1.75rem}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:1.5rem}.divider[_ngcontent-%COMP%]{width:1px;background:var(--red-to-pink-to-purple-vertical-gradient);margin-inline:.5rem}.pill-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:start;flex-wrap:wrap;gap:1.25rem}.pill[_ngcontent-%COMP%]{display:flex;align-items:center;--pill-accent: var(--bright-blue);background:color-mix(in srgb,var(--pill-accent) 5%,transparent);color:var(--pill-accent);padding-inline:.75rem;padding-block:.375rem;border-radius:2.75rem;border:0;transition:background .3s ease;font-family:var(--inter-font);font-size:.875rem;font-style:normal;font-weight:500;line-height:1.4rem;letter-spacing:-.00875rem;text-decoration:none}.pill[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--pill-accent) 15%,transparent)}.pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+1){--pill-accent: var(--bright-blue)}.pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+2){--pill-accent: var(--french-violet)}.pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+3), .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+4), .pill-group[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]:nth-child(6n+5){--pill-accent: var(--hot-red)}.pill-group[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-inline-start:.25rem}.social-links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.73rem;margin-top:1.5rem}.social-links[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:fill .3s ease;fill:var(--gray-400)}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--gray-900)}@media screen and (max-width: 650px){.content[_ngcontent-%COMP%]{flex-direction:column;width:max-content}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background:var(--red-to-pink-to-purple-horizontal-gradient);margin-block:1.5rem}}.sidenav-container[_ngcontent-%COMP%]{height:calc(100% - 64px)}.sidenav[_ngcontent-%COMP%]{margin-top:64px}']});let i=t;return i})();var V1=(i,t)=>{let e=_(Fh),n=_(Oo);return e.isAuthenticated().pipe(le(r=>(r||n.navigate(["/"]),r)))};var L1=[{path:"",component:Kx},{path:"login",component:Kx},{path:"envelope",component:zI,canActivate:[V1]}];var _4="@",y4=(()=>{let t=class t{constructor(n,r,o,s,a){this.doc=n,this.delegate=r,this.zone=o,this.animationType=s,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=_(F_,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-IVZQAEN6.js")).catch(r=>{throw new Me(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:o})=>{this._engine=r(this.animationType,this.doc,this.scheduler);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(n,r){let o=this.delegate.createRenderer(n,r);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let s=new Zx(o);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let l=a.createRenderer(n,r);s.use(l)}).catch(a=>{s.use(o)}),s}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(r){js()},t.\u0275prov=k({token:t,factory:t.\u0275fac});let i=t;return i})(),Zx=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let e of this.replay)e(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,e){this.delegate.appendChild(t,e)}insertBefore(t,e,n,r){this.delegate.insertBefore(t,e,n,r)}removeChild(t,e,n){this.delegate.removeChild(t,e,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){this.shouldReplay(e)&&this.replay.push(r=>r.setProperty(t,e,n)),this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(t,e,n)),this.delegate.listen(t,e,n)}shouldReplay(t){return this.replay!==null&&t.startsWith(_4)}};function z1(i="animations"){return il("NgAsyncAnimations"),vn([{provide:tl,useFactory:(t,e,n)=>new y4(t,e,n,i),deps:[ue,vl,de]},{provide:ki,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Xx=(()=>{let t=class t{constructor(){this.document=_(ue),this.meta=_(Ty)}getBaseHref(){return this.document.querySelector("base")?.getAttribute("href")||"/"}getApiUrl(){let n=this.meta.getTag('name="api-url"');return n?n.content:null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var B1={providers:[uw(L1),Fy(),z1(),vy(xy()),{provide:$_,useFactory:i=>i.getBaseHref(),deps:[Xx]},{provide:Ds,useFactory:i=>i.getApiUrl(),deps:[Xx]}]};var w4=["*",[["mat-toolbar-row"]]],C4=["*","mat-toolbar-row"],I4=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=N({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=t;return i})(),H1=(()=>{let t=class t{constructor(n,r,o){this._elementRef=n,this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(r){return new(r||t)(c(x),c(Ye),c(ue))},t.\u0275cmp=I({type:t,selectors:[["mat-toolbar"]],contentQueries:function(r,o,s){if(r&1&&yt(s,I4,5),r&2){let a;L(a=z())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(Yi(o.color?"mat-"+o.color:""),U("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Oe],ngContentSelectors:C4,decls:2,vars:0,template:function(r,o){r&1&&(Ne(w4),be(0),be(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=t;return i})();var $1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var Jx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({});let i=t;return i})();var U1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Jx,Jx,Ve]});let i=t;return i})();var W1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[Ve,Ve]});let i=t;return i})();var G1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=M({type:t}),t.\u0275inj=T({imports:[fh,q,Ve,wh,c1,W1]});let i=t;return i})();var q1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["app-navbar"]],standalone:!0,features:[Oe],decls:6,vars:0,consts:[["color","primary",1,"toolbar"],["mat-icon-button",""]],template:function(r,o){r&1&&(h(0,"mat-toolbar",0)(1,"button",1)(2,"mat-icon"),S(3,"menu"),g()(),h(4,"span"),S(5,"signFlow"),g()())},dependencies:[$1,H1,Dh,Sh,Eh,kh,U1,G1],styles:["mat-toolbar[_ngcontent-%COMP%]{height:4rem}"]});let i=t;return i})();var Y1=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=I({type:t,selectors:[["app-root"]],standalone:!0,features:[Oe],decls:3,vars:0,template:function(r,o){r&1&&(b(0,"app-navbar"),h(1,"main"),b(2,"router-outlet"),g())},dependencies:[Hg,q1],styles:["main[_ngcontent-%COMP%]{width:100%;min-height:calc(100% - 4rem);padding:0;margin:0;display:grid}router-outlet[_ngcontent-%COMP%]{display:none}"]});let i=t;return i})();Dy(Y1,B1).catch(i=>console.error(i));