@mxtommy/kip 3.8.2 → 3.9.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/copilot-instructions.md +1 -1
- package/CHANGELOG.md +3 -2
- package/package.json +1 -3
- package/public/3rdpartylicenses.txt +0 -26
- package/public/{chunk-SIMUFQFG.js → chunk-4JJLPUET.js} +1 -1
- package/public/{chunk-7BMBGIZI.js → chunk-53YH6WHF.js} +1 -1
- package/public/chunk-65LQUQJE.js +2 -0
- package/public/{chunk-KPQDHC2Z.js → chunk-7O6MKSQ3.js} +1 -1
- package/public/{chunk-4WFDZ6FH.js → chunk-AS4F4I3P.js} +1 -1
- package/public/{chunk-WD5WD3GY.js → chunk-CQXWGD3T.js} +1 -1
- package/public/{chunk-GQ3O7IYU.js → chunk-JNFARXLF.js} +11 -11
- package/public/chunk-KKHPIFEB.js +1 -0
- package/public/{chunk-OPPBJYH7.js → chunk-Q2Y75POI.js} +1 -1
- package/public/{chunk-ZWNGAG3P.js → chunk-RRTCHHRC.js} +1 -1
- package/public/chunk-TXPLRBW5.js +2 -0
- package/public/chunk-VHFBF47T.js +1 -0
- package/public/index.html +2 -2
- package/public/main-5BGEDP4B.js +53 -0
- package/public/{styles-RECKN66R.css → styles-GMXUNVLC.css} +1 -1
- package/public/assets/hammer.min.js +0 -7
- package/public/chunk-7VNHJHIE.js +0 -1
- package/public/chunk-FYMQ3PE4.js +0 -1
- package/public/chunk-SMXTNO74.js +0 -2
- package/public/chunk-TE3Z6IE7.js +0 -2
- package/public/main-ZQQ2KBG6.js +0 -237
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as p,p as d}from"./chunk-TA4GACKT.js";import{Ja as i,Qd as s,Wc as u,Yc as a,m,o as g,oa as c,ta as l}from"./chunk-35L7BBBD.js";var h={name:"@mxtommy/kip",version:"3.9.0-beta.11",description:"An advanced and versatile marine instrumentation package to display Signal K data.",license:"MIT",author:{name:"Thomas St.Pierre, David Godin"},contributors:[{name:"David Godin",email:"godind@hotmail.com"},{name:"Thomas St.Pierre",email:"thomas@samoht.ca"}],homepage:"https://github.com/mxtommy/Kip",bugs:"https://github.com/mxtommy/Kip/issues",repository:{type:"git",url:"git+https://github.com/mxtommy/Kip.git"},keywords:["signalk-webapp","signalk-category-instruments","signal k","signalk","instruments","dashboard","marine","nmea"],signalk:{appIcon:"assets/icon-72x72.png",displayName:"KIP Instrument MFD"},scripts:{dev:"ng serve --configuration=dev --serve-path=/@mxtommy/kip/","build-dev":"ng build --configuration=dev","build-prod":"ng build --configuration=production",test:"ng test",lint:"ng lint",e2e:"ng e2e"},devDependencies:{"@angular-devkit/build-angular":"^20.1.6","@angular/animations":"20.1.7","@angular/build":"^20.1.6","@angular/cdk":"20.1.6","@angular/cli":"^20.1.6","@angular/common":"20.1.7","@angular/compiler":"20.1.7","@angular/compiler-cli":"20.1.7","@angular/core":"20.1.7","@angular/forms":"20.1.7","@angular/language-service":"20.1.7","@angular/material":"20.1.6","@angular/platform-browser":"20.1.7","@angular/platform-browser-dynamic":"20.1.7","@angular/router":"20.1.7","@godind/ng-canvas-gauges":"^6.2.1","@robloche/chartjs-plugin-streaming":"^3.1.0","@types/canvas-gauges":"^2.1.8","@types/howler":"^2.2.10","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.9","@types/js-quantities":"^1.6.6","@types/lodash-es":"^4.17.9","@types/node":"^24.1.0","angular-eslint":"20.1.1","chart.js":"^4.4.9","chartjs-adapter-date-fns":"^3.0.0","chartjs-plugin-annotation":"^3.0.1",codelyzer:"^6.0.0","compare-versions":"^6.1.1","core-js":"^3.13.1","date-fns":"^2.30.0",eslint:"^9.29.0",gridstack:"^11.4.0",howler:"^2.2.4","jasmine-core":"~4.0.1","jasmine-spec-reporter":"~5.0.0","js-quantities":"^1.8.0",karma:"^6.4.4","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"^3.0.3","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.6.0","lodash-es":"^4.17.21","ng-packagr":"^20.0.1","ngx-markdown":"^20.0.0","ngx-resize-observer":"^3.1.0",protractor:"~7.0.0","pwa-asset-generator":"^8.0.4",rxjs:"^7.8.2",sass:"^1.49.9",screenfull:"^6.0.2","@zakj/no-sleep":"^0.13.5",steelseries:"^2.0.9","ts-node":"^10.9.2",tslib:"^2.6.2",typescript:"^5.8.3","zone.js":"^0.15.1"}};var N=(()=>{class o{MODE_PATH="self.environment.mode";configurableThemeColors=[{label:"Contrast",value:"contrast"},{label:"Blue",value:"blue"},{label:"Green",value:"green"},{label:"Orange",value:"orange"},{label:"Yellow",value:"yellow"},{label:"Pink",value:"pink"},{label:"Purple",value:"purple"},{label:"Grey",value:"grey"}];snackbarAppNotifications=new m;cssThemeColorRoles$=new g(null);_cssThemeColorRoles=null;_settings=l(p);_data=l(d);isNightMode=i(!1);_useAutoNightMode=s(this._settings.getAutoNightModeAsO(),{requireSync:!0});_theme=s(this._settings.getThemeNameAsO(),{requireSync:!0});_redNightMode=s(this._settings.getRedNightModeAsO(),{requireSync:!0});_environmentMode=s(this._data.subscribePath(this.MODE_PATH,"default"));appVersion=i(h.version);browserVersion=i("Unknown");osVersion=i("Unknown");constructor(){a(()=>{this._theme()==="light-theme"?document.body.classList.toggle("light-theme",this._theme()==="light-theme"):document.body.classList.remove("light-theme")}),a(()=>{let t=this._environmentMode().data.value;this._useAutoNightMode()&&(this.isNightMode.set(t==="night"),this.toggleDayNightMode())}),a(()=>{let t=this._redNightMode();u(()=>{t?this.toggleDayNightMode():this.toggleDayNightMode()})}),this.readThemeCssRoleVariables(),this._cssThemeColorRoles=this.cssThemeColorRoles$.getValue(),this.browserVersion.set(this.getBrowserVersion()),this.osVersion.set(this.getOSVersion()),console.log("*********** KIP Version Information ***********"),console.log(`** App Version: ${this.appVersion()}`),console.log(`** Browser Version: ${this.browserVersion()}`),console.log(`** OS Version: ${this.osVersion()}`),console.log("***********************************************")}sendSnackbarNotification(t,e=1e4,r=!1,n="Dismiss"){this.snackbarAppNotifications.next({message:t,duration:e,silent:r,action:n})}getSnackbarAppNotifications(){return this.snackbarAppNotifications.asObservable()}readThemeCssRoleVariables(){let t=document.body,e=getComputedStyle(t),r={background:e.getPropertyValue("--mat-sys-background").trim(),cardColor:e.getPropertyValue("--kip-widget-card-background-color").trim(),blue:e.getPropertyValue("--kip-blue-color").trim(),blueDim:e.getPropertyValue("--kip-blue-dim-color").trim(),blueDimmer:e.getPropertyValue("--kip-blue-dimmer-color").trim(),green:e.getPropertyValue("--kip-green-color").trim(),greenDim:e.getPropertyValue("--kip-green-dim-color").trim(),greenDimmer:e.getPropertyValue("--kip-green-dimmer-color").trim(),grey:e.getPropertyValue("--kip-grey-color").trim(),greyDim:e.getPropertyValue("--kip-grey-dim-color").trim(),greyDimmer:e.getPropertyValue("--kip-grey-dimmer-color").trim(),orange:e.getPropertyValue("--kip-orange-color").trim(),orangeDim:e.getPropertyValue("--kip-orange-dim-color").trim(),orangeDimmer:e.getPropertyValue("--kip-orange-dimmer-color").trim(),pink:e.getPropertyValue("--kip-pink-color").trim(),pinkDim:e.getPropertyValue("--kip-pink-dim-color").trim(),pinkDimmer:e.getPropertyValue("--kip-pink-dimmer-color").trim(),purple:e.getPropertyValue("--kip-purple-color").trim(),purpleDim:e.getPropertyValue("--kip-purple-dim-color").trim(),purpleDimmer:e.getPropertyValue("--kip-purple-dimmer-color").trim(),contrast:e.getPropertyValue("--kip-contrast-color").trim(),contrastDim:e.getPropertyValue("--kip-contrast-dim-color").trim(),contrastDimmer:e.getPropertyValue("--kip-contrast-dimmer-color").trim(),yellow:e.getPropertyValue("--kip-yellow-color").trim(),yellowDim:e.getPropertyValue("--kip-yellow-dim-color").trim(),yellowDimmer:e.getPropertyValue("--kip-yellow-dimmer-color").trim(),port:e.getPropertyValue("--kip-port-color").trim(),starboard:e.getPropertyValue("--kip-starboard-color").trim(),zoneNominal:e.getPropertyValue("--kip-zone-nominal-color").trim(),zoneAlert:e.getPropertyValue("--kip-zone-alert-color").trim(),zoneWarn:e.getPropertyValue("--kip-zone-warn-color").trim(),zoneAlarm:e.getPropertyValue("--kip-zone-alarm-color").trim(),zoneEmergency:e.getPropertyValue("--kip-zone-emergency-color").trim()};this.cssThemeColorRoles$.next(r)}get cssThemeColors(){return this._cssThemeColorRoles}setBrightness(t,e=!1){let r=document.body;r.style.setProperty("--kip-nightModeBrightness",`${t}`);let n=e?" sepia(0.5) hue-rotate(-30deg)":"";r.style.setProperty("--kip-nightModeFilters",n)}toggleDayNightMode(){this.isNightMode()?this._redNightMode()?(document.body.classList.toggle("night-theme",!0),this.setBrightness(1,!1)):(this.setBrightness(this._settings.getNightModeBrightness(),!0),document.body.classList.remove("night-theme"),this._theme()==="light-theme"?document.body.classList.toggle("light-theme",this._theme()==="light-theme"):document.body.classList.remove("light-theme")):(document.body.classList.remove("night-theme"),this._theme()==="light-theme"&&document.body.classList.toggle("light-theme",this._theme()==="light-theme"),this.setBrightness(1,!1)),this.readThemeCssRoleVariables(),this._cssThemeColorRoles=this.cssThemeColorRoles$.getValue()}getBrowserVersion(){let t=navigator.userAgent,e="Unknown";return t.includes("Edg")?e=`Edge ${t.match(/Edg\/(\d+)/)?.[1]}`:t.includes("Chrome")&&!t.includes("Edg")&&!t.includes("Chromium")?e=`Chrome ${t.match(/Chrome\/(\d+)/)?.[1]}`:t.includes("Chromium")?e=`Chromium ${t.match(/Chromium\/(\d+)/)?.[1]}`:t.includes("Firefox")?e=`Firefox ${t.match(/Firefox\/(\d+)/)?.[1]}`:t.includes("Safari")&&!t.includes("Chrome")&&!t.includes("Chromium")?e=`Safari ${t.match(/Version\/(\d+)/)?.[1]}`:(t.includes("Opera")||t.includes("OPR"))&&(e=`Opera ${t.match(/(Opera|OPR)\/(\d+)/)?.[2]}`),e}getOSVersion(){let t=navigator.platform,e=navigator.userAgent;return t.startsWith("Mac")?"macOS":t.startsWith("Win")?"Windows":/Linux/.test(t)?e.includes("ARM")||e.includes("aarch64")||e.includes("Raspberry")||t.includes("armv7l")||t.includes("armv8l")?"Raspberry Pi":"Linux":"Unknown OS"}static \u0275fac=function(e){return new(e||o)};static \u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I,c as j,d as z,e as B,f as $,g as U}from"./chunk-
|
|
1
|
+
import{a as I,c as j,d as z,e as B,f as $,g as U}from"./chunk-4JJLPUET.js";import{g as S,m as D,n as O}from"./chunk-TXPLRBW5.js";import{a as R,b as V}from"./chunk-2YVW3TBK.js";import{$b as C,Aa as f,Ac as k,Bc as E,Cb as F,De as L,Fe as P,Ie as N,Ja as h,Od as A,Sb as d,Tb as c,Wb as T,Xb as w,Xc as _,Yb as u,Yc as H,Zb as o,_b as l,gc as M,ic as x,kc as m,lb as p,ta as b,uc as y,wb as v,za as g,zc as a}from"./chunk-35L7BBBD.js";var W=(e,n)=>n.file;function q(e,n){e&1&&a(0," Loading... ")}function G(e,n){e&1&&a(0," Table of Content ")}function J(e,n){e&1&&(o(0,"button",8),a(1,"Error loading menu"),l())}function K(e,n){e&1&&(o(0,"button",8),a(1,"No help entries"),l())}function Q(e,n){if(e&1){let t=M();o(0,"button",10),x("click",function(){let i=g(t).$implicit,s=m(3);return f(s.selectFile(i.file))}),a(1),l()}if(e&2){let t=n.$implicit,r=m(3);u("disabled",r.selectedFile()===t.file),p(),E(" ",t.title," ")}}function X(e,n){if(e&1&&T(0,Q,2,2,"button",9,W),e&2){let t=m(2);w(t.helpFiles())}}function Y(e,n){if(e&1&&d(0,J,2,0,"button",8)(1,K,2,0,"button",8)(2,X,2,0),e&2){let t=m();c(t.hasError()?0:!t.isLoading()&&t.helpFiles().length===0?1:2)}}function Z(e,n){e&1&&(o(0,"div",6),a(1,"Unable to load help content."),l())}function ee(e,n){e&1&&(o(0,"div",6),a(1,"Loading help..."),l())}function te(e,n){if(e&1&&C(0,"markdown",7),e&2){let t=m();u("src","assets/help-docs/"+t.selectedFile())}}var he=(()=>{class e{pageTitle="Help";_router=b(S);_helpMenuRes=A(()=>"assets/help-docs/menu.json");helpFiles=_(()=>this._helpMenuRes.hasValue()?(this._helpMenuRes.value()??[]).filter(t=>t.file.endsWith(".md")):[]);selectedFile=h("");_initSelectionOnce=h(!1);_syncEffect=H(()=>{let t=this.helpFiles();!this._initSelectionOnce()&&t.length>0&&(this.selectedFile.set(t[0].file),this._initSelectionOnce.set(!0))});hasError=_(()=>this._helpMenuRes.error()!=null);isLoading=_(()=>this._helpMenuRes.isLoading());selectFile(t){this.selectedFile.set(t)}closePage(){this._router.navigate(["/dashboard"])}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=v({type:e,selectors:[["app-help"]],decls:16,vars:5,consts:[["helpMenu","matMenu"],[1,"fullpage-header"],[1,"fullpage-header-title"],["mat-flat-button","",3,"matMenuTriggerFor","disabled"],["matMenuContent",""],["mat-icon-button","","aria-label","Close",1,"dialog-close-icon",3,"click"],[1,"markdown-content"],[1,"markdown-content",3,"src"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"disabled"],["mat-menu-item","",3,"click","disabled"]],template:function(r,i){if(r&1){let s=M();o(0,"div",1)(1,"h6",2),a(2),l(),o(3,"button",3),d(4,q,1,0)(5,G,1,0),l(),o(6,"mat-menu",null,0),F(8,Y,3,1,"ng-template",4),l(),o(9,"button",5),x("click",function(){return g(s),f(i.closePage())}),o(10,"mat-icon"),a(11,"close"),l()()(),C(12,"mat-divider"),d(13,Z,2,0,"div",6)(14,ee,2,0,"div",6)(15,te,1,1,"markdown",7)}if(r&2){let s=y(7);p(2),k(i.pageTitle),p(),u("matMenuTriggerFor",s)("disabled",i.isLoading()||i.hasError()||i.helpFiles().length===0),p(),c(i.isLoading()?4:5),p(9),c(i.hasError()?13:i.isLoading()&&i.helpFiles().length===0?14:i.selectedFile()?15:-1)}},dependencies:[I,N,P,L,U,B,j,z,$,V,R,O,D],styles:[".fullpage-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.fullpage-header-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 24px 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.dialog-content-padding[_ngcontent-%COMP%]{--mat-dialog-content-padding: 0px 24px 20px 24px}.markdown-content[_ngcontent-%COMP%]{display:block;height:calc(100% - 75px);width:100%;overflow-x:scroll;padding:25px}"]})}return e})();export{he as AppHelpComponent};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as zt,b as Ft,c as At,d as Lt,e as Ht,f as Vt,g as Nt,h as Bt,i as Qt,j as jt,k as $t,m as qt,n as pe,p as de,q as Wt}from"./chunk-HCXH72CD.js";import"./chunk-KTDDP73O.js";import{c as Ot,d as Pt}from"./chunk-CBUY7NMR.js";import{a as kt}from"./chunk-JY3WVS7C.js";import{a as Rt}from"./chunk-FYMQ3PE4.js";import{f as It,n as Tt}from"./chunk-ZBCOJLI4.js";import{p as pt}from"./chunk-SMXTNO74.js";import{d as ft,e as _t,g as gt,i as vt,j as bt}from"./chunk-3LEMFOCV.js";import{a as we}from"./chunk-2YVW3TBK.js";import{A as be,D as xt,E as ye,F as Dt,L as Mt,M as wt,N as Et,Q as Se,T as Ce,_ as xe,aa as De,ca as Me,k as Je,p as Xe,r as yt,u as St,w as Ct,x as ve}from"./chunk-TA4GACKT.js";import{$b as v,$d as it,A as Re,Aa as _,Ab as P,Ac as k,Bc as I,Be as ct,Cb as g,Ce as mt,Db as Be,Ec as G,Fb as N,Fc as K,Fe as ge,Gb as Qe,Gc as U,Ja as x,Ke as ut,Lc as qe,Mc as ue,Na as Le,Nc as We,Oa as X,Oc as he,Oe as ht,Pc as Ge,Qa as ee,Qc as Ke,Ra as te,Rb as B,Sb as D,Sc as Ue,Tb as M,Uc as Ze,Ud as et,Vb as R,Wb as z,Wd as tt,Xb as F,Xc as le,Yb as u,Zb as r,_b as s,bd as fe,be as at,ce as nt,dc as Q,ec as j,ed as Z,fa as O,fc as A,g as Oe,ga as ze,gc as $,ha as T,hc as q,ic as C,id as Y,jd as Ye,kc as h,lb as l,lc as ie,le as rt,m as oe,mc as ae,me as ot,nb as V,nc as w,oa as Fe,oc as ne,oe as st,pb as He,pc as b,qc as y,ra as Ae,sb as Ve,sc as me,se as lt,t as Pe,ta as c,tc as je,uc as W,vc as $e,wb as E,wc as L,we as dt,yb as S,yc as se,yd as _e,za as f,zb as Ne,zc as p}from"./chunk-35L7BBBD.js";var Gt=(()=>{class t{transform(e,i){return!e||!e.length?[]:i?e.filter(a=>a.includes("self")):e}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Ne({name:"filterSelf",type:t,pure:!0})}return t})();var oi=["*"];function si(t,o){t&1&&ae(0)}var Ie=(()=>{class t{_elementRef=c(ee);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),Te=(()=>{class t{template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var H={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},li=new Ae("STEPPER_GLOBAL_OPTIONS"),ce=(()=>{class t{_stepperOptions;_stepper=c(J);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=x(!1);interactedStream=new N;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=x(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=x(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=x(null);index=x(-1);isSelected=le(()=>this._stepper.selectedIndex===this.index());indicatorType=le(()=>{let e=this.isSelected(),i=this.completed,a=this._state()??H.NUMBER,n=this._editable();return this._showError()&&this.hasError&&!e?H.ERROR:this._displayDefaultIndicatorType?!i||e?H.NUMBER:n?H.EDIT:H.DONE:i&&!e?H.DONE:i&&e?a:n&&e?H.EDIT:a});isNavigable=le(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=x(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=c(li,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,Te,5),w(n,St,5)),i&2){let d;b(d=y())&&(a.stepLabel=d.first),b(d=y())&&(a._childForms=d)}},viewQuery:function(i,a){if(i&1&&ne(V,7),i&2){let n;b(n=y())&&(a.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Y],optional:[2,"optional","optional",Y],completed:[2,"completed","completed",Y],hasError:[2,"hasError","hasError",Y]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Le],ngContentSelectors:oi,decls:1,vars:0,template:function(i,a){i&1&&(ie(),Be(0,si,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),J=(()=>{class t{_dir=c(lt,{optional:!0});_changeDetectorRef=c(Z);_elementRef=c(ee);_destroyed=new oe;_keyManager;_steps;steps=new te;_stepHeader;_sortedHeaders=new te;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=x(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new N;selectedIndexChange=new N;_groupId=c(rt).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(O(this._steps),T(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,a)=>i.index.set(a)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(O(this._stepHeader),T(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new st(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:Pe()).pipe(O(this._layoutDirection()),T(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),a=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:a,selectedStep:i[e],previouslySelectedStep:i[a]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=ot(e),a=e.keyCode,n=this._keyManager;n?.activeItemIndex!=null&&!i&&(a===32||a===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=et();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ce,5),w(n,Ie,5)),i&2){let d;b(d=y())&&(a._steps=d),b(d=y())&&(a._stepHeader=d)}},inputs:{linear:[2,"linear","linear",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Ye],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})(),Kt=(()=>{class t{_stepper=c(J);type="submit";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.next()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})(),Ut=(()=>{class t{_stepper=c(J);type="button";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.previous()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})();var pi=(t,o,e)=>({index:t,active:o,optional:e});function di(t,o){if(t&1&&A(0,2),t&2){let e=h();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",Ge(2,pi,e.index,e.active,e.optional))}}function ci(t,o){if(t&1&&(r(0,"span",7),p(1),s()),t&2){let e=h(2);l(),k(e._getDefaultTextForState(e.state))}}function mi(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=h(3);l(),k(e._intl.completedLabel)}}function ui(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=h(3);l(),k(e._intl.editableLabel)}}function hi(t,o){if(t&1&&(D(0,mi,2,1,"span",8)(1,ui,2,1,"span",8),r(2,"mat-icon",7),p(3),s()),t&2){let e=h(2);M(e.state==="done"?0:e.state==="edit"?1:-1),l(3),k(e._getDefaultTextForState(e.state))}}function fi(t,o){if(t&1&&D(0,ci,2,1,"span",7)(1,hi,4,2),t&2){let e,i=h();M((e=i.state)==="number"?0:1)}}function _i(t,o){t&1&&(r(0,"div",4),A(1,9),s()),t&2&&(l(),u("ngTemplateOutlet",o.template))}function gi(t,o){if(t&1&&(r(0,"div",4),p(1),s()),t&2){let e=h();l(),k(e.label)}}function vi(t,o){if(t&1&&(r(0,"div",5),p(1),s()),t&2){let e=h();l(),k(e._intl.optionalLabel)}}function bi(t,o){if(t&1&&(r(0,"div",6),p(1),s()),t&2){let e=h();l(),k(e.errorMessage)}}var Yt=["*"];function yi(t,o){}function Si(t,o){if(t&1&&(ae(0),g(1,yi,0,0,"ng-template",0)),t&2){let e=h();l(),u("cdkPortalOutlet",e._portal)}}var Ci=["animatedContainer"],Jt=t=>({step:t});function xi(t,o){t&1&&ae(0)}function Di(t,o){t&1&&v(0,"div",7)}function Mi(t,o){if(t&1&&(A(0,6),D(1,Di,1,0,"div",7)),t&2){let e=o.$implicit,i=o.$index,a=o.$count;h(2);let n=W(4);u("ngTemplateOutlet",n)("ngTemplateOutletContext",he(3,Jt,e)),l(),M(i!==a-1?1:-1)}}function wi(t,o){if(t&1&&(r(0,"div",8,1),A(2,9),s()),t&2){let e=o.$implicit,i=o.$index,a=h(2);se("mat-horizontal-stepper-content-"+a._getAnimationDirection(i)),u("id",a._getStepContentId(i)),B("aria-labelledby",a._getStepLabelId(i))("inert",a.selectedIndex===i?null:""),l(2),u("ngTemplateOutlet",e.content)}}function Ei(t,o){if(t&1&&(r(0,"div",2)(1,"div",3),z(2,Mi,2,5,null,null,R),s(),r(4,"div",4),z(5,wi,3,6,"div",5,R),s()()),t&2){let e=h();l(2),F(e.steps),l(3),F(e.steps)}}function Ii(t,o){if(t&1&&(r(0,"div",10),A(1,6),r(2,"div",11,1)(4,"div",12)(5,"div",13),A(6,9),s()()()()),t&2){let e=o.$implicit,i=o.$index,a=o.$index,n=o.$count,d=h(2),m=W(4);l(),u("ngTemplateOutlet",m)("ngTemplateOutletContext",he(10,Jt,e)),l(),L("mat-stepper-vertical-line",a!==n-1)("mat-vertical-content-container-active",d.selectedIndex===i),B("inert",d.selectedIndex===i?null:""),l(2),u("id",d._getStepContentId(i)),B("aria-labelledby",d._getStepLabelId(i)),l(2),u("ngTemplateOutlet",e.content)}}function Ti(t,o){if(t&1&&z(0,Ii,7,12,"div",10,R),t&2){let e=h();F(e.steps)}}function ki(t,o){if(t&1){let e=$();r(0,"mat-step-header",14),C("click",function(){let a=f(e).step;return _(a.select())})("keydown",function(a){f(e);let n=h();return _(n._onKeydown(a))}),s()}if(t&2){let e=o.step,i=h();L("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),B("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var re=(()=>{class t extends Te{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=S({type:t,selectors:[["","matStepLabel",""]],features:[P]})}return t})(),Oi=(()=>{class t{changes=new oe;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=Fe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zt=(()=>{class t extends Ie{_intl=c(Oi);_focusMonitor=c(it);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=c(at);e.load(mt),e.load(nt);let i=c(Z);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof re?null:this.label}_templateLabel(){return this.label instanceof re?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,a){i&2&&(se("mat-"+(a.color||"primary")),L("mat-step-header-empty-label",a._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[P],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,a){if(i&1&&(v(0,"div",0),r(1,"div")(2,"div",1),D(3,di,1,6,"ng-container",2)(4,fi,2,1),s()(),r(5,"div",3),D(6,_i,2,1,"div",4)(7,gi,2,1,"div",4),D(8,vi,2,1,"div",5),D(9,bi,2,1,"div",6),s()),i&2){let n;u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disableRipple),l(),se(qe("mat-step-icon-state-",a.state," mat-step-icon")),L("mat-step-icon-selected",a.selected),l(2),M(a.iconOverrides&&a.iconOverrides[a.state]?3:4),l(2),L("mat-step-label-active",a.active)("mat-step-label-selected",a.selected)("mat-step-label-error",a.state=="error"),l(),M((n=a._templateLabel())?6:a._stringLabel()?7:-1,n),l(2),M(a._hasOptionalLabel()?8:-1),l(),M(a._hasErrorLabel()?9:-1)}},dependencies:[ct,_e,pt],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
1
|
+
import{a as zt,b as Ft,c as At,d as Lt,e as Ht,f as Vt,g as Nt,h as Bt,i as Qt,j as jt,k as $t,m as qt,n as pe,p as de,q as Wt}from"./chunk-HCXH72CD.js";import"./chunk-KTDDP73O.js";import{c as Ot,d as Pt}from"./chunk-CBUY7NMR.js";import{a as kt}from"./chunk-JY3WVS7C.js";import{a as Rt}from"./chunk-VHFBF47T.js";import{f as It,n as Tt}from"./chunk-ZBCOJLI4.js";import{m as pt}from"./chunk-TXPLRBW5.js";import{d as ft,e as _t,g as gt,i as vt,j as bt}from"./chunk-3LEMFOCV.js";import{a as we}from"./chunk-2YVW3TBK.js";import{A as be,D as xt,E as ye,F as Dt,L as Mt,M as wt,N as Et,Q as Se,T as Ce,_ as xe,aa as De,ca as Me,k as Je,p as Xe,r as yt,u as St,w as Ct,x as ve}from"./chunk-TA4GACKT.js";import{$b as v,$d as it,A as Re,Aa as _,Ab as P,Ac as k,Bc as I,Be as ct,Cb as g,Ce as mt,Db as Be,Ec as G,Fb as N,Fc as K,Fe as ge,Gb as Qe,Gc as U,Ja as x,Ke as ut,Lc as qe,Mc as ue,Na as Le,Nc as We,Oa as X,Oc as he,Oe as ht,Pc as Ge,Qa as ee,Qc as Ke,Ra as te,Rb as B,Sb as D,Sc as Ue,Tb as M,Uc as Ze,Ud as et,Vb as R,Wb as z,Wd as tt,Xb as F,Xc as le,Yb as u,Zb as r,_b as s,bd as fe,be as at,ce as nt,dc as Q,ec as j,ed as Z,fa as O,fc as A,g as Oe,ga as ze,gc as $,ha as T,hc as q,ic as C,id as Y,jd as Ye,kc as h,lb as l,lc as ie,le as rt,m as oe,mc as ae,me as ot,nb as V,nc as w,oa as Fe,oc as ne,oe as st,pb as He,pc as b,qc as y,ra as Ae,sb as Ve,sc as me,se as lt,t as Pe,ta as c,tc as je,uc as W,vc as $e,wb as E,wc as L,we as dt,yb as S,yc as se,yd as _e,za as f,zb as Ne,zc as p}from"./chunk-35L7BBBD.js";var Gt=(()=>{class t{transform(e,i){return!e||!e.length?[]:i?e.filter(a=>a.includes("self")):e}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Ne({name:"filterSelf",type:t,pure:!0})}return t})();var oi=["*"];function si(t,o){t&1&&ae(0)}var Ie=(()=>{class t{_elementRef=c(ee);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),Te=(()=>{class t{template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var H={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},li=new Ae("STEPPER_GLOBAL_OPTIONS"),ce=(()=>{class t{_stepperOptions;_stepper=c(J);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=x(!1);interactedStream=new N;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=x(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=x(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=x(null);index=x(-1);isSelected=le(()=>this._stepper.selectedIndex===this.index());indicatorType=le(()=>{let e=this.isSelected(),i=this.completed,a=this._state()??H.NUMBER,n=this._editable();return this._showError()&&this.hasError&&!e?H.ERROR:this._displayDefaultIndicatorType?!i||e?H.NUMBER:n?H.EDIT:H.DONE:i&&!e?H.DONE:i&&e?a:n&&e?H.EDIT:a});isNavigable=le(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=x(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=c(li,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,Te,5),w(n,St,5)),i&2){let d;b(d=y())&&(a.stepLabel=d.first),b(d=y())&&(a._childForms=d)}},viewQuery:function(i,a){if(i&1&&ne(V,7),i&2){let n;b(n=y())&&(a.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Y],optional:[2,"optional","optional",Y],completed:[2,"completed","completed",Y],hasError:[2,"hasError","hasError",Y]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Le],ngContentSelectors:oi,decls:1,vars:0,template:function(i,a){i&1&&(ie(),Be(0,si,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),J=(()=>{class t{_dir=c(lt,{optional:!0});_changeDetectorRef=c(Z);_elementRef=c(ee);_destroyed=new oe;_keyManager;_steps;steps=new te;_stepHeader;_sortedHeaders=new te;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=x(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new N;selectedIndexChange=new N;_groupId=c(rt).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(O(this._steps),T(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,a)=>i.index.set(a)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(O(this._stepHeader),T(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new st(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:Pe()).pipe(O(this._layoutDirection()),T(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),a=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:a,selectedStep:i[e],previouslySelectedStep:i[a]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=ot(e),a=e.keyCode,n=this._keyManager;n?.activeItemIndex!=null&&!i&&(a===32||a===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=et();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ce,5),w(n,Ie,5)),i&2){let d;b(d=y())&&(a._steps=d),b(d=y())&&(a._stepHeader=d)}},inputs:{linear:[2,"linear","linear",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Ye],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})(),Kt=(()=>{class t{_stepper=c(J);type="submit";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.next()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})(),Ut=(()=>{class t{_stepper=c(J);type="button";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.previous()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})();var pi=(t,o,e)=>({index:t,active:o,optional:e});function di(t,o){if(t&1&&A(0,2),t&2){let e=h();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",Ge(2,pi,e.index,e.active,e.optional))}}function ci(t,o){if(t&1&&(r(0,"span",7),p(1),s()),t&2){let e=h(2);l(),k(e._getDefaultTextForState(e.state))}}function mi(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=h(3);l(),k(e._intl.completedLabel)}}function ui(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=h(3);l(),k(e._intl.editableLabel)}}function hi(t,o){if(t&1&&(D(0,mi,2,1,"span",8)(1,ui,2,1,"span",8),r(2,"mat-icon",7),p(3),s()),t&2){let e=h(2);M(e.state==="done"?0:e.state==="edit"?1:-1),l(3),k(e._getDefaultTextForState(e.state))}}function fi(t,o){if(t&1&&D(0,ci,2,1,"span",7)(1,hi,4,2),t&2){let e,i=h();M((e=i.state)==="number"?0:1)}}function _i(t,o){t&1&&(r(0,"div",4),A(1,9),s()),t&2&&(l(),u("ngTemplateOutlet",o.template))}function gi(t,o){if(t&1&&(r(0,"div",4),p(1),s()),t&2){let e=h();l(),k(e.label)}}function vi(t,o){if(t&1&&(r(0,"div",5),p(1),s()),t&2){let e=h();l(),k(e._intl.optionalLabel)}}function bi(t,o){if(t&1&&(r(0,"div",6),p(1),s()),t&2){let e=h();l(),k(e.errorMessage)}}var Yt=["*"];function yi(t,o){}function Si(t,o){if(t&1&&(ae(0),g(1,yi,0,0,"ng-template",0)),t&2){let e=h();l(),u("cdkPortalOutlet",e._portal)}}var Ci=["animatedContainer"],Jt=t=>({step:t});function xi(t,o){t&1&&ae(0)}function Di(t,o){t&1&&v(0,"div",7)}function Mi(t,o){if(t&1&&(A(0,6),D(1,Di,1,0,"div",7)),t&2){let e=o.$implicit,i=o.$index,a=o.$count;h(2);let n=W(4);u("ngTemplateOutlet",n)("ngTemplateOutletContext",he(3,Jt,e)),l(),M(i!==a-1?1:-1)}}function wi(t,o){if(t&1&&(r(0,"div",8,1),A(2,9),s()),t&2){let e=o.$implicit,i=o.$index,a=h(2);se("mat-horizontal-stepper-content-"+a._getAnimationDirection(i)),u("id",a._getStepContentId(i)),B("aria-labelledby",a._getStepLabelId(i))("inert",a.selectedIndex===i?null:""),l(2),u("ngTemplateOutlet",e.content)}}function Ei(t,o){if(t&1&&(r(0,"div",2)(1,"div",3),z(2,Mi,2,5,null,null,R),s(),r(4,"div",4),z(5,wi,3,6,"div",5,R),s()()),t&2){let e=h();l(2),F(e.steps),l(3),F(e.steps)}}function Ii(t,o){if(t&1&&(r(0,"div",10),A(1,6),r(2,"div",11,1)(4,"div",12)(5,"div",13),A(6,9),s()()()()),t&2){let e=o.$implicit,i=o.$index,a=o.$index,n=o.$count,d=h(2),m=W(4);l(),u("ngTemplateOutlet",m)("ngTemplateOutletContext",he(10,Jt,e)),l(),L("mat-stepper-vertical-line",a!==n-1)("mat-vertical-content-container-active",d.selectedIndex===i),B("inert",d.selectedIndex===i?null:""),l(2),u("id",d._getStepContentId(i)),B("aria-labelledby",d._getStepLabelId(i)),l(2),u("ngTemplateOutlet",e.content)}}function Ti(t,o){if(t&1&&z(0,Ii,7,12,"div",10,R),t&2){let e=h();F(e.steps)}}function ki(t,o){if(t&1){let e=$();r(0,"mat-step-header",14),C("click",function(){let a=f(e).step;return _(a.select())})("keydown",function(a){f(e);let n=h();return _(n._onKeydown(a))}),s()}if(t&2){let e=o.step,i=h();L("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),B("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var re=(()=>{class t extends Te{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=S({type:t,selectors:[["","matStepLabel",""]],features:[P]})}return t})(),Oi=(()=>{class t{changes=new oe;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=Fe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zt=(()=>{class t extends Ie{_intl=c(Oi);_focusMonitor=c(it);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=c(at);e.load(mt),e.load(nt);let i=c(Z);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof re?null:this.label}_templateLabel(){return this.label instanceof re?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,a){i&2&&(se("mat-"+(a.color||"primary")),L("mat-step-header-empty-label",a._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[P],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,a){if(i&1&&(v(0,"div",0),r(1,"div")(2,"div",1),D(3,di,1,6,"ng-container",2)(4,fi,2,1),s()(),r(5,"div",3),D(6,_i,2,1,"div",4)(7,gi,2,1,"div",4),D(8,vi,2,1,"div",5),D(9,bi,2,1,"div",6),s()),i&2){let n;u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disableRipple),l(),se(qe("mat-step-icon-state-",a.state," mat-step-icon")),L("mat-step-icon-selected",a.selected),l(2),M(a.iconOverrides&&a.iconOverrides[a.state]?3:4),l(2),L("mat-step-label-active",a.active)("mat-step-label-selected",a.selected)("mat-step-label-error",a.state=="error"),l(),M((n=a._templateLabel())?6:a._stringLabel()?7:-1,n),l(2),M(a._hasOptionalLabel()?8:-1),l(),M(a._hasErrorLabel()?9:-1)}},dependencies:[ct,_e,pt],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return t})(),Pi=(()=>{class t{templateRef=c(V);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),Ri=(()=>{class t{_template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=S({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),ke=(()=>{class t extends ce{_errorStateMatcher=c(De,{skipSelf:!0});_viewContainerRef=c(Ve);_isSelected=Oe.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(ze(()=>this._stepper.selectionChange.pipe(Re(e=>e.selectedStep===this),O(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new ut(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let a=this._errorStateMatcher.isErrorState(e,i),n=!!(e&&e.invalid&&this.interacted);return a||n}static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,re,5),w(n,Ri,5)),i&2){let d;b(d=y())&&(a.stepLabel=d.first),b(d=y())&&(a._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ue([{provide:De,useExisting:t},{provide:ce,useExisting:t}]),P],ngContentSelectors:Yt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,a){i&1&&(ie(),g(0,Si,2,1,"ng-template"))},dependencies:[ht],encapsulation:2,changeDetection:0})}return t})(),Xt=(()=>{class t extends J{_ngZone=c(Qe);_renderer=c(He);_animationsDisabled=dt();_cleanupTransition;_isAnimating=x(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new te;_icons;animationDone=new N;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!c(tt).isBrowser;constructor(){super();let i=c(ee).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(T(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(T(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(O(null),T(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let a=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),n=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(a||n)&&this._animatedContainers.find(m=>m.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ke,5),w(n,Pi,5)),i&2){let d;b(d=y())&&(a._steps=d),b(d=y())&&(a._icons=d)}},viewQuery:function(i,a){if(i&1&&(ne(Zt,5),ne(Ci,5)),i&2){let n;b(n=y())&&(a._stepHeader=n),b(n=y())&&(a._animatedContainers=n)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,a){i&2&&(B("aria-orientation",a.orientation),$e("--mat-stepper-animation-duration",a._getAnimationDuration()),L("mat-stepper-horizontal",a.orientation==="horizontal")("mat-stepper-vertical",a.orientation==="vertical")("mat-stepper-label-position-end",a.orientation==="horizontal"&&a.labelPosition=="end")("mat-stepper-label-position-bottom",a.orientation==="horizontal"&&a.labelPosition=="bottom")("mat-stepper-header-position-bottom",a.headerPosition==="bottom")("mat-stepper-animating",a._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ue([{provide:J,useExisting:t}]),P],ngContentSelectors:Yt,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,a){if(i&1&&(ie(),D(0,xi,1,0),D(1,Ei,7,0,"div",2)(2,Ti,2,0),g(3,ki,1,23,"ng-template",null,0,Ze)),i&2){let n;M(a._isServer?0:-1),l(),M((n=a.orientation)==="horizontal"?1:n==="vertical"?2:-1)}},dependencies:[_e,Zt],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return t})(),ei=(()=>{class t extends Kt{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=S({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(i,a){i&2&&q("type",a.type)},features:[P]})}return t})(),ti=(()=>{class t extends Ut{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=S({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(i,a){i&2&&q("type",a.type)},features:[P]})}return t})();var zi=()=>[5,10,25,100];function Fi(t,o){t&1&&(r(0,"mat-header-cell",30),p(1," Path "),s())}function Ai(t,o){if(t&1&&(r(0,"mat-cell",31),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.path," ")}}function Li(t,o){t&1&&(r(0,"mat-header-cell",32),p(1," Source "),s())}function Hi(t,o){if(t&1&&(r(0,"mat-cell",33),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.pathSource," ")}}function Vi(t,o){t&1&&(r(0,"mat-header-cell",32),p(1," Time Scale "),s())}function Ni(t,o){if(t&1&&(r(0,"mat-cell",34),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.timeScaleFormat," ")}}function Bi(t,o){t&1&&(r(0,"mat-header-cell",32),p(1," Duration "),s())}function Qi(t,o){if(t&1&&(r(0,"mat-cell",34),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.period," ")}}function ji(t,o){t&1&&v(0,"mat-header-cell",35)}function $i(t,o){if(t&1){let e=$();r(0,"mat-cell",36)(1,"button",37),C("click",function(){let a=f(e).$implicit,n=h();return _(n.openDatasetModal(a.uuid))}),p(2,"Edit"),s(),r(3,"button",37),C("click",function(){let a=f(e).$implicit,n=h();return _(n.deleteDataset(a.uuid))}),p(4,"Delete"),s()()}}function qi(t,o){t&1&&v(0,"mat-header-row",38)}function Wi(t,o){t&1&&v(0,"mat-row",39)}function Gi(t,o){if(t&1&&(r(0,"mat-row"),p(1),s()),t&2){h();let e=W(10);l(),I(' No data matching the filter "',e.value,'" ')}}function Ki(t,o){t&1&&p(0,"Source Data")}function Ui(t,o){if(t&1&&(r(0,"mat-option",7),p(1),s()),t&2){let e=o.$implicit;u("value",e),l(),I(" ",e," ")}}function Zi(t,o){if(t&1&&(r(0,"mat-option",7),p(1),s()),t&2){let e=o.$implicit;u("value",e),l(),I(" ",e," ")}}function Yi(t,o){t&1&&p(0,"Sampling")}var ai="[_nghost-%COMP%]{display:block;height:100%;width:100%}.content-area[_ngcontent-%COMP%]{height:calc(100% - 63px);overflow-y:auto;width:100%;scroll-behavior:smooth}.filter[_ngcontent-%COMP%]{margin-bottom:10px}.buttons[_ngcontent-%COMP%]{margin-top:10px}.mat-column-actions[_ngcontent-%COMP%]{text-align:end}.buttons[_ngcontent-%COMP%]{margin-right:5px}.pathCell[_ngcontent-%COMP%], .pathHeader[_ngcontent-%COMP%]{flex:1 1 50%}.dataHeader[_ngcontent-%COMP%], .dataCell[_ngcontent-%COMP%]{flex:1 1 10%;justify-content:center}.actionHeader[_ngcontent-%COMP%]{flex:1 1 20%}.actionCell[_ngcontent-%COMP%]{flex:1 1 20%;justify-content:end}@media screen and (max-width: 750px){.pathHeader[_ngcontent-%COMP%], .dataHeader[_ngcontent-%COMP%]{flex:1 1 30%}.actionHeader[_ngcontent-%COMP%]{display:none}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:before{content:attr(data-label);float:left;padding-right:5px}mat-row[_ngcontent-%COMP%]:after{min-height:auto;padding-bottom:10px}.dataRow[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.dataCell[_ngcontent-%COMP%], .actionCell[_ngcontent-%COMP%]{margin-left:24px}}",Sn=(()=>{class t{paginator=fe(pe);sort=fe(de);pageTitle="Datasets";selectedDataset;tableData=new qt([]);displayedColumns=["path","pathSource","timeScaleFormat","period","actions"];dialog=c(gt);cdRef=c(Z);dsService=c(Pt);ngOnInit(){this.loadDatasets()}loadDatasets(){this.tableData.data=this.dsService.list().filter(e=>e.editable!==!1)}ngAfterViewInit(){this.tableData.paginator=this.paginator(),this.tableData.sort=this.sort(),this.tableData.filter="",this.cdRef.detectChanges()}openDatasetModal(e){let i;if(e){let a=Je(this.tableData.data.find(n=>n.uuid===e));a&&(i=this.dialog.open(ii,{data:a,disableClose:!1}))}else i=this.dialog.open(ii,{disableClose:!1});i.afterClosed().subscribe(a=>{a===void 0||!a||(a.label=`${a.path}, Source: ${a.pathSource}, Scale: ${a.timeScaleFormat}, Period: ${a.period} `,a.uuid?this.editDataset(a):this.addDataset(a),this.loadDatasets())})}addDataset(e){this.dsService.create(e.path,e.pathSource,e.timeScaleFormat,e.period,e.label,!0,!0),this.loadDatasets()}editDataset(e){this.dsService.edit(e),this.loadDatasets()}deleteDataset(e){this.dsService.remove(e),this.loadDatasets()}trackByUuid(e,i){return`${i.uuid}`}applyFilter(e){let i=e.target.value;this.tableData.filter=i.trim().toLowerCase(),this.tableData.paginator&&this.tableData.paginator.firstPage()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["settings-datasets"]],viewQuery:function(i,a){i&1&&(me(a.paginator,pe,5),me(a.sort,de,5)),i&2&&je(2)},decls:37,vars:8,consts:[["existingDataSet","ngForm"],["input",""],[3,"pageTitle"],[1,"content-area"],["name","existingDataSet",1,"page-content-wrapper","content-area"],[1,"mat-card-subtitle","description-text"],[1,"filter"],["matInput","","placeholder","Ex: navigation","value","",3,"keyup"],[1,"mat-elevation-z8","full-width","table-container"],["matSort","","matSortActive","path","matSortDirection","asc",1,"full-display",3,"dataSource","trackBy"],["matColumnDef","path"],["class","pathHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","pathCell","data-label","Path: ",4,"matCellDef"],["matColumnDef","pathSource"],["class","dataHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","dataCell","data-label","Source: ",4,"matCellDef"],["matColumnDef","timeScaleFormat"],["class","dataCell","data-label","Scale: ",4,"matCellDef"],["matColumnDef","period"],["matColumnDef","actions"],["class","actionHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","actionCell",4,"matCellDef"],["class","headerRow",4,"matHeaderRowDef","matHeaderRowDefSticky"],["class","dataRow",4,"matRowDef","matRowDefColumns"],[4,"matNoDataRow"],[1,"paginator"],["pageSize","5",3,"pageSizeOptions"],[1,"formActionFooter"],[1,"formActionDivider"],["mat-flat-button","",1,"formActionButton",3,"click"],["mat-sort-header","",1,"pathHeader"],["data-label","Path: ",1,"pathCell"],["mat-sort-header","",1,"dataHeader"],["data-label","Source: ",1,"dataCell"],["data-label","Scale: ",1,"dataCell"],["mat-sort-header","",1,"actionHeader"],[1,"actionCell"],["mat-raised-button","","color","accent",1,"small-button","buttons",3,"click"],[1,"headerRow"],[1,"dataRow"]],template:function(i,a){if(i&1){let n=$();v(0,"page-header",2),r(1,"div",3)(2,"form",4,0)(4,"p",5),p(5,"Datasets are background processes that record path values over time. Combine with the Data Chart widget they offer data visualization graphs. Care should be applied to manage Datasets and evaluate system resources usage. "),s(),r(6,"mat-form-field",6)(7,"mat-label"),p(8,"Filter"),s(),r(9,"input",7,1),C("keyup",function(m){return f(n),_(a.applyFilter(m))}),s()(),r(11,"div",8)(12,"mat-table",9),Q(13,10),g(14,Fi,2,0,"mat-header-cell",11)(15,Ai,2,1,"mat-cell",12),j(),Q(16,13),g(17,Li,2,0,"mat-header-cell",14)(18,Hi,2,1,"mat-cell",15),j(),Q(19,16),g(20,Vi,2,0,"mat-header-cell",14)(21,Ni,2,1,"mat-cell",17),j(),Q(22,18),g(23,Bi,2,0,"mat-header-cell",14)(24,Qi,2,1,"mat-cell",17),j(),Q(25,19),g(26,ji,1,0,"mat-header-cell",20)(27,$i,5,0,"mat-cell",21),j(),g(28,qi,1,0,"mat-header-row",22)(29,Wi,1,0,"mat-row",23)(30,Gi,2,1,"mat-row",24),s()(),r(31,"div",25),v(32,"mat-paginator",26),s(),r(33,"div",27),v(34,"mat-divider",28),r(35,"button",29),C("click",function(){return f(n),_(a.openDatasetModal())}),p(36,"Add"),s()()()()}i&2&&(u("pageTitle",a.pageTitle),l(12),u("dataSource",a.tableData)("trackBy",a.trackByUuid),l(16),u("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",!0),l(),u("matRowDefColumns",a.displayedColumns),l(3),u("pageSizeOptions",We(7,zi)))},dependencies:[Se,ye,ve,be,xe,Ce,Me,zt,de,Lt,At,Ht,Wt,Ft,Vt,ge,Nt,Qt,Bt,jt,$t,pe,we,Rt],styles:[ai]})}return t})(),ii=(()=>{class t{SignalKDataService=c(Xe);dialogRef=c(ft);dataset=c(_t);titleDialog=null;newDataset={uuid:null,path:null,pathSource:null,baseUnit:null,timeScaleFormat:"second",period:10,label:null};formDataset=null;availablePaths=[];availableSources=[];filterSelfPaths=!0;ngOnInit(){if(this.dataset){this.titleDialog="Edit Dataset",this.formDataset=this.dataset;let e=this.SignalKDataService.getPathObject(this.formDataset.path);e!==null&&(this.availableSources=["default"].concat(Object.keys(e.sources)))}else this.titleDialog="Add Dataset",this.formDataset=this.newDataset;this.availablePaths=this.SignalKDataService.getPathsByType("number").sort()}changePath(){let e=this.SignalKDataService.getPathObject(this.formDataset.path);e!==null&&(this.availableSources=["default"].concat(Object.keys(e.sources)),this.formDataset.pathSource="default")}closeForm(){this.dialogRef.close(this.formDataset)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["settings-datasets-modal"]],decls:67,vars:11,consts:[["datasetForm","ngForm"],["mat-dialog-title",""],["name","datasetForm",3,"ngSubmit"],["matStepLabel",""],[1,"tab-content"],[1,"full-width"],["placeholder","Select data path","name","selectedPath","required","",3,"ngModelChange","ngModel"],[3,"value"],["name","filterSelfPaths",3,"ngModelChange","ngModel"],["placeholder","Select data source","name","selectedSource","required","",3,"ngModelChange","ngModel"],[1,"buttons"],["type","button","mat-raised-button","","color","accent","matStepperNext","",3,"disabled"],[1,"mat-subtitle-1"],[1,"flex-container",2,"margin-top","10px"],[1,"flex-field-50"],["placeholder","Select dataset time scale","name","timeScaleFormat","required","",3,"ngModelChange","ngModel"],["value","hour"],["value","minute"],["value","second"],["matInput","","type","number","min","1","max","60","step","1","placeholder","Enter or select number...","name","period","required","",3,"ngModelChange","ngModel"],[2,"margin-top","10px"],["type","button","mat-raised-button","","color","accent","matStepperPrevious","",1,"buttons"],["mat-raised-button","","type","submit","color","accent",1,"buttons",3,"disabled"]],template:function(i,a){if(i&1){let n=$();r(0,"h6",1),p(1),s(),r(2,"mat-dialog-content")(3,"form",2,0),C("ngSubmit",function(){return f(n),_(a.closeForm())}),r(5,"mat-horizontal-stepper")(6,"mat-step"),g(7,Ki,1,0,"ng-template",3),r(8,"div",4)(9,"mat-form-field",5)(10,"mat-label"),p(11,"Signal K Path"),s(),r(12,"mat-select",6),U("ngModelChange",function(m){return f(n),K(a.formDataset.path,m)||(a.formDataset.path=m),_(m)}),C("ngModelChange",function(){return f(n),_(a.changePath())}),z(13,Ui,2,2,"mat-option",7,R),Ke(15,"filterSelf"),s()(),r(16,"mat-checkbox",8),U("ngModelChange",function(m){return f(n),K(a.filterSelfPaths,m)||(a.filterSelfPaths=m),_(m)}),p(17," Restrict to own vessel "),s(),v(18,"br")(19,"br"),r(20,"mat-form-field",5)(21,"mat-label"),p(22,"Source"),s(),r(23,"mat-select",9),U("ngModelChange",function(m){return f(n),K(a.formDataset.pathSource,m)||(a.formDataset.pathSource=m),_(m)}),z(24,Zi,2,2,"mat-option",7,R),s()()(),v(26,"mat-divider"),r(27,"div",10)(28,"button",11),p(29," Next "),s()()(),r(30,"mat-step"),g(31,Yi,1,0,"ng-template",3),r(32,"div",4)(33,"span",12),p(34,"Time Scales"),s(),r(35,"div",13)(36,"div",14)(37,"mat-form-field",5)(38,"mat-label"),p(39,"Scale"),s(),r(40,"mat-select",15),U("ngModelChange",function(m){return f(n),K(a.formDataset.timeScaleFormat,m)||(a.formDataset.timeScaleFormat=m),_(m)}),r(41,"mat-option",16),p(42,"Hours"),s(),r(43,"mat-option",17),p(44,"Minutes"),s(),r(45,"mat-option",18),p(46,"Seconds"),s()()()(),r(47,"div",14)(48,"mat-form-field",5)(49,"mat-label"),p(50,"Duration"),s(),r(51,"input",19),U("ngModelChange",function(m){return f(n),K(a.formDataset.period,m)||(a.formDataset.period=m),_(m)}),s()()()(),r(52,"p",20),p(53,"Time scales define the data sampling rate and overall Dataset level of precision. Select a Time Scale that is targeted to your intended usage. Shorter Time Scales have higher system resources costs, for both the data capture and widget rendering process. "),s(),r(54,"ul")(55,"li"),p(56,"Hours: per minute sampling rate. Intended for long sampling periods when slow refresh rate is acceptable and system resource usage should be minimized. Grafana is the perfect alternative to this Time Scale. "),s(),r(57,"li"),p(58,"Minutes: per second sampling rate. Meant for trends observations such wind speed, depth, solar power, voltage, etc. "),s(),r(59,"li"),p(60,"Secondes: 200ms sampling rate. Intended for use cases where user may act upon realtime information such as when racing. "),s()()(),v(61,"mat-divider"),r(62,"div",10)(63,"button",21),p(64," Back "),s(),r(65,"button",22),p(66," Save "),s()()()()()()}if(i&2){let n=W(4);l(),I(" ",a.titleDialog," "),l(11),G("ngModel",a.formDataset.path),l(),F(Ue(15,8,a.availablePaths,a.filterSelfPaths)),l(3),G("ngModel",a.filterSelfPaths),l(7),G("ngModel",a.formDataset.pathSource),l(),F(a.availableSources),l(4),u("disabled",!a.formDataset.path),l(12),G("ngModel",a.formDataset.timeScaleFormat),l(11),G("ngModel",a.formDataset.period),l(14),u("disabled",!n.valid)}},dependencies:[Ot,vt,bt,Se,ye,yt,Dt,Ct,ve,Et,wt,Mt,xt,be,Xt,ke,re,xe,Ce,Tt,It,kt,we,ge,ei,Me,ti,Gt],styles:[ai]})}return t})();export{Sn as SettingsDatasetsComponent,ii as SettingsDatasetsModalComponent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$a as Pr,$b as Kr,A as m,B as mt,C as A,D as fn,Da as Ve,E as yr,Ea as _,Eb as Gr,Ed as fi,F as vt,Fa as Tr,Fb as Ee,Fd as pi,G as Rr,Ga as ne,Gb as K,Gd as gi,Ha as St,Hb as Yr,Hd as mi,Ib as wn,Ja as Mr,Jb as Zr,Jd as vi,Ka as Ar,Kb as Et,Kd as Si,L as Y,Lb as _t,M as Z,Mb as In,N as le,Na as yt,Nb as Qr,Oa as Sn,Ob as En,Pa as Dr,Pb as _n,Q as pn,Qa as Rt,Qb as bn,R as ee,Rb as bt,Sa as Or,Ta as yn,Ua as Nr,Va as qe,Vc as ri,W as Re,Wc as ii,X as te,Xa as Rn,Y as gn,Ya as Cn,Z as Cr,Za as Ce,_a as we,_c as Tt,a as d,ab as Ur,ad as oi,b as N,ba as wr,bb as Lr,ca as Ir,cb as xr,db as jr,eb as kr,ed as Tn,f as pr,fa as Er,fb as $r,g as gt,ga as D,gb as P,gd as si,ha as mn,hd as ai,i as gr,ia as w,ic as Xr,id as _e,j as mr,jb as Fr,k as dn,l as hn,la as y,lc as Jr,ld as ci,m as W,ma as Q,mb as We,mc as ei,md as be,nd as ui,o as x,oa as v,ob as zr,od as li,pa as de,pb as Hr,pd as di,qa as _r,qb as Ie,qd as Te,r as G,ra as C,rb as Br,rd as hi,s as M,sa as g,sb as Vr,sd as Me,t as h,ta as l,tb as qr,td as Mn,te as An,u as ue,ua as vn,ub as Wr,v as vr,vb as Ct,w as Sr,wa as br,wb as wt,wc as ti,xa as he,xb as fe,ya as j,yb as It,yc as ni}from"./chunk-35L7BBBD.js";var At=new C(""),Un=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||n)(g(At),g(K))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ge=class{_doc;constructor(r){this._doc=r}manager},Dn="ng-app-id";function yi(n){for(let r of n)r.remove()}function Ri(n,r){let e=r.createElement("style");return e.textContent=n,e}function $o(n,r,e,t){let i=n.head?.querySelectorAll(`style[${Dn}="${r}"],link[${Dn}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Dn),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Nn(n,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Ln=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,$o(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,Ri);t?.forEach(i=>this.addUsage(i,this.external,Nn))}removeStyles(e,t){for(let i of e)this.removeUsage(i,this.inline);t?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,t,i){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,t){let i=t.get(e);i&&(i.usage--,i.usage<=0&&(yi(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])yi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,Ri(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,Nn(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||n)(g(_),g(yn),g(Rn,8),g(qe))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),On={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},xn=/%COMP%/g;var wi="%COMP%",Fo=`_nghost-${wi}`,zo=`_ngcontent-${wi}`,Ho=!0,Bo=new C("",{providedIn:"root",factory:()=>Ho});function Vo(n){return zo.replace(xn,n)}function qo(n){return Fo.replace(xn,n)}function Ii(n,r){return r.map(e=>e.replace(xn,n))}var jn=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,u=null,f=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=f,this.platformIsServer=!1,this.defaultRenderer=new Ye(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,t);return i instanceof Mt?i.applyToHost(e):i instanceof Ze&&i.applyStyles(),i}getOrCreateRenderer(e,t){let i=this.rendererByCompId,o=i.get(t.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,R=this.platformIsServer,I=this.tracingService;switch(t.encapsulation){case Cn.Emulated:o=new Mt(c,u,t,this.appId,f,s,a,R,I);break;case Cn.ShadowDom:return new Pn(c,u,e,t,s,a,this.nonce,R,I);default:o=new Ze(c,u,t,f,s,a,R,I);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||n)(g(Un),g(Ln),g(yn),g(Bo),g(_),g(qe),g(K),g(Rn),g(Gr,8))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ye=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,t,i,o){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(On[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Ci(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Ci(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,i){if(i){e=i+":"+e;let o=On[i];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let i=On[t];i?r.removeAttributeNS(i,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,i){i&(We.DashCase|We.Important)?r.style.setProperty(e,t,i&We.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&We.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t,i){if(typeof r=="string"&&(r=be().getGlobalEventTarget(this.doc,r),!r))throw new y(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function Ci(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Pn=class extends Ye{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=i.styles;f=Ii(i.id,f);for(let I of f){let b=document.createElement("style");a&&b.setAttribute("nonce",a),b.textContent=I,this.shadowRoot.appendChild(b)}let R=i.getExternalStyles?.();if(R)for(let I of R){let b=Nn(I,o);a&&b.setAttribute("nonce",a),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ze=class extends Ye{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let f=t.styles;this.styles=u?Ii(u,f):f,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Mt=class extends Ze{contentAttr;hostAttr;constructor(r,e,t,i,o,s,a,c,u){let f=i+"-"+t.id;super(r,e,t,o,s,a,c,u,f),this.contentAttr=Vo(f),this.hostAttr=qo(f)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}};var Dt=class n extends li{supportsDOMEvents=!0;static makeCurrent(){ui(new n)}onAndCancel(r,e,t,i){return r.addEventListener(e,t,i),()=>{r.removeEventListener(e,t,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Wo();return e==null?null:Go(e)}resetBaseElement(){Qe=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return pi(document.cookie,r)}},Qe=null;function Wo(){return Qe=Qe||document.head.querySelector("base"),Qe?Qe.getAttribute("href"):null}function Go(n){return new URL(n,document.baseURI).pathname}var Ot=class{addToWindow(r){Q.getAngularTestability=(t,i=!0)=>{let o=r.findTestabilityInTree(t,i);if(o==null)throw new y(5103,!1);return o},Q.getAllAngularTestabilities=()=>r.getAllTestabilities(),Q.getAllAngularRootElements=()=>r.getAllRootElements();let e=t=>{let i=Q.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};Q.frameworkStabilizers||(Q.frameworkStabilizers=[]),Q.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,t){if(e==null)return null;let i=r.getTestability(e);return i??(t?be().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},Yo=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),_i=(()=>{class n extends Ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ei=["alt","control","meta","shift"],Zo={"\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"},Qo={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{class n extends Ge{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=n.parseEventName(t),a=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>be().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let t=e.toLowerCase().split("."),i=t.shift();if(t.length===0||!(i==="keydown"||i==="keyup"))return null;let o=n._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Ei.forEach(u=>{let f=t.indexOf(u);f>-1&&(t.splice(f,1),s+=u+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=Zo[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ei.forEach(s=>{if(s!==i){let a=Qo[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();function Ko(n,r){let e=d({rootComponent:n},Xo(r));return ai(e)}function Xo(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:ns}}function Jo(){Dt.makeCurrent()}function es(){return new ne}function ts(){return Or(document),document}var ns=[{provide:qe,useValue:mi},{provide:Nr,useValue:Jo,multi:!0},{provide:_,useFactory:ts}];var rs=[{provide:Et,useClass:Ot},{provide:Zr,useClass:_t,deps:[K,In,Et]},{provide:_t,useClass:_t,deps:[K,In,Et]}],Ti=[{provide:br,useValue:"root"},{provide:ne,useFactory:es},{provide:At,useClass:_i,multi:!0,deps:[_]},{provide:At,useClass:bi,multi:!0,deps:[_]},jn,Ln,Un,{provide:zr,useExisting:jn},{provide:gi,useClass:Yo},[]],is=(()=>{class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275mod=fe({type:n});static \u0275inj=de({providers:[...Ti,...rs],imports:[fi,si]})}return n})();var Mi=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var kn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:function(t){let i=null;return t?i=new(t||n):i=g(as),i},providedIn:"root"})}return n})(),as=(()=>{class n extends kn{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case P.NONE:return t;case P.HTML:return we(t,"HTML")?Ce(t):$r(this._doc,String(t)).toString();case P.STYLE:return we(t,"Style")?Ce(t):t;case P.SCRIPT:if(we(t,"Script"))return Ce(t);throw new y(5200,!1);case P.URL:return we(t,"URL")?Ce(t):kr(String(t));case P.RESOURCE_URL:if(we(t,"ResourceURL"))return Ce(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Pr(e)}bypassSecurityTrustStyle(e){return Ur(e)}bypassSecurityTrustScript(e){return Lr(e)}bypassSecurityTrustUrl(e){return xr(e)}bypassSecurityTrustResourceUrl(e){return jr(e)}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var p="primary",ut=Symbol("RouteTitle"),Bn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function me(n){return new Bn(n)}function ji(n,r,e){let t=e.path.split("/");if(t.length>n.length||e.pathMatch==="full"&&(r.hasChildren()||t.length<n.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:i}}function cs(n,r){if(n.length!==r.length)return!1;for(let e=0;e<n.length;++e)if(!F(n[e],r[e]))return!1;return!0}function F(n,r){let e=n?Vn(n):void 0,t=r?Vn(r):void 0;if(!e||!t||e.length!=t.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!ki(n[i],r[i]))return!1;return!0}function Vn(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function ki(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;let e=[...n].sort(),t=[...r].sort();return e.every((i,o)=>t[o]===i)}else return n===r}function $i(n){return n.length>0?n[n.length-1]:null}function X(n){return vr(n)?n:Qr(n)?M(Promise.resolve(n)):h(n)}var us={exact:zi,subset:Hi},Fi={exact:ls,subset:ds,ignored:()=>!0};function Di(n,r,e){return us[e.paths](n.root,r.root,e.matrixParams)&&Fi[e.queryParams](n.queryParams,r.queryParams)&&!(e.fragment==="exact"&&n.fragment!==r.fragment)}function ls(n,r){return F(n,r)}function zi(n,r,e){if(!pe(n.segments,r.segments)||!Ut(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!n.children[t]||!zi(n.children[t],r.children[t],e))return!1;return!0}function ds(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(e=>ki(n[e],r[e]))}function Hi(n,r,e){return Bi(n,r,r.segments,e)}function Bi(n,r,e,t){if(n.segments.length>e.length){let i=n.segments.slice(0,e.length);return!(!pe(i,e)||r.hasChildren()||!Ut(i,e,t))}else if(n.segments.length===e.length){if(!pe(n.segments,e)||!Ut(n.segments,e,t))return!1;for(let i in r.children)if(!n.children[i]||!Hi(n.children[i],r.children[i],t))return!1;return!0}else{let i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!pe(n.segments,i)||!Ut(n.segments,i,t)||!n.children[p]?!1:Bi(n.children[p],r,o,t)}}function Ut(n,r,e){return r.every((t,i)=>Fi[e](n[i].parameters,t.parameters))}var H=class{root;queryParams;fragment;_queryParamMap;constructor(r=new S([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){return ps.serialize(this)}},S=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}},re=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=me(this.parameters),this._parameterMap}toString(){return qi(this)}};function hs(n,r){return pe(n,r)&&n.every((e,t)=>F(e.parameters,r[t].parameters))}function pe(n,r){return n.length!==r.length?!1:n.every((e,t)=>e.path===r[t].path)}function fs(n,r){let e=[];return Object.entries(n.children).forEach(([t,i])=>{t===p&&(e=e.concat(r(i,t)))}),Object.entries(n.children).forEach(([t,i])=>{t!==p&&(e=e.concat(r(i,t)))}),e}var ve=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>new ie,providedIn:"root"})}return n})(),ie=class{parse(r){let e=new Wn(r);return new H(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Ke(r.root,!0)}`,t=vs(r.queryParams),i=typeof r.fragment=="string"?`#${gs(r.fragment)}`:"";return`${e}${t}${i}`}},ps=new ie;function Lt(n){return n.segments.map(r=>qi(r)).join("/")}function Ke(n,r){if(!n.hasChildren())return Lt(n);if(r){let e=n.children[p]?Ke(n.children[p],!1):"",t=[];return Object.entries(n.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${Ke(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=fs(n,(t,i)=>i===p?[Ke(n.children[p],!1)]:[`${i}:${Ke(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[p]!=null?`${Lt(n)}/${e[0]}`:`${Lt(n)}/(${e.join("//")})`}}function Vi(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(n){return Vi(n).replace(/%3B/gi,";")}function gs(n){return encodeURI(n)}function qn(n){return Vi(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(n){return decodeURIComponent(n)}function Oi(n){return xt(n.replace(/\+/g,"%20"))}function qi(n){return`${qn(n.path)}${ms(n.parameters)}`}function ms(n){return Object.entries(n).map(([r,e])=>`;${qn(r)}=${qn(e)}`).join("")}function vs(n){let r=Object.entries(n).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Nt(e)}=${Nt(i)}`).join("&"):`${Nt(e)}=${Nt(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Ss=/^[^\/()?;#]+/;function $n(n){let r=n.match(Ss);return r?r[0]:""}var ys=/^[^\/()?;=#]+/;function Rs(n){let r=n.match(ys);return r?r[0]:""}var Cs=/^[^=?&#]+/;function ws(n){let r=n.match(Cs);return r?r[0]:""}var Is=/^[^&#]+/;function Es(n){let r=n.match(Is);return r?r[0]:""}var Wn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[p]=new S(r,e)),t}parseSegment(){let r=$n(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new re(xt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Rs(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=$n(this.remaining);i&&(t=i,this.capture(t))}r[xt(e)]=xt(t)}parseQueryParam(r){let e=ws(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=Es(this.remaining);s&&(t=s,this.capture(t))}let i=Oi(e),o=Oi(t);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=$n(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new y(4011,!1)}};function Wi(n){return n.segments.length>0?new S([],{[p]:n}):n}function Gi(n){let r={};for(let[t,i]of Object.entries(n.children)){let o=Gi(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new S(n.segments,r);return _s(e)}function _s(n){if(n.numberOfChildren===1&&n.children[p]){let r=n.children[p];return new S(n.segments.concat(r.segments),r.children)}return n}function oe(n){return n instanceof H}function Yi(n,r,e=null,t=null){let i=Zi(n);return Qi(i,r,e,t)}function Zi(n){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new S(o.url,s);return o===n&&(r=a),a}let t=e(n.root),i=Wi(t);return r??i}function Qi(n,r,e,t){let i=n;for(;i.parent;)i=i.parent;if(r.length===0)return Fn(i,i,i,e,t);let o=bs(r);if(o.toRoot())return Fn(i,i,new S([],{}),e,t);let s=Ts(o,i,n),a=s.processChildren?Je(s.segmentGroup,s.index,o.commands):Xi(s.segmentGroup,s.index,o.commands);return Fn(i,s.segmentGroup,a,e,t)}function jt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function tt(n){return typeof n=="object"&&n!=null&&n.outlets}function Fn(n,r,e,t,i){let o={};t&&Object.entries(t).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let s;n===r?s=e:s=Ki(n,r,e);let a=Wi(Gi(s));return new H(a,o,i)}function Ki(n,r,e){let t={};return Object.entries(n.children).forEach(([i,o])=>{o===r?t[i]=e:t[i]=Ki(o,r,e)}),new S(n.segments,t)}var kt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&jt(t[0]))throw new y(4003,!1);let i=t.find(tt);if(i&&i!==$i(t))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bs(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new kt(!0,0,n);let r=0,e=!1,t=n.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new kt(e,r,t)}var Ne=class{segmentGroup;processChildren;index;constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function Ts(n,r,e){if(n.isAbsolute)return new Ne(r,!0,0);if(!e)return new Ne(r,!1,NaN);if(e.parent===null)return new Ne(e,!0,0);let t=jt(n.commands[0])?0:1,i=e.segments.length-1+t;return Ms(e,i,n.numberOfDoubleDots)}function Ms(n,r,e){let t=n,i=r,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new y(4005,!1);i=t.segments.length}return new Ne(t,!1,i-o)}function As(n){return tt(n[0])?n[0].outlets:{[p]:n}}function Xi(n,r,e){if(n??=new S([],{}),n.segments.length===0&&n.hasChildren())return Je(n,r,e);let t=Ds(n,r,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new S(n.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(n.segments.slice(t.pathIndex),n.children),Je(o,0,i)}else return t.match&&i.length===0?new S(n.segments,{}):t.match&&!n.hasChildren()?Gn(n,r,e):t.match?Je(n,0,i):Gn(n,r,e)}function Je(n,r,e){if(e.length===0)return new S(n.segments,{});{let t=As(e),i={};if(Object.keys(t).some(o=>o!==p)&&n.children[p]&&n.numberOfChildren===1&&n.children[p].segments.length===0){let o=Je(n.children[p],r,e);return new S(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Xi(n.children[o],r,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(n.segments,i)}}function Ds(n,r,e){let t=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(t>=e.length)return o;let s=n.segments[i],a=e[t];if(tt(a))break;let c=`${a}`,u=t<e.length-1?e[t+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Pi(c,u,s))return o;t+=2}else{if(!Pi(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Gn(n,r,e){let t=n.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(tt(o)){let c=Os(o.outlets);return new S(t,c)}if(i===0&&jt(e[0])){let c=n.segments[r];t.push(new re(c.path,Ni(e[0]))),i++;continue}let s=tt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&jt(a)?(t.push(new re(s,Ni(a))),i+=2):(t.push(new re(s,{})),i++)}return new S(t,{})}function Os(n){let r={};return Object.entries(n).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Gn(new S([],{}),0,t))}),r}function Ni(n){let r={};return Object.entries(n).forEach(([e,t])=>r[e]=`${t}`),r}function Pi(n,r,e){return n==e.path&&F(r,e.parameters)}var Pe="imperative",E=(function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n})(E||{}),L=class{id;url;constructor(r,e){this.id=r,this.url=e}},se=class extends L{type=E.NavigationStart;navigationTrigger;restoredState;constructor(r,e,t="imperative",i=null){super(r,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends L{urlAfterRedirects;type=E.NavigationEnd;constructor(r,e,t){super(r,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n})(T||{}),Le=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(Le||{}),z=class extends L{reason;code;type=E.NavigationCancel;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends L{reason;code;type=E.NavigationSkipped;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}},xe=class extends L{error;target;type=E.NavigationError;constructor(r,e,t,i){super(r,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},nt=class extends L{urlAfterRedirects;state;type=E.RoutesRecognized;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$t=class extends L{urlAfterRedirects;state;type=E.GuardsCheckStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ft=class extends L{urlAfterRedirects;state;shouldActivate;type=E.GuardsCheckEnd;constructor(r,e,t,i,o){super(r,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zt=class extends L{urlAfterRedirects;state;type=E.ResolveStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends L{urlAfterRedirects;state;type=E.ResolveEnd;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class{route;type=E.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vt=class{route;type=E.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qt=class{snapshot;type=E.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=E.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=E.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=E.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},je=class{routerEvent;position;anchor;type=E.Scroll;constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},rt=class{},ke=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Ns(n){return!(n instanceof rt)&&!(n instanceof ke)}function Ps(n,r){return n.providers&&!n._injector&&(n._injector=Ct(n.providers,r,`Route: ${n.path}`)),n._injector??r}function $(n){return n.outlet||p}function Us(n,r){let e=n.filter(t=>$(t)===r);return e.push(...n.filter(t=>$(t)!==r)),e}function ze(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let r=n.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Zt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Se(this.rootInjector)}},Se=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Zt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||n)(g(he))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Qt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Yn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Yn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Zn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Zn(r,this._root).map(e=>e.value)}};function Yn(n,r){if(n===r.value)return r;for(let e of r.children){let t=Yn(n,e);if(t)return t}return null}function Zn(n,r){if(n===r.value)return[r];for(let e of r.children){let t=Zn(n,e);if(t.length)return t.unshift(r),t}return[]}var U=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Oe(n){let r={};return n&&n.children.forEach(e=>r[e.value.outlet]=e),r}var it=class extends Qt{snapshot;constructor(r,e){super(r),this.snapshot=e,rr(this,r)}toString(){return this.snapshot.toString()}};function Ji(n){let r=Ls(n),e=new x([new re("",{})]),t=new x({}),i=new x({}),o=new x({}),s=new x(""),a=new V(e,t,o,s,i,p,n,r.root);return a.snapshot=r.root,new it(new U(a,[]),r)}function Ls(n){let r={},e={},t={},o=new ge([],r,t,"",e,p,n,null,{});return new ot("",new U(o,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,t,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(m(u=>u[ut]))??h(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=i,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(m(r=>me(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>me(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Kt(n,r,e="emptyOnly"){let t,{routeConfig:i}=n;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:d(d({},r.params),n.params),data:d(d({},r.data),n.data),resolve:d(d(d(d({},n.data),r.data),i?.data),n._resolvedData)}:t={params:d({},n.params),data:d({},n.data),resolve:d(d({},n.data),n._resolvedData??{})},i&&to(i)&&(t.resolve[ut]=i.title),t}var ge=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ut]}constructor(r,e,t,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=me(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},ot=class extends Qt{url;constructor(r,e){super(e),this.url=r,rr(this,e)}toString(){return eo(this._root)}};function rr(n,r){r.value._routerState=n,r.children.forEach(e=>rr(n,e))}function eo(n){let r=n.children.length>0?` { ${n.children.map(eo).join(", ")} } `:"";return`${n.value}${r}`}function zn(n){if(n.snapshot){let r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,F(r.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),F(r.params,e.params)||n.paramsSubject.next(e.params),cs(r.url,e.url)||n.urlSubject.next(e.url),F(r.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Qn(n,r){let e=F(n.params,r.params)&&hs(n.url,r.url),t=!n.parent!=!r.parent;return e&&!t&&(!n.parent||Qn(n.parent,r.parent))}function to(n){return typeof n.title=="string"||n.title===null}var no=new C(""),ir=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new Ee;deactivateEvents=new Ee;attachEvents=new Ee;detachEvents=new Ee;routerOutletData=oi(void 0);parentContexts=l(Se);location=l(Vr);changeDetector=l(Tn);inputBinder=l(lt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:i}=e.name;if(t)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Kn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=It({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[yt]})}return n})(),Kn=class{route;childContexts;parent;outletData;constructor(r,e,t,i){this.route=r,this.childContexts=e,this.parent=t,this.outletData=i}get(r,e){return r===V?this.route:r===Se?this.childContexts:r===no?this.outletData:this.parent.get(r,e)}},lt=new C(""),or=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=mt([t.queryParams,t.params,t.data]).pipe(D(([o,s,a],c)=>(a=d(d(d({},o),s),a),c===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=ci(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),sr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=wt({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&Kr(0,"router-outlet")},dependencies:[ir],encapsulation:2})}return n})();function ar(n){let r=n.children&&n.children.map(ar),e=r?N(d({},n),{children:r}):d({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=sr),e}function xs(n,r,e){let t=st(n,r._root,e?e._root:void 0);return new it(t,r)}function st(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let i=js(n,r,e);return new U(t,i)}else{if(n.shouldAttach(r.value)){let o=n.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>st(n,a)),s}}let t=ks(r.value),i=r.children.map(o=>st(n,o));return new U(t,i)}}function js(n,r,e){return r.children.map(t=>{for(let i of e.children)if(n.shouldReuseRoute(t.value,i.value.snapshot))return st(n,t,i);return st(n,t)})}function ks(n){return new V(new x(n.url),new x(n.params),new x(n.queryParams),new x(n.fragment),new x(n.data),n.outlet,n.component,n)}var $e=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},ro="ngNavigationCancelingError";function Xt(n,r){let{redirectTo:e,navigationBehaviorOptions:t}=oe(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=io(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function io(n,r){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[ro]=!0,e.cancellationCode=r,e}function $s(n){return oo(n)&&oe(n.url)}function oo(n){return!!n&&n[ro]}var Fs=(n,r,e,t)=>m(i=>(new Xn(r,i.targetRouterState,i.currentRouterState,e,t).activate(n),i)),Xn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,t,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),zn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let i=Oe(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Oe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Oe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let i=Oe(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Yt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Wt(r.value.snapshot))}activateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(zn(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,t);else if(i.component){let s=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),zn(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,t)}},Jt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Ue=class{component;route;constructor(r,e){this.component=r,this.route=e}};function zs(n,r,e){let t=n._root,i=r?r._root:null;return Xe(t,i,e,[t.value])}function Hs(n){let r=n.routeConfig?n.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:n,guards:r}}function He(n,r){let e=Symbol(),t=r.get(n,e);return t===e?typeof n=="function"&&!_r(n)?n:r.get(n):t}function Xe(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Oe(r);return n.children.forEach(s=>{Bs(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>et(a,e.getContext(s),i)),i}function Bs(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=r?r.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Vs(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Jt(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Xe(n,r,a?a.children:null,t,i):Xe(n,r,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ue(a.outlet.component,s))}else s&&et(r,a,i),i.canActivateChecks.push(new Jt(t)),o.component?Xe(n,null,a?a.children:null,t,i):Xe(n,null,e,t,i);return i}function Vs(n,r,e){if(typeof e=="function")return e(n,r);switch(e){case"pathParamsChange":return!pe(n.url,r.url);case"pathParamsOrQueryParamsChange":return!pe(n.url,r.url)||!F(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qn(n,r)||!F(n.queryParams,r.queryParams);case"paramsChange":default:return!Qn(n,r)}}function et(n,r,e){let t=Oe(n),i=n.value;Object.entries(t).forEach(([o,s])=>{i.component?r?et(s,r.children.getContext(o),e):et(s,null,e):et(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Ue(r.outlet.component,i)):e.canDeactivateChecks.push(new Ue(null,i)):e.canDeactivateChecks.push(new Ue(null,i))}function dt(n){return typeof n=="function"}function qs(n){return typeof n=="boolean"}function Ws(n){return n&&dt(n.canLoad)}function Gs(n){return n&&dt(n.canActivate)}function Ys(n){return n&&dt(n.canActivateChild)}function Zs(n){return n&&dt(n.canDeactivate)}function Qs(n){return n&&dt(n.canMatch)}function so(n){return n instanceof Sr||n?.name==="EmptyError"}var Pt=Symbol("INITIAL_VALUE");function Fe(){return D(n=>mt(n.map(r=>r.pipe(ee(1),Er(Pt)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Pt)return Pt;if(e===!1||Ks(e))return e}return!0}),Y(r=>r!==Pt),ee(1)))}function Ks(n){return oe(n)||n instanceof $e}function Xs(n,r){return A(e=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(N(d({},e),{guardsResult:!0})):Js(s,t,i,n).pipe(A(a=>a&&qs(a)?ea(t,o,n,r):h(a)),m(a=>N(d({},e),{guardsResult:a})))})}function Js(n,r,e,t){return M(n).pipe(A(i=>oa(i.component,i.route,e,r,t)),te(i=>i!==!0,!0))}function ea(n,r,e,t){return M(r).pipe(le(i=>yr(na(i.route.parent,t),ta(i.route,t),ia(n,i.path,e),ra(n,i.route,e))),te(i=>i!==!0,!0))}function ta(n,r){return n!==null&&r&&r(new Gt(n)),h(!0)}function na(n,r){return n!==null&&r&&r(new qt(n)),h(!0)}function ra(n,r,e){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return h(!0);let i=t.map(o=>vt(()=>{let s=ze(r)??e,a=He(o,s),c=Gs(a)?a.canActivate(r,n):j(s,()=>a(r,n));return X(c).pipe(te())}));return h(i).pipe(Fe())}function ia(n,r,e){let t=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>Hs(s)).filter(s=>s!==null).map(s=>vt(()=>{let a=s.guards.map(c=>{let u=ze(s.node)??e,f=He(c,u),R=Ys(f)?f.canActivateChild(t,n):j(u,()=>f(t,n));return X(R).pipe(te())});return h(a).pipe(Fe())}));return h(o).pipe(Fe())}function oa(n,r,e,t,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let c=ze(r)??i,u=He(a,c),f=Zs(u)?u.canDeactivate(n,r,e,t):j(c,()=>u(n,r,e,t));return X(f).pipe(te())});return h(s).pipe(Fe())}function sa(n,r,e,t){let i=r.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=He(s,n),c=Ws(a)?a.canLoad(r,e):j(n,()=>a(r,e));return X(c)});return h(o).pipe(Fe(),ao(t))}function ao(n){return gr(w(r=>{if(typeof r!="boolean")throw Xt(n,r)}),m(r=>r===!0))}function aa(n,r,e,t){let i=r.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=He(s,n),c=Qs(a)?a.canMatch(r,e):j(n,()=>a(r,e));return X(c)});return h(o).pipe(Fe(),ao(t))}var at=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},ct=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function De(n){return ue(new at(n))}function ca(n){return ue(new y(4e3,!1))}function ua(n){return ue(io(!1,T.GuardRejected))}var Jn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let t=[],i=e.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return h(t);if(i.numberOfChildren>1||!i.children[p])return ca(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,t,i,o){return la(e,i,o).pipe(m(s=>{if(s instanceof H)throw new ct(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,t);if(s[0]==="/")throw new ct(a);return a}))}applyRedirectCreateUrlTree(r,e,t,i){let o=this.createSegmentGroup(r,e.root,t,i);return new H(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let t={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[i]=e[a]}else t[i]=o}),t}createSegmentGroup(r,e,t,i){let o=this.createSegments(r,e.segments,t,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,t,i)}),new S(o,s)}createSegments(r,e,t,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,t))}findPosParam(r,e,t){let i=t[e.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(r,e){let t=0;for(let i of e){if(i.path===r.path)return e.splice(t),i;t++}return r}};function la(n,r,e){if(typeof n=="string")return h(n);let t=n,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:f,title:R}=r;return X(j(e,()=>t({params:u,data:f,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:R})))}var er={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function da(n,r,e,t,i){let o=co(n,r,e);return o.matched?(t=Ps(r,t),aa(t,r,e,i).pipe(m(s=>s===!0?o:d({},er)))):h(o)}function co(n,r,e){if(r.path==="**")return ha(e);if(r.path==="")return r.pathMatch==="full"&&(n.hasChildren()||e.length>0)?d({},er):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||ji)(e,n,r);if(!i)return d({},er);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?d(d({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function ha(n){return{matched:!0,parameters:n.length>0?$i(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Ui(n,r,e,t){return e.length>0&&ga(n,e,t)?{segmentGroup:new S(r,pa(t,new S(e,n.children))),slicedSegments:[]}:e.length===0&&ma(n,e,t)?{segmentGroup:new S(n.segments,fa(n,e,t,n.children)),slicedSegments:e}:{segmentGroup:new S(n.segments,n.children),slicedSegments:e}}function fa(n,r,e,t){let i={};for(let o of e)if(tn(n,r,o)&&!t[$(o)]){let s=new S([],{});i[$(o)]=s}return d(d({},t),i)}function pa(n,r){let e={};e[p]=r;for(let t of n)if(t.path===""&&$(t)!==p){let i=new S([],{});e[$(t)]=i}return e}function ga(n,r,e){return e.some(t=>tn(n,r,t)&&$(t)!==p)}function ma(n,r,e){return e.some(t=>tn(n,r,t))}function tn(n,r,e){return(n.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function va(n,r,e){return r.length===0&&!n.children[e]}var tr=class{};function Sa(n,r,e,t,i,o,s="emptyOnly"){return new nr(n,r,e,t,i,s,o).recognize()}var ya=31,nr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,t,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Jn(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=Ui(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:t})=>{let i=new U(t,e),o=new ot("",i),s=Yi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new ge([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(t=>({children:t,rootSnapshot:e})),Z(t=>{if(t instanceof ct)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof at?this.noMatchError(t):t}))}processSegmentGroup(r,e,t,i,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(r,e,t,o):this.processSegment(r,e,t,t.segments,i,!0,o).pipe(m(s=>s instanceof U?[s]:[]))}processChildren(r,e,t,i){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return M(o).pipe(le(s=>{let a=t.children[s],c=Us(e,s);return this.processSegmentGroup(r,c,a,s,i)}),wr((s,a)=>(s.push(...a),s)),pn(null),Cr(),A(s=>{if(s===null)return De(t);let a=uo(s);return Ra(a),h(a)}))}processSegment(r,e,t,i,o,s,a){return M(e).pipe(le(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,t,i,o,s,a).pipe(Z(u=>{if(u instanceof at)return h(null);throw u}))),te(c=>!!c),Z(c=>{if(so(c))return va(t,i,o)?h(new tr):De(t);throw c}))}processSegmentAgainstRoute(r,e,t,i,o,s,a,c){return $(t)!==s&&(s===p||!tn(i,o,t))?De(i):t.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,t,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,t,o,s,c):De(i)}expandSegmentAgainstRouteUsingRedirect(r,e,t,i,o,s,a){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:R,remainingSegments:I}=co(e,i,o);if(!c)return De(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ya&&(this.allowRedirects=!1));let b=new ge(o,u,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Li(i),$(i),i.component??i._loadedComponent??null,i,xi(i)),O=Kt(b,a,this.paramsInheritanceStrategy);return b.params=Object.freeze(O.params),b.data=Object.freeze(O.data),this.applyRedirects.applyRedirectCommands(f,i.redirectTo,R,b,r).pipe(D(ce=>this.applyRedirects.lineralizeSegments(i,ce)),A(ce=>this.processSegment(r,t,e,ce.concat(I),s,!1,a)))}matchSegmentAgainstRoute(r,e,t,i,o,s){let a=da(e,t,i,r,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe(D(c=>c.matched?(r=t._injector??r,this.getChildConfig(r,t,i).pipe(D(({routes:u})=>{let f=t._loadedInjector??r,{parameters:R,consumedSegments:I,remainingSegments:b}=c,O=new ge(I,R,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Li(t),$(t),t.component??t._loadedComponent??null,t,xi(t)),un=Kt(O,s,this.paramsInheritanceStrategy);O.params=Object.freeze(un.params),O.data=Object.freeze(un.data);let{segmentGroup:ce,slicedSegments:ln}=Ui(e,I,b,u);if(ln.length===0&&ce.hasChildren())return this.processChildren(f,u,ce,O).pipe(m(pt=>new U(O,pt)));if(u.length===0&&ln.length===0)return h(new U(O,[]));let ko=$(t)===o;return this.processSegment(f,u,ce,ln,ko?p:o,!0,O).pipe(m(pt=>new U(O,pt instanceof U?[pt]:[])))}))):De(e)))}getChildConfig(r,e,t){return e.children?h({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):sa(r,e,t,this.urlSerializer).pipe(A(i=>i?this.configLoader.loadChildren(r,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ua(e))):h({routes:[],injector:r})}};function Ra(n){n.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Ca(n){let r=n.value.routeConfig;return r&&r.path===""}function uo(n){let r=[],e=new Set;for(let t of n){if(!Ca(t)){r.push(t);continue}let i=r.find(o=>t.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...t.children),e.add(i)):r.push(t)}for(let t of e){let i=uo(t.children);r.push(new U(t.value,i))}return r.filter(t=>!e.has(t))}function Li(n){return n.data||{}}function xi(n){return n.resolve||{}}function wa(n,r,e,t,i,o){return A(s=>Sa(n,r,e,t,s.extractedUrl,i,o).pipe(m(({state:a,tree:c})=>N(d({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Ia(n,r){return A(e=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of lo(c))s.add(u);let a=0;return M(s).pipe(le(c=>o.has(c)?Ea(c,t,n,r):(c.data=Kt(c,c.parent,n).resolve,h(void 0))),w(()=>a++),gn(1),A(c=>a===s.size?h(e):G))})}function lo(n){let r=n.children.map(e=>lo(e)).flat();return[n,...r]}function Ea(n,r,e,t){let i=n.routeConfig,o=n._resolve;return i?.title!==void 0&&!to(i)&&(o[ut]=i.title),vt(()=>(n.data=Kt(n,n.parent,e).resolve,_a(o,n,r,t).pipe(m(s=>(n._resolvedData=s,n.data=d(d({},n.data),s),null)))))}function _a(n,r,e,t){let i=Vn(n);if(i.length===0)return h({});let o={};return M(i).pipe(A(s=>ba(n[s],r,e,t).pipe(te(),w(a=>{if(a instanceof $e)throw Xt(new ie,a);o[s]=a}))),gn(1),m(()=>o),Z(s=>so(s)?G:ue(s)))}function ba(n,r,e,t){let i=ze(r)??t,o=He(n,i),s=o.resolve?o.resolve(r,e):j(i,()=>o(r,e));return X(s)}function Hn(n){return D(r=>{let e=n(r);return e?M(e).pipe(m(()=>r)):h(r)})}var cr=(()=>{class n{buildTitle(e){let t,i=e.root;for(;i!==void 0;)t=this.getResolvedTitleForRoute(i)??t,i=i.children.find(o=>o.outlet===p);return t}getResolvedTitleForRoute(e){return e.data[ut]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(ho),providedIn:"root"})}return n})(),ho=(()=>{class n extends cr{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||n)(g(Mi))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ae=new C("",{providedIn:"root",factory:()=>({})}),ye=new C(""),nn=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(ri);loadComponent(e,t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return h(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let i=X(j(e,()=>t.loadComponent())).pipe(m(po),D(go),w(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Re(()=>{this.componentLoaders.delete(t)})),o=new hn(i,()=>new W).pipe(dn());return this.componentLoaders.set(t,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return h({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=fo(t,this.compiler,e,this.onLoadEndListener).pipe(Re(()=>{this.childrenLoaders.delete(t)})),s=new hn(o,()=>new W).pipe(dn());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function fo(n,r,e,t){return X(j(e,()=>n.loadChildren())).pipe(m(po),D(go),A(i=>i instanceof Wr||Array.isArray(i)?h(i):M(r.compileModuleAsync(i))),m(i=>{t&&t(n);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(ye,[],{optional:!0,self:!0}).flat()),{routes:s.map(ar),injector:o}}))}function Ta(n){return n&&typeof n=="object"&&"default"in n}function po(n){return Ta(n)?n.default:n}function go(n){return h(n)}var rn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(Ma),providedIn:"root"})}return n})(),Ma=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ur=new C(""),lr=new C("");function mo(n,r,e){let t=n.get(lr),i=n.get(_);if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),Aa(n)));a.ready.catch(u=>{});let{onViewTransitionCreated:c}=t;return c&&j(n,()=>c({transition:a,from:r,to:e})),s}function Aa(n){return new Promise(r=>{Yr({read:()=>setTimeout(r)},{injector:n})})}var dr=new C(""),on=(()=>{class n{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortWithErrorSubject=new W;configLoader=l(nn);environmentInjector=l(he);destroyRef=l(Tr);urlSerializer=l(ve);rootContexts=l(Se);location=l(Me);inputBindingEnabled=l(lt,{optional:!0})!==null;titleStrategy=l(cr);options=l(ae,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(rn);createViewTransition=l(ur,{optional:!0});navigationErrorHandler=l(dr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Bt(i)),t=i=>this.events.next(new Vt(i));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(N(d({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(Y(t=>t!==null),D(t=>{let i=!1;return h(t).pipe(D(o=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),G;this.currentTransition=t,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?N(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),"",Le.IgnoredSameUrlNavigation)),o.resolve(!1),G;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(D(c=>(this.events.next(new se(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?G:Promise.resolve(c))),wa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(c=>{t.targetSnapshot=c.targetSnapshot,t.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=N(d({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let u=new nt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:u,source:f,restoredState:R,extras:I}=o,b=new se(c,this.urlSerializer.serialize(u),f,R);this.events.next(b);let O=Ji(this.rootComponentType).snapshot;return this.currentTransition=t=N(d({},o),{targetSnapshot:O,urlAfterRedirects:u,extras:N(d({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=u,h(t)}else return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Le.IgnoredByUrlHandlingStrategy)),o.resolve(!1),G}),w(o=>{let s=new $t(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),m(o=>(this.currentTransition=t=N(d({},o),{guards:zs(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),t)),Xs(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(t.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Xt(this.urlSerializer,o.guardsResult);let s=new Ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),Y(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",T.GuardRejected),!1)),Hn(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(w(s=>{let a=new zt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),D(s=>{let a=!1;return h(s).pipe(Ia(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),w(s=>{let a=new Ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Hn(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent){let u=ze(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(u,a.routeConfig).pipe(w(f=>{a.component=f}),m(()=>{})))}for(let u of a.children)c.push(...s(u));return c};return mt(s(o.targetSnapshot.root)).pipe(pn(null),ee(1))}),Hn(()=>this.afterPreactivation()),D(()=>{let{currentSnapshot:o,targetSnapshot:s}=t,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?M(a).pipe(m(()=>t)):h(t)}),m(o=>{let s=xs(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=t=N(d({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,t}),w(()=>{this.events.next(new rt)}),Fs(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ee(1),mn(new mr(o=>{let s=t.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(Y(()=>!i&&!t.targetRouterState),w(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+"",T.Aborted)}))),w({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),mn(this.transitionAbortWithErrorSubject.pipe(w(o=>{throw o}))),Re(()=>{i||this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),Z(o=>{if(this.destroyed)return t.resolve(!1),G;if(i=!0,oo(o))this.events.next(new z(t.id,this.urlSerializer.serialize(t.extractedUrl),o.message,o.cancellationCode)),$s(o)?this.events.next(new ke(o.url,o.navigationBehaviorOptions)):t.resolve(!1);else{let s=new xe(t.id,this.urlSerializer.serialize(t.extractedUrl),o,t.targetSnapshot??void 0);try{let a=j(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof $e){let{message:c,cancellationCode:u}=Xt(this.urlSerializer,a);this.events.next(new z(t.id,this.urlSerializer.serialize(t.extractedUrl),c,u)),this.events.next(new ke(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(a)}}return G}))}))}cancelNavigationTransition(e,t,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),t,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Da(n){return n!==Pe}var vo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(Oa),providedIn:"root"})}return n})(),en=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Oa=(()=>{class n extends en{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Sn(n)))(i||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),So=(()=>{class n{urlSerializer=l(ve);options=l(ae,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(Me);urlHandlingStrategy=l(rn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new H;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,s=i??o;return s instanceof H?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:i}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,i),this.routerState=e):this.rawUrlTree=i}routerState=Ji(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(Na),providedIn:"root"})}return n})(),Na=(()=>{class n extends So{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof se?this.updateStateMemento():e instanceof B?this.commitTransition(t):e instanceof nt?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof rt?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof z&&e.code!==T.SupersededByNewNavigation&&e.code!==T.Redirect?this.restoreHistory(t):e instanceof xe?this.restoreHistory(t,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:i}){let{replaceUrl:o,state:s}=t;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Sn(n)))(i||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function sn(n,r){n.events.pipe(Y(e=>e instanceof k||e instanceof z||e instanceof xe||e instanceof B),m(e=>e instanceof k||e instanceof B?0:(e instanceof z?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Y(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Pa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ua={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},q=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(wn);stateManager=l(So);options=l(ae,{optional:!0})||{};pendingTasks=l(Ar);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(on);urlSerializer=l(ve);location=l(Me);urlHandlingStrategy=l(rn);injector=l(he);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(vo);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(ye,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(lt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new gt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof z&&t.code!==T.Redirect&&t.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof k)this.navigated=!0;else if(t instanceof ke){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,i.currentRawUrl),c=d({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Da(i.source)},s);this.scheduleNavigation(a,Pe,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ns(t)&&this._events.next(t)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,i)=>{this.navigateToSyncWithBrowser(e,i,t)})}navigateToSyncWithBrowser(e,t,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=d({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,o).catch(c=>{this.disposed||this.injector.get(St)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ar),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,u=c?this.currentUrlTree.fragment:s,f=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":f=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}f!==null&&(f=this.removeEmptyProps(f));let R;try{let I=i?i.snapshot:this.routerState.snapshot.root;R=Zi(I)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),R=this.currentUrlTree.root}return Qi(R,e,f,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){let i=oe(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Pe,null,t)}navigate(e,t={skipLocationChange:!1}){return La(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let i;if(t===!0?i=d({},Pa):t===!1?i=d({},Ua):i=t,oe(e))return Di(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Di(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((t,[i,o])=>(o!=null&&(t[i]=o),t),{})}scheduleNavigation(e,t,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((R,I)=>{a=R,c=I});let f=this.pendingTasks.add();return sn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(R=>Promise.reject(R))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function La(n){for(let r=0;r<n.length;r++)if(n[r]==null)throw new y(4008,!1)}var yo=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Mr(null);get href(){return ii(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;applicationErrorHandler=l(St);options=l(ae,{optional:!0});constructor(e,t,i,o,s,a){this.router=e,this.route=t,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Tt("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,t=i=>i==="merge"||i==="preserve";e||=t(this.queryParamsHandling),e||=!this.queryParamsHandling&&!t(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof k&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(oe(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,t){let i=this.renderer,o=this.el.nativeElement;t!==null?i.setAttribute(o,e,t):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:oe(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||n)(Ie(q),Ie(V),Dr("tabindex"),Ie(Hr),Ie(Rt),Ie(Te))};static \u0275dir=It({type:n,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(t,i){t&1&&Xr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&bt("href",i.reactiveHref(),Fr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_e],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_e],replaceUrl:[2,"replaceUrl","replaceUrl",_e],routerLink:"routerLink"},features:[yt]})}return n})();var ht=class{};var Ro=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,i,o){this.router=e,this.injector=t,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Y(e=>e instanceof k),le(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let i=[];for(let o of t){o.providers&&!o._injector&&(o._injector=Ct(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return M(i).pipe(fn())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let i;t.loadChildren&&t.canLoad===void 0?i=this.loader.loadChildren(e,t):i=h(null);let o=i.pipe(A(s=>s===null?h(void 0):(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(t.loadComponent&&!t._loadedComponent){let s=this.loader.loadComponent(e,t);return M([o,s]).pipe(fn())}else return o})}static \u0275fac=function(t){return new(t||n)(g(q),g(he),g(ht),g(nn))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Co=new C(""),xa=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pe;restoredId=0;store={};constructor(e,t,i,o,s={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof se?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Le.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof je&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>pr(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new je(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){Br()};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();function ja(n,...r){return vn([{provide:ye,multi:!0,useValue:n},[],{provide:V,useFactory:wo,deps:[q]},{provide:_n,multi:!0,useFactory:Io},r.map(e=>e.\u0275providers)])}function wo(n){return n.routerState.root}function Be(n,r){return{\u0275kind:n,\u0275providers:r}}function Io(){let n=l(Ve);return r=>{let e=n.get(bn);if(r!==e.components[0])return;let t=n.get(q),i=n.get(Eo);n.get(fr)===1&&t.initialNavigation(),n.get(To,null,{optional:!0})?.setUpPreloading(),n.get(Co,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Eo=new C("",{factory:()=>new W}),fr=new C("",{providedIn:"root",factory:()=>1});function _o(){let n=[{provide:fr,useValue:0},En(()=>{let r=l(Ve);return r.get(di,Promise.resolve()).then(()=>new Promise(t=>{let i=r.get(q),o=r.get(Eo);sn(i,()=>{t(!0)}),r.get(on).afterPreactivation=()=>(t(!0),o.closed?h(void 0):o),i.initialNavigation()}))})];return Be(2,n)}function bo(){let n=[En(()=>{l(q).setUpLocationChangeListener()}),{provide:fr,useValue:2}];return Be(3,n)}var To=new C("");function Mo(n){return Be(0,[{provide:To,useExisting:Ro},{provide:ht,useExisting:n}])}function ka(){return Be(6,[{provide:Te,useClass:Mn}])}function Ao(){return Be(8,[or,{provide:lt,useExisting:or}])}function Do(n){qr("NgRouterViewTransitions");let r=[{provide:ur,useValue:mo},{provide:lr,useValue:d({skipNextTransition:!!n?.skipInitialTransition},n)}];return Be(9,r)}var Oo=[Me,{provide:ve,useClass:ie},q,Se,{provide:V,useFactory:wo,deps:[q]},nn,[]],$a=(()=>{class n{constructor(){}static forRoot(e,t){return{ngModule:n,providers:[Oo,[],{provide:ye,multi:!0,useValue:e},[],t?.errorHandler?{provide:dr,useValue:t.errorHandler}:[],{provide:ae,useValue:t||{}},t?.useHash?za():Ha(),Fa(),t?.preloadingStrategy?Mo(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?Ba(t):[],t?.bindToComponentInputs?Ao().\u0275providers:[],t?.enableViewTransitions?Do().\u0275providers:[],Va()]}}static forChild(e){return{ngModule:n,providers:[{provide:ye,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=fe({type:n});static \u0275inj=de({})}return n})();function Fa(){return{provide:Co,useFactory:()=>{let n=l(vi),r=l(K),e=l(ae),t=l(on),i=l(ve);return e.scrollOffset&&n.setOffset(e.scrollOffset),new xa(i,t,n,r,e)}}}function za(){return{provide:Te,useClass:Mn}}function Ha(){return{provide:Te,useClass:hi}}function Ba(n){return[n.initialNavigation==="disabled"?bo().\u0275providers:[],n.initialNavigation==="enabledBlocking"?_o().\u0275providers:[]]}var hr=new C("");function Va(){return[{provide:hr,useFactory:Io},{provide:_n,multi:!0,useExisting:hr}]}var an;function qa(){if(an===void 0&&(an=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(an=n.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return an}function ft(n){return qa()?.createHTML(n)||n}function No(n){return Error(`Unable to find icon with the name "${n}"`)}function Wa(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Po(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Uo(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var J=class{url;svgText;options;svgElement;constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}},xo=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,o){this._httpClient=e,this._sanitizer=t,this._errorHandler=o,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,o){return this._addSvgIconConfig(e,t,new J(i,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,o){let s=this._sanitizer.sanitize(P.HTML,i);if(!s)throw Uo(i);let a=ft(s);return this._addSvgIconConfig(e,t,new J("",a,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new J(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let o=this._sanitizer.sanitize(P.HTML,t);if(!o)throw Uo(t);let s=ft(o);return this._addSvgIconSetConfig(e,new J("",s,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(P.RESOURCE_URL,e);if(!t)throw Po(e);let i=this._cachedIconsByUrl.get(t);return i?h(cn(i)):this._loadSvgIconFromConfig(new J(e,null)).pipe(w(o=>this._cachedIconsByUrl.set(t,o)),m(o=>cn(o)))}getNamedSvgIcon(e,t=""){let i=Lo(t,e),o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):ue(No(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?h(cn(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(m(t=>cn(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return h(i);let o=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Z(a=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(P.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(u)),h(null)})));return Rr(o).pipe(m(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw No(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(w(t=>e.svgText=t),m(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?h(null):this._fetchIcon(e).pipe(w(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let a=this._svgElementFromString(ft("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(ft("<svg></svg>")),i=e.attributes;for(let o=0;o<i.length;o++){let{name:s,value:a}=i[o];s!=="id"&&t.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[o].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){let{url:t,options:i}=e,o=i?.withCredentials??!1;if(!this._httpClient)throw Wa();if(t==null)throw Error(`Cannot fetch icon from URL "${t}".`);let s=this._sanitizer.sanitize(P.RESOURCE_URL,t);if(!s)throw Po(t);let a=this._inProgressUrlFetches.get(s);if(a)return a;let c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(m(u=>ft(u)),Re(()=>this._inProgressUrlFetches.delete(s)),Ir());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(Lo(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){let o=this._resolvers[i](t,e);if(o)return Ga(o)?new J(o.url,null,o.options):new J(o,null)}}static \u0275fac=function(t){return new(t||n)(g(Si,8),g(kn),g(_,8),g(ne))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function cn(n){return n.cloneNode(!0)}function Lo(n,r){return n+":"+r}function Ga(n){return!!(n.url&&n.options)}var Ya=["*"],Za=new C("MAT_ICON_DEFAULT_OPTIONS"),Qa=new C("mat-icon-location",{providedIn:"root",factory:Ka});function Ka(){let n=l(_),r=n?n.location:null;return{getPathname:()=>r?r.pathname+r.search:""}}var jo=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xa=jo.map(n=>`[${n}]`).join(", "),Ja=/^url\(['"]?#(.*?)['"]?\)$/,Zu=(()=>{class n{_elementRef=l(Rt);_iconRegistry=l(xo);_location=l(Qa);_errorHandler=l(ne);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=gt.EMPTY;constructor(){let e=l(new Tt("aria-hidden"),{optional:!0}),t=l(Za,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(Xa),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<t.length;o++)jo.forEach(s=>{let a=t[o],c=a.getAttribute(s),u=c?c.match(Ja):null;if(u){let f=i.get(a);f||(f=[],i.set(a,f)),f.push({name:s,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(ee(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${t}:${i}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=wt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(bt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ni(i.color?"mat-"+i.color:""),ti("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",_e],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Ya,decls:1,vars:0,template:function(t,i){t&1&&(Jr(),ei(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return n})(),Qu=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=fe({type:n});static \u0275inj=de({imports:[An,An]})}return n})();export{jn as a,Ko as b,is as c,kn as d,V as e,ir as f,q as g,yo as h,ja as i,ka as j,$a as k,xo as l,Zu as m,Qu as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as c,m as p,n as u}from"./chunk-TXPLRBW5.js";import{Ac as s,De as h,Ie as f,Zb as a,_b as n,ad as g,ic as d,lb as r,ta as l,wb as m,zc as i}from"./chunk-35L7BBBD.js";var w=(()=>{class e{pageTitle=g();_router=l(c);closePage(){this._router.navigate(["/dashboard"])}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["page-header"]],inputs:{pageTitle:[1,"pageTitle"]},decls:6,vars:1,consts:[[1,"fullpage-header"],[1,"fullpage-header-title"],["mat-icon-button","",1,"dialog-close-icon",3,"click"]],template:function(t,o){t&1&&(a(0,"div",0)(1,"h6",1),i(2),n(),a(3,"button",2),d("click",function(){return o.closePage()}),a(4,"mat-icon"),i(5,"close"),n()()()),t&2&&(r(2),s(o.pageTitle()))},dependencies:[f,h,u,p],styles:[".fullpage-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.fullpage-header-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 24px 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.dialog-content-padding[_ngcontent-%COMP%]{--mat-dialog-content-padding: 0px 24px 20px 24px}"]})}return e})();export{w as a};
|