From be082cd2fa72eac8964dfb25e4f484b76e56fc39 Mon Sep 17 00:00:00 2001 From: thomasduft Date: Wed, 24 Aug 2022 12:13:36 +0000 Subject: [PATCH] published improved client sample --- samples/Server/Pages/Account/Login.cshtml | 8 ----- samples/Server/Pages/Account/Login.cshtml.cs | 6 ++-- samples/Server/wwwroot/3rdpartylicenses.txt | 31 ++++++++++++++++++- samples/Server/wwwroot/index.html | 4 +-- .../Server/wwwroot/main.03c5612c54e36602.js | 1 + .../Server/wwwroot/main.ccf6086a2a38ccb4.js | 1 - .../wwwroot/polyfills.4368bceaff05ae75.js | 1 + .../wwwroot/polyfills.767545bebe1de56c.js | 1 - .../wwwroot/runtime.5eac2139ea957429.js | 1 - .../wwwroot/runtime.b19f259a8d512131.js | 1 + .../wwwroot/styles.d5f920a8ba8d52e2.css | 4 --- .../wwwroot/styles.dcf05ab5a0fdd8cf.css | 4 +++ 12 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 samples/Server/wwwroot/main.03c5612c54e36602.js delete mode 100644 samples/Server/wwwroot/main.ccf6086a2a38ccb4.js create mode 100644 samples/Server/wwwroot/polyfills.4368bceaff05ae75.js delete mode 100644 samples/Server/wwwroot/polyfills.767545bebe1de56c.js delete mode 100644 samples/Server/wwwroot/runtime.5eac2139ea957429.js create mode 100644 samples/Server/wwwroot/runtime.b19f259a8d512131.js delete mode 100644 samples/Server/wwwroot/styles.d5f920a8ba8d52e2.css create mode 100644 samples/Server/wwwroot/styles.dcf05ab5a0fdd8cf.css diff --git a/samples/Server/Pages/Account/Login.cshtml b/samples/Server/Pages/Account/Login.cshtml index a4efd3b..b091078 100644 --- a/samples/Server/Pages/Account/Login.cshtml +++ b/samples/Server/Pages/Account/Login.cshtml @@ -20,14 +20,6 @@ -
-
- -
-
diff --git a/samples/Server/Pages/Account/Login.cshtml.cs b/samples/Server/Pages/Account/Login.cshtml.cs index a38d46e..657e05a 100644 --- a/samples/Server/Pages/Account/Login.cshtml.cs +++ b/samples/Server/Pages/Account/Login.cshtml.cs @@ -41,8 +41,6 @@ public class InputModel [Required(ErrorMessage = "Password required")] [DataType(DataType.Password)] public string Password { get; set; } - - public bool RememberMe { get; set; } } public async Task OnGetAsync(string returnUrl = null) @@ -71,7 +69,7 @@ public async Task OnPostAsync(string returnUrl = null) var result = await _signInManager.PasswordSignInAsync( Input.Username, Input.Password, - Input.RememberMe, + true, lockoutOnFailure: true ); if (result.Succeeded) @@ -85,7 +83,7 @@ public async Task OnPostAsync(string returnUrl = null) return RedirectToPage("./LoginWith2fa", new { ReturnUrl = returnUrl, - Input.RememberMe + RememberMe = true }); } if (result.IsLockedOut) diff --git a/samples/Server/wwwroot/3rdpartylicenses.txt b/samples/Server/wwwroot/3rdpartylicenses.txt index e3bccf4..88cb592 100644 --- a/samples/Server/wwwroot/3rdpartylicenses.txt +++ b/samples/Server/wwwroot/3rdpartylicenses.txt @@ -26,6 +26,9 @@ THE SOFTWARE. @angular/common MIT +@angular/compiler +MIT + @angular/core MIT @@ -41,6 +44,32 @@ MIT @angular/router MIT +@babel/runtime +MIT +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + angular-oauth2-oidc MIT Copyright (c) 2017 Manfred Steyer @@ -308,7 +337,7 @@ zone.js MIT The MIT License -Copyright (c) 2010-2020 Google LLC. https://angular.io/license +Copyright (c) 2010-2022 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/samples/Server/wwwroot/index.html b/samples/Server/wwwroot/index.html index 3fd9eb8..9b90fad 100644 --- a/samples/Server/wwwroot/index.html +++ b/samples/Server/wwwroot/index.html @@ -4,9 +4,9 @@ - + - + \ No newline at end of file diff --git a/samples/Server/wwwroot/main.03c5612c54e36602.js b/samples/Server/wwwroot/main.03c5612c54e36602.js new file mode 100644 index 0000000..1933e51 --- /dev/null +++ b/samples/Server/wwwroot/main.03c5612c54e36602.js @@ -0,0 +1 @@ +(self.webpackChunkclientapp=self.webpackChunkclientapp||[]).push([[179],{7176:(O,x,f)=>{"use strict";var g=f(6895),s=f(1571);class S extends g.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends S{static makeCurrent(){(0,g.HT)(new T)}onAndCancel(r,n,l){return r.addEventListener(n,l,!1),()=>{r.removeEventListener(n,l,!1)}}dispatchEvent(r,n){r.dispatchEvent(n)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,n){return(n=n||this.getDefaultDocument()).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,n){return"window"===n?window:"document"===n?r:"body"===n?r.body:null}getBaseHref(r){const n=function P(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==n?null:function G(o){L=L||document.createElement("a"),L.setAttribute("href",o);const r=L.pathname;return"/"===r.charAt(0)?r:`/${r}`}(n)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,g.Mx)(document.cookie,r)}}let L,w=null;const F=new s.OlP("TRANSITION_ID"),k=[{provide:s.ip1,useFactory:function H(o,r,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const l=(0,g.q)(),d=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let _=0;_{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const j=new s.OlP("EventManagerPlugins");let X=(()=>{class o{constructor(n,l){this._zone=l,this._eventNameToPlugin=new Map,n.forEach(d=>d.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,l,d){return this._findPluginFor(l).addEventListener(n,l,d)}addGlobalEventListener(n,l,d){return this._findPluginFor(l).addGlobalEventListener(n,l,d)}getZone(){return this._zone}_findPluginFor(n){const l=this._eventNameToPlugin.get(n);if(l)return l;const d=this._plugins;for(let _=0;_{class o{constructor(){this._stylesSet=new Set}addStyles(n){const l=new Set;n.forEach(d=>{this._stylesSet.has(d)||(this._stylesSet.add(d),l.add(d))}),this.onStylesAdded(l)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})(),Ee=(()=>{class o extends ve{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,l,d){n.forEach(_=>{const D=this._doc.createElement("style");D.textContent=_,d.push(l.appendChild(D))})}addHost(n){const l=[];this._addStylesToHost(this._stylesSet,n,l),this._hostNodes.set(n,l)}removeHost(n){const l=this._hostNodes.get(n);l&&l.forEach(le),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((l,d)=>{this._addStylesToHost(n,d,l)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(le))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();function le(o){(0,g.q)().remove(o)}const Ie={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Q=/%COMP%/g;function W(o,r,n){for(let l=0;l{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let J=(()=>{class o{constructor(n,l,d){this.eventManager=n,this.sharedStylesHost=l,this.appId=d,this.rendererByCompId=new Map,this.defaultRenderer=new Se(n)}createRenderer(n,l){if(!n||!l)return this.defaultRenderer;switch(l.encapsulation){case s.ifc.Emulated:{let d=this.rendererByCompId.get(l.id);return d||(d=new dn(this.eventManager,this.sharedStylesHost,l,this.appId),this.rendererByCompId.set(l.id,d)),d.applyToHost(n),d}case 1:case s.ifc.ShadowDom:return new Je(this.eventManager,this.sharedStylesHost,n,l);default:if(!this.rendererByCompId.has(l.id)){const d=W(l.id,l.styles,[]);this.sharedStylesHost.addStyles(d),this.rendererByCompId.set(l.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(X),s.LFG(Ee),s.LFG(s.AFp))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();class Se{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,n){return n?document.createElementNS(Ie[n]||n,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,n){(ot(r)?r.content:r).appendChild(n)}insertBefore(r,n,l){r&&(ot(r)?r.content:r).insertBefore(n,l)}removeChild(r,n){r&&r.removeChild(n)}selectRootElement(r,n){let l="string"==typeof r?document.querySelector(r):r;if(!l)throw new Error(`The selector "${r}" did not match any elements`);return n||(l.textContent=""),l}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,n,l,d){if(d){n=d+":"+n;const _=Ie[d];_?r.setAttributeNS(_,n,l):r.setAttribute(n,l)}else r.setAttribute(n,l)}removeAttribute(r,n,l){if(l){const d=Ie[l];d?r.removeAttributeNS(d,n):r.removeAttribute(`${l}:${n}`)}else r.removeAttribute(n)}addClass(r,n){r.classList.add(n)}removeClass(r,n){r.classList.remove(n)}setStyle(r,n,l,d){d&(s.JOm.DashCase|s.JOm.Important)?r.style.setProperty(n,l,d&s.JOm.Important?"important":""):r.style[n]=l}removeStyle(r,n,l){l&s.JOm.DashCase?r.style.removeProperty(n):r.style[n]=""}setProperty(r,n,l){r[n]=l}setValue(r,n){r.nodeValue=n}listen(r,n,l){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,n,Y(l)):this.eventManager.addEventListener(r,n,Y(l))}}function ot(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class dn extends Se{constructor(r,n,l,d){super(r),this.component=l;const _=W(d+"-"+l.id,l.styles,[]);n.addStyles(_),this.contentAttr=function pe(o){return"_ngcontent-%COMP%".replace(Q,o)}(d+"-"+l.id),this.hostAttr=function fe(o){return"_nghost-%COMP%".replace(Q,o)}(d+"-"+l.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,n){const l=super.createElement(r,n);return super.setAttribute(l,this.contentAttr,""),l}}class Je extends Se{constructor(r,n,l,d){super(r),this.sharedStylesHost=n,this.hostEl=l,this.shadowRoot=l.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _=W(d.id,d.styles,[]);for(let D=0;D<_.length;D++){const M=document.createElement("style");M.textContent=_[D],this.shadowRoot.appendChild(M)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(r,n){return super.appendChild(this.nodeOrShadowRoot(r),n)}insertBefore(r,n,l){return super.insertBefore(this.nodeOrShadowRoot(r),n,l)}removeChild(r,n){return super.removeChild(this.nodeOrShadowRoot(r),n)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}}let Zt=(()=>{class o extends ${constructor(n){super(n)}supports(n){return!0}addEventListener(n,l,d){return n.addEventListener(l,d,!1),()=>this.removeEventListener(n,l,d)}removeEventListener(n,l,d){return n.removeEventListener(l,d)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const nr=["alt","control","meta","shift"],je={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Un={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},tn={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let os=(()=>{class o extends ${constructor(n){super(n)}supports(n){return null!=o.parseEventName(n)}addEventListener(n,l,d){const _=o.parseEventName(l),D=o.eventCallback(_.fullKey,d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.q)().onAndCancel(n,_.domEventName,D))}static parseEventName(n){const l=n.toLowerCase().split("."),d=l.shift();if(0===l.length||"keydown"!==d&&"keyup"!==d)return null;const _=o._normalizeKey(l.pop());let D="";if(nr.forEach(N=>{const q=l.indexOf(N);q>-1&&(l.splice(q,1),D+=N+".")}),D+=_,0!=l.length||0===_.length)return null;const M={};return M.domEventName=d,M.fullKey=D,M}static getEventFullKey(n){let l="",d=function jt(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&Un.hasOwnProperty(r)&&(r=Un[r]))}return je[r]||r}(n);return d=d.toLowerCase()," "===d?d="space":"."===d&&(d="dot"),nr.forEach(_=>{_!=d&&(0,tn[_])(n)&&(l+=_+".")}),l+=d,l}static eventCallback(n,l,d){return _=>{o.getEventFullKey(_)===n&&d.runGuarded(()=>l(_))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const wr=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:g.bD},{provide:s.g9A,useValue:function Ur(){T.makeCurrent()},multi:!0},{provide:g.K0,useFactory:function Xi(){return(0,s.RDi)(document),document},deps:[]}]),Pt=new s.OlP(""),$r=[{provide:s.rWj,useClass:class Z{addToWindow(r){s.dqk.getAngularTestability=(l,d=!0)=>{const _=r.findTestabilityInTree(l,d);if(null==_)throw new Error("Could not find testability for element.");return _},s.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(l=>{const d=s.dqk.getAllAngularTestabilities();let _=d.length,D=!1;const M=function(N){D=D||N,_--,0==_&&l(D)};d.forEach(function(N){N.whenStable(M)})})}findTestabilityInTree(r,n,l){return null==n?null:r.getTestability(n)??(l?(0,g.q)().isShadowRoot(n)?this.findTestabilityInTree(r,n.host,!0):this.findTestabilityInTree(r,n.parentElement,!0):null)}},deps:[]},{provide:s.lri,useClass:s.dDg,deps:[s.R0b,s.eoX,s.rWj]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b,s.eoX,s.rWj]}],as=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function jr(){return new s.qLn},deps:[]},{provide:j,useClass:Zt,multi:!0,deps:[g.K0,s.R0b,s.Lbi]},{provide:j,useClass:os,multi:!0,deps:[g.K0]},{provide:J,useClass:J,deps:[X,Ee,s.AFp]},{provide:s.FYo,useExisting:J},{provide:ve,useExisting:Ee},{provide:Ee,useClass:Ee,deps:[g.K0]},{provide:X,useClass:X,deps:[j,s.R0b]},{provide:g.JF,useClass:ee,deps:[]},[]];let Pe=(()=>{class o{constructor(n){}static withServerTransition(n){return{ngModule:o,providers:[{provide:s.AFp,useValue:n.appId},{provide:F,useExisting:s.AFp},k]}}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Pt,12))},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[...as,...$r],imports:[g.ez,s.hGG]}),o})(),V=(()=>{class o{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0))},o.\u0275prov=s.Yz7({token:o,factory:function(n){let l=null;return l=n?new n:function ae(){return new V((0,s.LFG)(g.K0))}(),l},providedIn:"root"}),o})();typeof window<"u"&&window;var gt=f(529),ye=f(2076),_e=f(9646),$e=f(7579);class ht extends $e.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const n=super._subscribe(r);return!n.closed&&r.next(this._value),n}getValue(){const{hasError:r,thrownError:n,_value:l}=this;if(r)throw n;return this._throwIfClosed(),l}next(r){super.next(this._value=r)}}var rr=f(6805),Et=f(9841),$n=f(7272),lt=f(9751),Gn=f(8421);function zn(o){return new lt.y(r=>{(0,Gn.Xf)(o()).subscribe(r)})}var Ze=f(9635),On=f(2843),Cn=f(515),Wn=f(727),Ft=f(4482),ft=f(5403);function br(){return(0,Ft.e)((o,r)=>{let n=null;o._refCount++;const l=(0,ft.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(n=null);const d=o._connection,_=n;n=null,d&&(!_||d===_)&&d.unsubscribe(),r.unsubscribe()});o.subscribe(l),l.closed||(n=o.connect())})}class zr extends lt.y{constructor(r,n){super(),this.source=r,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,(0,Ft.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Wn.w0;const n=this.getSubject();r.add(this.source.subscribe((0,ft.x)(n,void 0,()=>{this._teardown(),n.complete()},l=>{this._teardown(),n.error(l)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Wn.w0.EMPTY)}return r}refCount(){return br()(this)}}var Ge=f(4004),Wt=f(3900),Sr=f(5698),st=f(3269),ir=f(9300),Ot=f(5577),Dn=f(590),En=f(4351),wt=f(8505),ze=f(262);function kt(o,r,n,l,d){return(_,D)=>{let M=n,N=r,q=0;_.subscribe((0,ft.x)(D,me=>{const de=q++;N=M?o(N,me,de):(M=!0,me),l&&D.next(N)},d&&(()=>{M&&D.next(N),D.complete()})))}}function no(o,r){return(0,Ft.e)(kt(o,r,arguments.length>=2,!0))}function Tt(o){return o<=0?()=>Cn.E:(0,Ft.e)((r,n)=>{let l=[];r.subscribe((0,ft.x)(n,d=>{l.push(d),o{for(const d of l)n.next(d);n.complete()},void 0,()=>{l=null}))})}var gn=f(8068),Wr=f(6590),cs=f(4671);function Yr(o,r){const n=arguments.length>=2;return l=>l.pipe(o?(0,ir.h)((d,_)=>o(d,_,l)):cs.y,Tt(1),n?(0,Wr.d)(r):(0,gn.T)(()=>new rr.K))}var Vl=f(9718);function us(o){return(0,Ft.e)((r,n)=>{try{r.subscribe(n)}finally{n.add(o)}})}var ds=f(8189);const Fe="primary";class od{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const n=this.params[r];return Array.isArray(n)?n[0]:n}return null}getAll(r){if(this.has(r)){const n=this.params[r];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Di(o){return new od(o)}function sd(o,r,n){const l=n.path.split("/");if(l.length>o.length||"full"===n.pathMatch&&(r.hasChildren()||l.lengthl[_]===d)}return o===r}function Hl(o){return Array.prototype.concat.apply([],o)}function Ul(o){return o.length>0?o[o.length-1]:null}function Yt(o,r){for(const n in o)o.hasOwnProperty(n)&&r(o[n],n)}function or(o){return(0,s.CqO)(o)?o:(0,s.QGY)(o)?(0,ye.D)(Promise.resolve(o)):(0,_e.of)(o)}const cd={exact:function va(o,r,n){if(!Zn(o.segments,r.segments)||!ar(o.segments,r.segments,n)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const l in r.children)if(!o.children[l]||!va(o.children[l],r.children[l],n))return!1;return!0},subset:sr},ro={exact:function ud(o,r){return Yn(o,r)},subset:function dd(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(n=>Bl(o[n],r[n]))},ignored:()=>!0};function io(o,r,n){return cd[n.paths](o.root,r.root,n.matrixParams)&&ro[n.queryParams](o.queryParams,r.queryParams)&&!("exact"===n.fragment&&o.fragment!==r.fragment)}function sr(o,r,n){return ya(o,r,r.segments,n)}function ya(o,r,n,l){if(o.segments.length>n.length){const d=o.segments.slice(0,n.length);return!(!Zn(d,n)||r.hasChildren()||!ar(d,n,l))}if(o.segments.length===n.length){if(!Zn(o.segments,n)||!ar(o.segments,n,l))return!1;for(const d in r.children)if(!o.children[d]||!sr(o.children[d],r.children[d],l))return!1;return!0}{const d=n.slice(0,o.segments.length),_=n.slice(o.segments.length);return!!(Zn(o.segments,d)&&ar(o.segments,d,l)&&o.children[Fe])&&ya(o.children[Fe],r,_,l)}}function ar(o,r,n){return r.every((l,d)=>ro[n](o[d].parameters,l.parameters))}class xn{constructor(r,n,l){this.root=r,this.queryParams=n,this.fragment=l}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Di(this.queryParams)),this._queryParamMap}toString(){return _n.serialize(this)}}class Qe{constructor(r,n){this.segments=r,this.children=n,this.parent=null,Yt(n,(l,d)=>l.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ei(this)}}class oo{constructor(r,n){this.path=r,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Di(this.parameters)),this._parameterMap}toString(){return lo(this)}}function Zn(o,r){return o.length===r.length&&o.every((n,l)=>n.path===r[l].path)}let so=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:function(){return new hs},providedIn:"root"}),o})();class hs{parse(r){const n=new Te(r);return new xn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(r){const n=`/${ao(r.root,!0)}`,l=function y(o){const r=Object.keys(o).map(n=>{const l=o[n];return Array.isArray(l)?l.map(d=>`${ps(n)}=${ps(d)}`).join("&"):`${ps(n)}=${ps(l)}`}).filter(n=>!!n);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${n}${l}${"string"==typeof r.fragment?`#${function hd(o){return encodeURI(o)}(r.fragment)}`:""}`}}const _n=new hs;function Ei(o){return o.segments.map(r=>lo(r)).join("/")}function ao(o,r){if(!o.hasChildren())return Ei(o);if(r){const n=o.children[Fe]?ao(o.children[Fe],!1):"",l=[];return Yt(o.children,(d,_)=>{_!==Fe&&l.push(`${_}:${ao(d,!1)}`)}),l.length>0?`${n}(${l.join("//")})`:n}{const n=function jl(o,r){let n=[];return Yt(o.children,(l,d)=>{d===Fe&&(n=n.concat(r(l,d)))}),Yt(o.children,(l,d)=>{d!==Fe&&(n=n.concat(r(l,d)))}),n}(o,(l,d)=>d===Fe?[ao(o.children[Fe],!1)]:[`${d}:${ao(l,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[Fe]?`${Ei(o)}/${n[0]}`:`${Ei(o)}/(${n.join("//")})`}}function fs(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ps(o){return fs(o).replace(/%3B/gi,";")}function vt(o){return fs(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wi(o){return decodeURIComponent(o)}function $l(o){return wi(o.replace(/\+/g,"%20"))}function lo(o){return`${vt(o.path)}${function mn(o){return Object.keys(o).map(r=>`;${vt(r)}=${vt(o[r])}`).join("")}(o.parameters)}`}const b=/^[^\/()?;=#]+/;function v(o){const r=o.match(b);return r?r[0]:""}const A=/^[^=?&#]+/,re=/^[^&#]+/;class Te{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qe([],{}):new Qe([],this.parseChildren())}parseQueryParams(){const 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("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(r.length>0||Object.keys(n).length>0)&&(l[Fe]=new Qe(r,n)),l}parseSegment(){const r=v(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new s.vHH(4009,!1);return this.capture(r),new oo(wi(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const n=v(this.remaining);if(!n)return;this.capture(n);let l="";if(this.consumeOptional("=")){const d=v(this.remaining);d&&(l=d,this.capture(l))}r[wi(n)]=wi(l)}parseQueryParam(r){const n=function U(o){const r=o.match(A);return r?r[0]:""}(this.remaining);if(!n)return;this.capture(n);let l="";if(this.consumeOptional("=")){const D=function ce(o){const r=o.match(re);return r?r[0]:""}(this.remaining);D&&(l=D,this.capture(l))}const d=$l(n),_=$l(l);if(r.hasOwnProperty(d)){let D=r[d];Array.isArray(D)||(D=[D],r[d]=D),D.push(_)}else r[d]=_}parseParens(r){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const l=v(this.remaining),d=this.remaining[l.length];if("/"!==d&&")"!==d&&";"!==d)throw new s.vHH(4010,!1);let _;l.indexOf(":")>-1?(_=l.slice(0,l.indexOf(":")),this.capture(_),this.capture(":")):r&&(_=Fe);const D=this.parseChildren();n[_]=1===Object.keys(D).length?D[Fe]:new Qe([],D),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new s.vHH(4011,!1)}}function ct(o){return o.segments.length>0?new Qe([],{[Fe]:o}):o}function it(o){const r={};for(const l of Object.keys(o.children)){const _=it(o.children[l]);(_.segments.length>0||_.hasChildren())&&(r[l]=_)}return function Ae(o){if(1===o.numberOfChildren&&o.children[Fe]){const r=o.children[Fe];return new Qe(o.segments.concat(r.segments),r.children)}return o}(new Qe(o.segments,r))}function Ke(o){return o instanceof xn}function lr(o,r,n,l,d){if(0===n.length)return se(r.root,r.root,r.root,l,d);const _=function Gl(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new co(!0,0,o);let r=0,n=!1;const l=o.reduce((d,_,D)=>{if("object"==typeof _&&null!=_){if(_.outlets){const M={};return Yt(_.outlets,(N,q)=>{M[q]="string"==typeof N?N.split("/"):N}),[...d,{outlets:M}]}if(_.segmentPath)return[...d,_.segmentPath]}return"string"!=typeof _?[...d,_]:0===D?(_.split("/").forEach((M,N)=>{0==N&&"."===M||(0==N&&""===M?n=!0:".."===M?r++:""!=M&&d.push(M))}),d):[...d,_]},[]);return new co(n,r,l)}(n);return _.toRoot()?se(r.root,r.root,new Qe([],{}),l,d):function D(N){const q=function gs(o,r,n,l){if(o.isAbsolute)return new Ct(r.root,!0,0);if(-1===l)return new Ct(n,n===r.root,0);return function Kn(o,r,n){let l=o,d=r,_=n;for(;_>d;){if(_-=d,l=l.parent,!l)throw new s.vHH(4005,!1);d=l.segments.length}return new Ct(l,!1,d-_)}(n,l+(cr(o.commands[0])?0:1),o.numberOfDoubleDots)}(_,r,o.snapshot?._urlSegment,N),me=q.processChildren?Da(q.segmentGroup,q.index,_.commands):_s(q.segmentGroup,q.index,_.commands);return se(r.root,q.segmentGroup,me,l,d)}(o.snapshot?._lastPathIndex)}function cr(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Rn(o){return"object"==typeof o&&null!=o&&o.outlets}function se(o,r,n,l,d){let D,_={};l&&Yt(l,(N,q)=>{_[q]=Array.isArray(N)?N.map(me=>`${me}`):`${N}`}),D=o===r?n:Xe(o,r,n);const M=ct(it(D));return new xn(M,_,d)}function Xe(o,r,n){const l={};return Yt(o.children,(d,_)=>{l[_]=d===r?n:Xe(d,r,n)}),new Qe(o.segments,l)}class co{constructor(r,n,l){if(this.isAbsolute=r,this.numberOfDoubleDots=n,this.commands=l,r&&l.length>0&&cr(l[0]))throw new s.vHH(4003,!1);const d=l.find(Rn);if(d&&d!==Ul(l))throw new s.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ct{constructor(r,n,l){this.segmentGroup=r,this.processChildren=n,this.index=l}}function _s(o,r,n){if(o||(o=new Qe([],{})),0===o.segments.length&&o.hasChildren())return Da(o,r,n);const l=function $p(o,r,n){let l=0,d=r;const _={match:!1,pathIndex:0,commandIndex:0};for(;d=n.length)return _;const D=o.segments[d],M=n[l];if(Rn(M))break;const N=`${M}`,q=l0&&void 0===N)break;if(N&&q&&"object"==typeof q&&void 0===q.outlets){if(!ur(N,q,D))return _;l+=2}else{if(!ur(N,{},D))return _;l++}d++}return{match:!0,pathIndex:d,commandIndex:l}}(o,r,n),d=n.slice(l.commandIndex);if(l.match&&l.pathIndex{"string"==typeof _&&(_=[_]),null!==_&&(d[D]=_s(o.children[D],r,_))}),Yt(o.children,(_,D)=>{void 0===l[D]&&(d[D]=_)}),new Qe(o.segments,d)}}function pd(o,r,n){const l=o.segments.slice(0,r);let d=0;for(;d{"string"==typeof n&&(n=[n]),null!==n&&(r[l]=pd(new Qe([],{}),0,n))}),r}function on(o){const r={};return Yt(o,(n,l)=>r[l]=`${n}`),r}function ur(o,r,n){return o==n.path&&Yn(r,n.parameters)}class dr{constructor(r,n){this.id=r,this.url=n}}class Zr extends dr{constructor(r,n,l="imperative",d=null){super(r,n),this.type=0,this.navigationTrigger=l,this.restoredState=d}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class hn extends dr{constructor(r,n,l){super(r,n),this.urlAfterRedirects=l,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wa extends dr{constructor(r,n,l,d){super(r,n),this.reason=l,this.code=d,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Wl extends dr{constructor(r,n,l,d){super(r,n),this.error=l,this.target=d,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gp extends dr{constructor(r,n,l,d){super(r,n),this.urlAfterRedirects=l,this.state=d,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zp extends dr{constructor(r,n,l,d){super(r,n),this.urlAfterRedirects=l,this.state=d,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yl extends dr{constructor(r,n,l,d,_){super(r,n),this.urlAfterRedirects=l,this.state=d,this.shouldActivate=_,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Zl extends dr{constructor(r,n,l,d){super(r,n),this.urlAfterRedirects=l,this.state=d,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gd extends dr{constructor(r,n,l,d){super(r,n),this.urlAfterRedirects=l,this.state=d,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kl{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wp{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _d{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ql{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class md{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vd{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jl{constructor(r,n,l){this.routerEvent=r,this.position=n,this.anchor=l,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ba{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const n=this.pathFromRoot(r);return n.length>1?n[n.length-2]:null}children(r){const n=Ql(r,this._root);return n?n.children.map(l=>l.value):[]}firstChild(r){const n=Ql(r,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(r){const n=Xl(r,this._root);return n.length<2?[]:n[n.length-2].children.map(d=>d.value).filter(d=>d!==r)}pathFromRoot(r){return Xl(r,this._root).map(n=>n.value)}}function Ql(o,r){if(o===r.value)return r;for(const n of r.children){const l=Ql(o,n);if(l)return l}return null}function Xl(o,r){if(o===r.value)return[r];for(const n of r.children){const l=Xl(o,n);if(l.length)return l.unshift(r),l}return[]}class bt{constructor(r,n){this.value=r,this.children=n}toString(){return`TreeNode(${this.value})`}}function bn(o){const r={};return o&&o.children.forEach(n=>r[n.value.outlet]=n),r}class St extends ba{constructor(r,n){super(r),this.snapshot=n,uo(this,r)}toString(){return this.snapshot.toString()}}function Cd(o,r){const n=function Yp(o,r){const D=new Sa([],{},{},"",{},Fe,r,null,o.root,-1,{});return new ms("",new bt(D,[]))}(o,r),l=new ht([new oo("",{})]),d=new ht({}),_=new ht({}),D=new ht({}),M=new ht(""),N=new qn(l,d,D,M,_,Fe,r,n.root);return N.snapshot=n.root,new St(new bt(N,[]),n)}class qn{constructor(r,n,l,d,_,D,M,N){this.url=r,this.params=n,this.queryParams=l,this.fragment=d,this.data=_,this.outlet=D,this.component=M,this._futureSnapshot=N}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Ge.U)(r=>Di(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(r=>Di(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Dd(o,r="emptyOnly"){const n=o.pathFromRoot;let l=0;if("always"!==r)for(l=n.length-1;l>=1;){const d=n[l],_=n[l-1];if(d.routeConfig&&""===d.routeConfig.path)l--;else{if(_.component)break;l--}}return function Zp(o){return o.reduce((r,n)=>({params:{...r.params,...n.params},data:{...r.data,...n.data},resolve:{...n.data,...r.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(l))}class Sa{constructor(r,n,l,d,_,D,M,N,q,me,de,qe){this.url=r,this.params=n,this.queryParams=l,this.fragment=d,this.data=_,this.outlet=D,this.component=M,this.routeConfig=N,this._urlSegment=q,this._lastPathIndex=me,this._correctedLastPathIndex=qe??me,this._resolve=de}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Di(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Di(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(l=>l.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ms extends ba{constructor(r,n){super(n),this.url=r,uo(this,n)}toString(){return vs(this._root)}}function uo(o,r){r.value._routerState=o,r.children.forEach(n=>uo(o,n))}function vs(o){const r=o.children.length>0?` { ${o.children.map(vs).join(", ")} } `:"";return`${o.value}${r}`}function ys(o){if(o.snapshot){const r=o.snapshot,n=o._futureSnapshot;o.snapshot=n,Yn(r.queryParams,n.queryParams)||o.queryParams.next(n.queryParams),r.fragment!==n.fragment&&o.fragment.next(n.fragment),Yn(r.params,n.params)||o.params.next(n.params),function ad(o,r){if(o.length!==r.length)return!1;for(let n=0;nYn(n.parameters,r[l].parameters))}(o.url,r.url);return n&&!(!o.parent!=!r.parent)&&(!o.parent||Aa(o.parent,r.parent))}function Pn(o,r,n){if(n&&o.shouldReuseRoute(r.value,n.value.snapshot)){const l=n.value;l._futureSnapshot=r.value;const d=function Cs(o,r,n){return r.children.map(l=>{for(const d of n.children)if(o.shouldReuseRoute(l.value,d.value.snapshot))return Pn(o,l,d);return Pn(o,l)})}(o,r,n);return new bt(l,d)}{if(o.shouldAttach(r.value)){const _=o.retrieve(r.value);if(null!==_){const D=_.route;return D.value._futureSnapshot=r.value,D.children=r.children.map(M=>Pn(o,M)),D}}const l=function qp(o){return new qn(new ht(o.url),new ht(o.params),new ht(o.queryParams),new ht(o.fragment),new ht(o.data),o.outlet,o.component,o)}(r.value),d=r.children.map(_=>Pn(o,_));return new bt(l,d)}}const ec="ngNavigationCancelingError";function ho(o,r){const{redirectTo:n,navigationBehaviorOptions:l}=Ke(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,d=Ma(!1,0,r);return d.url=n,d.navigationBehaviorOptions=l,d}function Ma(o,r,n){const l=new Error("NavigationCancelingError: "+(o||""));return l[ec]=!0,l.cancellationCode=r,n&&(l.url=n),l}function Ed(o){return wd(o)&&Ke(o.url)}function wd(o){return o&&o[ec]}class pv{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ta,this.attachRef=null}}let Ta=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(n,l){const d=this.getOrCreateContext(n);d.outlet=l,this.contexts.set(n,d)}onChildOutletDestroyed(n){const l=this.getContext(n);l&&(l.outlet=null,l.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let l=this.getContext(n);return l||(l=new pv,this.contexts.set(n,l)),l}getContext(n){return this.contexts.get(n)||null}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Si=!1;let Ar=(()=>{class o{constructor(n,l,d,_,D){this.parentContexts=n,this.location=l,this.changeDetector=_,this.environmentInjector=D,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.attachEvents=new s.vpe,this.detachEvents=new s.vpe,this.name=d||Fe,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new s.vHH(4012,Si);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new s.vHH(4012,Si);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new s.vHH(4012,Si);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,l){this.activated=n,this._activatedRoute=l,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,l){if(this.isActivated)throw new s.vHH(4013,Si);this._activatedRoute=n;const d=this.location,D=n._futureSnapshot.component,M=this.parentContexts.getOrCreateContext(this.name).children,N=new bd(n,M,d.injector);if(l&&function Ia(o){return!!o.resolveComponentFactory}(l)){const q=l.resolveComponentFactory(D);this.activated=d.createComponent(q,d.length,N)}else this.activated=d.createComponent(D,{index:d.length,injector:N,environmentInjector:l??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Ta),s.Y36(s.s_b),s.$8M("name"),s.Y36(s.sBO),s.Y36(s.lqb))},o.\u0275dir=s.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class bd{constructor(r,n,l){this.route=r,this.childContexts=n,this.parent=l}get(r,n){return r===qn?this.route:r===Ta?this.childContexts:this.parent.get(r,n)}}let tc=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,l){1&n&&s._UZ(0,"router-outlet")},dependencies:[Ar],encapsulation:2}),o})();function nc(o,r){return o.providers&&!o._injector&&(o._injector=(0,s.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function rc(o){const r=o.children&&o.children.map(rc),n=r?{...o,children:r}:{...o};return!n.component&&!n.loadComponent&&(r||n.loadChildren)&&n.outlet&&n.outlet!==Fe&&(n.component=tc),n}function It(o){return o.outlet||Fe}function Td(o,r){const n=o.filter(l=>It(l)===r);return n.push(...o.filter(l=>It(l)!==r)),n}function po(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const n=r.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class oc{constructor(r,n,l,d){this.routeReuseStrategy=r,this.futureState=n,this.currState=l,this.forwardEvent=d}activate(r){const n=this.futureState._root,l=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,l,r),ys(this.futureState.root),this.activateChildRoutes(n,l,r)}deactivateChildRoutes(r,n,l){const d=bn(n);r.children.forEach(_=>{const D=_.value.outlet;this.deactivateRoutes(_,d[D],l),delete d[D]}),Yt(d,(_,D)=>{this.deactivateRouteAndItsChildren(_,l)})}deactivateRoutes(r,n,l){const d=r.value,_=n?n.value:null;if(d===_)if(d.component){const D=l.getContext(d.outlet);D&&this.deactivateChildRoutes(r,n,D.children)}else this.deactivateChildRoutes(r,n,l);else _&&this.deactivateRouteAndItsChildren(n,l)}deactivateRouteAndItsChildren(r,n){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,n):this.deactivateRouteAndOutlet(r,n)}detachAndStoreRouteSubtree(r,n){const l=n.getContext(r.value.outlet),d=l&&r.value.component?l.children:n,_=bn(r);for(const D of Object.keys(_))this.deactivateRouteAndItsChildren(_[D],d);if(l&&l.outlet){const D=l.outlet.detach(),M=l.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:D,route:r,contexts:M})}}deactivateRouteAndOutlet(r,n){const l=n.getContext(r.value.outlet),d=l&&r.value.component?l.children:n,_=bn(r);for(const D of Object.keys(_))this.deactivateRouteAndItsChildren(_[D],d);l&&l.outlet&&(l.outlet.deactivate(),l.children.onOutletDeactivated(),l.attachRef=null,l.resolver=null,l.route=null)}activateChildRoutes(r,n,l){const d=bn(n);r.children.forEach(_=>{this.activateRoutes(_,d[_.value.outlet],l),this.forwardEvent(new vd(_.value.snapshot))}),r.children.length&&this.forwardEvent(new ql(r.value.snapshot))}activateRoutes(r,n,l){const d=r.value,_=n?n.value:null;if(ys(d),d===_)if(d.component){const D=l.getOrCreateContext(d.outlet);this.activateChildRoutes(r,n,D.children)}else this.activateChildRoutes(r,n,l);else if(d.component){const D=l.getOrCreateContext(d.outlet);if(this.routeReuseStrategy.shouldAttach(d.snapshot)){const M=this.routeReuseStrategy.retrieve(d.snapshot);this.routeReuseStrategy.store(d.snapshot,null),D.children.onOutletReAttached(M.contexts),D.attachRef=M.componentRef,D.route=M.route.value,D.outlet&&D.outlet.attach(M.componentRef,M.route.value),ys(M.route.value),this.activateChildRoutes(r,null,D.children)}else{const M=po(d.snapshot),N=M?.get(s._Vd)??null;D.attachRef=null,D.route=d,D.resolver=N,D.injector=M,D.outlet&&D.outlet.activateWith(d,D.injector),this.activateChildRoutes(r,null,D.children)}}else this.activateChildRoutes(r,null,l)}}class ws{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Ai{constructor(r,n){this.component=r,this.route=n}}function Jp(o,r,n){const l=o._root;return go(l,r?r._root:null,n,[l.value])}function bs(o,r,n){return(po(r)??n).get(o)}function go(o,r,n,l,d={canDeactivateChecks:[],canActivateChecks:[]}){const _=bn(r);return o.children.forEach(D=>{(function Od(o,r,n,l,d={canDeactivateChecks:[],canActivateChecks:[]}){const _=o.value,D=r?r.value:null,M=n?n.getContext(o.value.outlet):null;if(D&&_.routeConfig===D.routeConfig){const N=function Qp(o,r,n){if("function"==typeof n)return n(o,r);switch(n){case"pathParamsChange":return!Zn(o.url,r.url);case"pathParamsOrQueryParamsChange":return!Zn(o.url,r.url)||!Yn(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Aa(o,r)||!Yn(o.queryParams,r.queryParams);default:return!Aa(o,r)}}(D,_,_.routeConfig.runGuardsAndResolvers);N?d.canActivateChecks.push(new ws(l)):(_.data=D.data,_._resolvedData=D._resolvedData),go(o,r,_.component?M?M.children:null:n,l,d),N&&M&&M.outlet&&M.outlet.isActivated&&d.canDeactivateChecks.push(new Ai(M.outlet.component,D))}else D&&Kr(r,M,d),d.canActivateChecks.push(new ws(l)),go(o,null,_.component?M?M.children:null:n,l,d)})(D,_[D.value.outlet],n,l.concat([D.value]),d),delete _[D.value.outlet]}),Yt(_,(D,M)=>Kr(D,n.getContext(M),d)),d}function Kr(o,r,n){const l=bn(o),d=o.value;Yt(l,(_,D)=>{Kr(_,d.component?r?r.children.getContext(D):null:r,n)}),n.canDeactivateChecks.push(new Ai(d.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,d))}function Mr(o){return"function"==typeof o}function Oa(o){return o instanceof rr.K||"EmptyError"===o?.name}const mo=Symbol("INITIAL_VALUE");function Jn(){return(0,Wt.w)(o=>(0,Et.a)(o.map(r=>r.pipe((0,Sr.q)(1),function _a(...o){const r=(0,st.yG)(o);return(0,Ft.e)((n,l)=>{(r?(0,$n.z)(o,n,r):(0,$n.z)(o,n)).subscribe(l)})}(mo)))).pipe((0,Ge.U)(r=>{for(const n of r)if(!0!==n){if(n===mo)return mo;if(!1===n||n instanceof xn)return n}return!0}),(0,ir.h)(r=>r!==mo),(0,Sr.q)(1)))}function rg(o){return(0,Ze.z)((0,wt.b)(r=>{if(Ke(r))throw ho(0,r)}),(0,Ge.U)(r=>!0===r))}const Nd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ig(o,r,n,l,d){const _=Ld(o,r,n);return _.matched?function yv(o,r,n,l){const d=r.canMatch;if(!d||0===d.length)return(0,_e.of)(!0);const _=d.map(D=>{const M=o.get(D),N=function Pd(o){return o&&Mr(o.canMatch)}(M)?M.canMatch(r,n):M(r,n);return or(N)});return(0,_e.of)(_).pipe(Jn(),rg())}(l=nc(r,l),r,n).pipe((0,Ge.U)(D=>!0===D?_:{...Nd})):(0,_e.of)(_)}function Ld(o,r,n){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||n.length>0)?{...Nd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const d=(r.matcher||sd)(n,o,r);if(!d)return{...Nd};const _={};Yt(d.posParams,(M,N)=>{_[N]=M.path});const D=d.consumed.length>0?{..._,...d.consumed[d.consumed.length-1].parameters}:_;return{matched:!0,consumedSegments:d.consumed,remainingSegments:n.slice(d.consumed.length),parameters:D,positionalParamSegments:d.posParams??{}}}function ac(o,r,n,l,d="corrected"){if(n.length>0&&function Dv(o,r,n){return n.some(l=>Do(o,r,l)&&It(l)!==Fe)}(o,n,l)){const D=new Qe(r,function Cv(o,r,n,l){const d={};d[Fe]=l,l._sourceSegment=o,l._segmentIndexShift=r.length;for(const _ of n)if(""===_.path&&It(_)!==Fe){const D=new Qe([],{});D._sourceSegment=o,D._segmentIndexShift=r.length,d[It(_)]=D}return d}(o,r,l,new Qe(n,o.children)));return D._sourceSegment=o,D._segmentIndexShift=r.length,{segmentGroup:D,slicedSegments:[]}}if(0===n.length&&function Lt(o,r,n){return n.some(l=>Do(o,r,l))}(o,n,l)){const D=new Qe(o.segments,function Ss(o,r,n,l,d,_){const D={};for(const M of l)if(Do(o,n,M)&&!d[It(M)]){const N=new Qe([],{});N._sourceSegment=o,N._segmentIndexShift="legacy"===_?o.segments.length:r.length,D[It(M)]=N}return{...d,...D}}(o,r,n,l,o.children,d));return D._sourceSegment=o,D._segmentIndexShift=r.length,{segmentGroup:D,slicedSegments:n}}const _=new Qe(o.segments,o.children);return _._sourceSegment=o,_._segmentIndexShift=r.length,{segmentGroup:_,slicedSegments:n}}function Do(o,r,n){return(!(o.hasChildren()||r.length>0)||"full"!==n.pathMatch)&&""===n.path}function Eo(o,r,n,l){return!!(It(o)===l||l!==Fe&&Do(r,n,o))&&("**"===o.path||Ld(r,o,n).matched)}function og(o,r,n){return 0===r.length&&!o.children[n]}const xa=!1;class sn{constructor(r){this.segmentGroup=r||null}}class hr{constructor(r){this.urlTree=r}}function wo(o){return(0,On._)(new sn(o))}function As(o){return(0,On._)(new hr(o))}class ag{constructor(r,n,l,d,_){this.injector=r,this.configLoader=n,this.urlSerializer=l,this.urlTree=d,this.config=_,this.allowRedirects=!0}apply(){const r=ac(this.urlTree.root,[],[],this.config).segmentGroup,n=new Qe(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,n,Fe).pipe((0,Ge.U)(_=>this.createUrlTree(it(_),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ze.K)(_=>{if(_ instanceof hr)return this.allowRedirects=!1,this.match(_.urlTree);throw _ instanceof sn?this.noMatchError(_):_}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,Fe).pipe((0,Ge.U)(d=>this.createUrlTree(it(d),r.queryParams,r.fragment))).pipe((0,ze.K)(d=>{throw d instanceof sn?this.noMatchError(d):d}))}noMatchError(r){return new s.vHH(4002,xa)}createUrlTree(r,n,l){const d=ct(r);return new xn(d,n,l)}expandSegmentGroup(r,n,l,d){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(r,n,l).pipe((0,Ge.U)(_=>new Qe([],_))):this.expandSegment(r,l,n,l.segments,d,!0)}expandChildren(r,n,l){const d=[];for(const _ of Object.keys(l.children))"primary"===_?d.unshift(_):d.push(_);return(0,ye.D)(d).pipe((0,En.b)(_=>{const D=l.children[_],M=Td(n,_);return this.expandSegmentGroup(r,M,D,_).pipe((0,Ge.U)(N=>({segment:N,outlet:_})))}),no((_,D)=>(_[D.outlet]=D.segment,_),{}),Yr())}expandSegment(r,n,l,d,_,D){return(0,ye.D)(l).pipe((0,En.b)(M=>this.expandSegmentAgainstRoute(r,n,l,M,d,_,D).pipe((0,ze.K)(q=>{if(q instanceof sn)return(0,_e.of)(null);throw q}))),(0,Dn.P)(M=>!!M),(0,ze.K)((M,N)=>{if(Oa(M))return og(n,d,_)?(0,_e.of)(new Qe([],{})):wo(n);throw M}))}expandSegmentAgainstRoute(r,n,l,d,_,D,M){return Eo(d,n,_,D)?void 0===d.redirectTo?this.matchSegmentAgainstRoute(r,n,d,_,D):M&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,n,l,d,_,D):wo(n):wo(n)}expandSegmentAgainstRouteUsingRedirect(r,n,l,d,_,D){return"**"===d.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,l,d,D):this.expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,d,_,D)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,n,l,d){const _=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?As(_):this.lineralizeSegments(l,_).pipe((0,Ot.z)(D=>{const M=new Qe(D,{});return this.expandSegment(r,M,n,D,d,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,d,_,D){const{matched:M,consumedSegments:N,remainingSegments:q,positionalParamSegments:me}=Ld(n,d,_);if(!M)return wo(n);const de=this.applyRedirectCommands(N,d.redirectTo,me);return d.redirectTo.startsWith("/")?As(de):this.lineralizeSegments(d,de).pipe((0,Ot.z)(qe=>this.expandSegment(r,n,l,qe.concat(q),D,!1)))}matchSegmentAgainstRoute(r,n,l,d,_){return"**"===l.path?(r=nc(l,r),l.loadChildren?(l._loadedRoutes?(0,_e.of)({routes:l._loadedRoutes,injector:l._loadedInjector}):this.configLoader.loadChildren(r,l)).pipe((0,Ge.U)(M=>(l._loadedRoutes=M.routes,l._loadedInjector=M.injector,new Qe(d,{})))):(0,_e.of)(new Qe(d,{}))):ig(n,l,d,r).pipe((0,Wt.w)(({matched:D,consumedSegments:M,remainingSegments:N})=>D?this.getChildConfig(r=l._injector??r,l,d).pipe((0,Ot.z)(me=>{const de=me.injector??r,qe=me.routes,{segmentGroup:at,slicedSegments:Dt}=ac(n,M,N,qe),Ut=new Qe(at.segments,at.children);if(0===Dt.length&&Ut.hasChildren())return this.expandChildren(de,qe,Ut).pipe((0,Ge.U)(Mp=>new Qe(M,Mp)));if(0===qe.length&&0===Dt.length)return(0,_e.of)(new Qe(M,{}));const pn=It(l)===_;return this.expandSegment(de,Ut,qe,Dt,pn?Fe:_,!0).pipe((0,Ge.U)(rs=>new Qe(M.concat(rs.segments),rs.children)))})):wo(n)))}getChildConfig(r,n,l){return n.children?(0,_e.of)({routes:n.children,injector:r}):n.loadChildren?void 0!==n._loadedRoutes?(0,_e.of)({routes:n._loadedRoutes,injector:n._loadedInjector}):function vv(o,r,n,l){const d=r.canLoad;if(void 0===d||0===d.length)return(0,_e.of)(!0);const _=d.map(D=>{const M=o.get(D),N=function xd(o){return o&&Mr(o.canLoad)}(M)?M.canLoad(r,n):M(r,n);return or(N)});return(0,_e.of)(_).pipe(Jn(),rg())}(r,n,l).pipe((0,Ot.z)(d=>d?this.configLoader.loadChildren(r,n).pipe((0,wt.b)(_=>{n._loadedRoutes=_.routes,n._loadedInjector=_.injector})):function Vd(o){return(0,On._)(Ma(xa,3))}())):(0,_e.of)({routes:[],injector:r})}lineralizeSegments(r,n){let l=[],d=n.root;for(;;){if(l=l.concat(d.segments),0===d.numberOfChildren)return(0,_e.of)(l);if(d.numberOfChildren>1||!d.children[Fe])return(0,On._)(new s.vHH(4e3,xa));d=d.children[Fe]}}applyRedirectCommands(r,n,l){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),r,l)}applyRedirectCreateUrlTree(r,n,l,d){const _=this.createSegmentGroup(r,n.root,l,d);return new xn(_,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(r,n){const l={};return Yt(r,(d,_)=>{if("string"==typeof d&&d.startsWith(":")){const M=d.substring(1);l[_]=n[M]}else l[_]=d}),l}createSegmentGroup(r,n,l,d){const _=this.createSegments(r,n.segments,l,d);let D={};return Yt(n.children,(M,N)=>{D[N]=this.createSegmentGroup(r,M,l,d)}),new Qe(_,D)}createSegments(r,n,l,d){return n.map(_=>_.path.startsWith(":")?this.findPosParam(r,_,d):this.findOrReturn(_,l))}findPosParam(r,n,l){const d=l[n.path.substring(1)];if(!d)throw new s.vHH(4001,xa);return d}findOrReturn(r,n){let l=0;for(const d of n){if(d.path===r.path)return n.splice(l),d;l++}return r}}class Bd{}class bo{constructor(r,n,l,d,_,D,M,N){this.injector=r,this.rootComponentType=n,this.config=l,this.urlTree=d,this.url=_,this.paramsInheritanceStrategy=D,this.relativeLinkResolution=M,this.urlSerializer=N}recognize(){const r=ac(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,Fe).pipe((0,Ge.U)(n=>{if(null===n)return null;const l=new Sa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Fe,this.rootComponentType,null,this.urlTree.root,-1,{}),d=new bt(l,n),_=new ms(this.url,d);return this.inheritParamsAndData(_._root),_}))}inheritParamsAndData(r){const n=r.value,l=Dd(n,this.paramsInheritanceStrategy);n.params=Object.freeze(l.params),n.data=Object.freeze(l.data),r.children.forEach(d=>this.inheritParamsAndData(d))}processSegmentGroup(r,n,l,d){return 0===l.segments.length&&l.hasChildren()?this.processChildren(r,n,l):this.processSegment(r,n,l,l.segments,d)}processChildren(r,n,l){return(0,ye.D)(Object.keys(l.children)).pipe((0,En.b)(d=>{const _=l.children[d],D=Td(n,d);return this.processSegmentGroup(r,D,_,d)}),no((d,_)=>d&&_?(d.push(..._),d):null),function wn(o,r=!1){return(0,Ft.e)((n,l)=>{let d=0;n.subscribe((0,ft.x)(l,_=>{const D=o(_,d++);(D||r)&&l.next(_),!D&&l.complete()}))})}(d=>null!==d),(0,Wr.d)(null),Yr(),(0,Ge.U)(d=>{if(null===d)return null;const _=Ud(d);return function wv(o){o.sort((r,n)=>r.value.outlet===Fe?-1:n.value.outlet===Fe?1:r.value.outlet.localeCompare(n.value.outlet))}(_),_}))}processSegment(r,n,l,d,_){return(0,ye.D)(n).pipe((0,En.b)(D=>this.processSegmentAgainstRoute(D._injector??r,D,l,d,_)),(0,Dn.P)(D=>!!D),(0,ze.K)(D=>{if(Oa(D))return og(l,d,_)?(0,_e.of)([]):(0,_e.of)(null);throw D}))}processSegmentAgainstRoute(r,n,l,d,_){if(n.redirectTo||!Eo(n,l,d,_))return(0,_e.of)(null);let D;if("**"===n.path){const M=d.length>0?Ul(d).parameters:{},N=$d(l)+d.length,q=new Sa(d,M,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ra(n),It(n),n.component??n._loadedComponent??null,n,jd(l),N,Ts(n),N);D=(0,_e.of)({snapshot:q,consumedSegments:[],remainingSegments:[]})}else D=ig(l,n,d,r).pipe((0,Ge.U)(({matched:M,consumedSegments:N,remainingSegments:q,parameters:me})=>{if(!M)return null;const de=$d(l)+N.length;return{snapshot:new Sa(N,me,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ra(n),It(n),n.component??n._loadedComponent??null,n,jd(l),de,Ts(n),de),consumedSegments:N,remainingSegments:q}}));return D.pipe((0,Wt.w)(M=>{if(null===M)return(0,_e.of)(null);const{snapshot:N,consumedSegments:q,remainingSegments:me}=M;r=n._injector??r;const de=n._loadedInjector??r,qe=function Hd(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(n),{segmentGroup:at,slicedSegments:Dt}=ac(l,q,me,qe.filter(pn=>void 0===pn.redirectTo),this.relativeLinkResolution);if(0===Dt.length&&at.hasChildren())return this.processChildren(de,qe,at).pipe((0,Ge.U)(pn=>null===pn?null:[new bt(N,pn)]));if(0===qe.length&&0===Dt.length)return(0,_e.of)([new bt(N,[])]);const Ut=It(n)===_;return this.processSegment(de,qe,at,Dt,Ut?Fe:_).pipe((0,Ge.U)(pn=>null===pn?null:[new bt(N,pn)]))}))}}function lg(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Ud(o){const r=[],n=new Set;for(const l of o){if(!lg(l)){r.push(l);continue}const d=r.find(_=>l.value.routeConfig===_.value.routeConfig);void 0!==d?(d.children.push(...l.children),n.add(d)):r.push(l)}for(const l of n){const d=Ud(l.children);r.push(new bt(l.value,d))}return r.filter(l=>!n.has(l))}function jd(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function $d(o){let r=o,n=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,n+=r._segmentIndexShift??0;return n-1}function Ra(o){return o.data||{}}function Ts(o){return o.resolve||{}}const Mi=Symbol("RouteTitle");function dc(o){return"string"==typeof o.title||null===o.title}function Ti(o){return(0,Wt.w)(r=>{const n=o(r);return n?(0,ye.D)(n).pipe((0,Ge.U)(()=>r)):(0,_e.of)(r)})}let Ii=(()=>{class o{buildTitle(n){let l,d=n.root;for(;void 0!==d;)l=this.getResolvedTitleForRoute(d)??l,d=d.children.find(_=>_.outlet===Fe);return l}getResolvedTitleForRoute(n){return n.data[Mi]}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:function(){return(0,s.f3M)(zd)},providedIn:"root"}),o})(),zd=(()=>{class o extends Ii{constructor(n){super(),this.title=n}updateTitle(n){const l=this.buildTitle(n);void 0!==l&&this.title.setTitle(l)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(V))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Wd{}class hc extends class Yd{shouldDetach(r){return!1}store(r,n){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,n){return r.routeConfig===n.routeConfig}}{}const fc=new s.OlP("",{providedIn:"root",factory:()=>({})}),pc=new s.OlP("ROUTES");let Os=(()=>{class o{constructor(n,l){this.injector=n,this.compiler=l,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return(0,_e.of)(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const l=or(n.loadComponent()).pipe((0,wt.b)(_=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=_}),us(()=>{this.componentLoaders.delete(n)})),d=new zr(l,()=>new $e.x).pipe(br());return this.componentLoaders.set(n,d),d}loadChildren(n,l){if(this.childrenLoaders.get(l))return this.childrenLoaders.get(l);if(l._loadedRoutes)return(0,_e.of)({routes:l._loadedRoutes,injector:l._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(l);const _=this.loadModuleFactoryOrRoutes(l.loadChildren).pipe((0,Ge.U)(M=>{this.onLoadEndListener&&this.onLoadEndListener(l);let N,q,me=!1;Array.isArray(M)?q=M:(N=M.create(n).injector,q=Hl(N.get(pc,[],s.XFs.Self|s.XFs.Optional)));return{routes:q.map(rc),injector:N}}),us(()=>{this.childrenLoaders.delete(l)})),D=new zr(_,()=>new $e.x).pipe(br());return this.childrenLoaders.set(l,D),D}loadModuleFactoryOrRoutes(n){return or(n()).pipe((0,Ot.z)(l=>l instanceof s.YKP||Array.isArray(l)?(0,_e.of)(l):(0,ye.D)(this.compiler.compileModuleAsync(l))))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(s.zs3),s.LFG(s.Sil))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class xs{}class Kd{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}}function fg(o){throw o}function qd(o,r,n){return r.parse("/")}const Rs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Qd(){const o=(0,s.f3M)(so),r=(0,s.f3M)(Ta),n=(0,s.f3M)(g.Ye),l=(0,s.f3M)(s.zs3),d=(0,s.f3M)(s.Sil),_=(0,s.f3M)(pc,{optional:!0})??[],D=(0,s.f3M)(fc,{optional:!0})??{},M=(0,s.f3M)(zd),N=(0,s.f3M)(Ii,{optional:!0}),q=(0,s.f3M)(xs,{optional:!0}),me=(0,s.f3M)(Wd,{optional:!0}),de=new _t(null,o,r,n,l,d,Hl(_));return q&&(de.urlHandlingStrategy=q),me&&(de.routeReuseStrategy=me),de.titleStrategy=N??M,function Jd(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(D,de),de}let _t=(()=>{class o{constructor(n,l,d,_,D,M,N){this.rootComponentType=n,this.urlSerializer=l,this.rootContexts=d,this.location=_,this.config=N,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new $e.x,this.errorHandler=fg,this.malformedUriErrorHandler=qd,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,_e.of)(void 0),this.urlHandlingStrategy=new Kd,this.routeReuseStrategy=new hc,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=D.get(Os),this.configLoader.onLoadEndListener=qe=>this.triggerEvent(new Wp(qe)),this.configLoader.onLoadStartListener=qe=>this.triggerEvent(new Kl(qe)),this.ngModule=D.get(s.h0i),this.console=D.get(s.c2e);const de=D.get(s.R0b);this.isNgZoneEnabled=de instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(N),this.currentUrlTree=function ld(){return new xn(new Qe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Cd(this.currentUrlTree,this.rootComponentType),this.transitions=new ht({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const l=this.events;return n.pipe((0,ir.h)(d=>0!==d.id),(0,Ge.U)(d=>({...d,extractedUrl:this.urlHandlingStrategy.extract(d.rawUrl)})),(0,Wt.w)(d=>{let _=!1,D=!1;return(0,_e.of)(d).pipe((0,wt.b)(M=>{this.currentNavigation={id:M.id,initialUrl:M.rawUrl,extractedUrl:M.extractedUrl,trigger:M.source,extras:M.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Wt.w)(M=>{const N=this.browserUrlTree.toString(),q=!this.navigated||M.extractedUrl.toString()!==N||N!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||q)&&this.urlHandlingStrategy.shouldProcessUrl(M.rawUrl))return Ao(M.source)&&(this.browserUrlTree=M.extractedUrl),(0,_e.of)(M).pipe((0,Wt.w)(de=>{const qe=this.transitions.getValue();return l.next(new Zr(de.id,this.serializeUrl(de.extractedUrl),de.source,de.restoredState)),qe!==this.transitions.getValue()?Cn.E:Promise.resolve(de)}),function Ev(o,r,n,l){return(0,Wt.w)(d=>function sg(o,r,n,l,d){return new ag(o,r,n,l,d).apply()}(o,r,n,d.extractedUrl,l).pipe((0,Ge.U)(_=>({...d,urlAfterRedirects:_}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,wt.b)(de=>{this.currentNavigation={...this.currentNavigation,finalUrl:de.urlAfterRedirects},d.urlAfterRedirects=de.urlAfterRedirects}),function bv(o,r,n,l,d,_){return(0,Ot.z)(D=>function cc(o,r,n,l,d,_,D="emptyOnly",M="legacy"){return new bo(o,r,n,l,d,D,M,_).recognize().pipe((0,Wt.w)(N=>null===N?function Sn(o){return new lt.y(r=>r.error(o))}(new Bd):(0,_e.of)(N)))}(o,r,n,D.urlAfterRedirects,l.serialize(D.urlAfterRedirects),l,d,_).pipe((0,Ge.U)(M=>({...D,targetSnapshot:M}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,wt.b)(de=>{if(d.targetSnapshot=de.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!de.extras.skipLocationChange){const at=this.urlHandlingStrategy.merge(de.urlAfterRedirects,de.rawUrl);this.setBrowserUrl(at,de)}this.browserUrlTree=de.urlAfterRedirects}const qe=new Gp(de.id,this.serializeUrl(de.extractedUrl),this.serializeUrl(de.urlAfterRedirects),de.targetSnapshot);l.next(qe)}));if(q&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:qe,extractedUrl:at,source:Dt,restoredState:Ut,extras:pn}=M,Ku=new Zr(qe,this.serializeUrl(at),Dt,Ut);l.next(Ku);const rs=Cd(at,this.rootComponentType).snapshot;return d={...M,targetSnapshot:rs,urlAfterRedirects:at,extras:{...pn,skipLocationChange:!1,replaceUrl:!1}},(0,_e.of)(d)}return this.rawUrlTree=M.rawUrl,M.resolve(null),Cn.E}),(0,wt.b)(M=>{const N=new zp(M.id,this.serializeUrl(M.extractedUrl),this.serializeUrl(M.urlAfterRedirects),M.targetSnapshot);this.triggerEvent(N)}),(0,Ge.U)(M=>d={...M,guards:Jp(M.targetSnapshot,M.currentSnapshot,this.rootContexts)}),function vo(o,r){return(0,Ot.z)(n=>{const{targetSnapshot:l,currentSnapshot:d,guards:{canActivateChecks:_,canDeactivateChecks:D}}=n;return 0===D.length&&0===_.length?(0,_e.of)({...n,guardsResult:!0}):function yo(o,r,n,l){return(0,ye.D)(o).pipe((0,Ot.z)(d=>function pt(o,r,n,l,d){const _=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!_||0===_.length)return(0,_e.of)(!0);const D=_.map(M=>{const N=bs(M,r,d);return or(function eg(o){return o&&Mr(o.canDeactivate)}(N)?N.canDeactivate(o,r,n,l):N(o,r,n,l)).pipe((0,Dn.P)())});return(0,_e.of)(D).pipe(Jn())}(d.component,d.route,n,r,l)),(0,Dn.P)(d=>!0!==d,!0))}(D,l,d,o).pipe((0,Ot.z)(M=>M&&function Xp(o){return"boolean"==typeof o}(M)?function kd(o,r,n,l){return(0,ye.D)(r).pipe((0,En.b)(d=>(0,$n.z)(function Co(o,r){return null!==o&&r&&r(new _d(o)),(0,_e.of)(!0)}(d.route.parent,l),function sc(o,r){return null!==o&&r&&r(new md(o)),(0,_e.of)(!0)}(d.route,l),function ng(o,r,n){const l=r[r.length-1],_=r.slice(0,r.length-1).reverse().map(D=>function Id(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(D)).filter(D=>null!==D).map(D=>zn(()=>{const M=D.guards.map(N=>{const q=bs(N,D.node,n);return or(function _o(o){return o&&Mr(o.canActivateChild)}(q)?q.canActivateChild(l,o):q(l,o)).pipe((0,Dn.P)())});return(0,_e.of)(M).pipe(Jn())}));return(0,_e.of)(_).pipe(Jn())}(o,d.path,n),function mv(o,r,n){const l=r.routeConfig?r.routeConfig.canActivate:null;if(!l||0===l.length)return(0,_e.of)(!0);const d=l.map(_=>zn(()=>{const D=bs(_,r,n);return or(function Rd(o){return o&&Mr(o.canActivate)}(D)?D.canActivate(r,o):D(r,o)).pipe((0,Dn.P)())}));return(0,_e.of)(d).pipe(Jn())}(o,d.route,n))),(0,Dn.P)(d=>!0!==d,!0))}(l,_,o,r):(0,_e.of)(M)),(0,Ge.U)(M=>({...n,guardsResult:M})))})}(this.ngModule.injector,M=>this.triggerEvent(M)),(0,wt.b)(M=>{if(d.guardsResult=M.guardsResult,Ke(M.guardsResult))throw ho(0,M.guardsResult);const N=new Yl(M.id,this.serializeUrl(M.extractedUrl),this.serializeUrl(M.urlAfterRedirects),M.targetSnapshot,!!M.guardsResult);this.triggerEvent(N)}),(0,ir.h)(M=>!!M.guardsResult||(this.restoreHistory(M),this.cancelNavigationTransition(M,"",3),!1)),Ti(M=>{if(M.guards.canActivateChecks.length)return(0,_e.of)(M).pipe((0,wt.b)(N=>{const q=new Zl(N.id,this.serializeUrl(N.extractedUrl),this.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);this.triggerEvent(q)}),(0,Wt.w)(N=>{let q=!1;return(0,_e.of)(N).pipe(function uc(o,r){return(0,Ot.z)(n=>{const{targetSnapshot:l,guards:{canActivateChecks:d}}=n;if(!d.length)return(0,_e.of)(n);let _=0;return(0,ye.D)(d).pipe((0,En.b)(D=>function Pa(o,r,n,l){const d=o.routeConfig,_=o._resolve;return void 0!==d?.title&&!dc(d)&&(_[Mi]=d.title),function ug(o,r,n,l){const d=function dg(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===d.length)return(0,_e.of)({});const _={};return(0,ye.D)(d).pipe((0,Ot.z)(D=>function hg(o,r,n,l){const d=bs(o,r,l);return or(d.resolve?d.resolve(r,n):d(r,n))}(o[D],r,n,l).pipe((0,Dn.P)(),(0,wt.b)(M=>{_[D]=M}))),Tt(1),(0,Vl.h)(_),(0,ze.K)(D=>Oa(D)?Cn.E:(0,On._)(D)))}(_,o,r,l).pipe((0,Ge.U)(D=>(o._resolvedData=D,o.data=Dd(o,n).resolve,d&&dc(d)&&(o.data[Mi]=d.title),null)))}(D.route,l,o,r)),(0,wt.b)(()=>_++),Tt(1),(0,Ot.z)(D=>_===d.length?(0,_e.of)(n):Cn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,wt.b)({next:()=>q=!0,complete:()=>{q||(this.restoreHistory(N),this.cancelNavigationTransition(N,"",2))}}))}),(0,wt.b)(N=>{const q=new gd(N.id,this.serializeUrl(N.extractedUrl),this.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);this.triggerEvent(q)}))}),Ti(M=>{const N=q=>{const me=[];q.routeConfig?.loadComponent&&!q.routeConfig._loadedComponent&&me.push(this.configLoader.loadComponent(q.routeConfig).pipe((0,wt.b)(de=>{q.component=de}),(0,Ge.U)(()=>{})));for(const de of q.children)me.push(...N(de));return me};return(0,Et.a)(N(M.targetSnapshot.root)).pipe((0,Wr.d)(),(0,Sr.q)(1))}),Ti(()=>this.afterPreactivation()),(0,Ge.U)(M=>{const N=function Kp(o,r,n){const l=Pn(o,r._root,n?n._root:void 0);return new St(l,r)}(this.routeReuseStrategy,M.targetSnapshot,M.currentRouterState);return d={...M,targetRouterState:N}}),(0,wt.b)(M=>{this.currentUrlTree=M.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(M.urlAfterRedirects,M.rawUrl),this.routerState=M.targetRouterState,"deferred"===this.urlUpdateStrategy&&(M.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,M),this.browserUrlTree=M.urlAfterRedirects)}),((o,r,n)=>(0,Ge.U)(l=>(new oc(r,l.targetRouterState,l.currentRouterState,n).activate(o),l)))(this.rootContexts,this.routeReuseStrategy,M=>this.triggerEvent(M)),(0,wt.b)({next(){_=!0},complete(){_=!0}}),us(()=>{_||D||this.cancelNavigationTransition(d,"",1),this.currentNavigation?.id===d.id&&(this.currentNavigation=null)}),(0,ze.K)(M=>{if(D=!0,wd(M)){Ed(M)||(this.navigated=!0,this.restoreHistory(d,!0));const N=new wa(d.id,this.serializeUrl(d.extractedUrl),M.message,M.cancellationCode);if(l.next(N),Ed(M)){const q=this.urlHandlingStrategy.merge(M.url,this.rawUrlTree),me={skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ao(d.source)};this.scheduleNavigation(q,"imperative",null,me,{resolve:d.resolve,reject:d.reject,promise:d.promise})}else d.resolve(!1)}else{this.restoreHistory(d,!0);const N=new Wl(d.id,this.serializeUrl(d.extractedUrl),M,d.targetSnapshot??void 0);l.next(N);try{d.resolve(this.errorHandler(M))}catch(q){d.reject(q)}}return Cn.E}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...n})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const l="popstate"===n.type?"popstate":"hashchange";"popstate"===l&&setTimeout(()=>{const d={replaceUrl:!0},_=n.state?.navigationId?n.state:null;if(_){const M={..._};delete M.navigationId,delete M.\u0275routerPageId,0!==Object.keys(M).length&&(d.state=M)}const D=this.parseUrl(n.url);this.scheduleNavigation(D,l,_,d)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(rc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,l={}){const{relativeTo:d,queryParams:_,fragment:D,queryParamsHandling:M,preserveFragment:N}=l,q=d||this.routerState.root,me=N?this.currentUrlTree.fragment:D;let de=null;switch(M){case"merge":de={...this.currentUrlTree.queryParams,..._};break;case"preserve":de=this.currentUrlTree.queryParams;break;default:de=_||null}return null!==de&&(de=this.removeEmptyProps(de)),lr(q,this.currentUrlTree,n,de,me??null)}navigateByUrl(n,l={skipLocationChange:!1}){const d=Ke(n)?n:this.parseUrl(n),_=this.urlHandlingStrategy.merge(d,this.rawUrlTree);return this.scheduleNavigation(_,"imperative",null,l)}navigate(n,l={skipLocationChange:!1}){return function So(o){for(let r=0;r{const _=n[d];return null!=_&&(l[d]=_),l},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new hn(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,l,d,_,D){if(this.disposed)return Promise.resolve(!1);let M,N,q;D?(M=D.resolve,N=D.reject,q=D.promise):q=new Promise((qe,at)=>{M=qe,N=at});const me=++this.navigationId;let de;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(d=this.location.getState()),de=d&&d.\u0275routerPageId?d.\u0275routerPageId:_.replaceUrl||_.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):de=0,this.setTransition({id:me,targetPageId:de,source:l,restoredState:d,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:_,resolve:M,reject:N,promise:q,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),q.catch(qe=>Promise.reject(qe))}setBrowserUrl(n,l){const d=this.urlSerializer.serialize(n),_={...l.extras.state,...this.generateNgRouterState(l.id,l.targetPageId)};this.location.isCurrentPathEqualTo(d)||l.extras.replaceUrl?this.location.replaceState(d,"",_):this.location.go(d,"",_)}restoreHistory(n,l=!1){if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===d?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===d&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,l,d){const _=new wa(n.id,this.serializeUrl(n.extractedUrl),l,d);this.triggerEvent(_),n.resolve(!1)}generateNgRouterState(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:l}:{navigationId:n}}}return o.\u0275fac=function(n){s.$Z()},o.\u0275prov=s.Yz7({token:o,factory:function(){return Qd()},providedIn:"root"}),o})();function Ao(o){return"imperative"!==o}let Jr=(()=>{class o{constructor(n,l,d,_,D){this.router=n,this.route=l,this.tabIndexAttribute=d,this.renderer=_,this.el=D,this.commands=null,this.onChanges=new $e.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){if(null!=this.tabIndexAttribute)return;const l=this.renderer,d=this.el.nativeElement;null!==n?l.setAttribute(d,"tabindex",n):l.removeAttribute(d,"tabindex")}ngOnChanges(n){this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const n={skipLocationChange:(0,s.D6c)(this.skipLocationChange),replaceUrl:(0,s.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,s.D6c)(this.preserveFragment)})}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(_t),s.Y36(qn),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},o.\u0275dir=s.lG2({type:o,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(n,l){1&n&&s.NdJ("click",function(){return l.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[s.TTD]}),o})(),Tr=(()=>{class o{constructor(n,l,d){this.router=n,this.route=l,this.locationStrategy=d,this.commands=null,this.href=null,this.onChanges=new $e.x,this.subscription=n.events.subscribe(_=>{_ instanceof hn&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,l,d,_,D){if(0!==n||l||d||_||D||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const M={skipLocationChange:(0,s.D6c)(this.skipLocationChange),replaceUrl:(0,s.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,M),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,s.D6c)(this.preserveFragment)})}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(_t),s.Y36(qn),s.Y36(g.S$))},o.\u0275dir=s.lG2({type:o,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,l){1&n&&s.NdJ("click",function(_){return l.onClick(_.button,_.ctrlKey,_.shiftKey,_.altKey,_.metaKey)}),2&n&&s.uIk("target",l.target)("href",l.href,s.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[s.TTD]}),o})(),Ir=(()=>{class o{constructor(n,l,d,_,D,M){this.router=n,this.element=l,this.renderer=d,this.cdr=_,this.link=D,this.linkWithHref=M,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new s.vpe,this.routerEventsSubscription=n.events.subscribe(N=>{N instanceof hn&&this.update()})}ngAfterContentInit(){(0,_e.of)(this.links.changes,this.linksWithHrefs.changes,(0,_e.of)(null)).pipe((0,ds.J)()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(l=>!!l).map(l=>l.onChanges);this.linkInputChangesSubscription=(0,ye.D)(n).pipe((0,ds.J)()).subscribe(l=>{this.isActive!==this.isLinkActive(this.router)(l)&&this.update()})}set routerLinkActive(n){const l=Array.isArray(n)?n:n.split(" ");this.classes=l.filter(d=>!!d)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this.isActive!==n&&(this.isActive=n,this.cdr.markForCheck(),this.classes.forEach(l=>{n?this.renderer.addClass(this.element.nativeElement,l):this.renderer.removeClass(this.element.nativeElement,l)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const l=function pg(o){return!!o.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return d=>!!d.urlTree&&n.isActive(d.urlTree,l)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.linkWithHref&&n(this.linkWithHref)||this.links.some(n)||this.linksWithHrefs.some(n)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(_t),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(Jr,8),s.Y36(Tr,8))},o.\u0275dir=s.lG2({type:o,selectors:[["","routerLinkActive",""]],contentQueries:function(n,l,d){if(1&n&&(s.Suo(d,Jr,5),s.Suo(d,Tr,5)),2&n){let _;s.iGM(_=s.CRH())&&(l.links=_),s.iGM(_=s.CRH())&&(l.linksWithHrefs=_)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[s.TTD]}),o})();class gg{}let Xd=(()=>{class o{constructor(n,l,d,_,D){this.router=n,this.injector=d,this.preloadingStrategy=_,this.loader=D}setUpPreloading(){this.subscription=this.router.events.pipe((0,ir.h)(n=>n instanceof hn),(0,En.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,l){const d=[];for(const _ of l){_.providers&&!_._injector&&(_._injector=(0,s.MMx)(_.providers,n,`Route: ${_.path}`));const D=_._injector??n,M=_._loadedInjector??D;_.loadChildren&&!_._loadedRoutes&&void 0===_.canLoad||_.loadComponent&&!_._loadedComponent?d.push(this.preloadConfig(D,_)):(_.children||_._loadedRoutes)&&d.push(this.processRoutes(M,_.children??_._loadedRoutes))}return(0,ye.D)(d).pipe((0,ds.J)())}preloadConfig(n,l){return this.preloadingStrategy.preload(l,()=>{let d;d=l.loadChildren&&void 0===l.canLoad?this.loader.loadChildren(n,l):(0,_e.of)(null);const _=d.pipe((0,Ot.z)(D=>null===D?(0,_e.of)(void 0):(l._loadedRoutes=D.routes,l._loadedInjector=D.injector,this.processRoutes(D.injector??n,D.routes))));if(l.loadComponent&&!l._loadedComponent){const D=this.loader.loadComponent(l);return(0,ye.D)([_,D]).pipe((0,ds.J)())}return _})}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(_t),s.LFG(s.Sil),s.LFG(s.lqb),s.LFG(gg),s.LFG(Os))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const Ps=new s.OlP("");let eh=(()=>{class o{constructor(n,l,d={}){this.router=n,this.viewportScroller=l,this.options=d,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},d.scrollPositionRestoration=d.scrollPositionRestoration||"disabled",d.anchorScrolling=d.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Zr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof hn&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Jl&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,l){this.router.triggerEvent(new Jl(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(n){s.$Z()},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const mg=new s.OlP("ROUTER_FORROOT_GUARD"),gc=new s.OlP(""),Mv=[g.Ye,{provide:so,useClass:hs},{provide:_t,useFactory:Qd},Ta,{provide:qn,useFactory:function _c(o){return o.routerState.root},deps:[_t]},Os];function vg(){return new s.PXZ("Router",_t)}let Fn=(()=>{class o{constructor(n){}static forRoot(n,l){return{ngModule:o,providers:[Mv,[],th(n),{provide:mg,useFactory:yg,deps:[[_t,new s.FiY,new s.tp0]]},{provide:fc,useValue:l||{}},l?.useHash?{provide:g.S$,useClass:g.Do}:{provide:g.S$,useClass:g.b0},{provide:Ps,useFactory:()=>{const o=(0,s.f3M)(_t),r=(0,s.f3M)(g.EM),n=(0,s.f3M)(fc);return n.scrollOffset&&r.setOffset(n.scrollOffset),new eh(o,r,n)}},l?.preloadingStrategy?Eg(l.preloadingStrategy):[],{provide:s.PXZ,multi:!0,useFactory:vg},l?.initialNavigation?vc(l):[],[{provide:Fs,useFactory:Tv},{provide:s.tb,multi:!0,useExisting:Fs}]]}}static forChild(n){return{ngModule:o,providers:[th(n)]}}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(mg,8))},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({}),o})();function yg(o){return"guarded"}function th(o){return[{provide:pc,multi:!0,useValue:o}]}function Tv(){const o=(0,s.f3M)(s.zs3);return r=>{const n=o.get(s.z2F);if(r!==n.components[0])return;const l=o.get(_t),d=o.get(yc);1===o.get(Na)&&l.initialNavigation(),o.get(gc,null,s.XFs.Optional)?.setUpPreloading(),o.get(Ps,null,s.XFs.Optional)?.init(),l.resetRootComponentType(n.componentTypes[0]),d.next(),d.complete()}}const Fs=new s.OlP("");function vc(o){return["disabled"===o.initialNavigation?[{provide:s.ip1,multi:!0,useFactory:()=>{const o=(0,s.f3M)(_t);return()=>{o.setUpLocationChangeListener()}}},{provide:Na,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:Na,useValue:0},{provide:s.ip1,multi:!0,deps:[s.zs3],useFactory:o=>{const r=o.get(g.V_,Promise.resolve(null));let n=!1;return()=>r.then(()=>new Promise(d=>{const _=o.get(_t),D=o.get(yc);(function l(d){o.get(_t).events.pipe((0,ir.h)(D=>D instanceof hn||D instanceof wa||D instanceof Wl),(0,Ge.U)(D=>D instanceof hn||D instanceof wa&&(0===D.code||1===D.code)&&null),(0,ir.h)(D=>null!==D),(0,Sr.q)(1)).subscribe(()=>{d()})})(()=>{d(!0),n=!0}),_.afterPreactivation=()=>(d(!0),n||D.closed?(0,_e.of)(void 0):D),_.initialNavigation()}))}}]:[]]}const yc=new s.OlP("",{factory:()=>new $e.x}),Na=new s.OlP("",{providedIn:"root",factory:()=>1});function Eg(o){return[Xd,{provide:gc,useExisting:Xd},{provide:gg,useExisting:o}]}var ks=f(1214);let kn=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez]}),o})(),To=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,kn]}),o})(),ih=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez]}),o})();function wg(o){return Array.isArray(o)?o:[o]}function Bt(o){return null==o?"":"string"==typeof o?o:`${o}px`}var bg=f(1144),Oi=f(576),sh=f(3268);const Rv=["addListener","removeListener"],Sg=["addEventListener","removeEventListener"],La=["on","off"];function Va(o,r,n,l){if((0,Oi.m)(n)&&(l=n,n=void 0),l)return Va(o,r,n).pipe((0,sh.Z)(l));const[d,_]=function lh(o){return(0,Oi.m)(o.addEventListener)&&(0,Oi.m)(o.removeEventListener)}(o)?Sg.map(D=>M=>o[D](r,M,n)):function Ns(o){return(0,Oi.m)(o.addListener)&&(0,Oi.m)(o.removeListener)}(o)?Rv.map(Qn(o,r)):function ah(o){return(0,Oi.m)(o.on)&&(0,Oi.m)(o.off)}(o)?La.map(Qn(o,r)):[];if(!d&&(0,bg.z)(o))return(0,Ot.z)(D=>Va(D,r,n))((0,Gn.Xf)(o));if(!d)throw new TypeError("Invalid event target");return new lt.y(D=>{const M=(...N)=>D.next(1_(M)})}function Qn(o,r){return n=>l=>o[n](r,l)}var Cc=f(4408);const Ba={schedule(o){let r=requestAnimationFrame,n=cancelAnimationFrame;const{delegate:l}=Ba;l&&(r=l.requestAnimationFrame,n=l.cancelAnimationFrame);const d=r(_=>{n=void 0,o(_)});return new Wn.w0(()=>n?.(d))},requestAnimationFrame(...o){const{delegate:r}=Ba;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=Ba;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var Ag=f(640);new class Dc extends Ag.v{flush(r){this._active=!0;const n=this._scheduled;this._scheduled=void 0;const{actions:l}=this;let d;r=r||l.shift();do{if(d=r.execute(r.state,r.delay))break}while((r=l[0])&&r.id===n&&l.shift());if(this._active=!1,d){for(;(r=l[0])&&r.id===n&&l.shift();)r.unsubscribe();throw d}}}(class Pv extends Cc.o{constructor(r,n){super(r,n),this.scheduler=r,this.work=n}requestAsyncId(r,n,l=0){return null!==l&&l>0?super.requestAsyncId(r,n,l):(r.actions.push(this),r._scheduled||(r._scheduled=Ba.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,n,l=0){if(null!=l&&l>0||null==l&&this.delay>0)return super.recycleAsyncId(r,n,l);r.actions.some(d=>d.id===n)||(Ba.cancelAnimationFrame(n),r._scheduled=void 0)}});let uh,Fv=1;const Ls={};function dh(o){return o in Ls&&(delete Ls[o],!0)}const Mg={setImmediate(o){const r=Fv++;return Ls[r]=!0,uh||(uh=Promise.resolve()),uh.then(()=>dh(r)&&o()),r},clearImmediate(o){dh(o)}},{setImmediate:Tg,clearImmediate:hh}=Mg,xi={setImmediate(...o){const{delegate:r}=xi;return(r?.setImmediate||Tg)(...o)},clearImmediate(o){const{delegate:r}=xi;return(r?.clearImmediate||hh)(o)},delegate:void 0};new class wc extends Ag.v{flush(r){this._active=!0;const n=this._scheduled;this._scheduled=void 0;const{actions:l}=this;let d;r=r||l.shift();do{if(d=r.execute(r.state,r.delay))break}while((r=l[0])&&r.id===n&&l.shift());if(this._active=!1,d){for(;(r=l[0])&&r.id===n&&l.shift();)r.unsubscribe();throw d}}}(class Ig extends Cc.o{constructor(r,n){super(r,n),this.scheduler=r,this.work=n}requestAsyncId(r,n,l=0){return null!==l&&l>0?super.requestAsyncId(r,n,l):(r.actions.push(this),r._scheduled||(r._scheduled=xi.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,n,l=0){if(null!=l&&l>0||null==l&&this.delay>0)return super.recycleAsyncId(r,n,l);r.actions.some(d=>d.id===n)||(xi.clearImmediate(n),r._scheduled=void 0)}});var fh=f(4986),bc=f(2805);function Sc(o,r=fh.z){return function xg(o){return(0,Ft.e)((r,n)=>{let l=!1,d=null,_=null,D=!1;const M=()=>{if(_?.unsubscribe(),_=null,l){l=!1;const q=d;d=null,n.next(q)}D&&n.complete()},N=()=>{_=null,D&&n.complete()};r.subscribe((0,ft.x)(n,q=>{l=!0,d=q,_||(0,Gn.Xf)(o(q)).subscribe(_=(0,ft.x)(n,M,N))},()=>{D=!0,(!l||!_||_.closed)&&n.complete()}))})}(()=>(0,bc.H)(o,r))}let Ac;try{Ac=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ac=!1}let Xr,Vs=(()=>{class o{constructor(n){this._platformId=n,this.isBrowser=this._platformId?(0,g.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ac)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(s.Lbi))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function _h(){if(null==Xr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xr=!1,Xr;if("scrollBehavior"in document.documentElement.style)Xr=!0;else{const o=Element.prototype.scrollTo;Xr=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return Xr}function yh(o){return o.composedPath?o.composedPath()[0]:o.target}function ja(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const Ch=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function Dh(){return(0,s.f3M)(g.K0)}}),Ri=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Mc=(()=>{class o{constructor(n){if(this.value="ltr",this.change=new s.vpe,n){const d=n.documentElement?n.documentElement.dir:null;this.value=function Rg(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?Ri.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((n.body?n.body.dir:null)||d||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Ch,8))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ic=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({}),o})(),bh=(()=>{class o{constructor(n,l,d){this._ngZone=n,this._platform=l,this._scrolled=new $e.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=d}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){const l=this.scrollContainers.get(n);l&&(l.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=20){return this._platform.isBrowser?new lt.y(l=>{this._globalSubscription||this._addGlobalListener();const d=n>0?this._scrolled.pipe(Sc(n)).subscribe(l):this._scrolled.subscribe(l);return this._scrolledCount++,()=>{d.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,_e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,l)=>this.deregister(l)),this._scrolled.complete()}ancestorScrolled(n,l){const d=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe((0,ir.h)(_=>!_||d.indexOf(_)>-1))}getAncestorScrollContainers(n){const l=[];return this.scrollContainers.forEach((d,_)=>{this._scrollableContainsElement(_,n)&&l.push(_)}),l}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,l){let d=function oh(o){return o instanceof s.SBq?o.nativeElement:o}(l),_=n.getElementRef().nativeElement;do{if(d==_)return!0}while(d=d.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Va(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(s.R0b),s.LFG(Vs),s.LFG(g.K0,8))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sh=(()=>{class o{constructor(n,l,d){this._platform=n,this._change=new $e.x,this._changeListener=_=>{this._change.next(_)},this._document=d,l.runOutsideAngular(()=>{if(n.isBrowser){const _=this._getWindow();_.addEventListener("resize",this._changeListener),_.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){const n=this.getViewportScrollPosition(),{width:l,height:d}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+d,right:n.left+l,height:d,width:l}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const n=this._document,l=this._getWindow(),d=n.documentElement,_=d.getBoundingClientRect();return{top:-_.top||n.body.scrollTop||l.scrollY||d.scrollTop||0,left:-_.left||n.body.scrollLeft||l.scrollX||d.scrollLeft||0}}change(n=20){return n>0?this._change.pipe(Sc(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Vs),s.LFG(s.R0b),s.LFG(g.K0,8))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),xo=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({}),o})(),Mh=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[Ic,xo,Ic,xo]}),o})();class xc{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Th extends xc{constructor(r,n,l,d){super(),this.component=r,this.viewContainerRef=n,this.injector=l,this.componentFactoryResolver=d}}class Ih extends xc{constructor(r,n,l,d){super(),this.templateRef=r,this.viewContainerRef=n,this.context=l,this.injector=d}get origin(){return this.templateRef.elementRef}attach(r,n=this.context){return this.context=n,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Bg extends xc{constructor(r){super(),this.element=r instanceof s.SBq?r.nativeElement:r}}class Hg extends class Rc{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Th?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof Ih?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Bg?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(r,n,l,d,_){super(),this.outletElement=r,this._componentFactoryResolver=n,this._appRef=l,this._defaultInjector=d,this.attachDomPortal=D=>{const M=D.element,N=this._document.createComment("dom-portal");M.parentNode.insertBefore(N,M),this.outletElement.appendChild(M),this._attachedPortal=D,super.setDisposeFn(()=>{N.parentNode&&N.parentNode.replaceChild(M,N)})},this._document=_}attachComponentPortal(r){const l=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let d;return r.viewContainerRef?(d=r.viewContainerRef.createComponent(l,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>d.destroy())):(d=l.create(r.injector||this._defaultInjector||s.zs3.NULL),this._appRef.attachView(d.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(d.hostView),d.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(d)),this._attachedPortal=r,d}attachTemplatePortal(r){let n=r.viewContainerRef,l=n.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return l.rootNodes.forEach(d=>this.outletElement.appendChild(d)),l.detectChanges(),this.setDisposeFn(()=>{let d=n.indexOf(l);-1!==d&&n.remove(d)}),this._attachedPortal=r,l}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Yv=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({}),o})();class Zv{constructor(r,n){this._parentInjector=r,this._customTokens=n}get(r,n){const l=this._customTokens.get(r);return typeof l<"u"?l:this._parentInjector.get(r,n)}}var Kv=f(6451),qv=f(5032);const Pc=_h();class Fc{constructor(r,n){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Bt(-this._previousScrollPosition.left),r.style.top=Bt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,l=r.style,d=this._document.body.style,_=l.scrollBehavior||"",D=d.scrollBehavior||"";this._isEnabled=!1,l.left=this._previousHTMLStyles.left,l.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Pc&&(l.scrollBehavior=d.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Pc&&(l.scrollBehavior=_,d.scrollBehavior=D)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const n=this._document.body,l=this._viewportRuler.getViewportSize();return n.scrollHeight>l.height||n.scrollWidth>l.width}}class Rh{constructor(r,n,l,d){this._scrollDispatcher=r,this._ngZone=n,this._viewportRuler=l,this._config=d,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class kc{enable(){}disable(){}attach(){}}function $s(o,r){return r.some(n=>o.bottomn.bottom||o.rightn.right)}function Ph(o,r){return r.some(n=>o.topn.bottom||o.leftn.right)}class Nc{constructor(r,n,l,d){this._scrollDispatcher=r,this._viewportRuler=n,this._ngZone=l,this._config=d,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:l,height:d}=this._viewportRuler.getViewportSize();$s(n,[{width:l,height:d,bottom:d,right:l,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Gs=(()=>{class o{constructor(n,l,d,_){this._scrollDispatcher=n,this._viewportRuler=l,this._ngZone=d,this.noop=()=>new kc,this.close=D=>new Rh(this._scrollDispatcher,this._ngZone,this._viewportRuler,D),this.block=()=>new Fc(this._viewportRuler,this._document),this.reposition=D=>new Nc(this._scrollDispatcher,this._viewportRuler,this._ngZone,D),this._document=_}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(bh),s.LFG(Sh),s.LFG(s.R0b),s.LFG(g.K0))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Fh{constructor(r){if(this.scrollStrategy=new kc,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const n=Object.keys(r);for(const l of n)void 0!==r[l]&&(this[l]=r[l])}}}class kh{constructor(r,n){this.connectionPair=r,this.scrollableViewProperties=n}}let Nh=(()=>{class o{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){const l=this._attachedOverlays.indexOf(n);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),$g=(()=>{class o extends Nh{constructor(n,l){super(n),this._ngZone=l,this._keydownListener=d=>{const _=this._attachedOverlays;for(let D=_.length-1;D>-1;D--)if(_[D]._keydownEvents.observers.length>0){const M=_[D]._keydownEvents;this._ngZone?this._ngZone.run(()=>M.next(d)):M.next(d);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0),s.LFG(s.R0b,8))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Lc=(()=>{class o extends Nh{constructor(n,l,d){super(n),this._platform=l,this._ngZone=d,this._cursorStyleIsSet=!1,this._pointerDownListener=_=>{this._pointerDownEventTarget=yh(_)},this._clickListener=_=>{const D=yh(_),M="click"===_.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:D;this._pointerDownEventTarget=null;const N=this._attachedOverlays.slice();for(let q=N.length-1;q>-1;q--){const me=N[q];if(me._outsidePointerEvents.observers.length<1||!me.hasAttached())continue;if(me.overlayElement.contains(D)||me.overlayElement.contains(M))break;const de=me._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>de.next(_)):de.next(_)}}}add(n){if(super.add(n),!this._isAttached){const l=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(l)):this._addEventListeners(l),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=l.style.cursor,l.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(g.K0),s.LFG(Vs),s.LFG(s.R0b,8))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Lh=(()=>{class o{constructor(n,l){this._platform=l,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||ja()){const d=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let _=0;_this._backdropClick.next(de),this._backdropTransitionendHandler=de=>{this._disposeBackdrop(de.target)},this._keydownEvents=new $e.x,this._outsidePointerEvents=new $e.x,d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=d.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const n=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Sr.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof n?.onDestroy&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Bt(this._config.width),r.height=Bt(this._config.height),r.minWidth=Bt(this._config.minWidth),r.minHeight=Bt(this._config.minHeight),r.maxWidth=Bt(this._config.maxWidth),r.maxHeight=Bt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,n,l){const d=wg(n||[]).filter(_=>!!_);d.length&&(l?r.classList.add(...d):r.classList.remove(...d))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(function Ug(o){return(0,Ft.e)((r,n)=>{(0,Gn.Xf)(o).subscribe((0,ft.x)(n,()=>n.complete(),qv.Z)),!n.closed&&r.subscribe(n)})}((0,Kv.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Vh="cdk-overlay-connected-position-bounding-box",Bh=/([A-Za-z%]+)$/;class zg{constructor(r,n,l,d,_){this._viewportRuler=n,this._document=l,this._platform=d,this._overlayContainer=_,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new $e.x,this._resizeSubscription=Wn.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Vh),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,n=this._overlayRect,l=this._viewportRect,d=this._containerRect,_=[];let D;for(let M of this._preferredPositions){let N=this._getOriginPoint(r,d,M),q=this._getOverlayPoint(N,n,M),me=this._getOverlayFit(q,n,l,M);if(me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(M,N);this._canFitWithFlexibleDimensions(me,q,l)?_.push({position:M,origin:N,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(N,M)}):(!D||D.overlayFit.visibleAreaN&&(N=me,M=q)}return this._isPushed=!1,void this._applyPosition(M.position,M.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(D.position,D.originPoint);this._applyPosition(D.position,D.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Pi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Vh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,n)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,n,l){let d,_;if("center"==l.originX)d=r.left+r.width/2;else{const D=this._isRtl()?r.right:r.left,M=this._isRtl()?r.left:r.right;d="start"==l.originX?D:M}return n.left<0&&(d-=n.left),_="center"==l.originY?r.top+r.height/2:"top"==l.originY?r.top:r.bottom,n.top<0&&(_-=n.top),{x:d,y:_}}_getOverlayPoint(r,n,l){let d,_;return d="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,_="center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height,{x:r.x+d,y:r.y+_}}_getOverlayFit(r,n,l,d){const _=Ga(n);let{x:D,y:M}=r,N=this._getOffset(d,"x"),q=this._getOffset(d,"y");N&&(D+=N),q&&(M+=q);let qe=0-M,at=M+_.height-l.height,Dt=this._subtractOverflows(_.width,0-D,D+_.width-l.width),Ut=this._subtractOverflows(_.height,qe,at),pn=Dt*Ut;return{visibleArea:pn,isCompletelyWithinViewport:_.width*_.height===pn,fitsInViewportVertically:Ut===_.height,fitsInViewportHorizontally:Dt==_.width}}_canFitWithFlexibleDimensions(r,n,l){if(this._hasFlexibleDimensions){const d=l.bottom-n.y,_=l.right-n.x,D=an(this._overlayRef.getConfig().minHeight),M=an(this._overlayRef.getConfig().minWidth),q=r.fitsInViewportHorizontally||null!=M&&M<=_;return(r.fitsInViewportVertically||null!=D&&D<=d)&&q}return!1}_pushOverlayOnScreen(r,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const d=Ga(n),_=this._viewportRect,D=Math.max(r.x+d.width-_.width,0),M=Math.max(r.y+d.height-_.height,0),N=Math.max(_.top-l.top-r.y,0),q=Math.max(_.left-l.left-r.x,0);let me=0,de=0;return me=d.width<=_.width?q||-D:r.xDt&&!this._isInitialRender&&!this._growAfterOpen&&(D=r.y-Dt/2)}if("end"===n.overlayX&&!d||"start"===n.overlayX&&d)qe=l.width-r.x+this._viewportMargin,me=r.x-this._viewportMargin;else if("start"===n.overlayX&&!d||"end"===n.overlayX&&d)de=r.x,me=l.right-r.x;else{const at=Math.min(l.right-r.x+l.left,r.x),Dt=this._lastBoundingBoxSize.width;me=2*at,de=r.x-at,me>Dt&&!this._isInitialRender&&!this._growAfterOpen&&(de=r.x-Dt/2)}return{top:D,left:de,bottom:M,right:qe,width:me,height:_}}_setBoundingBoxStyles(r,n){const l=this._calculateBoundingBoxRect(r,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));const d={};if(this._hasExactPosition())d.top=d.left="0",d.bottom=d.right=d.maxHeight=d.maxWidth="",d.width=d.height="100%";else{const _=this._overlayRef.getConfig().maxHeight,D=this._overlayRef.getConfig().maxWidth;d.height=Bt(l.height),d.top=Bt(l.top),d.bottom=Bt(l.bottom),d.width=Bt(l.width),d.left=Bt(l.left),d.right=Bt(l.right),d.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",d.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",_&&(d.maxHeight=Bt(_)),D&&(d.maxWidth=Bt(D))}this._lastBoundingBoxSize=l,Pi(this._boundingBox.style,d)}_resetBoundingBoxStyles(){Pi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Pi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,n){const l={},d=this._hasExactPosition(),_=this._hasFlexibleDimensions,D=this._overlayRef.getConfig();if(d){const me=this._viewportRuler.getViewportScrollPosition();Pi(l,this._getExactOverlayY(n,r,me)),Pi(l,this._getExactOverlayX(n,r,me))}else l.position="static";let M="",N=this._getOffset(n,"x"),q=this._getOffset(n,"y");N&&(M+=`translateX(${N}px) `),q&&(M+=`translateY(${q}px)`),l.transform=M.trim(),D.maxHeight&&(d?l.maxHeight=Bt(D.maxHeight):_&&(l.maxHeight="")),D.maxWidth&&(d?l.maxWidth=Bt(D.maxWidth):_&&(l.maxWidth="")),Pi(this._pane.style,l)}_getExactOverlayY(r,n,l){let d={top:"",bottom:""},_=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(_=this._pushOverlayOnScreen(_,this._overlayRect,l)),"bottom"===r.overlayY?d.bottom=this._document.documentElement.clientHeight-(_.y+this._overlayRect.height)+"px":d.top=Bt(_.y),d}_getExactOverlayX(r,n,l){let D,d={left:"",right:""},_=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(_=this._pushOverlayOnScreen(_,this._overlayRect,l)),D=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===D?d.right=this._document.documentElement.clientWidth-(_.x+this._overlayRect.width)+"px":d.left=Bt(_.x),d}_getScrollVisibility(){const r=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(d=>d.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ph(r,l),isOriginOutsideView:$s(r,l),isOverlayClipped:Ph(n,l),isOverlayOutsideView:$s(n,l)}}_subtractOverflows(r,...n){return n.reduce((l,d)=>l-Math.max(d,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,l=this._viewportRuler.getViewportScrollPosition();return{top:l.top+this._viewportMargin,left:l.left+this._viewportMargin,right:l.left+r-this._viewportMargin,bottom:l.top+n-this._viewportMargin,width:r-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,n){return"x"===n?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&wg(r).forEach(n=>{""!==n&&-1===this._appliedPanelClasses.indexOf(n)&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof s.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const n=r.width||0,l=r.height||0;return{top:r.y,bottom:r.y+l,left:r.x,right:r.x+n,height:l,width:n}}}function Pi(o,r){for(let n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o}function an(o){if("number"!=typeof o&&null!=o){const[r,n]=o.split(Bh);return n&&"px"!==n?null:parseFloat(r)}return o||null}function Ga(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const Jt="cdk-global-overlay-wrapper";class zs{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const n=r.getConfig();this._overlayRef=r,this._width&&!n.width&&r.updateSize({width:this._width}),this._height&&!n.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Jt),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),{width:d,height:_,maxWidth:D,maxHeight:M}=l,N=!("100%"!==d&&"100vw"!==d||D&&"100%"!==D&&"100vw"!==D),q=!("100%"!==_&&"100vh"!==_||M&&"100%"!==M&&"100vh"!==M),me=this._xPosition,de=this._xOffset,qe="rtl"===this._overlayRef.getConfig().direction;let at="",Dt="",Ut="";N?Ut="flex-start":"center"===me?(Ut="center",qe?Dt=de:at=de):qe?"left"===me||"end"===me?(Ut="flex-end",at=de):("right"===me||"start"===me)&&(Ut="flex-start",Dt=de):"left"===me||"start"===me?(Ut="flex-start",at=de):("right"===me||"end"===me)&&(Ut="flex-end",Dt=de),r.position=this._cssPosition,r.marginLeft=N?"0":at,r.marginTop=q?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=N?"0":Dt,n.justifyContent=Ut,n.alignItems=q?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(Jt),l.justifyContent=l.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Vc=(()=>{class o{constructor(n,l,d,_){this._viewportRuler=n,this._document=l,this._platform=d,this._overlayContainer=_}global(){return new zs}flexibleConnectedTo(n){return new zg(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Sh),s.LFG(g.K0),s.LFG(Vs),s.LFG(Lh))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yg=0,Bc=(()=>{class o{constructor(n,l,d,_,D,M,N,q,me,de,qe,at){this.scrollStrategies=n,this._overlayContainer=l,this._componentFactoryResolver=d,this._positionBuilder=_,this._keyboardDispatcher=D,this._injector=M,this._ngZone=N,this._document=q,this._directionality=me,this._location=de,this._outsideClickDispatcher=qe,this._animationsModuleType=at}create(n){const l=this._createHostElement(),d=this._createPaneElement(l),_=this._createPortalOutlet(d),D=new Fh(n);return D.direction=D.direction||this._directionality.value,new Gg(_,l,d,D,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(n){const l=this._document.createElement("div");return l.id="cdk-overlay-"+Yg++,l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}_createHostElement(){const n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new Hg(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Gs),s.LFG(Lh),s.LFG(s._Vd),s.LFG(Vc),s.LFG($g),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(g.K0),s.LFG(Mc),s.LFG(g.Ye),s.LFG(Lc),s.LFG(s.QbO,8))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const Jg={provide:new s.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Bc],useFactory:function Uh(o){return()=>o.scrollStrategies.reposition()}};let Qg=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[Bc,Jg],imports:[Ic,Yv,Mh,Mh]}),o})(),Hc=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Qg]}),o})(),fr=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Fn,kn,To,ih,Hc,kn,To,ih,Hc]}),o})(),Xg=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-forbidden"]],decls:6,vars:0,template:function(n,l){1&n&&(s.TgZ(0,"h1"),s._uU(1,"Oooppss... "),s._UZ(2,"br"),s._uU(3,"You do not have access to this area!"),s.qZA(),s.TgZ(4,"p"),s._uU(5,"Please try to login or ask your administrator."),s.qZA())},encapsulation:2}),o})(),Ro=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-page-not-found"]],decls:4,vars:0,template:function(n,l){1&n&&(s.TgZ(0,"h1"),s._uU(1,"Oooppss... "),s._UZ(2,"br"),s._uU(3,"This page does not exist!"),s.qZA())},encapsulation:2}),o})();class Nn{constructor(r,n,l){this.overlay=r,this.content=n,this.data=l,this.afterClosed=new $e.x,this.afterClosed$=this.afterClosed.asObservable(),r.backdropClick().subscribe(()=>{this.closeInternal("backdropClick",null)})}close(r){this.closeInternal("close",r)}closeInternal(r,n){this.overlay.dispose(),this.afterClosed.next({type:r,data:n}),this.afterClosed.complete()}}let za=(()=>{class o{constructor(n){this.popoverRef=n,this.deleteConfirmation={itemText:"the item",confirm:!1},this.deleteConfirmation=this.popoverRef.data}no(){this.emit(!1)}yes(){this.emit(!0)}emit(n){this.deleteConfirmation.confirm=n,this.popoverRef.close(this.deleteConfirmation)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Nn))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-delete-confirmation"]],decls:7,vars:1,consts:function(){let r,n,l;return r=$localize`:␟6249f86faad4076120dfe278fd082b0d002c721b␟396024377166249863:Do you really want to delete '${"\ufffd0\ufffd"}:INTERPOLATION:'?`,n=$localize`:␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`,l=$localize`:␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,[r,[1,"button__bar","button__bar--aligned-right"],["type","button",1,"button--secondary",3,"click"],n,["type","button",3,"click"],l]},template:function(n,l){1&n&&(s.TgZ(0,"h3"),s.SDv(1,0),s.qZA(),s.TgZ(2,"div",1)(3,"button",2),s.NdJ("click",function(){return l.no()}),s.SDv(4,3),s.qZA(),s.TgZ(5,"button",4),s.NdJ("click",function(){return l.yes()}),s.SDv(6,5),s.qZA()()),2&n&&(s.xp6(1),s.pQV(l.deleteConfirmation.itemText),s.QtT(1))},encapsulation:2}),o})();function e_(o,r){if(1&o&&s._UZ(0,"div",4),2&o){const n=s.oxw();s.Q6J("innerHTML",n.content,s.oJD)}}function ry(o,r){1&o&&s.GkF(0)}function iy(o,r){if(1&o&&(s.ynx(0),s.YNc(1,ry,1,0,"ng-container",5),s.BQk()),2&o){const n=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",n.content)("ngTemplateOutletContext",n.context)}}function jh(o,r){1&o&&s.GkF(0)}function oy(o,r){if(1&o&&(s.ynx(0),s.YNc(1,jh,1,0,"ng-container",6),s.BQk()),2&o){const n=s.oxw();s.xp6(1),s.Q6J("ngComponentOutlet",n.content)}}let pr=(()=>{class o{constructor(n){this.popoverRef=n,this.renderMethod="component"}ngOnInit(){this.content=this.popoverRef.content,"string"==typeof this.content&&(this.renderMethod="text"),this.content instanceof s.Rgc&&(this.renderMethod="template",this.context={close:this.popoverRef.close.bind(this.popoverRef)})}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Nn))},o.\u0275cmp=s.Xpm({type:o,selectors:[["ng-component"]],decls:5,vars:4,consts:[[1,"popover"],[3,"ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngComponentOutlet"]],template:function(n,l){1&n&&(s.TgZ(0,"div",0),s.ynx(1,1),s.YNc(2,e_,1,1,"div",2),s.YNc(3,iy,2,2,"ng-container",3),s.YNc(4,oy,2,1,"ng-container",3),s.BQk(),s.qZA()),2&n&&(s.xp6(1),s.Q6J("ngSwitch",l.renderMethod),s.xp6(1),s.Q6J("ngSwitchCase","text"),s.xp6(1),s.Q6J("ngSwitchCase","template"),s.xp6(1),s.Q6J("ngSwitchCase","component"))},dependencies:[g.$G,g.tP,g.RF,g.n9],encapsulation:2}),o})(),Po=(()=>{class o{constructor(n,l){this.overlay=n,this.injector=l}open({origin:n,content:l,data:d,width:_,height:D,hasBackdrop:M=!0}){const N=this.overlay.create(this.getOverlayConfig({origin:n,width:_,height:D,hasBackdrop:M})),q=new Nn(N,l,d),me=this.createInjector(q,this.injector);return N.attach(new Th(pr,null,me)),q}createInjector(n,l){const d=new WeakMap([[Nn,n]]);return new Zv(l,d)}getOverlayConfig({origin:n,width:l,height:d,hasBackdrop:_}){return new Fh({hasBackdrop:_,width:l,height:d,backdropClass:"popover-backdrop",positionStrategy:this.getOverlayPosition(n),scrollStrategy:this.overlay.scrollStrategies.reposition()})}getOverlayPosition(n){return this.overlay.position().global().centerHorizontally().centerVertically()}getPositions(){return[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"}]}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Bc),s.LFG(s.zs3))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function vn(o){const r=o.prototype.ngOnDestroy;o.prototype.ngOnDestroy=function(){for(const n in this){const l=this[n];l&&"function"==typeof l.unsubscribe&&l.unsubscribe()}r&&"function"==typeof r&&r.apply(this,arguments)}}let t_=(()=>{class o{constructor(){this.baseUrl="/api"}createRawUrl(n){return`${n}`}createApiUrl(n){return`${this.baseUrl}/${n}`}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Fi=(()=>{class o{constructor(n,l){this.http=n,this.api=l}get(n,l){const d=this.api.createApiUrl(n);return this.http.get(d,{params:l})}getRaw(n,l){return this.http.get(n,{params:l})}post(n,l){const d=this.api.createApiUrl(n);return this.http.post(d,l)}postFile(n,l,d=!1){const _=this.api.createApiUrl(n),D=new FormData;D.append("file",l);const M=new gt.aW("POST",_,D,{reportProgress:d});return this.http.request(M)}put(n,l){const d=this.api.createApiUrl(n);return this.http.put(d,l)}delete(n){const l=this.api.createApiUrl(n);return this.http.delete(l)}getBlob(n){const l=this.api.createApiUrl(n);return this.http.get(l,{responseType:"blob"})}handleError(n){if(console.log("Raw error",n),n.error instanceof ErrorEvent)console.error("An error occured:",n);else{if(400===n.status){const l=Array();return Object.keys(n.error).forEach(_=>{Array.isArray(n.error[_])&&n.error[_].forEach(D=>l.push(D))}),(0,On._)({succeeded:!1,errors:l})}console.error(`Backend returned code ${n.status}: ${n.error.title}`)}return(0,On._)("Somehting went wrong. Please try again later.")}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(gt.eN),s.LFG(t_))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class $h{}var xt=(()=>{return(o=xt||(xt={}))[o.Success=0]="Success",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Danger=3]="Danger",xt;var o})();let Or=(()=>{class o extends $h{constructor(n,l,d,_){super(),this.title=n,this.message=l,this.level=d,this._hasAction=!1,this._viewed=!1,this.action=void 0,this.level=void 0!==d?d:xt.Info,_&&(this._hasAction=!0,this.action=_)}get viewed(){return this._viewed}set viewed(n){this._viewed=n,this._viewed&&this.hasAction&&delete this.action}get hasAction(){return this._hasAction}getType(){return o.KEY}}return o.KEY="StatusMessage",o})(),ln=(()=>{class o{constructor(){this.subscribers={}}subsribe(n){const l=(new Date).valueOf();return this.subscribers[l]=n,l}unsubscribe(n){delete this.subscribers[n]}publish(n){const l=this.getSubscribersForMessage(n);0!==l.length&&l.forEach(d=>{d.onMessage(n)})}getSubscribersForMessage(n){const l=new Array;for(const d in this.subscribers)if(this.subscribers.hasOwnProperty(d)){const _=this.subscribers[d];_.getType()===n.getType()&&l.push(_)}return l}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Uc=(()=>{class o{constructor(n){this.oauthService=n}intercept(n,l){if(this.oauthService.hasValidAccessToken()){const d=this.oauthService.getAccessToken();n=n.clone({headers:n.headers.set("Authorization","Bearer "+d)})}return l.handle(n)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(ks.Ct))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Gh=(()=>{class o{constructor(n,l){this.router=n,this.messageBus=l}intercept(n,l){return l.handle(n).pipe((0,wt.b)(d=>{},d=>{d instanceof gt.UA&&(403===d.status?this.router.navigate(["forbidden"]):(console.log(d),this.messageBus.publish(new Or(d.statusText,d.message,xt.Danger))))}))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(_t),s.LFG(ln))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wa=(()=>{class o{constructor(n,l){this.oauthService=n,this.router=l}canActivate(){const n=this.oauthService.hasValidAccessToken();return n||this.router.navigate(["forbidden"]),n}canActivateChild(){return this.canActivate()}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(ks.Ct),s.LFG(_t))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Fo=[{provide:gt.TP,useClass:Uc,multi:!0},{provide:gt.TP,useClass:Gh,multi:!0}];let Ws=(()=>{class o{constructor(n){this.oauth=n,this.username=o.ANONYMOUS,this.claims=new Array}get isAuthenticated(){return this.username!==o.ANONYMOUS}get userName(){return this.username}get userClaims(){return this.claims}reset(){this.loadProfile()}hasClaim(n){return!(!this.claims||!n)&&this.claims.some(l=>l===n)}loadProfile(){this.isAuthenticated||this.oauth.loadUserProfile().then(n=>{this.username=n.info.name||n.info.email,this.claims=Array.isArray(n.info.role)?n.info.role:[n.info.role]})}}return o.ANONYMOUS="anonymous",o.\u0275fac=function(n){return new(n||o)(s.LFG(ks.Ct))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),zh=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,gt.JF]}),o})(),jc=(()=>{class o{constructor(){this.items=new Array}ngOnDestroy(){this.items=[]}register(n){this.items.some(l=>l.id===n.id)||this.items.push(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})(),$c=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[jc],imports:[g.ez,Fn,kn]}),o})(),Wh=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Fn,fr,$c]}),o})(),r_=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,kn]}),o})(),Yh=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Fn,fr,r_]}),o})(),i_=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Wh,Yh,Wh,Yh]}),o})();function o_(o,r){1&o&&(s.TgZ(0,"div",2),s.Hsn(1,1),s.qZA())}const s_=[[["","detail",""]],[["","list",""]]],Zh=["[detail]","[list]"];let ei=(()=>{class o{constructor(){this.style="pane",this.onlydetail=!1}ngOnInit(){this.style=this.onlydetail?"pane pane--onlydetail":"pane"}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-pane"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.style)},inputs:{onlydetail:"onlydetail"},ngContentSelectors:Zh,decls:3,vars:1,consts:[["class","pane__list",4,"ngIf"],[1,"pane__detail"],[1,"pane__list"]],template:function(n,l){1&n&&(s.F$t(s_),s.YNc(0,o_,2,0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA()),2&n&&s.Q6J("ngIf",!l.onlydetail)},dependencies:[g.O5]}),o})();function Kh(o,r){1&o&&(s.TgZ(0,"p"),s._uU(1,"Please login..."),s.qZA())}function Gc(o,r){1&o&&(s.TgZ(0,"p"),s._uU(1,"Now go and configure something meaningful!"),s.qZA())}function a_(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"p"),s._uU(1,"Change my "),s.TgZ(2,"a",6),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.openProfile())}),s._uU(3,"profile"),s.qZA(),s._uU(4,"... "),s.qZA()}}function l_(o,r){1&o&&(s.TgZ(0,"p"),s._uU(1,"It seems that you have not given access to this kind of data!"),s.qZA())}const qh=[{path:"home",component:(()=>{class o{constructor(n,l){this.user=n,this.http=l}get isAuthenticated(){return this.user.isAuthenticated}get isAdmin(){return this.user.hasClaim("Administrator")}get userName(){return this.user.userName}openProfile(){window.location.replace((0,s.X6Q)()?"https://localhost:5001/account/manage":window.location.origin+"/account/manage")}loadData(){this.loadPrivateData(),this.loadPublicData()}loadPrivateData(){this.http.getRaw(`${o.API_SERVICE}/api/resource/private`).subscribe(l=>{this.privateInfo=l})}loadPublicData(){this.http.getRaw(`${o.API_SERVICE}/api/resource/public`).subscribe(l=>{this.publicInfo=l})}}return o.API_SERVICE="https://localhost:5001",o.\u0275fac=function(n){return new(n||o)(s.Y36(Ws),s.Y36(Fi))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-home"]],decls:33,vars:11,consts:function(){let r;return r=$localize`:␟d7c12e800bcc35d8b020f9b573be67b2e557c093␟5507794784754584432:Hello ${"\ufffd0\ufffd"}:INTERPOLATION:!`,[["onlydetail","true"],["detail",""],r,[4,"ngIf"],["href","https://localhost:5001/swagger","target","_blank"],[3,"click"],["href","javascript:void(0)",3,"click"]]},template:function(n,l){1&n&&(s.TgZ(0,"tw-pane",0)(1,"div",1)(2,"h3"),s.SDv(3,2),s.qZA(),s.YNc(4,Kh,2,0,"p",3),s.YNc(5,Gc,2,0,"p",3),s.YNc(6,a_,5,0,"p",3),s.YNc(7,l_,2,0,"p",3),s._UZ(8,"br")(9,"hr"),s.TgZ(10,"div")(11,"h3"),s._uU(12,"Load resource info data"),s.qZA(),s.TgZ(13,"p"),s._uU(14,"To test it with Swagger go "),s.TgZ(15,"a",4),s._uU(16,"here"),s.qZA(),s._uU(17,"."),s.qZA(),s.TgZ(18,"p")(19,"button",5),s.NdJ("click",function(){return l.loadData()}),s._uU(20,"Load"),s.qZA()(),s.TgZ(21,"h5"),s._uU(22,"Private info"),s.qZA(),s.TgZ(23,"div")(24,"pre"),s._uU(25),s.ALo(26,"json"),s.qZA()(),s.TgZ(27,"h5"),s._uU(28,"Public info"),s.qZA(),s.TgZ(29,"div")(30,"pre"),s._uU(31),s.ALo(32,"json"),s.qZA()()()()()),2&n&&(s.xp6(3),s.pQV(l.userName),s.QtT(3),s.xp6(1),s.Q6J("ngIf",!l.isAuthenticated),s.xp6(1),s.Q6J("ngIf",l.isAuthenticated&&l.isAdmin),s.xp6(1),s.Q6J("ngIf",l.isAuthenticated&&l.isAdmin),s.xp6(1),s.Q6J("ngIf",l.isAuthenticated&&!l.isAdmin),s.xp6(18),s.Oqu(s.lcZ(26,7,l.privateInfo)),s.xp6(6),s.Oqu(s.lcZ(32,9,l.publicInfo)))},dependencies:[g.O5,ei,g.Ts],encapsulation:2}),o})()}];let ki=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Fn.forChild(qh),fr]}),o})();var Jh=f(4742),Qh=f(1810);function zc(...o){const r=(0,st.jO)(o),{args:n,keys:l}=(0,Jh.D)(o),d=new lt.y(_=>{const{length:D}=n;if(!D)return void _.complete();const M=new Array(D);let N=D,q=D;for(let me=0;me{de||(de=!0,q--),M[me]=qe},()=>N--,void 0,()=>{(!N||!de)&&(q||_.next(l?(0,Qh.n)(l,M):M),_.complete())}))}});return r?d.pipe((0,sh.Z)(r)):d}let u_=(()=>{class o{constructor(n,l){this._renderer=n,this._elementRef=l,this.onChange=d=>{},this.onTouched=()=>{}}setProperty(n,l){this._renderer.setProperty(this._elementRef.nativeElement,n,l)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.Qsj),s.Y36(s.SBq))},o.\u0275dir=s.lG2({type:o}),o})(),gr=(()=>{class o extends u_{}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275dir=s.lG2({type:o,features:[s.qOj]}),o})();const Ln=new s.OlP("NgValueAccessor"),Xh={provide:Ln,useExisting:(0,s.Gpc)(()=>Ya),multi:!0};let Ya=(()=>{class o extends gr{writeValue(n){this.setProperty("checked",n)}}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275dir=s.lG2({type:o,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,l){1&n&&s.NdJ("change",function(_){return l.onChange(_.target.checked)})("blur",function(){return l.onTouched()})},features:[s._Bn([Xh]),s.qOj]}),o})();const ef={provide:Ln,useExisting:(0,s.Gpc)(()=>An),multi:!0},tf=new s.OlP("CompositionEventMode");let An=(()=>{class o extends u_{constructor(n,l,d){super(n,l),this._compositionMode=d,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Wc(){const o=(0,g.q)()?(0,g.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(tf,8))},o.\u0275dir=s.lG2({type:o,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,l){1&n&&s.NdJ("input",function(_){return l._handleInput(_.target.value)})("blur",function(){return l.onTouched()})("compositionstart",function(){return l._compositionStart()})("compositionend",function(_){return l._compositionEnd(_.target.value)})},features:[s._Bn([ef]),s.qOj]}),o})();function xr(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function Ka(o){return null!=o&&"number"==typeof o.length}const Qt=new s.OlP("NgValidators"),_r=new s.OlP("NgAsyncValidators"),Ys=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Rr{static min(r){return function Yc(o){return r=>{if(xr(r.value)||xr(o))return null;const n=parseFloat(r.value);return!isNaN(n)&&n{if(xr(r.value)||xr(o))return null;const n=parseFloat(r.value);return!isNaN(n)&&n>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return function rf(o){return xr(o.value)?{required:!0}:null}(r)}static requiredTrue(r){return function Zc(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function qa(o){return xr(o.value)||Ys.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function Kc(o){return r=>xr(r.value)||!Ka(r.value)?null:r.value.lengthKa(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return qc(r)}static nullValidator(r){return null}static compose(r){return lf(r)}static composeAsync(r){return cf(r)}}function qc(o){if(!o)return Ja;let r,n;return"string"==typeof o?(n="","^"!==o.charAt(0)&&(n+="^"),n+=o,"$"!==o.charAt(o.length-1)&&(n+="$"),r=new RegExp(n)):(n=o.toString(),r=o),l=>{if(xr(l.value))return null;const d=l.value;return r.test(d)?null:{pattern:{requiredPattern:n,actualValue:d}}}}function Ja(o){return null}function Jc(o){return null!=o}function sf(o){return(0,s.QGY)(o)?(0,ye.D)(o):o}function af(o){let r={};return o.forEach(n=>{r=null!=n?{...r,...n}:r}),0===Object.keys(r).length?null:r}function Vn(o,r){return r.map(n=>n(o))}function Qc(o){return o.map(r=>function h_(o){return!o.validate}(r)?r:n=>r.validate(n))}function lf(o){if(!o)return null;const r=o.filter(Jc);return 0==r.length?null:function(n){return af(Vn(n,r))}}function Xc(o){return null!=o?lf(Qc(o)):null}function cf(o){if(!o)return null;const r=o.filter(Jc);return 0==r.length?null:function(n){return zc(Vn(n,r).map(sf)).pipe((0,Ge.U)(af))}}function eu(o){return null!=o?cf(Qc(o)):null}function tu(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function uf(o){return o._rawValidators}function df(o){return o._rawAsyncValidators}function nu(o){return o?Array.isArray(o)?o:[o]:[]}function Be(o,r){return Array.isArray(o)?o.includes(r):o===r}function ru(o,r){const n=nu(r);return nu(o).forEach(d=>{Be(n,d)||n.push(d)}),n}function iu(o,r){return nu(r).filter(n=>!Be(o,n))}class ou{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=Xc(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=eu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,n){return!!this.control&&this.control.hasError(r,n)}getError(r,n){return this.control?this.control.getError(r,n):null}}class fn extends ou{get formDirective(){return null}get path(){return null}}class ti extends ou{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class su{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ni=(()=>{class o extends su{constructor(n){super(n)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(ti,2))},o.\u0275dir=s.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,l){2&n&&s.ekj("ng-untouched",l.isUntouched)("ng-touched",l.isTouched)("ng-pristine",l.isPristine)("ng-dirty",l.isDirty)("ng-valid",l.isValid)("ng-invalid",l.isInvalid)("ng-pending",l.isPending)},features:[s.qOj]}),o})(),Qa=(()=>{class o extends su{constructor(n){super(n)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(fn,10))},o.\u0275dir=s.lG2({type:o,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,l){2&n&&s.ekj("ng-untouched",l.isUntouched)("ng-touched",l.isTouched)("ng-pristine",l.isPristine)("ng-dirty",l.isDirty)("ng-valid",l.isValid)("ng-invalid",l.isInvalid)("ng-pending",l.isPending)("ng-submitted",l.isSubmitted)},features:[s.qOj]}),o})();const ri="VALID",el="INVALID",Ni="PENDING",Ks="DISABLED";function au(o){return(qs(o)?o.validators:o)||null}function mf(o){return Array.isArray(o)?Xc(o):o||null}function lu(o,r){return(qs(r)?r.asyncValidators:o)||null}function vf(o){return Array.isArray(o)?eu(o):o||null}function qs(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}function yf(o,r,n){const l=o.controls;if(!(r?Object.keys(l):l).length)throw new s.vHH(1e3,"");if(!l[n])throw new s.vHH(1001,"")}function cu(o,r,n){o._forEachChild((l,d)=>{if(void 0===n[d])throw new s.vHH(1002,"")})}class Js{constructor(r,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=n,this._composedValidatorFn=mf(this._rawValidators),this._composedAsyncValidatorFn=vf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===ri}get invalid(){return this.status===el}get pending(){return this.status==Ni}get disabled(){return this.status===Ks}get enabled(){return this.status!==Ks}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=mf(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=vf(r)}addValidators(r){this.setValidators(ru(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(ru(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(iu(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(iu(r,this._rawAsyncValidators))}hasValidator(r){return Be(this._rawValidators,r)}hasAsyncValidator(r){return Be(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Ni,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const n=this._parentMarkedDirty(r.onlySelf);this.status=Ks,this.errors=null,this._forEachChild(l=>{l.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:n}),this._onDisabledChange.forEach(l=>l(!0))}enable(r={}){const n=this._parentMarkedDirty(r.onlySelf);this.status=ri,this._forEachChild(l=>{l.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:n}),this._onDisabledChange.forEach(l=>l(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ri||this.status===Ni)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ks:ri}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Ni,this._hasOwnPendingAsyncValidator=!0;const n=sf(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(l=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(l,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,n={}){this.errors=r,this._updateControlsErrors(!1!==n.emitEvent)}get(r){let n=r;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((l,d)=>l&&l._find(d),this)}getError(r,n){const l=n?this.get(n):this;return l&&l.errors?l.errors[r]:null}hasError(r,n){return!!this.getError(r,n)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?Ks:this.errors?el:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ni)?Ni:this._anyControlsHaveStatus(el)?el:ri}_anyControlsHaveStatus(r){return this._anyControls(n=>n.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){qs(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class Li extends Js{constructor(r,n,l){super(au(n),lu(l,n)),this.controls=r,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,n){return this.controls[r]?this.controls[r]:(this.controls[r]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(r,n,l={}){this.registerControl(r,n),this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}removeControl(r,n={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(r,n,l={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],n&&this.registerControl(r,n),this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,n={}){cu(this,0,r),Object.keys(r).forEach(l=>{yf(this,!0,l),this.controls[l].setValue(r[l],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(r,n={}){null!=r&&(Object.keys(r).forEach(l=>{const d=this.controls[l];d&&d.patchValue(r[l],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(r={},n={}){this._forEachChild((l,d)=>{l.reset(r[d],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(r,n,l)=>(r[l]=n.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(n,l)=>!!l._syncPendingControls()||n);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(n=>{const l=this.controls[n];l&&r(l,n)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[n,l]of Object.entries(this.controls))if(this.contains(n)&&r(l))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,l,d)=>((l.enabled||this.disabled)&&(n[d]=l.value),n))}_reduceChildren(r,n){let l=r;return this._forEachChild((d,_)=>{l=n(l,d,_)}),l}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}const Cf=Li;function Fr(o,r){return[...r.path,o]}function No(o,r){tl(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function uu(o,r){r.valueAccessor.registerOnChange(n=>{o._pendingValue=n,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&rl(o,r)})}(o,r),function Ef(o,r){const n=(l,d)=>{r.valueAccessor.writeValue(l),d&&r.viewToModelUpdate(l)};o.registerOnChange(n),r._registerOnDestroy(()=>{o._unregisterOnChange(n)})}(o,r),function kr(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&rl(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function Xn(o,r){if(r.valueAccessor.setDisabledState){const n=l=>{r.valueAccessor.setDisabledState(l)};o.registerOnDisabledChange(n),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(n)})}}(o,r)}function Qs(o,r,n=!0){const l=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(l),r.valueAccessor.registerOnTouched(l)),nl(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function Vi(o,r){o.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(r)})}function tl(o,r){const n=uf(o);null!==r.validator?o.setValidators(tu(n,r.validator)):"function"==typeof n&&o.setValidators([n]);const l=df(o);null!==r.asyncValidator?o.setAsyncValidators(tu(l,r.asyncValidator)):"function"==typeof l&&o.setAsyncValidators([l]);const d=()=>o.updateValueAndValidity();Vi(r._rawValidators,d),Vi(r._rawAsyncValidators,d)}function nl(o,r){let n=!1;if(null!==o){if(null!==r.validator){const d=uf(o);if(Array.isArray(d)&&d.length>0){const _=d.filter(D=>D!==r.validator);_.length!==d.length&&(n=!0,o.setValidators(_))}}if(null!==r.asyncValidator){const d=df(o);if(Array.isArray(d)&&d.length>0){const _=d.filter(D=>D!==r.asyncValidator);_.length!==d.length&&(n=!0,o.setAsyncValidators(_))}}}const l=()=>{};return Vi(r._rawValidators,l),Vi(r._rawAsyncValidators,l),n}function rl(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function ea(o,r){if(!o.hasOwnProperty("model"))return!1;const n=o.model;return!!n.isFirstChange()||!Object.is(r,n.currentValue)}function wf(o,r){if(!r)return null;let n,l,d;return Array.isArray(r),r.forEach(_=>{_.constructor===An?n=_:function hu(o){return Object.getPrototypeOf(o.constructor)===gr}(_)?l=_:d=_}),d||l||n||null}function E_(o,r){const n=o.indexOf(r);n>-1&&o.splice(n,1)}function bf(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const na=class extends Js{constructor(r=null,n,l){super(au(n),lu(l,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qs(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=bf(r)?r.value:r)}setValue(r,n={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(l=>l(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(r,n={}){this.setValue(r,n)}reset(r=this.defaultValue,n={}){this._applyFormState(r),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){E_(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){E_(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){bf(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},al=na,fy={provide:ti,useExisting:(0,s.Gpc)(()=>Bi)},b_=(()=>Promise.resolve(null))();let Bi=(()=>{class o extends ti{constructor(n,l,d,_,D){super(),this._changeDetectorRef=D,this.control=new na,this._registered=!1,this.update=new s.vpe,this._parent=n,this._setValidators(l),this._setAsyncValidators(d),this.valueAccessor=wf(0,_)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const l=n.name.previousValue;this.formDirective.removeControl({name:l,path:this._getPath(l)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),ea(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){No(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){b_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const l=n.isDisabled.currentValue,d=0!==l&&(0,s.D6c)(l);b_.then(()=>{d&&!this.control.disabled?this.control.disable():!d&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Fr(n,this._parent):[n]}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(fn,9),s.Y36(Qt,10),s.Y36(_r,10),s.Y36(Ln,10),s.Y36(s.sBO,8))},o.\u0275dir=s.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([fy]),s.qOj,s.TTD]}),o})(),S_=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275dir=s.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),o})();const py={provide:Ln,useExisting:(0,s.Gpc)(()=>mr),multi:!0};let mr=(()=>{class o extends gr{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=l=>{n(""==l?null:parseFloat(l))}}}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275dir=s.lG2({type:o,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,l){1&n&&s.NdJ("input",function(_){return l.onChange(_.target.value)})("blur",function(){return l.onTouched()})},features:[s._Bn([py]),s.qOj]}),o})(),pu=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({}),o})();const vr=new s.OlP("NgModelWithFormControlWarning"),vu={provide:fn,useExisting:(0,s.Gpc)(()=>Lo)};let Lo=(()=>{class o extends fn{constructor(n,l){super(),this.validators=n,this.asyncValidators=l,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(n),this._setAsyncValidators(l)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const l=this.form.get(n.path);return No(l,n),l.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),l}getControl(n){return this.form.get(n.path)}removeControl(n){Qs(n.control||null,n,!1),function C_(o,r){const n=o.indexOf(r);n>-1&&o.splice(n,1)}(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,l){this.form.get(n.path).setValue(l)}onSubmit(n){return this.submitted=!0,function ol(o,r){o._syncPendingControls(),r.forEach(n=>{const l=n.control;"submit"===l.updateOn&&l._pendingChange&&(n.viewToModelUpdate(l._pendingValue),l._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const l=n.control,d=this.form.get(n.path);l!==d&&(Qs(l||null,n),(o=>o instanceof na)(d)&&(No(d,n),n.control=d))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const l=this.form.get(n.path);(function il(o,r){tl(o,r)})(l,n),l.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const l=this.form.get(n.path);l&&function cy(o,r){return nl(o,r)}(l,n)&&l.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tl(this.form,this),this._oldForm&&nl(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Qt,10),s.Y36(_r,10))},o.\u0275dir=s.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(n,l){1&n&&s.NdJ("submit",function(_){return l.onSubmit(_)})("reset",function(){return l.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([vu]),s.qOj,s.TTD]}),o})();const Cu={provide:ti,useExisting:(0,s.Gpc)(()=>ii)};let ii=(()=>{class o extends ti{constructor(n,l,d,_,D){super(),this._ngModelWarningConfig=D,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(l),this._setAsyncValidators(d),this.valueAccessor=wf(0,_)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),ea(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Fr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(n){return new(n||o)(s.Y36(fn,13),s.Y36(Qt,10),s.Y36(_r,10),s.Y36(Ln,10),s.Y36(vr,8))},o.\u0275dir=s.lG2({type:o,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([Cu]),s.qOj,s.TTD]}),o})();const ll={provide:Ln,useExisting:(0,s.Gpc)(()=>ra),multi:!0};function Bo(o,r){return null==o?`${r}`:(r&&"object"==typeof r&&(r="Object"),`${o}: ${r}`.slice(0,50))}let ra=(()=>{class o extends gr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const d=Bo(this._getOptionId(n),n);this.setProperty("value",d)}registerOnChange(n){this.onChange=l=>{this.value=this._getOptionValue(l),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const l of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(l),n))return l;return null}_getOptionValue(n){const l=function M_(o){return o.split(":")[0]}(n);return this._optionMap.has(l)?this._optionMap.get(l):n}}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275dir=s.lG2({type:o,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,l){1&n&&s.NdJ("change",function(_){return l.onChange(_.target.value)})("blur",function(){return l.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([ll]),s.qOj]}),o})(),Du=(()=>{class o{constructor(n,l,d){this._element=n,this._renderer=l,this._select=d,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(Bo(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(ra,9))},o.\u0275dir=s.lG2({type:o,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),o})();const Eu={provide:Ln,useExisting:(0,s.Gpc)(()=>wu),multi:!0};function cl(o,r){return null==o?`${r}`:("string"==typeof r&&(r=`'${r}'`),r&&"object"==typeof r&&(r="Object"),`${o}: ${r}`.slice(0,50))}let wu=(()=>{class o extends gr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let l;if(this.value=n,Array.isArray(n)){const d=n.map(_=>this._getOptionId(_));l=(_,D)=>{_._setSelected(d.indexOf(D.toString())>-1)}}else l=(d,_)=>{d._setSelected(!1)};this._optionMap.forEach(l)}registerOnChange(n){this.onChange=l=>{const d=[],_=l.selectedOptions;if(void 0!==_){const D=_;for(let M=0;M{class o{constructor(n,l,d){this._element=n,this._renderer=l,this._select=d,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(cl(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(cl(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(wu,9))},o.\u0275dir=s.lG2({type:o,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),o})(),Ui=(()=>{class o{constructor(){this._validator=Ja}ngOnChanges(n){if(this.inputName in n){const l=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(l),this._validator=this._enabled?this.createValidator(l):Ja,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275dir=s.lG2({type:o,features:[s.TTD]}),o})();const P_={provide:Qt,useExisting:(0,s.Gpc)(()=>ul),multi:!0};let ul=(()=>{class o extends Ui{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=n=>n,this.createValidator=n=>qc(n)}}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275dir=s.lG2({type:o,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,l){2&n&&s.uIk("pattern",l._enabled?l.pattern:null)},inputs:{pattern:"pattern"},features:[s._Bn([P_]),s.qOj]}),o})(),Iu=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[pu]}),o})(),Ho=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[Iu]}),o})(),Mn=(()=>{class o{static withConfig(n){return{ngModule:o,providers:[{provide:vr,useValue:n.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[Iu]}),o})();class dl extends Js{constructor(r,n,l){super(au(n),lu(l,n)),this.controls=r,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,n={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(r,n,l={}){this.controls.splice(r,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:l.emitEvent})}removeAt(r,n={}){let l=this._adjustIndex(r);l<0&&(l=0),this.controls[l]&&this.controls[l]._registerOnCollectionChange(()=>{}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(r,n,l={}){let d=this._adjustIndex(r);d<0&&(d=0),this.controls[d]&&this.controls[d]._registerOnCollectionChange(()=>{}),this.controls.splice(d,1),n&&(this.controls.splice(d,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,n={}){cu(this,0,r),r.forEach((l,d)=>{yf(this,!1,d),this.at(d).setValue(l,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(r,n={}){null!=r&&(r.forEach((l,d)=>{this.at(d)&&this.at(d).patchValue(l,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(r=[],n={}){this._forEachChild((l,d)=>{l.reset(r[d],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((n,l)=>!!l._syncPendingControls()||n,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((n,l)=>{r(n,l)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(n=>n.enabled&&r(n))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}}function k_(o){return!!o&&(void 0!==o.asyncValidators||void 0!==o.validators||void 0!==o.updateOn)}let Hf=(()=>{class o{constructor(){this.useNonNullable=!1}get nonNullable(){const n=new o;return n.useNonNullable=!0,n}group(n,l=null){const d=this._reduceControls(n);let _={};return k_(l)?_=l:null!==l&&(_.validators=l.validator,_.asyncValidators=l.asyncValidator),new Li(d,_)}control(n,l,d){let _={};return this.useNonNullable?(k_(l)?_=l:(_.validators=l,_.asyncValidators=d),new na(n,{..._,nonNullable:!0})):new na(n,l,d)}array(n,l,d){const _=n.map(D=>this._createControl(D));return new dl(_,l,d)}_reduceControls(n){const l={};return Object.keys(n).forEach(d=>{l[d]=this._createControl(n[d])}),l}_createControl(n){return n instanceof na||n instanceof Js?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:Mn}),o})(),Uf=(()=>{class o extends Hf{group(n,l=null){return super.group(n,l)}control(n,l,d){return super.control(n,l,d)}array(n,l,d){return super.array(n,l,d)}}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac,providedIn:Mn}),o})(),Ou=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[g.ez,Ho]}),o})(),Nr=(()=>{class o{constructor(){this.registry=new Map}register(n){this.registry.set(n.key,n)}get(n){return this.registry.get(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const Uo="hidden",cn="text",hl="textarea",xu="password",oi="checkbox",Ru="select",ia="multi-select",yr="single";class fl{static getValidators(r){const n=new Array;return r.required&&n.push(Rr.required),r.min&&n.push(Rr.min(r.min)),r.max&&n.push(Rr.max(r.max)),r.minLength&&n.push(Rr.minLength(r.minLength)),r.maxLength&&n.push(Rr.maxLength(r.maxLength)),Rr.compose(n)}}let $f=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275dir=s.lG2({type:o,inputs:{slot:"slot",form:"form"}}),o})();class ji{constructor(r){"string"==typeof r&&(this.key=this.value=r),"object"==typeof r&&(this.key=r.key,this.value=r.value)}static byKey(r,n){return n.find(l=>l.key===r)}static byValue(r,n){return n.find(l=>l.value===r)}}let Lr=(()=>{class o{constructor(n){this._elementRef=n,this.clickOutside=new s.vpe}onClick(n,l){l&&(this._elementRef.nativeElement.contains(l)||this.clickOutside.emit(n))}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.SBq))},o.\u0275dir=s.lG2({type:o,selectors:[["","tw-clickoutside",""]],hostBindings:function(n,l){1&n&&s.NdJ("click",function(_){return l.onClick(_,_.target)},!1,s.evT)},outputs:{clickOutside:"clickOutside"}}),o})(),pl=(()=>{class o{transform(n,l){return n&&l?n.filter(d=>this.applyFilter(d,l)):n}applyFilter(n,l){return!(l.value&&n.value&&-1===n.value.toLowerCase().indexOf(l.value.toLowerCase()))}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275pipe=s.Yjl({name:"tw2ListFilter",type:o,pure:!1}),o})();function gl(o,r){1&o&&(s.TgZ(0,"span",7),s.SDv(1,8),s.qZA())}function oa(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"span",9),s._uU(1),s.TgZ(2,"a",10),s.NdJ("click",function(){const _=s.CHM(n).$implicit,D=s.oxw();return s.KtG(D.onItemClick(_))}),s._uU(3,"x"),s.qZA()()}if(2&o){const n=r.$implicit;s.xp6(1),s.hij(" ",n.value," ")}}function V_(o,r){1&o&&(s.TgZ(0,"div"),s.SDv(1,19),s.qZA())}function Fu(o,r){1&o&&(s.TgZ(0,"div"),s.SDv(1,20),s.qZA())}function Gf(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"li",16),s.NdJ("click",function(){s.CHM(n);const d=s.oxw(2);return s.KtG(d.toggleSelectAll())}),s._UZ(1,"input",17),s.YNc(2,V_,2,0,"div",18),s.YNc(3,Fu,2,0,"div",18),s.qZA()}if(2&o){const n=s.oxw(2);s.xp6(1),s.Q6J("checked",n.isAllItemsSelected())("disabled",n.disabled),s.xp6(1),s.Q6J("ngIf",!n.isAllItemsSelected()),s.xp6(1),s.Q6J("ngIf",n.isAllItemsSelected())}}function B_(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"li",21)(1,"input",22),s.NdJ("ngModelChange",function(d){s.CHM(n);const _=s.oxw(2);return s.KtG(_.filter.value=d)})("ngModelChange",function(d){s.CHM(n);const _=s.oxw(2);return s.KtG(_.onFilterTextChange(d))}),s.qZA()()}if(2&o){const n=s.oxw(2);s.xp6(1),s.Q6J("placeholder","search")("readOnly",n.disabled)("ngModel",n.filter.value)}}function H_(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"li",21),s._UZ(1,"input",23,24),s.TgZ(3,"button",25),s.NdJ("click",function(){s.CHM(n);const d=s.MAs(2),_=s.oxw(2);return s.KtG(_.addItem(d.value))}),s.TgZ(4,"strong"),s._uU(5,"+"),s.qZA()()()}if(2&o){const n=s.oxw(2);s.xp6(1),s.Q6J("placeholder","add item")("readOnly",n.disabled)}}function sa(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"li",26),s.NdJ("click",function(){const _=s.CHM(n).$implicit,D=s.oxw(2);return s.KtG(D.onItemClick(_))})("keydown",function(d){const D=s.CHM(n).$implicit,M=s.oxw(2);return s.KtG(M.onKeyDown(d,D))}),s._UZ(1,"input",27),s.TgZ(2,"div"),s._uU(3),s.qZA()()}if(2&o){const n=r.$implicit,l=s.oxw(2);s.xp6(1),s.Q6J("checked",l.isSelected(n))("disabled",l.disabled||!l.isSelected(n)),s.xp6(2),s.Oqu(n.value)}}function U_(o,r){1&o&&(s.TgZ(0,"li",28)(1,"h5"),s.SDv(2,29),s.qZA()())}function Ey(o,r){if(1&o&&(s.TgZ(0,"div",11)(1,"ul"),s.YNc(2,Gf,4,4,"li",12),s.YNc(3,B_,2,3,"li",13),s.YNc(4,H_,6,2,"li",13),s.qZA(),s.TgZ(5,"ul"),s.YNc(6,sa,4,3,"li",14),s.ALo(7,"tw2ListFilter"),s.YNc(8,U_,3,0,"li",15),s.qZA()()),2&o){const n=s.oxw();s.xp6(2),s.Q6J("ngIf",!n.singleSelection),s.xp6(1),s.Q6J("ngIf",n.listItems.length>0),s.xp6(1),s.Q6J("ngIf",n.allowAddingItems),s.xp6(2),s.Q6J("ngForOf",s.xi3(7,5,n.sortedListItems,n.filter)),s.xp6(2),s.Q6J("ngIf",0==n.listItems.length)}}const j_={provide:Ln,useExisting:(0,s.Gpc)(()=>zf),multi:!0},$_=()=>{},aa="key",jo="value";let zf=(()=>{class o{constructor(){this.listItems=[],this.filter=new ji(this.data),this.selectedItems=[],this.isDropdownOpen=!1,this.disabled=!1,this.singleSelection=!1,this.bindingBehavior="key",this.allowAddingItems=!1,this.filterChange=new s.vpe,this.dropDownClose=new s.vpe,this.onSelect=new s.vpe,this.selectAll=new s.vpe,this.deSelect=new s.vpe,this.deSelectAll=new s.vpe,this.onTouchedCallback=$_,this.onChangeCallback=$_}get sortedSelectedItems(){return this.selectedItems.sort((n,l)=>n.keyl.key?1:0)}get sortedListItems(){return this.listItems.sort((n,l)=>n.keyl.key?1:0)}set data(n){this.listItems=n?n.map(l=>new ji(l)):[]}onFilterTextChange(n){this.filterChange.emit(n)}onKeyDown(n,l){32===n.keyCode&&(n.preventDefault(),this.onItemClick(l))}onItemClick(n){this.disabled||(this.isSelected(n)?this.removeSelected(n):this.addSelected(n),this.singleSelection&&this.closeDropdown())}writeValue(n){void 0!==n&&(null!=n&&n.length>0?(Array.isArray(n)||(n=[n]),this.selectedItems=n.map(this.bindingBehavior===aa?l=>ji.byKey(l,this.listItems):l=>ji.byValue(l,this.listItems))):this.selectedItems=[],this.onChangeCallback(n))}registerOnChange(n){this.onChangeCallback=n}registerOnTouched(n){this.onTouchedCallback=n}setDisabledState(n){this.disabled=n}onTouched(){this.closeDropdown(),this.onTouchedCallback()}shortCuts(n){13===n.keyCode&&(n.preventDefault(),this.toggleDropdown(n))}trackByFn(n,l){return l.key}isSelected(n){let l=!1;return this.selectedItems.forEach(d=>{n.key===d.key&&(l=!0)}),l}isAllItemsSelected(){return this.listItems.length===this.selectedItems.length}showButton(){return!this.singleSelection}addItem(n){const l=new ji(n);this.listItems.push(l)}addSelected(n){this.singleSelection?(this.selectedItems=[],this.selectedItems.push(n)):this.selectedItems.push(n),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onSelect.emit(this.emittedValue(n))}removeSelected(n){this.selectedItems.forEach(l=>{n.key===l.key&&this.selectedItems.splice(this.selectedItems.indexOf(l),1)}),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.deSelect.emit(this.emittedValue(n))}emittedValue(n){if(this.singleSelection)return Array.isArray(n)&&n.length>0?this.bindingBehavior===aa?n[0].key:n[0].value:Array.isArray(n)?null:this.bindingBehavior===aa?n.key:n.value;const l=[];return Array.isArray(n)?n.map(d=>{l.push(this.bindingBehavior===aa?d.key:d.value)}):n&&l.push(this.bindingBehavior===aa?n.key:n.value),l}toggleDropdown(n){n.preventDefault(),(!this.disabled||!this.singleSelection)&&(this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen||this.dropDownClose.emit())}closeDropdown(){this.isDropdownOpen=!1,this.filter.value="",this.dropDownClose.emit()}toggleSelectAll(){if(this.disabled)return!1;this.isAllItemsSelected()?(this.selectedItems=[],this.deSelectAll.emit(this.emittedValue(this.selectedItems))):(this.selectedItems=this.listItems.slice(),this.selectAll.emit(this.emittedValue(this.selectedItems))),this.onChangeCallback(this.emittedValue(this.selectedItems))}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-multi-select"]],hostBindings:function(n,l){1&n&&s.NdJ("blur",function(){return l.onTouched()})("keydown",function(_){return l.shortCuts(_)},!1,s.Jf7)},inputs:{singleSelection:"singleSelection",bindingBehavior:"bindingBehavior",allowAddingItems:"allowAddingItems",data:"data"},outputs:{filterChange:"filterChange",dropDownClose:"dropDownClose",onSelect:"onSelect",selectAll:"selectAll",deSelect:"deSelect",deSelectAll:"deSelectAll"},features:[s._Bn([j_])],decls:8,vars:7,consts:function(){let r,n,l,d;return r=$localize`:␟bed964343d091227840225218f5a842b0a92a2e6␟2128281321884182008:select items`,n=$localize`:␟64a31389d384f6f12001f0f79281b044496f6671␟3168852737904108032:select all`,l=$localize`:␟e3897d9ce000709991391dc75185b8bd9eedf7d6␟4134355673206848669:unselect all`,d=$localize`:␟a20b711473ad9abe188c2a3a938eeab4defd4ce7␟4459924971192057766:No data!`,[["tabindex","0","tw-clickoutside","",1,"multiselect-dropdown",3,"blur","clickOutside"],["tabindex","-1",1,"dropdown-btn",3,"click"],["class","no-item-selected",4,"ngIf"],["class","selected-item",4,"ngFor","ngForOf","ngForTrackBy"],[2,"float","right !important","padding-right","4px"],[3,"ngClass"],["class","dropdown-list",4,"ngIf"],[1,"no-item-selected"],r,[1,"selected-item"],[2,"padding-top","2px","padding-left","2px","color","white",3,"click"],[1,"dropdown-list"],["class","multiselect-item-checkbox","style","border-bottom: 1px solid #ccc","tabindex","0",3,"click",4,"ngIf"],["class","filter-textbox",4,"ngIf"],["class","multiselect-item-checkbox","tabindex","0",3,"click","keydown",4,"ngFor","ngForOf"],["class","no-data",4,"ngIf"],["tabindex","0",1,"multiselect-item-checkbox",2,"border-bottom","1px solid #ccc",3,"click"],["type","checkbox","aria-label","multiselect-select-all",3,"checked","disabled"],[4,"ngIf"],n,l,[1,"filter-textbox"],["type","text","aria-label","multiselect-search",3,"placeholder","readOnly","ngModel","ngModelChange"],["type","text","aria-label","multiselect-add-listitem",3,"placeholder","readOnly"],["addListItem",""],["type","button",3,"click"],["tabindex","0",1,"multiselect-item-checkbox",3,"click","keydown"],["type","checkbox","aria-label","multiselect-item",3,"checked","disabled"],[1,"no-data"],d]},template:function(n,l){1&n&&(s.TgZ(0,"div",0),s.NdJ("blur",function(){return l.onTouched()})("clickOutside",function(){return l.closeDropdown()}),s.TgZ(1,"div")(2,"span",1),s.NdJ("click",function(_){return l.toggleDropdown(_)}),s.YNc(3,gl,2,0,"span",2),s.YNc(4,oa,4,1,"span",3),s.TgZ(5,"span",4),s._UZ(6,"span",5),s.qZA()()(),s.YNc(7,Ey,9,8,"div",6),s.qZA()),2&n&&(s.xp6(1),s.ekj("disabled",l.disabled),s.xp6(2),s.Q6J("ngIf",0==l.selectedItems.length),s.xp6(1),s.Q6J("ngForOf",l.sortedSelectedItems)("ngForTrackBy",l.trackByFn),s.xp6(2),s.Q6J("ngClass",l.isDropdownOpen?"dropdown-up":"dropdown-down"),s.xp6(1),s.Q6J("ngIf",l.isDropdownOpen))},dependencies:[g.mk,g.sg,g.O5,An,ni,Bi,Lr,pl],encapsulation:2}),o})();const G_={provide:Ln,useExisting:(0,s.Gpc)(()=>z_),multi:!0};let z_=(()=>{class o{constructor(n,l){this._renderer=n,this._elementRef=l,this.onChange=d=>{},this.onTouched=()=>{}}writeValue(n){const l=new Date(n);this._renderer.setProperty(this._elementRef.nativeElement,"valueAsDate",l)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.Qsj),s.Y36(s.SBq))},o.\u0275dir=s.lG2({type:o,selectors:[["","twUseValueAsDate",""]],hostBindings:function(n,l){1&n&&s.NdJ("input",function(_){return l.onChange(_.target.valueAsDate)})("blur",function(){return l.onTouched()})},features:[s._Bn([G_])]}),o})();function Wf(o,r){if(1&o&&(s.TgZ(0,"label"),s._uU(1),s.qZA()),2&o){const n=s.oxw();s.uIk("for",n.editor.key),s.xp6(1),s.hij(" ",n.editor.label," ")}}function ku(o,r){if(1&o&&s._UZ(0,"input",11),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key)}}function W_(o,r){if(1&o&&s._UZ(0,"input",12),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key)}}function Nu(o,r){if(1&o&&s._UZ(0,"input",13),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key)}}function Y_(o,r){if(1&o&&(s.TgZ(0,"label"),s._UZ(1,"input",14),s._uU(2),s.qZA()),2&o){const n=s.oxw();s.xp6(1),s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key),s.xp6(1),s.hij(" ",n.editor.label," ")}}function Z_(o,r){1&o&&s._UZ(0,"option",18)}function K_(o,r){if(1&o&&(s.TgZ(0,"option",19),s._uU(1),s.qZA()),2&o){const n=r.$implicit;s.Q6J("ngValue",n.key),s.xp6(1),s.hij(" ",n.value," ")}}function q_(o,r){if(1&o&&(s.TgZ(0,"select",15),s.YNc(1,Z_,1,0,"option",16),s.YNc(2,K_,2,2,"option",17),s.qZA()),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.xp6(1),s.Q6J("ngIf",!n.editor.required),s.xp6(1),s.Q6J("ngForOf",n.editor.options)}}function J_(o,r){if(1&o&&s._UZ(0,"tw-multi-select",20),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key)("singleSelection",n.editor.singleSelection)("bindingBehavior",n.editor.bindingBehaviour)("allowAddingItems",n.editor.allowAddingItems)("data",n.editor.options)}}function Q_(o,r){if(1&o&&s._UZ(0,"input",21),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key)}}function _l(o,r){if(1&o&&(s.TgZ(0,"textarea",15),s._uU(1," "),s.qZA()),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key)}}function $i(o,r){if(1&o&&s._UZ(0,"input",22),2&o){const n=s.oxw();s.Q6J("formControlName",n.editor.key),s.uIk("id",n.editor.key)}}function wy(o,r){if(1&o&&(s.TgZ(0,"div"),s.SDv(1,24),s.qZA()),2&o){const n=s.oxw(2);s.xp6(1),s.pQV(n.editor.label),s.QtT(1)}}function la(o,r){if(1&o&&(s.TgZ(0,"div"),s.SDv(1,25),s.qZA()),2&o){const n=s.oxw(2);s.xp6(1),s.pQV(n.editor.label)(n.editor.min),s.QtT(1)}}function X_(o,r){if(1&o&&(s.TgZ(0,"div"),s.SDv(1,26),s.qZA()),2&o){const n=s.oxw(2);s.xp6(1),s.pQV(n.editor.label)(n.editor.max),s.QtT(1)}}function em(o,r){if(1&o&&(s.TgZ(0,"div"),s.SDv(1,27),s.qZA()),2&o){const n=s.oxw(2);s.xp6(1),s.pQV(n.editor.label)(n.editor.minLength),s.QtT(1)}}function Lu(o,r){if(1&o&&(s.TgZ(0,"div"),s.SDv(1,28),s.qZA()),2&o){const n=s.oxw(2);s.xp6(1),s.pQV(n.editor.label)(n.editor.maxLength),s.QtT(1)}}function tm(o,r){if(1&o&&(s.TgZ(0,"div",23),s.YNc(1,wy,2,1,"div",1),s.YNc(2,la,2,2,"div",1),s.YNc(3,X_,2,2,"div",1),s.YNc(4,em,2,2,"div",1),s.YNc(5,Lu,2,2,"div",1),s.qZA()),2&o){const n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.control(n.editor.key).hasError("required")),s.xp6(1),s.Q6J("ngIf",n.control(n.editor.key).hasError("min")),s.xp6(1),s.Q6J("ngIf",n.control(n.editor.key).hasError("max")),s.xp6(1),s.Q6J("ngIf",n.control(n.editor.key).hasError("minlength")),s.xp6(1),s.Q6J("ngIf",n.control(n.editor.key).hasError("maxlength"))}}const Cr=function(o,r){return{"form-group":o,checkbox:r}};let $o=(()=>{class o{constructor(){this.style="editor",this.hideLabel=!1}control(n){return this.form.get(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-editor"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.style)},inputs:{hideLabel:"hideLabel",editor:"editor",form:"form"},decls:12,vars:16,consts:function(){let r,n,l,d,_;return r=$localize`:␟509ef24ac7fc6168f288e398135fcda032a50416␟925364148717660736: ${"\ufffd0\ufffd"}:INTERPOLATION: required. `,n=$localize`:␟4224bb24912d5c94e5a01b9f2319eb262a1181ce␟7232929701133107067: ${"\ufffd0\ufffd"}:INTERPOLATION: must not be lower than ${"\ufffd1\ufffd"}:INTERPOLATION_1:. `,l=$localize`:␟e15e6f057c5ca734ef9f4a5cfee6463e49cfc6dc␟1648611666212555466: ${"\ufffd0\ufffd"}:INTERPOLATION: must not be greater than ${"\ufffd1\ufffd"}:INTERPOLATION_1:. `,d=$localize`:␟87a73832a69b06e6bd02de9fd79f4d77bb294ab2␟3761085172444266095: ${"\ufffd0\ufffd"}:INTERPOLATION: must be at least ${"\ufffd1\ufffd"}:INTERPOLATION_1: characters in length. `,_=$localize`:␟bd5ef74c65f72e8472162503c757ce5e9cb5a16d␟8121950195437709416: ${"\ufffd0\ufffd"}:INTERPOLATION: must not be longer than ${"\ufffd1\ufffd"}:INTERPOLATION_1: characters. `,[[3,"ngSwitch","formGroup","ngClass"],[4,"ngIf"],["type","hidden",3,"formControlName",4,"ngSwitchCase"],["type","number","pattern","[0-9.,]*","inputmode","numeric",3,"formControlName",4,"ngSwitchCase"],["type","password",3,"formControlName",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"formControlName",4,"ngSwitchCase"],[3,"formControlName","singleSelection","bindingBehavior","allowAddingItems","data",4,"ngSwitchCase"],["type","date","twUseValueAsDate","",3,"formControlName",4,"ngSwitchCase"],["type","text",3,"formControlName",4,"ngSwitchDefault"],["class","form__validation--error",4,"ngIf"],["type","hidden",3,"formControlName"],["type","number","pattern","[0-9.,]*","inputmode","numeric",3,"formControlName"],["type","password",3,"formControlName"],["type","checkbox",3,"formControlName"],[3,"formControlName"],[3,"value",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value"],[3,"ngValue"],[3,"formControlName","singleSelection","bindingBehavior","allowAddingItems","data"],["type","date","twUseValueAsDate","",3,"formControlName"],["type","text",3,"formControlName"],[1,"form__validation--error"],r,n,l,d,_]},template:function(n,l){1&n&&(s.TgZ(0,"div",0),s.YNc(1,Wf,2,2,"label",1),s.YNc(2,ku,1,2,"input",2),s.YNc(3,W_,1,2,"input",3),s.YNc(4,Nu,1,2,"input",4),s.YNc(5,Y_,3,3,"label",5),s.YNc(6,q_,3,3,"select",6),s.YNc(7,J_,1,5,"tw-multi-select",7),s.YNc(8,Q_,1,2,"input",8),s.YNc(9,_l,2,2,"textarea",6),s.YNc(10,$i,1,2,"input",9),s.YNc(11,tm,6,5,"div",10),s.qZA()),2&n&&(s.Q6J("ngSwitch",l.editor.type)("formGroup",l.form)("ngClass",s.WLB(13,Cr,"checkbox"!==l.editor.type,"checkbox"===l.editor.type)),s.xp6(1),s.Q6J("ngIf",!l.hideLabel&&"checkbox"!==l.editor.type&&"hidden"!==l.editor.type),s.xp6(1),s.Q6J("ngSwitchCase","hidden"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","password"),s.xp6(1),s.Q6J("ngSwitchCase","checkbox"),s.xp6(1),s.Q6J("ngSwitchCase","select"),s.xp6(1),s.Q6J("ngSwitchCase","multi-select"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","textarea"),s.xp6(2),s.Q6J("ngIf",l.control(l.editor.key)&&l.control(l.editor.key).invalid))},dependencies:[g.mk,g.sg,g.O5,g.RF,g.n9,g.ED,Du,T_,An,mr,Ya,ra,ni,Qa,ul,Lo,ii,zf,z_],encapsulation:2}),o})();class Xt{constructor(r,n){this.key=r,this.component=n}}let Vr=(()=>{class o{constructor(){this._registry=new Map}register(n){this._registry.has(n.key)||this._registry.set(n.key,n)}exists(n){return this._registry.has(n)}get(n){const l=this._registry.get(n);if(!l)throw new Error(`ComponentMetaData for key ${n} was not found!`);return l}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const ml=["slotContent"];function Bn(o,r){}let Vu=(()=>{class o{constructor(n){this.registry=n}ngOnInit(){if(this.slot){const l=this.registry.get(this.slot.type?this.slot.type:yr);l&&(this.slotContentRef=this.slotContent.createComponent(l.component),this.slotContentRef.instance.slot=this.slot,this.slotContentRef.instance.form=this.form)}}ngOnDestroy(){this.slotContentRef&&(delete this.slotContentRef.instance.slot,delete this.slotContentRef.instance.form,this.slotContentRef.destroy())}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Vr))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-slothost"]],viewQuery:function(n,l){if(1&n&&s.Gf(ml,7,s.s_b),2&n){let d;s.iGM(d=s.CRH())&&(l.slotContent=d.first)}},inputs:{slot:"slot",form:"form"},decls:2,vars:0,consts:[["slotContent",""]],template:function(n,l){1&n&&s.YNc(0,Bn,0,0,"ng-template",null,0,s.W1O)},encapsulation:2}),o})();function Go(o,r){if(1&o&&s._UZ(0,"tw-editor",3),2&o){const n=r.$implicit,l=s.oxw(3);s.Q6J("editor",n)("form",l.form)}}function zo(o,r){if(1&o&&(s.ynx(0),s.YNc(1,Go,1,2,"tw-editor",2),s.BQk()),2&o){const n=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",n.slot.editors)}}function Wo(o,r){if(1&o){const n=s.EpF();s.ynx(0),s.TgZ(1,"fieldset")(2,"legend",1),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.toggle())}),s._uU(3),s.qZA(),s.YNc(4,zo,2,1,"ng-container",0),s.qZA(),s.BQk()}if(2&o){const n=s.oxw();s.xp6(3),s.Oqu(n.slot.title),s.xp6(1),s.Q6J("ngIf",!n.collapsed)}}function Yo(o,r){if(1&o&&(s.ynx(0),s._UZ(1,"tw-slothost",5),s.BQk()),2&o){const n=r.$implicit,l=s.oxw(2);s.xp6(1),s.Q6J("slot",n)("form",l.form.get(n.key))}}function Zo(o,r){if(1&o&&(s.ynx(0),s.YNc(1,Yo,2,2,"ng-container",4),s.BQk()),2&o){const n=s.oxw();s.xp6(1),s.Q6J("ngForOf",n.slot.children)}}let si=(()=>{class o extends $f{constructor(){super(...arguments),this.collapsed=!1}toggle(){this.collapsed=!this.collapsed}}return o.\u0275fac=function(){let r;return function(l){return(r||(r=s.n5z(o)))(l||o)}}(),o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-slot"]],features:[s.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[1,"title",3,"click"],[3,"editor","form",4,"ngFor","ngForOf"],[3,"editor","form"],[4,"ngFor","ngForOf"],[3,"slot","form"]],template:function(n,l){1&n&&(s.YNc(0,Wo,5,2,"ng-container",0),s.YNc(1,Zo,2,1,"ng-container",0)),2&n&&(s.Q6J("ngIf",l.slot&&l.slot.editors&&l.slot.editors.length>0),s.xp6(1),s.Q6J("ngIf",l.slot&&l.slot.children&&l.slot.children.length>0))},dependencies:[g.sg,g.O5,$o,Vu],encapsulation:2}),o})();function Ko(o,r){if(1&o&&(s.TgZ(0,"td"),s._UZ(1,"tw-editor",7),s.qZA()),2&o){const n=r.$implicit,l=s.oxw().index,d=s.oxw(2);s.xp6(1),s.Q6J("hideLabel",!0)("editor",n)("form",d.rows.at(l))}}function qo(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"tr"),s.YNc(1,Ko,2,3,"td",5),s.TgZ(2,"td")(3,"button",6),s.NdJ("click",function(){const _=s.CHM(n).index,D=s.oxw(2);return s.KtG(D.remove(_))}),s.TgZ(4,"strong"),s._uU(5,"-"),s.qZA()()()()}if(2&o){const n=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",n.slot.editors)}}function Jo(o,r){if(1&o){const n=s.EpF();s.ynx(0),s.TgZ(1,"div",2)(2,"button",3),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.add())}),s.TgZ(3,"strong"),s._uU(4,"+"),s.qZA()()(),s.TgZ(5,"div")(6,"table",4)(7,"tbody"),s.YNc(8,qo,6,1,"tr",5),s.qZA()()(),s.BQk()}if(2&o){const n=s.oxw();s.xp6(6),s.Q6J("formGroup",n.form),s.xp6(2),s.Q6J("ngForOf",n.rows.controls)}}let Yf=(()=>{class o extends si{constructor(n){super(),this._fb=n}get rows(){return this.form}add(){const n=this.createRow(this.slot);this.rows.push(n)}remove(n){this.rows.removeAt(n)}createRow(n){const l=this._fb.group({});return n.editors.forEach(d=>{l.addControl(d.key,new al(void 0,fl.getValidators(d)))}),l}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Uf))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-arrayslot"]],features:[s.qOj],decls:4,vars:2,consts:function(){let r,n;return r=$localize`:␟a11ec4e640f241329943237d2a3cceaa4823658e␟1059784693423848532:add`,n=$localize`:␟4da487aec5a29ce4372e7b512227cd665b01fe6f␟2123171795960509943:remove`,[[1,"title",3,"click"],[4,"ngIf"],[1,"button__bar"],["type","button","title",r,1,"button--secondary",3,"click"],[3,"formGroup"],[4,"ngFor","ngForOf"],["type","button","title",n,1,"button--secondary","button--squared",3,"click"],[3,"hideLabel","editor","form"]]},template:function(n,l){1&n&&(s.TgZ(0,"fieldset")(1,"legend",0),s.NdJ("click",function(){return l.toggle()}),s._uU(2),s.qZA(),s.YNc(3,Jo,9,2,"ng-container",1),s.qZA()),2&n&&(s.xp6(2),s.Oqu(l.slot.title),s.xp6(1),s.Q6J("ngIf",!l.collapsed))},dependencies:[g.sg,g.O5,Qa,Lo,$o],encapsulation:2}),o})(),Qo=(()=>{class o{constructor(n){this.registry=n,this.registry.register(new Xt(yr,si)),this.registry.register(new Xt("array",Yf))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Vr))},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[Nr,Vr],imports:[g.ez,Mn,Ou,Mn]}),o})(),Gi=(()=>{class o{constructor(n,l){this._fb=n,this._slotRegistry=l}toGroup(n,l){const d=this.getSlot(n);return this.toGroupRecursive(d,l)}getSlot(n){return this._slotRegistry.get(n)}toGroupRecursive(n,l){const d=this._fb.group({});if(Array.isArray(l)){const D=this._fb.array([]);for(let M=0;M{N.addControl(q.key,new al({value:l[M][q.key],disabled:!0===q.isReadOnly},fl.getValidators(q)))}),D.push(N)}return D}return n.editors.forEach(D=>{d.addControl(D.key,new al({value:l[D.key],disabled:!0===D.isReadOnly},fl.getValidators(D)))}),n.children&&n.children.length>0&&n.children.forEach(D=>{d.addControl(D.key,this.toGroupRecursive(D,l[D.key]))}),d}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Uf),s.LFG(Nr))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();function Zf(o,r){if(1&o&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&o){const n=r.$implicit;s.xp6(1),s.Oqu(n)}}function Kf(o,r){if(1&o&&(s.TgZ(0,"ul",1),s.YNc(1,Zf,2,1,"li",2),s.qZA()),2&o){const n=s.oxw();s.xp6(1),s.Q6J("ngForOf",n.errors)}}let qf=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-validation-summary"]],inputs:{errors:"errors"},decls:1,vars:1,consts:[["class","form__validation-summary",4,"ngIf"],[1,"form__validation-summary"],[4,"ngFor","ngForOf"]],template:function(n,l){1&n&&s.YNc(0,Kf,2,1,"ul",0),2&n&&s.Q6J("ngIf",l.errors)},dependencies:[g.sg,g.O5],encapsulation:2}),o})();function Jf(o,r){if(1&o&&(s.TgZ(0,"button",6),s.SDv(1,7),s.qZA()),2&o){const n=s.oxw();s.Q6J("disabled",!n.form.valid),s.xp6(1),s.pQV(n.getSaveLabel),s.QtT(1)}}function Qf(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.onReset())}),s.SDv(1,9),s.qZA()}}function Xf(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.onDelete())}),s.SDv(1,10),s.qZA()}}let zi=(()=>{class o{constructor(n){this.formdefService=n,this.form=new Cf({}),this.useInputForm=!1,this.showSave=!1,this.showCancel=!1,this.showDelete=!1,this.submitted=new s.vpe,this.resetted=new s.vpe,this.deleted=new s.vpe,this.class="form"}set viewModel(n){n&&(this.model=n,this.ngOnInit())}get viewModel(){return this.model}get getSaveLabel(){return this.saveTitle?this.saveTitle:"Save"}get formValue(){return this.form.value}get formIsValid(){return this.form.valid}ngOnInit(){this.errors=[],this.viewModel&&(this.useInputForm||(this.form=this.formdefService.toGroup(this.key,this.viewModel)),this.slot=this.formdefService.getSlot(this.key))}onSubmit(){this.submitted.next(this.form.value)}onReset(){this.resetted.next(this.form.value)}onDelete(){this.deleted.next(this.form.value)}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Gi))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-formdef"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.class)},inputs:{key:"key",viewModel:"viewModel",form:"form",useInputForm:"useInputForm",slot:"slot",showSave:"showSave",saveTitle:"saveTitle",showCancel:"showCancel",showDelete:"showDelete",errors:"errors"},outputs:{submitted:"submitted",resetted:"resetted",deleted:"deleted"},features:[s._Bn([Gi])],decls:7,vars:7,consts:function(){let r,n,l;return r=$localize`:␟d4d92b50f8daf0648d9fbda145f606d4e2495453␟6128633059669858834:${"\ufffd0\ufffd"}:INTERPOLATION:`,n=$localize`:␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,l=$localize`:␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,[[3,"formGroup","ngSubmit"],[3,"slot","form"],[3,"errors"],[1,"button__bar"],["type","submit",3,"disabled",4,"ngIf"],["type","button","class","button--secondary",3,"click",4,"ngIf"],["type","submit",3,"disabled"],r,["type","button",1,"button--secondary",3,"click"],n,l]},template:function(n,l){1&n&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return l.onSubmit()}),s._UZ(1,"tw-slot",1)(2,"tw-validation-summary",2),s.TgZ(3,"div",3),s.YNc(4,Jf,2,2,"button",4),s.YNc(5,Qf,2,0,"button",5),s.YNc(6,Xf,2,0,"button",5),s.qZA()()),2&n&&(s.Q6J("formGroup",l.form),s.xp6(1),s.Q6J("slot",l.slot)("form",l.form),s.xp6(1),s.Q6J("errors",l.errors),s.xp6(2),s.Q6J("ngIf",l.showSave),s.xp6(1),s.Q6J("ngIf",l.showCancel),s.xp6(1),s.Q6J("ngIf",l.showDelete))},dependencies:[g.O5,S_,Qa,Lo,si,qf],encapsulation:2}),o})(),Bu=(()=>{class o{constructor(){this.key=o.KEY,this.type=yr,this.title="Detail",this.editors=[{key:"id",type:Uo,label:"Id",required:!0},{key:"name",type:cn,label:"Name",required:!0},{key:"claimValueType",type:Ru,required:!0,label:"Value type",options:[{key:"String",value:"String"},{key:"Integer",value:"Integer"},{key:"Double",value:"Double"},{key:"Boolean",value:"Boolean"}]},{key:"description",type:hl,label:"Description",maxLength:500}]}}return o.KEY="ClaimtypeDetailSlot",o})(),Xo=(()=>{class o{constructor(n){this.http=n}claimtypes(){return this.http.get("claimtypes").pipe((0,ze.K)(this.http.handleError))}claimtype(n){return this.http.get(`claimtypes/${n}`).pipe((0,ze.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("claimtypes",n).pipe((0,ze.K)(this.http.handleError))}update(n){return this.http.put("claimtypes",n).pipe((0,ze.K)(this.http.handleError))}delete(n){return this.http.delete(`claimtypes/${n}`).pipe((0,ze.K)(this.http.handleError))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Fi))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();var Tn=f(655);let Hn=(()=>{class o extends $h{constructor(n){super(),this.source=n}getType(){return o.KEY}}return o.KEY="RefreshMessage",o})(),Dr=(()=>{class o{constructor(){this.classList=new Array("fa","fa-fw")}set name(n){this.addClass(`fa-${n}`)}set size(n){this.addClass(`fa-${n}x`)}set spin(n){n?this.addClass("fa-spin"):this.removeClass("fa-spin")}addClass(n){this.classList.push(n)}removeClass(n){let l;(l=this.classList.indexOf(n))>=0&&this.classList.splice(l,1)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-icon"]],inputs:{name:"name",size:"size",spin:"spin"},decls:1,vars:1,consts:[["aria-hidden","true",3,"ngClass"]],template:function(n,l){1&n&&s._UZ(0,"i",0),2&n&&s.Q6J("ngClass",l.classList)},dependencies:[g.mk],encapsulation:2}),o})();const vl=["*"];function Hu(o,r){1&o&&(s.TgZ(0,"div",5),s._UZ(1,"tw-icon",6),s.qZA()),2&o&&(s.xp6(1),s.Q6J("spin",!0))}function nm(o,r){1&o&&s.GkF(0)}const yl=function(o,r){return{$implicit:o,rowIndex:r}};function Cl(o,r){if(1&o&&s.YNc(0,nm,1,0,"ng-container",7),2&o){const n=r.$implicit,l=r.index,d=s.oxw();s.Q6J("ngTemplateOutlet",d.itemTemplate)("ngTemplateOutletContext",s.WLB(2,yl,n,l))}}function Uu(o,r){1&o&&(s.TgZ(0,"div",8),s.SDv(1,9),s.qZA())}const rm=[[["tw-header"]],[["tw-footer"]]],Dl=["tw-header","tw-footer"];let Br=(()=>{class o{constructor(){this.header="list__header"}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-header"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.header)},ngContentSelectors:vl,decls:1,vars:0,template:function(n,l){1&n&&(s.F$t(),s.Hsn(0))},encapsulation:2}),o})(),ju=(()=>{class o{constructor(){this.footer="list__footer"}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-footer"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.footer)},ngContentSelectors:vl,decls:1,vars:0,template:function(n,l){1&n&&(s.F$t(),s.Hsn(0))},encapsulation:2}),o})(),Wi=(()=>{class o{constructor(n){this.template=n}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(s.Rgc))},o.\u0275dir=s.lG2({type:o,selectors:[["","twTemplate",""]],inputs:{name:["twTemplate","name"]}}),o})(),Yi=(()=>{class o{get rows(){return this._rows}set rows(n){this._rows=n,this.loading=!1,this.isEmpty||this.ngAfterContentInit()}ngOnInit(){this.loading=!0}ngAfterContentInit(){this.templates.forEach(n=>{this.itemTemplate=n.template})}isEmpty(){const n=this.rows;return null==n||0===n.length}attachRows(n){this.isEmpty()?this.rows=n:n.forEach(l=>{this.rows.push(l)})}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-list"]],contentQueries:function(n,l,d){if(1&n&&(s.Suo(d,Br,5),s.Suo(d,ju,5),s.Suo(d,Wi,4)),2&n){let _;s.iGM(_=s.CRH())&&(l.header=_.first),s.iGM(_=s.CRH())&&(l.footer=_.first),s.iGM(_=s.CRH())&&(l.templates=_)}},inputs:{loading:"loading",rows:"rows"},ngContentSelectors:Dl,decls:7,vars:3,consts:function(){let r;return r=$localize`:␟a20b711473ad9abe188c2a3a938eeab4defd4ce7␟4459924971192057766:No data!`,[[1,"list"],["class","list--loading",4,"ngIf"],[1,"list__content"],["ngFor","",3,"ngForOf"],["class","list__content--no-data",4,"ngIf"],[1,"list--loading"],["name","spinner",3,"spin"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__content--no-data"],r]},template:function(n,l){1&n&&(s.F$t(rm),s.TgZ(0,"div",0),s.Hsn(1),s.YNc(2,Hu,2,1,"div",1),s.TgZ(3,"div",2),s.YNc(4,Cl,1,5,"ng-template",3),s.YNc(5,Uu,2,0,"div",4),s.qZA(),s.Hsn(6,1),s.qZA()),2&n&&(s.xp6(2),s.Q6J("ngIf",l.loading),s.xp6(2),s.Q6J("ngForOf",l.rows),s.xp6(1),s.Q6J("ngIf",l.isEmpty()))},dependencies:[g.sg,g.O5,g.tP,Dr],encapsulation:2}),o})(),es=(()=>{class o{transform(n,l){return n?l?(l=l.toLowerCase(),n.filter(d=>JSON.stringify(d).toLowerCase().includes(l))):n:[]}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275pipe=s.Yjl({name:"filter",type:o,pure:!0}),o})();const ep=function(o){return[".",o]};function $u(o,r){if(1&o&&(s.TgZ(0,"div",11)(1,"div"),s._uU(2),s.qZA(),s.TgZ(3,"div"),s._uU(4),s.qZA()()),2&o){const n=r.$implicit;s.Q6J("routerLink",s.VKq(4,ep,null==n?null:n.id)),s.uIk("title",null==n?null:n.name),s.xp6(2),s.Oqu(n.name),s.xp6(2),s.Oqu(n.description)}}const tp=function(){return[".","new"]};let Zi=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.claimtypes=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"claimtype"===r.source&&this.loadData()}getType(){return Hn.KEY}reload(){this.ngOnInit()}loadData(){this.loadClaimtypes()}loadClaimtypes(){this.claimtypes$=this.service.claimtypes().subscribe(r=>{this.claimtypes=r})}};Zi.\u0275fac=function(r){return new(r||Zi)(s.Y36(Xo),s.Y36(ln))},Zi.\u0275cmp=s.Xpm({type:Zi,selectors:[["tw-claimtype-list"]],features:[s._Bn([Xo])],decls:13,vars:7,consts:function(){let o,r;return o=$localize`:␟6645623468a47649f9dfa67ae43a9b42a130a8d6␟6587396195512493624:Claimtypes`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],o,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","claimtype-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(s.TgZ(0,"tw-list",0),s.ALo(1,"filter"),s.TgZ(2,"tw-header")(3,"h3",1),s.SDv(4,2),s.qZA(),s.TgZ(5,"div",3)(6,"a",4),s._UZ(7,"tw-icon",5),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return n.reload()}),s._UZ(9,"tw-icon",7),s.qZA()(),s.TgZ(10,"div",8)(11,"input",9),s.NdJ("ngModelChange",function(d){return n.searchText=d}),s.qZA()()(),s.YNc(12,$u,5,6,"ng-template",10),s.qZA()),2&r&&(s.Q6J("rows",s.xi3(1,3,n.claimtypes,n.searchText)),s.xp6(6),s.Q6J("routerLink",s.DdM(6,tp)),s.xp6(5),s.Q6J("ngModel",n.searchText))},dependencies:[An,ni,Bi,Jr,Tr,Ir,Dr,Yi,Br,Wi,es],encapsulation:2}),Zi=(0,Tn.gn)([vn],Zi);let np=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-claimtype-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(s.TgZ(0,"tw-pane")(1,"div",0),s._UZ(2,"tw-claimtype-list"),s.qZA(),s.TgZ(3,"div",1),s._UZ(4,"router-outlet"),s.qZA()())},dependencies:[Ar,ei,Zi],encapsulation:2}),o})(),ai=class{constructor(r,n,l,d,_,D){this.router=r,this.route=n,this.service=l,this.popup=d,this.element=_,this.messageBus=D,this.key=Bu.KEY,this.isNew=!1}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.claimtype$=this.isNew?this.service.create(r).subscribe(n=>{n&&(this.changesSaved(),this.back())}):this.service.update(r).subscribe(()=>{this.changesSaved(),this.back()})}deleted(r){this.isNew||this.popup.open({content:za,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.name}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.claimtype$=this.service.delete(r.id).subscribe(_=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["claimtypes"])}init(r){"new"!==r?this.load(r.toString()):this.create()}load(r){this.isNew=!1,this.claimtype$=this.service.claimtype(r).subscribe(n=>{this.key=Bu.KEY,this.viewModel=n})}create(){this.isNew=!0,this.viewModel={id:"new",name:void 0,claimValueType:void 0,description:void 0}}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("claimtype"))}};ai.\u0275fac=function(r){return new(r||ai)(s.Y36(_t),s.Y36(qn),s.Y36(Xo),s.Y36(Po),s.Y36(s.SBq),s.Y36(ln))},ai.\u0275cmp=s.Xpm({type:ai,selectors:[["tw-claimtype-detail"]],features:[s._Bn([Xo])],decls:1,vars:4,consts:[[3,"key","viewModel","showSave","showDelete","submitted","deleted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)},dependencies:[zi],encapsulation:2}),ai=(0,Tn.gn)([vn],ai);const rp=[{path:"claimtypes",component:np,canActivate:[Wa],children:[{path:":id",component:ai}]}];let ip=(()=>{class o{constructor(n){this.slotRegistry=n,this.slotRegistry.register(new Bu)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Nr))},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[Xo],imports:[g.ez,Ho,Fn.forChild(rp),fr,Qo]}),o})(),Gu=(()=>{class o{constructor(){this.key=o.KEY,this.type=yr,this.title="Detail",this.editors=[{key:"id",type:Uo,label:"Id",required:!0},{key:"name",type:cn,label:"Name",required:!0}]}}return o.KEY="RoleDetailSlot",o})(),Ki=(()=>{class o{constructor(n){this.http=n}roles(){return this.http.get("roles").pipe((0,ze.K)(this.http.handleError))}role(n){return this.http.get(`roles/${n}`).pipe((0,ze.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("roles",n).pipe((0,ze.K)(this.http.handleError))}update(n){return this.http.put("roles",n).pipe((0,ze.K)(this.http.handleError))}delete(n){return this.http.delete(`roles/${n}`).pipe((0,ze.K)(this.http.handleError))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Fi))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const op=function(o){return[".",o]};function sp(o,r){if(1&o&&(s.TgZ(0,"div",11)(1,"div"),s._uU(2),s.qZA()()),2&o){const n=r.$implicit;s.Q6J("routerLink",s.VKq(3,op,null==n?null:n.id)),s.uIk("title",null==n?null:n.name),s.xp6(2),s.Oqu(n.name)}}const zu=function(){return[".","new"]};let li=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.roles=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"role"===r.source&&this.loadData()}getType(){return Hn.KEY}reload(){this.ngOnInit()}loadData(){this.loadRoles()}loadRoles(){this.roles$=this.service.roles().subscribe(r=>{this.roles=r})}};li.\u0275fac=function(r){return new(r||li)(s.Y36(Ki),s.Y36(ln))},li.\u0275cmp=s.Xpm({type:li,selectors:[["tw-role-list"]],features:[s._Bn([Ki])],decls:13,vars:7,consts:function(){let o,r;return o=$localize`:␟9610487cbeb5796d34d8601b5ac0c0a65f9e1d19␟795890916060309463:Roles`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],o,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","role-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(s.TgZ(0,"tw-list",0),s.ALo(1,"filter"),s.TgZ(2,"tw-header")(3,"h3",1),s.SDv(4,2),s.qZA(),s.TgZ(5,"div",3)(6,"a",4),s._UZ(7,"tw-icon",5),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return n.reload()}),s._UZ(9,"tw-icon",7),s.qZA()(),s.TgZ(10,"div",8)(11,"input",9),s.NdJ("ngModelChange",function(d){return n.searchText=d}),s.qZA()()(),s.YNc(12,sp,3,5,"ng-template",10),s.qZA()),2&r&&(s.Q6J("rows",s.xi3(1,3,n.roles,n.searchText)),s.xp6(6),s.Q6J("routerLink",s.DdM(6,zu)),s.xp6(5),s.Q6J("ngModel",n.searchText))},dependencies:[An,ni,Bi,Jr,Tr,Ir,Dr,Yi,Br,Wi,es],encapsulation:2}),li=(0,Tn.gn)([vn],li);let ap=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-role-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(s.TgZ(0,"tw-pane")(1,"div",0),s._UZ(2,"tw-role-list"),s.qZA(),s.TgZ(3,"div",1),s._UZ(4,"router-outlet"),s.qZA()())},dependencies:[Ar,ei,li],encapsulation:2}),o})(),ci=class{constructor(r,n,l,d,_,D){this.router=r,this.route=n,this.service=l,this.popup=d,this.element=_,this.messageBus=D,this.key=Gu.KEY,this.isNew=!1}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.role$=this.isNew?this.service.create(r).subscribe(n=>{n&&(this.changesSaved(),this.back())}):this.service.update(r).subscribe(()=>{this.changesSaved(),this.back()})}deleted(r){this.isNew||this.popup.open({content:za,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.name}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.role$=this.service.delete(r.id).subscribe(_=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["roles"])}init(r){"new"!==r?this.load(r.toString()):this.create()}load(r){this.isNew=!1,this.role$=this.service.role(r).subscribe(n=>{this.key=Gu.KEY,this.viewModel=n})}create(){this.isNew=!0,this.viewModel={id:"new",name:void 0}}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("role"))}};ci.\u0275fac=function(r){return new(r||ci)(s.Y36(_t),s.Y36(qn),s.Y36(Ki),s.Y36(Po),s.Y36(s.SBq),s.Y36(ln))},ci.\u0275cmp=s.Xpm({type:ci,selectors:[["tw-role-detail"]],features:[s._Bn([Ki])],decls:1,vars:4,consts:[[3,"key","viewModel","showSave","showDelete","submitted","deleted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)},dependencies:[zi],encapsulation:2}),ci=(0,Tn.gn)([vn],ci);const lp=[{path:"roles",component:ap,canActivate:[Wa],children:[{path:":id",component:ci}]}];let cp=(()=>{class o{constructor(n){this.slotRegistry=n,this.slotRegistry.register(new Gu)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Nr))},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[Ki],imports:[g.ez,Ho,Fn.forChild(lp),fr,Qo]}),o})(),El=(()=>{class o{constructor(){this.key=o.KEY,this.type=yr,this.title="Register user",this.editors=[{key:"userName",type:cn,label:"Name",required:!0},{key:"email",type:cn,label:"Email",required:!0},{key:"password",type:xu,label:"Password",required:!0,minLength:6,maxLength:100}]}}return o.KEY="RegisterUserSlot",o})(),wl=(()=>{class o{constructor(n,l){this.key=o.KEY,this.type=yr,this.title="Detail";const d=n.map(D=>({key:D,value:D})),_=l.map(D=>({key:D,value:D}));this.editors=[{key:"id",type:Uo,label:"Id",required:!0},{key:"userName",type:cn,label:"Name",required:!0},{key:"email",type:cn,label:"Email",required:!0},{key:"lockoutEnabled",type:oi,label:"Lockout enabled"},{key:"isLockedOut",type:oi,label:"Is locked out",isReadOnly:!0},{key:"roles",type:ia,label:"Roles",required:!1,options:_,singleSelection:!1,bindingBehaviour:jo}],this.children=[{key:"claims",type:"array",title:"Claims",editors:[{key:"type",type:Ru,label:"Claims",required:!0,options:d,singleSelection:!0,bindingBehaviour:jo},{key:"value",type:cn,label:"Value",required:!0}]}]}}return o.KEY="UserDetailSlot",o})(),ui=(()=>{class o{constructor(n,l,d){this.http=n,this.claimsService=l,this.roleService=d}users(){return this.http.get("accounts/users").pipe((0,ze.K)(this.http.handleError))}user(n){return zc({user:this.http.get(`accounts/user/${n}`),claims:this.claimsService.claimtypes(),roles:this.roleService.roles()}).pipe((0,Ge.U)(l=>({user:l.user,claims:l.claims.map(d=>d.name),roles:l.roles.map(d=>d.name)}))).pipe((0,ze.K)(this.http.handleError))}register(n){return this.http.post("accounts/register",n).pipe((0,ze.K)(this.http.handleError))}update(n){return this.http.put("accounts/user",n).pipe((0,ze.K)(this.http.handleError))}delete(n){return this.http.delete(`accounts/user/${n}`).pipe((0,ze.K)(this.http.handleError))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Fi),s.LFG(Xo),s.LFG(Ki))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();const by=function(o){return[".",o]};function im(o,r){if(1&o&&(s.TgZ(0,"div",11)(1,"div"),s._uU(2),s.qZA(),s.TgZ(3,"div"),s._uU(4),s.qZA()()),2&o){const n=r.$implicit;s.Q6J("routerLink",s.VKq(4,by,null==n?null:n.id)),s.uIk("title",null==n?null:n.userName),s.xp6(2),s.Oqu(n.userName),s.xp6(2),s.Oqu(n.email)}}const om=function(){return[".","register"]};let di=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.users=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"user"===r.source&&this.loadData()}getType(){return Hn.KEY}reload(){this.ngOnInit()}loadData(){this.loadUsers()}loadUsers(){this.users$=this.service.users().subscribe(r=>{this.users=r})}};di.\u0275fac=function(r){return new(r||di)(s.Y36(ui),s.Y36(ln))},di.\u0275cmp=s.Xpm({type:di,selectors:[["tw-user-list"]],features:[s._Bn([ui])],decls:13,vars:7,consts:function(){let o,r;return o=$localize`:␟4d13a9cd5ed3dcee0eab22cb25198d43886942be␟4555457172864212828:Users`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],o,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","user-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(s.TgZ(0,"tw-list",0),s.ALo(1,"filter"),s.TgZ(2,"tw-header")(3,"h3",1),s.SDv(4,2),s.qZA(),s.TgZ(5,"div",3)(6,"a",4),s._UZ(7,"tw-icon",5),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return n.reload()}),s._UZ(9,"tw-icon",7),s.qZA()(),s.TgZ(10,"div",8)(11,"input",9),s.NdJ("ngModelChange",function(d){return n.searchText=d}),s.qZA()()(),s.YNc(12,im,5,6,"ng-template",10),s.qZA()),2&r&&(s.Q6J("rows",s.xi3(1,3,n.users,n.searchText)),s.xp6(6),s.Q6J("routerLink",s.DdM(6,om)),s.xp6(5),s.Q6J("ngModel",n.searchText))},dependencies:[An,ni,Bi,Jr,Tr,Ir,Dr,Yi,Br,Wi,es],encapsulation:2}),di=(0,Tn.gn)([vn],di);let sm=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-user-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(s.TgZ(0,"tw-pane")(1,"div",0),s._UZ(2,"tw-user-list"),s.qZA(),s.TgZ(3,"div",1),s._UZ(4,"router-outlet"),s.qZA()())},dependencies:[Ar,ei,di],encapsulation:2}),o})(),mt=class{constructor(r,n,l,d,_){this.router=r,this.route=n,this.service=l,this.slotRegistry=d,this.messageBus=_,this.key=wl.KEY}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.user$=this.service.update(r).subscribe(()=>{this.changesSaved(),this.back()})}deleted(r){this.changesSaved()}back(){this.router.navigate(["users"])}init(r){this.load(r.toString())}load(r){this.user$=this.service.user(r).subscribe(n=>{this.slotRegistry.register(new wl(n.claims,n.roles)),this.key=wl.KEY,this.viewModel=n.user})}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("user"))}};mt.\u0275fac=function(r){return new(r||mt)(s.Y36(_t),s.Y36(qn),s.Y36(ui),s.Y36(Nr),s.Y36(ln))},mt.\u0275cmp=s.Xpm({type:mt,selectors:[["tw-user-detail"]],features:[s._Bn([ui])],decls:1,vars:4,consts:[[3,"key","viewModel","showSave","showDelete","submitted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!1)},dependencies:[zi],encapsulation:2}),mt=(0,Tn.gn)([vn],mt);let hi=class{constructor(r,n,l){this.router=r,this.service=n,this.messageBus=l,this.key=El.KEY,this.errors=[]}ngOnInit(){this.key=El.KEY,this.viewModel={userName:void 0,email:void 0,password:void 0,confirmPassword:void 0}}submitted(r){r.confirmPassword=r.password,this.user$=this.service.register(r).subscribe(()=>{this.changesSaved(),this.back()},n=>{this.errors=n.errors})}back(){this.router.navigate(["users"])}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("user"))}};hi.\u0275fac=function(r){return new(r||hi)(s.Y36(_t),s.Y36(ui),s.Y36(ln))},hi.\u0275cmp=s.Xpm({type:hi,selectors:[["tw-register-user"]],features:[s._Bn([ui])],decls:1,vars:7,consts:[[3,"key","viewModel","showSave","saveTitle","showCancel","showDelete","errors","submitted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("saveTitle","Register")("showCancel",!1)("showDelete",!1)("errors",n.errors)},dependencies:[zi],encapsulation:2}),hi=(0,Tn.gn)([vn],hi);const am=[{path:"users",component:sm,canActivate:[Wa],children:[{path:"register",component:hi},{path:":id",component:mt}]}];let lm=(()=>{class o{constructor(n){this.slotRegistry=n,this.slotRegistry.register(new El)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Nr))},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[ui],imports:[g.ez,Ho,Fn.forChild(am),fr,Qo]}),o})(),fi=(()=>{class o{constructor(n){this.http=n}scopes(){return this.http.get("scopes").pipe((0,ze.K)(this.http.handleError))}scopenames(){return this.http.get("scopes/names").pipe((0,ze.K)(this.http.handleError))}scope(n){return this.http.get(`scopes/${n}`).pipe((0,ze.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("scopes",n).pipe((0,ze.K)(this.http.handleError))}update(n){return this.http.put("scopes",n).pipe((0,ze.K)(this.http.handleError))}delete(n){return this.http.delete(`scopes/${n}`).pipe((0,ze.K)(this.http.handleError))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Fi))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})(),bl=(()=>{class o{constructor(n){this.key=o.KEY,this.type=yr,this.title="Detail";const l=n.map(d=>({key:d,value:d}));this.editors=[{key:"id",type:Uo,label:"Id",required:!0},{key:"name",type:cn,label:"Name",required:!0},{key:"displayName",type:cn,label:"Display name",required:!0},{key:"description",type:hl,label:"Description"},{key:"resources",type:ia,label:"Resources",options:l,singleSelection:!1,bindingBehaviour:jo,allowAddingItems:!0}]}}return o.KEY="ScopeDetailSlot",o})(),pi=class{constructor(r,n,l,d,_,D,M){this.router=r,this.route=n,this.service=l,this.slotRegistry=d,this.popup=_,this.element=D,this.messageBus=M,this.key=bl.KEY,this.errors=[],this.isNew=!1}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.name&&this.init(r.name)})}submitted(r){this.resource$=this.isNew?this.service.create(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n)):this.service.update(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n))}deleted(r){this.isNew||this.popup.open({content:za,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.name}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.resource$=this.service.delete(r.id).subscribe(_=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["scopes"])}init(r){"new"!==r?this.load(r):this.create()}load(r){this.isNew=!1,this.resource$=this.service.scope(r).subscribe(n=>{this.slotRegistry.register(new bl(n.resources)),this.key=bl.KEY,this.viewModel=n})}create(){this.isNew=!0,this.viewModel={id:"new",name:"new",displayName:void 0,description:void 0,resources:[]},this.slotRegistry.register(new bl([]))}handleSuccess(){this.changesSaved(),this.back()}handleError(r){this.errors=r.errors}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("scope"))}};pi.\u0275fac=function(r){return new(r||pi)(s.Y36(_t),s.Y36(qn),s.Y36(fi),s.Y36(Nr),s.Y36(Po),s.Y36(s.SBq),s.Y36(ln))},pi.\u0275cmp=s.Xpm({type:pi,selectors:[["tw-scope-detail"]],features:[s._Bn([fi])],decls:1,vars:5,consts:[[3,"key","viewModel","showSave","showDelete","errors","submitted","deleted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)("errors",n.errors)},dependencies:[zi],encapsulation:2}),pi=(0,Tn.gn)([vn],pi);const up=function(o){return[".",o]};function ts(o,r){if(1&o&&(s.TgZ(0,"div",11)(1,"div"),s._uU(2),s.qZA(),s.TgZ(3,"div"),s._uU(4),s.qZA()()),2&o){const n=r.$implicit;s.Q6J("routerLink",s.VKq(4,up,n.id)),s.uIk("title",n.name),s.xp6(2),s.Oqu(n.name),s.xp6(2),s.Oqu(n.displayName)}}const cm=function(){return[".","new"]};let qi=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.scopes=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"scope"===r.source&&this.loadData()}getType(){return Hn.KEY}reload(){this.ngOnInit()}loadData(){this.loadRoles()}loadRoles(){this.resource$=this.service.scopes().subscribe(r=>{this.scopes=r})}};qi.\u0275fac=function(r){return new(r||qi)(s.Y36(fi),s.Y36(ln))},qi.\u0275cmp=s.Xpm({type:qi,selectors:[["tw-scope-list"]],features:[s._Bn([fi])],decls:13,vars:7,consts:function(){let o,r;return o=$localize`:␟4c868744dbbf8bcdb48cd56b8d8da3d5a107b817␟4762525426208239051:Scopes`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],o,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","scope-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(s.TgZ(0,"tw-list",0),s.ALo(1,"filter"),s.TgZ(2,"tw-header")(3,"h3",1),s.SDv(4,2),s.qZA(),s.TgZ(5,"div",3)(6,"a",4),s._UZ(7,"tw-icon",5),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return n.reload()}),s._UZ(9,"tw-icon",7),s.qZA()(),s.TgZ(10,"div",8)(11,"input",9),s.NdJ("ngModelChange",function(d){return n.searchText=d}),s.qZA()()(),s.YNc(12,ts,5,6,"ng-template",10),s.qZA()),2&r&&(s.Q6J("rows",s.xi3(1,3,n.scopes,n.searchText)),s.xp6(6),s.Q6J("routerLink",s.DdM(6,cm)),s.xp6(5),s.Q6J("ngModel",n.searchText))},dependencies:[An,ni,Bi,Jr,Tr,Ir,Dr,Yi,Br,Wi,es],encapsulation:2}),qi=(0,Tn.gn)([vn],qi);const dm=[{path:"scopes",component:(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-resource-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(s.TgZ(0,"tw-pane")(1,"div",0),s._UZ(2,"tw-scope-list"),s.qZA(),s.TgZ(3,"div",1),s._UZ(4,"router-outlet"),s.qZA()())},dependencies:[Ar,ei,qi],encapsulation:2}),o})(),canActivate:[Wa],children:[{path:":name",component:pi}]}];let dp=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[fi],imports:[g.ez,Ho,Fn.forChild(dm),fr,Qo]}),o})(),ns=(()=>{class o{constructor(n){this.http=n}applications(){return this.http.get("application").pipe((0,ze.K)(this.http.handleError))}options(){return this.http.get("application/options").pipe((0,ze.K)(this.http.handleError))}application(n){return this.http.get(`application/${n}`).pipe((0,ze.K)(this.http.handleError))}register(n){return n.id=void 0,this.http.post("application",n).pipe((0,ze.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("application",n).pipe((0,ze.K)(this.http.handleError))}update(n){return this.http.put("application",n).pipe((0,ze.K)(this.http.handleError))}delete(n){return this.http.delete(`application/${n}`).pipe((0,ze.K)(this.http.handleError))}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(Fi))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})(),ca=(()=>{class o{constructor(n,l,d,_){this.key=o.KEY,this.type=yr,this.title="Detail";const D=n.map(q=>({key:q,value:q})),M=l.map(q=>({key:q,value:q}));_.forEach(q=>{const me=`scp:${q}`;d.some(de=>de===me)||d.push(me)});const N=d.map(q=>({key:q,value:q}));this.editors=[{key:"id",type:Uo,label:"Id",required:!0},{key:"clientId",type:cn,label:"ClientId",required:!0},{key:"displayName",type:cn,label:"Display name",required:!0},{key:"type",type:Ru,required:!0,label:"Type",options:[{key:"public",value:"public"},{key:"confidential",value:"confidential"}]},{key:"clientSecret",type:xu,label:"Client secret"},{key:"requirePkce",type:oi,label:"Require Pkce",required:!0},{key:"requireConsent",type:oi,label:"Require consent"},{key:"redirectUris",type:ia,label:"Redirect uris",options:D,singleSelection:!1,bindingBehaviour:jo,allowAddingItems:!0},{key:"postLogoutRedirectUris",type:ia,label:"Post logout redirect uris",options:M,singleSelection:!1,bindingBehaviour:jo,allowAddingItems:!0},{key:"permissions",type:ia,label:"Permissions",options:N,singleSelection:!1,bindingBehaviour:jo,allowAddingItems:!0}]}}return o.KEY="ApplicationDetailSlot",o})(),ua=(()=>{class o{constructor(){this.key=o.KEY,this.type=yr,this.title="Register",this.editors=[{key:"id",type:Uo,label:"Id",required:!0},{key:"clientId",type:cn,label:"ClientId",required:!0},{key:"displayName",type:cn,label:"Display name",required:!0},{key:"type",type:Ru,required:!0,label:"Type",options:[{key:"public",value:"public"},{key:"confidential",value:"confidential"}]},{key:"clientSecret",type:xu,label:"Client secret"},{key:"requirePkce",type:oi,label:"Require Pkce",required:!0},{key:"requireConsent",type:oi,label:"Require consent"}]}}return o.KEY="RegisterApplicationSlot",o})(),un=class{constructor(r,n,l,d,_,D,M,N,q){this.router=r,this.route=n,this.service=l,this.scopeService=d,this.slotRegistry=_,this.popup=D,this.element=M,this.messageBus=N,this.formdefService=q,this.key=ca.KEY,this.errors=[],this.isNew=!1,this.form=new Cf({})}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.application$=this.isNew?this.service.create(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n)):this.service.update(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n))}deleted(r){this.isNew||this.popup.open({content:za,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.clientId}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.application$=this.service.delete(r.id).subscribe(_=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["applications"])}init(r){"new"!==r?this.load(r):this.create()}load(r){this.isNew=!1,this.application$=zc({scopenames:this.scopeService.scopenames(),options:this.service.options(),application:this.service.application(r)}).subscribe(n=>{this.slotRegistry.register(new ca(n.application.redirectUris,n.application.postLogoutRedirectUris,n.options.permissions,n.scopenames)),this.applyData(n.application)})}create(){this.isNew=!0;const r={id:"new",clientId:"new",displayName:void 0,type:void 0,clientSecret:void 0,requirePkce:!1,requireConsent:!1,redirectUris:[],postLogoutRedirectUris:[],permissions:[]};this.slotRegistry.register(new ca(r.redirectUris,r.postLogoutRedirectUris,r.permissions,[])),this.applyData(r)}applyData(r){this.key=ca.KEY,this.form=this.formdefService.toGroup(this.key,r),this.viewModel=r,this.applyFormBehavior(this.form)}handleSuccess(){this.changesSaved(),this.back()}handleError(r){this.errors=r.errors}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("application"))}applyFormBehavior(r){if(void 0===r)return;const n=r.get("type");if(n&&n.valueChanges.subscribe(d=>{r.get("clientSecret").setValue(void 0),"confidential"===d?(r.get("clientSecret").enable(),r.get("clientSecret").setValidators(Rr.required),r.get("requirePkce").disable(),r.get("requirePkce").setValidators(null),r.get("requirePkce").setValue(!1),r.get("requireConsent").disable(),r.get("requireConsent").setValidators(null),r.get("requireConsent").setValue(!1),r.get("redirectUris").disable(),r.get("redirectUris").setValue([]),r.get("postLogoutRedirectUris").disable(),r.get("postLogoutRedirectUris").setValue([])):(r.get("clientSecret").disable(),r.get("clientSecret").setValidators(null)),r.get("clientSecret").updateValueAndValidity()}),r.get("clientSecret")&&!this.isNew){const d=r.get("type");d&&("confidential"===d.value?(r.get("clientSecret").setValidators(Rr.required),r.get("requirePkce").disable(),r.get("requirePkce").setValue(!1),r.get("requireConsent").disable(),r.get("requireConsent").setValue(!1),r.get("redirectUris").disable(),r.get("redirectUris").setValue([]),r.get("postLogoutRedirectUris").disable(),r.get("postLogoutRedirectUris").setValue([])):r.get("clientSecret").setValidators(null),r.get("clientSecret").updateValueAndValidity())}}};un.\u0275fac=function(r){return new(r||un)(s.Y36(_t),s.Y36(qn),s.Y36(ns),s.Y36(fi),s.Y36(Nr),s.Y36(Po),s.Y36(s.SBq),s.Y36(ln),s.Y36(Gi))},un.\u0275cmp=s.Xpm({type:un,selectors:[["tw-application-detail"]],features:[s._Bn([ns,fi,Gi])],decls:1,vars:7,consts:[[3,"key","viewModel","showSave","showDelete","errors","useInputForm","form","submitted","deleted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)("errors",n.errors)("useInputForm",!0)("form",n.form)},dependencies:[zi],encapsulation:2}),un=(0,Tn.gn)([vn],un);const hm=function(o){return[".",o]};function hp(o,r){if(1&o&&(s.TgZ(0,"div",11)(1,"div"),s._uU(2),s.qZA(),s.TgZ(3,"div"),s._uU(4),s.qZA()()),2&o){const n=r.$implicit;s.Q6J("routerLink",s.VKq(4,hm,n.id)),s.uIk("title",n.displayName),s.xp6(2),s.Oqu(n.clientId),s.xp6(2),s.Oqu(n.displayName)}}const Er=function(){return[".","register"]};let en=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.applications=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"application"===r.source&&this.loadData()}getType(){return Hn.KEY}reload(){this.ngOnInit()}loadData(){this.loadRoles()}loadRoles(){this.applications$=this.service.applications().subscribe(r=>{this.applications=r})}};en.\u0275fac=function(r){return new(r||en)(s.Y36(ns),s.Y36(ln))},en.\u0275cmp=s.Xpm({type:en,selectors:[["tw-application-list"]],features:[s._Bn([ns])],decls:13,vars:7,consts:function(){let o,r;return o=$localize`:␟f1abafaeb40ce52355ddcc24686e3cd17b64e08a␟6658000829978978023:Applications`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],o,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","application-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(s.TgZ(0,"tw-list",0),s.ALo(1,"filter"),s.TgZ(2,"tw-header")(3,"h3",1),s.SDv(4,2),s.qZA(),s.TgZ(5,"div",3)(6,"a",4),s._UZ(7,"tw-icon",5),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return n.reload()}),s._UZ(9,"tw-icon",7),s.qZA()(),s.TgZ(10,"div",8)(11,"input",9),s.NdJ("ngModelChange",function(d){return n.searchText=d}),s.qZA()()(),s.YNc(12,hp,5,6,"ng-template",10),s.qZA()),2&r&&(s.Q6J("rows",s.xi3(1,3,n.applications,n.searchText)),s.xp6(6),s.Q6J("routerLink",s.DdM(6,Er)),s.xp6(5),s.Q6J("ngModel",n.searchText))},dependencies:[An,ni,Bi,Jr,Tr,Ir,Dr,Yi,Br,Wi,es],encapsulation:2}),en=(0,Tn.gn)([vn],en);let er=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-application-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(s.TgZ(0,"tw-pane")(1,"div",0),s._UZ(2,"tw-application-list"),s.qZA(),s.TgZ(3,"div",1),s._UZ(4,"router-outlet"),s.qZA()())},dependencies:[Ar,ei,en],encapsulation:2}),o})(),gi=class{constructor(r,n,l,d,_){this.router=r,this.service=n,this.messageBus=l,this.slotRegistry=d,this.formdefService=_,this.key=ua.KEY,this.errors=[],this.form=new Cf({})}ngOnInit(){this.slotRegistry.register(new ua),this.applyData({id:"new",clientId:"new",displayName:void 0,type:void 0,clientSecret:void 0,requirePkce:!1,requireConsent:!1})}submitted(r){this.registerApplication$=this.service.register(r).subscribe(()=>{this.changesSaved(),this.back()},n=>{this.errors=n.errors})}back(){this.router.navigate(["applications"])}changesSaved(){this.messageBus.publish(new Or(void 0,"Your changes have been saved...",xt.Success)),this.messageBus.publish(new Hn("application"))}applyData(r){this.key=ua.KEY,this.form=this.formdefService.toGroup(this.key,r),this.viewModel=r,this.applyFormBehavior(this.form)}applyFormBehavior(r){const n=r.get("type");n&&n.valueChanges.subscribe(l=>{r.get("clientSecret").setValue(void 0),"confidential"===l?(r.get("clientSecret").enable(),r.get("clientSecret").setValidators(Rr.required),r.get("requirePkce").disable(),r.get("requirePkce").setValidators(null),r.get("requirePkce").setValue(!1),r.get("requireConsent").disable(),r.get("requireConsent").setValidators(null),r.get("requireConsent").setValue(!1)):(r.get("clientSecret").disable(),r.get("clientSecret").setValidators(null),r.get("requirePkce").enable(),r.get("requireConsent").enable()),r.get("clientSecret").updateValueAndValidity()})}};gi.\u0275fac=function(r){return new(r||gi)(s.Y36(_t),s.Y36(ns),s.Y36(ln),s.Y36(Nr),s.Y36(Gi))},gi.\u0275cmp=s.Xpm({type:gi,selectors:[["tw-register-application"]],features:[s._Bn([ns,Gi])],decls:1,vars:9,consts:[[3,"key","viewModel","showSave","saveTitle","showCancel","showDelete","errors","useInputForm","form","submitted"]],template:function(r,n){1&r&&(s.TgZ(0,"tw-formdef",0),s.NdJ("submitted",function(d){return n.submitted(d)}),s.qZA()),2&r&&s.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("saveTitle","Register")("showCancel",!1)("showDelete",!1)("errors",n.errors)("useInputForm",!0)("form",n.form)},dependencies:[zi],encapsulation:2}),gi=(0,Tn.gn)([vn],gi);const fp=[{path:"applications",component:er,canActivate:[Wa],children:[{path:"register",component:gi},{path:":id",component:un}]}];let fm=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({providers:[ns],imports:[g.ez,Ho,Fn.forChild(fp),fr,Qo]}),o})();var pp=f(5861);function pm(o,r){if(1&o&&s._UZ(0,"tw-icon",6),2&o){const n=s.oxw(2).$implicit;s.Q6J("name",n.icon)}}function gm(o,r){if(1&o&&(s.TgZ(0,"a",4),s.YNc(1,pm,1,1,"tw-icon",5),s._uU(2),s.qZA()),2&o){const n=s.oxw().$implicit;s.Q6J("routerLink",n.route),s.xp6(1),s.Q6J("ngIf",n.icon),s.xp6(1),s.hij(" ",n.name," ")}}function Wu(o,r){if(1&o&&s._UZ(0,"tw-icon",6),2&o){const n=s.oxw(2).$implicit;s.Q6J("name",n.icon)}}function da(o,r){if(1&o&&s._UZ(0,"tw-icon",6),2&o){const n=s.oxw(2).$implicit;s.Q6J("name",n.icon)}}function _m(o,r){if(1&o&&(s.TgZ(0,"a",4),s.YNc(1,da,1,1,"tw-icon",5),s._uU(2),s.qZA()),2&o){const n=s.oxw().$implicit;s.Q6J("routerLink",n.route),s.xp6(1),s.Q6J("ngIf",n.icon),s.xp6(1),s.hij(" ",n.name," ")}}function gp(o,r){if(1&o&&(s.TgZ(0,"li",8),s.YNc(1,_m,3,3,"a",2),s.qZA()),2&o){const n=r.$implicit;s.xp6(1),s.Q6J("ngIf",n.route)}}function mm(o,r){if(1&o&&(s.TgZ(0,"ul"),s.YNc(1,gp,2,1,"li",7),s.qZA()),2&o){const n=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngForOf",n.children)}}function _p(o,r){if(1&o&&(s.TgZ(0,"span"),s.YNc(1,Wu,1,1,"tw-icon",5),s._uU(2),s.YNc(3,mm,2,1,"ul",3),s.qZA()),2&o){const n=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf",n.icon),s.xp6(1),s.hij(" ",n.name," "),s.xp6(1),s.Q6J("ngIf",n.children&&n.children.length>0)}}const mp=function(o){return{menu__item:o}};function Sl(o,r){if(1&o&&(s.TgZ(0,"li",1),s.YNc(1,gm,3,3,"a",2),s.YNc(2,_p,4,3,"span",3),s.qZA()),2&o){const n=r.$implicit;s.Q6J("routerLinkActive","active")("ngClass",s.VKq(4,mp,n.route)),s.xp6(1),s.Q6J("ngIf",n.route),s.xp6(1),s.Q6J("ngIf",!n.route)}}let vm=(()=>{class o{constructor(n){this.service=n}get menuItems(){return this.service.items}ngOnInit(){this.service.register({id:"1",name:"Users",route:"/users",icon:"users"}),this.service.register({id:"2",name:"Roles",route:"/roles",icon:"tags"}),this.service.register({id:"3",name:"ClaimTypes",route:"/claimtypes",icon:"key"}),this.service.register({id:"4",name:"Scopes",route:"/scopes",icon:"globe"}),this.service.register({id:"5",name:"Applications",route:"/applications",icon:"desktop"})}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(jc))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-menu"]],features:[s._Bn([jc])],decls:1,vars:1,consts:[[3,"routerLinkActive","ngClass",4,"ngFor","ngForOf"],[3,"routerLinkActive","ngClass"],[3,"routerLink",4,"ngIf"],[4,"ngIf"],[3,"routerLink"],[3,"name",4,"ngIf"],[3,"name"],["routerLinkActive","active","class","menu__item",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"menu__item"]],template:function(n,l){1&n&&s.YNc(0,Sl,3,6,"li",0),2&n&&s.Q6J("ngForOf",l.menuItems)},dependencies:[g.mk,g.sg,g.O5,Tr,Ir,Dr],encapsulation:2}),o})();function vp(o,r){1&o&&(s.TgZ(0,"div"),s._uU(1,"SPA Client"),s.qZA())}function yp(o,r){1&o&&(s.TgZ(0,"span",9)(1,"b"),s._uU(2,">"),s.qZA()())}function Yu(o,r){1&o&&(s.TgZ(0,"span",10)(1,"b"),s._uU(2,"<"),s.qZA()())}function Al(o,r){if(1&o&&(s.TgZ(0,"li",11)(1,"a",12),s._UZ(2,"tw-icon",13),s._uU(3),s.qZA()()),2&o){const n=s.oxw();s.Q6J("routerLinkActive","active"),s.xp6(3),s.hij(" ",n.userName," ")}}function Cp(o,r){1&o&&s._UZ(0,"tw-menu")}function Dp(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"li",14)(1,"a",15),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.login())}),s._uU(2," Login "),s.qZA()()}}function Ep(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"li",14)(1,"a",15),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.logout())}),s._uU(2," Logout "),s.qZA()()}}let wp=(()=>{class o{constructor(n){this.user=n,this.collapsed=!1,this.classlist=this.getClassList(),this.loginClick=new s.vpe}get isAuthenticated(){return this.user.isAuthenticated}get isAdmin(){return this.user.hasClaim("Administrator")}get userName(){return this.user.userName}toggle(){this.collapsed=!this.collapsed,this.classlist=this.getClassList()}login(){this.loginClick.next("login")}logout(){this.loginClick.next("logout")}getClassList(){return this.collapsed?"sidebar sidebar--collapsed":"sidebar"}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Ws))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-sidebar"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.classlist)},outputs:{loginClick:"loginClick"},decls:13,vars:7,consts:[[1,"sidebar__header",3,"click"],[4,"ngIf"],["type","button"],["name","arrow-right",4,"ngIf"],["name","arrow-left",4,"ngIf"],[1,"sidebar__content"],["class","menu__item",3,"routerLinkActive",4,"ngIf"],[1,"sidebar__footer"],["routerLinkActive","active",4,"ngIf"],["name","arrow-right"],["name","arrow-left"],[1,"menu__item",3,"routerLinkActive"],["routerLink","home"],["name","home"],["routerLinkActive","active"],["href","javascript:void(0)",3,"click"]],template:function(n,l){1&n&&(s.TgZ(0,"div",0),s.NdJ("click",function(){return l.toggle()}),s.YNc(1,vp,2,0,"div",1),s.TgZ(2,"button",2),s.YNc(3,yp,3,0,"span",3),s.YNc(4,Yu,3,0,"span",4),s.qZA()(),s.TgZ(5,"div",5)(6,"ul"),s.YNc(7,Al,4,2,"li",6),s.YNc(8,Cp,1,0,"tw-menu",1),s.qZA()(),s.TgZ(9,"div",7)(10,"ul"),s.YNc(11,Dp,3,0,"li",8),s.YNc(12,Ep,3,0,"li",8),s.qZA()()),2&n&&(s.xp6(1),s.Q6J("ngIf",!l.collapsed),s.xp6(2),s.Q6J("ngIf",l.collapsed),s.xp6(1),s.Q6J("ngIf",!l.collapsed),s.xp6(3),s.Q6J("ngIf",l.isAuthenticated),s.xp6(1),s.Q6J("ngIf",l.isAuthenticated&&l.isAdmin),s.xp6(3),s.Q6J("ngIf",!l.isAuthenticated),s.xp6(1),s.Q6J("ngIf",l.isAuthenticated))},dependencies:[g.O5,Tr,Ir,Dr,vm],encapsulation:2}),o})(),Zu=(()=>{class o{constructor(n){this.messageBus=n,this.status$=new ht(null),this.messageBus.subsribe(this)}get status(){return this.status$.asObservable()}onMessage(n){this.setStatus(n)}getType(){return Or.KEY}setStatus(n){this.status$.next(n)}}return o.\u0275fac=function(n){return new(n||o)(s.LFG(ln))},o.\u0275prov=s.Yz7({token:o,factory:o.\u0275fac}),o})();function bp(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"div")(1,"button",3),s.NdJ("click",function(){s.CHM(n);const d=s.oxw(2);return s.KtG(d.action())}),s._UZ(2,"tw-icon",4),s.qZA()()}}function Sp(o,r){if(1&o){const n=s.EpF();s.TgZ(0,"div"),s.YNc(1,bp,3,0,"div",0),s.TgZ(2,"div")(3,"span",1)(4,"span",2),s.NdJ("click",function(){s.CHM(n);const d=s.oxw();return s.KtG(d.close())}),s._uU(5,"\xd7"),s.qZA()(),s._uU(6),s.qZA()()}if(2&o){const n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.hasAction),s.xp6(5),s.hij(" ",n.statusMessage," ")}}let Ap=(()=>{class o{constructor(n){this.service=n,this.styles=this.getStyles(),this.hasAction=!1}get statusMessage(){return this.status&&this.status.title&&this.status.title.length>0?`${this.status.title}: ${this.status.message}`:this.status.message}get status(){return this.message}ngOnInit(){this.service.status.subscribe(n=>{!n||(this.message=n,this.hasAction=this.message.hasAction,this.fadeOut(),this.styles=this.getStyles(this.getStatusClass()))})}displayStatusBar(){return this.message&&!this.message.viewed}close(){this.message.viewed=!0,this.styles=this.getStyles()}action(){this.message.action(),this.close()}fadeOut(){!this.message||this.message.level!==xt.Success||setTimeout(()=>{this.close()},5e3)}getStyles(n=null){return n?`workspace__status ${n}`:"workspace__status"}getStatusClass(){let n="success";switch(this.message.level){case xt.Info:n="info";break;case xt.Warning:n="warning";break;case xt.Danger:n="danger"}return`workspace__status--${n}`}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(Zu))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-statusbar"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.styles)},features:[s._Bn([Zu])],decls:1,vars:1,consts:[[4,"ngIf"],[1,"workspace__status-close"],[3,"click"],["type","button",1,"close",3,"click"],["name","bolt"]],template:function(n,l){1&n&&s.YNc(0,Sp,7,2,"div",0),2&n&&s.Q6J("ngIf",l.displayStatusBar())},dependencies:[g.O5,Dr],encapsulation:2}),o})(),ym=(()=>{class o{constructor(){this.style="workspace"}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-workspace"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.style)},decls:4,vars:0,consts:[[1,"workspace__header"],[1,"workspace__content"]],template:function(n,l){1&n&&(s._UZ(0,"div",0)(1,"tw-statusbar"),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA())},dependencies:[Ar,Ap],encapsulation:2}),o})(),Cm=(()=>{class o{constructor(n,l,d){this.router=n,this.user=l,this.oauthService=d,this.title="ClientApp",this.style="shell"}get isAuthenticated(){return this.user.isAuthenticated}get username(){return this.user.userName}get claims(){return this.user.userClaims}ngOnInit(){this.configure()}loginClick(n){"login"===n?this.login():this.logout()}login(){this.oauthService.initLoginFlow()}logout(){this.oauthService.logOut(),this.user.reset(),this.router.navigate(["/"])}configure(){var n=this;return(0,pp.Z)(function*(){const l=(0,s.X6Q)()?"http://localhost:4200":window.location.origin;n.oauthService.configure({clientId:"spa_client",issuer:(0,s.X6Q)()?"https://localhost:5001/":window.location.origin+"/",redirectUri:l,responseType:"code",scope:"openid roles email server_scope api_scope",requireHttps:!1}),n.oauthService.events.subscribe(function(){var _=(0,pp.Z)(function*(D){("token_received"===D.type||"token_refreshed"===D.type)&&n.user.loadProfile(),"discovery_document_loaded"===D.type&&n.oauthService.hasValidAccessToken()&&n.user.loadProfile()});return function(D){return _.apply(this,arguments)}}()),n.oauthService.loadDiscoveryDocumentAndLogin({onTokenReceived:()=>{n.user.loadProfile()}})})()}}return o.\u0275fac=function(n){return new(n||o)(s.Y36(_t),s.Y36(Ws),s.Y36(ks.Ct))},o.\u0275cmp=s.Xpm({type:o,selectors:[["tw-root"]],hostVars:2,hostBindings:function(n,l){2&n&&s.Tol(l.style)},decls:2,vars:0,consts:[[3,"loginClick"]],template:function(n,l){1&n&&(s.TgZ(0,"tw-sidebar",0),s.NdJ("loginClick",function(_){return l.loginClick(_)}),s.qZA(),s._UZ(1,"tw-workspace"))},dependencies:[wp,ym],encapsulation:2}),o})();const Dm=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"forbidden",component:Xg},{path:"**",component:Ro}];let Em=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=s.oAB({type:o,bootstrap:[Cm]}),o.\u0275inj=s.cJS({providers:[Fo],imports:[Pe,gt.JF,Fn.forRoot(Dm,{useHash:!1,relativeLinkResolution:"legacy"}),ks.zr.forRoot(),fr,zh,i_,ki,ip,cp,lm,dp,fm]}),o})();(0,s.G48)(),wr().bootstrapModule(Em).catch(o=>console.error(o))},1302:function(O,x,f){var g;!function(s,S){var T={};!function(s){"use strict";s.__esModule=!0,s.digestLength=32,s.blockSize=64;var S=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function T(ee,j,X,$,ve){for(var Ee,le,Ie,Q,te,Ce,Le,we,pe,fe,W,Y,ie;ve>=64;){for(Ee=j[0],le=j[1],Ie=j[2],Q=j[3],te=j[4],Ce=j[5],Le=j[6],we=j[7],fe=0;fe<16;fe++)ee[fe]=(255&X[W=$+4*fe])<<24|(255&X[W+1])<<16|(255&X[W+2])<<8|255&X[W+3];for(fe=16;fe<64;fe++)ee[fe]=((Y=((pe=ee[fe-2])>>>17|pe<<15)^(pe>>>19|pe<<13)^pe>>>10)+ee[fe-7]|0)+((ie=((pe=ee[fe-15])>>>7|pe<<25)^(pe>>>18|pe<<14)^pe>>>3)+ee[fe-16]|0);for(fe=0;fe<64;fe++)Y=(((te>>>6|te<<26)^(te>>>11|te<<21)^(te>>>25|te<<7))+(te&Ce^~te&Le)|0)+(we+(S[fe]+ee[fe]|0)|0)|0,ie=((Ee>>>2|Ee<<30)^(Ee>>>13|Ee<<19)^(Ee>>>22|Ee<<10))+(Ee&le^Ee&Ie^le&Ie)|0,we=Le,Le=Ce,Ce=te,te=Q+Y|0,Q=Ie,Ie=le,le=Ee,Ee=Y+ie|0;j[0]+=Ee,j[1]+=le,j[2]+=Ie,j[3]+=Q,j[4]+=te,j[5]+=Ce,j[6]+=Le,j[7]+=we,$+=64,ve-=64}return $}var w=function(){function ee(){this.digestLength=s.digestLength,this.blockSize=s.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ee.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ee.prototype.clean=function(){for(var j=0;j0){for(;this.bufferLength<64&&X>0;)this.buffer[this.bufferLength++]=j[$++],X--;64===this.bufferLength&&(T(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(X>=64&&($=T(this.temp,this.state,j,$,X),X%=64);X>0;)this.buffer[this.bufferLength++]=j[$++],X--;return this},ee.prototype.finish=function(j){if(!this.finished){var X=this.bytesHashed,$=this.bufferLength,ve=X/536870912|0,Ee=X<<3,le=X%64<56?64:128;this.buffer[$]=128;for(var Ie=$+1;Ie>>24&255,this.buffer[le-7]=ve>>>16&255,this.buffer[le-6]=ve>>>8&255,this.buffer[le-5]=ve>>>0&255,this.buffer[le-4]=Ee>>>24&255,this.buffer[le-3]=Ee>>>16&255,this.buffer[le-2]=Ee>>>8&255,this.buffer[le-1]=Ee>>>0&255,T(this.temp,this.state,this.buffer,0,le),this.finished=!0}for(Ie=0;Ie<8;Ie++)j[4*Ie+0]=this.state[Ie]>>>24&255,j[4*Ie+1]=this.state[Ie]>>>16&255,j[4*Ie+2]=this.state[Ie]>>>8&255,j[4*Ie+3]=this.state[Ie]>>>0&255;return this},ee.prototype.digest=function(){var j=new Uint8Array(this.digestLength);return this.finish(j),j},ee.prototype._saveState=function(j){for(var X=0;Xthis.blockSize)(new w).update(j).finish(X).clean();else for(var $=0;$1&&j.update(ee),X&&j.update(X),j.update($),j.finish(ee),$[0]++}s.HMAC=P,s.hash=L,s.default=L,s.hmac=G;var H=new Uint8Array(s.digestLength);s.hkdf=function k(ee,j,X,$){void 0===j&&(j=H),void 0===$&&($=32);for(var ve=new Uint8Array([1]),Ee=G(j,ee),le=new P(Ee),Ie=new Uint8Array(le.digestLength),Q=Ie.length,te=new Uint8Array($),Ce=0;Ce<$;Ce++)Q===Ie.length&&(F(Ie,le,X,ve),Q=0),te[Ce]=Ie[Q++];return le.clean(),Ie.fill(0),ve.fill(0),te},s.pbkdf2=function Z(ee,j,X,$){for(var ve=new P(ee),Ee=ve.digestLength,le=new Uint8Array(4),Ie=new Uint8Array(Ee),Q=new Uint8Array(Ee),te=new Uint8Array($),Ce=0;Ce*Ee<$;Ce++){var Le=Ce+1;le[0]=Le>>>24&255,le[1]=Le>>>16&255,le[2]=Le>>>8&255,le[3]=Le>>>0&255,ve.reset(),ve.update(j),ve.update(le),ve.finish(Q);for(var we=0;we{"use strict";f.d(x,{y:()=>G});var g=f(930),s=f(727),S=f(8822),T=f(9635),w=f(2416),P=f(576),L=f(2806);let G=(()=>{class Z{constructor(j){j&&(this._subscribe=j)}lift(j){const X=new Z;return X.source=this,X.operator=j,X}subscribe(j,X,$){const ve=function k(Z){return Z&&Z instanceof g.Lv||function H(Z){return Z&&(0,P.m)(Z.next)&&(0,P.m)(Z.error)&&(0,P.m)(Z.complete)}(Z)&&(0,s.Nn)(Z)}(j)?j:new g.Hp(j,X,$);return(0,L.x)(()=>{const{operator:Ee,source:le}=this;ve.add(Ee?Ee.call(ve,le):le?this._subscribe(ve):this._trySubscribe(ve))}),ve}_trySubscribe(j){try{return this._subscribe(j)}catch(X){j.error(X)}}forEach(j,X){return new(X=F(X))(($,ve)=>{const Ee=new g.Hp({next:le=>{try{j(le)}catch(Ie){ve(Ie),Ee.unsubscribe()}},error:ve,complete:$});this.subscribe(Ee)})}_subscribe(j){var X;return null===(X=this.source)||void 0===X?void 0:X.subscribe(j)}[S.L](){return this}pipe(...j){return(0,T.U)(j)(this)}toPromise(j){return new(j=F(j))((X,$)=>{let ve;this.subscribe(Ee=>ve=Ee,Ee=>$(Ee),()=>X(ve))})}}return Z.create=ee=>new Z(ee),Z})();function F(Z){var ee;return null!==(ee=Z??w.v.Promise)&&void 0!==ee?ee:Promise}},7579:(O,x,f)=>{"use strict";f.d(x,{x:()=>L});var g=f(9751),s=f(727);const T=(0,f(3888).d)(F=>function(){F(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=f(8737),P=f(2806);let L=(()=>{class F extends g.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(k){const Z=new G(this,this);return Z.operator=k,Z}_throwIfClosed(){if(this.closed)throw new T}next(k){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Z of this.currentObservers)Z.next(k)}})}error(k){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=k;const{observers:Z}=this;for(;Z.length;)Z.shift().error(k)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:k}=this;for(;k.length;)k.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var k;return(null===(k=this.observers)||void 0===k?void 0:k.length)>0}_trySubscribe(k){return this._throwIfClosed(),super._trySubscribe(k)}_subscribe(k){return this._throwIfClosed(),this._checkFinalizedStatuses(k),this._innerSubscribe(k)}_innerSubscribe(k){const{hasError:Z,isStopped:ee,observers:j}=this;return Z||ee?s.Lc:(this.currentObservers=null,j.push(k),new s.w0(()=>{this.currentObservers=null,(0,w.P)(j,k)}))}_checkFinalizedStatuses(k){const{hasError:Z,thrownError:ee,isStopped:j}=this;Z?k.error(ee):j&&k.complete()}asObservable(){const k=new g.y;return k.source=this,k}}return F.create=(H,k)=>new G(H,k),F})();class G extends L{constructor(H,k){super(),this.destination=H,this.source=k}next(H){var k,Z;null===(Z=null===(k=this.destination)||void 0===k?void 0:k.next)||void 0===Z||Z.call(k,H)}error(H){var k,Z;null===(Z=null===(k=this.destination)||void 0===k?void 0:k.error)||void 0===Z||Z.call(k,H)}complete(){var H,k;null===(k=null===(H=this.destination)||void 0===H?void 0:H.complete)||void 0===k||k.call(H)}_subscribe(H){var k,Z;return null!==(Z=null===(k=this.source)||void 0===k?void 0:k.subscribe(H))&&void 0!==Z?Z:s.Lc}}},930:(O,x,f)=>{"use strict";f.d(x,{Hp:()=>$,Lv:()=>Z});var g=f(576),s=f(727),S=f(2416),T=f(7849),w=f(5032);const P=F("C",void 0,void 0);function F(Q,te,Ce){return{kind:Q,value:te,error:Ce}}var H=f(3410),k=f(2806);class Z extends s.w0{constructor(te){super(),this.isStopped=!1,te?(this.destination=te,(0,s.Nn)(te)&&te.add(this)):this.destination=Ie}static create(te,Ce,Le){return new $(te,Ce,Le)}next(te){this.isStopped?le(function G(Q){return F("N",Q,void 0)}(te),this):this._next(te)}error(te){this.isStopped?le(function L(Q){return F("E",void 0,Q)}(te),this):(this.isStopped=!0,this._error(te))}complete(){this.isStopped?le(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(te){this.destination.next(te)}_error(te){try{this.destination.error(te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ee=Function.prototype.bind;function j(Q,te){return ee.call(Q,te)}class X{constructor(te){this.partialObserver=te}next(te){const{partialObserver:Ce}=this;if(Ce.next)try{Ce.next(te)}catch(Le){ve(Le)}}error(te){const{partialObserver:Ce}=this;if(Ce.error)try{Ce.error(te)}catch(Le){ve(Le)}else ve(te)}complete(){const{partialObserver:te}=this;if(te.complete)try{te.complete()}catch(Ce){ve(Ce)}}}class $ extends Z{constructor(te,Ce,Le){let we;if(super(),(0,g.m)(te)||!te)we={next:te??void 0,error:Ce??void 0,complete:Le??void 0};else{let pe;this&&S.v.useDeprecatedNextContext?(pe=Object.create(te),pe.unsubscribe=()=>this.unsubscribe(),we={next:te.next&&j(te.next,pe),error:te.error&&j(te.error,pe),complete:te.complete&&j(te.complete,pe)}):we=te}this.destination=new X(we)}}function ve(Q){S.v.useDeprecatedSynchronousErrorHandling?(0,k.O)(Q):(0,T.h)(Q)}function le(Q,te){const{onStoppedNotification:Ce}=S.v;Ce&&H.z.setTimeout(()=>Ce(Q,te))}const Ie={closed:!0,next:w.Z,error:function Ee(Q){throw Q},complete:w.Z}},727:(O,x,f)=>{"use strict";f.d(x,{Lc:()=>P,w0:()=>w,Nn:()=>L});var g=f(576);const S=(0,f(3888).d)(F=>function(k){F(this),this.message=k?`${k.length} errors occurred during unsubscription:\n${k.map((Z,ee)=>`${ee+1}) ${Z.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=k});var T=f(8737);class w{constructor(H){this.initialTeardown=H,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let H;if(!this.closed){this.closed=!0;const{_parentage:k}=this;if(k)if(this._parentage=null,Array.isArray(k))for(const j of k)j.remove(this);else k.remove(this);const{initialTeardown:Z}=this;if((0,g.m)(Z))try{Z()}catch(j){H=j instanceof S?j.errors:[j]}const{_finalizers:ee}=this;if(ee){this._finalizers=null;for(const j of ee)try{G(j)}catch(X){H=H??[],X instanceof S?H=[...H,...X.errors]:H.push(X)}}if(H)throw new S(H)}}add(H){var k;if(H&&H!==this)if(this.closed)G(H);else{if(H instanceof w){if(H.closed||H._hasParent(this))return;H._addParent(this)}(this._finalizers=null!==(k=this._finalizers)&&void 0!==k?k:[]).push(H)}}_hasParent(H){const{_parentage:k}=this;return k===H||Array.isArray(k)&&k.includes(H)}_addParent(H){const{_parentage:k}=this;this._parentage=Array.isArray(k)?(k.push(H),k):k?[k,H]:H}_removeParent(H){const{_parentage:k}=this;k===H?this._parentage=null:Array.isArray(k)&&(0,T.P)(k,H)}remove(H){const{_finalizers:k}=this;k&&(0,T.P)(k,H),H instanceof w&&H._removeParent(this)}}w.EMPTY=(()=>{const F=new w;return F.closed=!0,F})();const P=w.EMPTY;function L(F){return F instanceof w||F&&"closed"in F&&(0,g.m)(F.remove)&&(0,g.m)(F.add)&&(0,g.m)(F.unsubscribe)}function G(F){(0,g.m)(F)?F():F.unsubscribe()}},2416:(O,x,f)=>{"use strict";f.d(x,{v:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(O,x,f)=>{"use strict";f.d(x,{a:()=>H});var g=f(9751),s=f(4742),S=f(2076),T=f(4671),w=f(3268),P=f(3269),L=f(1810),G=f(5403),F=f(9672);function H(...ee){const j=(0,P.yG)(ee),X=(0,P.jO)(ee),{args:$,keys:ve}=(0,s.D)(ee);if(0===$.length)return(0,S.D)([],j);const Ee=new g.y(function k(ee,j,X=T.y){return $=>{Z(j,()=>{const{length:ve}=ee,Ee=new Array(ve);let le=ve,Ie=ve;for(let Q=0;Q{const te=(0,S.D)(ee[Q],j);let Ce=!1;te.subscribe((0,G.x)($,Le=>{Ee[Q]=Le,Ce||(Ce=!0,Ie--),Ie||$.next(X(Ee.slice()))},()=>{--le||$.complete()}))},$)},$)}}($,j,ve?le=>(0,L.n)(ve,le):T.y));return X?Ee.pipe((0,w.Z)(X)):Ee}function Z(ee,j,X){ee?(0,F.f)(X,ee,j):j()}},7272:(O,x,f)=>{"use strict";f.d(x,{z:()=>w});var g=f(8189),S=f(3269),T=f(2076);function w(...P){return function s(){return(0,g.J)(1)}()((0,T.D)(P,(0,S.yG)(P)))}},515:(O,x,f)=>{"use strict";f.d(x,{E:()=>s});const s=new(f(9751).y)(w=>w.complete())},2076:(O,x,f)=>{"use strict";f.d(x,{D:()=>Le});var g=f(8421),s=f(9672),S=f(4482),T=f(5403);function w(we,pe=0){return(0,S.e)((fe,W)=>{fe.subscribe((0,T.x)(W,Y=>(0,s.f)(W,we,()=>W.next(Y),pe),()=>(0,s.f)(W,we,()=>W.complete(),pe),Y=>(0,s.f)(W,we,()=>W.error(Y),pe)))})}function P(we,pe=0){return(0,S.e)((fe,W)=>{W.add(we.schedule(()=>fe.subscribe(W),pe))})}var F=f(9751),k=f(2202),Z=f(576);function j(we,pe){if(!we)throw new Error("Iterable cannot be null");return new F.y(fe=>{(0,s.f)(fe,pe,()=>{const W=we[Symbol.asyncIterator]();(0,s.f)(fe,pe,()=>{W.next().then(Y=>{Y.done?fe.complete():fe.next(Y.value)})},0,!0)})})}var X=f(3670),$=f(8239),ve=f(1144),Ee=f(6495),le=f(2206),Ie=f(4532),Q=f(3260);function Le(we,pe){return pe?function Ce(we,pe){if(null!=we){if((0,X.c)(we))return function L(we,pe){return(0,g.Xf)(we).pipe(P(pe),w(pe))}(we,pe);if((0,ve.z)(we))return function H(we,pe){return new F.y(fe=>{let W=0;return pe.schedule(function(){W===we.length?fe.complete():(fe.next(we[W++]),fe.closed||this.schedule())})})}(we,pe);if((0,$.t)(we))return function G(we,pe){return(0,g.Xf)(we).pipe(P(pe),w(pe))}(we,pe);if((0,le.D)(we))return j(we,pe);if((0,Ee.T)(we))return function ee(we,pe){return new F.y(fe=>{let W;return(0,s.f)(fe,pe,()=>{W=we[k.h](),(0,s.f)(fe,pe,()=>{let Y,ie;try{({value:Y,done:ie}=W.next())}catch(J){return void fe.error(J)}ie?fe.complete():fe.next(Y)},0,!0)}),()=>(0,Z.m)(W?.return)&&W.return()})}(we,pe);if((0,Q.L)(we))return function te(we,pe){return j((0,Q.Q)(we),pe)}(we,pe)}throw(0,Ie.z)(we)}(we,pe):(0,g.Xf)(we)}},8421:(O,x,f)=>{"use strict";f.d(x,{Xf:()=>ee});var g=f(655),s=f(1144),S=f(8239),T=f(9751),w=f(3670),P=f(2206),L=f(4532),G=f(6495),F=f(3260),H=f(576),k=f(7849),Z=f(8822);function ee(Q){if(Q instanceof T.y)return Q;if(null!=Q){if((0,w.c)(Q))return function j(Q){return new T.y(te=>{const Ce=Q[Z.L]();if((0,H.m)(Ce.subscribe))return Ce.subscribe(te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Q);if((0,s.z)(Q))return function X(Q){return new T.y(te=>{for(let Ce=0;Ce{Q.then(Ce=>{te.closed||(te.next(Ce),te.complete())},Ce=>te.error(Ce)).then(null,k.h)})}(Q);if((0,P.D)(Q))return Ee(Q);if((0,G.T)(Q))return function ve(Q){return new T.y(te=>{for(const Ce of Q)if(te.next(Ce),te.closed)return;te.complete()})}(Q);if((0,F.L)(Q))return function le(Q){return Ee((0,F.Q)(Q))}(Q)}throw(0,L.z)(Q)}function Ee(Q){return new T.y(te=>{(function Ie(Q,te){var Ce,Le,we,pe;return(0,g.mG)(this,void 0,void 0,function*(){try{for(Ce=(0,g.KL)(Q);!(Le=yield Ce.next()).done;)if(te.next(Le.value),te.closed)return}catch(fe){we={error:fe}}finally{try{Le&&!Le.done&&(pe=Ce.return)&&(yield pe.call(Ce))}finally{if(we)throw we.error}}te.complete()})})(Q,te).catch(Ce=>te.error(Ce))})}},6451:(O,x,f)=>{"use strict";f.d(x,{T:()=>P});var g=f(8189),s=f(8421),S=f(515),T=f(3269),w=f(2076);function P(...L){const G=(0,T.yG)(L),F=(0,T._6)(L,1/0),H=L;return H.length?1===H.length?(0,s.Xf)(H[0]):(0,g.J)(F)((0,w.D)(H,G)):S.E}},9646:(O,x,f)=>{"use strict";f.d(x,{of:()=>S});var g=f(3269),s=f(2076);function S(...T){const w=(0,g.yG)(T);return(0,s.D)(T,w)}},102:(O,x,f)=>{"use strict";f.d(x,{S:()=>P});var g=f(9751),s=f(8421);const{isArray:S}=Array;var w=f(5403);function P(...G){return 1===(G=function T(G){return 1===G.length&&S(G[0])?G[0]:G}(G)).length?(0,s.Xf)(G[0]):new g.y(function L(G){return F=>{let H=[];for(let k=0;H&&!F.closed&&k{if(H){for(let ee=0;ee{"use strict";f.d(x,{_:()=>S});var g=f(9751),s=f(576);function S(T,w){const P=(0,s.m)(T)?T:()=>T,L=G=>G.error(P());return new g.y(w?G=>w.schedule(L,0,G):L)}},2805:(O,x,f)=>{"use strict";f.d(x,{H:()=>w});var g=f(9751),s=f(4986),S=f(3532),T=f(1165);function w(P=0,L,G=s.P){let F=-1;return null!=L&&((0,S.K)(L)?G=L:F=L),new g.y(H=>{let k=(0,T.q)(P)?+P-G.now():P;k<0&&(k=0);let Z=0;return G.schedule(function(){H.closed||(H.next(Z++),0<=F?this.schedule(void 0,F):H.complete())},k)})}},5403:(O,x,f)=>{"use strict";f.d(x,{x:()=>s});var g=f(930);function s(T,w,P,L,G){return new S(T,w,P,L,G)}class S extends g.Lv{constructor(w,P,L,G,F,H){super(w),this.onFinalize=F,this.shouldUnsubscribe=H,this._next=P?function(k){try{P(k)}catch(Z){w.error(Z)}}:super._next,this._error=G?function(k){try{G(k)}catch(Z){w.error(Z)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(k){w.error(k)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},262:(O,x,f)=>{"use strict";f.d(x,{K:()=>T});var g=f(8421),s=f(5403),S=f(4482);function T(w){return(0,S.e)((P,L)=>{let H,G=null,F=!1;G=P.subscribe((0,s.x)(L,void 0,void 0,k=>{H=(0,g.Xf)(w(k,T(w)(P))),G?(G.unsubscribe(),G=null,H.subscribe(L)):F=!0})),F&&(G.unsubscribe(),G=null,H.subscribe(L))})}},4351:(O,x,f)=>{"use strict";f.d(x,{b:()=>S});var g=f(5577),s=f(576);function S(T,w){return(0,s.m)(w)?(0,g.z)(T,w,1):(0,g.z)(T,1)}},8372:(O,x,f)=>{"use strict";f.d(x,{b:()=>T});var g=f(4986),s=f(4482),S=f(5403);function T(w,P=g.z){return(0,s.e)((L,G)=>{let F=null,H=null,k=null;const Z=()=>{if(F){F.unsubscribe(),F=null;const j=H;H=null,G.next(j)}};function ee(){const j=k+w,X=P.now();if(X{H=j,k=P.now(),F||(F=P.schedule(ee,w),G.add(F))},()=>{Z(),G.complete()},void 0,()=>{H=F=null}))})}},6590:(O,x,f)=>{"use strict";f.d(x,{d:()=>S});var g=f(4482),s=f(5403);function S(T){return(0,g.e)((w,P)=>{let L=!1;w.subscribe((0,s.x)(P,G=>{L=!0,P.next(G)},()=>{L||P.next(T),P.complete()}))})}},1005:(O,x,f)=>{"use strict";f.d(x,{g:()=>Z});var g=f(4986),s=f(7272),S=f(5698),T=f(4482),w=f(5403),P=f(5032),G=f(9718),F=f(5577);function H(ee,j){return j?X=>(0,s.z)(j.pipe((0,S.q)(1),function L(){return(0,T.e)((ee,j)=>{ee.subscribe((0,w.x)(j,P.Z))})}()),X.pipe(H(ee))):(0,F.z)((X,$)=>ee(X,$).pipe((0,S.q)(1),(0,G.h)(X)))}var k=f(2805);function Z(ee,j=g.z){const X=(0,k.H)(ee,j);return H(()=>X)}},9300:(O,x,f)=>{"use strict";f.d(x,{h:()=>S});var g=f(4482),s=f(5403);function S(T,w){return(0,g.e)((P,L)=>{let G=0;P.subscribe((0,s.x)(L,F=>T.call(w,F,G++)&&L.next(F)))})}},590:(O,x,f)=>{"use strict";f.d(x,{P:()=>L});var g=f(6805),s=f(9300),S=f(5698),T=f(6590),w=f(8068),P=f(4671);function L(G,F){const H=arguments.length>=2;return k=>k.pipe(G?(0,s.h)((Z,ee)=>G(Z,ee,k)):P.y,(0,S.q)(1),H?(0,T.d)(F):(0,w.T)(()=>new g.K))}},4004:(O,x,f)=>{"use strict";f.d(x,{U:()=>S});var g=f(4482),s=f(5403);function S(T,w){return(0,g.e)((P,L)=>{let G=0;P.subscribe((0,s.x)(L,F=>{L.next(T.call(w,F,G++))}))})}},9718:(O,x,f)=>{"use strict";f.d(x,{h:()=>s});var g=f(4004);function s(S){return(0,g.U)(()=>S)}},8189:(O,x,f)=>{"use strict";f.d(x,{J:()=>S});var g=f(5577),s=f(4671);function S(T=1/0){return(0,g.z)(s.y,T)}},5577:(O,x,f)=>{"use strict";f.d(x,{z:()=>G});var g=f(4004),s=f(8421),S=f(4482),T=f(9672),w=f(5403),L=f(576);function G(F,H,k=1/0){return(0,L.m)(H)?G((Z,ee)=>(0,g.U)((j,X)=>H(Z,j,ee,X))((0,s.Xf)(F(Z,ee))),k):("number"==typeof H&&(k=H),(0,S.e)((Z,ee)=>function P(F,H,k,Z,ee,j,X,$){const ve=[];let Ee=0,le=0,Ie=!1;const Q=()=>{Ie&&!ve.length&&!Ee&&H.complete()},te=Le=>Ee{j&&H.next(Le),Ee++;let we=!1;(0,s.Xf)(k(Le,le++)).subscribe((0,w.x)(H,pe=>{ee?.(pe),j?te(pe):H.next(pe)},()=>{we=!0},void 0,()=>{if(we)try{for(Ee--;ve.length&&EeCe(pe)):Ce(pe)}Q()}catch(pe){H.error(pe)}}))};return F.subscribe((0,w.x)(H,te,()=>{Ie=!0,Q()})),()=>{$?.()}}(Z,ee,F,k)))}},3900:(O,x,f)=>{"use strict";f.d(x,{w:()=>T});var g=f(8421),s=f(4482),S=f(5403);function T(w,P){return(0,s.e)((L,G)=>{let F=null,H=0,k=!1;const Z=()=>k&&!F&&G.complete();L.subscribe((0,S.x)(G,ee=>{F?.unsubscribe();let j=0;const X=H++;(0,g.Xf)(w(ee,X)).subscribe(F=(0,S.x)(G,$=>G.next(P?P(ee,$,X,j++):$),()=>{F=null,Z()}))},()=>{k=!0,Z()}))})}},5698:(O,x,f)=>{"use strict";f.d(x,{q:()=>T});var g=f(515),s=f(4482),S=f(5403);function T(w){return w<=0?()=>g.E:(0,s.e)((P,L)=>{let G=0;P.subscribe((0,S.x)(L,F=>{++G<=w&&(L.next(F),w<=G&&L.complete())}))})}},8505:(O,x,f)=>{"use strict";f.d(x,{b:()=>w});var g=f(576),s=f(4482),S=f(5403),T=f(4671);function w(P,L,G){const F=(0,g.m)(P)||L||G?{next:P,error:L,complete:G}:P;return F?(0,s.e)((H,k)=>{var Z;null===(Z=F.subscribe)||void 0===Z||Z.call(F);let ee=!0;H.subscribe((0,S.x)(k,j=>{var X;null===(X=F.next)||void 0===X||X.call(F,j),k.next(j)},()=>{var j;ee=!1,null===(j=F.complete)||void 0===j||j.call(F),k.complete()},j=>{var X;ee=!1,null===(X=F.error)||void 0===X||X.call(F,j),k.error(j)},()=>{var j,X;ee&&(null===(j=F.unsubscribe)||void 0===j||j.call(F)),null===(X=F.finalize)||void 0===X||X.call(F)}))}):T.y}},8068:(O,x,f)=>{"use strict";f.d(x,{T:()=>T});var g=f(6805),s=f(4482),S=f(5403);function T(P=w){return(0,s.e)((L,G)=>{let F=!1;L.subscribe((0,S.x)(G,H=>{F=!0,G.next(H)},()=>F?G.complete():G.error(P())))})}function w(){return new g.K}},7414:(O,x,f)=>{"use strict";f.d(x,{V:()=>F});var g=f(4986),s=f(1165),S=f(4482),T=f(8421),w=f(3888),P=f(5403),L=f(9672);const G=(0,w.d)(k=>function(ee=null){k(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ee});function F(k,Z){const{first:ee,each:j,with:X=H,scheduler:$=Z??g.z,meta:ve=null}=(0,s.q)(k)?{first:k}:"number"==typeof k?{each:k}:k;if(null==ee&&null==j)throw new TypeError("No timeout provided.");return(0,S.e)((Ee,le)=>{let Ie,Q,te=null,Ce=0;const Le=we=>{Q=(0,L.f)(le,$,()=>{try{Ie.unsubscribe(),(0,T.Xf)(X({meta:ve,lastValue:te,seen:Ce})).subscribe(le)}catch(pe){le.error(pe)}},we)};Ie=Ee.subscribe((0,P.x)(le,we=>{Q?.unsubscribe(),Ce++,le.next(te=we),j>0&&Le(j)},void 0,void 0,()=>{Q?.closed||Q?.unsubscribe(),te=null})),!Ce&&Le(null!=ee?"number"==typeof ee?ee:+ee-$.now():j)})}function H(k){throw new G(k)}},4408:(O,x,f)=>{"use strict";f.d(x,{o:()=>w});var g=f(727);class s extends g.w0{constructor(L,G){super()}schedule(L,G=0){return this}}const S={setInterval(P,L,...G){const{delegate:F}=S;return F?.setInterval?F.setInterval(P,L,...G):setInterval(P,L,...G)},clearInterval(P){const{delegate:L}=S;return(L?.clearInterval||clearInterval)(P)},delegate:void 0};var T=f(8737);class w extends s{constructor(L,G){super(L,G),this.scheduler=L,this.work=G,this.pending=!1}schedule(L,G=0){if(this.closed)return this;this.state=L;const F=this.id,H=this.scheduler;return null!=F&&(this.id=this.recycleAsyncId(H,F,G)),this.pending=!0,this.delay=G,this.id=this.id||this.requestAsyncId(H,this.id,G),this}requestAsyncId(L,G,F=0){return S.setInterval(L.flush.bind(L,this),F)}recycleAsyncId(L,G,F=0){if(null!=F&&this.delay===F&&!1===this.pending)return G;S.clearInterval(G)}execute(L,G){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const F=this._execute(L,G);if(F)return F;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,G){let H,F=!1;try{this.work(L)}catch(k){F=!0,H=k||new Error("Scheduled action threw falsy error")}if(F)return this.unsubscribe(),H}unsubscribe(){if(!this.closed){const{id:L,scheduler:G}=this,{actions:F}=G;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.P)(F,this),null!=L&&(this.id=this.recycleAsyncId(G,L,null)),this.delay=null,super.unsubscribe()}}}},640:(O,x,f)=>{"use strict";f.d(x,{v:()=>S});const g={now:()=>(g.delegate||Date).now(),delegate:void 0};class s{constructor(w,P=s.now){this.schedulerActionCtor=w,this.now=P}schedule(w,P=0,L){return new this.schedulerActionCtor(this,w).schedule(L,P)}}s.now=g.now;class S extends s{constructor(w,P=s.now){super(w,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(w){const{actions:P}=this;if(this._active)return void P.push(w);let L;this._active=!0;do{if(L=w.execute(w.state,w.delay))break}while(w=P.shift());if(this._active=!1,L){for(;w=P.shift();)w.unsubscribe();throw L}}}},4986:(O,x,f)=>{"use strict";f.d(x,{P:()=>T,z:()=>S});var g=f(4408);const S=new(f(640).v)(g.o),T=S},3410:(O,x,f)=>{"use strict";f.d(x,{z:()=>g});const g={setTimeout(s,S,...T){const{delegate:w}=g;return w?.setTimeout?w.setTimeout(s,S,...T):setTimeout(s,S,...T)},clearTimeout(s){const{delegate:S}=g;return(S?.clearTimeout||clearTimeout)(s)},delegate:void 0}},2202:(O,x,f)=>{"use strict";f.d(x,{h:()=>s});const s=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(O,x,f)=>{"use strict";f.d(x,{L:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(O,x,f)=>{"use strict";f.d(x,{K:()=>s});const s=(0,f(3888).d)(S=>function(){S(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(O,x,f)=>{"use strict";f.d(x,{_6:()=>P,jO:()=>T,yG:()=>w});var g=f(576),s=f(3532);function S(L){return L[L.length-1]}function T(L){return(0,g.m)(S(L))?L.pop():void 0}function w(L){return(0,s.K)(S(L))?L.pop():void 0}function P(L,G){return"number"==typeof S(L)?L.pop():G}},4742:(O,x,f)=>{"use strict";f.d(x,{D:()=>w});const{isArray:g}=Array,{getPrototypeOf:s,prototype:S,keys:T}=Object;function w(L){if(1===L.length){const G=L[0];if(g(G))return{args:G,keys:null};if(function P(L){return L&&"object"==typeof L&&s(L)===S}(G)){const F=T(G);return{args:F.map(H=>G[H]),keys:F}}}return{args:L,keys:null}}},8737:(O,x,f)=>{"use strict";function g(s,S){if(s){const T=s.indexOf(S);0<=T&&s.splice(T,1)}}f.d(x,{P:()=>g})},3888:(O,x,f)=>{"use strict";function g(s){const T=s(w=>{Error.call(w),w.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}f.d(x,{d:()=>g})},1810:(O,x,f)=>{"use strict";function g(s,S){return s.reduce((T,w,P)=>(T[w]=S[P],T),{})}f.d(x,{n:()=>g})},2806:(O,x,f)=>{"use strict";f.d(x,{O:()=>T,x:()=>S});var g=f(2416);let s=null;function S(w){if(g.v.useDeprecatedSynchronousErrorHandling){const P=!s;if(P&&(s={errorThrown:!1,error:null}),w(),P){const{errorThrown:L,error:G}=s;if(s=null,L)throw G}}else w()}function T(w){g.v.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=w)}},9672:(O,x,f)=>{"use strict";function g(s,S,T,w=0,P=!1){const L=S.schedule(function(){T(),P?s.add(this.schedule(null,w)):this.unsubscribe()},w);if(s.add(L),!P)return L}f.d(x,{f:()=>g})},4671:(O,x,f)=>{"use strict";function g(s){return s}f.d(x,{y:()=>g})},1144:(O,x,f)=>{"use strict";f.d(x,{z:()=>g});const g=s=>s&&"number"==typeof s.length&&"function"!=typeof s},2206:(O,x,f)=>{"use strict";f.d(x,{D:()=>s});var g=f(576);function s(S){return Symbol.asyncIterator&&(0,g.m)(S?.[Symbol.asyncIterator])}},1165:(O,x,f)=>{"use strict";function g(s){return s instanceof Date&&!isNaN(s)}f.d(x,{q:()=>g})},576:(O,x,f)=>{"use strict";function g(s){return"function"==typeof s}f.d(x,{m:()=>g})},3670:(O,x,f)=>{"use strict";f.d(x,{c:()=>S});var g=f(8822),s=f(576);function S(T){return(0,s.m)(T[g.L])}},6495:(O,x,f)=>{"use strict";f.d(x,{T:()=>S});var g=f(2202),s=f(576);function S(T){return(0,s.m)(T?.[g.h])}},8239:(O,x,f)=>{"use strict";f.d(x,{t:()=>s});var g=f(576);function s(S){return(0,g.m)(S?.then)}},3260:(O,x,f)=>{"use strict";f.d(x,{L:()=>T,Q:()=>S});var g=f(655),s=f(576);function S(w){return(0,g.FC)(this,arguments,function*(){const L=w.getReader();try{for(;;){const{value:G,done:F}=yield(0,g.qq)(L.read());if(F)return yield(0,g.qq)(void 0);yield yield(0,g.qq)(G)}}finally{L.releaseLock()}})}function T(w){return(0,s.m)(w?.getReader)}},3532:(O,x,f)=>{"use strict";f.d(x,{K:()=>s});var g=f(576);function s(S){return S&&(0,g.m)(S.schedule)}},4482:(O,x,f)=>{"use strict";f.d(x,{A:()=>s,e:()=>S});var g=f(576);function s(T){return(0,g.m)(T?.lift)}function S(T){return w=>{if(s(w))return w.lift(function(P){try{return T(P,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(O,x,f)=>{"use strict";f.d(x,{Z:()=>T});var g=f(4004);const{isArray:s}=Array;function T(w){return(0,g.U)(P=>function S(w,P){return s(P)?w(...P):w(P)}(w,P))}},5032:(O,x,f)=>{"use strict";function g(){}f.d(x,{Z:()=>g})},9635:(O,x,f)=>{"use strict";f.d(x,{U:()=>S,z:()=>s});var g=f(4671);function s(...T){return S(T)}function S(T){return 0===T.length?g.y:1===T.length?T[0]:function(P){return T.reduce((L,G)=>G(L),P)}}},7849:(O,x,f)=>{"use strict";f.d(x,{h:()=>S});var g=f(2416),s=f(3410);function S(T){s.z.setTimeout(()=>{const{onUnhandledError:w}=g.v;if(!w)throw T;w(T)})}},4532:(O,x,f)=>{"use strict";function g(s){return new TypeError(`You provided ${null!==s&&"object"==typeof s?"an invalid object":`'${s}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}f.d(x,{z:()=>g})},655:(O,x,f)=>{"use strict";function w(W,Y,ie,J){var Ue,Se=arguments.length,De=Se<3?Y:null===J?J=Object.getOwnPropertyDescriptor(Y,ie):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)De=Reflect.decorate(W,Y,ie,J);else for(var ot=W.length-1;ot>=0;ot--)(Ue=W[ot])&&(De=(Se<3?Ue(De):Se>3?Ue(Y,ie,De):Ue(Y,ie))||De);return Se>3&&De&&Object.defineProperty(Y,ie,De),De}function G(W,Y,ie,J){return new(ie||(ie=Promise))(function(De,Ue){function ot(Zt){try{Je(J.next(Zt))}catch(nr){Ue(nr)}}function dn(Zt){try{Je(J.throw(Zt))}catch(nr){Ue(nr)}}function Je(Zt){Zt.done?De(Zt.value):function Se(De){return De instanceof ie?De:new ie(function(Ue){Ue(De)})}(Zt.value).then(ot,dn)}Je((J=J.apply(W,Y||[])).next())})}function ve(W){return this instanceof ve?(this.v=W,this):new ve(W)}function Ee(W,Y,ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,J=ie.apply(W,Y||[]),De=[];return Se={},Ue("next"),Ue("throw"),Ue("return"),Se[Symbol.asyncIterator]=function(){return this},Se;function Ue(et){J[et]&&(Se[et]=function(je){return new Promise(function(Un,tn){De.push([et,je,Un,tn])>1||ot(et,je)})})}function ot(et,je){try{!function dn(et){et.value instanceof ve?Promise.resolve(et.value.v).then(Je,Zt):nr(De[0][2],et)}(J[et](je))}catch(Un){nr(De[0][3],Un)}}function Je(et){ot("next",et)}function Zt(et){ot("throw",et)}function nr(et,je){et(je),De.shift(),De.length&&ot(De[0][0],De[0][1])}}function Ie(W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie,Y=W[Symbol.asyncIterator];return Y?Y.call(W):(W=function Z(W){var Y="function"==typeof Symbol&&Symbol.iterator,ie=Y&&W[Y],J=0;if(ie)return ie.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")}(W),ie={},J("next"),J("throw"),J("return"),ie[Symbol.asyncIterator]=function(){return this},ie);function J(De){ie[De]=W[De]&&function(Ue){return new Promise(function(ot,dn){!function Se(De,Ue,ot,dn){Promise.resolve(dn).then(function(Je){De({value:Je,done:ot})},Ue)}(ot,dn,(Ue=W[De](Ue)).done,Ue.value)})}}}f.d(x,{FC:()=>Ee,KL:()=>Ie,gn:()=>w,mG:()=>G,qq:()=>ve})},6895:(O,x,f)=>{"use strict";f.d(x,{$G:()=>Sr,Do:()=>Ie,ED:()=>Wr,EM:()=>hd,HT:()=>w,JF:()=>mn,K0:()=>L,Mx:()=>Ge,NF:()=>_n,O5:()=>wt,RF:()=>Tt,S$:()=>ve,Ts:()=>ro,V_:()=>H,Ye:()=>Q,b0:()=>le,bD:()=>Zn,ez:()=>Ca,mk:()=>Wt,n9:()=>gn,q:()=>S,sg:()=>Ot,tP:()=>us,w_:()=>P});var g=f(1571);let s=null;function S(){return s}function w(y){s||(s=y)}class P{}const L=new g.OlP("DocumentToken");let G=(()=>{class y{historyGo(v){throw new Error("Not implemented")}}return y.\u0275fac=function(v){return new(v||y)},y.\u0275prov=g.Yz7({token:y,factory:function(){return function F(){return(0,g.LFG)(k)}()},providedIn:"platform"}),y})();const H=new g.OlP("Location Initialized");let k=(()=>{class y extends G{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return S().getBaseHref(this._doc)}onPopState(v){const A=S().getGlobalEventTarget(this._doc,"window");return A.addEventListener("popstate",v,!1),()=>A.removeEventListener("popstate",v)}onHashChange(v){const A=S().getGlobalEventTarget(this._doc,"window");return A.addEventListener("hashchange",v,!1),()=>A.removeEventListener("hashchange",v)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(v){this.location.pathname=v}pushState(v,A,U){Z()?this._history.pushState(v,A,U):this.location.hash=U}replaceState(v,A,U){Z()?this._history.replaceState(v,A,U):this.location.hash=U}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(L))},y.\u0275prov=g.Yz7({token:y,factory:function(){return function ee(){return new k((0,g.LFG)(L))}()},providedIn:"platform"}),y})();function Z(){return!!window.history.pushState}function j(y,b){if(0==y.length)return b;if(0==b.length)return y;let v=0;return y.endsWith("/")&&v++,b.startsWith("/")&&v++,2==v?y+b.substring(1):1==v?y+b:y+"/"+b}function X(y){const b=y.match(/#|\?|$/),v=b&&b.index||y.length;return y.slice(0,v-("/"===y[v-1]?1:0))+y.slice(v)}function $(y){return y&&"?"!==y[0]?"?"+y:y}let ve=(()=>{class y{historyGo(v){throw new Error("Not implemented")}}return y.\u0275fac=function(v){return new(v||y)},y.\u0275prov=g.Yz7({token:y,factory:function(){return(0,g.f3M)(le)},providedIn:"root"}),y})();const Ee=new g.OlP("appBaseHref");let le=(()=>{class y extends ve{constructor(v,A){super(),this._platformLocation=v,this._removeListenerFns=[],this._baseHref=A??this._platformLocation.getBaseHrefFromDOM()??(0,g.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return j(this._baseHref,v)}path(v=!1){const A=this._platformLocation.pathname+$(this._platformLocation.search),U=this._platformLocation.hash;return U&&v?`${A}${U}`:A}pushState(v,A,U,re){const ce=this.prepareExternalUrl(U+$(re));this._platformLocation.pushState(v,A,ce)}replaceState(v,A,U,re){const ce=this.prepareExternalUrl(U+$(re));this._platformLocation.replaceState(v,A,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(G),g.LFG(Ee,8))},y.\u0275prov=g.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),Ie=(()=>{class y extends ve{constructor(v,A){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=A&&(this._baseHref=A)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let A=this._platformLocation.hash;return null==A&&(A="#"),A.length>0?A.substring(1):A}prepareExternalUrl(v){const A=j(this._baseHref,v);return A.length>0?"#"+A:A}pushState(v,A,U,re){let ce=this.prepareExternalUrl(U+$(re));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(v,A,ce)}replaceState(v,A,U,re){let ce=this.prepareExternalUrl(U+$(re));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(v,A,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(G),g.LFG(Ee,8))},y.\u0275prov=g.Yz7({token:y,factory:y.\u0275fac}),y})(),Q=(()=>{class y{constructor(v){this._subject=new g.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=v;const A=this._locationStrategy.getBaseHref();this._baseHref=X(Le(A)),this._locationStrategy.onPopState(U=>{this._subject.emit({url:this.path(!0),pop:!0,state:U.state,type:U.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(v=!1){return this.normalize(this._locationStrategy.path(v))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(v,A=""){return this.path()==this.normalize(v+$(A))}normalize(v){return y.stripTrailingSlash(function Ce(y,b){return y&&b.startsWith(y)?b.substring(y.length):b}(this._baseHref,Le(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._locationStrategy.prepareExternalUrl(v)}go(v,A="",U=null){this._locationStrategy.pushState(U,"",v,A),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+$(A)),U)}replaceState(v,A="",U=null){this._locationStrategy.replaceState(U,"",v,A),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+$(A)),U)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(v=0){this._locationStrategy.historyGo?.(v)}onUrlChange(v){return this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(A=>{this._notifyUrlChangeListeners(A.url,A.state)})),()=>{const A=this._urlChangeListeners.indexOf(v);this._urlChangeListeners.splice(A,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(v="",A){this._urlChangeListeners.forEach(U=>U(v,A))}subscribe(v,A,U){return this._subject.subscribe({next:v,error:A,complete:U})}}return y.normalizeQueryParams=$,y.joinWithSlash=j,y.stripTrailingSlash=X,y.\u0275fac=function(v){return new(v||y)(g.LFG(ve))},y.\u0275prov=g.Yz7({token:y,factory:function(){return function te(){return new Q((0,g.LFG)(ve))}()},providedIn:"root"}),y})();function Le(y){return y.replace(/\/index.html$/,"")}function Ge(y,b){b=encodeURIComponent(b);for(const v of y.split(";")){const A=v.indexOf("="),[U,re]=-1==A?[v,""]:[v.slice(0,A),v.slice(A+1)];if(U.trim()===b)return decodeURIComponent(re)}return null}let Wt=(()=>{class y{constructor(v,A,U,re){this._iterableDiffers=v,this._keyValueDiffers=A,this._ngEl=U,this._renderer=re,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,g.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(A=>this._toggleClass(A.key,A.currentValue)),v.forEachChangedItem(A=>this._toggleClass(A.key,A.currentValue)),v.forEachRemovedItem(A=>{A.previousValue&&this._toggleClass(A.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(A=>{if("string"!=typeof A.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,g.AaK)(A.item)}`);this._toggleClass(A.item,!0)}),v.forEachRemovedItem(A=>this._toggleClass(A.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(A=>this._toggleClass(A,!0)):Object.keys(v).forEach(A=>this._toggleClass(A,!!v[A])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(A=>this._toggleClass(A,!1)):Object.keys(v).forEach(A=>this._toggleClass(A,!1)))}_toggleClass(v,A){(v=v.trim())&&v.split(/\s+/g).forEach(U=>{A?this._renderer.addClass(this._ngEl.nativeElement,U):this._renderer.removeClass(this._ngEl.nativeElement,U)})}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.ZZ4),g.Y36(g.aQg),g.Y36(g.SBq),g.Y36(g.Qsj))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),y})(),Sr=(()=>{class y{constructor(v){this._viewContainerRef=v,this.ngComponentOutlet=null}ngOnChanges(v){const{_viewContainerRef:A,ngComponentOutletNgModule:U,ngComponentOutletNgModuleFactory:re}=this;if(A.clear(),this._componentRef=void 0,this.ngComponentOutlet){const ce=this.ngComponentOutletInjector||A.parentInjector;(v.ngComponentOutletNgModule||v.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=U?(0,g.Lck)(U,st(ce)):re?re.create(st(ce)):void 0),this._componentRef=A.createComponent(this.ngComponentOutlet,{index:A.length,injector:ce,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[g.TTD]}),y})();function st(y){return y.get(g.h0i).injector}class ir{constructor(b,v,A,U){this.$implicit=b,this.ngForOf=v,this.index=A,this.count=U}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ot=(()=>{class y{constructor(v,A,U){this._viewContainer=v,this._template=A,this._differs=U,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const A=this._viewContainer;v.forEachOperation((U,re,ce)=>{if(null==U.previousIndex)A.createEmbeddedView(this._template,new ir(U.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)A.remove(null===re?void 0:re);else if(null!==re){const Te=A.get(re);A.move(Te,ce),Dn(Te,U)}});for(let U=0,re=A.length;U{Dn(A.get(U.currentIndex),U)})}static ngTemplateContextGuard(v,A){return!0}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(g.ZZ4))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),y})();function Dn(y,b){y.context.$implicit=b.item}let wt=(()=>{class y{constructor(v,A){this._viewContainer=v,this._context=new ze,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=A}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){kt("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){kt("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,A){return!0}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),y})();class ze{constructor(){this.$implicit=null,this.ngIf=null}}function kt(y,b){if(b&&!b.createEmbeddedView)throw new Error(`${y} must be a TemplateRef, but received '${(0,g.AaK)(b)}'.`)}class no{constructor(b,v){this._viewContainerRef=b,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(b){b&&!this._created?this.create():!b&&this._created&&this.destroy()}}let Tt=(()=>{class y{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const A=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||A,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),A}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let A=0;A{class y{constructor(v,A,U){this.ngSwitch=U,U._addCase(),this._view=new no(v,A)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(Tt,9))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),y})(),Wr=(()=>{class y{constructor(v,A,U){U._addDefault(new no(v,A))}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(Tt,9))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngSwitchDefault",""]],standalone:!0}),y})(),us=(()=>{class y{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(v){if(v.ngTemplateOutlet||v.ngTemplateOutletInjector){const A=this._viewContainerRef;if(this._viewRef&&A.remove(A.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:U,ngTemplateOutletContext:re,ngTemplateOutletInjector:ce}=this;this._viewRef=A.createEmbeddedView(U,re,ce?{injector:ce}:void 0)}else this._viewRef=null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.TTD]}),y})(),ro=(()=>{class y{transform(v){return JSON.stringify(v,null,2)}}return y.\u0275fac=function(v){return new(v||y)},y.\u0275pipe=g.Yjl({name:"json",type:y,pure:!1,standalone:!0}),y})(),Ca=(()=>{class y{}return y.\u0275fac=function(v){return new(v||y)},y.\u0275mod=g.oAB({type:y}),y.\u0275inj=g.cJS({}),y})();const Zn="browser";function _n(y){return y===Zn}let hd=(()=>{class y{}return y.\u0275prov=(0,g.Yz7)({token:y,providedIn:"root",factory:()=>new vt((0,g.LFG)(L),window)}),y})();class vt{constructor(b,v){this.document=b,this.window=v,this.offset=()=>[0,0]}setOffset(b){this.offset=Array.isArray(b)?()=>b:b}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(b){this.supportsScrolling()&&this.window.scrollTo(b[0],b[1])}scrollToAnchor(b){if(!this.supportsScrolling())return;const v=function $l(y,b){const v=y.getElementById(b)||y.getElementsByName(b)[0];if(v)return v;if("function"==typeof y.createTreeWalker&&y.body&&(y.body.createShadowRoot||y.body.attachShadow)){const A=y.createTreeWalker(y.body,NodeFilter.SHOW_ELEMENT);let U=A.currentNode;for(;U;){const re=U.shadowRoot;if(re){const ce=re.getElementById(b)||re.querySelector(`[name="${b}"]`);if(ce)return ce}U=A.nextNode()}}return null}(this.document,b);v&&(this.scrollToElement(v),v.focus())}setHistoryScrollRestoration(b){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=b)}}scrollToElement(b){const v=b.getBoundingClientRect(),A=v.left+this.window.pageXOffset,U=v.top+this.window.pageYOffset,re=this.offset();this.window.scrollTo(A-re[0],U-re[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const b=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!b||!b.writable&&!b.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(y){return Object.getOwnPropertyDescriptor(y,"scrollRestoration")}class mn{}},529:(O,x,f)=>{"use strict";f.d(x,{JF:()=>eo,LE:()=>Ee,TP:()=>ot,UA:()=>J,WM:()=>H,Zn:()=>ie,aW:()=>pe,eN:()=>De});var g=f(6895),s=f(1571),S=f(9646),T=f(9751),w=f(4351),P=f(9300),L=f(4004);class G{}class F{}class H{constructor(V){this.normalizedNames=new Map,this.lazyUpdate=null,V?this.lazyInit="string"==typeof V?()=>{this.headers=new Map,V.split("\n").forEach(R=>{const ne=R.indexOf(":");if(ne>0){const ge=R.slice(0,ne),Ne=ge.toLowerCase(),He=R.slice(ne+1).trim();this.maybeSetNormalizedName(ge,Ne),this.headers.has(Ne)?this.headers.get(Ne).push(He):this.headers.set(Ne,[He])}})}:()=>{this.headers=new Map,Object.keys(V).forEach(R=>{let ne=V[R];const ge=R.toLowerCase();"string"==typeof ne&&(ne=[ne]),ne.length>0&&(this.headers.set(ge,ne),this.maybeSetNormalizedName(R,ge))})}:this.headers=new Map}has(V){return this.init(),this.headers.has(V.toLowerCase())}get(V){this.init();const R=this.headers.get(V.toLowerCase());return R&&R.length>0?R[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(V){return this.init(),this.headers.get(V.toLowerCase())||null}append(V,R){return this.clone({name:V,value:R,op:"a"})}set(V,R){return this.clone({name:V,value:R,op:"s"})}delete(V,R){return this.clone({name:V,value:R,op:"d"})}maybeSetNormalizedName(V,R){this.normalizedNames.has(R)||this.normalizedNames.set(R,V)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(V=>this.applyUpdate(V)),this.lazyUpdate=null))}copyFrom(V){V.init(),Array.from(V.headers.keys()).forEach(R=>{this.headers.set(R,V.headers.get(R)),this.normalizedNames.set(R,V.normalizedNames.get(R))})}clone(V){const R=new H;return R.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,R.lazyUpdate=(this.lazyUpdate||[]).concat([V]),R}applyUpdate(V){const R=V.name.toLowerCase();switch(V.op){case"a":case"s":let ne=V.value;if("string"==typeof ne&&(ne=[ne]),0===ne.length)return;this.maybeSetNormalizedName(V.name,R);const ge=("a"===V.op?this.headers.get(R):void 0)||[];ge.push(...ne),this.headers.set(R,ge);break;case"d":const Ne=V.value;if(Ne){let He=this.headers.get(R);if(!He)return;He=He.filter(Oe=>-1===Ne.indexOf(Oe)),0===He.length?(this.headers.delete(R),this.normalizedNames.delete(R)):this.headers.set(R,He)}else this.headers.delete(R),this.normalizedNames.delete(R)}}forEach(V){this.init(),Array.from(this.normalizedNames.keys()).forEach(R=>V(this.normalizedNames.get(R),this.headers.get(R)))}}class Z{encodeKey(V){return $(V)}encodeValue(V){return $(V)}decodeKey(V){return decodeURIComponent(V)}decodeValue(V){return decodeURIComponent(V)}}const j=/%(\d[a-f0-9])/gi,X={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $(ae){return encodeURIComponent(ae).replace(j,(V,R)=>X[R]??V)}function ve(ae){return`${ae}`}class Ee{constructor(V={}){if(this.updates=null,this.cloneFrom=null,this.encoder=V.encoder||new Z,V.fromString){if(V.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(ae,V){const R=new Map;return ae.length>0&&ae.replace(/^\?/,"").split("&").forEach(ge=>{const Ne=ge.indexOf("="),[He,Oe]=-1==Ne?[V.decodeKey(ge),""]:[V.decodeKey(ge.slice(0,Ne)),V.decodeValue(ge.slice(Ne+1))],Ve=R.get(He)||[];Ve.push(Oe),R.set(He,Ve)}),R}(V.fromString,this.encoder)}else V.fromObject?(this.map=new Map,Object.keys(V.fromObject).forEach(R=>{const ne=V.fromObject[R],ge=Array.isArray(ne)?ne.map(ve):[ve(ne)];this.map.set(R,ge)})):this.map=null}has(V){return this.init(),this.map.has(V)}get(V){this.init();const R=this.map.get(V);return R?R[0]:null}getAll(V){return this.init(),this.map.get(V)||null}keys(){return this.init(),Array.from(this.map.keys())}append(V,R){return this.clone({param:V,value:R,op:"a"})}appendAll(V){const R=[];return Object.keys(V).forEach(ne=>{const ge=V[ne];Array.isArray(ge)?ge.forEach(Ne=>{R.push({param:ne,value:Ne,op:"a"})}):R.push({param:ne,value:ge,op:"a"})}),this.clone(R)}set(V,R){return this.clone({param:V,value:R,op:"s"})}delete(V,R){return this.clone({param:V,value:R,op:"d"})}toString(){return this.init(),this.keys().map(V=>{const R=this.encoder.encodeKey(V);return this.map.get(V).map(ne=>R+"="+this.encoder.encodeValue(ne)).join("&")}).filter(V=>""!==V).join("&")}clone(V){const R=new Ee({encoder:this.encoder});return R.cloneFrom=this.cloneFrom||this,R.updates=(this.updates||[]).concat(V),R}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(V=>this.map.set(V,this.cloneFrom.map.get(V))),this.updates.forEach(V=>{switch(V.op){case"a":case"s":const R=("a"===V.op?this.map.get(V.param):void 0)||[];R.push(ve(V.value)),this.map.set(V.param,R);break;case"d":if(void 0===V.value){this.map.delete(V.param);break}{let ne=this.map.get(V.param)||[];const ge=ne.indexOf(ve(V.value));-1!==ge&&ne.splice(ge,1),ne.length>0?this.map.set(V.param,ne):this.map.delete(V.param)}}}),this.cloneFrom=this.updates=null)}}class Ie{constructor(){this.map=new Map}set(V,R){return this.map.set(V,R),this}get(V){return this.map.has(V)||this.map.set(V,V.defaultValue()),this.map.get(V)}delete(V){return this.map.delete(V),this}has(V){return this.map.has(V)}keys(){return this.map.keys()}}function te(ae){return typeof ArrayBuffer<"u"&&ae instanceof ArrayBuffer}function Ce(ae){return typeof Blob<"u"&&ae instanceof Blob}function Le(ae){return typeof FormData<"u"&&ae instanceof FormData}class pe{constructor(V,R,ne,ge){let Ne;if(this.url=R,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=V.toUpperCase(),function Q(ae){switch(ae){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ge?(this.body=void 0!==ne?ne:null,Ne=ge):Ne=ne,Ne&&(this.reportProgress=!!Ne.reportProgress,this.withCredentials=!!Ne.withCredentials,Ne.responseType&&(this.responseType=Ne.responseType),Ne.headers&&(this.headers=Ne.headers),Ne.context&&(this.context=Ne.context),Ne.params&&(this.params=Ne.params)),this.headers||(this.headers=new H),this.context||(this.context=new Ie),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=R;else{const Oe=R.indexOf("?");this.urlWithParams=R+(-1===Oe?"?":OeWe.set(Ye,V.setHeaders[Ye]),Ve)),V.setParams&&(Gt=Object.keys(V.setParams).reduce((We,Ye)=>We.set(Ye,V.setParams[Ye]),Gt)),new pe(R,ne,Ne,{params:Gt,headers:Ve,context:tt,reportProgress:Oe,responseType:ge,withCredentials:He})}}var fe=(()=>((fe=fe||{})[fe.Sent=0]="Sent",fe[fe.UploadProgress=1]="UploadProgress",fe[fe.ResponseHeader=2]="ResponseHeader",fe[fe.DownloadProgress=3]="DownloadProgress",fe[fe.Response=4]="Response",fe[fe.User=5]="User",fe))();class W{constructor(V,R=200,ne="OK"){this.headers=V.headers||new H,this.status=void 0!==V.status?V.status:R,this.statusText=V.statusText||ne,this.url=V.url||null,this.ok=this.status>=200&&this.status<300}}class Y extends W{constructor(V={}){super(V),this.type=fe.ResponseHeader}clone(V={}){return new Y({headers:V.headers||this.headers,status:void 0!==V.status?V.status:this.status,statusText:V.statusText||this.statusText,url:V.url||this.url||void 0})}}class ie extends W{constructor(V={}){super(V),this.type=fe.Response,this.body=void 0!==V.body?V.body:null}clone(V={}){return new ie({body:void 0!==V.body?V.body:this.body,headers:V.headers||this.headers,status:void 0!==V.status?V.status:this.status,statusText:V.statusText||this.statusText,url:V.url||this.url||void 0})}}class J extends W{constructor(V){super(V,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${V.url||"(unknown url)"}`:`Http failure response for ${V.url||"(unknown url)"}: ${V.status} ${V.statusText}`,this.error=V.error||null}}function Se(ae,V){return{body:V,headers:ae.headers,context:ae.context,observe:ae.observe,params:ae.params,reportProgress:ae.reportProgress,responseType:ae.responseType,withCredentials:ae.withCredentials}}let De=(()=>{class ae{constructor(R){this.handler=R}request(R,ne,ge={}){let Ne;if(R instanceof pe)Ne=R;else{let Ve,Gt;Ve=ge.headers instanceof H?ge.headers:new H(ge.headers),ge.params&&(Gt=ge.params instanceof Ee?ge.params:new Ee({fromObject:ge.params})),Ne=new pe(R,ne,void 0!==ge.body?ge.body:null,{headers:Ve,context:ge.context,params:Gt,reportProgress:ge.reportProgress,responseType:ge.responseType||"json",withCredentials:ge.withCredentials})}const He=(0,S.of)(Ne).pipe((0,w.b)(Ve=>this.handler.handle(Ve)));if(R instanceof pe||"events"===ge.observe)return He;const Oe=He.pipe((0,P.h)(Ve=>Ve instanceof ie));switch(ge.observe||"body"){case"body":switch(Ne.responseType){case"arraybuffer":return Oe.pipe((0,L.U)(Ve=>{if(null!==Ve.body&&!(Ve.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ve.body}));case"blob":return Oe.pipe((0,L.U)(Ve=>{if(null!==Ve.body&&!(Ve.body instanceof Blob))throw new Error("Response is not a Blob.");return Ve.body}));case"text":return Oe.pipe((0,L.U)(Ve=>{if(null!==Ve.body&&"string"!=typeof Ve.body)throw new Error("Response is not a string.");return Ve.body}));default:return Oe.pipe((0,L.U)(Ve=>Ve.body))}case"response":return Oe;default:throw new Error(`Unreachable: unhandled observe type ${ge.observe}}`)}}delete(R,ne={}){return this.request("DELETE",R,ne)}get(R,ne={}){return this.request("GET",R,ne)}head(R,ne={}){return this.request("HEAD",R,ne)}jsonp(R,ne){return this.request("JSONP",R,{params:(new Ee).append(ne,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(R,ne={}){return this.request("OPTIONS",R,ne)}patch(R,ne,ge={}){return this.request("PATCH",R,Se(ge,ne))}post(R,ne,ge={}){return this.request("POST",R,Se(ge,ne))}put(R,ne,ge={}){return this.request("PUT",R,Se(ge,ne))}}return ae.\u0275fac=function(R){return new(R||ae)(s.LFG(G))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class Ue{constructor(V,R){this.next=V,this.interceptor=R}handle(V){return this.interceptor.intercept(V,this.next)}}const ot=new s.OlP("HTTP_INTERCEPTORS");let dn=(()=>{class ae{intercept(R,ne){return ne.handle(R)}}return ae.\u0275fac=function(R){return new(R||ae)},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const ss=/^\)\]\}',?\n/;let mi=(()=>{class ae{constructor(R){this.xhrFactory=R}handle(R){if("JSONP"===R.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(ne=>{const ge=this.xhrFactory.build();if(ge.open(R.method,R.urlWithParams),R.withCredentials&&(ge.withCredentials=!0),R.headers.forEach((dt,ut)=>ge.setRequestHeader(dt,ut.join(","))),R.headers.has("Accept")||ge.setRequestHeader("Accept","application/json, text/plain, */*"),!R.headers.has("Content-Type")){const dt=R.detectContentTypeHeader();null!==dt&&ge.setRequestHeader("Content-Type",dt)}if(R.responseType){const dt=R.responseType.toLowerCase();ge.responseType="json"!==dt?dt:"text"}const Ne=R.serializeBody();let He=null;const Oe=()=>{if(null!==He)return He;const dt=ge.statusText||"OK",ut=new H(ge.getAllResponseHeaders()),jn=function Qi(ae){return"responseURL"in ae&&ae.responseURL?ae.responseURL:/^X-Request-URL:/m.test(ae.getAllResponseHeaders())?ae.getResponseHeader("X-Request-URL"):null}(ge)||R.url;return He=new Y({headers:ut,status:ge.status,statusText:dt,url:jn}),He},Ve=()=>{let{headers:dt,status:ut,statusText:jn,url:nn}=Oe(),Mt=null;204!==ut&&(Mt=typeof ge.response>"u"?ge.responseText:ge.response),0===ut&&(ut=Mt?200:0);let yi=ut>=200&&ut<300;if("json"===R.responseType&&"string"==typeof Mt){const Gr=Mt;Mt=Mt.replace(ss,"");try{Mt=""!==Mt?JSON.parse(Mt):null}catch(Ci){Mt=Gr,yi&&(yi=!1,Mt={error:Ci,text:Mt})}}yi?(ne.next(new ie({body:Mt,headers:dt,status:ut,statusText:jn,url:nn||void 0})),ne.complete()):ne.error(new J({error:Mt,headers:dt,status:ut,statusText:jn,url:nn||void 0}))},Gt=dt=>{const{url:ut}=Oe(),jn=new J({error:dt,status:ge.status||0,statusText:ge.statusText||"Unknown Error",url:ut||void 0});ne.error(jn)};let tt=!1;const We=dt=>{tt||(ne.next(Oe()),tt=!0);let ut={type:fe.DownloadProgress,loaded:dt.loaded};dt.lengthComputable&&(ut.total=dt.total),"text"===R.responseType&&!!ge.responseText&&(ut.partialText=ge.responseText),ne.next(ut)},Ye=dt=>{let ut={type:fe.UploadProgress,loaded:dt.loaded};dt.lengthComputable&&(ut.total=dt.total),ne.next(ut)};return ge.addEventListener("load",Ve),ge.addEventListener("error",Gt),ge.addEventListener("timeout",Gt),ge.addEventListener("abort",Gt),R.reportProgress&&(ge.addEventListener("progress",We),null!==Ne&&ge.upload&&ge.upload.addEventListener("progress",Ye)),ge.send(Ne),ne.next({type:fe.Sent}),()=>{ge.removeEventListener("error",Gt),ge.removeEventListener("abort",Gt),ge.removeEventListener("load",Ve),ge.removeEventListener("timeout",Gt),R.reportProgress&&(ge.removeEventListener("progress",We),null!==Ne&&ge.upload&&ge.upload.removeEventListener("progress",Ye)),ge.readyState!==ge.DONE&&ge.abort()}})}}return ae.\u0275fac=function(R){return new(R||ae)(s.LFG(g.JF))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const Ur=new s.OlP("XSRF_COOKIE_NAME"),jr=new s.OlP("XSRF_HEADER_NAME");class Xi{}let vi=(()=>{class ae{constructor(R,ne,ge){this.doc=R,this.platform=ne,this.cookieName=ge,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const R=this.doc.cookie||"";return R!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,g.Mx)(R,this.cookieName),this.lastCookieString=R),this.lastToken}}return ae.\u0275fac=function(R){return new(R||ae)(s.LFG(g.K0),s.LFG(s.Lbi),s.LFG(Ur))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),wr=(()=>{class ae{constructor(R,ne){this.tokenService=R,this.headerName=ne}intercept(R,ne){const ge=R.url.toLowerCase();if("GET"===R.method||"HEAD"===R.method||ge.startsWith("http://")||ge.startsWith("https://"))return ne.handle(R);const Ne=this.tokenService.getToken();return null!==Ne&&!R.headers.has(this.headerName)&&(R=R.clone({headers:R.headers.set(this.headerName,Ne)})),ne.handle(R)}}return ae.\u0275fac=function(R){return new(R||ae)(s.LFG(Xi),s.LFG(jr))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),Pt=(()=>{class ae{constructor(R,ne){this.backend=R,this.injector=ne,this.chain=null}handle(R){if(null===this.chain){const ne=this.injector.get(ot,[]);this.chain=ne.reduceRight((ge,Ne)=>new Ue(ge,Ne),this.backend)}return this.chain.handle(R)}}return ae.\u0275fac=function(R){return new(R||ae)(s.LFG(F),s.LFG(s.zs3))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),Pe=(()=>{class ae{static disable(){return{ngModule:ae,providers:[{provide:wr,useClass:dn}]}}static withOptions(R={}){return{ngModule:ae,providers:[R.cookieName?{provide:Ur,useValue:R.cookieName}:[],R.headerName?{provide:jr,useValue:R.headerName}:[]]}}}return ae.\u0275fac=function(R){return new(R||ae)},ae.\u0275mod=s.oAB({type:ae}),ae.\u0275inj=s.cJS({providers:[wr,{provide:ot,useExisting:wr,multi:!0},{provide:Xi,useClass:vi},{provide:Ur,useValue:"XSRF-TOKEN"},{provide:jr,useValue:"X-XSRF-TOKEN"}]}),ae})(),eo=(()=>{class ae{}return ae.\u0275fac=function(R){return new(R||ae)},ae.\u0275mod=s.oAB({type:ae}),ae.\u0275inj=s.cJS({providers:[De,{provide:G,useClass:Pt},mi,{provide:F,useExisting:mi}],imports:[Pe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ae})()},1571:(O,x,f)=>{"use strict";f.d(x,{QbO:()=>tw,tb:()=>sD,AFp:()=>rD,ip1:()=>nD,CZH:()=>Np,hGG:()=>$w,z2F:()=>Vp,sBO:()=>Mw,Sil:()=>sw,_Vd:()=>xo,EJc:()=>iw,Xts:()=>gh,SBq:()=>$a,lqb:()=>Oo,qLn:()=>Gs,vpe:()=>_i,XFs:()=>Pe,OlP:()=>pt,zs3:()=>Pr,ZZ4:()=>rv,aQg:()=>iv,soG:()=>Lp,YKP:()=>sC,h0i:()=>Ol,PXZ:()=>yw,R0b:()=>tr,FiY:()=>xs,Lbi:()=>ew,g9A:()=>oD,Qsj:()=>zv,FYo:()=>Vg,JOm:()=>pr,tp0:()=>qr,Rgc:()=>nd,dDg:()=>gw,eoX:()=>fD,GfV:()=>Ih,s_b:()=>Pp,ifc:()=>He,MMx:()=>Rm,Lck:()=>J0,eFA:()=>_D,G48:()=>Aw,Gpc:()=>X,f3M:()=>Yd,X6Q:()=>Sw,_c5:()=>jw,c2e:()=>nw,zSh:()=>Mc,wAp:()=>ke,vHH:()=>le,lri:()=>dD,rWj:()=>hD,D6c:()=>Gw,cg1:()=>wm,kL8:()=>Oy,dqk:()=>Oe,sIi:()=>la,CqO:()=>ep,QGY:()=>Yi,QP$:()=>Rl,F4k:()=>es,RDi:()=>vg,AaK:()=>Z,qOj:()=>ku,TTD:()=>ar,_Bn:()=>oC,xp6:()=>ru,uIk:()=>Vu,Tol:()=>hp,ekj:()=>ua,Suo:()=>RC,Xpm:()=>Gr,lG2:()=>Nl,Yz7:()=>jt,cJS:()=>Qi,oAB:()=>ls,Yjl:()=>Ll,Y36:()=>Fr,_UZ:()=>Uu,GkF:()=>ju,BQk:()=>Br,ynx:()=>Dl,qZA:()=>Cl,TgZ:()=>yl,EpF:()=>Wi,n5z:()=>Pd,SDv:()=>nC,QtT:()=>rC,pQV:()=>Am,LFG:()=>Vt,$8M:()=>mo,$Z:()=>No,NdJ:()=>$u,CRH:()=>PC,oxw:()=>ip,ALo:()=>EC,lcZ:()=>wC,xi3:()=>bC,Hsn:()=>op,F$t:()=>Ki,Q6J:()=>vl,DdM:()=>pC,VKq:()=>gC,WLB:()=>_C,iGM:()=>OC,MAs:()=>Dr,KtG:()=>Gl,evT:()=>fr,Jf7:()=>Hc,CHM:()=>co,oJD:()=>fh,LSH:()=>bc,YNc:()=>Tn,W1O:()=>LC,_uU:()=>yp,Oqu:()=>Yu,hij:()=>Al,Gf:()=>xC});var g=f(7579),s=f(727),S=f(9751),T=f(6451),w=f(8421),P=f(930),L=f(4482);function F(e,t,...i){if(!0===t)return void e();if(!1===t)return;const a=new P.Hp({next:()=>{a.unsubscribe(),e()}});return t(...i).subscribe(a)}function H(e){for(let t in e)if(e[t]===H)return t;throw Error("Could not find renamed property on target object.")}function k(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function Z(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Z).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function ee(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const j=H({__forward_ref__:H});function X(e){return e.__forward_ref__=X,e.toString=function(){return Z(this())},e}function $(e){return ve(e)?e():e}function ve(e){return"function"==typeof e&&e.hasOwnProperty(j)&&e.__forward_ref__===X}class le extends Error{constructor(t,i){super(function Ie(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,i)),this.code=t}}function Q(e){return"string"==typeof e?e:null==e?"":String(e)}function pe(e,t){throw new le(-201,!1)}function je(e,t,i,a){throw new Error(`ASSERTION ERROR: ${e}`+(null==a?"":` [Expected=> ${i} ${a} ${t} <=Actual]`))}function jt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qi(e){return{providers:e.providers||[],imports:e.imports||[]}}function mi(e){return Ur(e,wr)||Ur(e,$r)}function Ur(e,t){return e.hasOwnProperty(t)?e[t]:null}function vi(e){return e&&(e.hasOwnProperty(Pt)||e.hasOwnProperty(as))?e[Pt]:null}const wr=H({\u0275prov:H}),Pt=H({\u0275inj:H}),$r=H({ngInjectableDef:H}),as=H({ngInjectorDef:H});var Pe=(()=>((Pe=Pe||{})[Pe.Default=0]="Default",Pe[Pe.Host=1]="Host",Pe[Pe.Self=2]="Self",Pe[Pe.SkipSelf=4]="SkipSelf",Pe[Pe.Optional=8]="Optional",Pe))();let eo;function $t(e){const t=eo;return eo=e,t}function ae(e,t,i){const a=mi(e);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:i&Pe.Optional?null:void 0!==t?t:void pe(Z(e))}function R(e){return{toString:e}.toString()}var ne=(()=>((ne=ne||{})[ne.OnPush=0]="OnPush",ne[ne.Default=1]="Default",ne))(),He=(()=>{return(e=He||(He={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",He;var e})();const Oe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),tt={},We=[],Ye=H({\u0275cmp:H}),dt=H({\u0275dir:H}),ut=H({\u0275pipe:H}),jn=H({\u0275mod:H}),nn=H({\u0275fac:H}),Mt=H({__NG_ELEMENT_ID__:H});let yi=0;function Gr(e){return R(()=>{const i=!0===e.standalone,a={},c={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:a,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ne.OnPush,directiveDefs:null,pipeDefs:null,standalone:i,dependencies:i&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||We,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||He.Emulated,id:"c"+yi++,styles:e.styles||We,_:null,setInput:null,schemas:e.schemas||null,tView:null},u=e.dependencies,h=e.features;return c.inputs=kl(e.inputs,a),c.outputs=kl(e.outputs),h&&h.forEach(p=>p(c)),c.directiveDefs=u?()=>("function"==typeof u?u():u).map(to).filter(Fl):null,c.pipeDefs=u?()=>("function"==typeof u?u():u).map(zt).filter(Fl):null,c})}function to(e){return rt(e)||rn(e)}function Fl(e){return null!==e}function ls(e){return R(()=>({type:e.type,bootstrap:e.bootstrap||We,declarations:e.declarations||We,imports:e.imports||We,exports:e.exports||We,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kl(e,t){if(null==e)return tt;const i={};for(const a in e)if(e.hasOwnProperty(a)){let c=e[a],u=c;Array.isArray(c)&&(u=c[1],c=c[0]),i[c]=a,t&&(t[c]=u)}return i}const Nl=Gr;function Ll(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function rt(e){return e[Ye]||null}function rn(e){return e[dt]||null}function zt(e){return e[ut]||null}function Kt(e,t){const i=e[jn]||null;if(!i&&!0===t)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return i}function Tt(e){return Array.isArray(e)&&"object"==typeof e[1]}function gn(e){return Array.isArray(e)&&!0===e[1]}function Wr(e){return 0!=(8&e.flags)}function cs(e){return 2==(2&e.flags)}function Yr(e){return 1==(1&e.flags)}function wn(e){return null!==e.template}function Vl(e){return 0!=(256&e[2])}function sr(e,t){return e.hasOwnProperty(nn)?e[nn]:null}class ya{constructor(t,i,a){this.previousValue=t,this.currentValue=i,this.firstChange=a}isFirstChange(){return this.firstChange}}function ar(){return xn}function xn(e){return e.type.prototype.ngOnChanges&&(e.setInput=oo),Qe}function Qe(){const e=Zn(this),t=e?.current;if(t){const i=e.previous;if(i===tt)e.previous=t;else for(let a in t)i[a]=t[a];e.current=null,this.ngOnChanges(t)}}function oo(e,t,i,a){const c=Zn(e)||function jl(e,t){return e[Ca]=t}(e,{previous:tt,current:null}),u=c.current||(c.current={}),h=c.previous,p=this.declaredInputs[i],m=h[p];u[p]=new ya(m&&m.currentValue,t,h===tt),e[a]=t}ar.ngInherit=!0;const Ca="__ngSimpleChanges__";function Zn(e){return e[Ca]||null}function vt(e){for(;Array.isArray(e);)e=e[0];return e}function lo(e,t){return vt(t[e])}function mn(e,t){return vt(t[e.index])}function b(e,t){return e.data[t]}function v(e,t){return e[t]}function A(e,t){const i=t[e];return Tt(i)?i:i[0]}function U(e){return 4==(4&e[2])}function re(e){return 64==(64&e[2])}function Te(e,t){return null==t?null:e[t]}function ct(e){e[18]=0}function it(e,t){e[5]+=t;let i=e,a=e[3];for(;null!==a&&(1===t&&1===i[5]||-1===t&&0===i[5]);)a[5]+=t,i=a,a=a[3]}const Ae={lFrame:vd(null),bindingsEnabled:!0};function lr(){return Ae.bindingsEnabled}function se(){return Ae.lFrame.lView}function Xe(){return Ae.lFrame.tView}function co(e){return Ae.lFrame.contextLView=e,e[8]}function Gl(e){return Ae.lFrame.contextLView=null,e}function Ct(){let e=fd();for(;null!==e&&64===e.type;)e=e.parent;return e}function fd(){return Ae.lFrame.currentTNode}function gs(){const e=Ae.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Kn(e,t){const i=Ae.lFrame;i.currentTNode=e,i.isParent=t}function zl(){return Ae.lFrame.isParent}function _s(){Ae.lFrame.isParent=!1}function on(){const e=Ae.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Zr(){return Ae.lFrame.bindingIndex++}function hn(e){const t=Ae.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function Wl(e){Ae.lFrame.inI18n=e}function Gp(e,t){const i=Ae.lFrame;i.bindingIndex=i.bindingRootIndex=e,Yl(t)}function Yl(e){Ae.lFrame.currentDirectiveIndex=e}function gd(){return Ae.lFrame.currentQueryIndex}function Kl(e){Ae.lFrame.currentQueryIndex=e}function Wp(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function _d(e,t,i){if(i&Pe.SkipSelf){let c=t,u=e;for(;!(c=c.parent,null!==c||i&Pe.Host||(c=Wp(u),null===c||(u=u[15],10&c.type))););if(null===c)return!1;t=c,e=u}const a=Ae.lFrame=md();return a.currentTNode=t,a.lView=e,!0}function ql(e){const t=md(),i=e[1];Ae.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function md(){const e=Ae.lFrame,t=null===e?null:e.child;return null===t?vd(e):t}function vd(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Jl(){const e=Ae.lFrame;return Ae.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const yd=Jl;function ba(){const e=Jl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bt(){return Ae.lFrame.selectedIndex}function bn(e){Ae.lFrame.selectedIndex=e}function St(){const e=Ae.lFrame;return b(e.tView,e.selectedIndex)}function ms(e,t){for(let i=t.directiveStart,a=t.directiveEnd;i=a)break}else t[m]<0&&(e[18]+=65536),(p>11>16&&(3&e[2])===t){e[2]+=2048;try{u.call(p)}finally{}}}else try{u.call(p)}finally{}}class Cs{constructor(t,i,a){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=a}}function Si(e,t,i){let a=0;for(;at){h=u-1;break}}}for(;u>16}(e),a=t;for(;i>0;)a=a[15],i--;return a}let Sd=!0;function fo(e){const t=Sd;return Sd=e,t}let rc=0;const It={};function po(e,t){const i=oc(e,t);if(-1!==i)return i;const a=t[1];a.firstCreatePass&&(e.injectorIndex=t.length,ic(a.data,e),ic(t,null),ic(a.blueprint,null));const c=ws(e,t),u=e.injectorIndex;if(nc(c)){const h=Ds(c),p=Es(c,t),m=p[1].data;for(let C=0;C<8;C++)t[u+C]=p[h+C]|m[h+C]}return t[u+8]=c,u}function ic(e,t){e.push(0,0,0,0,0,0,0,0,t)}function oc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ws(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,a=null,c=t;for(;null!==c;){if(a=Oa(c),null===a)return-1;if(i++,c=c[15],-1!==a.injectorIndex)return a.injectorIndex|i<<16}return-1}function Ai(e,t,i){!function Td(e,t,i){let a;"string"==typeof i?a=i.charCodeAt(0)||0:i.hasOwnProperty(Mt)&&(a=i[Mt]),null==a&&(a=i[Mt]=rc++);const c=255&a;t.data[e+(c>>5)]|=1<=0?255&t:eg:t}(i);if("function"==typeof u){if(!_d(t,e,a))return a&Pe.Host?Id(c,0,a):bs(t,i,a,c);try{const h=u(a);if(null!=h||a&Pe.Optional)return h;pe()}finally{yd()}}else if("number"==typeof u){let h=null,p=oc(e,t),m=-1,C=a&Pe.Host?t[16][6]:null;for((-1===p||a&Pe.SkipSelf)&&(m=-1===p?ws(e,t):t[p+8],-1!==m&&Rd(a,!1)?(h=t[1],p=Ds(m),t=Es(m,t)):p=-1);-1!==p;){const E=t[1];if(xd(u,p,E.data)){const I=Qp(p,t,i,h,a,C);if(I!==It)return I}m=t[p+8],-1!==m&&Rd(a,t[1].data[p+8]===C)&&xd(u,p,t)?(h=E,p=Ds(m),t=Es(m,t)):p=-1}}return c}function Qp(e,t,i,a,c,u){const h=t[1],p=h.data[e+8],E=Kr(p,h,i,null==a?cs(p)&&Sd:a!=h&&0!=(3&p.type),c&Pe.Host&&u===p);return null!==E?Mr(t,h,E,p):It}function Kr(e,t,i,a,c){const u=e.providerIndexes,h=t.data,p=1048575&u,m=e.directiveStart,E=u>>20,B=c?p+E:e.directiveEnd;for(let z=a?p:p+E;z=m&&oe.type===i)return z}if(c){const z=h[m];if(z&&wn(z)&&z.type===i)return m}return null}function Mr(e,t,i,a){let c=e[i];const u=t.data;if(function qp(e){return e instanceof Cs}(c)){const h=c;h.resolving&&function Ce(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new le(-200,`Circular dependency in DI detected for ${e}${i}`)}(function te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Q(e)}(u[i]));const p=fo(h.canSeeViewProviders);h.resolving=!0;const m=h.injectImpl?$t(h.injectImpl):null;_d(e,a,Pe.Default);try{c=e[i]=h.factory(void 0,u,e,a),t.firstCreatePass&&i>=a.directiveStart&&function Sa(e,t,i){const{ngOnChanges:a,ngOnInit:c,ngDoCheck:u}=t.type.prototype;if(a){const h=xn(t);(i.preOrderHooks||(i.preOrderHooks=[])).push(e,h),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,h)}c&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-e,c),u&&((i.preOrderHooks||(i.preOrderHooks=[])).push(e,u),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,u))}(i,u[i],t)}finally{null!==m&&$t(m),fo(p),h.resolving=!1,yd()}}return c}function xd(e,t,i){return!!(i[t+(e>>5)]&1<{const t=e.prototype.constructor,i=t[nn]||Fd(t),a=Object.prototype;let c=Object.getPrototypeOf(e.prototype).constructor;for(;c&&c!==a;){const u=c[nn]||Fd(c);if(u&&u!==i)return u;c=Object.getPrototypeOf(c)}return u=>new u})}function Fd(e){return ve(e)?()=>{const t=Fd($(e));return t&&t()}:sr(e)}function Oa(e){const t=e[1],i=t.type;return 2===i?t.declTNode:1===i?e[6]:null}function mo(e){return function Jp(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const a=i.length;let c=0;for(;c{const a=function sc(e){return function(...i){if(e){const a=e(...i);for(const c in a)this[c]=a[c]}}}(t);function c(...u){if(this instanceof c)return a.apply(this,u),this;const h=new c(...u);return p.annotation=h,p;function p(m,C,E){const I=m.hasOwnProperty(vo)?m[vo]:Object.defineProperty(m,vo,{value:[]})[vo];for(;I.length<=E;)I.push(null);return(I[E]=I[E]||[]).push(h),m}}return i&&(c.prototype=Object.create(i.prototype)),c.prototype.ngMetadataName=e,c.annotationCls=c,c})}class pt{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=jt({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sn(e,t){void 0===t&&(t=e);for(let i=0;iArray.isArray(i)?hr(i,t):t(i))}function wo(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function As(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ms(e,t){const i=[];for(let a=0;a=0?e[1|a]=i:(a=~a,function ag(e,t,i,a){let c=e.length;if(c==t)e.push(i,a);else if(1===c)e.push(a,e[0]),e[0]=i;else{for(c--,e.push(e[c-1],e[c]);c>t;)e[c]=e[c-2],c--;e[t]=i,e[t+1]=a}}(e,a,t,i)),a}function cc(e,t){const i=bo(e,t);if(i>=0)return e[1|i]}function bo(e,t){return function Hd(e,t,i){let a=0,c=e.length>>i;for(;c!==a;){const u=a+(c-a>>1),h=e[u<t?c=u:a=u+1}return~(c<e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ka}()?.createHTML(e)||e}function nh(e){return function vc(){if(void 0===Fs&&(Fs=null,Oe.trustedTypes))try{Fs=Oe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Fs}()?.createHTML(e)||e}class Na{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function kn(e){return e instanceof Na?e.changingThisBreaksApplicationSecurity:e}function To(e,t){const i=function ih(e){return e instanceof Na&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===t}function oh(e){const t=new bg(e);return function Oi(){try{return!!(new window.DOMParser).parseFromString(Mo(""),"text/html")}catch{return!1}}()?new xv(t):t}class xv{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const i=(new window.DOMParser).parseFromString(Mo(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class bg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i);const a=this.inertDocument.createElement("body");i.appendChild(a)}}getInertBodyElement(t){const i=this.inertDocument.createElement("template");if("content"in i)return i.innerHTML=Mo(t),i;const a=this.inertDocument.createElement("body");return a.innerHTML=Mo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(a),a}stripCustomNsAttrs(t){const i=t.attributes;for(let c=i.length-1;0La(t.trim())).join(", ")}function Qn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function Ns(...e){const t={};for(const i of e)for(const a in i)i.hasOwnProperty(a)&&(t[a]=!0);return t}const ah=Qn("area,br,col,hr,img,wbr"),lh=Qn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cc=Qn("rp,rt"),Dc=Ns(ah,Ns(lh,Qn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ns(Cc,Qn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ns(Cc,lh)),Ec=Qn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ch=Qn("srcset"),Ls=Ns(Ec,ch,Qn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Qn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),dh=Qn("script,style,template");class Mg{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,a=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?a=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,a&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let c=this.checkClobberedElement(i,i.nextSibling);if(c){i=c;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!Dc.hasOwnProperty(i))return this.sanitizedSomething=!0,!dh.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const a=t.attributes;for(let c=0;c"),!0}endElement(t){const i=t.nodeName.toLowerCase();Dc.hasOwnProperty(i)&&!ah.hasOwnProperty(i)&&(this.buf.push(""))}chars(t){this.buf.push(hh(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const kv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tg=/([^\#-~ |!])/g;function hh(e){return e.replace(/&/g,"&").replace(kv,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Tg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let xi;function wc(e){return"content"in e&&function Og(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ht=(()=>((Ht=Ht||{})[Ht.NONE=0]="NONE",Ht[Ht.HTML=1]="HTML",Ht[Ht.STYLE=2]="STYLE",Ht[Ht.SCRIPT=3]="SCRIPT",Ht[Ht.URL=4]="URL",Ht[Ht.RESOURCE_URL=5]="RESOURCE_URL",Ht))();function fh(e){const t=Bs();return t?nh(t.sanitize(Ht.HTML,e)||""):To(e,"HTML")?nh(kn(e)):function Ig(e,t){let i=null;try{xi=xi||oh(e);let a=t?String(t):"";i=xi.getInertBodyElement(a);let c=5,u=a;do{if(0===c)throw new Error("Failed to sanitize html because the input is unstable");c--,a=u,u=i.innerHTML,i=xi.getInertBodyElement(a)}while(a!==u);return Mo((new Mg).sanitizeChildren(wc(i)||i))}finally{if(i){const a=wc(i)||i;for(;a.firstChild;)a.removeChild(a.firstChild)}}}(Fn(),Q(e))}function bc(e){const t=Bs();return t?t.sanitize(Ht.URL,e)||"":To(e,"URL")?kn(e):La(Q(e))}function Bs(){const e=se();return e&&e[12]}const gh=new pt("ENVIRONMENT_INITIALIZER"),Hs=new pt("INJECTOR",-1),Xr=new pt("INJECTOR_DEF_TYPES");class _h{get(t,i=Mi){if(i===Mi){const a=new Error(`NullInjectorError: No provider for ${Z(t)}!`);throw a.name="NullInjectorError",a}return i}}function Lv(...e){return{\u0275providers:Ua(0,e)}}function Ua(e,...t){const i=[],a=new Set;let c;return hr(t,u=>{const h=u;vh(h,i,[],a)&&(c||(c=[]),c.push(h))}),void 0!==c&&mh(c,i),i}function mh(e,t){for(let i=0;i{t.push(u)})}}function vh(e,t,i,a){if(!(e=$(e)))return!1;let c=null,u=vi(e);const h=!u&&rt(e);if(u||h){if(h&&!h.standalone)return!1;c=e}else{const m=e.ngModule;if(u=vi(m),!u)return!1;c=m}const p=a.has(c);if(h){if(p)return!1;if(a.add(c),h.dependencies){const m="function"==typeof h.dependencies?h.dependencies():h.dependencies;for(const C of m)vh(C,t,i,a)}}else{if(!u)return!1;{if(null!=u.imports&&!p){let C;a.add(c);try{hr(u.imports,E=>{vh(E,t,i,a)&&(C||(C=[]),C.push(E))})}finally{}void 0!==C&&mh(C,t)}if(!p){const C=sr(c)||(()=>new c);t.push({provide:c,useFactory:C,deps:We},{provide:Xr,useValue:c,multi:!0},{provide:gh,useValue:()=>Vt(c),multi:!0})}const m=u.providers;null==m||p||hr(m,E=>{t.push(E)})}}return c!==e&&void 0!==e.providers}const yh=H({provide:String,useValue:H});function ja(e){return null!==e&&"object"==typeof e&&yh in e}function Ri(e){return"function"==typeof e}const Mc=new pt("Set Injector scope."),Tc={},Ic={};let Eh;function Oc(){return void 0===Eh&&(Eh=new _h),Eh}class Oo{}class Pg extends Oo{constructor(t,i,a,c){super(),this.parent=i,this.source=a,this.scopes=c,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ah(t,h=>this.processProvider(h)),this.records.set(Hs,Us(void 0,this)),c.has("environment")&&this.records.set(Oo,Us(void 0,this));const u=this.records.get(Mc);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(Xr.multi,We,Pe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const i=Ii(this),a=$t(void 0);try{return t()}finally{Ii(i),$t(a)}}get(t,i=Mi,a=Pe.Default){this.assertNotDestroyed();const c=Ii(this),u=$t(void 0);try{if(!(a&Pe.SkipSelf)){let p=this.records.get(t);if(void 0===p){const m=function Bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof pt}(t)&&mi(t);p=m&&this.injectableDefInScope(m)?Us(wh(t),Tc):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(a&Pe.Self?Oc():this.parent).get(t,i=a&Pe.Optional&&i===Mi?null:i)}catch(h){if("NullInjectorError"===h.name){if((h[Pa]=h[Pa]||[]).unshift(Z(t)),c)throw h;return function Zd(e,t,i,a){const c=e[Pa];throw t[dc]&&c.unshift(t[dc]),e.message=function pc(e,t,i,a=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let c=Z(t);if(Array.isArray(t))c=t.map(Z).join(" -> ");else if("object"==typeof t){let u=[];for(let h in t)if(t.hasOwnProperty(h)){let p=t[h];u.push(h+":"+("string"==typeof p?JSON.stringify(p):Z(p)))}c=`{${u.join(", ")}}`}return`${i}${a?"("+a+")":""}[${c}]: ${e.replace(dg,"\n ")}`}("\n"+e.message,c,i,a),e.ngTokenPath=c,e[Pa]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{$t(u),Ii(c)}}resolveInjectorInitializers(){const t=Ii(this),i=$t(void 0);try{const a=this.get(gh.multi,We,Pe.Self);for(const c of a)c()}finally{Ii(t),$t(i)}}toString(){const t=[],i=this.records;for(const a of i.keys())t.push(Z(a));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new le(205,!1)}processProvider(t){let i=Ri(t=$(t))?t:$(t&&t.provide);const a=function Fg(e){return ja(e)?Us(void 0,e.useValue):Us(bh(e),Tc)}(t);if(Ri(t)||!0!==t.multi)this.records.get(i);else{let c=this.records.get(i);c||(c=Us(void 0,Tc,!0),c.factory=()=>hc(c.multi),this.records.set(i,c)),i=t,c.multi.push(t)}this.records.set(i,a)}hydrate(t,i){return i.value===Tc&&(i.value=Ic,i.value=i.factory()),"object"==typeof i.value&&i.value&&function Sh(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=$(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}}function wh(e){const t=mi(e),i=null!==t?t.factory:sr(e);if(null!==i)return i;if(e instanceof pt)throw new le(204,!1);if(e instanceof Function)return function Vv(e){const t=e.length;if(t>0)throw Ms(t,"?"),new le(204,!1);const i=function jr(e){const t=e&&(e[wr]||e[$r]);if(t){const i=function Xi(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),t}return null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new le(204,!1)}function bh(e,t,i){let a;if(Ri(e)){const c=$(e);return sr(c)||wh(c)}if(ja(e))a=()=>$(e.useValue);else if(function Dh(e){return!(!e||!e.useFactory)}(e))a=()=>e.useFactory(...hc(e.deps||[]));else if(function Ch(e){return!(!e||!e.useExisting)}(e))a=()=>Vt($(e.useExisting));else{const c=$(e&&(e.useClass||e.provide));if(!function kg(e){return!!e.deps}(e))return sr(c)||wh(c);a=()=>new c(...hc(e.deps))}return a}function Us(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Hv(e){return!!e.\u0275providers}function Ah(e,t){for(const i of e)Array.isArray(i)?Ah(i,t):Hv(i)?Ah(i.\u0275providers,t):t(i)}class Ng{}class $v{resolveComponentFactory(t){throw function jv(e){const t=Error(`No component factory found for ${Z(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let xo=(()=>{class e{}return e.NULL=new $v,e})();function Mh(){return js(Ct(),se())}function js(e,t){return new $a(mn(e,t))}let $a=(()=>{class e{constructor(i){this.nativeElement=i}}return e.__NG_ELEMENT_ID__=Mh,e})();function Gv(e){return e instanceof $a?e.nativeElement:e}class Vg{}let zv=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function xc(){const e=se(),i=A(Ct().index,e);return(Tt(i)?i:e)[11]}(),e})(),Th=(()=>{class e{}return e.\u0275prov=jt({token:e,providedIn:"root",factory:()=>null}),e})();class Ih{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Bg=new Ih("14.1.3"),Rc={};function Nc(e){return e.ngOriginalError}class Gs{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&Nc(t);for(;i&&Nc(i);)i=Nc(i);return i||null}}const Fh=/^>|^->||--!>|)/;const Lc=new Map;let Lh=0;const Hh="__ngContext__";function Jt(e,t){Tt(t)?(e[Hh]=t[20],function Vh(e){Lc.set(e[20],e)}(t)):e[Hh]=t}function zs(e){const t=e[Hh];return"number"==typeof t?function Bh(e){return Lc.get(e)||null}(t):t||null}function Vc(e){const t=zs(e);return t?Tt(t)?t:t.lView:null}const ny=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Oe))();function Hc(e){return e.ownerDocument.defaultView}function fr(e){return e.ownerDocument}function Nn(e){return e instanceof Function?e():e}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();let Po;function vn(e,t){return Po(e,t)}function xt(e){const t=e[3];return gn(t)?t[3]:t}function ln(e){return Gh(e[13])}function Uc(e){return Gh(e[4])}function Gh(e){for(;null!==e&&!gn(e);)e=e[4];return e}function Fo(e,t,i,a,c){if(null!=a){let u,h=!1;gn(a)?u=a:Tt(a)&&(h=!0,a=a[0]);const p=vt(a);0===e&&null!==i?null==c?Jh(t,i,p):ki(t,i,p,c||null,!0):1===e&&null!==i?ki(t,i,p,c||null,!0):2===e?Qt(t,p,h):3===e&&t.destroyNode(p),null!=u&&function nf(e,t,i,a,c){const u=i[7];u!==vt(i)&&Fo(t,e,a,u,c);for(let p=10;pt.replace(Jv,"\u200b$1\u200b"))}(t))}function $c(e,t,i){return e.createElement(t,i)}function Zh(e,t){const i=e[9],a=i.indexOf(t),c=t[3];512&t[2]&&(t[2]&=-513,it(c,-1)),i.splice(a,1)}function ei(e,t){if(e.length<=10)return;const i=10+t,a=e[i];if(a){const c=a[17];null!==c&&c!==e&&Zh(c,a),t>0&&(e[i-1][4]=a[4]);const u=As(e,10+t);!function Wh(e,t){Ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(a[1],a);const h=u[19];null!==h&&h.detachView(u[1]),a[3]=null,a[4]=null,a[2]&=-65}return a}function Kh(e,t){if(!(128&t[2])){const i=t[11];i.destroyNode&&Ys(e,t,i,3,null,null),function i_(e){let t=e[13];if(!t)return Gc(e[1],e);for(;t;){let i=null;if(Tt(t))i=t[13];else{const a=t[10];a&&(i=a)}if(!i){for(;t&&!t[4]&&t!==e;)Tt(t)&&Gc(t[1],t),t=t[3];null===t&&(t=e),Tt(t)&&Gc(t[1],t),i=t&&t[4]}t=i}}(t)}}function Gc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function l_(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let a=0;a=0?a[c=C]():a[c=-C].unsubscribe(),u+=2}else{const h=a[c=i[u+1]];i[u].call(h)}if(null!==a){for(let u=c+1;uu?"":c[I+1].toLowerCase();const z=8&a?B:null;if(z&&-1!==Kc(z,C,0)||2&a&&C!==B){if(Vn(a))return!1;h=!0}}}}else{if(!h&&!Vn(a)&&!Vn(m))return!1;if(h&&Vn(m))continue;h=!1,a=m|1&a}}return Vn(a)||h}function Vn(e){return 0==(1&e)}function h_(e,t,i,a){if(null===t)return-1;let c=0;if(a||!i){let u=!1;for(;c-1)for(i++;i0?'="'+p+'"':"")+"]"}else 8&a?c+="."+h:4&a&&(c+=" "+h);else""!==c&&!Vn(h)&&(t+=tu(u,c),c=""),a=h,u=u||!Vn(a);i++}return""!==c&&(t+=tu(u,c)),t}const Be={};function ru(e){iu(Xe(),se(),bt()+e,!1)}function iu(e,t,i,a){if(!a)if(3==(3&t[2])){const u=e.preOrderCheckHooks;null!==u&&uo(t,u,i)}else{const u=e.preOrderHooks;null!==u&&vs(t,u,0,i)}bn(i)}function Zs(e,t=null,i=null,a){const c=ff(e,t,i,a);return c.resolveInjectorInitializers(),c}function ff(e,t=null,i=null,a,c=new Set){const u=[i||We,Lv(e)];return a=a||("object"==typeof e?void 0:Z(e)),new Pg(u,t||Oc(),a||null,c)}let Pr=(()=>{class e{static create(i,a){if(Array.isArray(i))return Zs({name:""},a,i,"");{const c=i.name??"";return Zs({name:c},i.parent,i.providers,c)}}}return e.THROW_IF_NOT_FOUND=Mi,e.NULL=new _h,e.\u0275prov=jt({token:e,providedIn:"any",factory:()=>Vt(Hs)}),e.__NG_ELEMENT_ID__=-1,e})();function Fr(e,t=Pe.Default){const i=se();return null===i?Vt(e,t):go(Ct(),i,$(e),t)}function No(){throw new Error("invalid")}function Vi(e,t){return e<<17|t<<2}function Xn(e){return e>>17&32767}function uu(e){return 2|e}function kr(e){return(131068&e)>>2}function rl(e,t){return-131069&e|t<<2}function il(e){return 1|e}function xf(e,t){const i=e.contentQueries;if(null!==i)for(let a=0;a22&&iu(e,t,22,!1),i(a,c)}finally{bn(u)}}function Du(e,t,i){if(Wr(t)){const c=t.directiveEnd;for(let u=t.directiveStart;u0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(p)!=m&&p.push(m),p.push(a,c,h)}}function Tu(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ul(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function my(e,t,i){if(i){if(t.exportAs)for(let a=0;a0&&Ou(i)}}function Ou(e){for(let a=ln(e);null!==a;a=Uc(a))for(let c=10;c0&&Ou(u)}const i=e[1].components;if(null!==i)for(let a=0;a0&&Ou(c)}}function Nr(e,t){const i=A(t,e),a=i[1];(function Uo(e,t){for(let i=t.length;iPromise.resolve(null))();function yr(e){return e[7]||(e[7]=[])}function Pu(e){return e.cleanup||(e.cleanup=[])}function $f(e,t){const i=e[9],a=i?i.get(Gs,null):null;a&&a.handleError(t)}function ji(e,t,i,a,c){for(let u=0;u-1&&(ei(t,a),As(i,a))}this._attachedToViewContainer=!1}Kh(this._lView[1],this._lView)}onDestroy(t){bu(this._lView[1],this._lView,null,t)}markForCheck(){hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function oi(e,t,i){const a=t[10];a.begin&&a.begin();try{Bo(e,t,e.template,i)}catch(c){throw $f(t,c),c}finally{a.end&&a.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Yh(e,t){Ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new le(902,!1);this._appRef=t}}class V_ extends oa{constructor(t){super(t),this._view=t}detectChanges(){L_(this._view)}checkNoChanges(){}get context(){return null}}class Fu extends xo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=rt(t);return new sa(i,this.ngModule)}}function Gf(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class H_{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,a){const c=this.injector.get(t,Rc,a);return c!==Rc||i===Rc?c:this.parentInjector.get(t,i,a)}}class sa extends Ng{constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function df(e){return e.map(uf).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}get inputs(){return Gf(this.componentDef.inputs)}get outputs(){return Gf(this.componentDef.outputs)}create(t,i,a,c){let u=(c=c||this.ngModule)instanceof Oo?c:c?.injector;u&&null!==this.componentDef.getStandaloneInjector&&(u=this.componentDef.getStandaloneInjector(u)||u);const h=u?new H_(t,u):t,p=h.get(Vg,null);if(null===p)throw new le(407,!1);const m=h.get(Th,null),C=p.createRenderer(null,this.componentDef),E=this.componentDef.selectors[0][0]||"div",I=a?function Ff(e,t,i){return e.selectRootElement(t,i===He.ShadowDom)}(C,a,this.componentDef.encapsulation):$c(p.createRenderer(null,this.componentDef),E,function B_(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(E)),B=this.componentDef.onPush?288:272,z=function zf(e,t){return{components:[],scheduler:e||ny,clean:ia,playerHandler:t||null,flags:0}}(),oe=Pf(0,null,null,1,0,null,null,null,null,null),he=Vo(null,oe,z,B,null,null,p,C,m,h,null);let be,Me;ql(he);try{const xe=function aa(e,t,i,a,c,u){const h=i[1];i[22]=e;const m=Hi(h,22,2,"#host",null),C=m.mergedAttrs=t.hostAttrs;null!==C&&(pl(m,C,!0),null!==e&&(Si(c,e,C),null!==m.classes&&qa(c,e,m.classes),null!==m.styles&&Zc(c,e,m.styles)));const E=a.createRenderer(e,t),I=Vo(i,Rf(t),null,t.onPush?32:16,i[22],m,a,E,u||null,null,null);return h.firstCreatePass&&(Ai(po(m,i),h,t.type),ul(h,m),F_(m,i.length,1)),cn(i,I),i[22]=I}(I,this.componentDef,he,p,C);if(I)if(a)Si(C,I,["ng-version",Bg.full]);else{const{attrs:ue,classes:Re}=function nu(e){const t=[],i=[];let a=1,c=2;for(;a0&&qa(C,I,Re.join(" "))}if(Me=b(oe,22),void 0!==i){const ue=Me.projection=[];for(let Re=0;Re=0;a--){const c=e[a];c.hostVars=t+=c.hostVars,c.hostAttrs=Ia(c.hostAttrs,i=Ia(i,c.hostAttrs))}}(a)}function Nu(e){return e===tt?{}:e===We?[]:e}function Y_(e,t){const i=e.viewQuery;e.viewQuery=i?(a,c)=>{t(a,c),i(a,c)}:t}function Z_(e,t){const i=e.contentQueries;e.contentQueries=i?(a,c,u)=>{t(a,c,u),i(a,c,u)}:t}function K_(e,t){const i=e.hostBindings;e.hostBindings=i?(a,c)=>{t(a,c),i(a,c)}:t}let _l=null;function $i(){if(!_l){const e=Oe.Symbol;if(e&&e.iterator)_l=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let i=0;ip(vt(nt[a.index])):a.index;let Re=null;if(!p&&m&&(Re=function Zi(e,t,i,a){const c=e.cleanup;if(null!=c)for(let u=0;um?p[m]:null}"string"==typeof h&&(u+=2)}return null}(e,t,c,a.index)),null!==Re)(Re.__ngLastListenerFn__||Re).__ngNextListenerFn__=u,Re.__ngLastListenerFn__=u,z=!1;else{u=rp(a,t,I,u,!1);const nt=i.listen(Me,c,u);B.push(u,nt),E&&E.push(c,ue,xe,xe+1)}}else u=rp(a,t,I,u,!1);const oe=a.outputs;let he;if(z&&null!==oe&&(he=oe[c])){const be=he.length;if(be)for(let Me=0;Me0;)t=t[15],e--;return t}(e,Ae.lFrame.contextLView))[8]}(e)}function Gu(e,t){let i=null;const a=function lf(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(0==(1&i))return t[i+1]}return null}(e);for(let c=0;c=0}const mt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hi(e){return e.substring(mt.key,mt.keyEnd)}function fi(e,t){const i=mt.textEnd;return i===t?-1:(t=mt.keyEnd=function cm(e,t,i){for(;t32;)t++;return t}(e,mt.key=t,i),ts(e,t,i))}function ts(e,t,i){for(;t=0;i=fi(t,i))Sn(e,hi(t),!0)}function gi(e,t){return t>=e.expandoStartIndex}function fp(e,t,i,a){const c=e.data;if(null===c[i+1]){const u=c[bt()],h=gi(e,i);vp(u,a)&&null===t&&!h&&(t=!1),t=function fm(e,t,i,a){const c=function Zl(e){const t=Ae.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let u=a?t.residualClasses:t.residualStyles;if(null===c)0===(a?t.classBindings:t.styleBindings)&&(i=da(i=Wu(null,e,t,i,a),t.attrs,a),u=null);else{const h=t.directiveStylingLast;if(-1===h||e[h]!==c)if(i=Wu(c,e,t,i,a),null===u){let m=function pp(e,t,i){const a=i?t.classBindings:t.styleBindings;if(0!==kr(a))return e[Xn(a)]}(e,t,a);void 0!==m&&Array.isArray(m)&&(m=Wu(null,e,t,m[1],a),m=da(m,t.attrs,a),function pm(e,t,i,a){e[Xn(i?t.classBindings:t.styleBindings)]=a}(e,t,a,m))}else u=function gm(e,t,i){let a;const c=t.directiveEnd;for(let u=1+t.directiveStylingLast;u0)&&(C=!0)}else E=i;if(c)if(0!==m){const B=Xn(e[p+1]);e[a+1]=Vi(B,p),0!==B&&(e[B+1]=rl(e[B+1],a)),e[p+1]=function nl(e,t){return 131071&e|t<<17}(e[p+1],a)}else e[a+1]=Vi(p,0),0!==p&&(e[p+1]=rl(e[p+1],a)),p=a;else e[a+1]=Vi(m,0),0===p?p=a:e[m+1]=rl(e[m+1],a),m=a;C&&(e[a+1]=uu(e[a+1])),di(e,E,a,!0),di(e,E,a,!1),function om(e,t,i,a,c){const u=c?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof t&&bo(u,t)>=0&&(i[a+1]=il(i[a+1]))}(t,E,e,a,u),h=Vi(p,m),u?t.classBindings=h:t.styleBindings=h}(c,u,t,i,h,a)}}function Wu(e,t,i,a,c){let u=null;const h=i.directiveEnd;let p=i.directiveStylingLast;for(-1===p?p=i.directiveStart:p++;p0;){const m=e[c],C=Array.isArray(m),E=C?m[1]:m,I=null===E;let B=i[c+1];B===Be&&(B=I?We:void 0);let z=I?cc(B,a):E===a?B:void 0;if(C&&!Sl(z)&&(z=cc(m,a)),Sl(z)&&(p=z,h))return p;const oe=e[c+1];c=h?Xn(oe):kr(oe)}if(null!==t){let m=u?t.residualClasses:t.residualStyles;null!=m&&(p=cc(m,a))}return p}function Sl(e){return void 0!==e}function vp(e,t){return 0!=(e.flags&(t?16:32))}function yp(e,t=""){const i=se(),a=Xe(),c=e+22,u=a.firstCreatePass?Hi(a,c,1,t,null):a.data[c],h=i[c]=Ws(i[11],t);An(a,i,h,u),Kn(u,!1)}function Yu(e){return Al("",e,""),Yu}function Al(e,t,i){const a=se(),c=function zo(e,t,i,a){return Xt(e,Zr(),i)?t+Q(i)+a:Be}(a,e,t,i);return c!==Be&&function Lr(e,t,i){const a=lo(t,e);zh(e[11],a,i)}(a,bt(),c),Al}const ha=void 0;var XD=["en",[["a","p"],["AM","PM"],ha],[["AM","PM"],ha,ha],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ha,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ha,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ha,"{1} 'at' {0}",ha],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function QD(e){const i=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===a?1:5}];let Ml={};function wm(e){const t=function e0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=xy(t);if(i)return i;const a=t.split("-")[0];if(i=xy(a),i)return i;if("en"===a)return XD;throw new le(701,!1)}function Oy(e){return wm(e)[ke.PluralCase]}function xy(e){return e in Ml||(Ml[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),Ml[e]}var ke=(()=>((ke=ke||{})[ke.LocaleId=0]="LocaleId",ke[ke.DayPeriodsFormat=1]="DayPeriodsFormat",ke[ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",ke[ke.DaysFormat=3]="DaysFormat",ke[ke.DaysStandalone=4]="DaysStandalone",ke[ke.MonthsFormat=5]="MonthsFormat",ke[ke.MonthsStandalone=6]="MonthsStandalone",ke[ke.Eras=7]="Eras",ke[ke.FirstDayOfWeek=8]="FirstDayOfWeek",ke[ke.WeekendRange=9]="WeekendRange",ke[ke.DateFormat=10]="DateFormat",ke[ke.TimeFormat=11]="TimeFormat",ke[ke.DateTimeFormat=12]="DateTimeFormat",ke[ke.NumberSymbols=13]="NumberSymbols",ke[ke.NumberFormats=14]="NumberFormats",ke[ke.CurrencyCode=15]="CurrencyCode",ke[ke.CurrencySymbol=16]="CurrencySymbol",ke[ke.CurrencyName=17]="CurrencyName",ke[ke.Currencies=18]="Currencies",ke[ke.Directionality=19]="Directionality",ke[ke.PluralCase=20]="PluralCase",ke[ke.ExtraData=21]="ExtraData",ke))();const t0=["zero","one","two","few","many"],Tl="en-US",Tp={marker:"element"},Ip={marker:"ICU"};var Rt=(()=>((Rt=Rt||{})[Rt.SHIFT=2]="SHIFT",Rt[Rt.APPEND_EAGERLY=1]="APPEND_EAGERLY",Rt[Rt.COMMENT=2]="COMMENT",Rt))();let Ry=Tl;function Py(e){(function et(e,t){null==e&&je(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Ry=e.toLowerCase().replace(/_/g,"-"))}function Fy(e,t,i){const a=t.insertBeforeIndex,c=Array.isArray(a)?a[0]:a;return null===c?Ya(e,0,i):vt(i[c])}function ky(e,t,i,a,c){const u=t.insertBeforeIndex;if(Array.isArray(u)){let h=a,p=null;if(3&t.type||(p=h,h=c),null!==h&&0==(2&t.flags))for(let m=1;m1)for(let i=e.length-2;i>=0;i--){const a=e[i];Ly(a)||s0(a,t)&&null===a0(a)&&l0(a,t.index)}}function Ly(e){return!(64&e.type)}function s0(e,t){return Ly(t)||e.index>t.index}function a0(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function l0(e,t){const i=e.insertBeforeIndex;Array.isArray(i)?i[0]=t:(tf(Fy,ky),e.insertBeforeIndex=t)}function qu(e,t){const i=e.data[t];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function d0(e,t,i){const a=Cu(e,i,64,null,null);return Ny(t,a),a}function Op(e,t){const i=t[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function Vy(e){return e>>>17}function By(e){return(131070&e)>>>1}let Ju=0,Qu=0;function Uy(e,t,i,a){const c=i[11];let h,u=null;for(let p=0;p>>1,i),null,null,z,oe,null)}else switch(m){case Ip:const C=t[++p],E=t[++p];null===i[E]&&Jt(i[E]=jc(c,C),i);break;case Tp:const I=t[++p],B=t[++p];null===i[B]&&Jt(i[B]=$c(c,I,null),i)}}}function jy(e,t,i,a,c){for(let u=0;u>>2;switch(3&E){case 1:const B=i[++C],z=i[++C],oe=e.data[I];"string"==typeof oe?dl(t[11],t[I],null,oe,B,m,z):yn(e,oe,t,B,m,t[11],z,!1);break;case 0:const he=t[I];null!==he&&zh(t[11],he,m);break;case 2:_0(e,qu(e,I),t,m);break;case 3:$y(e,qu(e,I),a,t)}}}}else{const m=i[u+1];if(m>0&&3==(3&m)){const E=qu(e,m>>>2);t[E.currentCaseLViewIndex]<0&&$y(e,E,a,t)}}u+=p}}function $y(e,t,i,a){let c=a[t.currentCaseLViewIndex];if(null!==c){let u=Ju;c<0&&(c=a[t.currentCaseLViewIndex]=~c,u=-1),jy(e,a,t.update[c],i,u)}}function _0(e,t,i,a){const c=function m0(e,t){let i=e.cases.indexOf(t);if(-1===i)switch(e.type){case 1:{const a=function n0(e,t){const i=Oy(t)(parseInt(e,10)),a=t0[i];return void 0!==a?a:"other"}(t,function o0(){return Ry}());i=e.cases.indexOf(a),-1===i&&"other"!==a&&(i=e.cases.indexOf("other"));break}case 0:i=e.cases.indexOf("other")}return-1===i?null:i}(t,a);if(Op(t,i)!==c&&(Gy(e,t,i),i[t.currentCaseLViewIndex]=null===c?null:~c,null!==c)){const h=i[t.anchorIdx];h&&Uy(e,t.create[c],i,h)}}function Gy(e,t,i){let a=Op(t,i);if(null!==a){const c=t.remove[a];for(let u=0;u0){const p=lo(h,i);null!==p&&Qt(i[11],p)}else Gy(e,qu(e,~h),i)}}}function v0(){const e=[];let i,a,t=-1;function u(p,m){t=0;const C=Op(p,m);a=null!==C?p.remove[C]:We}function h(){if(t0?i[p]:(e.push(t,a),u(i[1].data[~p],i),h())}return 0===e.length?null:(a=e.pop(),t=e.pop(),h())}return function c(p,m){for(i=m;e.length;)e.pop();return u(p.value,m),h}}const xp=/\ufffd(\d+):?\d*\ufffd/gi,C0=/\ufffd(\d+)\ufffd/,Wy=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,D0=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,E0=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,w0=/\uE500/g;function Yy(e,t,i,a,c,u,h){const p=ii(e,a,1,null);let m=p<i.length&&i.push(m)}return{type:a,mainBinding:c,cases:t,values:i}}function bm(e){if(!e)return[];let t=0;const i=[],a=[],c=/[{}]/g;let u;for(c.lastIndex=0;u=c.exec(e);){const p=u.index;if("}"==u[0]){if(i.pop(),0==i.length){const m=e.substring(t,p);Wy.test(m)?a.push(x0(m)):a.push(m),t=p+1}}else{if(0==i.length){const m=e.substring(t,p);a.push(m),t=p+1}i.push("{")}}const h=e.substring(t);return a.push(h),a}function R0(e,t,i,a,c,u,h,p){const m=[],C=[],E=[];t.cases.push(u),t.create.push(m),t.remove.push(C),t.update.push(E);const B=oh(Fn()).getInertBodyElement(h),z=wc(B)||B;return z?Jy(e,t,i,a,m,C,E,z,c,p,0):0}function Jy(e,t,i,a,c,u,h,p,m,C,E){let I=0,B=p.firstChild;for(;B;){const z=ii(e,i,1,null);switch(B.nodeType){case Node.ELEMENT_NODE:const oe=B,he=oe.tagName.toLowerCase();if(Dc.hasOwnProperty(he)){Sm(c,Tp,he,m,z),e.data[z]=he;const ue=oe.attributes;for(let Re=0;Re>>Rt.SHIFT;let I=e[E];null===I&&(I=e[E]=m?c.createComment(p):Ws(c,p)),C&&null!==i&&ki(c,i,I,a,!1)}})(c,m.create,E,p&&8&p.type?c[p.index]:null),Wl(!0)}function nC(e,t,i){eC(e,t,i),function tC(){Wl(!1)}()}function Am(e){return function f0(e){e&&(Ju|=1<0){const a=e.data[i];jy(e,t,Array.isArray(a)?a:a.update,function ur(){return Ae.lFrame.bindingIndex}()-Qu-1,Ju)}Ju=0,Qu=0}(Xe(),se(),e+22)}function Mm(e,t,i,a,c){if(e=$(e),Array.isArray(e))for(let u=0;u>20;if(Ri(e)||!e.multi){const z=new Cs(m,c,Fr),oe=Im(p,t,c?E:E+B,I);-1===oe?(Ai(po(C,h),u,p),Tm(u,e,t.length),t.push(p),C.directiveStart++,C.directiveEnd++,c&&(C.providerIndexes+=1048576),i.push(z),h.push(z)):(i[oe]=z,h[oe]=z)}else{const z=Im(p,t,E+B,I),oe=Im(p,t,E,E+B),he=z>=0&&i[z],be=oe>=0&&i[oe];if(c&&!be||!c&&!he){Ai(po(C,h),u,p);const Me=function q0(e,t,i,a,c){const u=new Cs(e,i,Fr);return u.multi=[],u.index=t,u.componentProviders=0,iC(u,c,a&&!i),u}(c?K0:Z0,i.length,c,a,m);!c&&be&&(i[oe].providerFactory=Me),Tm(u,e,t.length,0),t.push(p),C.directiveStart++,C.directiveEnd++,c&&(C.providerIndexes+=1048576),i.push(Me),h.push(Me)}else Tm(u,e,z>-1?z:oe,iC(i[c?oe:z],m,!c&&a));!c&&a&&be&&i[oe].componentProviders++}}}function Tm(e,t,i,a){const c=Ri(t),u=function Rg(e){return!!e.useClass}(t);if(c||u){const m=(u?$(t.useClass):t).prototype.ngOnDestroy;if(m){const C=e.destroyHooks||(e.destroyHooks=[]);if(!c&&t.multi){const E=C.indexOf(i);-1===E?C.push(i,[a,m]):C[E+1].push(a,m)}else C.push(i,m)}}}function iC(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Im(e,t,i,a){for(let c=i;c{i.providersResolver=(a,c)=>function Y0(e,t,i){const a=Xe();if(a.firstCreatePass){const c=wn(e);Mm(i,a.data,a.blueprint,c,!0),Mm(t,a.data,a.blueprint,c,!1)}}(a,c?c(e):e,t)}}class Ol{}class sC{}function J0(e,t){return new aC(e,t??null)}class aC extends Ol{constructor(t,i){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fu(this);const a=Kt(t);this._bootstrapComponents=Nn(a.bootstrap),this._r3Injector=ff(t,i,[{provide:Ol,useValue:this},{provide:xo,useValue:this.componentFactoryResolver}],Z(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xm extends sC{constructor(t){super(),this.moduleType=t}create(t){return new aC(this.moduleType,t)}}class Q0 extends Ol{constructor(t,i,a){super(),this.componentFactoryResolver=new Fu(this),this.instance=null;const c=new Pg([...t,{provide:Ol,useValue:this},{provide:xo,useValue:this.componentFactoryResolver}],i||Oc(),a,new Set(["environment"]));this.injector=c,c.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Rm(e,t,i=null){return new Q0(e,t,i).injector}function pC(e,t,i){const a=on()+e,c=se();return c[a]===Be?Cr(c,a,i?t.call(i):t()):function $o(e,t){return e[t]}(c,a)}function gC(e,t,i,a){return mC(se(),on(),e,t,i,a)}function _C(e,t,i,a,c){return vC(se(),on(),e,t,i,a,c)}function ed(e,t){const i=e[t];return i===Be?void 0:i}function mC(e,t,i,a,c,u){const h=t+i;return Xt(e,h,c)?Cr(e,h+1,u?a.call(u,c):a(c)):ed(e,h+1)}function vC(e,t,i,a,c,u,h){const p=t+i;return function Vr(e,t,i,a){const c=Xt(e,t,i);return Xt(e,t+1,a)||c}(e,p,c,u)?Cr(e,p+2,h?a.call(h,c,u):a(c,u)):ed(e,p+2)}function EC(e,t){const i=Xe();let a;const c=e+22;i.firstCreatePass?(a=function _E(e,t){if(t)for(let i=t.length-1;i>=0;i--){const a=t[i];if(e===a.name)return a}}(t,i.pipeRegistry),i.data[c]=a,a.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(c,a.onDestroy)):a=i.data[c];const u=a.factory||(a.factory=sr(a.type)),h=$t(Fr);try{const p=fo(!1),m=u();return fo(p),function Hn(e,t,i,a){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=a}(i,se(),c,m),m}finally{$t(h)}}function wC(e,t,i){const a=e+22,c=se(),u=v(c,a);return td(c,a)?mC(c,on(),t,u.transform,i,u):u.transform(i)}function bC(e,t,i,a){const c=e+22,u=se(),h=v(u,c);return td(u,c)?vC(u,on(),t,h.transform,i,a,h):h.transform(i,a)}function td(e,t){return e[1].data[t].pure}function Fm(e){return t=>{setTimeout(e,void 0,t)}}const _i=class CE extends g.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,a){let c=t,u=i||(()=>null),h=a;if(t&&"object"==typeof t){const m=t;c=m.next?.bind(m),u=m.error?.bind(m),h=m.complete?.bind(m)}this.__isAsync&&(u=Fm(u),c&&(c=Fm(c)),h&&(h=Fm(h)));const p=super.subscribe({next:c,error:u,complete:h});return t instanceof s.w0&&t.add(p),p}};function DE(){return this._results[$i()]()}class km{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=$i(),a=km.prototype;a[i]||(a[i]=DE)}get changes(){return this._changes||(this._changes=new _i)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const a=this;a.dirty=!1;const c=sn(t);(this._changesDetected=!function xa(e,t,i){if(e.length!==t.length)return!1;for(let a=0;a{class e{}return e.__NG_ELEMENT_ID__=bE,e})();const EE=nd,wE=class extends EE{constructor(t,i,a){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=a}createEmbeddedView(t,i){const a=this._declarationTContainer.tViews,c=Vo(this._declarationLView,a,t,16,null,a.declTNode,null,null,null,null,i||null);c[17]=this._declarationLView[this._declarationTContainer.index];const h=this._declarationLView[19];return null!==h&&(c[19]=h.createEmbeddedView(a)),ll(a,c,t),new oa(c)}};function bE(){return Rp(Ct(),se())}function Rp(e,t){return 4&e.type?new wE(t,e,js(e,t)):null}let Pp=(()=>{class e{}return e.__NG_ELEMENT_ID__=SE,e})();function SE(){return MC(Ct(),se())}const AE=Pp,SC=class extends AE{constructor(t,i,a){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=a}get element(){return js(this._hostTNode,this._hostLView)}get injector(){return new _o(this._hostTNode,this._hostLView)}get parentInjector(){const t=ws(this._hostTNode,this._hostLView);if(nc(t)){const i=Es(t,this._hostLView),a=Ds(t);return new _o(i[1].data[a+8],i)}return new _o(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=AC(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,i,a){let c,u;"number"==typeof a?c=a:null!=a&&(c=a.index,u=a.injector);const h=t.createEmbeddedView(i||{},u);return this.insert(h,c),h}createComponent(t,i,a,c,u){const h=t&&!function Eo(e){return"function"==typeof e}(t);let p;if(h)p=i;else{const I=i||{};p=I.index,a=I.injector,c=I.projectableNodes,u=I.environmentInjector||I.ngModuleRef}const m=h?t:new sa(rt(t)),C=a||this.parentInjector;if(!u&&null==m.ngModule){const B=(h?C:this.parentInjector).get(Oo,null);B&&(u=B)}const E=m.create(C,c,void 0,u);return this.insert(E.hostView,p),E}insert(t,i){const a=t._lView,c=a[1];if(function ce(e){return gn(e[3])}(a)){const E=this.indexOf(t);if(-1!==E)this.detach(E);else{const I=a[3],B=new SC(I,I[6],I[3]);B.detach(B.indexOf(t))}}const u=this._adjustIndex(i),h=this._lContainer;!function o_(e,t,i,a){const c=10+a,u=i.length;a>0&&(i[c-1][4]=t),a0)a.push(h[p/2]);else{const C=u[p+1],E=t[-m];for(let I=10;I{class e{constructor(i){this.appInits=i,this.resolve=kp,this.reject=kp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c})}runInitializers(){if(this.initialized)return;const i=[],a=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let c=0;c{u.subscribe({complete:p,error:m})});i.push(h)}}Promise.all(i).then(()=>{a()}).catch(c=>{this.reject(c)}),0===i.length&&a(),this.initialized=!0}}return e.\u0275fac=function(i){return new(i||e)(Vt(nD,8))},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rD=new pt("AppId",{providedIn:"root",factory:function iD(){return`${Wm()}${Wm()}${Wm()}`}});function Wm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const oD=new pt("Platform Initializer"),ew=new pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),sD=new pt("appBootstrapListener"),tw=new pt("AnimationModuleType");let nw=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Lp=new pt("LocaleId",{providedIn:"root",factory:()=>Yd(Lp,Pe.Optional|Pe.SkipSelf)||function rw(){return typeof $localize<"u"&&$localize.locale||Tl}()}),iw=new pt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class ow{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let sw=(()=>{class e{compileModuleSync(i){return new xm(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const a=this.compileModuleSync(i),u=Nn(Kt(i).declarations).reduce((h,p)=>{const m=rt(p);return m&&h.push(new sa(m)),h},[]);return new ow(a,u)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const cw=(()=>Promise.resolve(0))();function Ym(e){typeof Zone>"u"?cw.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class tr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _i(!1),this.onMicrotaskEmpty=new _i(!1),this.onStable=new _i(!1),this.onError=new _i(!1),typeof Zone>"u")throw new le(908,!1);Zone.assertZonePatched();const c=this;if(c._nesting=0,c._outer=c._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const u=Zone.AsyncStackTaggingZoneSpec;c._inner=c._inner.fork(new u("Angular"))}Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=!a&&i,c.shouldCoalesceRunChangeDetection=a,c.lastRequestAnimationFrameId=-1,c.nativeRequestAnimationFrame=function uw(){let e=Oe.requestAnimationFrame,t=Oe.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i);const a=t[Zone.__symbol__("OriginalDelegate")];a&&(t=a)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function fw(e){const t=()=>{!function hw(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Km(e),e.isCheckStableRunning=!0,Zm(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Km(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,a,c,u,h,p)=>{try{return cD(e),i.invokeTask(c,u,h,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&t(),uD(e)}},onInvoke:(i,a,c,u,h,p,m)=>{try{return cD(e),i.invoke(c,u,h,p,m)}finally{e.shouldCoalesceRunChangeDetection&&t(),uD(e)}},onHasTask:(i,a,c,u)=>{i.hasTask(c,u),a===c&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,Km(e),Zm(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(i,a,c,u)=>(i.handleError(c,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(c)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!tr.isInAngularZone())throw new le(909,!1)}static assertNotInAngularZone(){if(tr.isInAngularZone())throw new le(909,!1)}run(t,i,a){return this._inner.run(t,i,a)}runTask(t,i,a,c){const u=this._inner,h=u.scheduleEventTask("NgZoneEvent: "+c,t,dw,kp,kp);try{return u.runTask(h,i,a)}finally{u.cancelTask(h)}}runGuarded(t,i,a){return this._inner.runGuarded(t,i,a)}runOutsideAngular(t){return this._outer.run(t)}}const dw={};function Zm(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Km(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function uD(e){e._nesting--,Zm(e)}class pw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _i,this.onMicrotaskEmpty=new _i,this.onStable=new _i,this.onError=new _i}run(t,i,a){return t.apply(i,a)}runGuarded(t,i,a){return t.apply(i,a)}runOutsideAngular(t){return t()}runTask(t,i,a,c){return t.apply(i,a)}}const dD=new pt(""),hD=new pt("");let qm,gw=(()=>{class e{constructor(i,a,c){this._ngZone=i,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,qm||(function _w(e){qm=e}(c),c.addToWindow(a)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{tr.assertNotInAngularZone(),Ym(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ym(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(i)||(clearTimeout(a.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,a,c){let u=-1;a&&a>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==u),i(this._didWork,this.getPendingTasks())},a)),this._callbacks.push({doneCb:i,timeoutId:u,updateCb:c})}whenStable(i,a,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,a,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,a,c){return[]}}return e.\u0275fac=function(i){return new(i||e)(Vt(tr),Vt(fD),Vt(hD))},e.\u0275prov=jt({token:e,factory:e.\u0275fac}),e})(),fD=(()=>{class e{constructor(){this._applications=new Map}registerApplication(i,a){this._applications.set(i,a)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,a=!0){return qm?.findTestabilityInTree(this,i,a)??null}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),is=null;const pD=new pt("AllowMultipleToken"),Jm=new pt("PlatformDestroyListeners");class yw{constructor(t,i){this.name=t,this.token=i}}function _D(e,t,i=[]){const a=`Platform: ${t}`,c=new pt(a);return(u=[])=>{let h=Qm();if(!h||h.injector.get(pD,!1)){const p=[...i,...u,{provide:c,useValue:!0}];e?e(p):function Cw(e){if(is&&!is.get(pD,!1))throw new le(400,!1);is=e;const t=e.get(vD);(function gD(e){const t=e.get(oD,null);t&&t.forEach(i=>i())})(e)}(function mD(e=[],t){return Pr.create({name:t,providers:[{provide:Mc,useValue:"platform"},{provide:Jm,useValue:new Set([()=>is=null])},...e]})}(p,a))}return function Ew(e){const t=Qm();if(!t)throw new le(401,!1);return t}()}}function Qm(){return is?.get(vD)??null}let vD=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,a){const c=function ww(e,t){let i;return i="noop"===e?new pw:("zone.js"===e?void 0:e)||new tr(t),i}(a?.ngZone,function yD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(a)),u=[{provide:tr,useValue:c}];return c.run(()=>{const h=Pr.create({providers:u,parent:this.injector,name:i.moduleType.name}),p=i.create(h),m=p.injector.get(Gs,null);if(!m)throw new le(402,!1);return c.runOutsideAngular(()=>{const C=c.onError.subscribe({next:E=>{m.handleError(E)}});p.onDestroy(()=>{Bp(this._modules,p),C.unsubscribe()})}),function CD(e,t,i){try{const a=i();return Yi(a)?a.catch(c=>{throw t.runOutsideAngular(()=>e.handleError(c)),c}):a}catch(a){throw t.runOutsideAngular(()=>e.handleError(a)),a}}(m,c,()=>{const C=p.injector.get(Np);return C.runInitializers(),C.donePromise.then(()=>(Py(p.injector.get(Lp,Tl)||Tl),this._moduleDoBootstrap(p),p))})})}bootstrapModule(i,a=[]){const c=DD({},a);return function mw(e,t,i){const a=new xm(i);return Promise.resolve(a)}(0,0,i).then(u=>this.bootstrapModuleFactory(u,c))}_moduleDoBootstrap(i){const a=i.injector.get(Vp);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!i.instance.ngDoBootstrap)throw new le(403,!1);i.instance.ngDoBootstrap(a)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new le(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const i=this._injector.get(Jm,null);i&&(i.forEach(a=>a()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(i){return new(i||e)(Vt(Pr))},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function DD(e,t){return Array.isArray(t)?t.reduce(DD,e):{...e,...t}}let Vp=(()=>{class e{constructor(i,a,c){this._zone=i,this._injector=a,this._exceptionHandler=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new S.y(p=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{p.next(this._stable),p.complete()})}),h=new S.y(p=>{let m;this._zone.runOutsideAngular(()=>{m=this._zone.onStable.subscribe(()=>{tr.assertNotInAngularZone(),Ym(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,p.next(!0))})})});const C=this._zone.onUnstable.subscribe(()=>{tr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{p.next(!1)}))});return()=>{m.unsubscribe(),C.unsubscribe()}});this.isStable=(0,T.T)(u,h.pipe(function G(e={}){const{connector:t=(()=>new g.x),resetOnError:i=!0,resetOnComplete:a=!0,resetOnRefCountZero:c=!0}=e;return u=>{let h,p,m,C=0,E=!1,I=!1;const B=()=>{p?.unsubscribe(),p=void 0},z=()=>{B(),h=m=void 0,E=I=!1},oe=()=>{const he=h;z(),he?.unsubscribe()};return(0,L.e)((he,be)=>{C++,!I&&!E&&B();const Me=m=m??t();be.add(()=>{C--,0===C&&!I&&!E&&(p=F(oe,c))}),Me.subscribe(be),!h&&C>0&&(h=new P.Hp({next:xe=>Me.next(xe),error:xe=>{I=!0,B(),p=F(z,i,xe),Me.error(xe)},complete:()=>{E=!0,B(),p=F(z,a),Me.complete()}}),(0,w.Xf)(he).subscribe(h))})(u)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,a){const c=i instanceof Ng;if(!this._injector.get(Np).done)throw!c&&Rl(i),new le(405,false);let h;h=c?i:this._injector.get(xo).resolveComponentFactory(i),this.componentTypes.push(h.componentType);const p=function vw(e){return e.isBoundToModule}(h)?void 0:this._injector.get(Ol),C=h.create(Pr.NULL,[],a||h.selector,p),E=C.location.nativeElement,I=C.injector.get(dD,null);return I?.registerApplication(E),C.onDestroy(()=>{this.detachView(C.hostView),Bp(this.components,C),I?.unregisterApplication(E)}),this._loadComponent(C),C}tick(){if(this._runningTick)throw new le(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(i))}finally{this._runningTick=!1}}attachView(i){const a=i;this._views.push(a),a.attachToAppRef(this)}detachView(i){const a=i;Bp(this._views,a),a.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i),this._injector.get(sD,[]).concat(this._bootstrapListeners).forEach(c=>c(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Bp(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new le(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(i){return new(i||e)(Vt(tr),Vt(Oo),Vt(Gs))},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Bp(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}let wD=!0,bD=!1;function Sw(){return bD=!0,wD}function Aw(){if(bD)throw new Error("Cannot enable prod mode after platform setup.");wD=!1}let Mw=(()=>{class e{}return e.__NG_ELEMENT_ID__=Tw,e})();function Tw(e){return function Iw(e,t,i){if(cs(e)&&!i){const a=A(e.index,t);return new oa(a,a)}return 47&e.type?new oa(t[16],t):null}(Ct(),se(),16==(16&e))}class TD{constructor(){}supports(t){return la(t)}create(t){return new kw(t)}}const Fw=(e,t)=>t;class kw{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Fw}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,a=this._removalsHead,c=0,u=null;for(;i||a;){const h=!a||i&&i.currentIndex{h=this._trackByFn(c,p),null!==i&&Object.is(i.trackById,h)?(a&&(i=this._verifyReinsertion(i,p,h,c)),Object.is(i.item,p)||this._addIdentityChange(i,p)):(i=this._mismatch(i,p,h,c),a=!0),i=i._next,c++}),this.length=c;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,a,c){let u;return null===t?u=this._itTail:(u=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,u,c)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(a,c))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,u,c)):t=this._addAfter(new Nw(i,a),u,c),t}_verifyReinsertion(t,i,a,c){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==u?t=this._reinsertAfter(u,t._prev,c):t.currentIndex!=c&&(t.currentIndex=c,this._addToMoves(t,c)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,i,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const c=t._prevRemoved,u=t._nextRemoved;return null===c?this._removalsHead=u:c._nextRemoved=u,null===u?this._removalsTail=c:u._prevRemoved=c,this._insertAfter(t,i,a),this._addToMoves(t,a),t}_moveAfter(t,i,a){return this._unlink(t),this._insertAfter(t,i,a),this._addToMoves(t,a),t}_addAfter(t,i,a){return this._insertAfter(t,i,a),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,a){const c=null===i?this._itHead:i._next;return t._next=c,t._prev=i,null===c?this._itTail=t:c._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new ID),this._linkedRecords.put(t),t.currentIndex=a,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,a=t._next;return null===i?this._itHead=a:i._next=a,null===a?this._itTail=i:a._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ID),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Nw{constructor(t,i){this.item=t,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Lw{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===i||i<=a.currentIndex)&&Object.is(a.trackById,t))return a;return null}remove(t){const i=t._prevDup,a=t._nextDup;return null===i?this._head=a:i._nextDup=a,null===a?this._tail=i:a._prevDup=i,null===this._head}}class ID{constructor(){this.map=new Map}put(t){const i=t.trackById;let a=this.map.get(i);a||(a=new Lw,this.map.set(i,a)),a.add(t)}get(t,i){const c=this.map.get(t);return c?c.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function OD(e,t,i){const a=e.previousIndex;if(null===a)return a;let c=0;return i&&a{if(i&&i.key===c)this._maybeAddToChanges(i,a),this._appendAfter=i,i=i._next;else{const u=this._getOrCreateRecordForKey(c,a);i=this._insertBeforeOrAppend(i,u)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let a=i;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const a=t._prev;return i._next=t,i._prev=a,t._prev=i,a&&(a._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const c=this._records.get(t);this._maybeAddToChanges(c,i);const u=c._prev,h=c._next;return u&&(u._next=h),h&&(h._prev=u),c._next=null,c._prev=null,c}const a=new Bw(t);return this._records.set(t,a),a.currentValue=i,this._addToAdditions(a),a}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(a=>i(t[a],a))}}class Bw{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function RD(){return new rv([new TD])}let rv=(()=>{class e{constructor(i){this.factories=i}static create(i,a){if(null!=a){const c=a.factories.slice();i=i.concat(c)}return new e(i)}static extend(i){return{provide:e,useFactory:a=>e.create(i,a||RD()),deps:[[e,new qr,new xs]]}}find(i){const a=this.factories.find(c=>c.supports(i));if(null!=a)return a;throw new le(901,!1)}}return e.\u0275prov=jt({token:e,providedIn:"root",factory:RD}),e})();function PD(){return new iv([new xD])}let iv=(()=>{class e{constructor(i){this.factories=i}static create(i,a){if(a){const c=a.factories.slice();i=i.concat(c)}return new e(i)}static extend(i){return{provide:e,useFactory:a=>e.create(i,a||PD()),deps:[[e,new qr,new xs]]}}find(i){const a=this.factories.find(c=>c.supports(i));if(a)return a;throw new le(901,!1)}}return e.\u0275prov=jt({token:e,providedIn:"root",factory:PD}),e})();const jw=_D(null,"core",[]);let $w=(()=>{class e{constructor(i){}}return e.\u0275fac=function(i){return new(i||e)(Vt(Vp))},e.\u0275mod=ls({type:e}),e.\u0275inj=Qi({}),e})();function Gw(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,zr:()=>OAuthModule});var _workspaces_openiddict_ui_samples_Client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1571),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class O extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return O.\u0275fac=function(){let x;return function(g){return(x||(x=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(O)))(g||O)}}(),O.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:O,factory:O.\u0275fac}),O})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class O{constructor(){this.data=new Map}getItem(f){return this.data.get(f)}removeItem(f){this.data.delete(f)}setItem(f,g){this.data.set(f,g)}}return O.\u0275fac=function(f){return new(f||O)},O.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:O,factory:O.\u0275fac}),O})();class ReceivedTokens{}class OAuthEvent{constructor(x){this.type=x}}class OAuthSuccessEvent extends OAuthEvent{constructor(x,f=null){super(x),this.info=f}}class OAuthInfoEvent extends OAuthEvent{constructor(x,f=null){super(x),this.info=f}}class OAuthErrorEvent extends OAuthEvent{constructor(x,f,g=null){super(x),this.reason=f,this.params=g}}function b64DecodeUnicode(O){const x=O.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(x).split("").map(function(f){return"%"+("00"+f.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(O){return btoa(O).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(x){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=f=>{location.href=f},x&&Object.assign(this,x)}}class WebHttpUrlEncodingCodec{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(x){var f=this;return(0,_workspaces_openiddict_ui_samples_Client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let g=f.inferHashAlgorithm(x.idTokenHeader),s=yield f.calcHash(x.accessToken,g),T=base64UrlEncode(s.substr(0,s.length/2)),w=x.idTokenClaims.at_hash.replace(/=/g,"");return T!==w&&(console.error("exptected at_hash: "+T),console.error("actual at_hash: "+w)),T===w})()}inferHashAlgorithm(x){let f=x.alg;if(!f.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+f);return"sha-"+f.substr(2)}}let UrlHelperService=(()=>{class O{getHashFragmentParams(f){let g=f||window.location.hash;if(g=decodeURIComponent(g),0!==g.indexOf("#"))return{};const s=g.indexOf("?");return g=g.substr(s>-1?s+1:1),this.parseQueryString(g)}parseQueryString(f){const g={};let s,S,T,w,P,L,G;if(null===f)return g;s=f.split("&");for(let F=0;F>6,S[w++]=128|63&P):P<55296||P>=57344?(S[w++]=224|P>>12,S[w++]=128|P>>6&63,S[w++]=128|63&P):(P=65536+((1023&P)<<10|1023&O.charCodeAt(++g)),S[w++]=240|P>>18,S[w++]=128|P>>12&63,S[w++]=128|P>>6&63,S[w++]=128|63&P);O=S}else{if("object"!==s)throw new Error(ERROR);if(null===O)throw new Error(ERROR);if(ARRAY_BUFFER&&O.constructor===ArrayBuffer)O=new Uint8Array(O);else if(!(Array.isArray(O)||ARRAY_BUFFER&&ArrayBuffer.isView(O)))throw new Error(ERROR)}O.length>64&&(O=new Sha256(x,!0).update(O).array());var L=[],G=[];for(g=0;g<64;++g){var F=O[g]||0;L[g]=92^F,G[g]=54^F}Sha256.call(this,x,f),this.update(G),this.oKeyPad=L,this.inner=!0,this.sharedMemory=f}Sha256.prototype.update=function(O){if(!this.finalized){var x,f=typeof O;if("string"!==f){if("object"!==f)throw new Error(ERROR);if(null===O)throw new Error(ERROR);if(ARRAY_BUFFER&&O.constructor===ArrayBuffer)O=new Uint8Array(O);else if(!(Array.isArray(O)||ARRAY_BUFFER&&ArrayBuffer.isView(O)))throw new Error(ERROR);x=!0}for(var g,S,s=0,T=O.length,w=this.blocks;s>2]|=O[s]<>2]|=g<>2]|=(192|g>>6)<>2]|=(128|63&g)<=57344?(w[S>>2]|=(224|g>>12)<>2]|=(128|g>>6&63)<>2]|=(128|63&g)<>2]|=(240|g>>18)<>2]|=(128|g>>12&63)<>2]|=(128|g>>6&63)<>2]|=(128|63&g)<=64?(this.block=w[16],this.start=S-64,this.hash(),this.hashed=!0):this.start=S}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var O=this.blocks,x=this.lastByteIndex;O[16]=this.block,O[x>>2]|=EXTRA[3&x],this.block=O[16],x>=56&&(this.hashed||this.hash(),O[0]=this.block,O[16]=O[1]=O[2]=O[3]=O[4]=O[5]=O[6]=O[7]=O[8]=O[9]=O[10]=O[11]=O[12]=O[13]=O[14]=O[15]=0),O[14]=this.hBytes<<3|this.bytes>>>29,O[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var L,k,j,X,$,ve,O=this.h0,x=this.h1,f=this.h2,g=this.h3,s=this.h4,S=this.h5,T=this.h6,w=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+(((k=P[L-15])>>>7|k<<25)^(k>>>18|k<<14)^k>>>3)+P[L-7]+(((k=P[L-2])>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)<<0;for(ve=x&f,L=0;L<64;L+=4)this.first?(this.is224?(j=300032,w=(k=P[0]-1413257819)-150054599<<0,g=k+24177077<<0):(j=704751109,w=(k=P[0]-210244248)-1521486534<<0,g=k+143694565<<0),this.first=!1):(w=g+(k=w+((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&S^~s&T)+K[L]+P[L])<<0,g=k+(((O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10))+((j=O&x)^O&f^ve))<<0),T=f+(k=T+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&s^~w&S)+K[L+1]+P[L+1])<<0,f=k+(((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((X=g&O)^g&x^j))<<0,S=x+(k=S+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&w^~T&s)+K[L+2]+P[L+2])<<0,x=k+(((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(($=f&g)^f&O^X))<<0,s=O+(k=s+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&T^~S&w)+K[L+3]+P[L+3])<<0,O=k+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((ve=x&f)^x&g^$))<<0;this.h0=this.h0+O<<0,this.h1=this.h1+x<<0,this.h2=this.h2+f<<0,this.h3=this.h3+g<<0,this.h4=this.h4+s<<0,this.h5=this.h5+S<<0,this.h6=this.h6+T<<0,this.h7=this.h7+w<<0},Sha256.prototype.hex=function(){this.finalize();var O=this.h0,x=this.h1,f=this.h2,g=this.h3,s=this.h4,S=this.h5,T=this.h6,w=this.h7,P=HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T];return this.is224||(P+=HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var O=this.h0,x=this.h1,f=this.h2,g=this.h3,s=this.h4,S=this.h5,T=this.h6,w=this.h7,P=[O>>24&255,O>>16&255,O>>8&255,255&O,x>>24&255,x>>16&255,x>>8&255,255&x,f>>24&255,f>>16&255,f>>8&255,255&f,g>>24&255,g>>16&255,g>>8&255,255&g,s>>24&255,s>>16&255,s>>8&255,255&s,S>>24&255,S>>16&255,S>>8&255,255&S,T>>24&255,T>>16&255,T>>8&255,255&T];return this.is224||P.push(w>>24&255,w>>16&255,w>>8&255,255&w),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var O=new ArrayBuffer(this.is224?28:32),x=new DataView(O);return x.setUint32(0,this.h0),x.setUint32(4,this.h1),x.setUint32(8,this.h2),x.setUint32(12,this.h3),x.setUint32(16,this.h4),x.setUint32(20,this.h5),x.setUint32(24,this.h6),this.is224||x.setUint32(28,this.h7),O},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var O=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(O),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(O){if("string"!=typeof O)throw new TypeError("expected string");var x,f=O,g=new Uint8Array(f.length);for(x=0;x{class O{calcHash(f,g){return(0,_workspaces_openiddict_ui_samples_Client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(f)))})()}toHashString2(f){let g="";for(let s of f)g+=String.fromCharCode(s);return g}toHashString(f){const g=new Uint8Array(f);let s="";for(let S of g)s+=String.fromCharCode(S);return s}}return O.\u0275fac=function(f){return new(f||O)},O.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:O,factory:O.\u0275fac}),O})(),OAuthService=(()=>{class O extends AuthConfig{constructor(f,g,s,S,T,w,P,L,G,F){super(),this.ngZone=f,this.http=g,this.config=T,this.urlHelper=w,this.logger=P,this.crypto=L,this.dateTimeService=F,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=G,T||(T={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),S&&(this.tokenValidationHandler=S),T&&this.configure(T);try{s?this.setStorage(s):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(H){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",H)}if(this.checkLocalStorageAccessable()){const H=window?.navigator?.userAgent;(H?.includes("MSIE ")||H?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const f="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(f,f),localStorage.removeItem(f),0))}catch{return!1}}configure(f){Object.assign(this,new AuthConfig,f),this.config=Object.assign({},new AuthConfig,f),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"token_received"===f.type)).subscribe(f=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(f={},g,s=!0){let S=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(T=>{"token_received"===T.type?S=!0:"logout"===T.type&&(S=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_expires"===T.type&&(null==g||"any"===g||T.info===g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(T=>{S&&this.refreshInternal(f,s).catch(w=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(f,g){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(f,g):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(f=null){return this.loadDiscoveryDocument().then(g=>this.tryLogin(f))}loadDiscoveryDocumentAndLogin(f=null){return this.loadDiscoveryDocumentAndTryLogin(f=f||{}).then(g=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof f.state?f.state:""),!1))}debug(...f){this.showDebugInformation&&this.logger.debug.apply(this.logger,f)}validateUrlFromDiscoveryDocument(f){const g=[],s=this.validateUrlForHttps(f),S=this.validateUrlAgainstIssuer(f);return s||g.push("https for all urls required. Also for urls received by discovery."),S||g.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),g}validateUrlForHttps(f){if(!f)return!0;const g=f.toLowerCase();return!(!1!==this.requireHttps&&(!g.match(/^http:\/\/localhost($|[:\/])/)&&!g.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||g.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(f,g){if(!f)throw new Error(`'${g}' should not be null`);if(!this.validateUrlForHttps(f))throw new Error(`'${g}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(f){return!this.strictDiscoveryDocumentValidation||!f||f.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"token_received"===f.type)).subscribe(f=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const f=this.getAccessTokenExpiration(),g=this.getAccessTokenStoredAt(),s=this.calcTimeout(g,f);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(s)).subscribe(S=>{this.ngZone.run(()=>{this.eventsSubject.next(S)})})})}setupIdTokenTimer(){const f=this.getIdTokenExpiration(),g=this.getIdTokenStoredAt(),s=this.calcTimeout(g,f);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(s)).subscribe(S=>{this.ngZone.run(()=>{this.eventsSubject.next(S)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(f,g){const s=this.dateTimeService.now();return Math.max(0,(g-f)*this.timeoutFactor-(s-f))}setStorage(f){this._storage=f,this.configChanged()}loadDiscoveryDocument(f=null){return new Promise((g,s)=>{f||((f=this.issuer||"").endsWith("/")||(f+="/"),f+=".well-known/openid-configuration"),this.validateUrlForHttps(f)?this.http.get(f).subscribe(S=>{if(!this.validateDiscoveryDocument(S))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void s("discovery_document_validation_error");this.loginUrl=S.authorization_endpoint,this.logoutUrl=S.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=S.grant_types_supported,this.issuer=S.issuer,this.tokenEndpoint=S.token_endpoint,this.userinfoEndpoint=S.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=S.jwks_uri,this.sessionCheckIFrameUrl=S.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(S),this.revocationEndpoint=S.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(T=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:S,jwks:T});this.eventsSubject.next(P),g(P)}).catch(T=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",T)),s(T)})},S=>{this.logger.error("error loading discovery document",S),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",S)),s(S)}):s("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((f,g)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(s=>{this.jwks=s,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),f(s)},s=>{this.logger.error("error loading jwks",s),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",s)),g(s)}):f(null)})}validateDiscoveryDocument(f){let g;return this.skipIssuerCheck||f.issuer===this.issuer?(g=this.validateUrlFromDiscoveryDocument(f.authorization_endpoint),g.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",g),!1):(g=this.validateUrlFromDiscoveryDocument(f.end_session_endpoint),g.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",g),!1):(g=this.validateUrlFromDiscoveryDocument(f.token_endpoint),g.length>0&&this.logger.error("error validating token_endpoint in discovery document",g),g=this.validateUrlFromDiscoveryDocument(f.revocation_endpoint),g.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",g),g=this.validateUrlFromDiscoveryDocument(f.userinfo_endpoint),g.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",g),!1):(g=this.validateUrlFromDiscoveryDocument(f.jwks_uri),g.length>0?(this.logger.error("error validating jwks_uri in discovery document",g),!1):(this.sessionChecksEnabled&&!f.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+f.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(f,g,s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(f,g,s).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((f,g)=>{const s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:s,observe:"response",responseType:"text"}).subscribe(S=>{if(this.debug("userinfo received",JSON.stringify(S)),S.headers.get("content-type").startsWith("application/json")){let T=JSON.parse(S.body);const w=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!w.sub||T.sub!==w.sub))return void g("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");T=Object.assign({},w,T),this._storage.setItem("id_token_claims_obj",JSON.stringify(T)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),f({info:T})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),f(JSON.parse(S.body))},S=>{this.logger.error("error loading user info",S),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",S)),g(S)})})}fetchTokenUsingPasswordFlow(f,g,s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:f,password:g},s)}fetchTokenUsingGrant(f,g,s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",f).set("scope",this.scope);if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);s=s.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(T,this.customQueryParams[T]);for(const T of Object.keys(g))S=S.set(T,g[T]);return s=s.set("Content-Type","application/x-www-form-urlencoded"),new Promise((T,w)=>{this.http.post(this.tokenEndpoint,S,{headers:s}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),T(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),T(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),w(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((f,g)=>{let s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),S=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);S=S.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(T,this.customQueryParams[T]);this.http.post(this.tokenEndpoint,s,{headers:S}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(T=>T.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(T.id_token,T.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>this.storeIdToken(w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>T)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(T))).subscribe(T=>{this.debug("refresh tokenResponse",T),this.storeAccessTokenResponse(T.access_token,T.refresh_token,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,T.scope,this.extractRecognizedCustomParameters(T)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),f(T)},T=>{this.logger.error("Error refreshing token",T),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",T)),g(T)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=f=>{const g=this.processMessageEventMessage(f);this.tryLogin({customHashFragment:g,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(s=>this.debug("tryLogin during silent refresh failed",s))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(f={},g=!0){const s=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(f.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const S=this.document.getElementById(this.silentRefreshIFrameName);S&&this.document.body.removeChild(S),this.silentRefreshSubject=s.sub;const T=this.document.createElement("iframe");T.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,g,f).then(F=>{T.setAttribute("src",F),this.silentRefreshShowIFrame||(T.style.display="none"),this.document.body.appendChild(T)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>F instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,L,G]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>{if(F instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===F.type||(F=new OAuthErrorEvent("silent_refresh_error",F)),this.eventsSubject.next(F),F;return"token_received"===F.type&&(F=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(F)),F})).toPromise()}initImplicitFlowInPopup(f){return this.initLoginFlowInPopup(f)}initLoginFlowInPopup(f){return f=f||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(g=>new Promise((s,S)=>{let P,w=null;f.windowRef?f.windowRef&&!f.windowRef.closed&&(w=f.windowRef,w.location.href=g):w=window.open(g,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(f));const L=Z=>{this.tryLogin({customHashFragment:Z,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{F(),s(!0)},ee=>{F(),S(ee)})};w?P=window.setInterval(()=>{(!w||w.closed)&&(F(),S(new OAuthErrorEvent("popup_closed",{})))},500):S(new OAuthErrorEvent("popup_blocked",{}));const F=()=>{window.clearInterval(P),window.removeEventListener("storage",k),window.removeEventListener("message",H),null!==w&&w.close(),w=null},H=Z=>{const ee=this.processMessageEventMessage(Z);ee&&null!==ee?(window.removeEventListener("storage",k),L(ee)):console.log("false event firing")},k=Z=>{"auth_hash"===Z.key&&(window.removeEventListener("message",H),L(Z.newValue))};window.addEventListener("message",H),window.addEventListener("storage",k)}))}calculatePopupFeatures(f){const g=f.height||470,s=f.width||500,S=window.screenLeft+(window.outerWidth-s)/2;return`location=no,toolbar=no,width=${s},height=${g},top=${window.screenTop+(window.outerHeight-g)/2},left=${S}`}processMessageEventMessage(f){let g="#";if(this.silentRefreshMessagePrefix&&(g+=this.silentRefreshMessagePrefix),!f||!f.data||"string"!=typeof f.data)return;const s=f.data;return s.startsWith(g)?"#"+s.substr(g.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=f=>{const g=f.origin.toLowerCase(),s=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),s.startsWith(g)){switch(f.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",f)}else this.debug("sessionCheckEventListener","wrong origin",g,"expected",s,"event",f)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(f=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(f=>{this.debug("token refresh after session change worked")}).catch(f=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"silently_refreshed"===f.type||"silent_refresh_timeout"===f.type||"silent_refresh_error"===f.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(f=>{"silently_refreshed"!==f.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const f=this.document.getElementById(this.sessionCheckIFrameName);f&&this.document.body.removeChild(f);const g=this.document.createElement("iframe");g.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),g.setAttribute("src",this.sessionCheckIFrameUrl),g.style.display="none",this.document.body.appendChild(g),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const f=this.document.getElementById(this.sessionCheckIFrameName);f||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const g=this.getSessionState();g||this.stopSessionCheckTimer(),f.contentWindow.postMessage(this.clientId+" "+g,this.issuer)}createLoginUrl(f="",g="",s="",S=!1,T={}){var w=this;return(0,_workspaces_openiddict_ui_samples_Client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=w;let L;L=s||w.redirectUri;const G=yield w.createAndSaveNonce();if(f=f?G+w.config.nonceStateSeparator+encodeURIComponent(f):G,!w.requestAccessToken&&!w.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");w.responseType=w.config.responseType?w.config.responseType:w.oidc&&w.requestAccessToken?"id_token token":w.oidc&&!w.requestAccessToken?"id_token":"token";const F=P.loginUrl.indexOf("?")>-1?"&":"?";let H=P.scope;w.oidc&&!H.match(/(^|\s)openid($|\s)/)&&(H="openid "+H);let k=P.loginUrl+F+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(f)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(H);if(w.responseType.includes("code")&&!w.disablePKCE){const[Z,ee]=yield w.createChallangeVerifierPairForPKCE();w.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ee):w._storage.setItem("PKCE_verifier",ee),k+="&code_challenge="+Z,k+="&code_challenge_method=S256"}g&&(k+="&login_hint="+encodeURIComponent(g)),P.resource&&(k+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(k+="&nonce="+encodeURIComponent(G)),S&&(k+="&prompt=none");for(const Z of Object.keys(T))k+="&"+encodeURIComponent(Z)+"="+encodeURIComponent(T[Z]);if(w.customQueryParams)for(const Z of Object.getOwnPropertyNames(w.customQueryParams))k+="&"+Z+"="+encodeURIComponent(w.customQueryParams[Z]);return k})()}initImplicitFlowInternal(f="",g=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let s={},S=null;"string"==typeof g?S=g:"object"==typeof g&&(s=g),this.createLoginUrl(f,S,null,!1,s).then(this.config.openUri).catch(T=>{console.error("Error in initImplicitFlow",T),this.inImplicitFlow=!1})}initImplicitFlow(f="",g=""){""!==this.loginUrl?this.initImplicitFlowInternal(f,g):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(s=>"discovery_document_loaded"===s.type)).subscribe(s=>this.initImplicitFlowInternal(f,g))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(f){const g=this;if(f.onTokenReceived){const s={idClaims:g.getIdentityClaims(),idToken:g.getIdToken(),accessToken:g.getAccessToken(),state:g.state};f.onTokenReceived(s)}}storeAccessTokenResponse(f,g,s,S,T){if(this._storage.setItem("access_token",f),S&&!Array.isArray(S)?this._storage.setItem("granted_scopes",JSON.stringify(S.split(" "))):S&&Array.isArray(S)&&this._storage.setItem("granted_scopes",JSON.stringify(S)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),s){const w=1e3*s,L=this.dateTimeService.new().getTime()+w;this._storage.setItem("expires_at",""+L)}g&&this._storage.setItem("refresh_token",g),T&&T.forEach((w,P)=>{this._storage.setItem(P,w)})}tryLogin(f=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(f).then(g=>!0):this.tryLoginImplicitFlow(f)}parseQueryString(f){return f&&0!==f.length?("?"===f.charAt(0)&&(f=f.substr(1)),this.urlHelper.parseQueryString(f)):{}}tryLoginCodeFlow(f=null){var g=this;return(0,_workspaces_openiddict_ui_samples_Client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const s=(f=f||{}).customHashFragment?f.customHashFragment.substring(1):window.location.search,S=g.getCodePartsFromUrl(s),T=S.code,w=S.state,P=S.session_state;if(!f.preventClearHashAfterLogin){const F=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,F)}let[L,G]=g.parseState(w);if(g.state=G,S.error){g.debug("error trying to login"),g.handleLoginError(f,S);const F=new OAuthErrorEvent("code_error",{},S);return g.eventsSubject.next(F),Promise.reject(F)}if(!f.disableNonceCheck){if(!L)return g.saveRequestedRoute(),Promise.resolve();if(!f.disableOAuth2StateCheck&&!g.validateNonce(L)){const H=new OAuthErrorEvent("invalid_nonce_in_state",null);return g.eventsSubject.next(H),Promise.reject(H)}return g.storeSessionState(P),T&&(yield g.getTokenFromCode(T,f),g.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const f=this._storage.getItem("requested_route");f&&history.replaceState(null,"",window.location.origin+f)}getCodePartsFromUrl(f){return f&&0!==f.length?("?"===f.charAt(0)&&(f=f.substr(1)),this.urlHelper.parseQueryString(f)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(f,g){let s=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",f).set("redirect_uri",g.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let S;S=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),S?s=s.set("code_verifier",S):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(s,g)}fetchAndProcessToken(f,g){g=g||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const S=btoa(`${this.clientId}:${this.dummyClientSecret}`);s=s.set("Authorization","Basic "+S)}return this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),new Promise((S,T)=>{if(this.customQueryParams)for(let w of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,f,{headers:s}).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.oidc&&w.id_token?this.processIdToken(w.id_token,w.access_token,g.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),S(w)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),T(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),S(w))},w=>{console.error("Error getting token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),T(w)})})}tryLoginImplicitFlow(f=null){let g;g=(f=f||{}).customHashFragment?this.urlHelper.getHashFragmentParams(f.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",g);const s=g.state;let[S,T]=this.parseState(s);if(this.state=T,g.error){this.debug("error trying to login"),this.handleLoginError(f,g);const F=new OAuthErrorEvent("token_error",{},g);return this.eventsSubject.next(F),Promise.reject(F)}const w=g.access_token,P=g.id_token,L=g.session_state,G=g.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!w||this.requestAccessToken&&!f.disableOAuth2StateCheck&&!s||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!f.disableNonceCheck&&!this.validateNonce(S)){const H=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(H),Promise.reject(H)}return this.requestAccessToken&&this.storeAccessTokenResponse(w,null,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,G),this.oidc?this.processIdToken(P,w,f.disableNonceCheck).then(F=>f.validationHandler?f.validationHandler({accessToken:w,idClaims:F.idTokenClaims,idToken:F.idToken,state:s}).then(H=>F):F).then(F=>(this.storeIdToken(F),this.storeSessionState(L),this.clearHashAfterLogin&&!f.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(f),this.inImplicitFlow=!1,!0)).catch(F=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",F)),this.logger.error("Error validating tokens"),this.logger.error(F),Promise.reject(F))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!f.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(f),Promise.resolve(!0))}parseState(f){let g=f,s="";if(f){const S=f.indexOf(this.config.nonceStateSeparator);S>-1&&(g=f.substr(0,S),s=f.substr(S+this.config.nonceStateSeparator.length))}return[g,s]}validateNonce(f){let g;return g=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),g===f||(console.error("Validating access_token failed, wrong state/nonce.",g,f),!1)}storeIdToken(f){this._storage.setItem("id_token",f.idToken),this._storage.setItem("id_token_claims_obj",f.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+f.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(f){this._storage.setItem("session_state",f)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(f,g){f.onLoginError&&f.onLoginError(g),this.clearHashAfterLogin&&!f.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(f=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:f}processIdToken(f,g,s=!1){const S=f.split("."),w=b64DecodeUnicode(this.padBase64(S[0])),P=JSON.parse(w),G=b64DecodeUnicode(this.padBase64(S[1])),F=JSON.parse(G);let H;if(H=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(F.aud)){if(F.aud.every($=>$!==this.clientId)){const $="Wrong audience: "+F.aud.join(",");return this.logger.warn($),Promise.reject($)}}else if(F.aud!==this.clientId){const $="Wrong audience: "+F.aud;return this.logger.warn($),Promise.reject($)}if(!F.sub){const $="No sub claim in id_token";return this.logger.warn($),Promise.reject($)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==F.sub){const $=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${F.sub}`;return this.logger.warn($),Promise.reject($)}if(!F.iat){const $="No iat claim in id_token";return this.logger.warn($),Promise.reject($)}if(!this.skipIssuerCheck&&F.iss!==this.issuer){const $="Wrong issuer: "+F.iss;return this.logger.warn($),Promise.reject($)}if(!s&&F.nonce!==H){const $="Wrong nonce: "+F.nonce;return this.logger.warn($),Promise.reject($)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!F.at_hash){const $="An at_hash is needed!";return this.logger.warn($),Promise.reject($)}const k=this.dateTimeService.now(),Z=1e3*F.iat,ee=1e3*F.exp,j=this.getClockSkewInMsec();if(Z-j>=k||ee+j<=k){const $="Token has expired";return console.error($),console.error({now:k,issuedAtMSec:Z,expiresAtMSec:ee}),Promise.reject($)}const X={accessToken:g,idToken:f,jwks:this.jwks,idTokenClaims:F,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(X).then($=>({idToken:f,idTokenClaims:F,idTokenClaimsJson:G,idTokenHeader:P,idTokenHeaderJson:w,idTokenExpiresAt:ee})):this.checkAtHash(X).then($=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!$){const ve="Wrong at_hash";return this.logger.warn(ve),Promise.reject(ve)}return this.checkSignature(X).then(ve=>{const le={idToken:f,idTokenClaims:F,idTokenClaimsJson:G,idTokenHeader:P,idTokenHeaderJson:w,idTokenExpiresAt:ee};return this.disableAtHashCheck?le:this.checkAtHash(X).then(Ie=>{if(this.requestAccessToken&&!Ie){const Q="Wrong at_hash";return this.logger.warn(Q),Promise.reject(Q)}return le})})})}getIdentityClaims(){const f=this._storage.getItem("id_token_claims_obj");return f?JSON.parse(f):null}getGrantedScopes(){const f=this._storage.getItem("granted_scopes");return f?JSON.parse(f):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(f){for(;f.length%4!=0;)f+="=";return f}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const f=this._storage.getItem("expires_at"),g=this.dateTimeService.new();return!(f&&parseInt(f,10)=0&&null!==this._storage.getItem(f)?JSON.parse(this._storage.getItem(f)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(f={},g=""){let s=!1;"boolean"==typeof f&&(s=f,f={});const S=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(w=>this._storage.removeItem(w)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||s||!S&&!this.postLogoutRedirectUri)return;let T;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)T=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(S)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let w=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});S&&(w=w.set("id_token_hint",S));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(w=w.set("post_logout_redirect_uri",P),g&&(w=w.set("state",g)));for(let L in f)w=w.set(L,f[L]);T=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+w.toString()}this.config.openUri(T)}createAndSaveNonce(){const f=this;return this.createNonce().then(function(g){return f.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",g):f._storage.setItem("nonce",g),g})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const f=this.document.getElementById(this.silentRefreshIFrameName);f&&f.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const g=this.document.getElementById(this.sessionCheckIFrameName);g&&g.remove()}createNonce(){return new Promise(f=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let s=45,S="";const T=typeof self>"u"?null:self.crypto||self.msCrypto;if(T){let w=new Uint8Array(s);T.getRandomValues(w),w.map||(w.map=Array.prototype.map),w=w.map(P=>g.charCodeAt(P%g.length)),S=String.fromCharCode.apply(null,w)}else for(;0"discovery_document_loaded"===s.type)).subscribe(s=>this.initCodeFlowInternal(f,g))}initCodeFlowInternal(f="",g={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let s={},S=null;"string"==typeof g?S=g:"object"==typeof g&&(s=g),this.createLoginUrl(f,S,null,!1,s).then(this.config.openUri).catch(T=>{console.error("Error in initAuthorizationCodeFlow"),console.error(T)})}createChallangeVerifierPairForPKCE(){var f=this;return(0,_workspaces_openiddict_ui_samples_Client_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!f.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const g=yield f.createNonce();return[base64UrlEncode(yield f.crypto.calcHash(g,"sha-256")),g]})()}extractRecognizedCustomParameters(f){let g=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(s=>{f[s]&&g.set(s,JSON.stringify(f[s]))}),g}revokeTokenAndLogout(f={},g=!1){let s=this.revocationEndpoint,S=this.getAccessToken(),T=this.getRefreshToken();if(!S)return;let w=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+L)}if(this.useHttpBasicAuth||(w=w.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(w=w.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))w=w.set(L,this.customQueryParams[L]);return new Promise((L,G)=>{let F,H;if(S){let k=w.set("token",S).set("token_type_hint","access_token");F=this.http.post(s,k,{headers:P})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(T){let k=w.set("token",T).set("token_type_hint","refresh_token");H=this.http.post(s,k,{headers:P})}else H=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);g&&(F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(k=>0===k.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(k))),H=H.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(k=>0===k.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(k)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([F,H]).subscribe(k=>{this.logOut(f),L(k),this.logger.info("Token successfully revoked")},k=>{this.logger.error("Error revoking token",k),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",k)),G(k)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return O.\u0275fac=function(f){return new(f||O)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},O.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:O,factory:O.\u0275fac}),O})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(x){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(x)}}let DefaultOAuthInterceptor=(()=>{class O{constructor(f,g,s){this.oAuthService=f,this.errorHandler=g,this.moduleConfig=s}checkUrl(f){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(f):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(g=>f.toLowerCase().startsWith(g.toLowerCase()))}intercept(f,g){const s=f.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(s)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>!!T)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(T=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(T=>{if(T){const P=f.headers.set("Authorization","Bearer "+T);f=f.clone({headers:P})}return g.handle(f).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w)))})):g.handle(f).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>this.errorHandler.handleError(T))):g.handle(f)}}return O.\u0275fac=function(f){return new(f||O)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},O.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:O,factory:O.\u0275fac}),O})();class NullValidationHandler{validateSignature(x){return Promise.resolve(null)}validateAtHash(x){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class O{static forRoot(f=null,g=NullValidationHandler){return{ngModule:O,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:g},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:f},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return O.\u0275fac=function(f){return new(f||O)},O.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:O}),O.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),O})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(O,x,f)=>{"use strict";function g(S,T,w,P,L,G,F){try{var H=S[G](F),k=H.value}catch(Z){return void w(Z)}H.done?T(k):Promise.resolve(k).then(P,L)}function s(S){return function(){var T=this,w=arguments;return new Promise(function(P,L){var G=S.apply(T,w);function F(k){g(G,P,L,F,H,"next",k)}function H(k){g(G,P,L,F,H,"throw",k)}F(void 0)})}}f.d(x,{Z:()=>s})}},O=>{O(O.s=7176)}]); \ No newline at end of file diff --git a/samples/Server/wwwroot/main.ccf6086a2a38ccb4.js b/samples/Server/wwwroot/main.ccf6086a2a38ccb4.js deleted file mode 100644 index aeca6d0..0000000 --- a/samples/Server/wwwroot/main.ccf6086a2a38ccb4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkclientapp=self.webpackChunkclientapp||[]).push([[179],{9971:(P,k,_)=>{"use strict";var g=_(9808),o=_(6435);class T extends g.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends T{static makeCurrent(){(0,g.HT)(new x)}onAndCancel(r,n,l){return r.addEventListener(n,l,!1),()=>{r.removeEventListener(n,l,!1)}}dispatchEvent(r,n){r.dispatchEvent(n)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,n){return(n=n||this.getDefaultDocument()).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,n){return"window"===n?window:"document"===n?r:"body"===n?r.body:null}getBaseHref(r){const n=function O(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==n?null:function N(s){H=H||document.createElement("a"),H.setAttribute("href",s);const r=H.pathname;return"/"===r.charAt(0)?r:`/${r}`}(n)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,g.Mx)(document.cookie,r)}}let H,S=null;const R=new o.OlP("TRANSITION_ID"),M=[{provide:o.ip1,useFactory:function F(s,r,n){return()=>{n.get(o.CZH).donePromise.then(()=>{const l=(0,g.q)(),d=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let p=0;p{const p=r.findTestabilityInTree(l,d);if(null==p)throw new Error("Could not find testability for element.");return p},o.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(l=>{const d=o.dqk.getAllAngularTestabilities();let p=d.length,E=!1;const A=function(j){E=E||j,p--,0==p&&l(E)};d.forEach(function(j){j.whenStable(A)})})}findTestabilityInTree(r,n,l){if(null==n)return null;const d=r.getTestability(n);return null!=d?d:l?(0,g.q)().isShadowRoot(n)?this.findTestabilityInTree(r,n.host,!0):this.findTestabilityInTree(r,n.parentElement,!0):null}}let B=(()=>{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const V=new o.OlP("EventManagerPlugins");let Y=(()=>{class s{constructor(n,l){this._zone=l,this._eventNameToPlugin=new Map,n.forEach(d=>d.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,l,d){return this._findPluginFor(l).addEventListener(n,l,d)}addGlobalEventListener(n,l,d){return this._findPluginFor(l).addGlobalEventListener(n,l,d)}getZone(){return this._zone}_findPluginFor(n){const l=this._eventNameToPlugin.get(n);if(l)return l;const d=this._plugins;for(let p=0;p{class s{constructor(){this._stylesSet=new Set}addStyles(n){const l=new Set;n.forEach(d=>{this._stylesSet.has(d)||(this._stylesSet.add(d),l.add(d))}),this.onStylesAdded(l)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),De=(()=>{class s extends te{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,l,d){n.forEach(p=>{const E=this._doc.createElement("style");E.textContent=p,d.push(l.appendChild(E))})}addHost(n){const l=[];this._addStylesToHost(this._stylesSet,n,l),this._hostNodes.set(n,l)}removeHost(n){const l=this._hostNodes.get(n);l&&l.forEach(ge),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((l,d)=>{this._addStylesToHost(n,d,l)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(ge))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(g.K0))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();function ge(s){(0,g.q)().remove(s)}const fe={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/"},Ue=/%COMP%/g;function ee(s,r,n){for(let l=0;l{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let de=(()=>{class s{constructor(n,l,d){this.eventManager=n,this.sharedStylesHost=l,this.appId=d,this.rendererByCompId=new Map,this.defaultRenderer=new Q(n)}createRenderer(n,l){if(!n||!l)return this.defaultRenderer;switch(l.encapsulation){case o.ifc.Emulated:{let d=this.rendererByCompId.get(l.id);return d||(d=new fn(this.eventManager,this.sharedStylesHost,l,this.appId),this.rendererByCompId.set(l.id,d)),d.applyToHost(n),d}case 1:case o.ifc.ShadowDom:return new Be(this.eventManager,this.sharedStylesHost,n,l);default:if(!this.rendererByCompId.has(l.id)){const d=ee(l.id,l.styles,[]);this.sharedStylesHost.addStyles(d),this.rendererByCompId.set(l.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Y),o.LFG(De),o.LFG(o.AFp))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();class Q{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,n){return n?document.createElementNS(fe[n]||n,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,n){r.appendChild(n)}insertBefore(r,n,l){r&&r.insertBefore(n,l)}removeChild(r,n){r&&r.removeChild(n)}selectRootElement(r,n){let l="string"==typeof r?document.querySelector(r):r;if(!l)throw new Error(`The selector "${r}" did not match any elements`);return n||(l.textContent=""),l}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,n,l,d){if(d){n=d+":"+n;const p=fe[d];p?r.setAttributeNS(p,n,l):r.setAttribute(n,l)}else r.setAttribute(n,l)}removeAttribute(r,n,l){if(l){const d=fe[l];d?r.removeAttributeNS(d,n):r.removeAttribute(`${l}:${n}`)}else r.removeAttribute(n)}addClass(r,n){r.classList.add(n)}removeClass(r,n){r.classList.remove(n)}setStyle(r,n,l,d){d&(o.JOm.DashCase|o.JOm.Important)?r.style.setProperty(n,l,d&o.JOm.Important?"important":""):r.style[n]=l}removeStyle(r,n,l){l&o.JOm.DashCase?r.style.removeProperty(n):r.style[n]=""}setProperty(r,n,l){r[n]=l}setValue(r,n){r.nodeValue=n}listen(r,n,l){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,n,ie(l)):this.eventManager.addEventListener(r,n,ie(l))}}class fn extends Q{constructor(r,n,l,d){super(r),this.component=l;const p=ee(d+"-"+l.id,l.styles,[]);n.addStyles(p),this.contentAttr=function Fe(s){return"_ngcontent-%COMP%".replace(Ue,s)}(d+"-"+l.id),this.hostAttr=function J(s){return"_nghost-%COMP%".replace(Ue,s)}(d+"-"+l.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,n){const l=super.createElement(r,n);return super.setAttribute(l,this.contentAttr,""),l}}class Be extends Q{constructor(r,n,l,d){super(r),this.sharedStylesHost=n,this.hostEl=l,this.shadowRoot=l.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const p=ee(d.id,d.styles,[]);for(let E=0;E{class s extends z{constructor(n){super(n)}supports(n){return!0}addEventListener(n,l,d){return n.addEventListener(l,d,!1),()=>this.removeEventListener(n,l,d)}removeEventListener(n,l,d){return n.removeEventListener(l,d)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(g.K0))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const jn=["alt","control","meta","shift"],fr={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ht={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ke={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let li=(()=>{class s extends z{constructor(n){super(n)}supports(n){return null!=s.parseEventName(n)}addEventListener(n,l,d){const p=s.parseEventName(l),E=s.eventCallback(p.fullKey,d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.q)().onAndCancel(n,p.domEventName,E))}static parseEventName(n){const l=n.toLowerCase().split("."),d=l.shift();if(0===l.length||"keydown"!==d&&"keyup"!==d)return null;const p=s._normalizeKey(l.pop());let E="";if(jn.forEach(j=>{const X=l.indexOf(j);X>-1&&(l.splice(X,1),E+=j+".")}),E+=p,0!=l.length||0===p.length)return null;const A={};return A.domEventName=d,A.fullKey=E,A}static getEventFullKey(n){let l="",d=function nn(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&ht.hasOwnProperty(r)&&(r=ht[r]))}return fr[r]||r}(n);return d=d.toLowerCase()," "===d?d="space":"."===d&&(d="dot"),jn.forEach(p=>{p!=d&&Ke[p](n)&&(l+=p+".")}),l+=d,l}static eventCallback(n,l,d){return p=>{s.getEventFullKey(p)===n&&d.runGuarded(()=>l(p))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(g.K0))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const ui=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:g.bD},{provide:o.g9A,useValue:function ci(){x.makeCurrent(),$.init()},multi:!0},{provide:g.K0,useFactory:function Zs(){return(0,o.RDi)(document),document},deps:[]}]),Nr=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function Tt(){return new o.qLn},deps:[]},{provide:V,useClass:kt,multi:!0,deps:[g.K0,o.R0b,o.Lbi]},{provide:V,useClass:li,multi:!0,deps:[g.K0]},{provide:de,useClass:de,deps:[Y,De,o.AFp]},{provide:o.FYo,useExisting:de},{provide:te,useExisting:De},{provide:De,useClass:De,deps:[g.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:Y,useClass:Y,deps:[V,o.R0b]},{provide:g.JF,useClass:B,deps:[]}];let Hi=(()=>{class s{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:s,providers:[{provide:o.AFp,useValue:n.appId},{provide:R,useExisting:o.AFp},M]}}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(s,12))},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:Nr,imports:[g.ez,o.hGG]}),s})();"undefined"!=typeof window&&window;var Gn=_(520),Bt=_(5254),Re=_(1086),Mt=_(5529),Ml=_(5279);class qt extends Mt.xQ{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const n=super._subscribe(r);return n&&!n.closed&&r.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ml.N;return this._value}next(r){super.next(this._value=r)}}var hi=_(6053),Ut=_(2916),Rt=_(4450),bn=_(9146);function Ht(...s){return function zn(){return(0,bn.J)(1)}()((0,Re.of)(...s))}var Pn=_(8896);function Vr(s){return new Ut.y(r=>{let n;try{n=s()}catch(d){return void r.error(d)}return(n?(0,Bt.D)(n):(0,Pn.c)()).subscribe(r)})}var fi=_(1762),Qe=_(4850),sn=_(7545),_t=_(2986),Ks=_(2866),ye=_(3489);function ke(s,r){let n=!1;return arguments.length>=2&&(n=!0),function(d){return d.lift(new st(s,r,n))}}class st{constructor(r,n,l=!1){this.accumulator=r,this.seed=n,this.hasSeed=l}call(r,n){return n.subscribe(new Kt(r,this.accumulator,this.seed,this.hasSeed))}}class Kt extends ye.L{constructor(r,n,l,d){super(r),this.accumulator=n,this._seed=l,this.hasSeed=d,this.index=0}get seed(){return this._seed}set seed(r){this.hasSeed=!0,this._seed=r}_next(r){if(this.hasSeed)return this._tryNext(r);this.seed=r,this.destination.next(r)}_tryNext(r){const n=this.index++;let l;try{l=this.accumulator(this.seed,r,n)}catch(d){this.destination.error(d)}this.seed=l,this.destination.next(l)}}var gn=_(2198),Ae=_(7221),Dn=_(1406),ft=_(4231);function Xn(s){return function(n){return 0===s?(0,Pn.c)():n.lift(new Br(s))}}class Br{constructor(r){if(this.total=r,this.total<0)throw new ft.W}call(r,n){return n.subscribe(new Pe(r,this.total))}}class Pe extends ye.L{constructor(r,n){super(r),this.total=n,this.ring=new Array,this.count=0}_next(r){const n=this.ring,l=this.total,d=this.count++;n.length0){const l=this.count>=this.total?this.total:this.count,d=this.ring;for(let p=0;ps.length||"full"===n.pathMatch&&(r.hasChildren()||l.lengthl[p]===d)}return s===r}function Ll(s){return Array.prototype.concat.apply([],s)}function gr(s){return s.length>0?s[s.length-1]:null}function vt(s,r){for(const n in s)s.hasOwnProperty(n)&&r(s[n],n)}function Tn(s){return(0,o.CqO)(s)?s:(0,o.QGY)(s)?(0,Bt.D)(Promise.resolve(s)):(0,Re.of)(s)}const Bl={exact:function to(s,r,n){if(!b(s.segments,r.segments)||!jr(s.segments,r.segments,n)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const l in r.children)if(!s.children[l]||!to(s.children[l],r.children[l],n))return!1;return!0},subset:on},eo={exact:function sd(s,r){return Sn(s,r)},subset:function od(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(n=>Xs(s[n],r[n]))},ignored:()=>!0};function sa(s,r,n){return Bl[n.paths](s.root,r.root,n.matrixParams)&&eo[n.queryParams](s.queryParams,r.queryParams)&&!("exact"===n.fragment&&s.fragment!==r.fragment)}function on(s,r,n){return no(s,r,r.segments,n)}function no(s,r,n,l){if(s.segments.length>n.length){const d=s.segments.slice(0,n.length);return!(!b(d,n)||r.hasChildren()||!jr(d,n,l))}if(s.segments.length===n.length){if(!b(s.segments,n)||!jr(s.segments,n,l))return!1;for(const d in r.children)if(!s.children[d]||!on(s.children[d],r.children[d],l))return!1;return!0}{const d=n.slice(0,s.segments.length),p=n.slice(s.segments.length);return!!(b(s.segments,d)&&jr(s.segments,d,l)&&s.children[He])&&no(s.children[He],r,p,l)}}function jr(s,r,n){return r.every((l,d)=>eo[n](s[d].parameters,l.parameters))}class Zn{constructor(r,n,l){this.root=r,this.queryParams=n,this.fragment=l}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_i(this.queryParams)),this._queryParamMap}toString(){return re.serialize(this)}}class ze{constructor(r,n){this.segments=r,this.children=n,this.parent=null,vt(n,(l,d)=>l.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ue(this)}}class _r{constructor(r,n){this.path=r,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=_i(this.parameters)),this._parameterMap}toString(){return It(this)}}function b(s,r){return s.length===r.length&&s.every((n,l)=>n.path===r[l].path)}class w{}class L{parse(r){const n=new ap(r);return new Zn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(r){const n=`/${be(r.root,!0)}`,l=function Jt(s){const r=Object.keys(s).map(n=>{const l=s[n];return Array.isArray(l)?l.map(d=>`${ot(n)}=${ot(d)}`).join("&"):`${ot(n)}=${ot(l)}`}).filter(n=>!!n);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${n}${l}${"string"==typeof r.fragment?`#${function at(s){return encodeURI(s)}(r.fragment)}`:""}`}}const re=new L;function ue(s){return s.segments.map(r=>It(r)).join("/")}function be(s,r){if(!s.hasChildren())return ue(s);if(r){const n=s.children[He]?be(s.children[He],!1):"",l=[];return vt(s.children,(d,p)=>{p!==He&&l.push(`${p}:${be(d,!1)}`)}),l.length>0?`${n}(${l.join("//")})`:n}{const n=function v(s,r){let n=[];return vt(s.children,(l,d)=>{d===He&&(n=n.concat(r(l,d)))}),vt(s.children,(l,d)=>{d!==He&&(n=n.concat(r(l,d)))}),n}(s,(l,d)=>d===He?[be(s.children[He],!1)]:[`${d}:${be(l,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[He]?`${ue(s)}/${n[0]}`:`${ue(s)}/(${n.join("//")})`}}function Ge(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(s){return Ge(s).replace(/%3B/gi,";")}function Ve(s){return Ge(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Je(s){return decodeURIComponent(s)}function ct(s){return Je(s.replace(/\+/g,"%20"))}function It(s){return`${Ve(s.path)}${function mi(s){return Object.keys(s).map(r=>`;${Ve(r)}=${Ve(s[r])}`).join("")}(s.parameters)}`}const yi=/^[^\/()?;=#]+/;function An(s){const r=s.match(yi);return r?r[0]:""}const xe=/^[^=?&#]+/,aa=/^[^&#]+/;class ap{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ze([],{}):new ze([],this.parseChildren())}parseQueryParams(){const 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("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(r.length>0||Object.keys(n).length>0)&&(l[He]=new ze(r,n)),l}parseSegment(){const r=An(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(r),new _r(Je(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const n=An(this.remaining);if(!n)return;this.capture(n);let l="";if(this.consumeOptional("=")){const d=An(this.remaining);d&&(l=d,this.capture(l))}r[Je(n)]=Je(l)}parseQueryParam(r){const n=function oa(s){const r=s.match(xe);return r?r[0]:""}(this.remaining);if(!n)return;this.capture(n);let l="";if(this.consumeOptional("=")){const E=function op(s){const r=s.match(aa);return r?r[0]:""}(this.remaining);E&&(l=E,this.capture(l))}const d=ct(n),p=ct(l);if(r.hasOwnProperty(d)){let E=r[d];Array.isArray(E)||(E=[E],r[d]=E),E.push(p)}else r[d]=p}parseParens(r){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const l=An(this.remaining),d=this.remaining[l.length];if("/"!==d&&")"!==d&&";"!==d)throw new Error(`Cannot parse url '${this.url}'`);let p;l.indexOf(":")>-1?(p=l.substr(0,l.indexOf(":")),this.capture(p),this.capture(":")):r&&(p=He);const E=this.parseChildren();n[p]=1===Object.keys(E).length?E[He]:new ze([],E),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new Error(`Expected "${r}".`)}}class Ul{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const n=this.pathFromRoot(r);return n.length>1?n[n.length-2]:null}children(r){const n=Hl(r,this._root);return n?n.children.map(l=>l.value):[]}firstChild(r){const n=Hl(r,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(r){const n=jl(r,this._root);return n.length<2?[]:n[n.length-2].children.map(d=>d.value).filter(d=>d!==r)}pathFromRoot(r){return jl(r,this._root).map(n=>n.value)}}function Hl(s,r){if(s===r.value)return r;for(const n of r.children){const l=Hl(s,n);if(l)return l}return null}function jl(s,r){if(s===r.value)return[r];for(const n of r.children){const l=jl(s,n);if(l.length)return l.unshift(r),l}return[]}class oe{constructor(r,n){this.value=r,this.children=n}toString(){return`TreeNode(${this.value})`}}function je(s){const r={};return s&&s.children.forEach(n=>r[n.value.outlet]=n),r}class $l extends Ul{constructor(r,n){super(r),this.snapshot=n,zl(this,r)}toString(){return this.snapshot.toString()}}function Ot(s,r){const n=function ad(s,r){const E=new zi([],{},{},"",{},He,r,null,s.root,-1,{});return new lp("",new oe(E,[]))}(s,r),l=new qt([new _r("",{})]),d=new qt({}),p=new qt({}),E=new qt({}),A=new qt(""),j=new an(l,d,E,A,p,He,r,n.root);return j.snapshot=n.root,new $l(new oe(j,[]),n)}class an{constructor(r,n,l,d,p,E,A,j){this.url=r,this.params=n,this.queryParams=l,this.fragment=d,this.data=p,this.outlet=E,this.component=A,this._futureSnapshot=j}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Qe.U)(r=>_i(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Qe.U)(r=>_i(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Wn(s,r="emptyOnly"){const n=s.pathFromRoot;let l=0;if("always"!==r)for(l=n.length-1;l>=1;){const d=n[l],p=n[l-1];if(d.routeConfig&&""===d.routeConfig.path)l--;else{if(p.component)break;l--}}return function Gl(s){return s.reduce((r,n)=>({params:Object.assign(Object.assign({},r.params),n.params),data:Object.assign(Object.assign({},r.data),n.data),resolve:Object.assign(Object.assign({},r.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(l))}class zi{constructor(r,n,l,d,p,E,A,j,X,_e,Ee){this.url=r,this.params=n,this.queryParams=l,this.fragment=d,this.data=p,this.outlet=E,this.component=A,this.routeConfig=j,this._urlSegment=X,this._lastPathIndex=_e,this._resolve=Ee}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_i(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_i(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(l=>l.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class lp extends Ul{constructor(r,n){super(n),this.url=r,zl(this,n)}toString(){return ro(this._root)}}function zl(s,r){r.value._routerState=s,r.children.forEach(n=>zl(s,n))}function ro(s){const r=s.children.length>0?` { ${s.children.map(ro).join(", ")} } `:"";return`${s.value}${r}`}function Zi(s){if(s.snapshot){const r=s.snapshot,n=s._futureSnapshot;s.snapshot=n,Sn(r.queryParams,n.queryParams)||s.queryParams.next(n.queryParams),r.fragment!==n.fragment&&s.fragment.next(n.fragment),Sn(r.params,n.params)||s.params.next(n.params),function Qs(s,r){if(s.length!==r.length)return!1;for(let n=0;nSn(n.parameters,r[l].parameters))}(s.url,r.url);return n&&!(!s.parent!=!r.parent)&&(!s.parent||$t(s.parent,r.parent))}function Wi(s,r,n){if(n&&s.shouldReuseRoute(r.value,n.value.snapshot)){const l=n.value;l._futureSnapshot=r.value;const d=function Yi(s,r,n){return r.children.map(l=>{for(const d of n.children)if(s.shouldReuseRoute(l.value,d.value.snapshot))return Wi(s,l,d);return Wi(s,l)})}(s,r,n);return new oe(l,d)}{if(s.shouldAttach(r.value)){const p=s.retrieve(r.value);if(null!==p){const E=p.route;return E.value._futureSnapshot=r.value,E.children=r.children.map(A=>Wi(s,A)),E}}const l=function yr(s){return new an(new qt(s.url),new qt(s.params),new qt(s.queryParams),new qt(s.fragment),new qt(s.data),s.outlet,s.component,s)}(r.value),d=r.children.map(p=>Wi(s,p));return new oe(l,d)}}function io(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function so(s){return"object"==typeof s&&null!=s&&s.outlets}function Zl(s,r,n,l,d){let p={};return l&&vt(l,(E,A)=>{p[A]=Array.isArray(E)?E.map(j=>`${j}`):`${E}`}),new Zn(n.root===s?r:la(n.root,s,r),p,d)}function la(s,r,n){const l={};return vt(s.children,(d,p)=>{l[p]=d===r?n:la(d,r,n)}),new ze(s.segments,l)}class ca{constructor(r,n,l){if(this.isAbsolute=r,this.numberOfDoubleDots=n,this.commands=l,r&&l.length>0&&io(l[0]))throw new Error("Root segment cannot have matrix parameters");const d=l.find(so);if(d&&d!==gr(l))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oo{constructor(r,n,l){this.segmentGroup=r,this.processChildren=n,this.index=l}}function Wl(s,r,n){if(s||(s=new ze([],{})),0===s.segments.length&&s.hasChildren())return ao(s,r,n);const l=function ud(s,r,n){let l=0,d=r;const p={match:!1,pathIndex:0,commandIndex:0};for(;d=n.length)return p;const E=s.segments[d],A=n[l];if(so(A))break;const j=`${A}`,X=l0&&void 0===j)break;if(j&&X&&"object"==typeof X&&void 0===X.outlets){if(!hd(j,X,E))return p;l+=2}else{if(!hd(j,{},E))return p;l++}d++}return{match:!0,pathIndex:d,commandIndex:l}}(s,r,n),d=n.slice(l.commandIndex);if(l.match&&l.pathIndex{"string"==typeof p&&(p=[p]),null!==p&&(d[E]=Wl(s.children[E],r,p))}),vt(s.children,(p,E)=>{void 0===l[E]&&(d[E]=p)}),new ze(s.segments,d)}}function da(s,r,n){const l=s.segments.slice(0,r);let d=0;for(;d{"string"==typeof n&&(n=[n]),null!==n&&(r[l]=da(new ze([],{}),0,n))}),r}function dd(s){const r={};return vt(s,(n,l)=>r[l]=`${n}`),r}function hd(s,r,n){return s==n.path&&Sn(r,n.parameters)}class $r{constructor(r,n,l,d){this.routeReuseStrategy=r,this.futureState=n,this.currState=l,this.forwardEvent=d}activate(r){const n=this.futureState._root,l=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,l,r),Zi(this.futureState.root),this.activateChildRoutes(n,l,r)}deactivateChildRoutes(r,n,l){const d=je(n);r.children.forEach(p=>{const E=p.value.outlet;this.deactivateRoutes(p,d[E],l),delete d[E]}),vt(d,(p,E)=>{this.deactivateRouteAndItsChildren(p,l)})}deactivateRoutes(r,n,l){const d=r.value,p=n?n.value:null;if(d===p)if(d.component){const E=l.getContext(d.outlet);E&&this.deactivateChildRoutes(r,n,E.children)}else this.deactivateChildRoutes(r,n,l);else p&&this.deactivateRouteAndItsChildren(n,l)}deactivateRouteAndItsChildren(r,n){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,n):this.deactivateRouteAndOutlet(r,n)}detachAndStoreRouteSubtree(r,n){const l=n.getContext(r.value.outlet),d=l&&r.value.component?l.children:n,p=je(r);for(const E of Object.keys(p))this.deactivateRouteAndItsChildren(p[E],d);if(l&&l.outlet){const E=l.outlet.detach(),A=l.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:E,route:r,contexts:A})}}deactivateRouteAndOutlet(r,n){const l=n.getContext(r.value.outlet),d=l&&r.value.component?l.children:n,p=je(r);for(const E of Object.keys(p))this.deactivateRouteAndItsChildren(p[E],d);l&&l.outlet&&(l.outlet.deactivate(),l.children.onOutletDeactivated(),l.attachRef=null,l.resolver=null,l.route=null)}activateChildRoutes(r,n,l){const d=je(n);r.children.forEach(p=>{this.activateRoutes(p,d[p.value.outlet],l),this.forwardEvent(new nd(p.value.snapshot))}),r.children.length&&this.forwardEvent(new ed(r.value.snapshot))}activateRoutes(r,n,l){const d=r.value,p=n?n.value:null;if(Zi(d),d===p)if(d.component){const E=l.getOrCreateContext(d.outlet);this.activateChildRoutes(r,n,E.children)}else this.activateChildRoutes(r,n,l);else if(d.component){const E=l.getOrCreateContext(d.outlet);if(this.routeReuseStrategy.shouldAttach(d.snapshot)){const A=this.routeReuseStrategy.retrieve(d.snapshot);this.routeReuseStrategy.store(d.snapshot,null),E.children.onOutletReAttached(A.contexts),E.attachRef=A.componentRef,E.route=A.route.value,E.outlet&&E.outlet.attach(A.componentRef,A.route.value),Zi(A.route.value),this.activateChildRoutes(r,null,E.children)}else{const A=function Ct(s){for(let r=s.parent;r;r=r.parent){const n=r.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(d.snapshot),j=A?A.module.componentFactoryResolver:null;E.attachRef=null,E.route=d,E.resolver=j,E.outlet&&E.outlet.activateWith(d,j),this.activateChildRoutes(r,null,E.children)}}else this.activateChildRoutes(r,null,l)}}class Yl{constructor(r,n){this.routes=r,this.module=n}}function Gr(s){return"function"==typeof s}function vi(s){return s instanceof Zn}const zr=Symbol("INITIAL_VALUE");function Ci(){return(0,sn.w)(s=>(0,hi.aj)(s.map(r=>r.pipe((0,_t.q)(1),function pn(...s){const r=s[s.length-1];return(0,Ks.K)(r)?(s.pop(),n=>Ht(s,n,r)):n=>Ht(s,n)}(zr)))).pipe(ke((r,n)=>{let l=!1;return n.reduce((d,p,E)=>d!==zr?d:(p===zr&&(l=!0),l||!1!==p&&E!==n.length-1&&!vi(p)?d:p),r)},zr),(0,gn.h)(r=>r!==zr),(0,Qe.U)(r=>vi(r)?r:!0===r),(0,_t.q)(1)))}class fd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new lo,this.attachRef=null}}class lo{constructor(){this.contexts=new Map}onChildOutletCreated(r,n){const l=this.getOrCreateContext(r);l.outlet=n,this.contexts.set(r,l)}onChildOutletDestroyed(r){const n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new fd,this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}}let cn=(()=>{class s{constructor(n,l,d,p,E){this.parentContexts=n,this.location=l,this.resolver=d,this.changeDetector=E,this.activated=null,this._activatedRoute=null,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.attachEvents=new o.vpe,this.detachEvents=new o.vpe,this.name=p||He,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,l){this.activated=n,this._activatedRoute=l,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,l){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const E=(l=l||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),A=this.parentContexts.getOrCreateContext(this.name).children,j=new co(n,A,this.location.injector);this.activated=this.location.createComponent(E,this.location.length,j),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(lo),o.Y36(o.s_b),o.Y36(o._Vd),o.$8M("name"),o.Y36(o.sBO))},s.\u0275dir=o.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class co{constructor(r,n,l){this.route=r,this.childContexts=n,this.parent=l}get(r,n){return r===an?this.route:r===lo?this.childContexts:this.parent.get(r,n)}}let pd=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,l){1&n&&o._UZ(0,"router-outlet")},directives:[cn],encapsulation:2}),s})();function gd(s,r=""){for(let n=0;nkn(l)===r);return n.push(...s.filter(l=>kn(l)!==r)),n}const gp={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ei(s,r,n){var l;if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||n.length>0)?Object.assign({},gp):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const p=(r.matcher||ia)(n,s,r);if(!p)return Object.assign({},gp);const E={};vt(p.posParams,(j,X)=>{E[X]=j.path});const A=p.consumed.length>0?Object.assign(Object.assign({},E),p.consumed[p.consumed.length-1].parameters):E;return{matched:!0,consumedSegments:p.consumed,lastChild:p.consumed.length,parameters:A,positionalParamSegments:null!==(l=p.posParams)&&void 0!==l?l:{}}}function ho(s,r,n,l,d="corrected"){if(n.length>0&&function _d(s,r,n){return n.some(l=>vr(s,r,l)&&kn(l)!==He)}(s,n,l)){const E=new ze(r,function ga(s,r,n,l){const d={};d[He]=l,l._sourceSegment=s,l._segmentIndexShift=r.length;for(const p of n)if(""===p.path&&kn(p)!==He){const E=new ze([],{});E._sourceSegment=s,E._segmentIndexShift=r.length,d[kn(p)]=E}return d}(s,r,l,new ze(n,s.children)));return E._sourceSegment=s,E._segmentIndexShift=r.length,{segmentGroup:E,slicedSegments:[]}}if(0===n.length&&function md(s,r,n){return n.some(l=>vr(s,r,l))}(s,n,l)){const E=new ze(s.segments,function Jl(s,r,n,l,d,p){const E={};for(const A of l)if(vr(s,n,A)&&!d[kn(A)]){const j=new ze([],{});j._sourceSegment=s,j._segmentIndexShift="legacy"===p?s.segments.length:r.length,E[kn(A)]=j}return Object.assign(Object.assign({},d),E)}(s,r,n,l,s.children,d));return E._sourceSegment=s,E._segmentIndexShift=r.length,{segmentGroup:E,slicedSegments:n}}const p=new ze(s.segments,s.children);return p._sourceSegment=s,p._segmentIndexShift=r.length,{segmentGroup:p,slicedSegments:n}}function vr(s,r,n){return(!(s.hasChildren()||r.length>0)||"full"!==n.pathMatch)&&""===n.path}function yd(s,r,n,l){return!!(kn(s)===l||l!==He&&vr(r,n,s))&&("**"===s.path||Ei(r,s,n).matched)}function bi(s,r,n){return 0===r.length&&!s.children[n]}class Di{constructor(r){this.segmentGroup=r||null}}class fo{constructor(r){this.urlTree=r}}function Ql(s){return new Ut.y(r=>r.error(new Di(s)))}function Xl(s){return new Ut.y(r=>r.error(new fo(s)))}function vd(s){return new Ut.y(r=>r.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${s}'`)))}class po{constructor(r,n,l,d,p){this.configLoader=n,this.urlSerializer=l,this.urlTree=d,this.config=p,this.allowRedirects=!0,this.ngModule=r.get(o.h0i)}apply(){const r=ho(this.urlTree.root,[],[],this.config).segmentGroup,n=new ze(r.segments,r.children);return this.expandSegmentGroup(this.ngModule,this.config,n,He).pipe((0,Qe.U)(p=>this.createUrlTree(go(p),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ae.K)(p=>{if(p instanceof fo)return this.allowRedirects=!1,this.match(p.urlTree);throw p instanceof Di?this.noMatchError(p):p}))}match(r){return this.expandSegmentGroup(this.ngModule,this.config,r.root,He).pipe((0,Qe.U)(d=>this.createUrlTree(go(d),r.queryParams,r.fragment))).pipe((0,Ae.K)(d=>{throw d instanceof Di?this.noMatchError(d):d}))}noMatchError(r){return new Error(`Cannot match any routes. URL Segment: '${r.segmentGroup}'`)}createUrlTree(r,n,l){const d=r.segments.length>0?new ze([],{[He]:r}):r;return new Zn(d,n,l)}expandSegmentGroup(r,n,l,d){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(r,n,l).pipe((0,Qe.U)(p=>new ze([],p))):this.expandSegment(r,l,n,l.segments,d,!0)}expandChildren(r,n,l){const d=[];for(const p of Object.keys(l.children))"primary"===p?d.unshift(p):d.push(p);return(0,Bt.D)(d).pipe((0,Dn.b)(p=>{const E=l.children[p],A=pp(n,p);return this.expandSegmentGroup(r,A,E,p).pipe((0,Qe.U)(j=>({segment:j,outlet:p})))}),ke((p,E)=>(p[E.outlet]=E.segment,p),{}),function Ur(s,r){const n=arguments.length>=2;return l=>l.pipe(s?(0,gn.h)((d,p)=>s(d,p,l)):Gi.y,Xn(1),n?(0,gi.d)(r):(0,pi.T)(()=>new Rt.K))}())}expandSegment(r,n,l,d,p,E){return(0,Bt.D)(l).pipe((0,Dn.b)(A=>this.expandSegmentAgainstRoute(r,n,l,A,d,p,E).pipe((0,Ae.K)(X=>{if(X instanceof Di)return(0,Re.of)(null);throw X}))),(0,mt.P)(A=>!!A),(0,Ae.K)((A,j)=>{if(A instanceof Rt.K||"EmptyError"===A.name){if(bi(n,d,p))return(0,Re.of)(new ze([],{}));throw new Di(n)}throw A}))}expandSegmentAgainstRoute(r,n,l,d,p,E,A){return yd(d,n,p,E)?void 0===d.redirectTo?this.matchSegmentAgainstRoute(r,n,d,p,E):A&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,n,l,d,p,E):Ql(n):Ql(n)}expandSegmentAgainstRouteUsingRedirect(r,n,l,d,p,E){return"**"===d.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,l,d,E):this.expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,d,p,E)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,n,l,d){const p=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?Xl(p):this.lineralizeSegments(l,p).pipe((0,yt.zg)(E=>{const A=new ze(E,{});return this.expandSegment(r,A,n,E,d,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,d,p,E){const{matched:A,consumedSegments:j,lastChild:X,positionalParamSegments:_e}=Ei(n,d,p);if(!A)return Ql(n);const Ee=this.applyRedirectCommands(j,d.redirectTo,_e);return d.redirectTo.startsWith("/")?Xl(Ee):this.lineralizeSegments(d,Ee).pipe((0,yt.zg)($e=>this.expandSegment(r,n,l,$e.concat(p.slice(X)),E,!1)))}matchSegmentAgainstRoute(r,n,l,d,p){if("**"===l.path)return l.loadChildren?(l._loadedConfig?(0,Re.of)(l._loadedConfig):this.configLoader.load(r.injector,l)).pipe((0,Qe.U)($e=>(l._loadedConfig=$e,new ze(d,{})))):(0,Re.of)(new ze(d,{}));const{matched:E,consumedSegments:A,lastChild:j}=Ei(n,l,d);if(!E)return Ql(n);const X=d.slice(j);return this.getChildConfig(r,l,d).pipe((0,yt.zg)(Ee=>{const $e=Ee.module,Ze=Ee.routes,{segmentGroup:hn,slicedSegments:On}=ho(n,A,X,Ze),xn=new ze(hn.segments,hn.children);if(0===On.length&&xn.hasChildren())return this.expandChildren($e,Ze,xn).pipe((0,Qe.U)(zs=>new ze(A,zs)));if(0===Ze.length&&0===On.length)return(0,Re.of)(new ze(A,{}));const Rr=kn(l)===p;return this.expandSegment($e,xn,Ze,On,Rr?He:p,!0).pipe((0,Qe.U)(Pr=>new ze(A.concat(Pr.segments),Pr.children)))}))}getChildConfig(r,n,l){return n.children?(0,Re.of)(new Yl(n.children,r)):n.loadChildren?void 0!==n._loadedConfig?(0,Re.of)(n._loadedConfig):this.runCanLoadGuards(r.injector,n,l).pipe((0,yt.zg)(d=>d?this.configLoader.load(r.injector,n).pipe((0,Qe.U)(p=>(n._loadedConfig=p,p))):function _p(s){return new Ut.y(r=>r.error(Js(`Cannot load children because the guard of the route "path: '${s.path}'" returned false`)))}(n))):(0,Re.of)(new Yl([],r))}runCanLoadGuards(r,n,l){const d=n.canLoad;if(!d||0===d.length)return(0,Re.of)(!0);const p=d.map(E=>{const A=r.get(E);let j;if(function hp(s){return s&&Gr(s.canLoad)}(A))j=A.canLoad(n,l);else{if(!Gr(A))throw new Error("Invalid CanLoad guard");j=A(n,l)}return Tn(j)});return(0,Re.of)(p).pipe(Ci(),(0,pt.b)(E=>{if(!vi(E))return;const A=Js(`Redirecting to "${this.urlSerializer.serialize(E)}"`);throw A.url=E,A}),(0,Qe.U)(E=>!0===E))}lineralizeSegments(r,n){let l=[],d=n.root;for(;;){if(l=l.concat(d.segments),0===d.numberOfChildren)return(0,Re.of)(l);if(d.numberOfChildren>1||!d.children[He])return vd(r.redirectTo);d=d.children[He]}}applyRedirectCommands(r,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),r,l)}applyRedirectCreatreUrlTree(r,n,l,d){const p=this.createSegmentGroup(r,n.root,l,d);return new Zn(p,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(r,n){const l={};return vt(r,(d,p)=>{if("string"==typeof d&&d.startsWith(":")){const A=d.substring(1);l[p]=n[A]}else l[p]=d}),l}createSegmentGroup(r,n,l,d){const p=this.createSegments(r,n.segments,l,d);let E={};return vt(n.children,(A,j)=>{E[j]=this.createSegmentGroup(r,A,l,d)}),new ze(p,E)}createSegments(r,n,l,d){return n.map(p=>p.path.startsWith(":")?this.findPosParam(r,p,d):this.findOrReturn(p,l))}findPosParam(r,n,l){const d=l[n.path.substring(1)];if(!d)throw new Error(`Cannot redirect to '${r}'. Cannot find '${n.path}'.`);return d}findOrReturn(r,n){let l=0;for(const d of n){if(d.path===r.path)return n.splice(l),d;l++}return r}}function go(s){const r={};for(const l of Object.keys(s.children)){const p=go(s.children[l]);(p.segments.length>0||p.hasChildren())&&(r[l]=p)}return function ec(s){if(1===s.numberOfChildren&&s.children[He]){const r=s.children[He];return new ze(s.segments.concat(r.segments),r.children)}return s}(new ze(s.segments,r))}class _o{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class ma{constructor(r,n){this.component=r,this.route=n}}function Cd(s,r,n){const l=s._root;return yo(l,r?r._root:null,n,[l.value])}function mo(s,r,n){const l=function bd(s){if(!s)return null;for(let r=s.parent;r;r=r.parent){const n=r.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(r);return(l?l.module.injector:n).get(s)}function yo(s,r,n,l,d={canDeactivateChecks:[],canActivateChecks:[]}){const p=je(r);return s.children.forEach(E=>{(function yp(s,r,n,l,d={canDeactivateChecks:[],canActivateChecks:[]}){const p=s.value,E=r?r.value:null,A=n?n.getContext(s.value.outlet):null;if(E&&p.routeConfig===E.routeConfig){const j=function ya(s,r,n){if("function"==typeof n)return n(s,r);switch(n){case"pathParamsChange":return!b(s.url,r.url);case"pathParamsOrQueryParamsChange":return!b(s.url,r.url)||!Sn(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$t(s,r)||!Sn(s.queryParams,r.queryParams);default:return!$t(s,r)}}(E,p,p.routeConfig.runGuardsAndResolvers);j?d.canActivateChecks.push(new _o(l)):(p.data=E.data,p._resolvedData=E._resolvedData),yo(s,r,p.component?A?A.children:null:n,l,d),j&&A&&A.outlet&&A.outlet.isActivated&&d.canDeactivateChecks.push(new ma(A.outlet.component,E))}else E&&Cr(r,A,d),d.canActivateChecks.push(new _o(l)),yo(s,null,p.component?A?A.children:null:n,l,d)})(E,p[E.value.outlet],n,l.concat([E.value]),d),delete p[E.value.outlet]}),vt(p,(E,A)=>Cr(E,n.getContext(A),d)),d}function Cr(s,r,n){const l=je(s),d=s.value;vt(l,(p,E)=>{Cr(p,d.component?r?r.children.getContext(E):null:r,n)}),n.canDeactivateChecks.push(new ma(d.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,d))}class Ji{}function wi(s){return new Ut.y(r=>r.error(s))}class rc{constructor(r,n,l,d,p,E){this.rootComponentType=r,this.config=n,this.urlTree=l,this.url=d,this.paramsInheritanceStrategy=p,this.relativeLinkResolution=E}recognize(){const r=ho(this.urlTree.root,[],[],this.config.filter(E=>void 0===E.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,r,He);if(null===n)return null;const l=new zi([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},He,this.rootComponentType,null,this.urlTree.root,-1,{}),d=new oe(l,n),p=new lp(this.url,d);return this.inheritParamsAndData(p._root),p}inheritParamsAndData(r){const n=r.value,l=Wn(n,this.paramsInheritanceStrategy);n.params=Object.freeze(l.params),n.data=Object.freeze(l.data),r.children.forEach(d=>this.inheritParamsAndData(d))}processSegmentGroup(r,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(r,n):this.processSegment(r,n,n.segments,l)}processChildren(r,n){const l=[];for(const p of Object.keys(n.children)){const E=n.children[p],A=pp(r,p),j=this.processSegmentGroup(A,E,p);if(null===j)return null;l.push(...j)}const d=gt(l);return function Qi(s){s.sort((r,n)=>r.value.outlet===He?-1:n.value.outlet===He?1:r.value.outlet.localeCompare(n.value.outlet))}(d),d}processSegment(r,n,l,d){for(const p of r){const E=this.processSegmentAgainstRoute(p,n,l,d);if(null!==E)return E}return bi(n,l,d)?[]:null}processSegmentAgainstRoute(r,n,l,d){if(r.redirectTo||!yd(r,n,l,d))return null;let p,E=[],A=[];if("**"===r.path){const Ze=l.length>0?gr(l).parameters:{};p=new zi(l,Ze,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Dp(r),kn(r),r.component,r,Ep(n),bp(n)+l.length,wp(r))}else{const Ze=Ei(n,r,l);if(!Ze.matched)return null;E=Ze.consumedSegments,A=l.slice(Ze.lastChild),p=new zi(E,Ze.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Dp(r),kn(r),r.component,r,Ep(n),bp(n)+E.length,wp(r))}const j=function Lm(s){return s.children?s.children:s.loadChildren?s._loadedConfig.routes:[]}(r),{segmentGroup:X,slicedSegments:_e}=ho(n,E,A,j.filter(Ze=>void 0===Ze.redirectTo),this.relativeLinkResolution);if(0===_e.length&&X.hasChildren()){const Ze=this.processChildren(j,X);return null===Ze?null:[new oe(p,Ze)]}if(0===j.length&&0===_e.length)return[new oe(p,[])];const Ee=kn(r)===d,$e=this.processSegment(j,X,_e,Ee?He:d);return null===$e?null:[new oe(p,$e)]}}function Cp(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function gt(s){const r=[],n=new Set;for(const l of s){if(!Cp(l)){r.push(l);continue}const d=r.find(p=>l.value.routeConfig===p.value.routeConfig);void 0!==d?(d.children.push(...l.children),n.add(d)):r.push(l)}for(const l of n){const d=gt(l.children);r.push(new oe(l.value,d))}return r.filter(l=>!n.has(l))}function Ep(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function bp(s){let r=s,n=r._segmentIndexShift?r._segmentIndexShift:0;for(;r._sourceSegment;)r=r._sourceSegment,n+=r._segmentIndexShift?r._segmentIndexShift:0;return n-1}function Dp(s){return s.data||{}}function wp(s){return s.resolve||{}}function Co(s){return(0,sn.w)(r=>{const n=s(r);return n?(0,Bt.D)(n).pipe((0,Qe.U)(()=>r)):(0,Re.of)(r)})}class Sp extends class jm{shouldDetach(r){return!1}store(r,n){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,n){return r.routeConfig===n.routeConfig}}{}const mn=new o.OlP("ROUTES");class Yn{constructor(r,n,l,d){this.injector=r,this.compiler=n,this.onLoadStartListener=l,this.onLoadEndListener=d}load(r,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const d=this.loadModuleFactory(n.loadChildren).pipe((0,Qe.U)(p=>{this.onLoadEndListener&&this.onLoadEndListener(n);const E=p.create(r);return new Yl(Ll(E.injector.get(mn,void 0,o.XFs.Self|o.XFs.Optional)).map(Kl),E)}),(0,Ae.K)(p=>{throw n._loader$=void 0,p}));return n._loader$=new fi.c(d,()=>new Mt.xQ).pipe((0,_n.x)()),n._loader$}loadModuleFactory(r){return Tn(r()).pipe((0,yt.zg)(n=>n instanceof o.YKP?(0,Re.of)(n):(0,Bt.D)(this.compiler.compileModuleAsync(n))))}}class va{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}}function bo(s){throw s}function Md(s,r,n){return r.parse("/")}function Id(s,r){return(0,Re.of)(null)}const Tp={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$m={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Et=(()=>{class s{constructor(n,l,d,p,E,A,j){this.rootComponentType=n,this.urlSerializer=l,this.rootContexts=d,this.location=p,this.config=j,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Mt.xQ,this.errorHandler=bo,this.malformedUriErrorHandler=Md,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Id,afterPreactivation:Id},this.urlHandlingStrategy=new va,this.routeReuseStrategy=new Sp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=E.get(o.h0i),this.console=E.get(o.c2e);const Ee=E.get(o.R0b);this.isNgZoneEnabled=Ee instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(j),this.currentUrlTree=function Vl(){return new Zn(new ze([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Yn(E,A,$e=>this.triggerEvent(new Rl($e)),$e=>this.triggerEvent(new Pl($e))),this.routerState=Ot(this.currentUrlTree,this.rootComponentType),this.transitions=new qt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const l=this.events;return n.pipe((0,gn.h)(d=>0!==d.id),(0,Qe.U)(d=>Object.assign(Object.assign({},d),{extractedUrl:this.urlHandlingStrategy.extract(d.rawUrl)})),(0,sn.w)(d=>{let p=!1,E=!1;return(0,Re.of)(d).pipe((0,pt.b)(A=>{this.currentNavigation={id:A.id,initialUrl:A.currentRawUrl,extractedUrl:A.extractedUrl,trigger:A.source,extras:A.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,sn.w)(A=>{const j=this.browserUrlTree.toString(),X=!this.navigated||A.extractedUrl.toString()!==j||j!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||X)&&this.urlHandlingStrategy.shouldProcessUrl(A.rawUrl))return Qt(A.source)&&(this.browserUrlTree=A.extractedUrl),(0,Re.of)(A).pipe((0,sn.w)(Ee=>{const $e=this.transitions.getValue();return l.next(new Hr(Ee.id,this.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),$e!==this.transitions.getValue()?Pn.E:Promise.resolve(Ee)}),function _a(s,r,n,l){return(0,sn.w)(d=>function mp(s,r,n,l,d){return new po(s,r,n,l,d).apply()}(s,r,n,d.extractedUrl,l).pipe((0,Qe.U)(p=>Object.assign(Object.assign({},d),{urlAfterRedirects:p}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,pt.b)(Ee=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ee.urlAfterRedirects})}),function Bm(s,r,n,l,d){return(0,yt.zg)(p=>function Td(s,r,n,l,d="emptyOnly",p="legacy"){try{const E=new rc(s,r,n,l,d,p).recognize();return null===E?wi(new Ji):(0,Re.of)(E)}catch(E){return wi(E)}}(s,r,p.urlAfterRedirects,n(p.urlAfterRedirects),l,d).pipe((0,Qe.U)(E=>Object.assign(Object.assign({},p),{targetSnapshot:E}))))}(this.rootComponentType,this.config,Ee=>this.serializeUrl(Ee),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,pt.b)(Ee=>{if("eager"===this.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){const Ze=this.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);this.setBrowserUrl(Ze,Ee)}this.browserUrlTree=Ee.urlAfterRedirects}const $e=new Il(Ee.id,this.serializeUrl(Ee.extractedUrl),this.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);l.next($e)}));if(X&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:$e,extractedUrl:Ze,source:hn,restoredState:On,extras:xn}=A,Rr=new Hr($e,this.serializeUrl(Ze),hn,On);l.next(Rr);const Jo=Ot(Ze,this.rootComponentType).snapshot;return(0,Re.of)(Object.assign(Object.assign({},A),{targetSnapshot:Jo,urlAfterRedirects:Ze,extras:Object.assign(Object.assign({},xn),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=A.rawUrl,A.resolve(null),Pn.E}),Co(A=>{const{targetSnapshot:j,id:X,extractedUrl:_e,rawUrl:Ee,extras:{skipLocationChange:$e,replaceUrl:Ze}}=A;return this.hooks.beforePreactivation(j,{navigationId:X,appliedUrlTree:_e,rawUrlTree:Ee,skipLocationChange:!!$e,replaceUrl:!!Ze})}),(0,pt.b)(A=>{const j=new Ju(A.id,this.serializeUrl(A.extractedUrl),this.serializeUrl(A.urlAfterRedirects),A.targetSnapshot);this.triggerEvent(j)}),(0,Qe.U)(A=>Object.assign(Object.assign({},A),{guards:Cd(A.targetSnapshot,A.currentSnapshot,this.rootContexts)})),function vp(s,r){return(0,yt.zg)(n=>{const{targetSnapshot:l,currentSnapshot:d,guards:{canActivateChecks:p,canDeactivateChecks:E}}=n;return 0===E.length&&0===p.length?(0,Re.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function Dd(s,r,n,l){return(0,Bt.D)(s).pipe((0,yt.zg)(d=>function Ki(s,r,n,l,d){const p=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!p||0===p.length)return(0,Re.of)(!0);const E=p.map(A=>{const j=mo(A,r,d);let X;if(function pa(s){return s&&Gr(s.canDeactivate)}(j))X=Tn(j.canDeactivate(s,r,n,l));else{if(!Gr(j))throw new Error("Invalid CanDeactivate guard");X=Tn(j(s,r,n,l))}return X.pipe((0,mt.P)())});return(0,Re.of)(E).pipe(Ci())}(d.component,d.route,n,r,l)),(0,mt.P)(d=>!0!==d,!0))}(E,l,d,s).pipe((0,yt.zg)(A=>A&&function dp(s){return"boolean"==typeof s}(A)?function wd(s,r,n,l){return(0,Bt.D)(r).pipe((0,Dn.b)(d=>Ht(function Sd(s,r){return null!==s&&r&&r(new Xu(s)),(0,Re.of)(!0)}(d.route.parent,l),function qi(s,r){return null!==s&&r&&r(new td(s)),(0,Re.of)(!0)}(d.route,l),function nc(s,r,n){const l=r[r.length-1],p=r.slice(0,r.length-1).reverse().map(E=>function Ed(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(E)).filter(E=>null!==E).map(E=>Vr(()=>{const A=E.guards.map(j=>{const X=mo(j,E.node,n);let _e;if(function fa(s){return s&&Gr(s.canActivateChild)}(X))_e=Tn(X.canActivateChild(l,s));else{if(!Gr(X))throw new Error("Invalid CanActivateChild guard");_e=Tn(X(l,s))}return _e.pipe((0,mt.P)())});return(0,Re.of)(A).pipe(Ci())}));return(0,Re.of)(p).pipe(Ci())}(s,d.path,n),function tc(s,r,n){const l=r.routeConfig?r.routeConfig.canActivate:null;if(!l||0===l.length)return(0,Re.of)(!0);const d=l.map(p=>Vr(()=>{const E=mo(p,r,n);let A;if(function fp(s){return s&&Gr(s.canActivate)}(E))A=Tn(E.canActivate(r,s));else{if(!Gr(E))throw new Error("Invalid CanActivate guard");A=Tn(E(r,s))}return A.pipe((0,mt.P)())}));return(0,Re.of)(d).pipe(Ci())}(s,d.route,n))),(0,mt.P)(d=>!0!==d,!0))}(l,p,s,r):(0,Re.of)(A)),(0,Qe.U)(A=>Object.assign(Object.assign({},n),{guardsResult:A})))})}(this.ngModule.injector,A=>this.triggerEvent(A)),(0,pt.b)(A=>{if(vi(A.guardsResult)){const X=Js(`Redirecting to "${this.serializeUrl(A.guardsResult)}"`);throw X.url=A.guardsResult,X}const j=new Ol(A.id,this.serializeUrl(A.extractedUrl),this.serializeUrl(A.urlAfterRedirects),A.targetSnapshot,!!A.guardsResult);this.triggerEvent(j)}),(0,gn.h)(A=>!!A.guardsResult||(this.restoreHistory(A),this.cancelNavigationTransition(A,""),!1)),Co(A=>{if(A.guards.canActivateChecks.length)return(0,Re.of)(A).pipe((0,pt.b)(j=>{const X=new xl(j.id,this.serializeUrl(j.extractedUrl),this.serializeUrl(j.urlAfterRedirects),j.targetSnapshot);this.triggerEvent(X)}),(0,sn.w)(j=>{let X=!1;return(0,Re.of)(j).pipe(function Um(s,r){return(0,yt.zg)(n=>{const{targetSnapshot:l,guards:{canActivateChecks:d}}=n;if(!d.length)return(0,Re.of)(n);let p=0;return(0,Bt.D)(d).pipe((0,Dn.b)(E=>function vo(s,r,n,l){return function Hm(s,r,n,l){const d=Object.keys(s);if(0===d.length)return(0,Re.of)({});const p={};return(0,Bt.D)(d).pipe((0,yt.zg)(E=>function Pt(s,r,n,l){const d=mo(s,r,l);return Tn(d.resolve?d.resolve(r,n):d(r,n))}(s[E],r,n,l).pipe((0,pt.b)(A=>{p[E]=A}))),Xn(1),(0,yt.zg)(()=>Object.keys(p).length===d.length?(0,Re.of)(p):Pn.E))}(s._resolve,s,r,l).pipe((0,Qe.U)(p=>(s._resolvedData=p,s.data=Object.assign(Object.assign({},s.data),Wn(s,n).resolve),null)))}(E.route,l,s,r)),(0,pt.b)(()=>p++),Xn(1),(0,yt.zg)(E=>p===d.length?(0,Re.of)(n):Pn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,pt.b)({next:()=>X=!0,complete:()=>{X||(this.restoreHistory(j),this.cancelNavigationTransition(j,"At least one route resolver didn't emit any value."))}}))}),(0,pt.b)(j=>{const X=new Qu(j.id,this.serializeUrl(j.extractedUrl),this.serializeUrl(j.urlAfterRedirects),j.targetSnapshot);this.triggerEvent(X)}))}),Co(A=>{const{targetSnapshot:j,id:X,extractedUrl:_e,rawUrl:Ee,extras:{skipLocationChange:$e,replaceUrl:Ze}}=A;return this.hooks.afterPreactivation(j,{navigationId:X,appliedUrlTree:_e,rawUrlTree:Ee,skipLocationChange:!!$e,replaceUrl:!!Ze})}),(0,Qe.U)(A=>{const j=function mr(s,r,n){const l=Wi(s,r._root,n?n._root:void 0);return new $l(l,r)}(this.routeReuseStrategy,A.targetSnapshot,A.currentRouterState);return Object.assign(Object.assign({},A),{targetRouterState:j})}),(0,pt.b)(A=>{this.currentUrlTree=A.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(A.urlAfterRedirects,A.rawUrl),this.routerState=A.targetRouterState,"deferred"===this.urlUpdateStrategy&&(A.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,A),this.browserUrlTree=A.urlAfterRedirects)}),((s,r,n)=>(0,Qe.U)(l=>(new $r(r,l.targetRouterState,l.currentRouterState,n).activate(s),l)))(this.rootContexts,this.routeReuseStrategy,A=>this.triggerEvent(A)),(0,pt.b)({next(){p=!0},complete(){p=!0}}),function Ku(s){return r=>r.lift(new ra(s))}(()=>{var A;p||E||this.cancelNavigationTransition(d,`Navigation ID ${d.id} is not equal to the current navigation id ${this.navigationId}`),(null===(A=this.currentNavigation)||void 0===A?void 0:A.id)===d.id&&(this.currentNavigation=null)}),(0,Ae.K)(A=>{if(E=!0,function rd(s){return s&&s[Nl]}(A)){const j=vi(A.url);j||(this.navigated=!0,this.restoreHistory(d,!0));const X=new jt(d.id,this.serializeUrl(d.extractedUrl),A.message);l.next(X),j?setTimeout(()=>{const _e=this.urlHandlingStrategy.merge(A.url,this.rawUrlTree),Ee={skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qt(d.source)};this.scheduleNavigation(_e,"imperative",null,Ee,{resolve:d.resolve,reject:d.reject,promise:d.promise})},0):d.resolve(!1)}else{this.restoreHistory(d,!0);const j=new wn(d.id,this.serializeUrl(d.extractedUrl),A);l.next(j);try{d.resolve(this.errorHandler(A))}catch(X){d.reject(X)}}return Pn.E}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const l="popstate"===n.type?"popstate":"hashchange";"popstate"===l&&setTimeout(()=>{var d;const p={replaceUrl:!0},E=(null===(d=n.state)||void 0===d?void 0:d.navigationId)?n.state:null;if(E){const j=Object.assign({},E);delete j.navigationId,delete j.\u0275routerPageId,0!==Object.keys(j).length&&(p.state=j)}const A=this.parseUrl(n.url);this.scheduleNavigation(A,l,E,p)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){gd(n),this.config=n.map(Kl),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,l={}){const{relativeTo:d,queryParams:p,fragment:E,queryParamsHandling:A,preserveFragment:j}=l,X=d||this.routerState.root,_e=j?this.currentUrlTree.fragment:E;let Ee=null;switch(A){case"merge":Ee=Object.assign(Object.assign({},this.currentUrlTree.queryParams),p);break;case"preserve":Ee=this.currentUrlTree.queryParams;break;default:Ee=p||null}return null!==Ee&&(Ee=this.removeEmptyProps(Ee)),function cp(s,r,n,l,d){if(0===n.length)return Zl(r.root,r.root,r,l,d);const p=function ld(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new ca(!0,0,s);let r=0,n=!1;const l=s.reduce((d,p,E)=>{if("object"==typeof p&&null!=p){if(p.outlets){const A={};return vt(p.outlets,(j,X)=>{A[X]="string"==typeof j?j.split("/"):j}),[...d,{outlets:A}]}if(p.segmentPath)return[...d,p.segmentPath]}return"string"!=typeof p?[...d,p]:0===E?(p.split("/").forEach((A,j)=>{0==j&&"."===A||(0==j&&""===A?n=!0:".."===A?r++:""!=A&&d.push(A))}),d):[...d,p]},[]);return new ca(n,r,l)}(n);if(p.toRoot())return Zl(r.root,new ze([],{}),r,l,d);const E=function up(s,r,n){if(s.isAbsolute)return new oo(r.root,!0,0);if(-1===n.snapshot._lastPathIndex){const p=n.snapshot._urlSegment;return new oo(p,p===r.root,0)}const l=io(s.commands[0])?0:1;return function cd(s,r,n){let l=s,d=r,p=n;for(;p>d;){if(p-=d,l=l.parent,!l)throw new Error("Invalid number of '../'");d=l.segments.length}return new oo(l,!1,d-p)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+l,s.numberOfDoubleDots)}(p,r,s),A=E.processChildren?ao(E.segmentGroup,E.index,p.commands):Wl(E.segmentGroup,E.index,p.commands);return Zl(E.segmentGroup,A,r,l,d)}(X,this.currentUrlTree,n,Ee,null!=_e?_e:null)}navigateByUrl(n,l={skipLocationChange:!1}){const d=vi(n)?n:this.parseUrl(n),p=this.urlHandlingStrategy.merge(d,this.rawUrlTree);return this.scheduleNavigation(p,"imperative",null,l)}navigate(n,l={skipLocationChange:!1}){return function Od(s){for(let r=0;r{const p=n[d];return null!=p&&(l[d]=p),l},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new pr(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,l,d,p,E){var A,j,X;if(this.disposed)return Promise.resolve(!1);const _e=this.transitions.value,Ee=Qt(l)&&_e&&!Qt(_e.source),$e=_e.rawUrl.toString()===n.toString(),Ze=_e.id===(null===(A=this.currentNavigation)||void 0===A?void 0:A.id);if(Ee&&$e&&Ze)return Promise.resolve(!0);let On,xn,Rr;E?(On=E.resolve,xn=E.reject,Rr=E.promise):Rr=new Promise((zs,z_)=>{On=zs,xn=z_});const Jo=++this.navigationId;let Pr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(d=this.location.getState()),Pr=d&&d.\u0275routerPageId?d.\u0275routerPageId:p.replaceUrl||p.skipLocationChange?null!==(j=this.browserPageId)&&void 0!==j?j:0:(null!==(X=this.browserPageId)&&void 0!==X?X:0)+1):Pr=0,this.setTransition({id:Jo,targetPageId:Pr,source:l,restoredState:d,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:p,resolve:On,reject:xn,promise:Rr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Rr.catch(zs=>Promise.reject(zs))}setBrowserUrl(n,l){const d=this.urlSerializer.serialize(n),p=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(d)||l.extras.replaceUrl?this.location.replaceState(d,"",p):this.location.go(d,"",p)}restoreHistory(n,l=!1){var d,p;if("computed"===this.canceledNavigationResolution){const E=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(d=this.currentNavigation)||void 0===d?void 0:d.finalUrl)||0===E?this.currentUrlTree===(null===(p=this.currentNavigation)||void 0===p?void 0:p.finalUrl)&&0===E&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(E)}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,l){const d=new jt(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(d),n.resolve(!1)}generateNgRouterState(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:l}:{navigationId:n}}}return s.\u0275fac=function(n){o.$Z()},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();function Qt(s){return"imperative"!==s}let er=(()=>{class s{constructor(n,l,d,p,E){this.router=n,this.route=l,this.tabIndexAttribute=d,this.renderer=p,this.el=E,this.commands=null,this.onChanges=new Mt.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){if(null!=this.tabIndexAttribute)return;const l=this.renderer,d=this.el.nativeElement;null!==n?l.setAttribute(d,"tabindex",n):l.removeAttribute(d,"tabindex")}ngOnChanges(n){this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const n={skipLocationChange:Do(this.skipLocationChange),replaceUrl:Do(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Do(this.preserveFragment)})}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Et),o.Y36(an),o.$8M("tabindex"),o.Y36(o.Qsj),o.Y36(o.SBq))},s.\u0275dir=o.lG2({type:s,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(n,l){1&n&&o.NdJ("click",function(){return l.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[o.TTD]}),s})(),un=(()=>{class s{constructor(n,l,d){this.router=n,this.route=l,this.locationStrategy=d,this.commands=null,this.href=null,this.onChanges=new Mt.xQ,this.subscription=n.events.subscribe(p=>{p instanceof pr&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,l,d,p,E){if(0!==n||l||d||p||E||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const A={skipLocationChange:Do(this.skipLocationChange),replaceUrl:Do(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,A),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Do(this.preserveFragment)})}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Et),o.Y36(an),o.Y36(g.S$))},s.\u0275dir=o.lG2({type:s,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,l){1&n&&o.NdJ("click",function(p){return l.onClick(p.button,p.ctrlKey,p.shiftKey,p.altKey,p.metaKey)}),2&n&&o.uIk("target",l.target)("href",l.href,o.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[o.TTD]}),s})();function Do(s){return""===s||!!s}let Er=(()=>{class s{constructor(n,l,d,p,E,A){this.router=n,this.element=l,this.renderer=d,this.cdr=p,this.link=E,this.linkWithHref=A,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new o.vpe,this.routerEventsSubscription=n.events.subscribe(j=>{j instanceof pr&&this.update()})}ngAfterContentInit(){(0,Re.of)(this.links.changes,this.linksWithHrefs.changes,(0,Re.of)(null)).pipe((0,bn.J)()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;null===(n=this.linkInputChangesSubscription)||void 0===n||n.unsubscribe();const l=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(d=>!!d).map(d=>d.onChanges);this.linkInputChangesSubscription=(0,Bt.D)(l).pipe((0,bn.J)()).subscribe(d=>{this.isActive!==this.isLinkActive(this.router)(d)&&this.update()})}set routerLinkActive(n){const l=Array.isArray(n)?n:n.split(" ");this.classes=l.filter(d=>!!d)}ngOnChanges(n){this.update()}ngOnDestroy(){var n;this.routerEventsSubscription.unsubscribe(),null===(n=this.linkInputChangesSubscription)||void 0===n||n.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this.isActive!==n&&(this.isActive=n,this.cdr.markForCheck(),this.classes.forEach(l=>{n?this.renderer.addClass(this.element.nativeElement,l):this.renderer.removeClass(this.element.nativeElement,l)}),this.isActiveChange.emit(n))})}isLinkActive(n){const l=function Ap(s){return!!s.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return d=>!!d.urlTree&&n.isActive(d.urlTree,l)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.linkWithHref&&n(this.linkWithHref)||this.links.some(n)||this.linksWithHrefs.some(n)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Et),o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(er,8),o.Y36(un,8))},s.\u0275dir=o.lG2({type:s,selectors:[["","routerLinkActive",""]],contentQueries:function(n,l,d){if(1&n&&(o.Suo(d,er,5),o.Suo(d,un,5)),2&n){let p;o.iGM(p=o.CRH())&&(l.links=p),o.iGM(p=o.CRH())&&(l.linksWithHrefs=p)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[o.TTD]}),s})();class xd{}class Rd{preload(r,n){return(0,Re.of)(null)}}let Pd=(()=>{class s{constructor(n,l,d,p){this.router=n,this.injector=d,this.preloadingStrategy=p,this.loader=new Yn(d,l,j=>n.triggerEvent(new Rl(j)),j=>n.triggerEvent(new Pl(j)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,gn.h)(n=>n instanceof pr),(0,Dn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(o.h0i);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,l){const d=[];for(const p of l)if(p.loadChildren&&!p.canLoad&&p._loadedConfig){const E=p._loadedConfig;d.push(this.processRoutes(E.module,E.routes))}else p.loadChildren&&!p.canLoad?d.push(this.preloadConfig(n,p)):p.children&&d.push(this.processRoutes(n,p.children));return(0,Bt.D)(d).pipe((0,bn.J)(),(0,Qe.U)(p=>{}))}preloadConfig(n,l){return this.preloadingStrategy.preload(l,()=>(l._loadedConfig?(0,Re.of)(l._loadedConfig):this.loader.load(n.injector,l)).pipe((0,yt.zg)(p=>(l._loadedConfig=p,this.processRoutes(p.module,p.routes)))))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Et),o.LFG(o.Sil),o.LFG(o.zs3),o.LFG(xd))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),Ca=(()=>{class s{constructor(n,l,d={}){this.router=n,this.viewportScroller=l,this.options=d,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},d.scrollPositionRestoration=d.scrollPositionRestoration||"disabled",d.anchorScrolling=d.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Hr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof pr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Fl&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,l){this.router.triggerEvent(new Fl(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(n){o.$Z()},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const tr=new o.OlP("ROUTER_CONFIGURATION"),Ip=new o.OlP("ROUTER_FORROOT_GUARD"),wo=[g.Ye,{provide:w,useClass:L},{provide:Et,useFactory:function Pp(s,r,n,l,d,p,E={},A,j){const X=new Et(null,s,r,n,l,d,Ll(p));return A&&(X.urlHandlingStrategy=A),j&&(X.routeReuseStrategy=j),function So(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(E,X),E.enableTracing&&X.events.subscribe(_e=>{var Ee,$e;null===(Ee=console.group)||void 0===Ee||Ee.call(console,`Router Event: ${_e.constructor.name}`),console.log(_e.toString()),console.log(_e),null===($e=console.groupEnd)||void 0===$e||$e.call(console)}),X},deps:[w,lo,g.Ye,o.zs3,o.Sil,mn,tr,[class Ad{},new o.FiY],[class Eo{},new o.FiY]]},lo,{provide:an,useFactory:function kd(s){return s.routerState.root},deps:[Et]},Pd,Rd,class Mp{preload(r,n){return n().pipe((0,Ae.K)(()=>(0,Re.of)(null)))}},{provide:tr,useValue:{enableTracing:!1}}];function ic(){return new o.PXZ("Router",Et)}let yn=(()=>{class s{constructor(n,l){}static forRoot(n,l){return{ngModule:s,providers:[wo,sc(n),{provide:Ip,useFactory:Rp,deps:[[Et,new o.FiY,new o.tp0]]},{provide:tr,useValue:l||{}},{provide:g.S$,useFactory:xp,deps:[g.lw,[new o.tBr(g.mr),new o.FiY],tr]},{provide:Ca,useFactory:Op,deps:[Et,g.EM,tr]},{provide:xd,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:Rd},{provide:o.PXZ,multi:!0,useFactory:ic},[oc,{provide:o.ip1,multi:!0,useFactory:Nt,deps:[oc]},{provide:Ld,useFactory:Nd,deps:[oc]},{provide:o.tb,multi:!0,useExisting:Ld}]]}}static forChild(n){return{ngModule:s,providers:[sc(n)]}}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ip,8),o.LFG(Et,8))},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({}),s})();function Op(s,r,n){return n.scrollOffset&&r.setOffset(n.scrollOffset),new Ca(s,r,n)}function xp(s,r,n={}){return n.useHash?new g.Do(s,r):new g.b0(s,r)}function Rp(s){return"guarded"}function sc(s){return[{provide:o.deG,multi:!0,useValue:s},{provide:mn,multi:!0,useValue:s}]}let oc=(()=>{class s{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Mt.xQ}appInitializer(){return this.injector.get(g.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let l=null;const d=new Promise(A=>l=A),p=this.injector.get(Et),E=this.injector.get(tr);return"disabled"===E.initialNavigation?(p.setUpLocationChangeListener(),l(!0)):"enabled"===E.initialNavigation||"enabledBlocking"===E.initialNavigation?(p.hooks.afterPreactivation=()=>this.initNavigation?(0,Re.of)(null):(this.initNavigation=!0,l(!0),this.resultOfPreactivationDone),p.initialNavigation()):l(!0),d})}bootstrapListener(n){const l=this.injector.get(tr),d=this.injector.get(Pd),p=this.injector.get(Ca),E=this.injector.get(Et),A=this.injector.get(o.z2F);n===A.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&E.initialNavigation(),d.setUpPreloading(),p.init(),E.resetRootComponentType(A.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(o.zs3))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();function Nt(s){return s.appInitializer.bind(s)}function Nd(s){return s.bootstrapListener.bind(s)}const Ld=new o.OlP("Router Initializer");var To=_(6114);let Ao=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez]]}),s})(),Vd=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,Ao]]}),s})(),Xi=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez]]}),s})();function Bd(s){return Array.isArray(s)?s:[s]}function wt(s){return null==s?"":"string"==typeof s?s:`${s}px`}var Mo=_(6688),kp=_(7043);function Si(s,r,n,l){return(0,kp.m)(n)&&(l=n,n=void 0),l?Si(s,r,n).pipe((0,Qe.U)(d=>(0,Mo.k)(d)?l(...d):l(d))):new Ut.y(d=>{ns(s,r,function p(E){d.next(arguments.length>1?Array.prototype.slice.call(arguments):E)},d,n)})}function ns(s,r,n,l,d){let p;if(function Ud(s){return s&&"function"==typeof s.addEventListener&&"function"==typeof s.removeEventListener}(s)){const E=s;s.addEventListener(r,n,d),p=()=>E.removeEventListener(r,n,d)}else if(function zm(s){return s&&"function"==typeof s.on&&"function"==typeof s.off}(s)){const E=s;s.on(r,n),p=()=>E.off(r,n)}else if(function Np(s){return s&&"function"==typeof s.addListener&&"function"==typeof s.removeListener}(s)){const E=s;s.addListener(r,n),p=()=>E.removeListener(r,n)}else{if(!s||!s.length)throw new TypeError("Invalid event target");for(let E=0,A=s.length;E0?super.requestAsyncId(r,n,l):(r.actions.push(this),r.scheduled||(r.scheduled=requestAnimationFrame(()=>r.flush(null))))}recycleAsyncId(r,n,l=0){if(null!==l&&l>0||null===l&&this.delay>0)return super.recycleAsyncId(r,n,l);0===r.actions.length&&(cancelAnimationFrame(n),r.scheduled=void 0)}});let dc=1;const rs=Promise.resolve(),ba={};function $d(s){return s in ba&&(delete ba[s],!0)}const Bp={setImmediate(s){const r=dc++;return ba[r]=!0,rs.then(()=>$d(r)&&s()),r},clearImmediate(s){$d(s)}};new class Gd extends jd.v{flush(r){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let l,d=-1,p=n.length;r=r||n.shift();do{if(l=r.execute(r.state,r.delay))break}while(++d0?super.requestAsyncId(r,n,l):(r.actions.push(this),r.scheduled||(r.scheduled=Bp.setImmediate(r.flush.bind(r,null))))}recycleAsyncId(r,n,l=0){if(null!==l&&l>0||null===l&&this.delay>0)return super.recycleAsyncId(r,n,l);0===r.actions.length&&(Bp.clearImmediate(n),r.scheduled=void 0)}});var pc=_(353),is=_(1177);class jp{constructor(r){this.durationSelector=r}call(r,n){return n.subscribe(new $p(r,this.durationSelector))}}class $p extends is.Ds{constructor(r,n){super(r),this.durationSelector=n,this.hasValue=!1}_next(r){if(this.value=r,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:d}=this;n=d(r)}catch(d){return this.destination.error(d)}const l=(0,is.ft)(n,new is.IY(this));!l||l.closed?this.clearThrottle():this.add(this.throttled=l)}}clearThrottle(){const{value:r,hasValue:n,throttled:l}=this;l&&(this.remove(l),this.throttled=void 0,l.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(r))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Zd(s){return!(0,Mo.k)(s)&&s-parseFloat(s)+1>=0}function Io(s){const{index:r,period:n,subscriber:l}=s;if(l.next(r),!l.closed){if(-1===n)return l.complete();s.index=r+1,this.schedule(s,n)}}function Wd(s,r=pc.P){return function Hp(s){return function(n){return n.lift(new jp(s))}}(()=>function Zr(s=0,r,n){let l=-1;return Zd(r)?l=Number(r)<1?1:Number(r):(0,Ks.K)(r)&&(n=r),(0,Ks.K)(n)||(n=pc.P),new Ut.y(d=>{const p=Zd(s)?s:+s-n.now();return n.schedule(Io,p,{index:0,period:l,subscriber:d})})}(s,r))}let Yd;try{Yd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){Yd=!1}let ss,Da=(()=>{class s{constructor(n){this._platformId=n,this.isBrowser=this._platformId?(0,g.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Yd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(o.Lbi))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Wm=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({}),s})();function Wp(){if(null==ss){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ss=!1,ss;if("scrollBehavior"in document.documentElement.style)ss=!0;else{const s=Element.prototype.scrollTo;ss=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return ss}function _c(s){return s.composedPath?s.composedPath()[0]:s.target}function mc(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const qm=new o.OlP("cdk-dir-doc",{providedIn:"root",factory:function Km(){return(0,o.f3M)(g.K0)}}),Jm=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vc=(()=>{class s{constructor(n){if(this.value="ltr",this.change=new o.vpe,n){const d=n.documentElement?n.documentElement.dir:null;this.value=function yc(s){const r=(null==s?void 0:s.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?Jm.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((n.body?n.body.dir:null)||d||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(qm,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Kd=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({}),s})(),Aa=(()=>{class s{constructor(n,l,d){this._ngZone=n,this._platform=l,this._scrolled=new Mt.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=d}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){const l=this.scrollContainers.get(n);l&&(l.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=20){return this._platform.isBrowser?new Ut.y(l=>{this._globalSubscription||this._addGlobalListener();const d=n>0?this._scrolled.pipe(Wd(n)).subscribe(l):this._scrolled.subscribe(l);return this._scrolledCount++,()=>{d.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Re.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,l)=>this.deregister(l)),this._scrolled.complete()}ancestorScrolled(n,l){const d=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe((0,gn.h)(p=>!p||d.indexOf(p)>-1))}getAncestorScrollContainers(n){const l=[];return this.scrollContainers.forEach((d,p)=>{this._scrollableContainsElement(p,n)&&l.push(p)}),l}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,l){let d=function lc(s){return s instanceof o.SBq?s.nativeElement:s}(l),p=n.getElementRef().nativeElement;do{if(d==p)return!0}while(d=d.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Si(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(o.R0b),o.LFG(Da),o.LFG(g.K0,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qd=(()=>{class s{constructor(n,l,d){this._platform=n,this._change=new Mt.xQ,this._changeListener=p=>{this._change.next(p)},this._document=d,l.runOutsideAngular(()=>{if(n.isBrowser){const p=this._getWindow();p.addEventListener("resize",this._changeListener),p.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){const n=this.getViewportScrollPosition(),{width:l,height:d}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+d,right:n.left+l,height:d,width:l}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const n=this._document,l=this._getWindow(),d=n.documentElement,p=d.getBoundingClientRect();return{top:-p.top||n.body.scrollTop||l.scrollY||d.scrollTop||0,left:-p.left||n.body.scrollLeft||l.scrollX||d.scrollLeft||0}}change(n=20){return n>0?this._change.pipe(Wd(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Da),o.LFG(o.R0b),o.LFG(g.K0,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),eh=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({}),s})(),th=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[Kd,Wm,eh],Kd,eh]}),s})();class Gt{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Ia extends Gt{constructor(r,n,l,d){super(),this.component=r,this.viewContainerRef=n,this.injector=l,this.componentFactoryResolver=d}}class nh extends Gt{constructor(r,n,l){super(),this.templateRef=r,this.viewContainerRef=n,this.context=l}get origin(){return this.templateRef.elementRef}attach(r,n=this.context){return this.context=n,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class rh extends Gt{constructor(r){super(),this.element=r instanceof o.SBq?r.nativeElement:r}}class Ec extends class Xt{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Ia?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof nh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof rh?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(r,n,l,d,p){super(),this.outletElement=r,this._componentFactoryResolver=n,this._appRef=l,this._defaultInjector=d,this.attachDomPortal=E=>{const A=E.element,j=this._document.createComment("dom-portal");A.parentNode.insertBefore(j,A),this.outletElement.appendChild(A),this._attachedPortal=E,super.setDisposeFn(()=>{j.parentNode&&j.parentNode.replaceChild(A,j)})},this._document=p}attachComponentPortal(r){const l=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let d;return r.viewContainerRef?(d=r.viewContainerRef.createComponent(l,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>d.destroy())):(d=l.create(r.injector||this._defaultInjector),this._appRef.attachView(d.hostView),this.setDisposeFn(()=>{this._appRef.detachView(d.hostView),d.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(d)),this._attachedPortal=r,d}attachTemplatePortal(r){let n=r.viewContainerRef,l=n.createEmbeddedView(r.templateRef,r.context);return l.rootNodes.forEach(d=>this.outletElement.appendChild(d)),l.detectChanges(),this.setDisposeFn(()=>{let d=n.indexOf(l);-1!==d&&n.remove(d)}),this._attachedPortal=r,l}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let eg=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({}),s})();class ih{constructor(r,n){this._parentInjector=r,this._customTokens=n}get(r,n){const l=this._customTokens.get(r);return void 0!==l?l:this._parentInjector.get(r,n)}}var tg=_(6787);class bc{constructor(r){this.notifier=r}call(r,n){const l=new rg(r),d=(0,is.ft)(this.notifier,new is.IY(l));return d&&!l.seenValue?(l.add(d),n.subscribe(l)):l}}class rg extends is.Ds{constructor(r){super(r),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const sh=Wp();class Dc{constructor(r,n){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=wt(-this._previousScrollPosition.left),r.style.top=wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,l=r.style,d=this._document.body.style,p=l.scrollBehavior||"",E=d.scrollBehavior||"";this._isEnabled=!1,l.left=this._previousHTMLStyles.left,l.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),sh&&(l.scrollBehavior=d.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sh&&(l.scrollBehavior=p,d.scrollBehavior=E)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const n=this._document.body,l=this._viewportRuler.getViewportSize();return n.scrollHeight>l.height||n.scrollWidth>l.width}}class ig{constructor(r,n,l,d){this._scrollDispatcher=r,this._ngZone=n,this._viewportRuler=l,this._config=d,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class os{enable(){}disable(){}attach(){}}function wc(s,r){return r.some(n=>s.bottomn.bottom||s.rightn.right)}function oh(s,r){return r.some(n=>s.topn.bottom||s.leftn.right)}class sg{constructor(r,n,l,d){this._scrollDispatcher=r,this._viewportRuler=n,this._ngZone=l,this._config=d,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:l,height:d}=this._viewportRuler.getViewportSize();wc(n,[{width:l,height:d,bottom:d,right:l,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let og=(()=>{class s{constructor(n,l,d,p){this._scrollDispatcher=n,this._viewportRuler=l,this._ngZone=d,this.noop=()=>new os,this.close=E=>new ig(this._scrollDispatcher,this._ngZone,this._viewportRuler,E),this.block=()=>new Dc(this._viewportRuler,this._document),this.reposition=E=>new sg(this._scrollDispatcher,this._viewportRuler,this._ngZone,E),this._document=p}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Aa),o.LFG(Qd),o.LFG(o.R0b),o.LFG(g.K0))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class ah{constructor(r){if(this.scrollStrategy=new os,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const n=Object.keys(r);for(const l of n)void 0!==r[l]&&(this[l]=r[l])}}}class lg{constructor(r,n){this.connectionPair=r,this.scrollableViewProperties=n}}class lh{constructor(r,n,l,d,p,E,A,j,X){this._portalOutlet=r,this._host=n,this._pane=l,this._config=d,this._ngZone=p,this._keyboardDispatcher=E,this._document=A,this._location=j,this._outsideClickDispatcher=X,this._backdropElement=null,this._backdropClick=new Mt.xQ,this._attachments=new Mt.xQ,this._detachments=new Mt.xQ,this._locationChanges=et.w.EMPTY,this._backdropClickHandler=_e=>this._backdropClick.next(_e),this._keydownEvents=new Mt.xQ,this._outsidePointerEvents=new Mt.xQ,d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=d.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){let n=this._portalOutlet.attach(r);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,_t.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var r;const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(r=this._host)||void 0===r||r.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config=Object.assign(Object.assign({},this._config),r),this._updateElementSize()}setDirection(r){this._config=Object.assign(Object.assign({},this._config),{direction:r}),this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=wt(this._config.width),r.height=wt(this._config.height),r.minWidth=wt(this._config.minWidth),r.minHeight=wt(this._config.minHeight),r.maxWidth=wt(this._config.maxWidth),r.maxHeight=wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(!r)return;let n;const l=()=>{r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",l),this._disposeBackdrop(r)),this._config.backdropClass&&this._toggleClasses(r,this._config.backdropClass,!1),clearTimeout(n)};r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",l)}),r.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(()=>setTimeout(l,500))}_toggleClasses(r,n,l){const d=Bd(n||[]).filter(p=>!!p);d.length&&(l?r.classList.add(...d):r.classList.remove(...d))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(function ng(s){return r=>r.lift(new bc(s))}((0,tg.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.remove(),this._backdropElement===r&&(this._backdropElement=null))}}let Sc=(()=>{class s{constructor(n,l){this._platform=l,this._document=n}ngOnDestroy(){var n;null===(n=this._containerElement)||void 0===n||n.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||mc()){const d=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let p=0;p{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,n=this._overlayRect,l=this._viewportRect,d=this._containerRect,p=[];let E;for(let A of this._preferredPositions){let j=this._getOriginPoint(r,d,A),X=this._getOverlayPoint(j,n,A),_e=this._getOverlayFit(X,n,l,A);if(_e.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(A,j);this._canFitWithFlexibleDimensions(_e,X,l)?p.push({position:A,origin:j,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(j,A)}):(!E||E.overlayFit.visibleArea<_e.visibleArea)&&(E={overlayFit:_e,overlayPoint:X,originPoint:j,position:A,overlayRect:n})}if(p.length){let A=null,j=-1;for(const X of p){const _e=X.boundingBoxRect.width*X.boundingBoxRect.height*(X.position.weight||1);_e>j&&(j=_e,A=X)}return this._isPushed=!1,void this._applyPosition(A.position,A.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(E.position,E.originPoint);this._applyPosition(E.position,E.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&en(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Tc),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,n)}}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,n,l){let d,p;if("center"==l.originX)d=r.left+r.width/2;else{const E=this._isRtl()?r.right:r.left,A=this._isRtl()?r.left:r.right;d="start"==l.originX?E:A}return n.left<0&&(d-=n.left),p="center"==l.originY?r.top+r.height/2:"top"==l.originY?r.top:r.bottom,n.top<0&&(p-=n.top),{x:d,y:p}}_getOverlayPoint(r,n,l){let d,p;return d="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,p="center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height,{x:r.x+d,y:r.y+p}}_getOverlayFit(r,n,l,d){const p=dg(n);let{x:E,y:A}=r,j=this._getOffset(d,"x"),X=this._getOffset(d,"y");j&&(E+=j),X&&(A+=X);let $e=0-A,Ze=A+p.height-l.height,hn=this._subtractOverflows(p.width,0-E,E+p.width-l.width),On=this._subtractOverflows(p.height,$e,Ze),xn=hn*On;return{visibleArea:xn,isCompletelyWithinViewport:p.width*p.height===xn,fitsInViewportVertically:On===p.height,fitsInViewportHorizontally:hn==p.width}}_canFitWithFlexibleDimensions(r,n,l){if(this._hasFlexibleDimensions){const d=l.bottom-n.y,p=l.right-n.x,E=ug(this._overlayRef.getConfig().minHeight),A=ug(this._overlayRef.getConfig().minWidth),X=r.fitsInViewportHorizontally||null!=A&&A<=p;return(r.fitsInViewportVertically||null!=E&&E<=d)&&X}return!1}_pushOverlayOnScreen(r,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const d=dg(n),p=this._viewportRect,E=Math.max(r.x+d.width-p.width,0),A=Math.max(r.y+d.height-p.height,0),j=Math.max(p.top-l.top-r.y,0),X=Math.max(p.left-l.left-r.x,0);let _e=0,Ee=0;return _e=d.width<=p.width?X||-E:r.xhn&&!this._isInitialRender&&!this._growAfterOpen&&(E=r.y-hn/2)}if("end"===n.overlayX&&!d||"start"===n.overlayX&&d)$e=l.width-r.x+this._viewportMargin,_e=r.x-this._viewportMargin;else if("start"===n.overlayX&&!d||"end"===n.overlayX&&d)Ee=r.x,_e=l.right-r.x;else{const Ze=Math.min(l.right-r.x+l.left,r.x),hn=this._lastBoundingBoxSize.width;_e=2*Ze,Ee=r.x-Ze,_e>hn&&!this._isInitialRender&&!this._growAfterOpen&&(Ee=r.x-hn/2)}return{top:E,left:Ee,bottom:A,right:$e,width:_e,height:p}}_setBoundingBoxStyles(r,n){const l=this._calculateBoundingBoxRect(r,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));const d={};if(this._hasExactPosition())d.top=d.left="0",d.bottom=d.right=d.maxHeight=d.maxWidth="",d.width=d.height="100%";else{const p=this._overlayRef.getConfig().maxHeight,E=this._overlayRef.getConfig().maxWidth;d.height=wt(l.height),d.top=wt(l.top),d.bottom=wt(l.bottom),d.width=wt(l.width),d.left=wt(l.left),d.right=wt(l.right),d.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",d.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",p&&(d.maxHeight=wt(p)),E&&(d.maxWidth=wt(E))}this._lastBoundingBoxSize=l,en(this._boundingBox.style,d)}_resetBoundingBoxStyles(){en(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){en(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,n){const l={},d=this._hasExactPosition(),p=this._hasFlexibleDimensions,E=this._overlayRef.getConfig();if(d){const _e=this._viewportRuler.getViewportScrollPosition();en(l,this._getExactOverlayY(n,r,_e)),en(l,this._getExactOverlayX(n,r,_e))}else l.position="static";let A="",j=this._getOffset(n,"x"),X=this._getOffset(n,"y");j&&(A+=`translateX(${j}px) `),X&&(A+=`translateY(${X}px)`),l.transform=A.trim(),E.maxHeight&&(d?l.maxHeight=wt(E.maxHeight):p&&(l.maxHeight="")),E.maxWidth&&(d?l.maxWidth=wt(E.maxWidth):p&&(l.maxWidth="")),en(this._pane.style,l)}_getExactOverlayY(r,n,l){let d={top:"",bottom:""},p=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,l)),"bottom"===r.overlayY?d.bottom=this._document.documentElement.clientHeight-(p.y+this._overlayRect.height)+"px":d.top=wt(p.y),d}_getExactOverlayX(r,n,l){let E,d={left:"",right:""},p=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,l)),E=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===E?d.right=this._document.documentElement.clientWidth-(p.x+this._overlayRect.width)+"px":d.left=wt(p.x),d}_getScrollVisibility(){const r=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(d=>d.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:oh(r,l),isOriginOutsideView:wc(r,l),isOverlayClipped:oh(n,l),isOverlayOutsideView:wc(n,l)}}_subtractOverflows(r,...n){return n.reduce((l,d)=>l-Math.max(d,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,l=this._viewportRuler.getViewportScrollPosition();return{top:l.top+this._viewportMargin,left:l.left+this._viewportMargin,right:l.left+r-this._viewportMargin,bottom:l.top+n-this._viewportMargin,width:r-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,n){return"x"===n?null==r.offsetX?this._offsetX:r.offsetX:null==r.offsetY?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Bd(r).forEach(n=>{""!==n&&-1===this._appliedPanelClasses.indexOf(n)&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof o.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const n=r.width||0,l=r.height||0;return{top:r.y,bottom:r.y+l,left:r.x,right:r.x+n,height:l,width:n}}}function en(s,r){for(let n in r)r.hasOwnProperty(n)&&(s[n]=r[n]);return s}function ug(s){if("number"!=typeof s&&null!=s){const[r,n]=s.split(cg);return n&&"px"!==n?null:parseFloat(r)}return s||null}function dg(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const Ac="cdk-global-overlay-wrapper";class py{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(r){const n=r.getConfig();this._overlayRef=r,this._width&&!n.width&&r.updateSize({width:this._width}),this._height&&!n.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Ac),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._rightOffset="",this._leftOffset=r,this._justifyContent="flex-start",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._leftOffset="",this._rightOffset=r,this._justifyContent="flex-end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._justifyContent="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),{width:d,height:p,maxWidth:E,maxHeight:A}=l,j=!("100%"!==d&&"100vw"!==d||E&&"100%"!==E&&"100vw"!==E),X=!("100%"!==p&&"100vh"!==p||A&&"100%"!==A&&"100vh"!==A);r.position=this._cssPosition,r.marginLeft=j?"0":this._leftOffset,r.marginTop=X?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=this._rightOffset,j?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=X?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(Ac),l.justifyContent=l.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let rr=(()=>{class s{constructor(n,l,d,p){this._viewportRuler=n,this._document=l,this._platform=d,this._overlayContainer=p}global(){return new py}flexibleConnectedTo(n){return new as(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Qd),o.LFG(g.K0),o.LFG(Da),o.LFG(Sc))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),xa=(()=>{class s{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){const l=this._attachedOverlays.indexOf(n);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(g.K0))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mc=(()=>{class s extends xa{constructor(n){super(n),this._keydownListener=l=>{const d=this._attachedOverlays;for(let p=d.length-1;p>-1;p--)if(d[p]._keydownEvents.observers.length>0){d[p]._keydownEvents.next(l);break}}}add(n){super.add(n),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(g.K0))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),hg=(()=>{class s extends xa{constructor(n,l){super(n),this._platform=l,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=_c(d)},this._clickListener=d=>{const p=_c(d),E="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:p;this._pointerDownEventTarget=null;const A=this._attachedOverlays.slice();for(let j=A.length-1;j>-1;j--){const X=A[j];if(!(X._outsidePointerEvents.observers.length<1)&&X.hasAttached()){if(X.overlayElement.contains(p)||X.overlayElement.contains(E))break;X._outsidePointerEvents.next(d)}}}}add(n){if(super.add(n),!this._isAttached){const l=this._document.body;l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=l.style.cursor,l.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(g.K0),o.LFG(Da))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ch=0,Ti=(()=>{class s{constructor(n,l,d,p,E,A,j,X,_e,Ee,$e){this.scrollStrategies=n,this._overlayContainer=l,this._componentFactoryResolver=d,this._positionBuilder=p,this._keyboardDispatcher=E,this._injector=A,this._ngZone=j,this._document=X,this._directionality=_e,this._location=Ee,this._outsideClickDispatcher=$e}create(n){const l=this._createHostElement(),d=this._createPaneElement(l),p=this._createPortalOutlet(d),E=new ah(n);return E.direction=E.direction||this._directionality.value,new lh(p,l,d,E,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(n){const l=this._document.createElement("div");return l.id="cdk-overlay-"+ch++,l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}_createHostElement(){const n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(o.z2F)),new Ec(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(og),o.LFG(Sc),o.LFG(o._Vd),o.LFG(rr),o.LFG(Mc),o.LFG(o.zs3),o.LFG(o.R0b),o.LFG(g.K0),o.LFG(vc),o.LFG(g.Ye),o.LFG(hg))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const gy={provide:new o.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Ti],useFactory:function fh(s){return()=>s.scrollStrategies.reposition()}};let ls=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Ti,gy],imports:[[Kd,eg,th],th]}),s})(),Ic=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,ls]]}),s})(),br=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,yn,Ao,Vd,Xi,Ic],Ao,Vd,Xi,Ic]}),s})(),Oc=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-forbidden"]],decls:6,vars:0,template:function(n,l){1&n&&(o.TgZ(0,"h1"),o._uU(1,"Oooppss... "),o._UZ(2,"br"),o._uU(3,"You do not have access to this area!"),o.qZA(),o.TgZ(4,"p"),o._uU(5,"Please try to login or ask your administrator."),o.qZA())},encapsulation:2}),s})(),pg=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-page-not-found"]],decls:4,vars:0,template:function(n,l){1&n&&(o.TgZ(0,"h1"),o._uU(1,"Oooppss... "),o._UZ(2,"br"),o._uU(3,"This page does not exist!"),o.qZA())},encapsulation:2}),s})();class Ra{constructor(r,n,l){this.overlay=r,this.content=n,this.data=l,this.afterClosed=new Mt.xQ,this.afterClosed$=this.afterClosed.asObservable(),r.backdropClick().subscribe(()=>{this.closeInternal("backdropClick",null)})}close(r){this.closeInternal("close",r)}closeInternal(r,n){this.overlay.dispose(),this.afterClosed.next({type:r,data:n}),this.afterClosed.complete()}}let Pa=(()=>{class s{constructor(n){this.popoverRef=n,this.deleteConfirmation={itemText:"the item",confirm:!1},this.deleteConfirmation=this.popoverRef.data}no(){this.emit(!1)}yes(){this.emit(!0)}emit(n){this.deleteConfirmation.confirm=n,this.popoverRef.close(this.deleteConfirmation)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Ra))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-delete-confirmation"]],decls:7,vars:1,consts:function(){let r,n,l;return r=$localize`:␟6249f86faad4076120dfe278fd082b0d002c721b␟396024377166249863:Do you really want to delete '${"\ufffd0\ufffd"}:INTERPOLATION:'?`,n=$localize`:␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`,l=$localize`:␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,[r,[1,"button__bar","button__bar--aligned-right"],["type","button",1,"button--secondary",3,"click"],n,["type","button",3,"click"],l]},template:function(n,l){1&n&&(o.TgZ(0,"h3"),o.SDv(1,0),o.qZA(),o.TgZ(2,"div",1),o.TgZ(3,"button",2),o.NdJ("click",function(){return l.no()}),o.SDv(4,3),o.qZA(),o.TgZ(5,"button",4),o.NdJ("click",function(){return l.yes()}),o.SDv(6,5),o.qZA(),o.qZA()),2&n&&(o.xp6(1),o.pQV(l.deleteConfirmation.itemText),o.QtT(1))},encapsulation:2}),s})();function gg(s,r){if(1&s&&o._UZ(0,"div",4),2&s){const n=o.oxw();o.Q6J("innerHTML",n.content,o.oJD)}}function _g(s,r){1&s&&o.GkF(0)}function mg(s,r){if(1&s&&(o.ynx(0),o.YNc(1,_g,1,0,"ng-container",5),o.BQk()),2&s){const n=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",n.content)("ngTemplateOutletContext",n.context)}}function gh(s,r){1&s&&o.GkF(0)}function xc(s,r){if(1&s&&(o.ynx(0),o.YNc(1,gh,1,0,"ng-container",6),o.BQk()),2&s){const n=o.oxw();o.xp6(1),o.Q6J("ngComponentOutlet",n.content)}}let _h=(()=>{class s{constructor(n){this.popoverRef=n,this.renderMethod="component"}ngOnInit(){this.content=this.popoverRef.content,"string"==typeof this.content&&(this.renderMethod="text"),this.content instanceof o.Rgc&&(this.renderMethod="template",this.context={close:this.popoverRef.close.bind(this.popoverRef)})}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Ra))},s.\u0275cmp=o.Xpm({type:s,selectors:[["ng-component"]],decls:5,vars:4,consts:[[1,"popover"],[3,"ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngComponentOutlet"]],template:function(n,l){1&n&&(o.TgZ(0,"div",0),o.ynx(1,1),o.YNc(2,gg,1,1,"div",2),o.YNc(3,mg,2,2,"ng-container",3),o.YNc(4,xc,2,1,"ng-container",3),o.BQk(),o.qZA()),2&n&&(o.xp6(1),o.Q6J("ngSwitch",l.renderMethod),o.xp6(1),o.Q6J("ngSwitchCase","text"),o.xp6(1),o.Q6J("ngSwitchCase","template"),o.xp6(1),o.Q6J("ngSwitchCase","component"))},directives:[g.RF,g.n9,g.tP,g.$G],encapsulation:2}),s})(),cs=(()=>{class s{constructor(n,l){this.overlay=n,this.injector=l}open({origin:n,content:l,data:d,width:p,height:E,hasBackdrop:A=!0}){const j=this.overlay.create(this.getOverlayConfig({origin:n,width:p,height:E,hasBackdrop:A})),X=new Ra(j,l,d),_e=this.createInjector(X,this.injector);return j.attach(new Ia(_h,null,_e)),X}createInjector(n,l){const d=new WeakMap([[Ra,n]]);return new ih(l,d)}getOverlayConfig({origin:n,width:l,height:d,hasBackdrop:p}){return new ah({hasBackdrop:p,width:l,height:d,backdropClass:"popover-backdrop",positionStrategy:this.getOverlayPosition(n),scrollStrategy:this.overlay.scrollStrategies.reposition()})}getOverlayPosition(n){return this.overlay.position().global().centerHorizontally().centerVertically()}getPositions(){return[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"}]}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ti),o.LFG(o.zs3))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Nn(s){const r=s.prototype.ngOnDestroy;s.prototype.ngOnDestroy=function(){for(const n in this){const l=this[n];l&&"function"==typeof l.unsubscribe&&l.unsubscribe()}r&&"function"==typeof r&&r.apply(this,arguments)}}var mh=_(1737);let yh=(()=>{class s{constructor(){this.baseUrl="/api"}createRawUrl(n){return`${n}`}createApiUrl(n){return`${this.baseUrl}/${n}`}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ai=(()=>{class s{constructor(n,l){this.http=n,this.api=l}get(n,l){const d=this.api.createApiUrl(n);return this.http.get(d,{params:l})}getRaw(n,l){return this.http.get(n,{params:l})}post(n,l){const d=this.api.createApiUrl(n);return this.http.post(d,l)}postFile(n,l,d=!1){const p=this.api.createApiUrl(n),E=new FormData;E.append("file",l);const A=new Gn.aW("POST",p,E,{reportProgress:d});return this.http.request(A)}put(n,l){const d=this.api.createApiUrl(n);return this.http.put(d,l)}delete(n){const l=this.api.createApiUrl(n);return this.http.delete(l)}getBlob(n){const l=this.api.createApiUrl(n);return this.http.get(l,{responseType:"blob"})}handleError(n){if(console.log("Raw error",n),n.error instanceof ErrorEvent)console.error("An error occured:",n);else{if(400===n.status){const l=Array();return Object.keys(n.error).forEach(p=>{Array.isArray(n.error[p])&&n.error[p].forEach(E=>l.push(E))}),(0,mh._)({succeeded:!1,errors:l})}console.error(`Backend returned code ${n.status}: ${n.error.title}`)}return(0,mh._)("Somehting went wrong. Please try again later.")}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Gn.eN),o.LFG(yh))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class Wr{}var zt=(()=>{return(s=zt||(zt={}))[s.Success=0]="Success",s[s.Info=1]="Info",s[s.Warning=2]="Warning",s[s.Danger=3]="Danger",zt;var s})();let ir=(()=>{class s extends Wr{constructor(n,l,d,p){super(),this.title=n,this.message=l,this.level=d,this._hasAction=!1,this._viewed=!1,this.action=void 0,this.level=void 0!==d?d:zt.Info,p&&(this._hasAction=!0,this.action=p)}get viewed(){return this._viewed}set viewed(n){this._viewed=n,this._viewed&&this.hasAction&&delete this.action}get hasAction(){return this._hasAction}getType(){return s.KEY}}return s.KEY="StatusMessage",s})(),Zt=(()=>{class s{constructor(){this.subscribers={}}subsribe(n){const l=(new Date).valueOf();return this.subscribers[l]=n,l}unsubscribe(n){delete this.subscribers[n]}publish(n){const l=this.getSubscribersForMessage(n);0!==l.length&&l.forEach(d=>{d.onMessage(n)})}getSubscribersForMessage(n){const l=new Array;for(const d in this.subscribers)if(this.subscribers.hasOwnProperty(d)){const p=this.subscribers[d];p.getType()===n.getType()&&l.push(p)}return l}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),yg=(()=>{class s{constructor(n){this.oauthService=n}intercept(n,l){if(this.oauthService.hasValidAccessToken()){const d=this.oauthService.getAccessToken();n=n.clone({headers:n.headers.set("Authorization","Bearer "+d)})}return l.handle(n)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(To.Ct))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),vh=(()=>{class s{constructor(n,l){this.router=n,this.messageBus=l}intercept(n,l){return l.handle(n).pipe((0,pt.b)(d=>{},d=>{d instanceof Gn.UA&&(403===d.status?this.router.navigate(["forbidden"]):(console.log(d),this.messageBus.publish(new ir(d.statusText,d.message,zt.Danger))))}))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Et),o.LFG(Zt))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),us=(()=>{class s{constructor(n,l){this.oauthService=n,this.router=l}canActivate(){const n=this.oauthService.hasValidAccessToken();return n||this.router.navigate(["forbidden"]),n}canActivateChild(){return this.canActivate()}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(To.Ct),o.LFG(Et))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Ch=[{provide:Gn.TP,useClass:yg,multi:!0},{provide:Gn.TP,useClass:vh,multi:!0}];let Ro=(()=>{class s{constructor(n){this.oauth=n,this.username=s.ANONYMOUS,this.claims=new Array}get isAuthenticated(){return this.username!==s.ANONYMOUS}get userName(){return this.username}get userClaims(){return this.claims}reset(){this.loadProfile()}hasClaim(n){return!(!this.claims||!n)&&this.claims.some(l=>l===n)}loadProfile(){this.isAuthenticated||this.oauth.loadUserProfile().then(n=>{this.username=n.info.name||n.info.email,this.claims=Array.isArray(n.info.role)?n.info.role:[n.info.role]})}}return s.ANONYMOUS="anonymous",s.\u0275fac=function(n){return new(n||s)(o.LFG(To.Ct))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Eh=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,Gn.JF]]}),s})(),ds=(()=>{class s{constructor(){this.items=new Array}ngOnDestroy(){this.items=[]}register(n){this.items.some(l=>l.id===n.id)||this.items.push(n)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),Fa=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[ds],imports:[[g.ez,yn,Ao]]}),s})(),Rc=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,yn,br,Fa]]}),s})(),Pc=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,Ao]]}),s})(),Fc=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,yn,br,Pc]]}),s})(),kc=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,Rc,Fc],Rc,Fc]}),s})();function Po(s,r){1&s&&(o.TgZ(0,"div",2),o.Hsn(1,1),o.qZA())}const vg=[[["","detail",""]],[["","list",""]]],bh=["[detail]","[list]"];let hs=(()=>{class s{constructor(){this.style="pane",this.onlydetail=!1}ngOnInit(){this.style=this.onlydetail?"pane pane--onlydetail":"pane"}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-pane"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.style)},inputs:{onlydetail:"onlydetail"},ngContentSelectors:bh,decls:3,vars:1,consts:[["class","pane__list",4,"ngIf"],[1,"pane__detail"],[1,"pane__list"]],template:function(n,l){1&n&&(o.F$t(vg),o.YNc(0,Po,2,0,"div",0),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()),2&n&&o.Q6J("ngIf",!l.onlydetail)},directives:[g.O5],styles:[""]}),s})();function Cg(s,r){1&s&&(o.TgZ(0,"p"),o._uU(1,"Please login..."),o.qZA())}function Dh(s,r){1&s&&(o.TgZ(0,"p"),o._uU(1,"Now go and configure something meaningful!"),o.qZA())}function Nc(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"p"),o._uU(1,"Change my "),o.TgZ(2,"a",6),o.NdJ("click",function(){return o.CHM(n),o.oxw().openProfile()}),o._uU(3,"profile"),o.qZA(),o._uU(4,"... "),o.qZA()}}function wh(s,r){1&s&&(o.TgZ(0,"p"),o._uU(1,"It seems that you have not given access to this kind of data!"),o.qZA())}const Sh=[{path:"home",component:(()=>{class s{constructor(n,l){this.user=n,this.http=l}get isAuthenticated(){return this.user.isAuthenticated}get isAdmin(){return this.user.hasClaim("Administrator")}get userName(){return this.user.userName}openProfile(){window.location.replace((0,o.X6Q)()?"https://localhost:5001/account/manage":window.location.origin+"/account/manage")}loadData(){this.loadPrivateData(),this.loadPublicData()}loadPrivateData(){this.http.getRaw(`${s.API_SERVICE}/api/resource/private`).subscribe(l=>{this.privateInfo=l})}loadPublicData(){this.http.getRaw(`${s.API_SERVICE}/api/resource/public`).subscribe(l=>{this.publicInfo=l})}}return s.API_SERVICE="https://localhost:5001",s.\u0275fac=function(n){return new(n||s)(o.Y36(Ro),o.Y36(Ai))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-home"]],decls:33,vars:11,consts:function(){let r;return r=$localize`:␟d7c12e800bcc35d8b020f9b573be67b2e557c093␟5507794784754584432:Hello ${"\ufffd0\ufffd"}:INTERPOLATION:!`,[["onlydetail","true"],["detail",""],r,[4,"ngIf"],["href","https://localhost:5001/swagger","target","_blank"],[3,"click"],["href","javascript:void(0)",3,"click"]]},template:function(n,l){1&n&&(o.TgZ(0,"tw-pane",0),o.TgZ(1,"div",1),o.TgZ(2,"h3"),o.SDv(3,2),o.qZA(),o.YNc(4,Cg,2,0,"p",3),o.YNc(5,Dh,2,0,"p",3),o.YNc(6,Nc,5,0,"p",3),o.YNc(7,wh,2,0,"p",3),o._UZ(8,"br"),o._UZ(9,"hr"),o.TgZ(10,"div"),o.TgZ(11,"h3"),o._uU(12,"Load resource info data"),o.qZA(),o.TgZ(13,"p"),o._uU(14,"To test it with Swagger go "),o.TgZ(15,"a",4),o._uU(16,"here"),o.qZA(),o._uU(17,"."),o.qZA(),o.TgZ(18,"p"),o.TgZ(19,"button",5),o.NdJ("click",function(){return l.loadData()}),o._uU(20,"Load"),o.qZA(),o.qZA(),o.TgZ(21,"h5"),o._uU(22,"Private info"),o.qZA(),o.TgZ(23,"div"),o.TgZ(24,"pre"),o._uU(25),o.ALo(26,"json"),o.qZA(),o.qZA(),o.TgZ(27,"h5"),o._uU(28,"Public info"),o.qZA(),o.TgZ(29,"div"),o.TgZ(30,"pre"),o._uU(31),o.ALo(32,"json"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&n&&(o.xp6(3),o.pQV(l.userName),o.QtT(3),o.xp6(1),o.Q6J("ngIf",!l.isAuthenticated),o.xp6(1),o.Q6J("ngIf",l.isAuthenticated&&l.isAdmin),o.xp6(1),o.Q6J("ngIf",l.isAuthenticated&&l.isAdmin),o.xp6(1),o.Q6J("ngIf",l.isAuthenticated&&!l.isAdmin),o.xp6(18),o.Oqu(o.lcZ(26,7,l.privateInfo)),o.xp6(6),o.Oqu(o.lcZ(32,9,l.publicInfo)))},directives:[hs,g.O5],pipes:[g.Ts],encapsulation:2}),s})()}];let Eg=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,yn.forChild(Sh),br]]}),s})();var Th=_(7830);function Lc(...s){if(1===s.length){const r=s[0];if((0,Mo.k)(r))return ka(r,null);if((0,Th.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){const n=Object.keys(r);return ka(n.map(l=>r[l]),n)}}if("function"==typeof s[s.length-1]){const r=s.pop();return ka(s=1===s.length&&(0,Mo.k)(s[0])?s[0]:s,null).pipe((0,Qe.U)(n=>r(...n)))}return ka(s,null)}function ka(s,r){return new Ut.y(n=>{const l=s.length;if(0===l)return void n.complete();const d=new Array(l);let p=0,E=0;for(let A=0;A{X||(X=!0,E++),d[A]=_e},error:_e=>n.error(_e),complete:()=>{p++,(p===l||!X)&&(E===l&&n.next(r?r.reduce((_e,Ee,$e)=>(_e[Ee]=d[$e],_e),{}):d),n.complete())}}))}})}let Ln=(()=>{class s{constructor(n,l){this._renderer=n,this._elementRef=l,this.onChange=d=>{},this.onTouched=()=>{}}setProperty(n,l){this._renderer.setProperty(this._elementRef.nativeElement,n,l)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.Qsj),o.Y36(o.SBq))},s.\u0275dir=o.lG2({type:s}),s})(),Mi=(()=>{class s extends Ln{}return s.\u0275fac=function(){let r;return function(l){return(r||(r=o.n5z(s)))(l||s)}}(),s.\u0275dir=o.lG2({type:s,features:[o.qOj]}),s})();const Mn=new o.OlP("NgValueAccessor"),bg={provide:Mn,useExisting:(0,o.Gpc)(()=>Vc),multi:!0};let Vc=(()=>{class s extends Mi{writeValue(n){this.setProperty("checked",n)}}return s.\u0275fac=function(){let r;return function(l){return(r||(r=o.n5z(s)))(l||s)}}(),s.\u0275dir=o.lG2({type:s,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,l){1&n&&o.NdJ("change",function(p){return l.onChange(p.target.checked)})("blur",function(){return l.onTouched()})},features:[o._Bn([bg]),o.qOj]}),s})();const Dg={provide:Mn,useExisting:(0,o.Gpc)(()=>sr),multi:!0},Ah=new o.OlP("CompositionEventMode");let sr=(()=>{class s extends Ln{constructor(n,l,d){super(n,l),this._compositionMode=d,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wg(){const s=(0,g.q)()?(0,g.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(Ah,8))},s.\u0275dir=o.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,l){1&n&&o.NdJ("input",function(p){return l._handleInput(p.target.value)})("blur",function(){return l.onTouched()})("compositionstart",function(){return l._compositionStart()})("compositionend",function(p){return l._compositionEnd(p.target.value)})},features:[o._Bn([Dg]),o.qOj]}),s})();function Yr(s){return null==s||0===s.length}function Mh(s){return null!=s&&"number"==typeof s.length}const Te=new o.OlP("NgValidators"),Dr=new o.OlP("NgAsyncValidators"),Ih=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class wr{static min(r){return function Fo(s){return r=>{if(Yr(r.value)||Yr(s))return null;const n=parseFloat(r.value);return!isNaN(n)&&n{if(Yr(r.value)||Yr(s))return null;const n=parseFloat(r.value);return!isNaN(n)&&n>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return function Bc(s){return Yr(s.value)?{required:!0}:null}(r)}static requiredTrue(r){return function Oh(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Na(s){return Yr(s.value)||Ih.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function or(s){return r=>Yr(r.value)||!Mh(r.value)?null:r.value.lengthMh(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return Uc(r)}static nullValidator(r){return null}static compose(r){return Ua(r)}static composeAsync(r){return Ag(r)}}function Uc(s){if(!s)return Ii;let r,n;return"string"==typeof s?(n="","^"!==s.charAt(0)&&(n+="^"),n+=s,"$"!==s.charAt(s.length-1)&&(n+="$"),r=new RegExp(n)):(n=s.toString(),r=s),l=>{if(Yr(l.value))return null;const d=l.value;return r.test(d)?null:{pattern:{requiredPattern:n,actualValue:d}}}}function Ii(s){return null}function Sg(s){return null!=s}function Hc(s){const r=(0,o.QGY)(s)?(0,Bt.D)(s):s;return(0,o.CqO)(r),r}function Tg(s){let r={};return s.forEach(n=>{r=null!=n?Object.assign(Object.assign({},r),n):r}),0===Object.keys(r).length?null:r}function ko(s,r){return r.map(n=>n(s))}function Ba(s){return s.map(r=>function Va(s){return!s.validate}(r)?r:n=>r.validate(n))}function Ua(s){if(!s)return null;const r=s.filter(Sg);return 0==r.length?null:function(n){return Tg(ko(n,r))}}function No(s){return null!=s?Ua(Ba(s)):null}function Ag(s){if(!s)return null;const r=s.filter(Sg);return 0==r.length?null:function(n){return Lc(ko(n,r).map(Hc)).pipe((0,Qe.U)(Tg))}}function jc(s){return null!=s?Ag(Ba(s)):null}function xh(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function Rh(s){return s._rawValidators}function Ph(s){return s._rawAsyncValidators}function Ha(s){return s?Array.isArray(s)?s:[s]:[]}function $c(s,r){return Array.isArray(s)?s.includes(r):s===r}function Fh(s,r){const n=Ha(r);return Ha(s).forEach(d=>{$c(n,d)||n.push(d)}),n}function Mg(s,r){return Ha(r).filter(n=>!$c(s,n))}class Gc{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=No(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=jc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,n){return!!this.control&&this.control.hasError(r,n)}getError(r,n){return this.control?this.control.getError(r,n):null}}class Sr extends Gc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class dn extends Gc{get formDirective(){return null}get path(){return null}}class ja{constructor(r){this._cd=r}is(r){var n,l,d;return"submitted"===r?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(d=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===d?void 0:d[r])}}let Oi=(()=>{class s extends ja{constructor(n){super(n)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Sr,2))},s.\u0275dir=o.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,l){2&n&&o.ekj("ng-untouched",l.is("untouched"))("ng-touched",l.is("touched"))("ng-pristine",l.is("pristine"))("ng-dirty",l.is("dirty"))("ng-valid",l.is("valid"))("ng-invalid",l.is("invalid"))("ng-pending",l.is("pending"))},features:[o.qOj]}),s})(),zc=(()=>{class s extends ja{constructor(n){super(n)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(dn,10))},s.\u0275dir=o.lG2({type:s,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,l){2&n&&o.ekj("ng-untouched",l.is("untouched"))("ng-touched",l.is("touched"))("ng-pristine",l.is("pristine"))("ng-dirty",l.is("dirty"))("ng-valid",l.is("valid"))("ng-invalid",l.is("invalid"))("ng-pending",l.is("pending"))("ng-submitted",l.is("submitted"))},features:[o.qOj]}),s})();function Ga(s,r){return[...r.path,s]}function Ri(s,r){Wc(s,r),r.valueAccessor.writeValue(s.value),function fs(s,r){r.valueAccessor.registerOnChange(n=>{s._pendingValue=n,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&Pi(s,r)})}(s,r),function Vo(s,r){const n=(l,d)=>{r.valueAccessor.writeValue(l),d&&r.viewToModelUpdate(l)};s.registerOnChange(n),r._registerOnDestroy(()=>{s._unregisterOnChange(n)})}(s,r),function Yc(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&Pi(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function xg(s,r){if(r.valueAccessor.setDisabledState){const n=l=>{r.valueAccessor.setDisabledState(l)};s.registerOnDisabledChange(n),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(n)})}}(s,r)}function za(s,r,n=!0){const l=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(l),r.valueAccessor.registerOnTouched(l)),Kr(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function Lo(s,r){s.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(r)})}function Wc(s,r){const n=Rh(s);null!==r.validator?s.setValidators(xh(n,r.validator)):"function"==typeof n&&s.setValidators([n]);const l=Ph(s);null!==r.asyncValidator?s.setAsyncValidators(xh(l,r.asyncValidator)):"function"==typeof l&&s.setAsyncValidators([l]);const d=()=>s.updateValueAndValidity();Lo(r._rawValidators,d),Lo(r._rawAsyncValidators,d)}function Kr(s,r){let n=!1;if(null!==s){if(null!==r.validator){const d=Rh(s);if(Array.isArray(d)&&d.length>0){const p=d.filter(E=>E!==r.validator);p.length!==d.length&&(n=!0,s.setValidators(p))}}if(null!==r.asyncValidator){const d=Ph(s);if(Array.isArray(d)&&d.length>0){const p=d.filter(E=>E!==r.asyncValidator);p.length!==d.length&&(n=!0,s.setAsyncValidators(p))}}}const l=()=>{};return Lo(r._rawValidators,l),Lo(r._rawAsyncValidators,l),n}function Pi(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function Bo(s,r){if(!s.hasOwnProperty("model"))return!1;const n=s.model;return!!n.isFirstChange()||!Object.is(r,n.currentValue)}function ps(s,r){if(!r)return null;let n,l,d;return Array.isArray(r),r.forEach(p=>{p.constructor===sr?n=p:function qc(s){return Object.getPrototypeOf(s.constructor)===Mi}(p)?l=p:d=p}),d||l||n||null}function Za(s,r){const n=s.indexOf(r);n>-1&&s.splice(n,1)}const gs="VALID",Uo="INVALID",_s="PENDING",ms="DISABLED";function Jc(s){return(Gh(s)?s.validators:s)||null}function vn(s){return Array.isArray(s)?No(s):s||null}function Qc(s,r){return(Gh(r)?r.asyncValidators:s)||null}function $h(s){return Array.isArray(s)?jc(s):s||null}function Gh(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}const zh=s=>s instanceof ys,Ho=s=>s instanceof ki,Ng=s=>s instanceof tu;function Zh(s){return zh(s)?s.value:s.getRawValue()}function Wa(s,r){const n=Ho(s),l=s.controls;if(!(n?Object.keys(l):l).length)throw new o.vHH(1e3,"");if(!l[r])throw new o.vHH(1001,"")}function Xc(s,r){Ho(s),s._forEachChild((l,d)=>{if(void 0===r[d])throw new o.vHH(1002,"")})}class eu{constructor(r,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=n,this._composedValidatorFn=vn(this._rawValidators),this._composedAsyncValidatorFn=$h(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===gs}get invalid(){return this.status===Uo}get pending(){return this.status==_s}get disabled(){return this.status===ms}get enabled(){return this.status!==ms}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=vn(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=$h(r)}addValidators(r){this.setValidators(Fh(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(Fh(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(Mg(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(Mg(r,this._rawAsyncValidators))}hasValidator(r){return $c(this._rawValidators,r)}hasAsyncValidator(r){return $c(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=_s,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const n=this._parentMarkedDirty(r.onlySelf);this.status=ms,this.errors=null,this._forEachChild(l=>{l.disable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:n})),this._onDisabledChange.forEach(l=>l(!0))}enable(r={}){const n=this._parentMarkedDirty(r.onlySelf);this.status=gs,this._forEachChild(l=>{l.enable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:n})),this._onDisabledChange.forEach(l=>l(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gs||this.status===_s)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ms:gs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=_s,this._hasOwnPendingAsyncValidator=!0;const n=Hc(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(l=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(l,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,n={}){this.errors=r,this._updateControlsErrors(!1!==n.emitEvent)}get(r){return function kg(s,r,n){if(null==r||(Array.isArray(r)||(r=r.split(n)),Array.isArray(r)&&0===r.length))return null;let l=s;return r.forEach(d=>{l=Ho(l)?l.controls.hasOwnProperty(d)?l.controls[d]:null:Ng(l)&&l.at(d)||null}),l}(this,r,".")}getError(r,n){const l=n?this.get(n):this;return l&&l.errors?l.errors[r]:null}hasError(r,n){return!!this.getError(r,n)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?ms:this.errors?Uo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_s)?_s:this._anyControlsHaveStatus(Uo)?Uo:gs}_anyControlsHaveStatus(r){return this._anyControls(n=>n.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_isBoxedValue(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Gh(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ys extends eu{constructor(r=null,n,l){super(Jc(n),Qc(l,n)),this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(r,n={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(l=>l(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(r,n={}){this.setValue(r,n)}reset(r=null,n={}){this._applyFormState(r),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Za(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Za(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){this._isBoxedValue(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}}class ki extends eu{constructor(r,n,l){super(Jc(n),Qc(l,n)),this.controls=r,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,n){return this.controls[r]?this.controls[r]:(this.controls[r]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(r,n,l={}){this.registerControl(r,n),this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}removeControl(r,n={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(r,n,l={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],n&&this.registerControl(r,n),this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,n={}){Xc(this,r),Object.keys(r).forEach(l=>{Wa(this,l),this.controls[l].setValue(r[l],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(r,n={}){null!=r&&(Object.keys(r).forEach(l=>{this.controls[l]&&this.controls[l].patchValue(r[l],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(r={},n={}){this._forEachChild((l,d)=>{l.reset(r[d],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(r,n,l)=>(r[l]=Zh(n),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(n,l)=>!!l._syncPendingControls()||n);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(n=>{const l=this.controls[n];l&&r(l,n)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const n of Object.keys(this.controls)){const l=this.controls[n];if(this.contains(n)&&r(l))return!0}return!1}_reduceValue(){return this._reduceChildren({},(r,n,l)=>((n.enabled||this.disabled)&&(r[l]=n.value),r))}_reduceChildren(r,n){let l=r;return this._forEachChild((d,p)=>{l=n(l,d,p)}),l}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class tu extends eu{constructor(r,n,l){super(Jc(n),Qc(l,n)),this.controls=r,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[r]}push(r,n={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(r,n,l={}){this.controls.splice(r,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:l.emitEvent})}removeAt(r,n={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(r,n,l={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),n&&(this.controls.splice(r,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,n={}){Xc(this,r),r.forEach((l,d)=>{Wa(this,d),this.at(d).setValue(l,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(r,n={}){null!=r&&(r.forEach((l,d)=>{this.at(d)&&this.at(d).patchValue(l,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(r=[],n={}){this._forEachChild((l,d)=>{l.reset(r[d],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(r=>Zh(r))}clear(r={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_syncPendingControls(){let r=this.controls.reduce((n,l)=>!!l._syncPendingControls()||n,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((n,l)=>{r(n,l)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(n=>n.enabled&&r(n))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}}const Ug={provide:Sr,useExisting:(0,o.Gpc)(()=>Ar)},Hg=(()=>Promise.resolve(null))();let Ar=(()=>{class s extends Sr{constructor(n,l,d,p){super(),this.control=new ys,this._registered=!1,this.update=new o.vpe,this._parent=n,this._setValidators(l),this._setAsyncValidators(d),this.valueAccessor=ps(0,p)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),Bo(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Ga(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ri(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){Hg.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const l=n.isDisabled.currentValue,d=""===l||l&&"false"!==l;Hg.then(()=>{d&&!this.control.disabled?this.control.disable():!d&&this.control.disabled&&this.control.enable()})}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(dn,9),o.Y36(Te,10),o.Y36(Dr,10),o.Y36(Mn,10))},s.\u0275dir=o.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([Ug]),o.qOj,o.TTD]}),s})(),qh=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275dir=o.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),s})();const jg={provide:Mn,useExisting:(0,o.Gpc)(()=>iu),multi:!0};let iu=(()=>{class s extends Mi{writeValue(n){this.setProperty("value",null==n?"":n)}registerOnChange(n){this.onChange=l=>{n(""==l?null:parseFloat(l))}}}return s.\u0275fac=function(){let r;return function(l){return(r||(r=o.n5z(s)))(l||s)}}(),s.\u0275dir=o.lG2({type:s,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,l){1&n&&o.NdJ("input",function(p){return l.onChange(p.target.value)})("blur",function(){return l.onTouched()})},features:[o._Bn([jg]),o.qOj]}),s})(),Kh=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({}),s})();const jo=new o.OlP("NgModelWithFormControlWarning"),Gg={provide:dn,useExisting:(0,o.Gpc)(()=>Jr)};let Jr=(()=>{class s extends dn{constructor(n,l){super(),this.validators=n,this.asyncValidators=l,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.vpe,this._setValidators(n),this._setAsyncValidators(l)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const l=this.form.get(n.path);return Ri(l,n),l.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),l}getControl(n){return this.form.get(n.path)}removeControl(n){za(n.control||null,n,!1),Za(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,l){this.form.get(n.path).setValue(l)}onSubmit(n){return this.submitted=!0,function Kc(s,r){s._syncPendingControls(),r.forEach(n=>{const l=n.control;"submit"===l.updateOn&&l._pendingChange&&(n.viewToModelUpdate(l._pendingValue),l._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const l=n.control,d=this.form.get(n.path);l!==d&&(za(l||null,n),zh(d)&&(Ri(d,n),n.control=d))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const l=this.form.get(n.path);(function Fi(s,r){Wc(s,r)})(l,n),l.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const l=this.form.get(n.path);l&&function Rg(s,r){return Kr(s,r)}(l,n)&&l.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wc(this.form,this),this._oldForm&&Kr(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Te,10),o.Y36(Dr,10))},s.\u0275dir=o.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(n,l){1&n&&o.NdJ("submit",function(p){return l.onSubmit(p)})("reset",function(){return l.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([Gg]),o.qOj,o.TTD]}),s})();const ef={provide:Sr,useExisting:(0,o.Gpc)(()=>Qa)};let Qa=(()=>{class s extends Sr{constructor(n,l,d,p,E){super(),this._ngModelWarningConfig=E,this._added=!1,this.update=new o.vpe,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(l),this._setAsyncValidators(d),this.valueAccessor=ps(0,p)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),Bo(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Ga(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return s._ngModelWarningSentOnce=!1,s.\u0275fac=function(n){return new(n||s)(o.Y36(dn,13),o.Y36(Te,10),o.Y36(Dr,10),o.Y36(Mn,10),o.Y36(jo,8))},s.\u0275dir=o.lG2({type:s,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[o._Bn([ef]),o.qOj,o.TTD]}),s})();const Mr={provide:Mn,useExisting:(0,o.Gpc)(()=>Xa),multi:!0};function $o(s,r){return null==s?`${r}`:(r&&"object"==typeof r&&(r="Object"),`${s}: ${r}`.slice(0,50))}let Xa=(()=>{class s extends Mi{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const l=this._getOptionId(n);null==l&&this.setProperty("selectedIndex",-1);const d=$o(l,n);this.setProperty("value",d)}registerOnChange(n){this.onChange=l=>{this.value=this._getOptionValue(l),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const l of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(l),n))return l;return null}_getOptionValue(n){const l=function zg(s){return s.split(":")[0]}(n);return this._optionMap.has(l)?this._optionMap.get(l):n}}return s.\u0275fac=function(){let r;return function(l){return(r||(r=o.n5z(s)))(l||s)}}(),s.\u0275dir=o.lG2({type:s,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,l){1&n&&o.NdJ("change",function(p){return l.onChange(p.target.value)})("blur",function(){return l.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([Mr]),o.qOj]}),s})(),Zg=(()=>{class s{constructor(n,l,d){this._element=n,this._renderer=l,this._select=d,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue($o(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Xa,9))},s.\u0275dir=o.lG2({type:s,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),s})();const lu={provide:Mn,useExisting:(0,o.Gpc)(()=>du),multi:!0};function cu(s,r){return null==s?`${r}`:("string"==typeof r&&(r=`'${r}'`),r&&"object"==typeof r&&(r="Object"),`${s}: ${r}`.slice(0,50))}let du=(()=>{class s extends Mi{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let l;if(this.value=n,Array.isArray(n)){const d=n.map(p=>this._getOptionId(p));l=(p,E)=>{p._setSelected(d.indexOf(E.toString())>-1)}}else l=(d,p)=>{d._setSelected(!1)};this._optionMap.forEach(l)}registerOnChange(n){this.onChange=l=>{const d=[],p=l.selectedOptions;if(void 0!==p){const E=p;for(let A=0;A{class s{constructor(n,l,d){this._element=n,this._renderer=l,this._select=d,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(cu(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(cu(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(du,9))},s.\u0275dir=o.lG2({type:s,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),s})();const Bn={provide:Te,useExisting:(0,o.Gpc)(()=>Go),multi:!0};let Go=(()=>{class s{constructor(){this._validator=Ii}ngOnChanges(n){"pattern"in n&&(this._createValidator(),this._onChange&&this._onChange())}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}_createValidator(){this._validator=Uc(this.pattern)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275dir=o.lG2({type:s,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,l){2&n&&o.uIk("pattern",l.pattern?l.pattern:null)},inputs:{pattern:"pattern"},features:[o._Bn([Bn]),o.TTD]}),s})(),pu=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[Kh]]}),s})(),bs=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[pu]}),s})(),gu=(()=>{class s{static withConfig(n){return{ngModule:s,providers:[{provide:jo,useValue:n.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[pu]}),s})(),lf=(()=>{class s{group(n,l=null){const d=this._reduceControls(n);let A,p=null,E=null;return null!=l&&(function t_(s){return void 0!==s.asyncValidators||void 0!==s.validators||void 0!==s.updateOn}(l)?(p=null!=l.validators?l.validators:null,E=null!=l.asyncValidators?l.asyncValidators:null,A=null!=l.updateOn?l.updateOn:void 0):(p=null!=l.validator?l.validator:null,E=null!=l.asyncValidator?l.asyncValidator:null)),new ki(d,{asyncValidators:E,updateOn:A,validators:p})}control(n,l,d){return new ys(n,l,d)}array(n,l,d){const p=n.map(E=>this._createControl(E));return new tu(p,l,d)}_reduceControls(n){const l={};return Object.keys(n).forEach(d=>{l[d]=this._createControl(n[d])}),l}_createControl(n){return zh(n)||Ho(n)||Ng(n)?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac,providedIn:gu}),s})(),Dy=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[g.ez,bs]]}),s})(),ar=(()=>{class s{constructor(){this.registry=new Map}register(n){this.registry.set(n.key,n)}get(n){return this.registry.get(n)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const Ds="hidden",In="text",r_="textarea",cf="password",ws="checkbox",_u="select",il="multi-select",cr="single";class sl{static getValidators(r){const n=new Array;return r.required&&n.push(wr.required),r.min&&n.push(wr.min(r.min)),r.max&&n.push(wr.max(r.max)),r.minLength&&n.push(wr.minLength(r.minLength)),r.maxLength&&n.push(wr.maxLength(r.maxLength)),wr.compose(n)}}let o_=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275dir=o.lG2({type:s,inputs:{slot:"slot",form:"form"}}),s})();class ol{constructor(r){"string"==typeof r&&(this.key=this.value=r),"object"==typeof r&&(this.key=r.key,this.value=r.value)}static byKey(r,n){return n.find(l=>l.key===r)}static byValue(r,n){return n.find(l=>l.value===r)}}let df=(()=>{class s{constructor(n){this._elementRef=n,this.clickOutside=new o.vpe}onClick(n,l){l&&(this._elementRef.nativeElement.contains(l)||this.clickOutside.emit(n))}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.SBq))},s.\u0275dir=o.lG2({type:s,selectors:[["","tw-clickoutside",""]],hostBindings:function(n,l){1&n&&o.NdJ("click",function(p){return l.onClick(p,p.target)},!1,o.evT)},outputs:{clickOutside:"clickOutside"}}),s})(),yu=(()=>{class s{transform(n,l){return n&&l?n.filter(d=>this.applyFilter(d,l)):n}applyFilter(n,l){return!(l.value&&n.value&&-1===n.value.toLowerCase().indexOf(l.value.toLowerCase()))}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275pipe=o.Yjl({name:"tw2ListFilter",type:s,pure:!1}),s})();function a_(s,r){1&s&&(o.TgZ(0,"span",7),o.SDv(1,8),o.qZA())}function vu(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"span",9),o._uU(1),o.TgZ(2,"a",10),o.NdJ("click",function(){const p=o.CHM(n).$implicit;return o.oxw().onItemClick(p)}),o._uU(3,"x"),o.qZA(),o.qZA()}if(2&s){const n=r.$implicit;o.xp6(1),o.hij(" ",n.value," ")}}function l_(s,r){1&s&&(o.TgZ(0,"div"),o.SDv(1,19),o.qZA())}function c_(s,r){1&s&&(o.TgZ(0,"div"),o.SDv(1,20),o.qZA())}function u_(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"li",16),o.NdJ("click",function(){return o.CHM(n),o.oxw(2).toggleSelectAll()}),o._UZ(1,"input",17),o.YNc(2,l_,2,0,"div",18),o.YNc(3,c_,2,0,"div",18),o.qZA()}if(2&s){const n=o.oxw(2);o.xp6(1),o.Q6J("checked",n.isAllItemsSelected())("disabled",n.disabled),o.xp6(1),o.Q6J("ngIf",!n.isAllItemsSelected()),o.xp6(1),o.Q6J("ngIf",n.isAllItemsSelected())}}function d_(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"li",21),o.TgZ(1,"input",22),o.NdJ("ngModelChange",function(d){return o.CHM(n),o.oxw(2).filter.value=d})("ngModelChange",function(d){return o.CHM(n),o.oxw(2).onFilterTextChange(d)}),o.qZA(),o.qZA()}if(2&s){const n=o.oxw(2);o.xp6(1),o.Q6J("placeholder","search")("readOnly",n.disabled)("ngModel",n.filter.value)}}function h_(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"li",21),o._UZ(1,"input",23,24),o.TgZ(3,"button",25),o.NdJ("click",function(){o.CHM(n);const d=o.MAs(2);return o.oxw(2).addItem(d.value)}),o.TgZ(4,"strong"),o._uU(5,"+"),o.qZA(),o.qZA(),o.qZA()}if(2&s){const n=o.oxw(2);o.xp6(1),o.Q6J("placeholder","add item")("readOnly",n.disabled)}}function f_(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"li",26),o.NdJ("click",function(){const p=o.CHM(n).$implicit;return o.oxw(2).onItemClick(p)})("keydown",function(d){const E=o.CHM(n).$implicit;return o.oxw(2).onKeyDown(d,E)}),o._UZ(1,"input",27),o.TgZ(2,"div"),o._uU(3),o.qZA(),o.qZA()}if(2&s){const n=r.$implicit,l=o.oxw(2);o.xp6(1),o.Q6J("checked",l.isSelected(n))("disabled",l.disabled||!l.isSelected(n)),o.xp6(2),o.Oqu(n.value)}}function al(s,r){1&s&&(o.TgZ(0,"li",28),o.TgZ(1,"h5"),o.SDv(2,29),o.qZA(),o.qZA())}function Ss(s,r){if(1&s&&(o.TgZ(0,"div",11),o.TgZ(1,"ul"),o.YNc(2,u_,4,4,"li",12),o.YNc(3,d_,2,3,"li",13),o.YNc(4,h_,6,2,"li",13),o.qZA(),o.TgZ(5,"ul"),o.YNc(6,f_,4,3,"li",14),o.ALo(7,"tw2ListFilter"),o.YNc(8,al,3,0,"li",15),o.qZA(),o.qZA()),2&s){const n=o.oxw();o.xp6(2),o.Q6J("ngIf",!n.singleSelection),o.xp6(1),o.Q6J("ngIf",n.listItems.length>0),o.xp6(1),o.Q6J("ngIf",n.allowAddingItems),o.xp6(2),o.Q6J("ngForOf",o.xi3(7,5,n.sortedListItems,n.filter)),o.xp6(2),o.Q6J("ngIf",0==n.listItems.length)}}const p_={provide:Mn,useExisting:(0,o.Gpc)(()=>ll),multi:!0},Ts=()=>{},zo="key",As="value";let ll=(()=>{class s{constructor(){this.listItems=[],this.filter=new ol(this.data),this.selectedItems=[],this.isDropdownOpen=!1,this.disabled=!1,this.singleSelection=!1,this.bindingBehavior="key",this.allowAddingItems=!1,this.filterChange=new o.vpe,this.dropDownClose=new o.vpe,this.onSelect=new o.vpe,this.selectAll=new o.vpe,this.deSelect=new o.vpe,this.deSelectAll=new o.vpe,this.onTouchedCallback=Ts,this.onChangeCallback=Ts}get sortedSelectedItems(){return this.selectedItems.sort((n,l)=>n.keyl.key?1:0)}get sortedListItems(){return this.listItems.sort((n,l)=>n.keyl.key?1:0)}set data(n){this.listItems=n?n.map(l=>new ol(l)):[]}onFilterTextChange(n){this.filterChange.emit(n)}onKeyDown(n,l){32===n.keyCode&&(n.preventDefault(),this.onItemClick(l))}onItemClick(n){this.disabled||(this.isSelected(n)?this.removeSelected(n):this.addSelected(n),this.singleSelection&&this.closeDropdown())}writeValue(n){void 0!==n&&(null!=n&&n.length>0?(Array.isArray(n)||(n=[n]),this.selectedItems=n.map(this.bindingBehavior===zo?l=>ol.byKey(l,this.listItems):l=>ol.byValue(l,this.listItems))):this.selectedItems=[],this.onChangeCallback(n))}registerOnChange(n){this.onChangeCallback=n}registerOnTouched(n){this.onTouchedCallback=n}setDisabledState(n){this.disabled=n}onTouched(){this.closeDropdown(),this.onTouchedCallback()}shortCuts(n){13===n.keyCode&&(n.preventDefault(),this.toggleDropdown(n))}trackByFn(n,l){return l.key}isSelected(n){let l=!1;return this.selectedItems.forEach(d=>{n.key===d.key&&(l=!0)}),l}isAllItemsSelected(){return this.listItems.length===this.selectedItems.length}showButton(){return!this.singleSelection}addItem(n){const l=new ol(n);this.listItems.push(l)}addSelected(n){this.singleSelection?(this.selectedItems=[],this.selectedItems.push(n)):this.selectedItems.push(n),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onSelect.emit(this.emittedValue(n))}removeSelected(n){this.selectedItems.forEach(l=>{n.key===l.key&&this.selectedItems.splice(this.selectedItems.indexOf(l),1)}),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.deSelect.emit(this.emittedValue(n))}emittedValue(n){if(this.singleSelection)return Array.isArray(n)&&n.length>0?this.bindingBehavior===zo?n[0].key:n[0].value:Array.isArray(n)?null:this.bindingBehavior===zo?n.key:n.value;const l=[];return Array.isArray(n)?n.map(d=>{l.push(this.bindingBehavior===zo?d.key:d.value)}):n&&l.push(this.bindingBehavior===zo?n.key:n.value),l}toggleDropdown(n){n.preventDefault(),(!this.disabled||!this.singleSelection)&&(this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen||this.dropDownClose.emit())}closeDropdown(){this.isDropdownOpen=!1,this.filter.value="",this.dropDownClose.emit()}toggleSelectAll(){if(this.disabled)return!1;this.isAllItemsSelected()?(this.selectedItems=[],this.deSelectAll.emit(this.emittedValue(this.selectedItems))):(this.selectedItems=this.listItems.slice(),this.selectAll.emit(this.emittedValue(this.selectedItems))),this.onChangeCallback(this.emittedValue(this.selectedItems))}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-multi-select"]],hostBindings:function(n,l){1&n&&o.NdJ("blur",function(){return l.onTouched()})("keydown",function(p){return l.shortCuts(p)},!1,o.Jf7)},inputs:{singleSelection:"singleSelection",bindingBehavior:"bindingBehavior",allowAddingItems:"allowAddingItems",data:"data"},outputs:{filterChange:"filterChange",dropDownClose:"dropDownClose",onSelect:"onSelect",selectAll:"selectAll",deSelect:"deSelect",deSelectAll:"deSelectAll"},features:[o._Bn([p_])],decls:8,vars:7,consts:function(){let r,n,l,d;return r=$localize`:␟bed964343d091227840225218f5a842b0a92a2e6␟2128281321884182008:select items`,n=$localize`:␟64a31389d384f6f12001f0f79281b044496f6671␟3168852737904108032:select all`,l=$localize`:␟e3897d9ce000709991391dc75185b8bd9eedf7d6␟4134355673206848669:unselect all`,d=$localize`:␟a20b711473ad9abe188c2a3a938eeab4defd4ce7␟4459924971192057766:No data!`,[["tabindex","0","tw-clickoutside","",1,"multiselect-dropdown",3,"blur","clickOutside"],["tabindex","-1",1,"dropdown-btn",3,"click"],["class","no-item-selected",4,"ngIf"],["class","selected-item",4,"ngFor","ngForOf","ngForTrackBy"],[2,"float","right !important","padding-right","4px"],[3,"ngClass"],["class","dropdown-list",4,"ngIf"],[1,"no-item-selected"],r,[1,"selected-item"],[2,"padding-top","2px","padding-left","2px","color","white",3,"click"],[1,"dropdown-list"],["class","multiselect-item-checkbox","style","border-bottom: 1px solid #ccc","tabindex","0",3,"click",4,"ngIf"],["class","filter-textbox",4,"ngIf"],["class","multiselect-item-checkbox","tabindex","0",3,"click","keydown",4,"ngFor","ngForOf"],["class","no-data",4,"ngIf"],["tabindex","0",1,"multiselect-item-checkbox",2,"border-bottom","1px solid #ccc",3,"click"],["type","checkbox","aria-label","multiselect-select-all",3,"checked","disabled"],[4,"ngIf"],n,l,[1,"filter-textbox"],["type","text","aria-label","multiselect-search",3,"placeholder","readOnly","ngModel","ngModelChange"],["type","text","aria-label","multiselect-add-listitem",3,"placeholder","readOnly"],["addListItem",""],["type","button",3,"click"],["tabindex","0",1,"multiselect-item-checkbox",3,"click","keydown"],["type","checkbox","aria-label","multiselect-item",3,"checked","disabled"],[1,"no-data"],d]},template:function(n,l){1&n&&(o.TgZ(0,"div",0),o.NdJ("blur",function(){return l.onTouched()})("clickOutside",function(){return l.closeDropdown()}),o.TgZ(1,"div"),o.TgZ(2,"span",1),o.NdJ("click",function(p){return l.toggleDropdown(p)}),o.YNc(3,a_,2,0,"span",2),o.YNc(4,vu,4,1,"span",3),o.TgZ(5,"span",4),o._UZ(6,"span",5),o.qZA(),o.qZA(),o.qZA(),o.YNc(7,Ss,9,8,"div",6),o.qZA()),2&n&&(o.xp6(1),o.ekj("disabled",l.disabled),o.xp6(2),o.Q6J("ngIf",0==l.selectedItems.length),o.xp6(1),o.Q6J("ngForOf",l.sortedSelectedItems)("ngForTrackBy",l.trackByFn),o.xp6(2),o.Q6J("ngClass",l.isDropdownOpen?"dropdown-up":"dropdown-down"),o.xp6(1),o.Q6J("ngIf",l.isDropdownOpen))},directives:[df,g.O5,g.sg,g.mk,sr,Oi,Ar],pipes:[yu],encapsulation:2}),s})();const ur={provide:Mn,useExisting:(0,o.Gpc)(()=>Ms),multi:!0};let Ms=(()=>{class s{constructor(n,l){this._renderer=n,this._elementRef=l,this.onChange=d=>{},this.onTouched=()=>{}}writeValue(n){const l=new Date(n);this._renderer.setProperty(this._elementRef.nativeElement,"valueAsDate",l)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.Qsj),o.Y36(o.SBq))},s.\u0275dir=o.lG2({type:s,selectors:[["","twUseValueAsDate",""]],hostBindings:function(n,l){1&n&&o.NdJ("input",function(p){return l.onChange(p.target.valueAsDate)})("blur",function(){return l.onTouched()})},features:[o._Bn([ur])]}),s})();function tn(s,r){if(1&s&&(o.TgZ(0,"label"),o._uU(1),o.qZA()),2&s){const n=o.oxw();o.uIk("for",n.editor.key),o.xp6(1),o.hij(" ",n.editor.label," ")}}function Li(s,r){if(1&s&&o._UZ(0,"input",11),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key)}}function cl(s,r){if(1&s&&o._UZ(0,"input",12),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key)}}function Un(s,r){if(1&s&&o._UZ(0,"input",13),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key)}}function Cu(s,r){if(1&s&&(o.TgZ(0,"label"),o._UZ(1,"input",14),o._uU(2),o.qZA()),2&s){const n=o.oxw();o.xp6(1),o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key),o.xp6(1),o.hij(" ",n.editor.label," ")}}function Is(s,r){1&s&&o._UZ(0,"option",18)}function Os(s,r){if(1&s&&(o.TgZ(0,"option",19),o._uU(1),o.qZA()),2&s){const n=r.$implicit;o.Q6J("ngValue",n.key),o.xp6(1),o.hij(" ",n.value," ")}}function xs(s,r){if(1&s&&(o.TgZ(0,"select",15),o.YNc(1,Is,1,0,"option",16),o.YNc(2,Os,2,2,"option",17),o.qZA()),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.xp6(1),o.Q6J("ngIf",!n.editor.required),o.xp6(1),o.Q6J("ngForOf",n.editor.options)}}function Rs(s,r){if(1&s&&o._UZ(0,"tw-multi-select",20),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key)("singleSelection",n.editor.singleSelection)("bindingBehavior",n.editor.bindingBehaviour)("allowAddingItems",n.editor.allowAddingItems)("data",n.editor.options)}}function Ps(s,r){if(1&s&&o._UZ(0,"input",21),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key)}}function Fs(s,r){if(1&s&&(o.TgZ(0,"textarea",15),o._uU(1," "),o.qZA()),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key)}}function ks(s,r){if(1&s&&o._UZ(0,"input",22),2&s){const n=o.oxw();o.Q6J("formControlName",n.editor.key),o.uIk("id",n.editor.key)}}function Ns(s,r){if(1&s&&(o.TgZ(0,"div"),o.SDv(1,24),o.qZA()),2&s){const n=o.oxw(2);o.xp6(1),o.pQV(n.editor.label),o.QtT(1)}}function Ls(s,r){if(1&s&&(o.TgZ(0,"div"),o.SDv(1,25),o.qZA()),2&s){const n=o.oxw(2);o.xp6(1),o.pQV(n.editor.label)(n.editor.min),o.QtT(1)}}function hf(s,r){if(1&s&&(o.TgZ(0,"div"),o.SDv(1,26),o.qZA()),2&s){const n=o.oxw(2);o.xp6(1),o.pQV(n.editor.label)(n.editor.max),o.QtT(1)}}function ff(s,r){if(1&s&&(o.TgZ(0,"div"),o.SDv(1,27),o.qZA()),2&s){const n=o.oxw(2);o.xp6(1),o.pQV(n.editor.label)(n.editor.minLength),o.QtT(1)}}function pf(s,r){if(1&s&&(o.TgZ(0,"div"),o.SDv(1,28),o.qZA()),2&s){const n=o.oxw(2);o.xp6(1),o.pQV(n.editor.label)(n.editor.maxLength),o.QtT(1)}}function gf(s,r){if(1&s&&(o.TgZ(0,"div",23),o.YNc(1,Ns,2,1,"div",1),o.YNc(2,Ls,2,2,"div",1),o.YNc(3,hf,2,2,"div",1),o.YNc(4,ff,2,2,"div",1),o.YNc(5,pf,2,2,"div",1),o.qZA()),2&s){const n=o.oxw();o.xp6(1),o.Q6J("ngIf",n.control(n.editor.key).hasError("required")),o.xp6(1),o.Q6J("ngIf",n.control(n.editor.key).hasError("min")),o.xp6(1),o.Q6J("ngIf",n.control(n.editor.key).hasError("max")),o.xp6(1),o.Q6J("ngIf",n.control(n.editor.key).hasError("minlength")),o.xp6(1),o.Q6J("ngIf",n.control(n.editor.key).hasError("maxlength"))}}const _f=function(s,r){return{"form-group":s,checkbox:r}};let Eu=(()=>{class s{constructor(){this.style="editor",this.hideLabel=!1}control(n){return this.form.get(n)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-editor"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.style)},inputs:{hideLabel:"hideLabel",editor:"editor",form:"form"},decls:12,vars:16,consts:function(){let r,n,l,d,p;return r=$localize`:␟509ef24ac7fc6168f288e398135fcda032a50416␟925364148717660736: ${"\ufffd0\ufffd"}:INTERPOLATION: required. `,n=$localize`:␟4224bb24912d5c94e5a01b9f2319eb262a1181ce␟7232929701133107067: ${"\ufffd0\ufffd"}:INTERPOLATION: must not be lower than ${"\ufffd1\ufffd"}:INTERPOLATION_1:. `,l=$localize`:␟e15e6f057c5ca734ef9f4a5cfee6463e49cfc6dc␟1648611666212555466: ${"\ufffd0\ufffd"}:INTERPOLATION: must not be greater than ${"\ufffd1\ufffd"}:INTERPOLATION_1:. `,d=$localize`:␟87a73832a69b06e6bd02de9fd79f4d77bb294ab2␟3761085172444266095: ${"\ufffd0\ufffd"}:INTERPOLATION: must be at least ${"\ufffd1\ufffd"}:INTERPOLATION_1: characters in length. `,p=$localize`:␟bd5ef74c65f72e8472162503c757ce5e9cb5a16d␟8121950195437709416: ${"\ufffd0\ufffd"}:INTERPOLATION: must not be longer than ${"\ufffd1\ufffd"}:INTERPOLATION_1: characters. `,[[3,"ngSwitch","formGroup","ngClass"],[4,"ngIf"],["type","hidden",3,"formControlName",4,"ngSwitchCase"],["type","number","pattern","[0-9.,]*","inputmode","numeric",3,"formControlName",4,"ngSwitchCase"],["type","password",3,"formControlName",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"formControlName",4,"ngSwitchCase"],[3,"formControlName","singleSelection","bindingBehavior","allowAddingItems","data",4,"ngSwitchCase"],["type","date","twUseValueAsDate","",3,"formControlName",4,"ngSwitchCase"],["type","text",3,"formControlName",4,"ngSwitchDefault"],["class","form__validation--error",4,"ngIf"],["type","hidden",3,"formControlName"],["type","number","pattern","[0-9.,]*","inputmode","numeric",3,"formControlName"],["type","password",3,"formControlName"],["type","checkbox",3,"formControlName"],[3,"formControlName"],[3,"value",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value"],[3,"ngValue"],[3,"formControlName","singleSelection","bindingBehavior","allowAddingItems","data"],["type","date","twUseValueAsDate","",3,"formControlName"],["type","text",3,"formControlName"],[1,"form__validation--error"],r,n,l,d,p]},template:function(n,l){1&n&&(o.TgZ(0,"div",0),o.YNc(1,tn,2,2,"label",1),o.YNc(2,Li,1,2,"input",2),o.YNc(3,cl,1,2,"input",3),o.YNc(4,Un,1,2,"input",4),o.YNc(5,Cu,3,3,"label",5),o.YNc(6,xs,3,3,"select",6),o.YNc(7,Rs,1,5,"tw-multi-select",7),o.YNc(8,Ps,1,2,"input",8),o.YNc(9,Fs,2,2,"textarea",6),o.YNc(10,ks,1,2,"input",9),o.YNc(11,gf,6,5,"div",10),o.qZA()),2&n&&(o.Q6J("ngSwitch",l.editor.type)("formGroup",l.form)("ngClass",o.WLB(13,_f,"checkbox"!==l.editor.type,"checkbox"===l.editor.type)),o.xp6(1),o.Q6J("ngIf",!l.hideLabel&&"checkbox"!==l.editor.type&&"hidden"!==l.editor.type),o.xp6(1),o.Q6J("ngSwitchCase","hidden"),o.xp6(1),o.Q6J("ngSwitchCase","number"),o.xp6(1),o.Q6J("ngSwitchCase","password"),o.xp6(1),o.Q6J("ngSwitchCase","checkbox"),o.xp6(1),o.Q6J("ngSwitchCase","select"),o.xp6(1),o.Q6J("ngSwitchCase","multi-select"),o.xp6(1),o.Q6J("ngSwitchCase","date"),o.xp6(1),o.Q6J("ngSwitchCase","textarea"),o.xp6(2),o.Q6J("ngIf",l.control(l.editor.key)&&l.control(l.editor.key).invalid))},directives:[g.RF,zc,Jr,g.mk,g.O5,g.n9,sr,Oi,Qa,iu,Go,Vc,Xa,Zg,tl,g.sg,ll,Ms,g.ED],encapsulation:2}),s})();class bu{constructor(r,n){this.key=r,this.component=n}}let ul=(()=>{class s{constructor(){this._registry=new Map}register(n){this._registry.has(n.key)||this._registry.set(n.key,n)}exists(n){return this._registry.has(n)}get(n){const l=this._registry.get(n);if(!l)throw new Error(`ComponentMetaData for key ${n} was not found!`);return l}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const mf=["slotContent"];function g_(s,r){}let yf=(()=>{class s{constructor(n){this.registry=n}ngOnInit(){if(this.slot){const l=this.registry.get(this.slot.type?this.slot.type:cr);l&&(this.slotContentRef=this.slotContent.createComponent(l.component),this.slotContentRef.instance.slot=this.slot,this.slotContentRef.instance.form=this.form)}}ngOnDestroy(){this.slotContentRef&&(delete this.slotContentRef.instance.slot,delete this.slotContentRef.instance.form,this.slotContentRef.destroy())}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(ul))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-slothost"]],viewQuery:function(n,l){if(1&n&&o.Gf(mf,7,o.s_b),2&n){let d;o.iGM(d=o.CRH())&&(l.slotContent=d.first)}},inputs:{slot:"slot",form:"form"},decls:2,vars:0,consts:[["slotContent",""]],template:function(n,l){1&n&&o.YNc(0,g_,0,0,"ng-template",null,0,o.W1O)},encapsulation:2}),s})();function __(s,r){if(1&s&&o._UZ(0,"tw-editor",3),2&s){const n=r.$implicit,l=o.oxw(3);o.Q6J("editor",n)("form",l.form)}}function vf(s,r){if(1&s&&(o.ynx(0),o.YNc(1,__,1,2,"tw-editor",2),o.BQk()),2&s){const n=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",n.slot.editors)}}function Cf(s,r){if(1&s){const n=o.EpF();o.ynx(0),o.TgZ(1,"fieldset"),o.TgZ(2,"legend",1),o.NdJ("click",function(){return o.CHM(n),o.oxw().toggle()}),o._uU(3),o.qZA(),o.YNc(4,vf,2,1,"ng-container",0),o.qZA(),o.BQk()}if(2&s){const n=o.oxw();o.xp6(3),o.Oqu(n.slot.title),o.xp6(1),o.Q6J("ngIf",!n.collapsed)}}function m_(s,r){if(1&s&&(o.ynx(0),o._UZ(1,"tw-slothost",5),o.BQk()),2&s){const n=r.$implicit,l=o.oxw(2);o.xp6(1),o.Q6J("slot",n)("form",l.form.get(n.key))}}function y_(s,r){if(1&s&&(o.ynx(0),o.YNc(1,m_,2,2,"ng-container",4),o.BQk()),2&s){const n=o.oxw();o.xp6(1),o.Q6J("ngForOf",n.slot.children)}}let dl=(()=>{class s extends o_{constructor(){super(...arguments),this.collapsed=!1}toggle(){this.collapsed=!this.collapsed}}return s.\u0275fac=function(){let r;return function(l){return(r||(r=o.n5z(s)))(l||s)}}(),s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-slot"]],features:[o.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[1,"title",3,"click"],[3,"editor","form",4,"ngFor","ngForOf"],[3,"editor","form"],[4,"ngFor","ngForOf"],[3,"slot","form"]],template:function(n,l){1&n&&(o.YNc(0,Cf,5,2,"ng-container",0),o.YNc(1,y_,2,1,"ng-container",0)),2&n&&(o.Q6J("ngIf",l.slot&&l.slot.editors&&l.slot.editors.length>0),o.xp6(1),o.Q6J("ngIf",l.slot&&l.slot.children&&l.slot.children.length>0))},directives:[g.O5,g.sg,Eu,yf],encapsulation:2}),s})();function v_(s,r){if(1&s&&(o.TgZ(0,"td"),o._UZ(1,"tw-editor",7),o.qZA()),2&s){const n=r.$implicit,l=o.oxw().index,d=o.oxw(2);o.xp6(1),o.Q6J("hideLabel",!0)("editor",n)("form",d.rows.at(l))}}function Ef(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"tr"),o.YNc(1,v_,2,3,"td",5),o.TgZ(2,"td"),o.TgZ(3,"button",6),o.NdJ("click",function(){const p=o.CHM(n).index;return o.oxw(2).remove(p)}),o.TgZ(4,"strong"),o._uU(5,"-"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&s){const n=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",n.slot.editors)}}function C_(s,r){if(1&s){const n=o.EpF();o.ynx(0),o.TgZ(1,"div",2),o.TgZ(2,"button",3),o.NdJ("click",function(){return o.CHM(n),o.oxw().add()}),o.TgZ(3,"strong"),o._uU(4,"+"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(5,"div"),o.TgZ(6,"table",4),o.TgZ(7,"tbody"),o.YNc(8,Ef,6,1,"tr",5),o.qZA(),o.qZA(),o.qZA(),o.BQk()}if(2&s){const n=o.oxw();o.xp6(6),o.Q6J("formGroup",n.form),o.xp6(2),o.Q6J("ngForOf",n.rows.controls)}}let E_=(()=>{class s extends dl{constructor(n){super(),this._fb=n}get rows(){return this.form}add(){const n=this.createRow(this.slot);this.rows.push(n)}remove(n){this.rows.removeAt(n)}createRow(n){const l=this._fb.group({});return n.editors.forEach(d=>{l.addControl(d.key,new ys(void 0,sl.getValidators(d)))}),l}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(lf))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-arrayslot"]],features:[o.qOj],decls:4,vars:2,consts:function(){let r,n;return r=$localize`:␟a11ec4e640f241329943237d2a3cceaa4823658e␟1059784693423848532:add`,n=$localize`:␟4da487aec5a29ce4372e7b512227cd665b01fe6f␟2123171795960509943:remove`,[[1,"title",3,"click"],[4,"ngIf"],[1,"button__bar"],["type","button","title",r,1,"button--secondary",3,"click"],[3,"formGroup"],[4,"ngFor","ngForOf"],["type","button","title",n,1,"button--secondary","button--squared",3,"click"],[3,"hideLabel","editor","form"]]},template:function(n,l){1&n&&(o.TgZ(0,"fieldset"),o.TgZ(1,"legend",0),o.NdJ("click",function(){return l.toggle()}),o._uU(2),o.qZA(),o.YNc(3,C_,9,2,"ng-container",1),o.qZA()),2&n&&(o.xp6(2),o.Oqu(l.slot.title),o.xp6(1),o.Q6J("ngIf",!l.collapsed))},directives:[g.O5,zc,Jr,g.sg,Eu],encapsulation:2}),s})(),hl=(()=>{class s{constructor(n){this.registry=n,this.registry.register(new bu(cr,dl)),this.registry.register(new bu("array",E_))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(ul))},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[ar,ul],imports:[[g.ez,gu,Dy],gu]}),s})(),Vs=(()=>{class s{constructor(n,l){this._fb=n,this._slotRegistry=l}toGroup(n,l){const d=this.getSlot(n);return this.toGroupRecursive(d,l)}getSlot(n){return this._slotRegistry.get(n)}toGroupRecursive(n,l){const d=this._fb.group({});if(Array.isArray(l)){const E=this._fb.array([]);for(let A=0;A{j.addControl(X.key,new ys({value:l[A][X.key],disabled:!0===X.isReadOnly},sl.getValidators(X)))}),E.push(j)}return E}return n.editors.forEach(E=>{d.addControl(E.key,new ys({value:l[E.key],disabled:!0===E.isReadOnly},sl.getValidators(E)))}),n.children&&n.children.length>0&&n.children.forEach(E=>{d.addControl(E.key,this.toGroupRecursive(E,l[E.key]))}),d}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(lf),o.LFG(ar))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();function Du(s,r){if(1&s&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&s){const n=r.$implicit;o.xp6(1),o.Oqu(n)}}function wu(s,r){if(1&s&&(o.TgZ(0,"ul",1),o.YNc(1,Du,2,1,"li",2),o.qZA()),2&s){const n=o.oxw();o.xp6(1),o.Q6J("ngForOf",n.errors)}}let b_=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-validation-summary"]],inputs:{errors:"errors"},decls:1,vars:1,consts:[["class","form__validation-summary",4,"ngIf"],[1,"form__validation-summary"],[4,"ngFor","ngForOf"]],template:function(n,l){1&n&&o.YNc(0,wu,2,1,"ul",0),2&n&&o.Q6J("ngIf",l.errors)},directives:[g.O5,g.sg],encapsulation:2}),s})();function wy(s,r){if(1&s&&(o.TgZ(0,"button",6),o.SDv(1,7),o.qZA()),2&s){const n=o.oxw();o.Q6J("disabled",!n.form.valid),o.xp6(1),o.pQV(n.getSaveLabel),o.QtT(1)}}function Sy(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"button",8),o.NdJ("click",function(){return o.CHM(n),o.oxw().onReset()}),o.SDv(1,9),o.qZA()}}function Ty(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"button",8),o.NdJ("click",function(){return o.CHM(n),o.oxw().onDelete()}),o.SDv(1,10),o.qZA()}}let Vi=(()=>{class s{constructor(n){this.formdefService=n,this.form=new ki({}),this.useInputForm=!1,this.showSave=!1,this.showCancel=!1,this.showDelete=!1,this.submitted=new o.vpe,this.resetted=new o.vpe,this.deleted=new o.vpe,this.class="form"}set viewModel(n){n&&(this.model=n,this.ngOnInit())}get viewModel(){return this.model}get getSaveLabel(){return this.saveTitle?this.saveTitle:"Save"}get formValue(){return this.form.value}get formIsValid(){return this.form.valid}ngOnInit(){this.errors=[],this.viewModel&&(this.useInputForm||(this.form=this.formdefService.toGroup(this.key,this.viewModel)),this.slot=this.formdefService.getSlot(this.key))}onSubmit(){this.submitted.next(this.form.value)}onReset(){this.resetted.next(this.form.value)}onDelete(){this.deleted.next(this.form.value)}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Vs))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-formdef"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.class)},inputs:{key:"key",viewModel:"viewModel",form:"form",useInputForm:"useInputForm",slot:"slot",showSave:"showSave",saveTitle:"saveTitle",showCancel:"showCancel",showDelete:"showDelete",errors:"errors"},outputs:{submitted:"submitted",resetted:"resetted",deleted:"deleted"},features:[o._Bn([Vs])],decls:7,vars:7,consts:function(){let r,n,l;return r=$localize`:␟d4d92b50f8daf0648d9fbda145f606d4e2495453␟6128633059669858834:${"\ufffd0\ufffd"}:INTERPOLATION:`,n=$localize`:␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,l=$localize`:␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,[[3,"formGroup","ngSubmit"],[3,"slot","form"],[3,"errors"],[1,"button__bar"],["type","submit",3,"disabled",4,"ngIf"],["type","button","class","button--secondary",3,"click",4,"ngIf"],["type","submit",3,"disabled"],r,["type","button",1,"button--secondary",3,"click"],n,l]},template:function(n,l){1&n&&(o.TgZ(0,"form",0),o.NdJ("ngSubmit",function(){return l.onSubmit()}),o._UZ(1,"tw-slot",1),o._UZ(2,"tw-validation-summary",2),o.TgZ(3,"div",3),o.YNc(4,wy,2,2,"button",4),o.YNc(5,Sy,2,0,"button",5),o.YNc(6,Ty,2,0,"button",5),o.qZA(),o.qZA()),2&n&&(o.Q6J("formGroup",l.form),o.xp6(1),o.Q6J("slot",l.slot)("form",l.form),o.xp6(1),o.Q6J("errors",l.errors),o.xp6(2),o.Q6J("ngIf",l.showSave),o.xp6(1),o.Q6J("ngIf",l.showCancel),o.xp6(1),o.Q6J("ngIf",l.showDelete))},directives:[qh,zc,Jr,dl,b_,g.O5],encapsulation:2}),s})(),fl=(()=>{class s{constructor(){this.key=s.KEY,this.type=cr,this.title="Detail",this.editors=[{key:"id",type:Ds,label:"Id",required:!0},{key:"name",type:In,label:"Name",required:!0},{key:"claimValueType",type:_u,required:!0,label:"Value type",options:[{key:"String",value:"String"},{key:"Integer",value:"Integer"},{key:"Double",value:"Double"},{key:"Boolean",value:"Boolean"}]},{key:"description",type:r_,label:"Description",maxLength:500}]}}return s.KEY="ClaimtypeDetailSlot",s})(),Zo=(()=>{class s{constructor(n){this.http=n}claimtypes(){return this.http.get("claimtypes").pipe((0,Ae.K)(this.http.handleError))}claimtype(n){return this.http.get(`claimtypes/${n}`).pipe((0,Ae.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("claimtypes",n).pipe((0,Ae.K)(this.http.handleError))}update(n){return this.http.put("claimtypes",n).pipe((0,Ae.K)(this.http.handleError))}delete(n){return this.http.delete(`claimtypes/${n}`).pipe((0,Ae.K)(this.http.handleError))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ai))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();var Cn=_(655);let Wt=(()=>{class s extends Wr{constructor(n){super(),this.source=n}getType(){return s.KEY}}return s.KEY="RefreshMessage",s})(),Ir=(()=>{class s{constructor(){this.classList=new Array(...["fa","fa-fw"])}set name(n){this.addClass(`fa-${n}`)}set size(n){this.addClass(`fa-${n}x`)}set spin(n){n?this.addClass("fa-spin"):this.removeClass("fa-spin")}addClass(n){this.classList.push(n)}removeClass(n){let l;(l=this.classList.indexOf(n))>=0&&this.classList.splice(l,1)}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-icon"]],inputs:{name:"name",size:"size",spin:"spin"},decls:1,vars:1,consts:[["aria-hidden","true",3,"ngClass"]],template:function(n,l){1&n&&o._UZ(0,"i",0),2&n&&o.Q6J("ngClass",l.classList)},directives:[g.mk],encapsulation:2}),s})();const Su=["*"];function D_(s,r){1&s&&(o.TgZ(0,"div",5),o._UZ(1,"tw-icon",6),o.qZA()),2&s&&(o.xp6(1),o.Q6J("spin",!0))}function bf(s,r){1&s&&o.GkF(0)}const pl=function(s,r){return{$implicit:s,rowIndex:r}};function w_(s,r){if(1&s&&o.YNc(0,bf,1,0,"ng-container",7),2&s){const n=r.$implicit,l=r.index,d=o.oxw();o.Q6J("ngTemplateOutlet",d.itemTemplate)("ngTemplateOutletContext",o.WLB(2,pl,n,l))}}function Df(s,r){1&s&&(o.TgZ(0,"div",8),o.SDv(1,9),o.qZA())}const S_=[[["tw-header"]],[["tw-footer"]]],T_=["tw-header","tw-footer"];let Bs=(()=>{class s{constructor(){this.header="list__header"}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-header"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.header)},ngContentSelectors:Su,decls:1,vars:0,template:function(n,l){1&n&&(o.F$t(),o.Hsn(0))},encapsulation:2}),s})(),A_=(()=>{class s{constructor(){this.footer="list__footer"}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-footer"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.footer)},ngContentSelectors:Su,decls:1,vars:0,template:function(n,l){1&n&&(o.F$t(),o.Hsn(0))},encapsulation:2}),s})(),Us=(()=>{class s{constructor(n){this.template=n}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","twTemplate",""]],inputs:{name:["twTemplate","name"]}}),s})(),Hs=(()=>{class s{get rows(){return this._rows}set rows(n){this._rows=n,this.loading=!1,this.isEmpty||this.ngAfterContentInit()}ngOnInit(){this.loading=!0}ngAfterContentInit(){this.templates.forEach(n=>{this.itemTemplate=n.template})}isEmpty(){const n=this.rows;return null==n||0===n.length}attachRows(n){this.isEmpty()?this.rows=n:n.forEach(l=>{this.rows.push(l)})}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-list"]],contentQueries:function(n,l,d){if(1&n&&(o.Suo(d,Bs,5),o.Suo(d,A_,5),o.Suo(d,Us,4)),2&n){let p;o.iGM(p=o.CRH())&&(l.header=p.first),o.iGM(p=o.CRH())&&(l.footer=p.first),o.iGM(p=o.CRH())&&(l.templates=p)}},inputs:{loading:"loading",rows:"rows"},ngContentSelectors:T_,decls:7,vars:3,consts:function(){let r;return r=$localize`:␟a20b711473ad9abe188c2a3a938eeab4defd4ce7␟4459924971192057766:No data!`,[[1,"list"],["class","list--loading",4,"ngIf"],[1,"list__content"],["ngFor","",3,"ngForOf"],["class","list__content--no-data",4,"ngIf"],[1,"list--loading"],["name","spinner",3,"spin"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list__content--no-data"],r]},template:function(n,l){1&n&&(o.F$t(S_),o.TgZ(0,"div",0),o.Hsn(1),o.YNc(2,D_,2,1,"div",1),o.TgZ(3,"div",2),o.YNc(4,w_,1,5,"ng-template",3),o.YNc(5,Df,2,0,"div",4),o.qZA(),o.Hsn(6,1),o.qZA()),2&n&&(o.xp6(2),o.Q6J("ngIf",l.loading),o.xp6(2),o.Q6J("ngForOf",l.rows),o.xp6(1),o.Q6J("ngIf",l.isEmpty()))},directives:[g.O5,Ir,g.sg,g.tP],encapsulation:2}),s})(),Wo=(()=>{class s{transform(n,l){return n?l?(l=l.toLowerCase(),n.filter(d=>JSON.stringify(d).toLowerCase().includes(l))):n:[]}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275pipe=o.Yjl({name:"filter",type:s,pure:!0}),s})();const wf=function(s){return[".",s]};function Sf(s,r){if(1&s&&(o.TgZ(0,"div",11),o.TgZ(1,"div"),o._uU(2),o.qZA(),o.TgZ(3,"div"),o._uU(4),o.qZA(),o.qZA()),2&s){const n=r.$implicit;o.Q6J("routerLink",o.VKq(4,wf,null==n?null:n.id)),o.uIk("title",null==n?null:n.name),o.xp6(2),o.Oqu(n.name),o.xp6(2),o.Oqu(n.description)}}const Tu=function(){return[".","new"]};let js=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.claimtypes=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"claimtype"===r.source&&this.loadData()}getType(){return Wt.KEY}reload(){this.ngOnInit()}loadData(){this.loadClaimtypes()}loadClaimtypes(){this.claimtypes$=this.service.claimtypes().subscribe(r=>{this.claimtypes=r})}};js.\u0275fac=function(r){return new(r||js)(o.Y36(Zo),o.Y36(Zt))},js.\u0275cmp=o.Xpm({type:js,selectors:[["tw-claimtype-list"]],features:[o._Bn([Zo])],decls:13,vars:7,consts:function(){let s,r;return s=$localize`:␟6645623468a47649f9dfa67ae43a9b42a130a8d6␟6587396195512493624:Claimtypes`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],s,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","claimtype-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(o.TgZ(0,"tw-list",0),o.ALo(1,"filter"),o.TgZ(2,"tw-header"),o.TgZ(3,"h3",1),o.SDv(4,2),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"a",4),o._UZ(7,"tw-icon",5),o.qZA(),o.TgZ(8,"button",6),o.NdJ("click",function(){return n.reload()}),o._UZ(9,"tw-icon",7),o.qZA(),o.qZA(),o.TgZ(10,"div",8),o.TgZ(11,"input",9),o.NdJ("ngModelChange",function(d){return n.searchText=d}),o.qZA(),o.qZA(),o.qZA(),o.YNc(12,Sf,5,6,"ng-template",10),o.qZA()),2&r&&(o.Q6J("rows",o.xi3(1,3,n.claimtypes,n.searchText)),o.xp6(6),o.Q6J("routerLink",o.DdM(6,Tu)),o.xp6(5),o.Q6J("ngModel",n.searchText))},directives:[Hs,Bs,un,Ir,sr,Oi,Ar,Us,Er,er],pipes:[Wo],encapsulation:2}),js=(0,Cn.gn)([Nn],js);let Au=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-claimtype-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(o.TgZ(0,"tw-pane"),o.TgZ(1,"div",0),o._UZ(2,"tw-claimtype-list"),o.qZA(),o.TgZ(3,"div",1),o._UZ(4,"router-outlet"),o.qZA(),o.qZA())},directives:[hs,js,cn],encapsulation:2}),s})(),Bi=class{constructor(r,n,l,d,p,E){this.router=r,this.route=n,this.service=l,this.popup=d,this.element=p,this.messageBus=E,this.key=fl.KEY,this.isNew=!1}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.claimtype$=this.isNew?this.service.create(r).subscribe(n=>{n&&(this.changesSaved(),this.back())}):this.service.update(r).subscribe(()=>{this.changesSaved(),this.back()})}deleted(r){this.isNew||this.popup.open({content:Pa,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.name}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.claimtype$=this.service.delete(r.id).subscribe(p=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["claimtypes"])}init(r){"new"!==r?this.load(r.toString()):this.create()}load(r){this.isNew=!1,this.claimtype$=this.service.claimtype(r).subscribe(n=>{this.key=fl.KEY,this.viewModel=n})}create(){this.isNew=!0,this.viewModel={id:"new",name:void 0,claimValueType:void 0,description:void 0}}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("claimtype"))}};Bi.\u0275fac=function(r){return new(r||Bi)(o.Y36(Et),o.Y36(an),o.Y36(Zo),o.Y36(cs),o.Y36(o.SBq),o.Y36(Zt))},Bi.\u0275cmp=o.Xpm({type:Bi,selectors:[["tw-claimtype-detail"]],features:[o._Bn([Zo])],decls:1,vars:4,consts:[[3,"key","viewModel","showSave","showDelete","submitted","deleted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)},directives:[Vi],encapsulation:2}),Bi=(0,Cn.gn)([Nn],Bi);const Ay=[{path:"claimtypes",component:Au,canActivate:[us],children:[{path:":id",component:Bi}]}];let Yo=(()=>{class s{constructor(n){this.slotRegistry=n,this.slotRegistry.register(new fl)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(ar))},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Zo],imports:[[g.ez,bs,yn.forChild(Ay),br,hl]]}),s})(),gl=(()=>{class s{constructor(){this.key=s.KEY,this.type=cr,this.title="Detail",this.editors=[{key:"id",type:Ds,label:"Id",required:!0},{key:"name",type:In,label:"Name",required:!0}]}}return s.KEY="RoleDetailSlot",s})(),Qr=(()=>{class s{constructor(n){this.http=n}roles(){return this.http.get("roles").pipe((0,Ae.K)(this.http.handleError))}role(n){return this.http.get(`roles/${n}`).pipe((0,Ae.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("roles",n).pipe((0,Ae.K)(this.http.handleError))}update(n){return this.http.put("roles",n).pipe((0,Ae.K)(this.http.handleError))}delete(n){return this.http.delete(`roles/${n}`).pipe((0,Ae.K)(this.http.handleError))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ai))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const Mu=function(s){return[".",s]};function M_(s,r){if(1&s&&(o.TgZ(0,"div",11),o.TgZ(1,"div"),o._uU(2),o.qZA(),o.qZA()),2&s){const n=r.$implicit;o.Q6J("routerLink",o.VKq(3,Mu,null==n?null:n.id)),o.uIk("title",null==n?null:n.name),o.xp6(2),o.Oqu(n.name)}}const Iu=function(){return[".","new"]};let Or=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.roles=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"role"===r.source&&this.loadData()}getType(){return Wt.KEY}reload(){this.ngOnInit()}loadData(){this.loadRoles()}loadRoles(){this.roles$=this.service.roles().subscribe(r=>{this.roles=r})}};Or.\u0275fac=function(r){return new(r||Or)(o.Y36(Qr),o.Y36(Zt))},Or.\u0275cmp=o.Xpm({type:Or,selectors:[["tw-role-list"]],features:[o._Bn([Qr])],decls:13,vars:7,consts:function(){let s,r;return s=$localize`:␟9610487cbeb5796d34d8601b5ac0c0a65f9e1d19␟795890916060309463:Roles`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],s,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","role-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(o.TgZ(0,"tw-list",0),o.ALo(1,"filter"),o.TgZ(2,"tw-header"),o.TgZ(3,"h3",1),o.SDv(4,2),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"a",4),o._UZ(7,"tw-icon",5),o.qZA(),o.TgZ(8,"button",6),o.NdJ("click",function(){return n.reload()}),o._UZ(9,"tw-icon",7),o.qZA(),o.qZA(),o.TgZ(10,"div",8),o.TgZ(11,"input",9),o.NdJ("ngModelChange",function(d){return n.searchText=d}),o.qZA(),o.qZA(),o.qZA(),o.YNc(12,M_,3,5,"ng-template",10),o.qZA()),2&r&&(o.Q6J("rows",o.xi3(1,3,n.roles,n.searchText)),o.xp6(6),o.Q6J("routerLink",o.DdM(6,Iu)),o.xp6(5),o.Q6J("ngModel",n.searchText))},directives:[Hs,Bs,un,Ir,sr,Oi,Ar,Us,Er,er],pipes:[Wo],encapsulation:2}),Or=(0,Cn.gn)([Nn],Or);let Tf=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-role-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(o.TgZ(0,"tw-pane"),o.TgZ(1,"div",0),o._UZ(2,"tw-role-list"),o.qZA(),o.TgZ(3,"div",1),o._UZ(4,"router-outlet"),o.qZA(),o.qZA())},directives:[hs,Or,cn],encapsulation:2}),s})(),$s=class{constructor(r,n,l,d,p,E){this.router=r,this.route=n,this.service=l,this.popup=d,this.element=p,this.messageBus=E,this.key=gl.KEY,this.isNew=!1}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.role$=this.isNew?this.service.create(r).subscribe(n=>{n&&(this.changesSaved(),this.back())}):this.service.update(r).subscribe(()=>{this.changesSaved(),this.back()})}deleted(r){this.isNew||this.popup.open({content:Pa,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.name}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.role$=this.service.delete(r.id).subscribe(p=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["roles"])}init(r){"new"!==r?this.load(r.toString()):this.create()}load(r){this.isNew=!1,this.role$=this.service.role(r).subscribe(n=>{this.key=gl.KEY,this.viewModel=n})}create(){this.isNew=!0,this.viewModel={id:"new",name:void 0}}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("role"))}};$s.\u0275fac=function(r){return new(r||$s)(o.Y36(Et),o.Y36(an),o.Y36(Qr),o.Y36(cs),o.Y36(o.SBq),o.Y36(Zt))},$s.\u0275cmp=o.Xpm({type:$s,selectors:[["tw-role-detail"]],features:[o._Bn([Qr])],decls:1,vars:4,consts:[[3,"key","viewModel","showSave","showDelete","submitted","deleted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)},directives:[Vi],encapsulation:2}),$s=(0,Cn.gn)([Nn],$s);const I_=[{path:"roles",component:Tf,canActivate:[us],children:[{path:":id",component:$s}]}];let Ou=(()=>{class s{constructor(n){this.slotRegistry=n,this.slotRegistry.register(new gl)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(ar))},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Qr],imports:[[g.ez,bs,yn.forChild(I_),br,hl]]}),s})(),xr=(()=>{class s{constructor(n,l,d){this.http=n,this.claimsService=l,this.roleService=d}users(){return this.http.get("accounts/users").pipe((0,Ae.K)(this.http.handleError))}user(n){return Lc({user:this.http.get(`accounts/user/${n}`),claims:this.claimsService.claimtypes(),roles:this.roleService.roles()}).pipe((0,Qe.U)(l=>({user:l.user,claims:l.claims.map(d=>d.name),roles:l.roles.map(d=>d.name)}))).pipe((0,Ae.K)(this.http.handleError))}register(n){return this.http.post("accounts/register",n).pipe((0,Ae.K)(this.http.handleError))}update(n){return this.http.put("accounts/user",n).pipe((0,Ae.K)(this.http.handleError))}delete(n){return this.http.delete(`accounts/user/${n}`).pipe((0,Ae.K)(this.http.handleError))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ai),o.LFG(Zo),o.LFG(Qr))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();const Af=function(s){return[".",s]};function Mf(s,r){if(1&s&&(o.TgZ(0,"div",11),o.TgZ(1,"div"),o._uU(2),o.qZA(),o.TgZ(3,"div"),o._uU(4),o.qZA(),o.qZA()),2&s){const n=r.$implicit;o.Q6J("routerLink",o.VKq(4,Af,null==n?null:n.id)),o.uIk("title",null==n?null:n.userName),o.xp6(2),o.Oqu(n.userName),o.xp6(2),o.Oqu(n.email)}}const xu=function(){return[".","register"]};let Xr=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.users=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"user"===r.source&&this.loadData()}getType(){return Wt.KEY}reload(){this.ngOnInit()}loadData(){this.loadUsers()}loadUsers(){this.users$=this.service.users().subscribe(r=>{this.users=r})}};Xr.\u0275fac=function(r){return new(r||Xr)(o.Y36(xr),o.Y36(Zt))},Xr.\u0275cmp=o.Xpm({type:Xr,selectors:[["tw-user-list"]],features:[o._Bn([xr])],decls:13,vars:7,consts:function(){let s,r;return s=$localize`:␟4d13a9cd5ed3dcee0eab22cb25198d43886942be␟4555457172864212828:Users`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],s,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","user-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(o.TgZ(0,"tw-list",0),o.ALo(1,"filter"),o.TgZ(2,"tw-header"),o.TgZ(3,"h3",1),o.SDv(4,2),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"a",4),o._UZ(7,"tw-icon",5),o.qZA(),o.TgZ(8,"button",6),o.NdJ("click",function(){return n.reload()}),o._UZ(9,"tw-icon",7),o.qZA(),o.qZA(),o.TgZ(10,"div",8),o.TgZ(11,"input",9),o.NdJ("ngModelChange",function(d){return n.searchText=d}),o.qZA(),o.qZA(),o.qZA(),o.YNc(12,Mf,5,6,"ng-template",10),o.qZA()),2&r&&(o.Q6J("rows",o.xi3(1,3,n.users,n.searchText)),o.xp6(6),o.Q6J("routerLink",o.DdM(6,xu)),o.xp6(5),o.Q6J("ngModel",n.searchText))},directives:[Hs,Bs,un,Ir,sr,Oi,Ar,Us,Er,er],pipes:[Wo],encapsulation:2}),Xr=(0,Cn.gn)([Nn],Xr);let If=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-user-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(o.TgZ(0,"tw-pane"),o.TgZ(1,"div",0),o._UZ(2,"tw-user-list"),o.qZA(),o.TgZ(3,"div",1),o._UZ(4,"router-outlet"),o.qZA(),o.qZA())},directives:[hs,Xr,cn],encapsulation:2}),s})(),qo=(()=>{class s{constructor(){this.key=s.KEY,this.type=cr,this.title="Register user",this.editors=[{key:"userName",type:In,label:"Name",required:!0},{key:"email",type:In,label:"Email",required:!0},{key:"password",type:cf,label:"Password",required:!0,minLength:6,maxLength:100}]}}return s.KEY="RegisterUserSlot",s})(),_l=(()=>{class s{constructor(n,l){this.key=s.KEY,this.type=cr,this.title="Detail";const d=n.map(E=>({key:E,value:E})),p=l.map(E=>({key:E,value:E}));this.editors=[{key:"id",type:Ds,label:"Id",required:!0},{key:"userName",type:In,label:"Name",required:!0},{key:"email",type:In,label:"Email",required:!0},{key:"lockoutEnabled",type:ws,label:"Lockout enabled"},{key:"isLockedOut",type:ws,label:"Is locked out",isReadOnly:!0},{key:"roles",type:il,label:"Roles",required:!1,options:p,singleSelection:!1,bindingBehaviour:As}],this.children=[{key:"claims",type:"array",title:"Claims",editors:[{key:"type",type:_u,label:"Claims",required:!0,options:d,singleSelection:!0,bindingBehaviour:As},{key:"value",type:In,label:"Value",required:!0}]}]}}return s.KEY="UserDetailSlot",s})(),Ui=class{constructor(r,n,l,d,p){this.router=r,this.route=n,this.service=l,this.slotRegistry=d,this.messageBus=p,this.key=_l.KEY}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.user$=this.service.update(r).subscribe(()=>{this.changesSaved(),this.back()})}deleted(r){this.changesSaved()}back(){this.router.navigate(["users"])}init(r){this.load(r.toString())}load(r){this.user$=this.service.user(r).subscribe(n=>{this.slotRegistry.register(new _l(n.claims,n.roles)),this.key=_l.KEY,this.viewModel=n.user})}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("user"))}};Ui.\u0275fac=function(r){return new(r||Ui)(o.Y36(Et),o.Y36(an),o.Y36(xr),o.Y36(ar),o.Y36(Zt))},Ui.\u0275cmp=o.Xpm({type:Ui,selectors:[["tw-user-detail"]],features:[o._Bn([xr])],decls:1,vars:4,consts:[[3,"key","viewModel","showSave","showDelete","submitted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!1)},directives:[Vi],encapsulation:2}),Ui=(0,Cn.gn)([Nn],Ui);let ei=class{constructor(r,n,l){this.router=r,this.service=n,this.messageBus=l,this.key=qo.KEY,this.errors=[]}ngOnInit(){this.key=qo.KEY,this.viewModel={userName:void 0,email:void 0,password:void 0,confirmPassword:void 0}}submitted(r){r.confirmPassword=r.password,this.user$=this.service.register(r).subscribe(()=>{this.changesSaved(),this.back()},n=>{this.errors=n.errors})}back(){this.router.navigate(["users"])}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("user"))}};ei.\u0275fac=function(r){return new(r||ei)(o.Y36(Et),o.Y36(xr),o.Y36(Zt))},ei.\u0275cmp=o.Xpm({type:ei,selectors:[["tw-register-user"]],features:[o._Bn([xr])],decls:1,vars:7,consts:[[3,"key","viewModel","showSave","saveTitle","showCancel","showDelete","errors","submitted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("saveTitle","Register")("showCancel",!1)("showDelete",!1)("errors",n.errors)},directives:[Vi],encapsulation:2}),ei=(0,Cn.gn)([Nn],ei);const Of=[{path:"users",component:If,canActivate:[us],children:[{path:"register",component:ei},{path:":id",component:Ui}]}];let Ru=(()=>{class s{constructor(n){this.slotRegistry=n,this.slotRegistry.register(new qo)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(ar))},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[xr],imports:[[g.ez,bs,yn.forChild(Of),br,hl]]}),s})(),ti=(()=>{class s{constructor(n){this.http=n}scopes(){return this.http.get("scopes").pipe((0,Ae.K)(this.http.handleError))}scopenames(){return this.http.get("scopes/names").pipe((0,Ae.K)(this.http.handleError))}scope(n){return this.http.get(`scopes/${n}`).pipe((0,Ae.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("scopes",n).pipe((0,Ae.K)(this.http.handleError))}update(n){return this.http.put("scopes",n).pipe((0,Ae.K)(this.http.handleError))}delete(n){return this.http.delete(`scopes/${n}`).pipe((0,Ae.K)(this.http.handleError))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ai))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),ml=(()=>{class s{constructor(n){this.key=s.KEY,this.type=cr,this.title="Detail";const l=n.map(d=>({key:d,value:d}));this.editors=[{key:"id",type:Ds,label:"Id",required:!0},{key:"name",type:In,label:"Name",required:!0},{key:"displayName",type:In,label:"Display name",required:!0},{key:"description",type:r_,label:"Description"},{key:"resources",type:il,label:"Resources",options:l,singleSelection:!1,bindingBehaviour:As,allowAddingItems:!0}]}}return s.KEY="ScopeDetailSlot",s})(),ni=class{constructor(r,n,l,d,p,E,A){this.router=r,this.route=n,this.service=l,this.slotRegistry=d,this.popup=p,this.element=E,this.messageBus=A,this.key=ml.KEY,this.errors=[],this.isNew=!1}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.name&&this.init(r.name)})}submitted(r){this.resource$=this.isNew?this.service.create(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n)):this.service.update(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n))}deleted(r){this.isNew||this.popup.open({content:Pa,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.name}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.resource$=this.service.delete(r.id).subscribe(p=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["scopes"])}init(r){"new"!==r?this.load(r):this.create()}load(r){this.isNew=!1,this.resource$=this.service.scope(r).subscribe(n=>{this.slotRegistry.register(new ml(n.resources)),this.key=ml.KEY,this.viewModel=n})}create(){this.isNew=!0,this.viewModel={id:"new",name:"new",displayName:void 0,description:void 0,resources:[]},this.slotRegistry.register(new ml([]))}handleSuccess(){this.changesSaved(),this.back()}handleError(r){this.errors=r.errors}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("scope"))}};ni.\u0275fac=function(r){return new(r||ni)(o.Y36(Et),o.Y36(an),o.Y36(ti),o.Y36(ar),o.Y36(cs),o.Y36(o.SBq),o.Y36(Zt))},ni.\u0275cmp=o.Xpm({type:ni,selectors:[["tw-scope-detail"]],features:[o._Bn([ti])],decls:1,vars:5,consts:[[3,"key","viewModel","showSave","showDelete","errors","submitted","deleted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)("errors",n.errors)},directives:[Vi],encapsulation:2}),ni=(0,Cn.gn)([Nn],ni);const xf=function(s){return[".",s]};function Rf(s,r){if(1&s&&(o.TgZ(0,"div",11),o.TgZ(1,"div"),o._uU(2),o.qZA(),o.TgZ(3,"div"),o._uU(4),o.qZA(),o.qZA()),2&s){const n=r.$implicit;o.Q6J("routerLink",o.VKq(4,xf,n.id)),o.uIk("title",n.name),o.xp6(2),o.Oqu(n.name),o.xp6(2),o.Oqu(n.displayName)}}const Pu=function(){return[".","new"]};let ri=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.scopes=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"scope"===r.source&&this.loadData()}getType(){return Wt.KEY}reload(){this.ngOnInit()}loadData(){this.loadRoles()}loadRoles(){this.resource$=this.service.scopes().subscribe(r=>{this.scopes=r})}};ri.\u0275fac=function(r){return new(r||ri)(o.Y36(ti),o.Y36(Zt))},ri.\u0275cmp=o.Xpm({type:ri,selectors:[["tw-scope-list"]],features:[o._Bn([ti])],decls:13,vars:7,consts:function(){let s,r;return s=$localize`:␟4c868744dbbf8bcdb48cd56b8d8da3d5a107b817␟4762525426208239051:Scopes`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],s,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","scope-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(o.TgZ(0,"tw-list",0),o.ALo(1,"filter"),o.TgZ(2,"tw-header"),o.TgZ(3,"h3",1),o.SDv(4,2),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"a",4),o._UZ(7,"tw-icon",5),o.qZA(),o.TgZ(8,"button",6),o.NdJ("click",function(){return n.reload()}),o._UZ(9,"tw-icon",7),o.qZA(),o.qZA(),o.TgZ(10,"div",8),o.TgZ(11,"input",9),o.NdJ("ngModelChange",function(d){return n.searchText=d}),o.qZA(),o.qZA(),o.qZA(),o.YNc(12,Rf,5,6,"ng-template",10),o.qZA()),2&r&&(o.Q6J("rows",o.xi3(1,3,n.scopes,n.searchText)),o.xp6(6),o.Q6J("routerLink",o.DdM(6,Pu)),o.xp6(5),o.Q6J("ngModel",n.searchText))},directives:[Hs,Bs,un,Ir,sr,Oi,Ar,Us,Er,er],pipes:[Wo],encapsulation:2}),ri=(0,Cn.gn)([Nn],ri);const Pf=[{path:"scopes",component:(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-resource-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(o.TgZ(0,"tw-pane"),o.TgZ(1,"div",0),o._UZ(2,"tw-scope-list"),o.qZA(),o.TgZ(3,"div",1),o._UZ(4,"router-outlet"),o.qZA(),o.qZA())},directives:[hs,ri,cn],encapsulation:2}),s})(),canActivate:[us],children:[{path:":name",component:ni}]}];let Ff=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[ti],imports:[[g.ez,bs,yn.forChild(Pf),br,hl]]}),s})(),ii=(()=>{class s{constructor(n){this.http=n}applications(){return this.http.get("application").pipe((0,Ae.K)(this.http.handleError))}options(){return this.http.get("application/options").pipe((0,Ae.K)(this.http.handleError))}application(n){return this.http.get(`application/${n}`).pipe((0,Ae.K)(this.http.handleError))}register(n){return n.id=void 0,this.http.post("application",n).pipe((0,Ae.K)(this.http.handleError))}create(n){return n.id=void 0,this.http.post("application",n).pipe((0,Ae.K)(this.http.handleError))}update(n){return this.http.put("application",n).pipe((0,Ae.K)(this.http.handleError))}delete(n){return this.http.delete(`application/${n}`).pipe((0,Ae.K)(this.http.handleError))}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Ai))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),Ko=(()=>{class s{constructor(n,l,d,p){this.key=s.KEY,this.type=cr,this.title="Detail";const E=n.map(X=>({key:X,value:X})),A=l.map(X=>({key:X,value:X}));p.forEach(X=>{const _e=`scp:${X}`;d.some(Ee=>Ee===_e)||d.push(_e)});const j=d.map(X=>({key:X,value:X}));this.editors=[{key:"id",type:Ds,label:"Id",required:!0},{key:"clientId",type:In,label:"ClientId",required:!0},{key:"displayName",type:In,label:"Display name",required:!0},{key:"type",type:_u,required:!0,label:"Type",options:[{key:"public",value:"public"},{key:"confidential",value:"confidential"}]},{key:"clientSecret",type:cf,label:"Client secret"},{key:"requirePkce",type:ws,label:"Require Pkce",required:!0},{key:"requireConsent",type:ws,label:"Require consent"},{key:"redirectUris",type:il,label:"Redirect uris",options:E,singleSelection:!1,bindingBehaviour:As,allowAddingItems:!0},{key:"postLogoutRedirectUris",type:il,label:"Post logout redirect uris",options:A,singleSelection:!1,bindingBehaviour:As,allowAddingItems:!0},{key:"permissions",type:il,label:"Permissions",options:j,singleSelection:!1,bindingBehaviour:As,allowAddingItems:!0}]}}return s.KEY="ApplicationDetailSlot",s})(),yl=(()=>{class s{constructor(){this.key=s.KEY,this.type=cr,this.title="Register",this.editors=[{key:"id",type:Ds,label:"Id",required:!0},{key:"clientId",type:In,label:"ClientId",required:!0},{key:"displayName",type:In,label:"Display name",required:!0},{key:"type",type:_u,required:!0,label:"Type",options:[{key:"public",value:"public"},{key:"confidential",value:"confidential"}]},{key:"clientSecret",type:cf,label:"Client secret"},{key:"requirePkce",type:ws,label:"Require Pkce",required:!0},{key:"requireConsent",type:ws,label:"Require consent"}]}}return s.KEY="RegisterApplicationSlot",s})(),si=class{constructor(r,n,l,d,p,E,A,j,X){this.router=r,this.route=n,this.service=l,this.scopeService=d,this.slotRegistry=p,this.popup=E,this.element=A,this.messageBus=j,this.formdefService=X,this.key=Ko.KEY,this.errors=[],this.isNew=!1,this.form=new ki({})}ngOnInit(){this.routeParams$=this.route.params.subscribe(r=>{r.id&&this.init(r.id)})}submitted(r){this.application$=this.isNew?this.service.create(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n)):this.service.update(r).subscribe(()=>this.handleSuccess(),n=>this.handleError(n))}deleted(r){this.isNew||this.popup.open({content:Pa,origin:this.element.nativeElement,hasBackdrop:!1,data:{confirm:!1,itemText:r.clientId}}).afterClosed$.subscribe(d=>{d.data.confirm&&(this.application$=this.service.delete(r.id).subscribe(p=>{this.changesSaved(),this.back()}))})}back(){this.router.navigate(["applications"])}init(r){"new"!==r?this.load(r):this.create()}load(r){this.isNew=!1,this.application$=Lc({scopenames:this.scopeService.scopenames(),options:this.service.options(),application:this.service.application(r)}).subscribe(n=>{this.slotRegistry.register(new Ko(n.application.redirectUris,n.application.postLogoutRedirectUris,n.options.permissions,n.scopenames)),this.applyData(n.application)})}create(){this.isNew=!0;const r={id:"new",clientId:"new",displayName:void 0,type:void 0,clientSecret:void 0,requirePkce:!1,requireConsent:!1,redirectUris:[],postLogoutRedirectUris:[],permissions:[]};this.slotRegistry.register(new Ko(r.redirectUris,r.postLogoutRedirectUris,r.permissions,[])),this.applyData(r)}applyData(r){this.key=Ko.KEY,this.form=this.formdefService.toGroup(this.key,r),this.viewModel=r,this.applyFormBehavior(this.form)}handleSuccess(){this.changesSaved(),this.back()}handleError(r){this.errors=r.errors}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("application"))}applyFormBehavior(r){if(void 0===r)return;const n=r.get("type");n&&n.valueChanges.subscribe(d=>{r.get("clientSecret").setValue(void 0),"confidential"===d?(r.get("clientSecret").enable(),r.get("clientSecret").setValidators(wr.required),r.get("requirePkce").disable(),r.get("requirePkce").setValidators(null),r.get("requirePkce").setValue(!1),r.get("requireConsent").disable(),r.get("requireConsent").setValidators(null),r.get("requireConsent").setValue(!1),r.get("redirectUris").setValue([]),r.get("postLogoutRedirectUris").setValue([]),r.get("permissions").setValue([])):(r.get("clientSecret").disable(),r.get("clientSecret").setValidators(null)),r.get("clientSecret").updateValueAndValidity()});const l=r.get("clientSecret");l&&!this.isNew&&l.disable()}};si.\u0275fac=function(r){return new(r||si)(o.Y36(Et),o.Y36(an),o.Y36(ii),o.Y36(ti),o.Y36(ar),o.Y36(cs),o.Y36(o.SBq),o.Y36(Zt),o.Y36(Vs))},si.\u0275cmp=o.Xpm({type:si,selectors:[["tw-application-detail"]],features:[o._Bn([ii,ti,Vs])],decls:1,vars:7,consts:[[3,"key","viewModel","showSave","showDelete","errors","useInputForm","form","submitted","deleted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)})("deleted",function(d){return n.deleted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("showDelete",!n.isNew)("errors",n.errors)("useInputForm",!0)("form",n.form)},directives:[Vi],encapsulation:2}),si=(0,Cn.gn)([Nn],si);const My=function(s){return[".",s]};function x_(s,r){if(1&s&&(o.TgZ(0,"div",11),o.TgZ(1,"div"),o._uU(2),o.qZA(),o.TgZ(3,"div"),o._uU(4),o.qZA(),o.qZA()),2&s){const n=r.$implicit;o.Q6J("routerLink",o.VKq(4,My,n.id)),o.uIk("title",n.displayName),o.xp6(2),o.Oqu(n.clientId),o.xp6(2),o.Oqu(n.displayName)}}const R_=function(){return[".","register"]};let oi=class{constructor(r,n){this.service=r,this.bus=n,this.searchText="",this.applications=[],this.busSubscription=this.bus.subsribe(this)}ngOnInit(){this.searchText="",this.loadData()}ngOnDestroy(){this.bus.unsubscribe(this.busSubscription)}onMessage(r){"application"===r.source&&this.loadData()}getType(){return Wt.KEY}reload(){this.ngOnInit()}loadData(){this.loadRoles()}loadRoles(){this.applications$=this.service.applications().subscribe(r=>{this.applications=r})}};oi.\u0275fac=function(r){return new(r||oi)(o.Y36(ii),o.Y36(Zt))},oi.\u0275cmp=o.Xpm({type:oi,selectors:[["tw-application-list"]],features:[o._Bn([ii])],decls:13,vars:7,consts:function(){let s,r;return s=$localize`:␟f1abafaeb40ce52355ddcc24686e3cd17b64e08a␟6658000829978978023:Applications`,r=$localize`:␟6bec7734cb3740b324966b003c0f45f0148a70e8␟7158592746571420879:search`,[[3,"rows"],[1,"title"],s,[1,"button__bar"],[1,"button",3,"routerLink"],["name","plus"],["type","button",3,"click"],["name","refresh"],[1,"form","list__search"],["type","text","placeholder",r,3,"ngModel","ngModelChange"],["twTemplate","application-item"],["routerLinkActive","active",1,"list__item",3,"routerLink"]]},template:function(r,n){1&r&&(o.TgZ(0,"tw-list",0),o.ALo(1,"filter"),o.TgZ(2,"tw-header"),o.TgZ(3,"h3",1),o.SDv(4,2),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"a",4),o._UZ(7,"tw-icon",5),o.qZA(),o.TgZ(8,"button",6),o.NdJ("click",function(){return n.reload()}),o._UZ(9,"tw-icon",7),o.qZA(),o.qZA(),o.TgZ(10,"div",8),o.TgZ(11,"input",9),o.NdJ("ngModelChange",function(d){return n.searchText=d}),o.qZA(),o.qZA(),o.qZA(),o.YNc(12,x_,5,6,"ng-template",10),o.qZA()),2&r&&(o.Q6J("rows",o.xi3(1,3,n.applications,n.searchText)),o.xp6(6),o.Q6J("routerLink",o.DdM(6,R_)),o.xp6(5),o.Q6J("ngModel",n.searchText))},directives:[Hs,Bs,un,Ir,sr,Oi,Ar,Us,Er,er],pipes:[Wo],encapsulation:2}),oi=(0,Cn.gn)([Nn],oi);let P_=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-application-dashboard"]],decls:5,vars:0,consts:[["list",""],["detail",""]],template:function(n,l){1&n&&(o.TgZ(0,"tw-pane"),o.TgZ(1,"div",0),o._UZ(2,"tw-application-list"),o.qZA(),o.TgZ(3,"div",1),o._UZ(4,"router-outlet"),o.qZA(),o.qZA())},directives:[hs,oi,cn],encapsulation:2}),s})(),dt=class{constructor(r,n,l,d,p){this.router=r,this.service=n,this.messageBus=l,this.slotRegistry=d,this.formdefService=p,this.key=yl.KEY,this.errors=[],this.form=new ki({})}ngOnInit(){this.slotRegistry.register(new yl),this.applyData({id:"new",clientId:"new",displayName:void 0,type:void 0,clientSecret:void 0,requirePkce:!1,requireConsent:!1})}submitted(r){this.registerApplication$=this.service.register(r).subscribe(()=>{this.changesSaved(),this.back()},n=>{this.errors=n.errors})}back(){this.router.navigate(["applications"])}changesSaved(){this.messageBus.publish(new ir(void 0,"Your changes have been saved...",zt.Success)),this.messageBus.publish(new Wt("application"))}applyData(r){this.key=yl.KEY,this.form=this.formdefService.toGroup(this.key,r),this.viewModel=r,this.applyFormBehavior(this.form)}applyFormBehavior(r){const n=r.get("type");n&&n.valueChanges.subscribe(l=>{r.get("clientSecret").setValue(void 0),"confidential"===l?(r.get("clientSecret").enable(),r.get("clientSecret").setValidators(wr.required),r.get("requirePkce").disable(),r.get("requirePkce").setValidators(null),r.get("requirePkce").setValue(!1),r.get("requireConsent").disable(),r.get("requireConsent").setValidators(null),r.get("requireConsent").setValue(!1)):(r.get("clientSecret").disable(),r.get("clientSecret").setValidators(null),r.get("requirePkce").enable(),r.get("requireConsent").enable()),r.get("clientSecret").updateValueAndValidity()})}};dt.\u0275fac=function(r){return new(r||dt)(o.Y36(Et),o.Y36(ii),o.Y36(Zt),o.Y36(ar),o.Y36(Vs))},dt.\u0275cmp=o.Xpm({type:dt,selectors:[["tw-register-application"]],features:[o._Bn([ii,Vs])],decls:1,vars:9,consts:[[3,"key","viewModel","showSave","saveTitle","showCancel","showDelete","errors","useInputForm","form","submitted"]],template:function(r,n){1&r&&(o.TgZ(0,"tw-formdef",0),o.NdJ("submitted",function(d){return n.submitted(d)}),o.qZA()),2&r&&o.Q6J("key",n.key)("viewModel",n.viewModel)("showSave",!0)("saveTitle","Register")("showCancel",!1)("showDelete",!1)("errors",n.errors)("useInputForm",!0)("form",n.form)},directives:[Vi],encapsulation:2}),dt=(0,Cn.gn)([Nn],dt);const kf=[{path:"applications",component:P_,canActivate:[us],children:[{path:"register",component:dt},{path:":id",component:si}]}];let F_=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[ii],imports:[[g.ez,bs,yn.forChild(kf),br,hl]]}),s})();function k_(s,r){if(1&s&&o._UZ(0,"tw-icon",6),2&s){const n=o.oxw(2).$implicit;o.Q6J("name",n.icon)}}function Nf(s,r){if(1&s&&(o.TgZ(0,"a",4),o.YNc(1,k_,1,1,"tw-icon",5),o._uU(2),o.qZA()),2&s){const n=o.oxw().$implicit;o.Q6J("routerLink",n.route),o.xp6(1),o.Q6J("ngIf",n.icon),o.xp6(1),o.hij(" ",n.name," ")}}function N_(s,r){if(1&s&&o._UZ(0,"tw-icon",6),2&s){const n=o.oxw(2).$implicit;o.Q6J("name",n.icon)}}function Lf(s,r){if(1&s&&o._UZ(0,"tw-icon",6),2&s){const n=o.oxw(2).$implicit;o.Q6J("name",n.icon)}}function Vf(s,r){if(1&s&&(o.TgZ(0,"a",4),o.YNc(1,Lf,1,1,"tw-icon",5),o._uU(2),o.qZA()),2&s){const n=o.oxw().$implicit;o.Q6J("routerLink",n.route),o.xp6(1),o.Q6J("ngIf",n.icon),o.xp6(1),o.hij(" ",n.name," ")}}function Gs(s,r){if(1&s&&(o.TgZ(0,"li",8),o.YNc(1,Vf,3,3,"a",2),o.qZA()),2&s){const n=r.$implicit;o.xp6(1),o.Q6J("ngIf",n.route)}}function L_(s,r){if(1&s&&(o.TgZ(0,"ul"),o.YNc(1,Gs,2,1,"li",7),o.qZA()),2&s){const n=o.oxw(2).$implicit;o.xp6(1),o.Q6J("ngForOf",n.children)}}function V_(s,r){if(1&s&&(o.TgZ(0,"span"),o.YNc(1,N_,1,1,"tw-icon",5),o._uU(2),o.YNc(3,L_,2,1,"ul",3),o.qZA()),2&s){const n=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",n.icon),o.xp6(1),o.hij(" ",n.name," "),o.xp6(1),o.Q6J("ngIf",n.children&&n.children.length>0)}}const Bf=function(s){return{menu__item:s}};function B_(s,r){if(1&s&&(o.TgZ(0,"li",1),o.YNc(1,Nf,3,3,"a",2),o.YNc(2,V_,4,3,"span",3),o.qZA()),2&s){const n=r.$implicit;o.Q6J("routerLinkActive","active")("ngClass",o.VKq(4,Bf,n.route)),o.xp6(1),o.Q6J("ngIf",n.route),o.xp6(1),o.Q6J("ngIf",!n.route)}}let Uf=(()=>{class s{constructor(n){this.service=n}get menuItems(){return this.service.items}ngOnInit(){this.service.register({id:"1",name:"Users",route:"/users",icon:"users"}),this.service.register({id:"2",name:"Roles",route:"/roles",icon:"tags"}),this.service.register({id:"3",name:"ClaimTypes",route:"/claimtypes",icon:"key"}),this.service.register({id:"4",name:"Scopes",route:"/scopes",icon:"globe"}),this.service.register({id:"5",name:"Applications",route:"/applications",icon:"desktop"})}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(ds))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-menu"]],features:[o._Bn([ds])],decls:1,vars:1,consts:[[3,"routerLinkActive","ngClass",4,"ngFor","ngForOf"],[3,"routerLinkActive","ngClass"],[3,"routerLink",4,"ngIf"],[4,"ngIf"],[3,"routerLink"],[3,"name",4,"ngIf"],[3,"name"],["routerLinkActive","active","class","menu__item",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"menu__item"]],template:function(n,l){1&n&&o.YNc(0,B_,3,6,"li",0),2&n&&o.Q6J("ngForOf",l.menuItems)},directives:[g.sg,Er,g.mk,g.O5,un,Ir],encapsulation:2}),s})();function Iy(s,r){1&s&&(o.TgZ(0,"div"),o._uU(1,"SPA Client"),o.qZA())}function Hf(s,r){1&s&&(o.TgZ(0,"span",9),o.TgZ(1,"b"),o._uU(2,">"),o.qZA(),o.qZA())}function Fu(s,r){1&s&&(o.TgZ(0,"span",10),o.TgZ(1,"b"),o._uU(2,"<"),o.qZA(),o.qZA())}function dr(s,r){if(1&s&&(o.TgZ(0,"li",11),o.TgZ(1,"a",12),o._UZ(2,"tw-icon",13),o._uU(3),o.qZA(),o.qZA()),2&s){const n=o.oxw();o.Q6J("routerLinkActive","active"),o.xp6(3),o.hij(" ",n.userName," ")}}function U_(s,r){1&s&&o._UZ(0,"tw-menu")}function jf(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"li",14),o.TgZ(1,"a",15),o.NdJ("click",function(){return o.CHM(n),o.oxw().login()}),o._uU(2," Login "),o.qZA(),o.qZA()}}function hr(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"li",14),o.TgZ(1,"a",15),o.NdJ("click",function(){return o.CHM(n),o.oxw().logout()}),o._uU(2," Logout "),o.qZA(),o.qZA()}}let qn=(()=>{class s{constructor(n){this.user=n,this.collapsed=!1,this.classlist=this.getClassList(),this.loginClick=new o.vpe}get isAuthenticated(){return this.user.isAuthenticated}get isAdmin(){return this.user.hasClaim("Administrator")}get userName(){return this.user.userName}toggle(){this.collapsed=!this.collapsed,this.classlist=this.getClassList()}login(){this.loginClick.next("login")}logout(){this.loginClick.next("logout")}getClassList(){return this.collapsed?"sidebar sidebar--collapsed":"sidebar"}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Ro))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-sidebar"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.classlist)},outputs:{loginClick:"loginClick"},decls:13,vars:7,consts:[[1,"sidebar__header",3,"click"],[4,"ngIf"],["type","button"],["name","arrow-right",4,"ngIf"],["name","arrow-left",4,"ngIf"],[1,"sidebar__content"],["class","menu__item",3,"routerLinkActive",4,"ngIf"],[1,"sidebar__footer"],["routerLinkActive","active",4,"ngIf"],["name","arrow-right"],["name","arrow-left"],[1,"menu__item",3,"routerLinkActive"],["routerLink","home"],["name","home"],["routerLinkActive","active"],["href","javascript:void(0)",3,"click"]],template:function(n,l){1&n&&(o.TgZ(0,"div",0),o.NdJ("click",function(){return l.toggle()}),o.YNc(1,Iy,2,0,"div",1),o.TgZ(2,"button",2),o.YNc(3,Hf,3,0,"span",3),o.YNc(4,Fu,3,0,"span",4),o.qZA(),o.qZA(),o.TgZ(5,"div",5),o.TgZ(6,"ul"),o.YNc(7,dr,4,2,"li",6),o.YNc(8,U_,1,0,"tw-menu",1),o.qZA(),o.qZA(),o.TgZ(9,"div",7),o.TgZ(10,"ul"),o.YNc(11,jf,3,0,"li",8),o.YNc(12,hr,3,0,"li",8),o.qZA(),o.qZA()),2&n&&(o.xp6(1),o.Q6J("ngIf",!l.collapsed),o.xp6(2),o.Q6J("ngIf",l.collapsed),o.xp6(1),o.Q6J("ngIf",!l.collapsed),o.xp6(3),o.Q6J("ngIf",l.isAuthenticated),o.xp6(1),o.Q6J("ngIf",l.isAuthenticated&&l.isAdmin),o.xp6(3),o.Q6J("ngIf",!l.isAuthenticated),o.xp6(1),o.Q6J("ngIf",l.isAuthenticated))},directives:[g.O5,Er,un,Ir,Uf],encapsulation:2}),s})(),Hn=(()=>{class s{constructor(n){this.messageBus=n,this.status$=new qt(null),this.messageBus.subsribe(this)}get status(){return this.status$.asObservable()}onMessage(n){this.setStatus(n)}getType(){return ir.KEY}setStatus(n){this.status$.next(n)}}return s.\u0275fac=function(n){return new(n||s)(o.LFG(Zt))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})();function $f(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"button",3),o.NdJ("click",function(){return o.CHM(n),o.oxw(2).action()}),o._UZ(2,"tw-icon",4),o.qZA(),o.qZA()}}function Gf(s,r){if(1&s){const n=o.EpF();o.TgZ(0,"div"),o.YNc(1,$f,3,0,"div",0),o.TgZ(2,"div"),o.TgZ(3,"span",1),o.TgZ(4,"span",2),o.NdJ("click",function(){return o.CHM(n),o.oxw().close()}),o._uU(5,"\xd7"),o.qZA(),o.qZA(),o._uU(6),o.qZA(),o.qZA()}if(2&s){const n=o.oxw();o.xp6(1),o.Q6J("ngIf",n.hasAction),o.xp6(5),o.hij(" ",n.statusMessage," ")}}let H_=(()=>{class s{constructor(n){this.service=n,this.styles=this.getStyles(),this.hasAction=!1}get statusMessage(){return this.status&&this.status.title&&this.status.title.length>0?`${this.status.title}: ${this.status.message}`:this.status.message}get status(){return this.message}ngOnInit(){this.service.status.subscribe(n=>{!n||(this.message=n,this.hasAction=this.message.hasAction,this.fadeOut(),this.styles=this.getStyles(this.getStatusClass()))})}displayStatusBar(){return this.message&&!this.message.viewed}close(){this.message.viewed=!0,this.styles=this.getStyles()}action(){this.message.action(),this.close()}fadeOut(){!this.message||this.message.level!==zt.Success||setTimeout(()=>{this.close()},5e3)}getStyles(n=null){return n?`workspace__status ${n}`:"workspace__status"}getStatusClass(){let n="success";switch(this.message.level){case zt.Info:n="info";break;case zt.Warning:n="warning";break;case zt.Danger:n="danger"}return`workspace__status--${n}`}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Hn))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-statusbar"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.styles)},features:[o._Bn([Hn])],decls:1,vars:1,consts:[[4,"ngIf"],[1,"workspace__status-close"],[3,"click"],["type","button",1,"close",3,"click"],["name","bolt"]],template:function(n,l){1&n&&o.YNc(0,Gf,7,2,"div",0),2&n&&o.Q6J("ngIf",l.displayStatusBar())},directives:[g.O5,Ir],encapsulation:2}),s})(),j_=(()=>{class s{constructor(){this.style="workspace"}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-workspace"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.style)},decls:4,vars:0,consts:[[1,"workspace__header"],[1,"workspace__content"]],template:function(n,l){1&n&&(o._UZ(0,"div",0),o._UZ(1,"tw-statusbar"),o.TgZ(2,"div",1),o._UZ(3,"router-outlet"),o.qZA())},directives:[H_,cn],encapsulation:2}),s})(),$_=(()=>{class s{constructor(n,l,d){this.router=n,this.user=l,this.oauthService=d,this.title="ClientApp",this.style="shell"}get isAuthenticated(){return this.user.isAuthenticated}get username(){return this.user.userName}get claims(){return this.user.userClaims}ngOnInit(){this.configure()}loginClick(n){"login"===n?this.login():this.logout()}login(){this.oauthService.initLoginFlow()}logout(){this.oauthService.logOut(!1),this.user.reset(),this.router.navigate(["/"])}configure(){return(0,Cn.mG)(this,void 0,void 0,function*(){const n=(0,o.X6Q)()?"http://localhost:4200":window.location.origin;this.oauthService.configure({clientId:"spa_client",issuer:(0,o.X6Q)()?"https://localhost:5001/":window.location.origin+"/",redirectUri:n,responseType:"code",scope:"openid roles email server_scope api_scope",requireHttps:!1}),this.oauthService.events.subscribe(d=>(0,Cn.mG)(this,void 0,void 0,function*(){("token_received"===d.type||"token_refreshed"===d.type)&&this.user.loadProfile(),"discovery_document_loaded"===d.type&&this.oauthService.hasValidAccessToken()&&this.user.loadProfile()})),this.oauthService.loadDiscoveryDocumentAndLogin({onTokenReceived:()=>{this.user.loadProfile()}})})}}return s.\u0275fac=function(n){return new(n||s)(o.Y36(Et),o.Y36(Ro),o.Y36(To.Ct))},s.\u0275cmp=o.Xpm({type:s,selectors:[["tw-root"]],hostVars:2,hostBindings:function(n,l){2&n&&o.Tol(l.style)},decls:2,vars:0,consts:[[3,"loginClick"]],template:function(n,l){1&n&&(o.TgZ(0,"tw-sidebar",0),o.NdJ("loginClick",function(p){return l.loginClick(p)}),o.qZA(),o._UZ(1,"tw-workspace"))},directives:[qn,j_],encapsulation:2}),s})();const G_=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"forbidden",component:Oc},{path:"**",component:pg}];let ku=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=o.oAB({type:s,bootstrap:[$_]}),s.\u0275inj=o.cJS({providers:[Ch],imports:[[Hi,Gn.JF,yn.forRoot(G_,{useHash:!1,relativeLinkResolution:"legacy"}),To.zr.forRoot(),br,Eh,kc,Eg,Yo,Ou,Ru,Ff,F_]]}),s})();(0,o.G48)(),ui().bootstrapModule(ku).catch(s=>console.error(s))},1302:function(P,k,_){var g;!function(o,T){var x={};!function(o){"use strict";o.__esModule=!0,o.digestLength=32,o.blockSize=64;var T=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function x(B,V,Y,z,te){for(var De,ge,fe,Ue,ve,Ie,Lt,tt,Fe,J,ee,ie,ne;te>=64;){for(De=V[0],ge=V[1],fe=V[2],Ue=V[3],ve=V[4],Ie=V[5],Lt=V[6],tt=V[7],J=0;J<16;J++)B[J]=(255&Y[ee=z+4*J])<<24|(255&Y[ee+1])<<16|(255&Y[ee+2])<<8|255&Y[ee+3];for(J=16;J<64;J++)B[J]=((ie=((Fe=B[J-2])>>>17|Fe<<15)^(Fe>>>19|Fe<<13)^Fe>>>10)+B[J-7]|0)+((ne=((Fe=B[J-15])>>>7|Fe<<25)^(Fe>>>18|Fe<<14)^Fe>>>3)+B[J-16]|0);for(J=0;J<64;J++)ie=(((ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7))+(ve&Ie^~ve&Lt)|0)+(tt+(T[J]+B[J]|0)|0)|0,ne=((De>>>2|De<<30)^(De>>>13|De<<19)^(De>>>22|De<<10))+(De&ge^De&fe^ge&fe)|0,tt=Lt,Lt=Ie,Ie=ve,ve=Ue+ie|0,Ue=fe,fe=ge,ge=De,De=ie+ne|0;V[0]+=De,V[1]+=ge,V[2]+=fe,V[3]+=Ue,V[4]+=ve,V[5]+=Ie,V[6]+=Lt,V[7]+=tt,z+=64,te-=64}return z}var S=function(){function B(){this.digestLength=o.digestLength,this.blockSize=o.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return B.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},B.prototype.clean=function(){for(var V=0;V0){for(;this.bufferLength<64&&Y>0;)this.buffer[this.bufferLength++]=V[z++],Y--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(Y>=64&&(z=x(this.temp,this.state,V,z,Y),Y%=64);Y>0;)this.buffer[this.bufferLength++]=V[z++],Y--;return this},B.prototype.finish=function(V){if(!this.finished){var Y=this.bytesHashed,z=this.bufferLength,te=Y/536870912|0,De=Y<<3,ge=Y%64<56?64:128;this.buffer[z]=128;for(var fe=z+1;fe>>24&255,this.buffer[ge-7]=te>>>16&255,this.buffer[ge-6]=te>>>8&255,this.buffer[ge-5]=te>>>0&255,this.buffer[ge-4]=De>>>24&255,this.buffer[ge-3]=De>>>16&255,this.buffer[ge-2]=De>>>8&255,this.buffer[ge-1]=De>>>0&255,x(this.temp,this.state,this.buffer,0,ge),this.finished=!0}for(fe=0;fe<8;fe++)V[4*fe+0]=this.state[fe]>>>24&255,V[4*fe+1]=this.state[fe]>>>16&255,V[4*fe+2]=this.state[fe]>>>8&255,V[4*fe+3]=this.state[fe]>>>0&255;return this},B.prototype.digest=function(){var V=new Uint8Array(this.digestLength);return this.finish(V),V},B.prototype._saveState=function(V){for(var Y=0;Ythis.blockSize)(new S).update(V).finish(Y).clean();else for(var z=0;z1&&V.update(B),Y&&V.update(Y),V.update(z),V.finish(B),z[0]++}o.HMAC=O,o.hash=H,o.default=H,o.hmac=N;var F=new Uint8Array(o.digestLength);o.hkdf=function M(B,V,Y,z){void 0===V&&(V=F),void 0===z&&(z=32);for(var te=new Uint8Array([1]),De=N(V,B),ge=new O(De),fe=new Uint8Array(ge.digestLength),Ue=fe.length,ve=new Uint8Array(z),Ie=0;Ie>>24&255,ge[1]=Lt>>>16&255,ge[2]=Lt>>>8&255,ge[3]=Lt>>>0&255,te.reset(),te.update(V),te.update(ge),te.finish(Ue);for(var tt=0;tt{"use strict";_.d(k,{y:()=>M});var g=_(3489),T=_(7668),x=_(3292),O=_(3821),H=_(5379);var F=_(2830);let M=(()=>{class B{constructor(Y){this._isScalar=!1,Y&&(this._subscribe=Y)}lift(Y){const z=new B;return z.source=this,z.operator=Y,z}subscribe(Y,z,te){const{operator:De}=this,ge=function S(B,V,Y){if(B){if(B instanceof g.L)return B;if(B[T.b])return B[T.b]()}return B||V||Y?new g.L(B,V,Y):new g.L(x.c)}(Y,z,te);if(ge.add(De?De.call(ge,this.source):this.source||F.v.useDeprecatedSynchronousErrorHandling&&!ge.syncErrorThrowable?this._subscribe(ge):this._trySubscribe(ge)),F.v.useDeprecatedSynchronousErrorHandling&&ge.syncErrorThrowable&&(ge.syncErrorThrowable=!1,ge.syncErrorThrown))throw ge.syncErrorValue;return ge}_trySubscribe(Y){try{return this._subscribe(Y)}catch(z){F.v.useDeprecatedSynchronousErrorHandling&&(Y.syncErrorThrown=!0,Y.syncErrorValue=z),function o(B){for(;B;){const{closed:V,destination:Y,isStopped:z}=B;if(V||z)return!1;B=Y&&Y instanceof g.L?Y:null}return!0}(Y)?Y.error(z):console.warn(z)}}forEach(Y,z){return new(z=$(z))((te,De)=>{let ge;ge=this.subscribe(fe=>{try{Y(fe)}catch(Ue){De(Ue),ge&&ge.unsubscribe()}},De,te)})}_subscribe(Y){const{source:z}=this;return z&&z.subscribe(Y)}[O.L](){return this}pipe(...Y){return 0===Y.length?this:function R(B){return 0===B.length?H.y:1===B.length?B[0]:function(Y){return B.reduce((z,te)=>te(z),Y)}}(Y)(this)}toPromise(Y){return new(Y=$(Y))((z,te)=>{let De;this.subscribe(ge=>De=ge,ge=>te(ge),()=>z(De))})}}return B.create=V=>new B(V),B})();function $(B){if(B||(B=F.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(P,k,_)=>{"use strict";_.d(k,{c:()=>T});var g=_(2830),o=_(2782);const T={closed:!0,next(x){},error(x){if(g.v.useDeprecatedSynchronousErrorHandling)throw x;(0,o.z)(x)},complete(){}}},826:(P,k,_)=>{"use strict";_.d(k,{L:()=>o});var g=_(3489);class o extends g.L{notifyNext(x,S,O,H,N){this.destination.next(S)}notifyError(x,S){this.destination.error(x)}notifyComplete(x){this.destination.complete()}}},5529:(P,k,_)=>{"use strict";_.d(k,{xQ:()=>N,Yc:()=>H});var g=_(2916),o=_(3489),T=_(2654),x=_(5279);class S extends T.w{constructor(M,$){super(),this.subject=M,this.subscriber=$,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const M=this.subject,$=M.observers;if(this.subject=null,!$||0===$.length||M.isStopped||M.closed)return;const B=$.indexOf(this.subscriber);-1!==B&&$.splice(B,1)}}var O=_(7668);class H extends o.L{constructor(M){super(M),this.destination=M}}let N=(()=>{class F extends g.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[O.b](){return new H(this)}lift($){const B=new R(this,this);return B.operator=$,B}next($){if(this.closed)throw new x.N;if(!this.isStopped){const{observers:B}=this,V=B.length,Y=B.slice();for(let z=0;znew R(M,$),F})();class R extends N{constructor(M,$){super(),this.destination=M,this.source=$}next(M){const{destination:$}=this;$&&$.next&&$.next(M)}error(M){const{destination:$}=this;$&&$.error&&this.destination.error(M)}complete(){const{destination:M}=this;M&&M.complete&&this.destination.complete()}_subscribe(M){const{source:$}=this;return $?this.source.subscribe(M):T.w.EMPTY}}},3489:(P,k,_)=>{"use strict";_.d(k,{L:()=>H});var g=_(7043),o=_(3292),T=_(2654),x=_(7668),S=_(2830),O=_(2782);class H extends T.w{constructor(F,M,$){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.c;break;case 1:if(!F){this.destination=o.c;break}if("object"==typeof F){F instanceof H?(this.syncErrorThrowable=F.syncErrorThrowable,this.destination=F,F.add(this)):(this.syncErrorThrowable=!0,this.destination=new N(this,F));break}default:this.syncErrorThrowable=!0,this.destination=new N(this,F,M,$)}}[x.b](){return this}static create(F,M,$){const B=new H(F,M,$);return B.syncErrorThrowable=!1,B}next(F){this.isStopped||this._next(F)}error(F){this.isStopped||(this.isStopped=!0,this._error(F))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(F){this.destination.next(F)}_error(F){this.destination.error(F),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:F}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=F,this}}class N extends H{constructor(F,M,$,B){super(),this._parentSubscriber=F;let V,Y=this;(0,g.m)(M)?V=M:M&&(V=M.next,$=M.error,B=M.complete,M!==o.c&&(Y=Object.create(M),(0,g.m)(Y.unsubscribe)&&this.add(Y.unsubscribe.bind(Y)),Y.unsubscribe=this.unsubscribe.bind(this))),this._context=Y,this._next=V,this._error=$,this._complete=B}next(F){if(!this.isStopped&&this._next){const{_parentSubscriber:M}=this;S.v.useDeprecatedSynchronousErrorHandling&&M.syncErrorThrowable?this.__tryOrSetError(M,this._next,F)&&this.unsubscribe():this.__tryOrUnsub(this._next,F)}}error(F){if(!this.isStopped){const{_parentSubscriber:M}=this,{useDeprecatedSynchronousErrorHandling:$}=S.v;if(this._error)$&&M.syncErrorThrowable?(this.__tryOrSetError(M,this._error,F),this.unsubscribe()):(this.__tryOrUnsub(this._error,F),this.unsubscribe());else if(M.syncErrorThrowable)$?(M.syncErrorValue=F,M.syncErrorThrown=!0):(0,O.z)(F),this.unsubscribe();else{if(this.unsubscribe(),$)throw F;(0,O.z)(F)}}}complete(){if(!this.isStopped){const{_parentSubscriber:F}=this;if(this._complete){const M=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,M),this.unsubscribe()):(this.__tryOrUnsub(M),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(F,M){try{F.call(this._context,M)}catch($){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw $;(0,O.z)($)}}__tryOrSetError(F,M,$){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{M.call(this._context,$)}catch(B){return S.v.useDeprecatedSynchronousErrorHandling?(F.syncErrorValue=B,F.syncErrorThrown=!0,!0):((0,O.z)(B),!0)}return!1}_unsubscribe(){const{_parentSubscriber:F}=this;this._context=null,this._parentSubscriber=null,F.unsubscribe()}}},2654:(P,k,_)=>{"use strict";_.d(k,{w:()=>O});var g=_(6688),o=_(7830),T=_(7043);const S=(()=>{function N(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((F,M)=>`${M+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return N.prototype=Object.create(Error.prototype),N})();class O{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:F,_ctorUnsubscribe:M,_unsubscribe:$,_subscriptions:B}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof O)F.remove(this);else if(null!==F)for(let V=0;VR.concat(F instanceof S?F.errors:F),[])}O.EMPTY=((N=new O).closed=!0,N)},2830:(P,k,_)=>{"use strict";_.d(k,{v:()=>o});let g=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(T){if(T){const x=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+x.stack)}else g&&console.log("RxJS: Back to a better error behavior. Thank you. <3");g=T},get useDeprecatedSynchronousErrorHandling(){return g}}},1177:(P,k,_)=>{"use strict";_.d(k,{IY:()=>x,Ds:()=>O,ft:()=>N});var g=_(3489),o=_(2916),T=_(9249);class x extends g.L{constructor(F){super(),this.parent=F}_next(F){this.parent.notifyNext(F)}_error(F){this.parent.notifyError(F),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class O extends g.L{notifyNext(F){this.destination.next(F)}notifyError(F){this.destination.error(F)}notifyComplete(){this.destination.complete()}}function N(R,F){if(F.closed)return;if(R instanceof o.y)return R.subscribe(F);let M;try{M=(0,T.s)(R)(F)}catch($){F.error($)}return M}},1762:(P,k,_)=>{"use strict";_.d(k,{c:()=>S,N:()=>O});var g=_(5529),o=_(2916),T=_(2654),x=_(4327);class S extends o.y{constructor(M,$){super(),this.source=M,this.subjectFactory=$,this._refCount=0,this._isComplete=!1}_subscribe(M){return this.getSubject().subscribe(M)}getSubject(){const M=this._subject;return(!M||M.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let M=this._connection;return M||(this._isComplete=!1,M=this._connection=new T.w,M.add(this.source.subscribe(new H(this.getSubject(),this))),M.closed&&(this._connection=null,M=T.w.EMPTY)),M}refCount(){return(0,x.x)()(this)}}const O=(()=>{const F=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:F._subscribe},_isComplete:{value:F._isComplete,writable:!0},getSubject:{value:F.getSubject},connect:{value:F.connect},refCount:{value:F.refCount}}})();class H extends g.Yc{constructor(M,$){super(M),this.connectable=$}_error(M){this._unsubscribe(),super._error(M)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const M=this.connectable;if(M){this.connectable=null;const $=M._connection;M._refCount=0,M._subject=null,M._connection=null,$&&$.unsubscribe()}}}},6053:(P,k,_)=>{"use strict";_.d(k,{aj:()=>H});var g=_(2866),o=_(6688),T=_(826),x=_(448),S=_(3009);const O={};function H(...F){let M,$;return(0,g.K)(F[F.length-1])&&($=F.pop()),"function"==typeof F[F.length-1]&&(M=F.pop()),1===F.length&&(0,o.k)(F[0])&&(F=F[0]),(0,S.n)(F,$).lift(new N(M))}class N{constructor(M){this.resultSelector=M}call(M,$){return $.subscribe(new R(M,this.resultSelector))}}class R extends T.L{constructor(M,$){super(M),this.resultSelector=$,this.active=0,this.values=[],this.observables=[]}_next(M){this.values.push(O),this.observables.push(M)}_complete(){const M=this.observables,$=M.length;if(0===$)this.destination.complete();else{this.active=$,this.toRespond=$;for(let B=0;B<$;B++)this.add((0,x.D)(this,M[B],void 0,B))}}notifyComplete(M){0==(this.active-=1)&&this.destination.complete()}notifyNext(M,$,B){const V=this.values,z=this.toRespond?V[B]===O?--this.toRespond:this.toRespond:0;V[B]=$,0===z&&(this.resultSelector?this._tryResultSelector(V):this.destination.next(V.slice()))}_tryResultSelector(M){let $;try{$=this.resultSelector.apply(this,M)}catch(B){return void this.destination.error(B)}this.destination.next($)}}},8896:(P,k,_)=>{"use strict";_.d(k,{E:()=>o,c:()=>T});var g=_(2916);const o=new g.y(S=>S.complete());function T(S){return S?function x(S){return new g.y(O=>S.schedule(()=>O.complete()))}(S):o}},5254:(P,k,_)=>{"use strict";_.d(k,{D:()=>Y});var g=_(2916),o=_(9249),T=_(2654),x=_(3821),H=_(6454),N=_(5430),M=_(8955),$=_(8515);function Y(z,te){return te?function V(z,te){if(null!=z){if(function F(z){return z&&"function"==typeof z[x.L]}(z))return function S(z,te){return new g.y(De=>{const ge=new T.w;return ge.add(te.schedule(()=>{const fe=z[x.L]();ge.add(fe.subscribe({next(Ue){ge.add(te.schedule(()=>De.next(Ue)))},error(Ue){ge.add(te.schedule(()=>De.error(Ue)))},complete(){ge.add(te.schedule(()=>De.complete()))}}))})),ge})}(z,te);if((0,M.t)(z))return function O(z,te){return new g.y(De=>{const ge=new T.w;return ge.add(te.schedule(()=>z.then(fe=>{ge.add(te.schedule(()=>{De.next(fe),ge.add(te.schedule(()=>De.complete()))}))},fe=>{ge.add(te.schedule(()=>De.error(fe)))}))),ge})}(z,te);if((0,$.z)(z))return(0,H.r)(z,te);if(function B(z){return z&&"function"==typeof z[N.hZ]}(z)||"string"==typeof z)return function R(z,te){if(!z)throw new Error("Iterable cannot be null");return new g.y(De=>{const ge=new T.w;let fe;return ge.add(()=>{fe&&"function"==typeof fe.return&&fe.return()}),ge.add(te.schedule(()=>{fe=z[N.hZ](),ge.add(te.schedule(function(){if(De.closed)return;let Ue,ve;try{const Ie=fe.next();Ue=Ie.value,ve=Ie.done}catch(Ie){return void De.error(Ie)}ve?De.complete():(De.next(Ue),this.schedule())}))})),ge})}(z,te)}throw new TypeError((null!==z&&typeof z||z)+" is not observable")}(z,te):z instanceof g.y?z:new g.y((0,o.s)(z))}},3009:(P,k,_)=>{"use strict";_.d(k,{n:()=>x});var g=_(2916),o=_(3650),T=_(6454);function x(S,O){return O?(0,T.r)(S,O):new g.y((0,o.V)(S))}},6787:(P,k,_)=>{"use strict";_.d(k,{T:()=>S});var g=_(2916),o=_(2866),T=_(9146),x=_(3009);function S(...O){let H=Number.POSITIVE_INFINITY,N=null,R=O[O.length-1];return(0,o.K)(R)?(N=O.pop(),O.length>1&&"number"==typeof O[O.length-1]&&(H=O.pop())):"number"==typeof R&&(H=O.pop()),null===N&&1===O.length&&O[0]instanceof g.y?O[0]:(0,T.J)(H)((0,x.n)(O,N))}},1086:(P,k,_)=>{"use strict";_.d(k,{of:()=>x});var g=_(2866),o=_(3009),T=_(6454);function x(...S){let O=S[S.length-1];return(0,g.K)(O)?(S.pop(),(0,T.r)(S,O)):(0,o.n)(S)}},1946:(P,k,_)=>{"use strict";_.d(k,{S3:()=>S});var g=_(6688),o=_(3009),T=_(826),x=_(448);function S(...N){if(1===N.length){if(!(0,g.k)(N[0]))return N[0];N=N[0]}return(0,o.n)(N,void 0).lift(new O)}class O{call(R,F){return F.subscribe(new H(R))}}class H extends T.L{constructor(R){super(R),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(R){this.observables.push(R)}_complete(){const R=this.observables,F=R.length;if(0===F)this.destination.complete();else{for(let M=0;M{"use strict";_.d(k,{_:()=>o});var g=_(2916);function o(x,S){return new g.y(S?O=>S.schedule(T,0,{error:x,subscriber:O}):O=>O.error(x))}function T({error:x,subscriber:S}){S.error(x)}},7221:(P,k,_)=>{"use strict";_.d(k,{K:()=>o});var g=_(1177);function o(S){return function(H){const N=new T(S),R=H.lift(N);return N.caught=R}}class T{constructor(O){this.selector=O}call(O,H){return H.subscribe(new x(O,this.selector,this.caught))}}class x extends g.Ds{constructor(O,H,N){super(O),this.selector=H,this.caught=N}error(O){if(!this.isStopped){let H;try{H=this.selector(O,this.caught)}catch(F){return void super.error(F)}this._unsubscribeAndRecycle();const N=new g.IY(this);this.add(N);const R=(0,g.ft)(H,N);R!==N&&this.add(R)}}}},1406:(P,k,_)=>{"use strict";_.d(k,{b:()=>o});var g=_(1709);function o(T,x){return(0,g.zg)(T,x,1)}},13:(P,k,_)=>{"use strict";_.d(k,{b:()=>T});var g=_(3489),o=_(353);function T(H,N=o.P){return R=>R.lift(new x(H,N))}class x{constructor(N,R){this.dueTime=N,this.scheduler=R}call(N,R){return R.subscribe(new S(N,this.dueTime,this.scheduler))}}class S extends g.L{constructor(N,R,F){super(N),this.dueTime=R,this.scheduler=F,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(N){this.clearDebounce(),this.lastValue=N,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:N}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(N)}}clearDebounce(){const N=this.debouncedSubscription;null!==N&&(this.remove(N),N.unsubscribe(),this.debouncedSubscription=null)}}function O(H){H.debouncedNext()}},7314:(P,k,_)=>{"use strict";_.d(k,{d:()=>o});var g=_(3489);function o(S=null){return O=>O.lift(new T(S))}class T{constructor(O){this.defaultValue=O}call(O,H){return H.subscribe(new x(O,this.defaultValue))}}class x extends g.L{constructor(O,H){super(O),this.defaultValue=H,this.isEmpty=!0}_next(O){this.isEmpty=!1,this.destination.next(O)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},9860:(P,k,_)=>{"use strict";_.d(k,{g:()=>R});var g=_(353),o=_(2697),T=_(3489),x=_(8896),S=_(1086),O=_(1737);class N{constructor(V,Y,z){this.kind=V,this.value=Y,this.error=z,this.hasValue="N"===V}observe(V){switch(this.kind){case"N":return V.next&&V.next(this.value);case"E":return V.error&&V.error(this.error);case"C":return V.complete&&V.complete()}}do(V,Y,z){switch(this.kind){case"N":return V&&V(this.value);case"E":return Y&&Y(this.error);case"C":return z&&z()}}accept(V,Y,z){return V&&"function"==typeof V.next?this.observe(V):this.do(V,Y,z)}toObservable(){switch(this.kind){case"N":return(0,S.of)(this.value);case"E":return(0,O._)(this.error);case"C":return(0,x.c)()}throw new Error("unexpected notification kind value")}static createNext(V){return void 0!==V?new N("N",V):N.undefinedValueNotification}static createError(V){return new N("E",void 0,V)}static createComplete(){return N.completeNotification}}function R(B,V=g.P){const z=(0,o.J)(B)?+B-V.now():Math.abs(B);return te=>te.lift(new F(z,V))}N.completeNotification=new N("C"),N.undefinedValueNotification=new N("N",void 0);class F{constructor(V,Y){this.delay=V,this.scheduler=Y}call(V,Y){return Y.subscribe(new M(V,this.delay,this.scheduler))}}class M extends T.L{constructor(V,Y,z){super(V),this.delay=Y,this.scheduler=z,this.queue=[],this.active=!1,this.errored=!1}static dispatch(V){const Y=V.source,z=Y.queue,te=V.scheduler,De=V.destination;for(;z.length>0&&z[0].time-te.now()<=0;)z.shift().notification.observe(De);if(z.length>0){const ge=Math.max(0,z[0].time-te.now());this.schedule(V,ge)}else this.unsubscribe(),Y.active=!1}_schedule(V){this.active=!0,this.destination.add(V.schedule(M.dispatch,this.delay,{source:this,destination:this.destination,scheduler:V}))}scheduleNotification(V){if(!0===this.errored)return;const Y=this.scheduler,z=new $(Y.now()+this.delay,V);this.queue.push(z),!1===this.active&&this._schedule(Y)}_next(V){this.scheduleNotification(N.createNext(V))}_error(V){this.errored=!0,this.queue=[],this.destination.error(V),this.unsubscribe()}_complete(){this.scheduleNotification(N.createComplete()),this.unsubscribe()}}class ${constructor(V,Y){this.time=V,this.notification=Y}}},2198:(P,k,_)=>{"use strict";_.d(k,{h:()=>o});var g=_(3489);function o(S,O){return function(N){return N.lift(new T(S,O))}}class T{constructor(O,H){this.predicate=O,this.thisArg=H}call(O,H){return H.subscribe(new x(O,this.predicate,this.thisArg))}}class x extends g.L{constructor(O,H,N){super(O),this.predicate=H,this.thisArg=N,this.count=0}_next(O){let H;try{H=this.predicate.call(this.thisArg,O,this.count++)}catch(N){return void this.destination.error(N)}H&&this.destination.next(O)}}},7224:(P,k,_)=>{"use strict";_.d(k,{P:()=>H});var g=_(4450),o=_(2198),T=_(2986),x=_(7314),S=_(4907),O=_(5379);function H(N,R){const F=arguments.length>=2;return M=>M.pipe(N?(0,o.h)(($,B)=>N($,B,M)):O.y,(0,T.q)(1),F?(0,x.d)(R):(0,S.T)(()=>new g.K))}},4850:(P,k,_)=>{"use strict";_.d(k,{U:()=>o});var g=_(3489);function o(S,O){return function(N){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return N.lift(new T(S,O))}}class T{constructor(O,H){this.project=O,this.thisArg=H}call(O,H){return H.subscribe(new x(O,this.project,this.thisArg))}}class x extends g.L{constructor(O,H,N){super(O),this.project=H,this.count=0,this.thisArg=N||this}_next(O){let H;try{H=this.project.call(this.thisArg,O,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(H)}}},9146:(P,k,_)=>{"use strict";_.d(k,{J:()=>T});var g=_(1709),o=_(5379);function T(x=Number.POSITIVE_INFINITY){return(0,g.zg)(o.y,x)}},1709:(P,k,_)=>{"use strict";_.d(k,{zg:()=>x});var g=_(4850),o=_(5254),T=_(1177);function x(N,R,F=Number.POSITIVE_INFINITY){return"function"==typeof R?M=>M.pipe(x(($,B)=>(0,o.D)(N($,B)).pipe((0,g.U)((V,Y)=>R($,V,B,Y))),F)):("number"==typeof R&&(F=R),M=>M.lift(new S(N,F)))}class S{constructor(R,F=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=F}call(R,F){return F.subscribe(new O(R,this.project,this.concurrent))}}class O extends T.Ds{constructor(R,F,M=Number.POSITIVE_INFINITY){super(R),this.project=F,this.concurrent=M,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(P,k,_)=>{"use strict";_.d(k,{x:()=>o});var g=_(3489);function o(){return function(O){return O.lift(new T(O))}}class T{constructor(O){this.connectable=O}call(O,H){const{connectable:N}=this;N._refCount++;const R=new x(O,N),F=H.subscribe(R);return R.closed||(R.connection=N.connect()),F}}class x extends g.L{constructor(O,H){super(O),this.connectable=H}_unsubscribe(){const{connectable:O}=this;if(!O)return void(this.connection=null);this.connectable=null;const H=O._refCount;if(H<=0)return void(this.connection=null);if(O._refCount=H-1,H>1)return void(this.connection=null);const{connection:N}=this,R=O._connection;this.connection=null,R&&(!N||R===N)&&R.unsubscribe()}}},7545:(P,k,_)=>{"use strict";_.d(k,{w:()=>x});var g=_(4850),o=_(5254),T=_(1177);function x(H,N){return"function"==typeof N?R=>R.pipe(x((F,M)=>(0,o.D)(H(F,M)).pipe((0,g.U)(($,B)=>N(F,$,M,B))))):R=>R.lift(new S(H))}class S{constructor(N){this.project=N}call(N,R){return R.subscribe(new O(N,this.project))}}class O extends T.Ds{constructor(N,R){super(N),this.project=R,this.index=0}_next(N){let R;const F=this.index++;try{R=this.project(N,F)}catch(M){return void this.destination.error(M)}this._innerSub(R)}_innerSub(N){const R=this.innerSubscription;R&&R.unsubscribe();const F=new T.IY(this),M=this.destination;M.add(F),this.innerSubscription=(0,T.ft)(N,F),this.innerSubscription!==F&&M.add(this.innerSubscription)}_complete(){const{innerSubscription:N}=this;(!N||N.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(N){this.destination.next(N)}}},2986:(P,k,_)=>{"use strict";_.d(k,{q:()=>x});var g=_(3489),o=_(4231),T=_(8896);function x(H){return N=>0===H?(0,T.c)():N.lift(new S(H))}class S{constructor(N){if(this.total=N,this.total<0)throw new o.W}call(N,R){return R.subscribe(new O(N,this.total))}}class O extends g.L{constructor(N,R){super(N),this.total=R,this.count=0}_next(N){const R=this.total,F=++this.count;F<=R&&(this.destination.next(N),F===R&&(this.destination.complete(),this.unsubscribe()))}}},2868:(P,k,_)=>{"use strict";_.d(k,{b:()=>x});var g=_(3489);function o(){}var T=_(7043);function x(H,N,R){return function(M){return M.lift(new S(H,N,R))}}class S{constructor(N,R,F){this.nextOrObserver=N,this.error=R,this.complete=F}call(N,R){return R.subscribe(new O(N,this.nextOrObserver,this.error,this.complete))}}class O extends g.L{constructor(N,R,F,M){super(N),this._tapNext=o,this._tapError=o,this._tapComplete=o,this._tapError=F||o,this._tapComplete=M||o,(0,T.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||o,this._tapError=R.error||o,this._tapComplete=R.complete||o)}_next(N){try{this._tapNext.call(this._context,N)}catch(R){return void this.destination.error(R)}this.destination.next(N)}_error(N){try{this._tapError.call(this._context,N)}catch(R){return void this.destination.error(R)}this.destination.error(N)}_complete(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}},4907:(P,k,_)=>{"use strict";_.d(k,{T:()=>T});var g=_(4450),o=_(3489);function T(H=O){return N=>N.lift(new x(H))}class x{constructor(N){this.errorFactory=N}call(N,R){return R.subscribe(new S(N,this.errorFactory))}}class S extends o.L{constructor(N,R){super(N),this.errorFactory=R,this.hasValue=!1}_next(N){this.hasValue=!0,this.destination.next(N)}_complete(){if(this.hasValue)return this.destination.complete();{let N;try{N=this.errorFactory()}catch(R){N=R}this.destination.error(N)}}}function O(){return new g.K}},6227:(P,k,_)=>{"use strict";_.d(k,{V:()=>F});var g=_(353);const T=(()=>{function M(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return M.prototype=Object.create(Error.prototype),M})();var x=_(2697),S=_(1177);class H{constructor($,B,V,Y){this.waitFor=$,this.absoluteTimeout=B,this.withObservable=V,this.scheduler=Y}call($,B){return B.subscribe(new N($,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class N extends S.Ds{constructor($,B,V,Y,z){super($),this.absoluteTimeout=B,this.waitFor=V,this.withObservable=Y,this.scheduler=z,this.scheduleTimeout()}static dispatchTimeout($){const{withObservable:B}=$;$._unsubscribeAndRecycle(),$.add((0,S.ft)(B,new S.IY($)))}scheduleTimeout(){const{action:$}=this;$?this.action=$.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(N.dispatchTimeout,this.waitFor,this))}_next($){this.absoluteTimeout||this.scheduleTimeout(),super._next($)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var R=_(1737);function F(M,$=g.P){return function O(M,$,B=g.P){return V=>{let Y=(0,x.J)(M),z=Y?+M-B.now():Math.abs(M);return V.lift(new H(z,Y,$,B))}}(M,(0,R._)(new T),$)}},6454:(P,k,_)=>{"use strict";_.d(k,{r:()=>T});var g=_(2916),o=_(2654);function T(x,S){return new g.y(O=>{const H=new o.w;let N=0;return H.add(S.schedule(function(){N!==x.length?(O.next(x[N++]),O.closed||H.add(this.schedule())):O.complete()})),H})}},6686:(P,k,_)=>{"use strict";_.d(k,{o:()=>T});var g=_(2654);class o extends g.w{constructor(S,O){super()}schedule(S,O=0){return this}}class T extends o{constructor(S,O){super(S,O),this.scheduler=S,this.work=O,this.pending=!1}schedule(S,O=0){if(this.closed)return this;this.state=S;const H=this.id,N=this.scheduler;return null!=H&&(this.id=this.recycleAsyncId(N,H,O)),this.pending=!0,this.delay=O,this.id=this.id||this.requestAsyncId(N,this.id,O),this}requestAsyncId(S,O,H=0){return setInterval(S.flush.bind(S,this),H)}recycleAsyncId(S,O,H=0){if(null!==H&&this.delay===H&&!1===this.pending)return O;clearInterval(O)}execute(S,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const H=this._execute(S,O);if(H)return H;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,O){let N,H=!1;try{this.work(S)}catch(R){H=!0,N=!!R&&R||new Error(R)}if(H)return this.unsubscribe(),N}_unsubscribe(){const S=this.id,O=this.scheduler,H=O.actions,N=H.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==N&&H.splice(N,1),null!=S&&(this.id=this.recycleAsyncId(O,S,null)),this.delay=null}}},2268:(P,k,_)=>{"use strict";_.d(k,{v:()=>o});let g=(()=>{class T{constructor(S,O=T.now){this.SchedulerAction=S,this.now=O}schedule(S,O=0,H){return new this.SchedulerAction(this,S).schedule(H,O)}}return T.now=()=>Date.now(),T})();class o extends g{constructor(x,S=g.now){super(x,()=>o.delegate&&o.delegate!==this?o.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(x,S=0,O){return o.delegate&&o.delegate!==this?o.delegate.schedule(x,S,O):super.schedule(x,S,O)}flush(x){const{actions:S}=this;if(this.active)return void S.push(x);let O;this.active=!0;do{if(O=x.execute(x.state,x.delay))break}while(x=S.shift());if(this.active=!1,O){for(;x=S.shift();)x.unsubscribe();throw O}}}},353:(P,k,_)=>{"use strict";_.d(k,{P:()=>x});var g=_(6686);const x=new(_(2268).v)(g.o)},5430:(P,k,_)=>{"use strict";_.d(k,{hZ:()=>o});const o=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(P,k,_)=>{"use strict";_.d(k,{L:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(P,k,_)=>{"use strict";_.d(k,{b:()=>g});const g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(P,k,_)=>{"use strict";_.d(k,{W:()=>o});const o=(()=>{function T(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return T.prototype=Object.create(Error.prototype),T})()},4450:(P,k,_)=>{"use strict";_.d(k,{K:()=>o});const o=(()=>{function T(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return T.prototype=Object.create(Error.prototype),T})()},5279:(P,k,_)=>{"use strict";_.d(k,{N:()=>o});const o=(()=>{function T(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return T.prototype=Object.create(Error.prototype),T})()},2782:(P,k,_)=>{"use strict";function g(o){setTimeout(()=>{throw o},0)}_.d(k,{z:()=>g})},5379:(P,k,_)=>{"use strict";function g(o){return o}_.d(k,{y:()=>g})},6688:(P,k,_)=>{"use strict";_.d(k,{k:()=>g});const g=Array.isArray||(o=>o&&"number"==typeof o.length)},8515:(P,k,_)=>{"use strict";_.d(k,{z:()=>g});const g=o=>o&&"number"==typeof o.length&&"function"!=typeof o},2697:(P,k,_)=>{"use strict";function g(o){return o instanceof Date&&!isNaN(+o)}_.d(k,{J:()=>g})},7043:(P,k,_)=>{"use strict";function g(o){return"function"==typeof o}_.d(k,{m:()=>g})},7830:(P,k,_)=>{"use strict";function g(o){return null!==o&&"object"==typeof o}_.d(k,{K:()=>g})},8955:(P,k,_)=>{"use strict";function g(o){return!!o&&"function"!=typeof o.subscribe&&"function"==typeof o.then}_.d(k,{t:()=>g})},2866:(P,k,_)=>{"use strict";function g(o){return o&&"function"==typeof o.schedule}_.d(k,{K:()=>g})},9249:(P,k,_)=>{"use strict";_.d(k,{s:()=>M});var g=_(3650),o=_(2782),x=_(5430),O=_(3821),N=_(8515),R=_(8955),F=_(7830);const M=$=>{if($&&"function"==typeof $[O.L])return($=>B=>{const V=$[O.L]();if("function"!=typeof V.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return V.subscribe(B)})($);if((0,N.z)($))return(0,g.V)($);if((0,R.t)($))return($=>B=>($.then(V=>{B.closed||(B.next(V),B.complete())},V=>B.error(V)).then(null,o.z),B))($);if($&&"function"==typeof $[x.hZ])return($=>B=>{const V=$[x.hZ]();for(;;){let Y;try{Y=V.next()}catch(z){return B.error(z),B}if(Y.done){B.complete();break}if(B.next(Y.value),B.closed)break}return"function"==typeof V.return&&B.add(()=>{V.return&&V.return()}),B})($);{const V=`You provided ${(0,F.K)($)?"an invalid object":`'${$}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(V)}}},3650:(P,k,_)=>{"use strict";_.d(k,{V:()=>g});const g=o=>T=>{for(let x=0,S=o.length;x{"use strict";_.d(k,{D:()=>S});var g=_(3489);class o extends g.L{constructor(H,N,R){super(),this.parent=H,this.outerValue=N,this.outerIndex=R,this.index=0}_next(H){this.parent.notifyNext(this.outerValue,H,this.outerIndex,this.index++,this)}_error(H){this.parent.notifyError(H,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var T=_(9249),x=_(2916);function S(O,H,N,R,F=new o(O,N,R)){if(!F.closed)return H instanceof x.y?H.subscribe(F):(0,T.s)(H)(F)}},655:(P,k,_)=>{"use strict";function S(J,ee,ie,ne){var Le,de=arguments.length,Q=de<3?ee:null===ne?ne=Object.getOwnPropertyDescriptor(ee,ie):ne;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(J,ee,ie,ne);else for(var nt=J.length-1;nt>=0;nt--)(Le=J[nt])&&(Q=(de<3?Le(Q):de>3?Le(ee,ie,Q):Le(ee,ie))||Q);return de>3&&Q&&Object.defineProperty(ee,ie,Q),Q}function N(J,ee,ie,ne){return new(ie||(ie=Promise))(function(Q,Le){function nt(kt){try{Be(ne.next(kt))}catch(jn){Le(jn)}}function fn(kt){try{Be(ne.throw(kt))}catch(jn){Le(jn)}}function Be(kt){kt.done?Q(kt.value):function de(Q){return Q instanceof ie?Q:new ie(function(Le){Le(Q)})}(kt.value).then(nt,fn)}Be((ne=ne.apply(J,ee||[])).next())})}_.d(k,{gn:()=>S,mG:()=>N})},9808:(P,k,_)=>{"use strict";_.d(k,{mr:()=>ge,ez:()=>id,K0:()=>H,Do:()=>Ue,Ts:()=>kl,V_:()=>F,Ye:()=>ve,S$:()=>te,mk:()=>ft,$G:()=>Xn,sg:()=>Pe,O5:()=>Gi,RF:()=>pt,n9:()=>_n,ED:()=>et,tP:()=>Hr,b0:()=>fe,lw:()=>N,EM:()=>on,JF:()=>_r,NF:()=>eo,w_:()=>O,bD:()=>vt,q:()=>T,Mx:()=>Dn,HT:()=>S});var g=_(6435);let o=null;function T(){return o}function S(y){o||(o=y)}class O{}const H=new g.OlP("DocumentToken");let N=(()=>{class y{historyGo(v){throw new Error("Not implemented")}}return y.\u0275fac=function(v){return new(v||y)},y.\u0275prov=g.Yz7({token:y,factory:function(){return function R(){return(0,g.LFG)(M)}()},providedIn:"platform"}),y})();const F=new g.OlP("Location Initialized");let M=(()=>{class y extends N{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return T().getBaseHref(this._doc)}onPopState(v){const w=T().getGlobalEventTarget(this._doc,"window");return w.addEventListener("popstate",v,!1),()=>w.removeEventListener("popstate",v)}onHashChange(v){const w=T().getGlobalEventTarget(this._doc,"window");return w.addEventListener("hashchange",v,!1),()=>w.removeEventListener("hashchange",v)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(v){this.location.pathname=v}pushState(v,w,L){$()?this._history.pushState(v,w,L):this.location.hash=L}replaceState(v,w,L){$()?this._history.replaceState(v,w,L):this.location.hash=L}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(H))},y.\u0275prov=g.Yz7({token:y,factory:function(){return function B(){return new M((0,g.LFG)(H))}()},providedIn:"platform"}),y})();function $(){return!!window.history.pushState}function V(y,b){if(0==y.length)return b;if(0==b.length)return y;let v=0;return y.endsWith("/")&&v++,b.startsWith("/")&&v++,2==v?y+b.substring(1):1==v?y+b:y+"/"+b}function Y(y){const b=y.match(/#|\?|$/),v=b&&b.index||y.length;return y.slice(0,v-("/"===y[v-1]?1:0))+y.slice(v)}function z(y){return y&&"?"!==y[0]?"?"+y:y}let te=(()=>{class y{historyGo(v){throw new Error("Not implemented")}}return y.\u0275fac=function(v){return new(v||y)},y.\u0275prov=g.Yz7({token:y,factory:function(){return function De(y){const b=(0,g.LFG)(H).location;return new fe((0,g.LFG)(N),b&&b.origin||"")}()},providedIn:"root"}),y})();const ge=new g.OlP("appBaseHref");let fe=(()=>{class y extends te{constructor(v,w){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==w&&(w=this._platformLocation.getBaseHrefFromDOM()),null==w)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=w}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return V(this._baseHref,v)}path(v=!1){const w=this._platformLocation.pathname+z(this._platformLocation.search),L=this._platformLocation.hash;return L&&v?`${w}${L}`:w}pushState(v,w,L,re){const ue=this.prepareExternalUrl(L+z(re));this._platformLocation.pushState(v,w,ue)}replaceState(v,w,L,re){const ue=this.prepareExternalUrl(L+z(re));this._platformLocation.replaceState(v,w,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var w,L;null===(L=(w=this._platformLocation).historyGo)||void 0===L||L.call(w,v)}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(N),g.LFG(ge,8))},y.\u0275prov=g.Yz7({token:y,factory:y.\u0275fac}),y})(),Ue=(()=>{class y extends te{constructor(v,w){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=w&&(this._baseHref=w)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let w=this._platformLocation.hash;return null==w&&(w="#"),w.length>0?w.substring(1):w}prepareExternalUrl(v){const w=V(this._baseHref,v);return w.length>0?"#"+w:w}pushState(v,w,L,re){let ue=this.prepareExternalUrl(L+z(re));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(v,w,ue)}replaceState(v,w,L,re){let ue=this.prepareExternalUrl(L+z(re));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(v,w,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var w,L;null===(L=(w=this._platformLocation).historyGo)||void 0===L||L.call(w,v)}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(N),g.LFG(ge,8))},y.\u0275prov=g.Yz7({token:y,factory:y.\u0275fac}),y})(),ve=(()=>{class y{constructor(v,w){this._subject=new g.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const L=this._platformStrategy.getBaseHref();this._platformLocation=w,this._baseHref=Y(tt(L)),this._platformStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,w=""){return this.path()==this.normalize(v+z(w))}normalize(v){return y.stripTrailingSlash(function Lt(y,b){return y&&b.startsWith(y)?b.substring(y.length):b}(this._baseHref,tt(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,w="",L=null){this._platformStrategy.pushState(L,"",v,w),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+z(w)),L)}replaceState(v,w="",L=null){this._platformStrategy.replaceState(L,"",v,w),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+z(w)),L)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var w,L;null===(L=(w=this._platformStrategy).historyGo)||void 0===L||L.call(w,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(w=>{this._notifyUrlChangeListeners(w.url,w.state)}))}_notifyUrlChangeListeners(v="",w){this._urlChangeListeners.forEach(L=>L(v,w))}subscribe(v,w,L){return this._subject.subscribe({next:v,error:w,complete:L})}}return y.normalizeQueryParams=z,y.joinWithSlash=V,y.stripTrailingSlash=Y,y.\u0275fac=function(v){return new(v||y)(g.LFG(te),g.LFG(N))},y.\u0275prov=g.Yz7({token:y,factory:function(){return function Ie(){return new ve((0,g.LFG)(te),(0,g.LFG)(N))}()},providedIn:"root"}),y})();function tt(y){return y.replace(/\/index.html$/,"")}var ee=(()=>((ee=ee||{})[ee.Zero=0]="Zero",ee[ee.One=1]="One",ee[ee.Two=2]="Two",ee[ee.Few=3]="Few",ee[ee.Many=4]="Many",ee[ee.Other=5]="Other",ee))();const Nr=g.kL8;class st{}let gn=(()=>{class y extends st{constructor(v){super(),this.locale=v}getPluralCategory(v,w){switch(Nr(w||this.locale)(v)){case ee.Zero:return"zero";case ee.One:return"one";case ee.Two:return"two";case ee.Few:return"few";case ee.Many:return"many";default:return"other"}}}return y.\u0275fac=function(v){return new(v||y)(g.LFG(g.soG))},y.\u0275prov=g.Yz7({token:y,factory:y.\u0275fac}),y})();function Dn(y,b){b=encodeURIComponent(b);for(const v of y.split(";")){const w=v.indexOf("="),[L,re]=-1==w?[v,""]:[v.slice(0,w),v.slice(w+1)];if(L.trim()===b)return decodeURIComponent(re)}return null}let ft=(()=>{class y{constructor(v,w,L,re){this._iterableDiffers=v,this._keyValueDiffers=w,this._ngEl=L,this._renderer=re,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(v){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof v?v.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(v){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof v?v.split(/\s+/):v,this._rawClass&&((0,g.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const v=this._iterableDiffer.diff(this._rawClass);v&&this._applyIterableChanges(v)}else if(this._keyValueDiffer){const v=this._keyValueDiffer.diff(this._rawClass);v&&this._applyKeyValueChanges(v)}}_applyKeyValueChanges(v){v.forEachAddedItem(w=>this._toggleClass(w.key,w.currentValue)),v.forEachChangedItem(w=>this._toggleClass(w.key,w.currentValue)),v.forEachRemovedItem(w=>{w.previousValue&&this._toggleClass(w.key,!1)})}_applyIterableChanges(v){v.forEachAddedItem(w=>{if("string"!=typeof w.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,g.AaK)(w.item)}`);this._toggleClass(w.item,!0)}),v.forEachRemovedItem(w=>this._toggleClass(w.item,!1))}_applyClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(w=>this._toggleClass(w,!0)):Object.keys(v).forEach(w=>this._toggleClass(w,!!v[w])))}_removeClasses(v){v&&(Array.isArray(v)||v instanceof Set?v.forEach(w=>this._toggleClass(w,!1)):Object.keys(v).forEach(w=>this._toggleClass(w,!1)))}_toggleClass(v,w){(v=v.trim())&&v.split(/\s+/g).forEach(L=>{w?this._renderer.addClass(this._ngEl.nativeElement,L):this._renderer.removeClass(this._ngEl.nativeElement,L)})}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.ZZ4),g.Y36(g.aQg),g.Y36(g.SBq),g.Y36(g.Qsj))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),y})(),Xn=(()=>{class y{constructor(v){this._viewContainerRef=v,this._componentRef=null,this._moduleRef=null}ngOnChanges(v){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const w=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(v.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const ue=w.get(g.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(ue.injector)}else this._moduleRef=null;const re=(this._moduleRef?this._moduleRef.componentFactoryResolver:w.get(g._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(re,this._viewContainerRef.length,w,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[g.TTD]}),y})();class Br{constructor(b,v,w,L){this.$implicit=b,this.ngForOf=v,this.index=w,this.count=L}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Pe=(()=>{class y{constructor(v,w,L){this._viewContainer=v,this._template=w,this._differs=L,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const w=this._viewContainer;v.forEachOperation((L,re,ue)=>{if(null==L.previousIndex)w.createEmbeddedView(this._template,new Br(L.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)w.remove(null===re?void 0:re);else if(null!==re){const be=w.get(re);w.move(be,ue),pi(be,L)}});for(let L=0,re=w.length;L{pi(w.get(L.currentIndex),L)})}static ngTemplateContextGuard(v,w){return!0}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(g.ZZ4))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),y})();function pi(y,b){y.context.$implicit=b.item}let Gi=(()=>{class y{constructor(v,w){this._viewContainer=v,this._context=new Ur,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=w}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){mt("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){mt("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,w){return!0}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),y})();class Ur{constructor(){this.$implicit=null,this.ngIf=null}}function mt(y,b){if(b&&!b.createEmbeddedView)throw new Error(`${y} must be a TemplateRef, but received '${(0,g.AaK)(b)}'.`)}class yt{constructor(b,v){this._viewContainerRef=b,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(b){b&&!this._created?this.create():!b&&this._created&&this.destroy()}}let pt=(()=>{class y{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const w=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||w,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),w}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let w=0;w{class y{constructor(v,w,L){this.ngSwitch=L,L._addCase(),this._view=new yt(v,w)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(pt,9))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),y})(),et=(()=>{class y{constructor(v,w,L){L._addDefault(new yt(v,w))}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(pt,9))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngSwitchDefault",""]]}),y})(),Hr=(()=>{class y{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(v){if(v.ngTemplateOutlet){const w=this._viewContainerRef;this._viewRef&&w.remove(w.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?w.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return y.\u0275fac=function(v){return new(v||y)(g.Y36(g.s_b))},y.\u0275dir=g.lG2({type:y,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[g.TTD]}),y})(),kl=(()=>{class y{transform(v){return JSON.stringify(v,null,2)}}return y.\u0275fac=function(v){return new(v||y)},y.\u0275pipe=g.Yjl({name:"json",type:y,pure:!1}),y})(),id=(()=>{class y{}return y.\u0275fac=function(v){return new(v||y)},y.\u0275mod=g.oAB({type:y}),y.\u0275inj=g.cJS({providers:[{provide:st,useClass:gn}]}),y})();const vt="browser";function eo(y){return y===vt}let on=(()=>{class y{}return y.\u0275prov=(0,g.Yz7)({token:y,providedIn:"root",factory:()=>new no((0,g.LFG)(H),window)}),y})();class no{constructor(b,v){this.document=b,this.window=v,this.offset=()=>[0,0]}setOffset(b){this.offset=Array.isArray(b)?()=>b:b}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(b){this.supportsScrolling()&&this.window.scrollTo(b[0],b[1])}scrollToAnchor(b){if(!this.supportsScrolling())return;const v=function Zn(y,b){const v=y.getElementById(b)||y.getElementsByName(b)[0];if(v)return v;if("function"==typeof y.createTreeWalker&&y.body&&(y.body.createShadowRoot||y.body.attachShadow)){const w=y.createTreeWalker(y.body,NodeFilter.SHOW_ELEMENT);let L=w.currentNode;for(;L;){const re=L.shadowRoot;if(re){const ue=re.getElementById(b)||re.querySelector(`[name="${b}"]`);if(ue)return ue}L=w.nextNode()}}return null}(this.document,b);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(b){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=b)}}scrollToElement(b){const v=b.getBoundingClientRect(),w=v.left+this.window.pageXOffset,L=v.top+this.window.pageYOffset,re=this.offset();this.window.scrollTo(w-re[0],L-re[1])}attemptFocus(b){return b.focus(),this.document.activeElement===b}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const b=jr(this.window.history)||jr(Object.getPrototypeOf(this.window.history));return!(!b||!b.writable&&!b.set)}catch(b){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(b){return!1}}}function jr(y){return Object.getOwnPropertyDescriptor(y,"scrollRestoration")}class _r{}},520:(P,k,_)=>{"use strict";_.d(k,{TP:()=>nt,eN:()=>Q,JF:()=>Vt,UA:()=>ne,WM:()=>F,LE:()=>te,aW:()=>tt,Zn:()=>ie});var g=_(9808),o=_(6435),T=_(1086),x=_(2916),S=_(1406),O=_(2198),H=_(4850);class N{}class R{}class F{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(Z=>{const ce=Z.indexOf(":");if(ce>0){const le=Z.slice(0,ce),we=le.toLowerCase(),pe=Z.slice(ce+1).trim();this.maybeSetNormalizedName(le,we),this.headers.has(we)?this.headers.get(we).push(pe):this.headers.set(we,[pe])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(Z=>{let ce=G[Z];const le=Z.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(le,ce),this.maybeSetNormalizedName(Z,le))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const Z=this.headers.get(G.toLowerCase());return Z&&Z.length>0?Z[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,Z){return this.clone({name:G,value:Z,op:"a"})}set(G,Z){return this.clone({name:G,value:Z,op:"s"})}delete(G,Z){return this.clone({name:G,value:Z,op:"d"})}maybeSetNormalizedName(G,Z){this.normalizedNames.has(Z)||this.normalizedNames.set(Z,G)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(Z=>{this.headers.set(Z,G.headers.get(Z)),this.normalizedNames.set(Z,G.normalizedNames.get(Z))})}clone(G){const Z=new F;return Z.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,Z.lazyUpdate=(this.lazyUpdate||[]).concat([G]),Z}applyUpdate(G){const Z=G.name.toLowerCase();switch(G.op){case"a":case"s":let ce=G.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(G.name,Z);const le=("a"===G.op?this.headers.get(Z):void 0)||[];le.push(...ce),this.headers.set(Z,le);break;case"d":const we=G.value;if(we){let pe=this.headers.get(Z);if(!pe)return;pe=pe.filter(Ce=>-1===we.indexOf(Ce)),0===pe.length?(this.headers.delete(Z),this.normalizedNames.delete(Z)):this.headers.set(Z,pe)}else this.headers.delete(Z),this.normalizedNames.delete(Z)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(Z=>G(this.normalizedNames.get(Z),this.headers.get(Z)))}}class M{encodeKey(G){return Y(G)}encodeValue(G){return Y(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const B=/%(\d[a-f0-9])/gi,V={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Y(q){return encodeURIComponent(q).replace(B,(G,Z)=>{var ce;return null!==(ce=V[Z])&&void 0!==ce?ce:G})}function z(q){return`${q}`}class te{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new M,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $(q,G){const Z=new Map;return q.length>0&&q.replace(/^\?/,"").split("&").forEach(le=>{const we=le.indexOf("="),[pe,Ce]=-1==we?[G.decodeKey(le),""]:[G.decodeKey(le.slice(0,we)),G.decodeValue(le.slice(we+1))],We=Z.get(pe)||[];We.push(Ce),Z.set(pe,We)}),Z}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(Z=>{const ce=G.fromObject[Z];this.map.set(Z,Array.isArray(ce)?ce:[ce])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const Z=this.map.get(G);return Z?Z[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,Z){return this.clone({param:G,value:Z,op:"a"})}appendAll(G){const Z=[];return Object.keys(G).forEach(ce=>{const le=G[ce];Array.isArray(le)?le.forEach(we=>{Z.push({param:ce,value:we,op:"a"})}):Z.push({param:ce,value:le,op:"a"})}),this.clone(Z)}set(G,Z){return this.clone({param:G,value:Z,op:"s"})}delete(G,Z){return this.clone({param:G,value:Z,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const Z=this.encoder.encodeKey(G);return this.map.get(G).map(ce=>Z+"="+this.encoder.encodeValue(ce)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const Z=new te({encoder:this.encoder});return Z.cloneFrom=this.cloneFrom||this,Z.updates=(this.updates||[]).concat(G),Z}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const Z=("a"===G.op?this.map.get(G.param):void 0)||[];Z.push(z(G.value)),this.map.set(G.param,Z);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ce=this.map.get(G.param)||[];const le=ce.indexOf(z(G.value));-1!==le&&ce.splice(le,1),ce.length>0?this.map.set(G.param,ce):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class ge{constructor(){this.map=new Map}set(G,Z){return this.map.set(G,Z),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}has(G){return this.map.has(G)}keys(){return this.map.keys()}}function Ue(q){return"undefined"!=typeof ArrayBuffer&&q instanceof ArrayBuffer}function ve(q){return"undefined"!=typeof Blob&&q instanceof Blob}function Ie(q){return"undefined"!=typeof FormData&&q instanceof FormData}class tt{constructor(G,Z,ce,le){let we;if(this.url=Z,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function fe(q){switch(q){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||le?(this.body=void 0!==ce?ce:null,we=le):we=ce,we&&(this.reportProgress=!!we.reportProgress,this.withCredentials=!!we.withCredentials,we.responseType&&(this.responseType=we.responseType),we.headers&&(this.headers=we.headers),we.context&&(this.context=we.context),we.params&&(this.params=we.params)),this.headers||(this.headers=new F),this.context||(this.context=new ge),this.params){const pe=this.params.toString();if(0===pe.length)this.urlWithParams=Z;else{const Ce=Z.indexOf("?");this.urlWithParams=Z+(-1===Ce?"?":Cebt.set(qe,G.setHeaders[qe]),At)),G.setParams&&(ut=Object.keys(G.setParams).reduce((bt,qe)=>bt.set(qe,G.setParams[qe]),ut)),new tt(ce,le,pe,{params:ut,headers:At,context:$n,reportProgress:We,responseType:we,withCredentials:Ce})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class J{constructor(G,Z=200,ce="OK"){this.headers=G.headers||new F,this.status=void 0!==G.status?G.status:Z,this.statusText=G.statusText||ce,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class ee extends J{constructor(G={}){super(G),this.type=Fe.ResponseHeader}clone(G={}){return new ee({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ie extends J{constructor(G={}){super(G),this.type=Fe.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new ie({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class ne extends J{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function de(q,G){return{body:G,headers:q.headers,context:q.context,observe:q.observe,params:q.params,reportProgress:q.reportProgress,responseType:q.responseType,withCredentials:q.withCredentials}}let Q=(()=>{class q{constructor(Z){this.handler=Z}request(Z,ce,le={}){let we;if(Z instanceof tt)we=Z;else{let We,At;We=le.headers instanceof F?le.headers:new F(le.headers),le.params&&(At=le.params instanceof te?le.params:new te({fromObject:le.params})),we=new tt(Z,ce,void 0!==le.body?le.body:null,{headers:We,context:le.context,params:At,reportProgress:le.reportProgress,responseType:le.responseType||"json",withCredentials:le.withCredentials})}const pe=(0,T.of)(we).pipe((0,S.b)(We=>this.handler.handle(We)));if(Z instanceof tt||"events"===le.observe)return pe;const Ce=pe.pipe((0,O.h)(We=>We instanceof ie));switch(le.observe||"body"){case"body":switch(we.responseType){case"arraybuffer":return Ce.pipe((0,H.U)(We=>{if(null!==We.body&&!(We.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return We.body}));case"blob":return Ce.pipe((0,H.U)(We=>{if(null!==We.body&&!(We.body instanceof Blob))throw new Error("Response is not a Blob.");return We.body}));case"text":return Ce.pipe((0,H.U)(We=>{if(null!==We.body&&"string"!=typeof We.body)throw new Error("Response is not a string.");return We.body}));default:return Ce.pipe((0,H.U)(We=>We.body))}case"response":return Ce;default:throw new Error(`Unreachable: unhandled observe type ${le.observe}}`)}}delete(Z,ce={}){return this.request("DELETE",Z,ce)}get(Z,ce={}){return this.request("GET",Z,ce)}head(Z,ce={}){return this.request("HEAD",Z,ce)}jsonp(Z,ce){return this.request("JSONP",Z,{params:(new te).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Z,ce={}){return this.request("OPTIONS",Z,ce)}patch(Z,ce,le={}){return this.request("PATCH",Z,de(le,ce))}post(Z,ce,le={}){return this.request("POST",Z,de(le,ce))}put(Z,ce,le={}){return this.request("PUT",Z,de(le,ce))}}return q.\u0275fac=function(Z){return new(Z||q)(o.LFG(N))},q.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac}),q})();class Le{constructor(G,Z){this.next=G,this.interceptor=Z}handle(G){return this.interceptor.intercept(G,this.next)}}const nt=new o.OlP("HTTP_INTERCEPTORS");let fn=(()=>{class q{intercept(Z,ce){return ce.handle(Z)}}return q.\u0275fac=function(Z){return new(Z||q)},q.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac}),q})();const li=/^\)\]\}',?\n/;let ci=(()=>{class q{constructor(Z){this.xhrFactory=Z}handle(Z){if("JSONP"===Z.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(ce=>{const le=this.xhrFactory.build();if(le.open(Z.method,Z.urlWithParams),Z.withCredentials&&(le.withCredentials=!0),Z.headers.forEach((qe,Ne)=>le.setRequestHeader(qe,Ne.join(","))),Z.headers.has("Accept")||le.setRequestHeader("Accept","application/json, text/plain, */*"),!Z.headers.has("Content-Type")){const qe=Z.detectContentTypeHeader();null!==qe&&le.setRequestHeader("Content-Type",qe)}if(Z.responseType){const qe=Z.responseType.toLowerCase();le.responseType="json"!==qe?qe:"text"}const we=Z.serializeBody();let pe=null;const Ce=()=>{if(null!==pe)return pe;const qe=1223===le.status?204:le.status,Ne=le.statusText||"OK",rt=new F(le.getAllResponseHeaders()),Xe=function nn(q){return"responseURL"in q&&q.responseURL?q.responseURL:/^X-Request-URL:/m.test(q.getAllResponseHeaders())?q.getResponseHeader("X-Request-URL"):null}(le)||Z.url;return pe=new ee({headers:rt,status:qe,statusText:Ne,url:Xe}),pe},We=()=>{let{headers:qe,status:Ne,statusText:rt,url:Xe}=Ce(),Yt=null;204!==Ne&&(Yt=void 0===le.response?le.responseText:le.response),0===Ne&&(Ne=Yt?200:0);let rn=Ne>=200&&Ne<300;if("json"===Z.responseType&&"string"==typeof Yt){const it=Yt;Yt=Yt.replace(li,"");try{Yt=""!==Yt?JSON.parse(Yt):null}catch(Qn){Yt=it,rn&&(rn=!1,Yt={error:Qn,text:Yt})}}rn?(ce.next(new ie({body:Yt,headers:qe,status:Ne,statusText:rt,url:Xe||void 0})),ce.complete()):ce.error(new ne({error:Yt,headers:qe,status:Ne,statusText:rt,url:Xe||void 0}))},At=qe=>{const{url:Ne}=Ce(),rt=new ne({error:qe,status:le.status||0,statusText:le.statusText||"Unknown Error",url:Ne||void 0});ce.error(rt)};let ut=!1;const $n=qe=>{ut||(ce.next(Ce()),ut=!0);let Ne={type:Fe.DownloadProgress,loaded:qe.loaded};qe.lengthComputable&&(Ne.total=qe.total),"text"===Z.responseType&&!!le.responseText&&(Ne.partialText=le.responseText),ce.next(Ne)},bt=qe=>{let Ne={type:Fe.UploadProgress,loaded:qe.loaded};qe.lengthComputable&&(Ne.total=qe.total),ce.next(Ne)};return le.addEventListener("load",We),le.addEventListener("error",At),le.addEventListener("timeout",At),le.addEventListener("abort",At),Z.reportProgress&&(le.addEventListener("progress",$n),null!==we&&le.upload&&le.upload.addEventListener("progress",bt)),le.send(we),ce.next({type:Fe.Sent}),()=>{le.removeEventListener("error",At),le.removeEventListener("abort",At),le.removeEventListener("load",We),le.removeEventListener("timeout",At),Z.reportProgress&&(le.removeEventListener("progress",$n),null!==we&&le.upload&&le.upload.removeEventListener("progress",bt)),le.readyState!==le.DONE&&le.abort()}})}}return q.\u0275fac=function(Z){return new(Z||q)(o.LFG(g.JF))},q.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac}),q})();const Tt=new o.OlP("XSRF_COOKIE_NAME"),Zs=new o.OlP("XSRF_HEADER_NAME");class kr{}let ui=(()=>{class q{constructor(Z,ce,le){this.doc=Z,this.platform=ce,this.cookieName=le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Z=this.doc.cookie||"";return Z!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,g.Mx)(Z,this.cookieName),this.lastCookieString=Z),this.lastToken}}return q.\u0275fac=function(Z){return new(Z||q)(o.LFG(g.K0),o.LFG(o.Lbi),o.LFG(Tt))},q.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac}),q})(),Nr=(()=>{class q{constructor(Z,ce){this.tokenService=Z,this.headerName=ce}intercept(Z,ce){const le=Z.url.toLowerCase();if("GET"===Z.method||"HEAD"===Z.method||le.startsWith("http://")||le.startsWith("https://"))return ce.handle(Z);const we=this.tokenService.getToken();return null!==we&&!Z.headers.has(this.headerName)&&(Z=Z.clone({headers:Z.headers.set(this.headerName,we)})),ce.handle(Z)}}return q.\u0275fac=function(Z){return new(Z||q)(o.LFG(kr),o.LFG(Zs))},q.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac}),q})(),Hi=(()=>{class q{constructor(Z,ce){this.backend=Z,this.injector=ce,this.chain=null}handle(Z){if(null===this.chain){const ce=this.injector.get(nt,[]);this.chain=ce.reduceRight((le,we)=>new Le(le,we),this.backend)}return this.chain.handle(Z)}}return q.\u0275fac=function(Z){return new(Z||q)(o.LFG(R),o.LFG(o.zs3))},q.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac}),q})(),ji=(()=>{class q{static disable(){return{ngModule:q,providers:[{provide:Nr,useClass:fn}]}}static withOptions(Z={}){return{ngModule:q,providers:[Z.cookieName?{provide:Tt,useValue:Z.cookieName}:[],Z.headerName?{provide:Zs,useValue:Z.headerName}:[]]}}}return q.\u0275fac=function(Z){return new(Z||q)},q.\u0275mod=o.oAB({type:q}),q.\u0275inj=o.cJS({providers:[Nr,{provide:nt,useExisting:Nr,multi:!0},{provide:kr,useClass:ui},{provide:Tt,useValue:"XSRF-TOKEN"},{provide:Zs,useValue:"X-XSRF-TOKEN"}]}),q})(),Vt=(()=>{class q{}return q.\u0275fac=function(Z){return new(Z||q)},q.\u0275mod=o.oAB({type:q}),q.\u0275inj=o.cJS({providers:[Q,{provide:N,useClass:Hi},ci,{provide:R,useExisting:ci}],imports:[[ji.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),q})()},6435:(P,k,_)=>{"use strict";_.d(k,{deG:()=>Vm,tb:()=>gC,AFp:()=>hC,ip1:()=>_m,CZH:()=>Tl,hGG:()=>aw,z2F:()=>Wu,sBO:()=>LD,Sil:()=>ym,_Vd:()=>Uu,EJc:()=>mC,SBq:()=>Hu,qLn:()=>os,vpe:()=>ai,tBr:()=>Xi,XFs:()=>q,OlP:()=>gt,zs3:()=>Bn,ZZ4:()=>ip,aQg:()=>sp,soG:()=>np,YKP:()=>bv,h0i:()=>Dl,PXZ:()=>ID,R0b:()=>Kn,FiY:()=>es,Lbi:()=>pC,g9A:()=>fC,Qsj:()=>pb,FYo:()=>yv,JOm:()=>rr,tp0:()=>ts,Rgc:()=>zu,dDg:()=>CC,GfV:()=>vv,s_b:()=>Qf,ifc:()=>ut,eFA:()=>DC,G48:()=>ND,Gpc:()=>z,f3M:()=>Ld,X6Q:()=>kD,_c5:()=>ew,VLi:()=>TD,c2e:()=>_C,zSh:()=>uu,wAp:()=>Oe,vHH:()=>fe,cg1:()=>Z_,kL8:()=>Hy,dqk:()=>rt,sIi:()=>Ts,CqO:()=>If,QGY:()=>xu,F4k:()=>Xr,RDi:()=>ze,AaK:()=>B,qOj:()=>yu,TTD:()=>vt,_Bn:()=>gv,xp6:()=>Dr,uIk:()=>Cu,Tol:()=>jf,ekj:()=>Fu,Suo:()=>Gv,Xpm:()=>$i,lG2:()=>hi,Yz7:()=>Tt,cJS:()=>kr,oAB:()=>Mt,Yjl:()=>Ut,Y36:()=>Yo,_UZ:()=>Tf,GkF:()=>Af,BQk:()=>xr,ynx:()=>Ou,qZA:()=>Or,TgZ:()=>Iu,EpF:()=>Mf,n5z:()=>Sd,SDv:()=>hv,QtT:()=>fv,pQV:()=>q_,LFG:()=>Nt,$8M:()=>nc,$Z:()=>gl,NdJ:()=>qo,CRH:()=>zv,oxw:()=>ti,ALo:()=>Fv,lcZ:()=>kv,xi3:()=>Nv,Hsn:()=>xf,F$t:()=>ni,Q6J:()=>Qr,DdM:()=>Tv,VKq:()=>Av,WLB:()=>Mv,iGM:()=>jv,MAs:()=>vf,evT:()=>Tc,Jf7:()=>Sc,CHM:()=>$l,oJD:()=>Kp,LSH:()=>Xd,YNc:()=>yf,W1O:()=>qv,_uU:()=>j,Oqu:()=>X,hij:()=>_e,Gf:()=>$v});var g=_(5529),o=_(2654),T=_(2916),x=_(6787),S=_(1762);class H{constructor(t,i){this.subjectFactory=t,this.selector=i}call(t,i){const{selector:a}=this,c=this.subjectFactory(),u=a(c).subscribe(t);return u.add(i.subscribe(c)),u}}var N=_(4327);function R(){return new g.xQ}function M(e){for(let t in e)if(e[t]===M)return t;throw Error("Could not find renamed property on target object.")}function $(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function B(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(B).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function V(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Y=M({__forward_ref__:M});function z(e){return e.__forward_ref__=z,e.toString=function(){return B(this())},e}function te(e){return De(e)?e():e}function De(e){return"function"==typeof e&&e.hasOwnProperty(Y)&&e.__forward_ref__===z}class fe extends Error{constructor(t,i){super(function Ue(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function Ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}function J(e,t){const i=t?` in ${t}`:"";throw new fe(-201,`No provider for ${Ie(e)} found${i}`)}function Ke(e,t,i,a){throw new Error(`ASSERTION ERROR: ${e}`+(null==a?"":` [Expected=> ${i} ${a} ${t} <=Actual]`))}function Tt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function kr(e){return{providers:e.providers||[],imports:e.imports||[]}}function ui(e){return Nr(e,ji)||Nr(e,di)}function Nr(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ws(e){return e&&(e.hasOwnProperty(Vt)||e.hasOwnProperty(ta))?e[Vt]:null}const ji=M({\u0275prov:M}),Vt=M({\u0275inj:M}),di=M({ngInjectableDef:M}),ta=M({ngInjectorDef:M});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let G;function ce(e){const t=G;return G=e,t}function le(e,t,i){const a=ui(e);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:i&q.Optional?null:void 0!==t?t:void J(B(e),"Injector")}function pe(e){return{toString:e}.toString()}var Ce=(()=>((Ce=Ce||{})[Ce.OnPush=0]="OnPush",Ce[Ce.Default=1]="Default",Ce))(),ut=(()=>{return(e=ut||(ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ut;var e})();const $n="undefined"!=typeof globalThis&&globalThis,bt="undefined"!=typeof window&&window,qe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,rt=$n||"undefined"!=typeof global&&global||bt||qe,rn={},it=[],Qn=M({\u0275cmp:M}),na=M({\u0275dir:M}),Ys=M({\u0275pipe:M}),qs=M({\u0275mod:M}),En=M({\u0275fac:M}),Lr=M({__NG_ELEMENT_ID__:M});let Yu=0;function $i(e){return pe(()=>{const i={},a={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||it,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ut.Emulated,id:"c",styles:e.styles||it,_:null,setInput:null,schemas:e.schemas||null,tView:null},c=e.directives,u=e.features,h=e.pipes;return a.id+=Yu++,a.inputs=qt(e.inputs,i),a.outputs=qt(e.outputs),u&&u.forEach(f=>f(a)),a.directiveDefs=c?()=>("function"==typeof c?c():c).map(Gn):null,a.pipeDefs=h?()=>("function"==typeof h?h():h).map(Bt):null,a})}function Gn(e){return Rt(e)||function bn(e){return e[na]||null}(e)}function Bt(e){return function zn(e){return e[Ys]||null}(e)}const Re={};function Mt(e){return pe(()=>{const t={type:e.type,bootstrap:e.bootstrap||it,declarations:e.declarations||it,imports:e.imports||it,exports:e.exports||it,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Re[e.id]=e.type),t})}function qt(e,t){if(null==e)return rn;const i={};for(const a in e)if(e.hasOwnProperty(a)){let c=e[a],u=c;Array.isArray(c)&&(u=c[1],c=c[0]),i[c]=a,t&&(t[c]=u)}return i}const hi=$i;function Ut(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Rt(e){return e[Qn]||null}function Ht(e,t){const i=e[qs]||null;if(!i&&!0===t)throw new Error(`Type ${B(e)} does not have '\u0275mod' property.`);return i}function Fn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dt(e){return Array.isArray(e)&&!0===e[1]}function Hr(e){return 0!=(8&e.flags)}function pr(e){return 2==(2&e.flags)}function jt(e){return 1==(1&e.flags)}function wn(e){return null!==e.template}function Il(e){return 0!=(512&e[2])}function gr(e,t){return e.hasOwnProperty(En)?e[En]:null}class id{constructor(t,i,a){this.previousValue=t,this.currentValue=i,this.firstChange=a}isFirstChange(){return this.firstChange}}function vt(){return Tn}function Tn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Bl),Vl}function Vl(){const e=sa(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===rn)e.previous=t;else for(let a in t)i[a]=t[a];e.current=null,this.ngOnChanges(t)}}function Bl(e,t,i,a){const c=sa(e)||function sd(e,t){return e[eo]=t}(e,{previous:rn,current:null}),u=c.current||(c.current={}),h=c.previous,f=this.declaredInputs[i],m=h[f];u[f]=new id(m&&m.currentValue,t,h===rn),e[a]=t}vt.ngInherit=!0;const eo="__ngSimpleChanges__";function sa(e){return e[eo]||null}let Zn;function ze(e){Zn=e}function _r(){return void 0!==Zn?Zn:"undefined"!=typeof document?document:void 0}function b(e){return!!e.listen}const v={createRenderer:(e,t)=>_r()};function L(e){for(;Array.isArray(e);)e=e[0];return e}function be(e,t){return L(t[e])}function Ge(e,t){return L(t[e.index])}function at(e,t){return e.data[t]}function Ve(e,t){return e[t]}function Je(e,t){const i=t[e];return Fn(i)?i:i[0]}function ct(e){return 4==(4&e[2])}function It(e){return 128==(128&e[2])}function Jt(e,t){return null==t?null:e[t]}function yi(e){e[18]=0}function An(e,t){e[5]+=t;let i=e,a=e[3];for(;null!==a&&(1===t&&1===i[5]||-1===t&&0===i[5]);)a[5]+=t,i=a,a=a[3]}const xe={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ul(){return xe.bindingsEnabled}function oe(){return xe.lFrame.lView}function je(){return xe.lFrame.tView}function $l(e){return xe.lFrame.contextLView=e,e[8]}function Ot(){let e=ad();for(;null!==e&&64===e.type;)e=e.parent;return e}function ad(){return xe.lFrame.currentTNode}function an(){const e=xe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Wn(e,t){const i=xe.lFrame;i.currentTNode=e,i.isParent=t}function Gl(){return xe.lFrame.isParent}function zi(){xe.lFrame.isParent=!1}function ro(){return xe.isInCheckNoChangesMode}function Zi(e){xe.isInCheckNoChangesMode=e}function $t(){const e=xe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yi(){return xe.lFrame.bindingIndex++}function yr(e){const t=xe.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function io(e){xe.lFrame.inI18n=e}function so(e,t){const i=xe.lFrame;i.bindingIndex=i.bindingRootIndex=e,la(t)}function la(e){xe.lFrame.currentDirectiveIndex=e}function ld(){return xe.lFrame.currentQueryIndex}function oo(e){xe.lFrame.currentQueryIndex=e}function up(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function cd(e,t,i){if(i&q.SkipSelf){let c=t,u=e;for(;!(c=c.parent,null!==c||i&q.Host||(c=up(u),null===c||(u=u[15],10&c.type))););if(null===c)return!1;t=c,e=u}const a=xe.lFrame=Wl();return a.currentTNode=t,a.lView=e,!0}function ua(e){const t=Wl(),i=e[1];xe.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function Wl(){const e=xe.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ud(){const e=xe.lFrame;return xe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const da=ud;function ha(){const e=ud();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ln(){return xe.lFrame.selectedIndex}function $r(e){xe.lFrame.selectedIndex=e}function Ct(){const e=xe.lFrame;return at(e.tView,e.selectedIndex)}function fa(e,t){for(let i=t.directiveStart,a=t.directiveEnd;i=a)break}else t[m]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{u.call(f)}finally{}}}else try{u.call(f)}finally{}}class co{constructor(t,i,a){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=a}}function Ei(e,t,i){const a=b(e);let c=0;for(;ct){h=u-1;break}}}for(;u>16}(e),a=t;for(;i>0;)a=a[15],i--;return a}let Di=!0;function fo(e){const t=Di;return Di=e,t}let _p=0;function po(e,t){const i=go(e,t);if(-1!==i)return i;const a=t[1];a.firstCreatePass&&(e.injectorIndex=t.length,ec(a.data,e),ec(t,null),ec(a.blueprint,null));const c=_a(e,t),u=e.injectorIndex;if(md(c)){const h=vr(c),f=bi(c,t),m=f[1].data;for(let C=0;C<8;C++)t[u+C]=f[h+C]|m[h+C]}return t[u+8]=c,u}function ec(e,t){e.push(0,0,0,0,0,0,0,0,t)}function go(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _a(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,a=null,c=t;for(;null!==c;){const u=c[1],h=u.type;if(a=2===h?u.declTNode:1===h?c[6]:null,null===a)return-1;if(i++,c=c[15],-1!==a.injectorIndex)return a.injectorIndex|i<<16}return-1}function _o(e,t,i){!function mp(e,t,i){let a;"string"==typeof i?a=i.charCodeAt(0)||0:i.hasOwnProperty(Lr)&&(a=i[Lr]),null==a&&(a=i[Lr]=_p++);const c=255&a;t.data[e+(c>>5)]|=1<=0?255&t:yo:t}(i);if("function"==typeof u){if(!cd(t,e,a))return a&q.Host?Cd(c,i,a):Ed(t,i,a,c);try{const h=u(a);if(null!=h||a&q.Optional)return h;J(i)}finally{da()}}else if("number"==typeof u){let h=null,f=go(e,t),m=-1,C=a&q.Host?t[16][6]:null;for((-1===f||a&q.SkipSelf)&&(m=-1===f?_a(e,t):t[f+8],-1!==m&&wd(a,!1)?(h=t[1],f=vr(m),t=bi(m,t)):f=-1);-1!==f;){const D=t[1];if(Dd(u,f,D.data)){const I=yp(f,t,i,h,a,C);if(I!==bd)return I}m=t[f+8],-1!==m&&wd(a,t[1].data[f+8]===C)&&Dd(u,f,t)?(h=D,f=vr(m),t=bi(m,t)):f=-1}}}return Ed(t,i,a,c)}const bd={};function yo(){return new qi(Ot(),oe())}function yp(e,t,i,a,c,u){const h=t[1],f=h.data[e+8],D=ya(f,h,i,null==a?pr(f)&&Di:a!=h&&0!=(3&f.type),c&q.Host&&u===f);return null!==D?Cr(t,h,D,f):bd}function ya(e,t,i,a,c){const u=e.providerIndexes,h=t.data,f=1048575&u,m=e.directiveStart,D=u>>20,U=c?f+D:e.directiveEnd;for(let W=a?f:f+D;W=m&&se.type===i)return W}if(c){const W=h[m];if(W&&wn(W)&&W.type===i)return m}return null}function Cr(e,t,i,a){let c=e[i];const u=t.data;if(function pd(e){return e instanceof co}(c)){const h=c;h.resolving&&function Lt(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new fe(-200,`Circular dependency in DI detected for ${e}${i}`)}(Ie(u[i]));const f=fo(h.canSeeViewProviders);h.resolving=!0;const m=h.injectImpl?ce(h.injectImpl):null;cd(e,a,q.Default);try{c=e[i]=h.factory(void 0,u,e,a),t.firstCreatePass&&i>=a.directiveStart&&function fp(e,t,i){const{ngOnChanges:a,ngOnInit:c,ngDoCheck:u}=t.type.prototype;if(a){const h=Tn(t);(i.preOrderHooks||(i.preOrderHooks=[])).push(e,h),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,h)}c&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-e,c),u&&((i.preOrderHooks||(i.preOrderHooks=[])).push(e,u),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,u))}(i,u[i],t)}finally{null!==m&&ce(m),fo(f),h.resolving=!1,da()}}return c}function Dd(e,t,i){return!!(i[t+(e>>5)]&1<{const t=e.prototype.constructor,i=t[En]||tc(t),a=Object.prototype;let c=Object.getPrototypeOf(e.prototype).constructor;for(;c&&c!==a;){const u=c[En]||tc(c);if(u&&u!==i)return u;c=Object.getPrototypeOf(c)}return u=>new u})}function tc(e){return De(e)?()=>{const t=tc(te(e));return t&&t()}:gr(e)}function nc(e){return function ma(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const a=i.length;let c=0;for(;c{const a=function rc(e){return function(...i){if(e){const a=e(...i);for(const c in a)this[c]=a[c]}}}(t);function c(...u){if(this instanceof c)return a.apply(this,u),this;const h=new c(...u);return f.annotation=h,f;function f(m,C,D){const I=m.hasOwnProperty(Ji)?m[Ji]:Object.defineProperty(m,Ji,{value:[]})[Ji];for(;I.length<=D;)I.push(null);return(I[D]=I[D]||[]).push(h),m}}return i&&(c.prototype=Object.create(i.prototype)),c.prototype.ngMetadataName=e,c.annotationCls=c,c})}class gt{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=Tt({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Vm=new gt("AnalyzeForEntryComponents");function mn(e,t){void 0===t&&(t=e);for(let i=0;iArray.isArray(i)?Yn(i,t):t(i))}function Ad(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function va(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function bo(e,t){const i=[];for(let a=0;a=0?e[1|a]=i:(a=~a,function Tp(e,t,i,a){let c=e.length;if(c==t)e.push(i,a);else if(1===c)e.push(a,e[0]),e[0]=i;else{for(c--,e.push(e[c-1],e[c]);c>t;)e[c]=e[c-2],c--;e[t]=i,e[t+1]=a}}(e,a,t,i)),a}function er(e,t){const i=un(e,t);if(i>=0)return e[1|i]}function un(e,t){return function Er(e,t,i){let a=0,c=e.length>>i;for(;c!==a;){const u=a+(c-a>>1),h=e[u<t?c=u:a=u+1}return~(c<({token:e})),-1),es=Ea(Qi("Optional"),8),ts=Ea(Qi("SkipSelf"),4);let uc,hc;function rs(e){var t;return(null===(t=function dc(){if(void 0===uc&&(uc=null,rt.trustedTypes))try{uc=rt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return uc}())||void 0===t?void 0:t.createHTML(e))||e}function Gd(e){var t;return(null===(t=function fc(){if(void 0===hc&&(hc=null,rt.trustedTypes))try{hc=rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return hc}())||void 0===t?void 0:t.createHTML(e))||e}class pc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Zr(e){return e instanceof pc?e.changingThisBreaksApplicationSecurity:e}function Io(e,t){const i=function Wd(e){return e instanceof pc&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===t}function zp(e){const t=new Zp(e);return function Ym(){try{return!!(new window.DOMParser).parseFromString(rs(""),"text/html")}catch(e){return!1}}()?new xo(t):t}class xo{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const i=(new window.DOMParser).parseFromString(rs(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch(i){return null}}}class Zp{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i);const a=this.inertDocument.createElement("body");i.appendChild(a)}}getInertBodyElement(t){const i=this.inertDocument.createElement("template");if("content"in i)return i.innerHTML=rs(t),i;const a=this.inertDocument.createElement("body");return a.innerHTML=rs(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(a),a}stripCustomNsAttrs(t){const i=t.attributes;for(let c=i.length-1;0gc(t.trim())).join(", ")}function nr(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function Ta(...e){const t={};for(const i of e)for(const a in i)i.hasOwnProperty(a)&&(t[a]=!0);return t}const Yp=nr("area,br,col,hr,img,wbr"),_c=nr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mc=nr("rp,rt"),yc=Ta(Yp,Ta(_c,nr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ta(mc,nr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ta(mc,_c)),vc=nr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qd=nr("srcset"),qp=Ta(vc,qd,nr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),nr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Qm=nr("script,style,template");class Xm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,a=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?a=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,a&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let c=this.checkClobberedElement(i,i.nextSibling);if(c){i=c;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!yc.hasOwnProperty(i))return this.sanitizedSomething=!0,!Qm.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const a=t.attributes;for(let c=0;c"),!0}endElement(t){const i=t.nodeName.toLowerCase();yc.hasOwnProperty(i)&&!Yp.hasOwnProperty(i)&&(this.buf.push(""))}chars(t){this.buf.push(Jd(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const ey=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ty=/([^\#-~ |!])/g;function Jd(e){return e.replace(/&/g,"&").replace(ey,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ty,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Aa;function Cc(e){return"content"in e&&function Qd(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ft=(()=>((Ft=Ft||{})[Ft.NONE=0]="NONE",Ft[Ft.HTML=1]="HTML",Ft[Ft.STYLE=2]="STYLE",Ft[Ft.SCRIPT=3]="SCRIPT",Ft[Ft.URL=4]="URL",Ft[Ft.RESOURCE_URL=5]="RESOURCE_URL",Ft))();function Kp(e){const t=Ma();return t?Gd(t.sanitize(Ft.HTML,e)||""):Io(e,"HTML")?Gd(Zr(e)):function ny(e,t){let i=null;try{Aa=Aa||zp(e);let a=t?String(t):"";i=Aa.getInertBodyElement(a);let c=5,u=a;do{if(0===c)throw new Error("Failed to sanitize html because the input is unstable");c--,a=u,u=i.innerHTML,i=Aa.getInertBodyElement(a)}while(a!==u);return rs((new Xm).sanitizeChildren(Cc(i)||i))}finally{if(i){const a=Cc(i)||i;for(;a.firstChild;)a.removeChild(a.firstChild)}}}(_r(),ve(e))}function Xd(e){const t=Ma();return t?t.sanitize(Ft.URL,e)||"":Io(e,"URL")?Zr(e):gc(ve(e))}function Ma(){const e=oe();return e&&e[12]}const rh="__ngContext__";function Xt(e,t){e[rh]=t}function Ec(e){const t=function Oa(e){return e[rh]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Dc(e){return e.ngOriginalError}function ig(e,...t){e.error(...t)}class os{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t),a=function uy(e){return e&&e.ngErrorLogger||ig}(t);a(this._console,"ERROR",t),i&&a(this._console,"ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&Dc(t);for(;i&&Dc(i);)i=Dc(i);return i||null}}const sg=/^>|^->||--!>|)/;const lh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(rt))();function Sc(e){return e.ownerDocument.defaultView}function Tc(e){return e.ownerDocument}function en(e){return e instanceof Function?e():e}var rr=(()=>((rr=rr||{})[rr.Important=1]="Important",rr[rr.DashCase=2]="DashCase",rr))();let xa;function Mc(e,t){return xa(e,t)}function Ti(e){const t=e[3];return Dt(t)?t[3]:t}function dh(e){return fh(e[13])}function hh(e){return fh(e[4])}function fh(e){for(;null!==e&&!Dt(e);)e=e[4];return e}function ls(e,t,i,a,c){if(null!=a){let u,h=!1;Dt(a)?u=a:Fn(a)&&(h=!0,a=a[0]);const f=L(a);0===e&&null!==i?null==c?zt(t,i,f):Wr(t,i,f,c||null,!0):1===e&&null!==i?Wr(t,i,f,c||null,!0):2===e?Fc(t,f,h):3===e&&t.destroyNode(f),null!=u&&function hs(e,t,i,a,c){const u=i[7];u!==L(i)&&ls(t,e,a,u,c);for(let f=10;ft.replace(og,"\u200b$1\u200b"))}(t))}function Oc(e,t,i){return b(e)?e.createElement(t,i):null===i?e.createElement(t):e.createElementNS(i,t)}function gh(e,t){const i=e[9],a=i.indexOf(t),c=t[3];1024&t[2]&&(t[2]&=-1025,An(c,-1)),i.splice(a,1)}function xc(e,t){if(e.length<=10)return;const i=10+t,a=e[i];if(a){const c=a[17];null!==c&&c!==e&&gh(c,a),t>0&&(e[i-1][4]=a[4]);const u=va(e,10+t);!function pg(e,t){Po(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(a[1],a);const h=u[19];null!==h&&h.detachView(u[1]),a[3]=null,a[4]=null,a[2]&=-129}return a}function _h(e,t){if(!(256&t[2])){const i=t[11];b(i)&&i.destroyNode&&Po(e,t,i,3,null,null),function gg(e){let t=e[13];if(!t)return cs(e[1],e);for(;t;){let i=null;if(Fn(t))i=t[13];else{const a=t[10];a&&(i=a)}if(!i){for(;t&&!t[4]&&t!==e;)Fn(t)&&cs(t[1],t),t=t[3];null===t&&(t=e),Fn(t)&&cs(t[1],t),i=t&&t[4]}t=i}}(t)}}function cs(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function mh(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let a=0;a=0?a[c=C]():a[c=-C].unsubscribe(),u+=2}else{const h=a[c=i[u+1]];i[u].call(h)}if(null!==a){for(let u=c+1;uu?"":c[I+1].toLowerCase();const W=8&a?U:null;if(W&&-1!==wh(W,C,0)||2&a&&C!==U){if(Ln(a))return!1;h=!0}}}}else{if(!h&&!Ln(a)&&!Ln(m))return!1;if(h&&Ln(m))continue;h=!1,a=m|1&a}}return Ln(a)||h}function Ln(e){return 0==(1&e)}function Mi(e,t,i,a){if(null===t)return-1;let c=0;if(a||!i){let u=!1;for(;c-1)for(i++;i0?'="'+f+'"':"")+"]"}else 8&a?c+="."+h:4&a&&(c+=" "+h);else""!==c&&!Ln(h)&&(t+=Ah(u,c),c=""),a=h,u=u||!Ln(a);i++}return""!==c&&(t+=Ah(u,c)),t}const Te={};function Dr(e){Ih(je(),oe(),ln()+e,ro())}function Ih(e,t,i,a){if(!a)if(3==(3&t[2])){const u=e.preOrderCheckHooks;null!==u&&pa(t,u,i)}else{const u=e.preOrderHooks;null!==u&&zr(t,u,0,i)}$r(i)}function Fo(e,t){return e<<17|t<<2}function Vn(e){return e>>17&32767}function Na(e){return 2|e}function or(e){return(131068&e)>>2}function La(e,t){return-131069&e|t<<2}function Ii(e){return 1|e}function Lo(e,t){const i=e.contentQueries;if(null!==i)for(let a=0;a20&&Ih(e,t,20,ro()),i(a,c)}finally{$r(u)}}function Hh(e,t,i){if(Hr(t)){const c=t.directiveEnd;for(let u=t.directiveStart;u0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(f)!=m&&f.push(m),f.push(a,c,h)}}function tu(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function vs(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Wh(e,t,i){if(i){if(t.exportAs)for(let a=0;a0&&su(i)}}function su(e){for(let a=dh(e);null!==a;a=hh(a))for(let c=10;c0&&su(u)}const i=e[1].components;if(null!==i)for(let a=0;a0&&su(c)}}function Ey(e,t){const i=Je(t,e),a=i[1];(function Kh(e,t){for(let i=t.length;iPromise.resolve(null))();function Xh(e){return e[7]||(e[7]=[])}function Ja(e){return e.cleanup||(e.cleanup=[])}function ef(e,t){const i=e[9],a=i?i.get(os,null):null;a&&a.handleError(t)}function Qa(e,t,i,a,c){for(let u=0;uthis.processProvider(f,t,i)),Yn([t],f=>this.processInjectorType(f,[],u)),this.records.set(lu,Es(void 0,this));const h=this.records.get(uu);this.scope=null!=h?h.value:null,this.source=c||("object"==typeof t?null:B(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,i=wo,a=q.Default){this.assertNotDestroyed();const c=kd(this),u=ce(void 0);try{if(!(a&q.SkipSelf)){let f=this.records.get(t);if(void 0===f){const m=function af(e){return"function"==typeof e||"object"==typeof e&&e instanceof gt}(t)&&ui(t);f=m&&this.injectableDefInScope(m)?Es(nl(t),el):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(a&q.Self?hu():this.parent).get(t,i=a&q.Optional&&i===wo?null:i)}catch(h){if("NullInjectorError"===h.name){if((h[yn]=h[yn]||[]).unshift(B(t)),c)throw h;return function Ao(e,t,i,a){const c=e[yn];throw t[sc]&&c.unshift(t[sc]),e.message=function Vd(e,t,i,a=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let c=B(t);if(Array.isArray(t))c=t.map(B).join(" -> ");else if("object"==typeof t){let u=[];for(let h in t)if(t.hasOwnProperty(h)){let f=t[h];u.push(h+":"+("string"==typeof f?JSON.stringify(f):B(f)))}c=`{${u.join(", ")}}`}return`${i}${a?"("+a+")":""}[${c}]: ${e.replace(xp,"\n ")}`}("\n"+e.message,c,i,a),e.ngTokenPath=c,e[yn]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{ce(u),kd(c)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((a,c)=>t.push(B(c))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new fe(205,"")}processInjectorType(t,i,a){if(!(t=te(t)))return!1;let c=Ws(t);const u=null==c&&t.ngModule||void 0,h=void 0===u?t:u,f=-1!==a.indexOf(h);if(void 0!==u&&(c=Ws(u)),null==c)return!1;if(null!=c.imports&&!f){let D;a.push(h);try{Yn(c.imports,I=>{this.processInjectorType(I,i,a)&&(void 0===D&&(D=[]),D.push(I))})}finally{}if(void 0!==D)for(let I=0;Ithis.processProvider(se,U,W||it))}}this.injectorDefTypes.add(h);const m=gr(h)||(()=>new h);this.records.set(h,Es(m,el));const C=c.providers;if(null!=C&&!f){const D=t;Yn(C,I=>this.processProvider(I,D,C))}return void 0!==u&&void 0!==t.providers}processProvider(t,i,a){let c=Ni(t=te(t))?t:te(t&&t.provide);const u=function tf(e,t,i){return rl(e)?Es(void 0,e.useValue):Es(nf(e),el)}(t);if(Ni(t)||!0!==t.multi)this.records.get(c);else{let h=this.records.get(c);h||(h=Es(void 0,el,!0),h.factory=()=>ac(h.multi),this.records.set(c,h)),c=t,h.multi.push(t)}this.records.set(c,u)}hydrate(t,i){return i.value===el&&(i.value=du,i.value=i.factory()),"object"==typeof i.value&&i.value&&function Jg(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this.onDestroy.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=te(t.providedIn);return"string"==typeof i?"any"===i||i===this.scope:this.injectorDefTypes.has(i)}}function nl(e){const t=ui(e),i=null!==t?t.factory:gr(e);if(null!==i)return i;if(e instanceof gt)throw new fe(204,"");if(e instanceof Function)return function Yg(e){const t=e.length;if(t>0)throw bo(t,"?"),new fe(204,"");const i=function Hi(e){const t=e&&(e[ji]||e[di]);if(t){const i=function Al(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),t}return null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new fe(204,"")}function nf(e,t,i){let a;if(Ni(e)){const c=te(e);return gr(c)||nl(c)}if(rl(e))a=()=>te(e.useValue);else if(function qg(e){return!(!e||!e.useFactory)}(e))a=()=>e.useFactory(...ac(e.deps||[]));else if(function rf(e){return!(!e||!e.useExisting)}(e))a=()=>Nt(te(e.useExisting));else{const c=te(e&&(e.useClass||e.provide));if(!function sf(e){return!!e.deps}(e))return gr(c)||nl(c);a=()=>new c(...ac(e.deps))}return a}function Es(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function rl(e){return null!==e&&"object"==typeof e&&Pp in e}function Ni(e){return"function"==typeof e}let Bn=(()=>{class e{static create(i,a){var c;if(Array.isArray(i))return fu({name:""},a,i,"");{const u=null!==(c=i.name)&&void 0!==c?c:"";return fu({name:u},i.parent,i.providers,u)}}}return e.THROW_IF_NOT_FOUND=wo,e.NULL=new cu,e.\u0275prov=Tt({token:e,providedIn:"any",factory:()=>Nt(lu)}),e.__NG_ELEMENT_ID__=-1,e})();function o_(e,t){fa(Ec(e)[1],Ot())}function yu(e){let t=function df(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const a=[e];for(;t;){let c;if(wn(e))c=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new fe(903,"");c=t.\u0275dir}if(c){if(i){a.push(c);const h=e;h.inputs=vu(e.inputs),h.declaredInputs=vu(e.declaredInputs),h.outputs=vu(e.outputs);const f=c.hostBindings;f&&u_(e,f);const m=c.viewQuery,C=c.contentQueries;if(m&&l_(e,m),C&&c_(e,C),$(e.inputs,c.inputs),$(e.declaredInputs,c.declaredInputs),$(e.outputs,c.outputs),wn(c)&&c.data.animation){const D=e.data;D.animation=(D.animation||[]).concat(c.data.animation)}}const u=c.features;if(u)for(let h=0;h=0;a--){const c=e[a];c.hostVars=t+=c.hostVars,c.hostAttrs=ga(c.hostAttrs,i=ga(i,c.hostAttrs))}}(a)}function vu(e){return e===rn?{}:e===it?[]:e}function l_(e,t){const i=e.viewQuery;e.viewQuery=i?(a,c)=>{t(a,c),i(a,c)}:t}function c_(e,t){const i=e.contentQueries;e.contentQueries=i?(a,c,u)=>{t(a,c,u),i(a,c,u)}:t}function u_(e,t){const i=e.hostBindings;e.hostBindings=i?(a,c)=>{t(a,c),i(a,c)}:t}let al=null;function Ss(){if(!al){const e=rt.Symbol;if(e&&e.iterator)al=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let i=0;if(L(Ye[a.index])):a.index;if(b(i)){let Ye=null;if(!f&&m&&(Ye=function Ui(e,t,i,a){const c=e.cleanup;if(null!=c)for(let u=0;um?f[m]:null}"string"==typeof h&&(u+=2)}return null}(e,t,c,a.index)),null!==Ye)(Ye.__ngLastListenerFn__||Ye).__ngNextListenerFn__=u,Ye.__ngLastListenerFn__=u,W=!1;else{u=Ru(a,t,I,u,!1);const lt=i.listen(Se,c,u);U.push(u,lt),D&&D.push(c,Me,ae,ae+1)}}else u=Ru(a,t,I,u,!0),Se.addEventListener(c,u,h),U.push(u),D&&D.push(c,Me,ae,h)}else u=Ru(a,t,I,u,!1);const se=a.outputs;let he;if(W&&null!==se&&(he=se[c])){const me=he.length;if(me)for(let Se=0;Se0;)t=t[15],e--;return t}(e,xe.lFrame.contextLView))[8]}(e)}function ml(e,t){let i=null;const a=function bg(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(0==(1&i))return t[i+1]}return null}(e);for(let c=0;c=0}const dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kf(e){return e.substring(dt.key,dt.keyEnd)}function Nf(e,t){const i=dt.textEnd;return i===t?-1:(t=dt.keyEnd=function L_(e,t,i){for(;t32;)t++;return t}(e,dt.key=t,i),Gs(e,t,i))}function Gs(e,t,i){for(;t=0;i=Nf(t,i))Qt(e,kf(t),!0)}function $f(e,t){return t>=e.expandoStartIndex}function Gf(e,t,i,a){const c=e.data;if(null===c[i+1]){const u=c[ln()],h=$f(e,i);A(u,a)&&null===t&&!h&&(t=!1),t=function H_(e,t,i,a){const c=function ca(e){const t=xe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let u=a?t.residualClasses:t.residualStyles;if(null===c)0===(a?t.classBindings:t.styleBindings)&&(i=vl(i=ku(null,e,t,i,a),t.attrs,a),u=null);else{const h=t.directiveStylingLast;if(-1===h||e[h]!==c)if(i=ku(c,e,t,i,a),null===u){let m=function j_(e,t,i){const a=i?t.classBindings:t.styleBindings;if(0!==or(a))return e[Vn(a)]}(e,t,a);void 0!==m&&Array.isArray(m)&&(m=ku(null,e,t,m[1],a),m=vl(m,t.attrs,a),function $_(e,t,i,a){e[Vn(i?t.classBindings:t.styleBindings)]=a}(e,t,a,m))}else u=function G_(e,t,i){let a;const c=t.directiveEnd;for(let u=1+t.directiveStylingLast;u0)&&(C=!0)}else D=i;if(c)if(0!==m){const U=Vn(e[f+1]);e[a+1]=Fo(U,f),0!==U&&(e[U+1]=La(e[U+1],a)),e[f+1]=function Oh(e,t){return 131071&e|t<<17}(e[f+1],a)}else e[a+1]=Fo(f,0),0!==f&&(e[f+1]=La(e[f+1],a)),f=a;else e[a+1]=Fo(m,0),0===f?f=a:e[m+1]=La(e[m+1],a),m=a;C&&(e[a+1]=Na(e[a+1])),oi(e,D,a,!0),oi(e,D,a,!1),function R_(e,t,i,a,c){const u=c?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof t&&un(u,t)>=0&&(i[a+1]=Ii(i[a+1]))}(t,D,e,a,u),h=Fo(f,m),u?t.classBindings=h:t.styleBindings=h}(c,u,t,i,h,a)}}function ku(e,t,i,a,c){let u=null;const h=i.directiveEnd;let f=i.directiveStylingLast;for(-1===f?f=i.directiveStart:f++;f0;){const m=e[c],C=Array.isArray(m),D=C?m[1]:m,I=null===D;let U=i[c+1];U===Te&&(U=I?it:void 0);let W=I?er(U,a):D===a?U:void 0;if(C&&!p(W)&&(W=er(m,a)),p(W)&&(f=W,h))return f;const se=e[c+1];c=h?Vn(se):or(se)}if(null!==t){let m=u?t.residualClasses:t.residualStyles;null!=m&&(f=er(m,a))}return f}function p(e){return void 0!==e}function A(e,t){return 0!=(e.flags&(t?16:32))}function j(e,t=""){const i=oe(),a=je(),c=e+20,u=a.firstCreatePass?fs(a,c,1,t,null):a.data[c],h=i[c]=ph(i[11],t);ds(a,i,h,u),Wn(u,!1)}function X(e){return _e("",e,""),X}function _e(e,t,i){const a=oe(),c=function Os(e,t,i,a){return tn(e,Yi(),i)?t+ve(i)+a:Te}(a,e,t,i);return c!==Te&&function Mr(e,t,i){const a=be(t,e);Ic(e[11],a,i)}(a,ln(),c),_e}const Qo=void 0;var dE=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function uE(e){const i=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===a?1:5}];let Cl={};function Z_(e){const t=function hE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=jy(t);if(i)return i;const a=t.split("-")[0];if(i=jy(a),i)return i;if("en"===a)return dE;throw new Error(`Missing locale data for the locale "${e}".`)}function Hy(e){return Z_(e)[Oe.PluralCase]}function jy(e){return e in Cl||(Cl[e]=rt.ng&&rt.ng.common&&rt.ng.common.locales&&rt.ng.common.locales[e]),Cl[e]}var Oe=(()=>((Oe=Oe||{})[Oe.LocaleId=0]="LocaleId",Oe[Oe.DayPeriodsFormat=1]="DayPeriodsFormat",Oe[Oe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Oe[Oe.DaysFormat=3]="DaysFormat",Oe[Oe.DaysStandalone=4]="DaysStandalone",Oe[Oe.MonthsFormat=5]="MonthsFormat",Oe[Oe.MonthsStandalone=6]="MonthsStandalone",Oe[Oe.Eras=7]="Eras",Oe[Oe.FirstDayOfWeek=8]="FirstDayOfWeek",Oe[Oe.WeekendRange=9]="WeekendRange",Oe[Oe.DateFormat=10]="DateFormat",Oe[Oe.TimeFormat=11]="TimeFormat",Oe[Oe.DateTimeFormat=12]="DateTimeFormat",Oe[Oe.NumberSymbols=13]="NumberSymbols",Oe[Oe.NumberFormats=14]="NumberFormats",Oe[Oe.CurrencyCode=15]="CurrencyCode",Oe[Oe.CurrencySymbol=16]="CurrencySymbol",Oe[Oe.CurrencyName=17]="CurrencyName",Oe[Oe.Currencies=18]="Currencies",Oe[Oe.Directionality=19]="Directionality",Oe[Oe.PluralCase=20]="PluralCase",Oe[Oe.ExtraData=21]="ExtraData",Oe))();const fE=["zero","one","two","few","many"],zf="en-US",Zf={marker:"element"},Wf={marker:"ICU"};var xt=(()=>((xt=xt||{})[xt.SHIFT=2]="SHIFT",xt[xt.APPEND_EAGERLY=1]="APPEND_EAGERLY",xt[xt.COMMENT=2]="COMMENT",xt))();let $y=zf;function Gy(e,t,i){const a=t.insertBeforeIndex,c=Array.isArray(a)?a[0]:a;return null===c?us(e,0,i):L(i[c])}function zy(e,t,i,a,c){const u=t.insertBeforeIndex;if(Array.isArray(u)){let h=a,f=null;if(3&t.type||(f=h,h=c),null!==h&&0==(2&t.flags))for(let m=1;m1)for(let i=e.length-2;i>=0;i--){const a=e[i];Wy(a)||yE(a,t)&&null===vE(a)&&CE(a,t.index)}}function Wy(e){return!(64&e.type)}function yE(e,t){return Wy(t)||e.index>t.index}function vE(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function CE(e,t){const i=e.insertBeforeIndex;Array.isArray(i)?i[0]=t:(Eh(Gy,zy),e.insertBeforeIndex=t)}function Nu(e,t){const i=e.data[t];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function DE(e,t,i){const a=Yc(e,i,64,null,null);return Zy(t,a),a}function Yf(e,t){const i=t[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function Yy(e){return e>>>17}function qy(e){return(131070&e)>>>1}let Lu=0,Vu=0;function Jy(e,t,i,a){const c=i[11];let h,u=null;for(let f=0;f>>1,i),null,null,W,se,null)}else switch(m){case Wf:const C=t[++f],D=t[++f];null===i[D]&&Xt(i[D]=br(c,C),i);break;case Zf:const I=t[++f],U=t[++f];null===i[U]&&Xt(i[U]=Oc(c,I,null),i)}}}function Qy(e,t,i,a,c){for(let u=0;u>>2;switch(3&D){case 1:const U=i[++C],W=i[++C],se=e.data[I];"string"==typeof se?ru(t[11],t[I],null,se,U,m,W):vn(e,se,t,U,m,t[11],W,!1);break;case 0:const he=t[I];null!==he&&Ic(t[11],he,m);break;case 2:ME(e,Nu(e,I),t,m);break;case 3:Xy(e,Nu(e,I),a,t)}}}}else{const m=i[u+1];if(m>0&&3==(3&m)){const D=Nu(e,m>>>2);t[D.currentCaseLViewIndex]<0&&Xy(e,D,a,t)}}u+=f}}function Xy(e,t,i,a){let c=a[t.currentCaseLViewIndex];if(null!==c){let u=Lu;c<0&&(c=a[t.currentCaseLViewIndex]=~c,u=-1),Qy(e,a,t.update[c],i,u)}}function ME(e,t,i,a){const c=function IE(e,t){let i=e.cases.indexOf(t);if(-1===i)switch(e.type){case 1:{const a=function pE(e,t){const i=Hy(t)(parseInt(e,10)),a=fE[i];return void 0!==a?a:"other"}(t,function mE(){return $y}());i=e.cases.indexOf(a),-1===i&&"other"!==a&&(i=e.cases.indexOf("other"));break}case 0:i=e.cases.indexOf("other")}return-1===i?null:i}(t,a);if(Yf(t,i)!==c&&(ev(e,t,i),i[t.currentCaseLViewIndex]=null===c?null:~c,null!==c)){const h=i[t.anchorIdx];h&&Jy(e,t.create[c],i,h)}}function ev(e,t,i){let a=Yf(t,i);if(null!==a){const c=t.remove[a];for(let u=0;u0){const f=be(h,i);null!==f&&Fc(i[11],f)}else ev(e,Nu(e,~h),i)}}}function OE(){const e=[];let i,a,t=-1;function u(f,m){t=0;const C=Yf(f,m);a=null!==C?f.remove[C]:it}function h(){if(t0?i[f]:(e.push(t,a),u(i[1].data[~f],i),h())}return 0===e.length?null:(a=e.pop(),t=e.pop(),h())}return function c(f,m){for(i=m;e.length;)e.pop();return u(f.value,m),h}}const qf=/\ufffd(\d+):?\d*\ufffd/gi,RE=/\ufffd(\d+)\ufffd/,nv=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,PE=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,FE=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,kE=/\uE500/g;function rv(e,t,i,a,c,u,h){const f=Pi(e,a,1,null);let m=f<i.length&&i.push(m)}return{type:a,mainBinding:c,cases:t,values:i}}function W_(e){if(!e)return[];let t=0;const i=[],a=[],c=/[{}]/g;let u;for(c.lastIndex=0;u=c.exec(e);){const f=u.index;if("}"==u[0]){if(i.pop(),0==i.length){const m=e.substring(t,f);nv.test(m)?a.push($E(m)):a.push(m),t=f+1}}else{if(0==i.length){const m=e.substring(t,f);a.push(m),t=f+1}i.push("{")}}const h=e.substring(t);return a.push(h),a}function GE(e,t,i,a,c,u,h,f){const m=[],C=[],D=[];t.cases.push(u),t.create.push(m),t.remove.push(C),t.update.push(D);const U=zp(_r()).getInertBodyElement(h),W=Cc(U)||U;return W?av(e,t,i,a,m,C,D,W,c,f,0):0}function av(e,t,i,a,c,u,h,f,m,C,D){let I=0,U=f.firstChild;for(;U;){const W=Pi(e,i,1,null);switch(U.nodeType){case Node.ELEMENT_NODE:const se=U,he=se.tagName.toLowerCase();if(yc.hasOwnProperty(he)){Y_(c,Zf,he,m,W),e.data[W]=he;const Me=se.attributes;for(let Ye=0;Ye>>xt.SHIFT;let I=e[D];null===I&&(I=e[D]=m?c.createComment(f):ph(c,f)),C&&null!==i&&Wr(c,i,I,a,!1)}})(c,m.create,D,f&&8&f.type?c[f.index]:null),io(!0)}function hv(e,t,i){uv(e,t,i),function dv(){io(!1)}()}function q_(e){return function SE(e){e&&(Lu|=1<0){const a=e.data[i];Qy(e,t,Array.isArray(a)?a:a.update,function mr(){return xe.lFrame.bindingIndex}()-Vu-1,Lu)}Lu=0,Vu=0}(je(),oe(),e+20)}function K_(e,t,i,a,c){if(e=te(e),Array.isArray(e))for(let u=0;u>20;if(Ni(e)||!e.multi){const W=new co(m,c,Yo),se=Q_(f,t,c?D:D+U,I);-1===se?(_o(po(C,h),u,f),J_(u,e,t.length),t.push(f),C.directiveStart++,C.directiveEnd++,c&&(C.providerIndexes+=1048576),i.push(W),h.push(W)):(i[se]=W,h[se]=W)}else{const W=Q_(f,t,D+U,I),se=Q_(f,t,D,D+U),he=W>=0&&i[W],me=se>=0&&i[se];if(c&&!me||!c&&!he){_o(po(C,h),u,f);const Se=function lb(e,t,i,a,c){const u=new co(e,i,Yo);return u.multi=[],u.index=t,u.componentProviders=0,pv(u,c,a&&!i),u}(c?ab:ob,i.length,c,a,m);!c&&me&&(i[se].providerFactory=Se),J_(u,e,t.length,0),t.push(f),C.directiveStart++,C.directiveEnd++,c&&(C.providerIndexes+=1048576),i.push(Se),h.push(Se)}else J_(u,e,W>-1?W:se,pv(i[c?se:W],m,!c&&a));!c&&a&&me&&i[se].componentProviders++}}}function J_(e,t,i,a){const c=Ni(t),u=function Kg(e){return!!e.useClass}(t);if(c||u){const m=(u?te(t.useClass):t).prototype.ngOnDestroy;if(m){const C=e.destroyHooks||(e.destroyHooks=[]);if(!c&&t.multi){const D=C.indexOf(i);-1===D?C.push(i,[a,m]):C[D+1].push(a,m)}else C.push(i,m)}}}function pv(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Q_(e,t,i,a){for(let c=i;c{i.providersResolver=(a,c)=>function sb(e,t,i){const a=je();if(a.firstCreatePass){const c=wn(e);K_(i,a.data,a.blueprint,c,!0),K_(t,a.data,a.blueprint,c,!1)}}(a,c?c(e):e,t)}}class _v{}class db{resolveComponentFactory(t){throw function ub(e){const t=Error(`No component factory found for ${B(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Uu=(()=>{class e{}return e.NULL=new db,e})();function hb(){return bl(Ot(),oe())}function bl(e,t){return new Hu(Ge(e,t))}let Hu=(()=>{class e{constructor(i){this.nativeElement=i}}return e.__NG_ELEMENT_ID__=hb,e})();function fb(e){return e instanceof Hu?e.nativeElement:e}class yv{}let pb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function _b(){const e=oe(),i=Je(Ot().index,e);return function gb(e){return e[11]}(Fn(i)?i:e)}(),e})(),mb=(()=>{class e{}return e.\u0275prov=Tt({token:e,providedIn:"root",factory:()=>null}),e})();class vv{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const yb=new vv("13.1.3"),em={};function Kf(e,t,i,a,c=!1){for(;null!==i;){const u=t[i.index];if(null!==u&&a.push(L(u)),Dt(u))for(let f=10;f-1&&(xc(t,a),va(i,a))}this._attachedToViewContainer=!1}_h(this._lView[1],this._lView)}onDestroy(t){Uo(this._lView[1],this._lView,null,t)}markForCheck(){qa(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){jo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Qh(e,t,i){Zi(!0);try{jo(e,t,i)}finally{Zi(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pa(e,t){Po(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new fe(902,"");this._appRef=t}}class vb extends ju{constructor(t){super(t),this._view=t}detectChanges(){Jh(this._view)}checkNoChanges(){!function Gg(e){Zi(!0);try{Jh(e)}finally{Zi(!1)}}(this._view)}get context(){return null}}class Cv extends Uu{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=Rt(t);return new tm(i,this.ngModule)}}function Ev(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}const Eb=new gt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>lh});class tm extends _v{constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function Yr(e){return e.map(sr).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}get inputs(){return Ev(this.componentDef.inputs)}get outputs(){return Ev(this.componentDef.outputs)}create(t,i,a,c){const u=(c=c||this.ngModule)?function bb(e,t){return{get:(i,a,c)=>{const u=e.get(i,em,c);return u!==em||a===em?u:t.get(i,a,c)}}}(t,c.injector):t,h=u.get(yv,v),f=u.get(mb,null),m=h.createRenderer(null,this.componentDef),C=this.componentDef.selectors[0][0]||"div",D=a?function gs(e,t,i){if(b(e))return e.selectRootElement(t,i===ut.ShadowDom);let a="string"==typeof t?e.querySelector(t):t;return a.textContent="",a}(m,a,this.componentDef.encapsulation):Oc(h.createRenderer(null,this.componentDef),C,function Cb(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(C)),I=this.componentDef.onPush?576:528,U=function sl(e,t){return{components:[],scheduler:e||lh,clean:ou,playerHandler:t||null,flags:0}}(),W=ps(0,null,null,1,0,null,null,null,null,null),se=Kr(null,W,U,I,null,null,h,m,f,u);let he,me;ua(se);try{const Se=function cr(e,t,i,a,c,u){const h=i[1];i[20]=e;const m=fs(h,20,2,"#host",null),C=m.mergedAttrs=t.hostAttrs;null!==C&&($o(m,C,!0),null!==e&&(Ei(c,e,C),null!==m.classes&&Nc(c,e,m.classes),null!==m.styles&&Dh(c,e,m.styles)));const D=a.createRenderer(e,t),I=Kr(i,Kc(t),null,t.onPush?64:16,i[20],m,a,D,u||null,null);return h.firstCreatePass&&(_o(po(m,i),h,t.type),vs(h,m),Vg(m,i.length,1)),Ya(i,I),i[20]=I}(D,this.componentDef,se,h,m);if(D)if(a)Ei(m,D,["ng-version",yb.full]);else{const{attrs:ae,classes:Me}=function Mh(e){const t=[],i=[];let a=1,c=2;for(;a0&&Nc(m,D,Me.join(" "))}if(me=at(W,20),void 0!==i){const ae=me.projection=[];for(let Me=0;Mem(h,t)),t.contentQueries){const m=Ot();t.contentQueries(1,h,m.directiveStart)}const f=Ot();return!u.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||($r(f.index),Xc(i[1],f,0,f.directiveStart,f.directiveEnd,t),tu(t,h)),h}(Se,this.componentDef,se,U,[o_]),Vo(W,se,null)}finally{ha()}return new wb(this.componentType,he,bl(me,se),se,me)}}class wb extends class cb{}{constructor(t,i,a,c,u){super(),this.location=a,this._rootLView=c,this._tNode=u,this.instance=i,this.hostView=this.changeDetectorRef=new vb(c),this.componentType=t}get injector(){return new qi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Dl{}class bv{}const wl=new Map;class Sv extends Dl{constructor(t,i){super(),this._parent=i,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Cv(this);const a=Ht(t);this._bootstrapComponents=en(a.bootstrap),this._r3Injector=Cs(t,i,[{provide:Dl,useValue:this},{provide:Uu,useValue:this.componentFactoryResolver}],B(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,i=Bn.THROW_IF_NOT_FOUND,a=q.Default){return t===Bn||t===Dl||t===lu?this:this._r3Injector.get(t,i,a)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nm extends bv{constructor(t){super(),this.moduleType=t,null!==Ht(t)&&function Tb(e){const t=new Set;!function i(a){const c=Ht(a,!0),u=c.id;null!==u&&(function Dv(e,t,i){if(t&&t!==i)throw new Error(`Duplicate module registered for ${e} - ${B(t)} vs ${B(t.name)}`)}(u,wl.get(u),a),wl.set(u,a));const h=en(c.imports);for(const f of h)t.has(f)||(t.add(f),i(f))}(e)}(t)}create(t){return new Sv(this.moduleType,t)}}function Tv(e,t,i){const a=$t()+e,c=oe();return c[a]===Te?ur(c,a,i?t.call(i):t()):function Ms(e,t){return e[t]}(c,a)}function Av(e,t,i,a){return Iv(oe(),$t(),e,t,i,a)}function Mv(e,t,i,a,c){return Ov(oe(),$t(),e,t,i,a,c)}function $u(e,t){const i=e[t];return i===Te?void 0:i}function Iv(e,t,i,a,c,u){const h=t+i;return tn(e,h,c)?ur(e,h+1,u?a.call(u,c):a(c)):$u(e,h+1)}function Ov(e,t,i,a,c,u,h){const f=t+i;return function Li(e,t,i,a){const c=tn(e,t,i);return tn(e,t+1,a)||c}(e,f,c,u)?ur(e,f+2,h?a.call(h,c,u):a(c,u)):$u(e,f+2)}function Fv(e,t){const i=je();let a;const c=e+20;i.firstCreatePass?(a=function Fb(e,t){if(t)for(let i=t.length-1;i>=0;i--){const a=t[i];if(e===a.name)return a}}(t,i.pipeRegistry),i.data[c]=a,a.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(c,a.onDestroy)):a=i.data[c];const u=a.factory||(a.factory=gr(a.type)),h=ce(Yo);try{const f=fo(!1),m=u();return fo(f),function __(e,t,i,a){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=a}(i,oe(),c,m),m}finally{ce(h)}}function kv(e,t,i){const a=e+20,c=oe(),u=Ve(c,a);return Gu(c,a)?Iv(c,$t(),t,u.transform,i,u):u.transform(i)}function Nv(e,t,i,a){const c=e+20,u=oe(),h=Ve(u,c);return Gu(u,c)?Ov(u,$t(),t,h.transform,i,a,h):h.transform(i,a)}function Gu(e,t){return e[1].data[t].pure}function rm(e){return t=>{setTimeout(e,void 0,t)}}const ai=class Vb extends g.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,a){var c,u,h;let f=t,m=i||(()=>null),C=a;if(t&&"object"==typeof t){const I=t;f=null===(c=I.next)||void 0===c?void 0:c.bind(I),m=null===(u=I.error)||void 0===u?void 0:u.bind(I),C=null===(h=I.complete)||void 0===h?void 0:h.bind(I)}this.__isAsync&&(m=rm(m),f&&(f=rm(f)),C&&(C=rm(C)));const D=super.subscribe({next:f,error:m,complete:C});return t instanceof o.w&&t.add(D),D}};function Bb(){return this._results[Ss()]()}class im{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Ss(),a=im.prototype;a[i]||(a[i]=Bb)}get changes(){return this._changes||(this._changes=new ai)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const a=this;a.dirty=!1;const c=mn(t);(this._changesDetected=!function Sp(e,t,i){if(e.length!==t.length)return!1;for(let a=0;a{class e{}return e.__NG_ELEMENT_ID__=jb,e})();const Ub=zu,Hb=class extends Ub{constructor(t,i,a){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=a}createEmbeddedView(t){const i=this._declarationTContainer.tViews,a=Kr(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null);a[17]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[19];return null!==u&&(a[19]=u.createEmbeddedView(i)),Vo(i,a,t),new ju(a)}};function jb(){return Jf(Ot(),oe())}function Jf(e,t){return 4&e.type?new Hb(t,e,bl(e,t)):null}let Qf=(()=>{class e{}return e.__NG_ELEMENT_ID__=$b,e})();function $b(){return Bv(Ot(),oe())}const Gb=Qf,Lv=class extends Gb{constructor(t,i,a){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=a}get element(){return bl(this._hostTNode,this._hostLView)}get injector(){return new qi(this._hostTNode,this._hostLView)}get parentInjector(){const t=_a(this._hostTNode,this._hostLView);if(md(t)){const i=bi(t,this._hostLView),a=vr(t);return new qi(i[1].data[a+8],i)}return new qi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=Vv(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,i,a){const c=t.createEmbeddedView(i||{});return this.insert(c,a),c}createComponent(t,i,a,c,u){const h=t&&!function Eo(e){return"function"==typeof e}(t);let f;if(h)f=i;else{const I=i||{};f=I.index,a=I.injector,c=I.projectableNodes,u=I.ngModuleRef}const m=h?t:new tm(Rt(t)),C=a||this.parentInjector;if(!u&&null==m.ngModule&&C){const I=C.get(Dl,null);I&&(u=I)}const D=m.create(C,c,void 0,u);return this.insert(D.hostView,f),D}insert(t,i){const a=t._lView,c=a[1];if(function mi(e){return Dt(e[3])}(a)){const D=this.indexOf(t);if(-1!==D)this.detach(D);else{const I=a[3],U=new Lv(I,I[6],I[3]);U.detach(U.indexOf(t))}}const u=this._adjustIndex(i),h=this._lContainer;!function _g(e,t,i,a){const c=10+a,u=i.length;a>0&&(i[c-1][4]=t),a0)a.push(h[f/2]);else{const C=u[f+1],D=t[-m];for(let I=10;I{class e{constructor(i){this.appInits=i,this.resolve=tp,this.reject=tp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c})}runInitializers(){if(this.initialized)return;const i=[],a=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let c=0;c{u.subscribe({complete:f,error:m})});i.push(h)}}Promise.all(i).then(()=>{a()}).catch(c=>{this.reject(c)}),0===i.length&&a(),this.initialized=!0}}return e.\u0275fac=function(i){return new(i||e)(Nt(_m,8))},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})();const hC=new gt("AppId"),_D={provide:hC,useFactory:function gD(){return`${mm()}${mm()}${mm()}`},deps:[]};function mm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const fC=new gt("Platform Initializer"),pC=new gt("Platform ID"),gC=new gt("appBootstrapListener");let _C=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})();const np=new gt("LocaleId"),mC=new gt("DefaultCurrencyCode");class mD{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let ym=(()=>{class e{compileModuleSync(i){return new nm(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const a=this.compileModuleSync(i),u=en(Ht(i).declarations).reduce((h,f)=>{const m=Rt(f);return m&&h.push(new tm(m)),h},[]);return new mD(a,u)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})();const vD=(()=>Promise.resolve(0))();function vm(e){"undefined"==typeof Zone?vD.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Kn{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ai(!1),this.onMicrotaskEmpty=new ai(!1),this.onStable=new ai(!1),this.onError=new ai(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const c=this;c._nesting=0,c._outer=c._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=!a&&i,c.shouldCoalesceRunChangeDetection=a,c.lastRequestAnimationFrameId=-1,c.nativeRequestAnimationFrame=function CD(){let e=rt.requestAnimationFrame,t=rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i);const a=t[Zone.__symbol__("OriginalDelegate")];a&&(t=a)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function DD(e){const t=()=>{!function bD(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(rt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Em(e),e.isCheckStableRunning=!0,Cm(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Em(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,a,c,u,h,f)=>{try{return yC(e),i.invokeTask(c,u,h,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&t(),vC(e)}},onInvoke:(i,a,c,u,h,f,m)=>{try{return yC(e),i.invoke(c,u,h,f,m)}finally{e.shouldCoalesceRunChangeDetection&&t(),vC(e)}},onHasTask:(i,a,c,u)=>{i.hasTask(c,u),a===c&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,Em(e),Cm(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(i,a,c,u)=>(i.handleError(c,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(c)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Kn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,i,a){return this._inner.run(t,i,a)}runTask(t,i,a,c){const u=this._inner,h=u.scheduleEventTask("NgZoneEvent: "+c,t,ED,tp,tp);try{return u.runTask(h,i,a)}finally{u.cancelTask(h)}}runGuarded(t,i,a){return this._inner.runGuarded(t,i,a)}runOutsideAngular(t){return this._outer.run(t)}}const ED={};function Cm(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Em(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function yC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vC(e){e._nesting--,Cm(e)}class wD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ai,this.onMicrotaskEmpty=new ai,this.onStable=new ai,this.onError=new ai}run(t,i,a){return t.apply(i,a)}runGuarded(t,i,a){return t.apply(i,a)}runOutsideAngular(t){return t()}runTask(t,i,a,c){return t.apply(i,a)}}let CC=(()=>{class e{constructor(i){this._ngZone=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kn.assertNotInAngularZone(),vm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())vm(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(i)||(clearTimeout(a.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,a,c){let u=-1;a&&a>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==u),i(this._didWork,this.getPendingTasks())},a)),this._callbacks.push({doneCb:i,timeoutId:u,updateCb:c})}whenStable(i,a,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,a,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(i,a,c){return[]}}return e.\u0275fac=function(i){return new(i||e)(Nt(Kn))},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})(),EC=(()=>{class e{constructor(){this._applications=new Map,bm.addToWindow(this)}registerApplication(i,a){this._applications.set(i,a)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,a=!0){return bm.findTestabilityInTree(this,i,a)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})();class SD{addToWindow(t){}findTestabilityInTree(t,i,a){return null}}function TD(e){bm=e}let Fr,bm=new SD;const bC=new gt("AllowMultipleToken");class ID{constructor(t,i){this.name=t,this.token=i}}function DC(e,t,i=[]){const a=`Platform: ${t}`,c=new gt(a);return(u=[])=>{let h=wC();if(!h||h.injector.get(bC,!1))if(e)e(i.concat(u).concat({provide:c,useValue:!0}));else{const f=i.concat(u).concat({provide:c,useValue:!0},{provide:uu,useValue:"platform"});!function OD(e){if(Fr&&!Fr.destroyed&&!Fr.injector.get(bC,!1))throw new fe(400,"");Fr=e.get(SC);const t=e.get(fC,null);t&&t.forEach(i=>i())}(Bn.create({providers:f,name:a}))}return function xD(e){const t=wC();if(!t)throw new fe(401,"");return t}()}}function wC(){return Fr&&!Fr.destroyed?Fr:null}let SC=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,a){const f=function RD(e,t){let i;return i="noop"===e?new wD:("zone.js"===e?void 0:e)||new Kn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),i}(a?a.ngZone:void 0,{ngZoneEventCoalescing:a&&a.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:a&&a.ngZoneRunCoalescing||!1}),m=[{provide:Kn,useValue:f}];return f.run(()=>{const C=Bn.create({providers:m,parent:this.injector,name:i.moduleType.name}),D=i.create(C),I=D.injector.get(os,null);if(!I)throw new fe(402,"");return f.runOutsideAngular(()=>{const U=f.onError.subscribe({next:W=>{I.handleError(W)}});D.onDestroy(()=>{Dm(this._modules,D),U.unsubscribe()})}),function PD(e,t,i){try{const a=i();return xu(a)?a.catch(c=>{throw t.runOutsideAngular(()=>e.handleError(c)),c}):a}catch(a){throw t.runOutsideAngular(()=>e.handleError(a)),a}}(I,f,()=>{const U=D.injector.get(Tl);return U.runInitializers(),U.donePromise.then(()=>(function _E(e){(function ht(e,t){null==e&&Ke(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&($y=e.toLowerCase().replace(/_/g,"-"))}(D.injector.get(np,zf)||zf),this._moduleDoBootstrap(D),D))})})}bootstrapModule(i,a=[]){const c=TC({},a);return function AD(e,t,i){const a=new nm(i);return Promise.resolve(a)}(0,0,i).then(u=>this.bootstrapModuleFactory(u,c))}_moduleDoBootstrap(i){const a=i.injector.get(Wu);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!i.instance.ngDoBootstrap)throw new fe(403,"");i.instance.ngDoBootstrap(a)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new fe(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(i){return new(i||e)(Nt(Bn))},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})();function TC(e,t){return Array.isArray(t)?t.reduce(TC,e):Object.assign(Object.assign({},e),t)}let Wu=(()=>{class e{constructor(i,a,c,u,h){this._zone=i,this._injector=a,this._exceptionHandler=c,this._componentFactoryResolver=u,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new T.y(C=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{C.next(this._stable),C.complete()})}),m=new T.y(C=>{let D;this._zone.runOutsideAngular(()=>{D=this._zone.onStable.subscribe(()=>{Kn.assertNotInAngularZone(),vm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,C.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{Kn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{C.next(!1)}))});return()=>{D.unsubscribe(),I.unsubscribe()}});this.isStable=(0,x.T)(f,m.pipe(function F(){return e=>(0,N.x)()(function O(e,t){return function(a){let c;if(c="function"==typeof e?e:function(){return e},"function"==typeof t)return a.lift(new H(c,t));const u=Object.create(a,S.N);return u.source=a,u.subjectFactory=c,u}}(R)(e))}()))}bootstrap(i,a){if(!this._initStatus.done)throw new fe(405,"");let c;c=i instanceof _v?i:this._componentFactoryResolver.resolveComponentFactory(i),this.componentTypes.push(c.componentType);const u=function MD(e){return e.isBoundToModule}(c)?void 0:this._injector.get(Dl),f=c.create(Bn.NULL,[],a||c.selector,u),m=f.location.nativeElement,C=f.injector.get(CC,null),D=C&&f.injector.get(EC);return C&&D&&D.registerApplication(m,C),f.onDestroy(()=>{this.detachView(f.hostView),Dm(this.components,f),D&&D.unregisterApplication(m)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new fe(101,"");try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(i))}finally{this._runningTick=!1}}attachView(i){const a=i;this._views.push(a),a.attachToAppRef(this)}detachView(i){const a=i;Dm(this._views,a),a.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i),this._injector.get(gC,[]).concat(this._bootstrapListeners).forEach(c=>c(i))}ngOnDestroy(){this._views.slice().forEach(i=>i.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(i){return new(i||e)(Nt(Kn),Nt(Bn),Nt(os),Nt(Uu),Nt(Tl))},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})();function Dm(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}let MC=!0,IC=!1;function kD(){return IC=!0,MC}function ND(){if(IC)throw new Error("Cannot enable prod mode after platform setup.");MC=!1}let LD=(()=>{class e{}return e.__NG_ELEMENT_ID__=VD,e})();function VD(e){return function BD(e,t,i){if(pr(e)&&!i){const a=Je(e.index,t);return new ju(a,a)}return 47&e.type?new ju(t[16],t):null}(Ot(),oe(),16==(16&e))}class kC{constructor(){}supports(t){return Ts(t)}create(t){return new zD(t)}}const GD=(e,t)=>t;class zD{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||GD}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,a=this._removalsHead,c=0,u=null;for(;i||a;){const h=!a||i&&i.currentIndex{h=this._trackByFn(c,f),null!==i&&Object.is(i.trackById,h)?(a&&(i=this._verifyReinsertion(i,f,h,c)),Object.is(i.item,f)||this._addIdentityChange(i,f)):(i=this._mismatch(i,f,h,c),a=!0),i=i._next,c++}),this.length=c;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,a,c){let u;return null===t?u=this._itTail:(u=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,u,c)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(a,c))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,u,c)):t=this._addAfter(new ZD(i,a),u,c),t}_verifyReinsertion(t,i,a,c){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==u?t=this._reinsertAfter(u,t._prev,c):t.currentIndex!=c&&(t.currentIndex=c,this._addToMoves(t,c)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,i,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const c=t._prevRemoved,u=t._nextRemoved;return null===c?this._removalsHead=u:c._nextRemoved=u,null===u?this._removalsTail=c:u._prevRemoved=c,this._insertAfter(t,i,a),this._addToMoves(t,a),t}_moveAfter(t,i,a){return this._unlink(t),this._insertAfter(t,i,a),this._addToMoves(t,a),t}_addAfter(t,i,a){return this._insertAfter(t,i,a),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,a){const c=null===i?this._itHead:i._next;return t._next=c,t._prev=i,null===c?this._itTail=t:c._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new NC),this._linkedRecords.put(t),t.currentIndex=a,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,a=t._next;return null===i?this._itHead=a:i._next=a,null===a?this._itTail=i:a._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ZD{constructor(t,i){this.item=t,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class WD{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===i||i<=a.currentIndex)&&Object.is(a.trackById,t))return a;return null}remove(t){const i=t._prevDup,a=t._nextDup;return null===i?this._head=a:i._nextDup=a,null===a?this._tail=i:a._prevDup=i,null===this._head}}class NC{constructor(){this.map=new Map}put(t){const i=t.trackById;let a=this.map.get(i);a||(a=new WD,this.map.set(i,a)),a.add(t)}get(t,i){const c=this.map.get(t);return c?c.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function LC(e,t,i){const a=e.previousIndex;if(null===a)return a;let c=0;return i&&a{if(i&&i.key===c)this._maybeAddToChanges(i,a),this._appendAfter=i,i=i._next;else{const u=this._getOrCreateRecordForKey(c,a);i=this._insertBeforeOrAppend(i,u)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let a=i;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const a=t._prev;return i._next=t,i._prev=a,t._prev=i,a&&(a._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const c=this._records.get(t);this._maybeAddToChanges(c,i);const u=c._prev,h=c._next;return u&&(u._next=h),h&&(h._prev=u),c._next=null,c._prev=null,c}const a=new qD(t);return this._records.set(t,a),a.currentValue=i,this._addToAdditions(a),a}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(a=>i(t[a],a))}}class qD{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function BC(){return new ip([new kC])}let ip=(()=>{class e{constructor(i){this.factories=i}static create(i,a){if(null!=a){const c=a.factories.slice();i=i.concat(c)}return new e(i)}static extend(i){return{provide:e,useFactory:a=>e.create(i,a||BC()),deps:[[e,new ts,new es]]}}find(i){const a=this.factories.find(c=>c.supports(i));if(null!=a)return a;throw new fe(901,"")}}return e.\u0275prov=Tt({token:e,providedIn:"root",factory:BC}),e})();function UC(){return new sp([new VC])}let sp=(()=>{class e{constructor(i){this.factories=i}static create(i,a){if(a){const c=a.factories.slice();i=i.concat(c)}return new e(i)}static extend(i){return{provide:e,useFactory:a=>e.create(i,a||UC()),deps:[[e,new ts,new es]]}}find(i){const a=this.factories.find(u=>u.supports(i));if(a)return a;throw new fe(901,"")}}return e.\u0275prov=Tt({token:e,providedIn:"root",factory:UC}),e})();const KD=[new VC],QD=new ip([new kC]),XD=new sp(KD),ew=DC(null,"core",[{provide:pC,useValue:"unknown"},{provide:SC,deps:[Bn]},{provide:EC,deps:[]},{provide:_C,deps:[]}]),sw=[{provide:Wu,useClass:Wu,deps:[Kn,Bn,os,Uu,Tl]},{provide:Eb,deps:[Kn],useFactory:function ow(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(i){t.push(i)}}},{provide:Tl,useClass:Tl,deps:[[new es,_m]]},{provide:ym,useClass:ym,deps:[]},_D,{provide:ip,useFactory:function tw(){return QD},deps:[]},{provide:sp,useFactory:function nw(){return XD},deps:[]},{provide:np,useFactory:function rw(e){return e||function iw(){return"undefined"!=typeof $localize&&$localize.locale||zf}()},deps:[[new Xi(np),new es,new ts]]},{provide:mC,useValue:"USD"}];let aw=(()=>{class e{constructor(i){}}return e.\u0275fac=function(i){return new(i||e)(Nt(Wu))},e.\u0275mod=Mt({type:e}),e.\u0275inj=kr({providers:sw}),e})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6435),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5529),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9860),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class P extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return P.\u0275fac=function(){let k;return function(g){return(k||(k=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(P)))(g||P)}}(),P.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:P,factory:P.\u0275fac}),P})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class P{constructor(){this.data=new Map}getItem(_){return this.data.get(_)}removeItem(_){this.data.delete(_)}setItem(_,g){this.data.set(_,g)}}return P.\u0275fac=function(_){return new(_||P)},P.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:P,factory:P.\u0275fac}),P})();class ReceivedTokens{}class OAuthEvent{constructor(k){this.type=k}}class OAuthSuccessEvent extends OAuthEvent{constructor(k,_=null){super(k),this.info=_}}class OAuthInfoEvent extends OAuthEvent{constructor(k,_=null){super(k),this.info=_}}class OAuthErrorEvent extends OAuthEvent{constructor(k,_,g=null){super(k),this.reason=_,this.params=g}}function b64DecodeUnicode(P){const k=P.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(k).split("").map(function(_){return"%"+("00"+_.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(P){return btoa(P).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(k){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=_=>{location.href=_},k&&Object.assign(this,k)}}class WebHttpUrlEncodingCodec{encodeKey(k){return encodeURIComponent(k)}encodeValue(k){return encodeURIComponent(k)}decodeKey(k){return decodeURIComponent(k)}decodeValue(k){return decodeURIComponent(k)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(k){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let _=this.inferHashAlgorithm(k.idTokenHeader),g=yield this.calcHash(k.accessToken,_),T=base64UrlEncode(g.substr(0,g.length/2)),x=k.idTokenClaims.at_hash.replace(/=/g,"");return T!==x&&(console.error("exptected at_hash: "+T),console.error("actual at_hash: "+x)),T===x})}inferHashAlgorithm(k){let _=k.alg;if(!_.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+_);return"sha-"+_.substr(2)}}let UrlHelperService=(()=>{class P{getHashFragmentParams(_){let g=_||window.location.hash;if(g=decodeURIComponent(g),0!==g.indexOf("#"))return{};const o=g.indexOf("?");return g=g.substr(o>-1?o+1:1),this.parseQueryString(g)}parseQueryString(_){const g={};let o,T,x,S,O,H,N;if(null===_)return g;o=_.split("&");for(let R=0;R>6,T[S++]=128|63&O):O<55296||O>=57344?(T[S++]=224|O>>12,T[S++]=128|O>>6&63,T[S++]=128|63&O):(O=65536+((1023&O)<<10|1023&P.charCodeAt(++g)),T[S++]=240|O>>18,T[S++]=128|O>>12&63,T[S++]=128|O>>6&63,T[S++]=128|63&O);P=T}else{if("object"!==o)throw new Error(ERROR);if(null===P)throw new Error(ERROR);if(ARRAY_BUFFER&&P.constructor===ArrayBuffer)P=new Uint8Array(P);else if(!(Array.isArray(P)||ARRAY_BUFFER&&ArrayBuffer.isView(P)))throw new Error(ERROR)}P.length>64&&(P=new Sha256(k,!0).update(P).array());var H=[],N=[];for(g=0;g<64;++g){var R=P[g]||0;H[g]=92^R,N[g]=54^R}Sha256.call(this,k,_),this.update(N),this.oKeyPad=H,this.inner=!0,this.sharedMemory=_}Sha256.prototype.update=function(P){if(!this.finalized){var k,_=typeof P;if("string"!==_){if("object"!==_)throw new Error(ERROR);if(null===P)throw new Error(ERROR);if(ARRAY_BUFFER&&P.constructor===ArrayBuffer)P=new Uint8Array(P);else if(!(Array.isArray(P)||ARRAY_BUFFER&&ArrayBuffer.isView(P)))throw new Error(ERROR);k=!0}for(var g,T,o=0,x=P.length,S=this.blocks;o>2]|=P[o]<>2]|=g<>2]|=(192|g>>6)<>2]|=(128|63&g)<=57344?(S[T>>2]|=(224|g>>12)<>2]|=(128|g>>6&63)<>2]|=(128|63&g)<>2]|=(240|g>>18)<>2]|=(128|g>>12&63)<>2]|=(128|g>>6&63)<>2]|=(128|63&g)<=64?(this.block=S[16],this.start=T-64,this.hash(),this.hashed=!0):this.start=T}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var P=this.blocks,k=this.lastByteIndex;P[16]=this.block,P[k>>2]|=EXTRA[3&k],this.block=P[16],k>=56&&(this.hashed||this.hash(),P[0]=this.block,P[16]=P[1]=P[2]=P[3]=P[4]=P[5]=P[6]=P[7]=P[8]=P[9]=P[10]=P[11]=P[12]=P[13]=P[14]=P[15]=0),P[14]=this.hBytes<<3|this.bytes>>>29,P[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var H,M,V,Y,z,te,P=this.h0,k=this.h1,_=this.h2,g=this.h3,o=this.h4,T=this.h5,x=this.h6,S=this.h7,O=this.blocks;for(H=16;H<64;++H)O[H]=O[H-16]+(((M=O[H-15])>>>7|M<<25)^(M>>>18|M<<14)^M>>>3)+O[H-7]+(((M=O[H-2])>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)<<0;for(te=k&_,H=0;H<64;H+=4)this.first?(this.is224?(V=300032,S=(M=O[0]-1413257819)-150054599<<0,g=M+24177077<<0):(V=704751109,S=(M=O[0]-210244248)-1521486534<<0,g=M+143694565<<0),this.first=!1):(S=g+(M=S+((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&T^~o&x)+K[H]+O[H])<<0,g=M+(((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+((V=P&k)^P&_^te))<<0),x=_+(M=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&o^~S&T)+K[H+1]+O[H+1])<<0,_=M+(((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+((Y=g&P)^g&k^V))<<0,T=k+(M=T+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&o)+K[H+2]+O[H+2])<<0,k=M+(((_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10))+((z=_&g)^_&P^Y))<<0,o=P+(M=o+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&x^~T&S)+K[H+3]+O[H+3])<<0,P=M+(((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+((te=k&_)^k&g^z))<<0;this.h0=this.h0+P<<0,this.h1=this.h1+k<<0,this.h2=this.h2+_<<0,this.h3=this.h3+g<<0,this.h4=this.h4+o<<0,this.h5=this.h5+T<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var P=this.h0,k=this.h1,_=this.h2,g=this.h3,o=this.h4,T=this.h5,x=this.h6,S=this.h7,O=HEX_CHARS[P>>28&15]+HEX_CHARS[P>>24&15]+HEX_CHARS[P>>20&15]+HEX_CHARS[P>>16&15]+HEX_CHARS[P>>12&15]+HEX_CHARS[P>>8&15]+HEX_CHARS[P>>4&15]+HEX_CHARS[15&P]+HEX_CHARS[k>>28&15]+HEX_CHARS[k>>24&15]+HEX_CHARS[k>>20&15]+HEX_CHARS[k>>16&15]+HEX_CHARS[k>>12&15]+HEX_CHARS[k>>8&15]+HEX_CHARS[k>>4&15]+HEX_CHARS[15&k]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x];return this.is224||(O+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var P=this.h0,k=this.h1,_=this.h2,g=this.h3,o=this.h4,T=this.h5,x=this.h6,S=this.h7,O=[P>>24&255,P>>16&255,P>>8&255,255&P,k>>24&255,k>>16&255,k>>8&255,255&k,_>>24&255,_>>16&255,_>>8&255,255&_,g>>24&255,g>>16&255,g>>8&255,255&g,o>>24&255,o>>16&255,o>>8&255,255&o,T>>24&255,T>>16&255,T>>8&255,255&T,x>>24&255,x>>16&255,x>>8&255,255&x];return this.is224||O.push(S>>24&255,S>>16&255,S>>8&255,255&S),O},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var P=new ArrayBuffer(this.is224?28:32),k=new DataView(P);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),P},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var P=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(P),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(P){if("string"!=typeof P)throw new TypeError("expected string");var k,_=P,g=new Uint8Array(_.length);for(k=0;k<_.length;k++)g[k]=_.charCodeAt(k);return g}function encodeUTF8(P){var k,_=[];for(k=0;k{class P{calcHash(_,g){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(_)))})}toHashString2(_){let g="";for(let o of _)g+=String.fromCharCode(o);return g}toHashString(_){const g=new Uint8Array(_);let o="";for(let T of g)o+=String.fromCharCode(T);return o}}return P.\u0275fac=function(_){return new(_||P)},P.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:P,factory:P.\u0275fac}),P})(),OAuthService=(()=>{class P extends AuthConfig{constructor(_,g,o,T,x,S,O,H,N,R){var F;super(),this.ngZone=_,this.http=g,this.config=x,this.urlHelper=S,this.logger=O,this.crypto=H,this.dateTimeService=R,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=N,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),T&&(this.tokenValidationHandler=T),x&&this.configure(x);try{o?this.setStorage(o):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(M){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",M)}if(this.checkLocalStorageAccessable()){const M=null===(F=null==window?void 0:window.navigator)||void 0===F?void 0:F.userAgent;((null==M?void 0:M.includes("MSIE "))||(null==M?void 0:M.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const _="test";try{return void 0!==window.localStorage&&(localStorage.setItem(_,_),localStorage.removeItem(_),!0)}catch(g){return!1}}configure(_){Object.assign(this,new AuthConfig,_),this.config=Object.assign({},new AuthConfig,_),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"token_received"===_.type)).subscribe(_=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(_={},g,o=!0){let T=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?T=!0:"logout"===x.type&&(T=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==g||"any"===g||x.info===g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{T&&this.refreshInternal(_,o).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(_,g){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(_,g):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(_=null){return this.loadDiscoveryDocument().then(g=>this.tryLogin(_))}loadDiscoveryDocumentAndLogin(_=null){return this.loadDiscoveryDocumentAndTryLogin(_=_||{}).then(g=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof _.state?_.state:""),!1))}debug(..._){this.showDebugInformation&&this.logger.debug.apply(this.logger,_)}validateUrlFromDiscoveryDocument(_){const g=[],o=this.validateUrlForHttps(_),T=this.validateUrlAgainstIssuer(_);return o||g.push("https for all urls required. Also for urls received by discovery."),T||g.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),g}validateUrlForHttps(_){if(!_)return!0;const g=_.toLowerCase();return!(!1!==this.requireHttps&&(!g.match(/^http:\/\/localhost($|[:\/])/)&&!g.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||g.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(_,g){if(!_)throw new Error(`'${g}' should not be null`);if(!this.validateUrlForHttps(_))throw new Error(`'${g}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(_){return!this.strictDiscoveryDocumentValidation||!_||_.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"token_received"===_.type)).subscribe(_=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const _=this.getAccessTokenExpiration(),g=this.getAccessTokenStoredAt(),o=this.calcTimeout(g,_);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(o)).subscribe(T=>{this.ngZone.run(()=>{this.eventsSubject.next(T)})})})}setupIdTokenTimer(){const _=this.getIdTokenExpiration(),g=this.getIdTokenStoredAt(),o=this.calcTimeout(g,_);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(o)).subscribe(T=>{this.ngZone.run(()=>{this.eventsSubject.next(T)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(_,g){const o=this.dateTimeService.now();return Math.max(0,(g-_)*this.timeoutFactor-(o-_))}setStorage(_){this._storage=_,this.configChanged()}loadDiscoveryDocument(_=null){return new Promise((g,o)=>{_||((_=this.issuer||"").endsWith("/")||(_+="/"),_+=".well-known/openid-configuration"),this.validateUrlForHttps(_)?this.http.get(_).subscribe(T=>{if(!this.validateDiscoveryDocument(T))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void o("discovery_document_validation_error");this.loginUrl=T.authorization_endpoint,this.logoutUrl=T.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=T.grant_types_supported,this.issuer=T.issuer,this.tokenEndpoint=T.token_endpoint,this.userinfoEndpoint=T.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=T.jwks_uri,this.sessionCheckIFrameUrl=T.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(T),this.revocationEndpoint=T.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(x=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:T,jwks:x});this.eventsSubject.next(O),g(O)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),o(x)})},T=>{this.logger.error("error loading discovery document",T),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",T)),o(T)}):o("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((_,g)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(o=>{this.jwks=o,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),_(o)},o=>{this.logger.error("error loading jwks",o),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",o)),g(o)}):_(null)})}validateDiscoveryDocument(_){let g;return this.skipIssuerCheck||_.issuer===this.issuer?(g=this.validateUrlFromDiscoveryDocument(_.authorization_endpoint),g.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",g),!1):(g=this.validateUrlFromDiscoveryDocument(_.end_session_endpoint),g.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",g),!1):(g=this.validateUrlFromDiscoveryDocument(_.token_endpoint),g.length>0&&this.logger.error("error validating token_endpoint in discovery document",g),g=this.validateUrlFromDiscoveryDocument(_.revocation_endpoint),g.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",g),g=this.validateUrlFromDiscoveryDocument(_.userinfo_endpoint),g.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",g),!1):(g=this.validateUrlFromDiscoveryDocument(_.jwks_uri),g.length>0?(this.logger.error("error validating jwks_uri in discovery document",g),!1):(this.sessionChecksEnabled&&!_.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+_.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(_,g,o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(_,g,o).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((_,g)=>{const o=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:o,observe:"response",responseType:"text"}).subscribe(T=>{if(this.debug("userinfo received",JSON.stringify(T)),T.headers.get("content-type").startsWith("application/json")){let x=JSON.parse(T.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.sub!==S.sub))return void g("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),_({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),_(JSON.parse(T.body))},T=>{this.logger.error("error loading user info",T),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",T)),g(T)})})}fetchTokenUsingPasswordFlow(_,g,o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:_,password:g},o)}fetchTokenUsingGrant(_,g,o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let T=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",_).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(T=T.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(T=T.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))T=T.set(x,this.customQueryParams[x]);for(const x of Object.keys(g))T=T.set(x,g[x]);return o=o.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,S)=>{this.http.post(this.tokenEndpoint,T,{headers:o}).subscribe(O=>{this.debug("tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.oidc&&O.id_token&&this.processIdToken(O.id_token,O.access_token).then(H=>{this.storeIdToken(H),x(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),S(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((_,g)=>{let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),T=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);T=T.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,o,{headers:T}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),g(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=_=>{const g=this.processMessageEventMessage(_);this.tryLogin({customHashFragment:g,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(o=>this.debug("tryLogin during silent refresh failed",o))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(_={},g=!0){const o=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(_.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const T=this.document.getElementById(this.silentRefreshIFrameName);T&&this.document.body.removeChild(T),this.silentRefreshSubject=o.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,g,_).then(R=>{x.setAttribute("src",R),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>R instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),H=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>"token_received"===R.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),N=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([O,H,N]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(R=>{if(R instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===R.type||(R=new OAuthErrorEvent("silent_refresh_error",R)),this.eventsSubject.next(R),R;return"token_received"===R.type&&(R=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(R)),R})).toPromise()}initImplicitFlowInPopup(_){return this.initLoginFlowInPopup(_)}initLoginFlowInPopup(_){return _=_||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(g=>new Promise((o,T)=>{let O,S=null;_.windowRef?_.windowRef&&!_.windowRef.closed&&(S=_.windowRef,S.location.href=g):S=window.open(g,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(_));const H=$=>{this.tryLogin({customHashFragment:$,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{R(),o(!0)},B=>{R(),T(B)})};S?O=window.setInterval(()=>{(!S||S.closed)&&(R(),T(new OAuthErrorEvent("popup_closed",{})))},500):T(new OAuthErrorEvent("popup_blocked",{}));const R=()=>{window.clearInterval(O),window.removeEventListener("storage",M),window.removeEventListener("message",F),null!==S&&S.close(),S=null},F=$=>{const B=this.processMessageEventMessage($);B&&null!==B?(window.removeEventListener("storage",M),H(B)):console.log("false event firing")},M=$=>{"auth_hash"===$.key&&(window.removeEventListener("message",F),H($.newValue))};window.addEventListener("message",F),window.addEventListener("storage",M)}))}calculatePopupFeatures(_){const g=_.height||470,o=_.width||500,T=window.screenLeft+(window.outerWidth-o)/2;return`location=no,toolbar=no,width=${o},height=${g},top=${window.screenTop+(window.outerHeight-g)/2},left=${T}`}processMessageEventMessage(_){let g="#";if(this.silentRefreshMessagePrefix&&(g+=this.silentRefreshMessagePrefix),!_||!_.data||"string"!=typeof _.data)return;const o=_.data;return o.startsWith(g)?"#"+o.substr(g.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=_=>{const g=_.origin.toLowerCase(),o=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),o.startsWith(g)){switch(_.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",_)}else this.debug("sessionCheckEventListener","wrong origin",g,"expected",o,"event",_)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(_=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(_=>{this.debug("token refresh after session change worked")}).catch(_=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"silently_refreshed"===_.type||"silent_refresh_timeout"===_.type||"silent_refresh_error"===_.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(_=>{"silently_refreshed"!==_.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const _=this.document.getElementById(this.sessionCheckIFrameName);_&&this.document.body.removeChild(_);const g=this.document.createElement("iframe");g.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),g.setAttribute("src",this.sessionCheckIFrameUrl),g.style.display="none",this.document.body.appendChild(g),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const _=this.document.getElementById(this.sessionCheckIFrameName);_||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const g=this.getSessionState();g||this.stopSessionCheckTimer(),_.contentWindow.postMessage(this.clientId+" "+g,this.issuer)}createLoginUrl(_="",g="",o="",T=!1,x={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let O;O=o||this.redirectUri;const H=yield this.createAndSaveNonce();if(_=_?H+this.config.nonceStateSeparator+encodeURIComponent(_):H,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const N=S.loginUrl.indexOf("?")>-1?"&":"?";let R=S.scope;this.oidc&&!R.match(/(^|\s)openid($|\s)/)&&(R="openid "+R);let F=S.loginUrl+N+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(_)+"&redirect_uri="+encodeURIComponent(O)+"&scope="+encodeURIComponent(R);if(this.responseType.includes("code")&&!this.disablePKCE){const[M,$]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",$):this._storage.setItem("PKCE_verifier",$),F+="&code_challenge="+M,F+="&code_challenge_method=S256"}g&&(F+="&login_hint="+encodeURIComponent(g)),S.resource&&(F+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(F+="&nonce="+encodeURIComponent(H)),T&&(F+="&prompt=none");for(const M of Object.keys(x))F+="&"+encodeURIComponent(M)+"="+encodeURIComponent(x[M]);if(this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))F+="&"+M+"="+encodeURIComponent(this.customQueryParams[M]);return F})}initImplicitFlowInternal(_="",g=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},T=null;"string"==typeof g?T=g:"object"==typeof g&&(o=g),this.createLoginUrl(_,T,null,!1,o).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(_="",g=""){""!==this.loginUrl?this.initImplicitFlowInternal(_,g):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(o=>"discovery_document_loaded"===o.type)).subscribe(o=>this.initImplicitFlowInternal(_,g))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(_){const g=this;if(_.onTokenReceived){const o={idClaims:g.getIdentityClaims(),idToken:g.getIdToken(),accessToken:g.getAccessToken(),state:g.state};_.onTokenReceived(o)}}storeAccessTokenResponse(_,g,o,T,x){if(this._storage.setItem("access_token",_),T&&!Array.isArray(T)?this._storage.setItem("granted_scopes",JSON.stringify(T.split(" "))):T&&Array.isArray(T)&&this._storage.setItem("granted_scopes",JSON.stringify(T)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),o){const S=1e3*o,H=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+H)}g&&this._storage.setItem("refresh_token",g),x&&x.forEach((S,O)=>{this._storage.setItem(O,S)})}tryLogin(_=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(_).then(g=>!0):this.tryLoginImplicitFlow(_)}parseQueryString(_){return _&&0!==_.length?("?"===_.charAt(0)&&(_=_.substr(1)),this.urlHelper.parseQueryString(_)):{}}tryLoginCodeFlow(_=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const g=(_=_||{}).customHashFragment?_.customHashFragment.substring(1):window.location.search,o=this.getCodePartsFromUrl(g),T=o.code,x=o.state,S=o.session_state;if(!_.preventClearHashAfterLogin){const N=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,N)}let[O,H]=this.parseState(x);if(this.state=H,o.error){this.debug("error trying to login"),this.handleLoginError(_,o);const N=new OAuthErrorEvent("code_error",{},o);return this.eventsSubject.next(N),Promise.reject(N)}if(!_.disableNonceCheck){if(!O)return this.saveRequestedRoute(),Promise.resolve();if(!_.disableOAuth2StateCheck&&!this.validateNonce(O)){const R=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(R),Promise.reject(R)}return this.storeSessionState(S),T&&(yield this.getTokenFromCode(T,_),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const _=this._storage.getItem("requested_route");_&&history.replaceState(null,"",window.location.origin+_)}getCodePartsFromUrl(_){return _&&0!==_.length?("?"===_.charAt(0)&&(_=_.substr(1)),this.urlHelper.parseQueryString(_)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(_,g){let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",_).set("redirect_uri",g.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let T;T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),T?o=o.set("code_verifier",T):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(o,g)}fetchAndProcessToken(_,g){g=g||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+T)}return this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),new Promise((T,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,_,{headers:o}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,g.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(S)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),x(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),x(S)})})}tryLoginImplicitFlow(_=null){let g;g=(_=_||{}).customHashFragment?this.urlHelper.getHashFragmentParams(_.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",g);const o=g.state;let[T,x]=this.parseState(o);if(this.state=x,g.error){this.debug("error trying to login"),this.handleLoginError(_,g);const R=new OAuthErrorEvent("token_error",{},g);return this.eventsSubject.next(R),Promise.reject(R)}const S=g.access_token,O=g.id_token,H=g.session_state,N=g.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!_.disableOAuth2StateCheck&&!o||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!H&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!_.disableNonceCheck&&!this.validateNonce(T)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(F),Promise.reject(F)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N),this.oidc?this.processIdToken(O,S,_.disableNonceCheck).then(R=>_.validationHandler?_.validationHandler({accessToken:S,idClaims:R.idTokenClaims,idToken:R.idToken,state:o}).then(F=>R):R).then(R=>(this.storeIdToken(R),this.storeSessionState(H),this.clearHashAfterLogin&&!_.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(_),this.inImplicitFlow=!1,!0)).catch(R=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",R)),this.logger.error("Error validating tokens"),this.logger.error(R),Promise.reject(R))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!_.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(_),Promise.resolve(!0))}parseState(_){let g=_,o="";if(_){const T=_.indexOf(this.config.nonceStateSeparator);T>-1&&(g=_.substr(0,T),o=_.substr(T+this.config.nonceStateSeparator.length))}return[g,o]}validateNonce(_){let g;return g=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),g===_||(console.error("Validating access_token failed, wrong state/nonce.",g,_),!1)}storeIdToken(_){this._storage.setItem("id_token",_.idToken),this._storage.setItem("id_token_claims_obj",_.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+_.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(_){this._storage.setItem("session_state",_)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(_,g){_.onLoginError&&_.onLoginError(g),this.clearHashAfterLogin&&!_.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(_=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:_}processIdToken(_,g,o=!1){const T=_.split("."),S=b64DecodeUnicode(this.padBase64(T[0])),O=JSON.parse(S),N=b64DecodeUnicode(this.padBase64(T[1])),R=JSON.parse(N);let F;if(F=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(R.aud)){if(R.aud.every(z=>z!==this.clientId)){const z="Wrong audience: "+R.aud.join(",");return this.logger.warn(z),Promise.reject(z)}}else if(R.aud!==this.clientId){const z="Wrong audience: "+R.aud;return this.logger.warn(z),Promise.reject(z)}if(!R.sub){const z="No sub claim in id_token";return this.logger.warn(z),Promise.reject(z)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==R.sub){const z=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${R.sub}`;return this.logger.warn(z),Promise.reject(z)}if(!R.iat){const z="No iat claim in id_token";return this.logger.warn(z),Promise.reject(z)}if(!this.skipIssuerCheck&&R.iss!==this.issuer){const z="Wrong issuer: "+R.iss;return this.logger.warn(z),Promise.reject(z)}if(!o&&R.nonce!==F){const z="Wrong nonce: "+R.nonce;return this.logger.warn(z),Promise.reject(z)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!R.at_hash){const z="An at_hash is needed!";return this.logger.warn(z),Promise.reject(z)}const M=this.dateTimeService.now(),$=1e3*R.iat,B=1e3*R.exp,V=this.getClockSkewInMsec();if($-V>=M||B+V<=M){const z="Token has expired";return console.error(z),console.error({now:M,issuedAtMSec:$,expiresAtMSec:B}),Promise.reject(z)}const Y={accessToken:g,idToken:_,jwks:this.jwks,idTokenClaims:R,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(Y).then(z=>({idToken:_,idTokenClaims:R,idTokenClaimsJson:N,idTokenHeader:O,idTokenHeaderJson:S,idTokenExpiresAt:B})):this.checkAtHash(Y).then(z=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!z){const te="Wrong at_hash";return this.logger.warn(te),Promise.reject(te)}return this.checkSignature(Y).then(te=>{const ge={idToken:_,idTokenClaims:R,idTokenClaimsJson:N,idTokenHeader:O,idTokenHeaderJson:S,idTokenExpiresAt:B};return this.disableAtHashCheck?ge:this.checkAtHash(Y).then(fe=>{if(this.requestAccessToken&&!fe){const Ue="Wrong at_hash";return this.logger.warn(Ue),Promise.reject(Ue)}return ge})})})}getIdentityClaims(){const _=this._storage.getItem("id_token_claims_obj");return _?JSON.parse(_):null}getGrantedScopes(){const _=this._storage.getItem("granted_scopes");return _?JSON.parse(_):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(_){for(;_.length%4!=0;)_+="=";return _}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const _=this._storage.getItem("expires_at"),g=this.dateTimeService.new();return!(_&&parseInt(_,10)=0&&null!==this._storage.getItem(_)?JSON.parse(this._storage.getItem(_)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(_={},g=""){let o=!1;"boolean"==typeof _&&(o=_,_={});const T=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||o||!T&&!this.postLogoutRedirectUri)return;let x;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)x=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(T)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});T&&(S=S.set("id_token_hint",T));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(S=S.set("post_logout_redirect_uri",O),g&&(S=S.set("state",g)));for(let H in _)S=S.set(H,_[H]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const _=this;return this.createNonce().then(function(g){return _.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",g):_._storage.setItem("nonce",g),g})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const _=this.document.getElementById(this.silentRefreshIFrameName);_&&_.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const g=this.document.getElementById(this.sessionCheckIFrameName);g&&g.remove()}createNonce(){return new Promise(_=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let o=45,T="";const x="undefined"==typeof self?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(o);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(O=>g.charCodeAt(O%g.length)),T=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===o.type)).subscribe(o=>this.initCodeFlowInternal(_,g))}initCodeFlowInternal(_="",g={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let o={},T=null;"string"==typeof g?T=g:"object"==typeof g&&(o=g),this.createLoginUrl(_,T,null,!1,o).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const _=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(_,"sha-256")),_]})}extractRecognizedCustomParameters(_){let g=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>{_[o]&&g.set(o,JSON.stringify(_[o]))}),g}revokeTokenAndLogout(_={},g=!1){let o=this.revocationEndpoint,T=this.getAccessToken(),x=this.getRefreshToken();if(!T)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),O=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const H=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+H)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const H of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(H,this.customQueryParams[H]);return new Promise((H,N)=>{let R,F;if(T){let M=S.set("token",T).set("token_type_hint","access_token");R=this.http.post(o,M,{headers:O})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let M=S.set("token",x).set("token_type_hint","refresh_token");F=this.http.post(o,M,{headers:O})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);g&&(R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>0===M.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(M))),F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>0===M.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(M)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([R,F]).subscribe(M=>{this.logOut(_),H(M),this.logger.info("Token successfully revoked")},M=>{this.logger.error("Error revoking token",M),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",M)),N(M)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return P.\u0275fac=function(_){return new(_||P)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},P.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:P,factory:P.\u0275fac}),P})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(k){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(k)}}let DefaultOAuthInterceptor=(()=>{class P{constructor(_,g,o){this.oAuthService=_,this.errorHandler=g,this.moduleConfig=o}checkUrl(_){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(_):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(g=>_.toLowerCase().startsWith(g.toLowerCase()))}intercept(_,g){const o=_.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(o)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(x=>{if(x){const O=_.headers.set("Authorization","Bearer "+x);_=_.clone({headers:O})}return g.handle(_).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):g.handle(_).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):g.handle(_)}}return P.\u0275fac=function(_){return new(_||P)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},P.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:P,factory:P.\u0275fac}),P})();class NullValidationHandler{validateSignature(k){return Promise.resolve(null)}validateAtHash(k){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class P{static forRoot(_=null,g=NullValidationHandler){return{ngModule:P,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:g},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:_},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return P.\u0275fac=function(_){return new(_||P)},P.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:P}),P.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),P})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")}},P=>{P(P.s=9971)}]); \ No newline at end of file diff --git a/samples/Server/wwwroot/polyfills.4368bceaff05ae75.js b/samples/Server/wwwroot/polyfills.4368bceaff05ae75.js new file mode 100644 index 0000000..ae690b0 --- /dev/null +++ b/samples/Server/wwwroot/polyfills.4368bceaff05ae75.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkclientapp=self.webpackChunkclientapp||[]).push([[429],{5565:(Kt,Kn,Zn)=>{Zn(8583);Error;const Vo=function(s,...e){if(Vo.translate){const n=Vo.translate(s,e);s=n[0],e=n[1]}let t=Gl(s[0],s.raw[0]);for(let n=1;ntypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=Vo},8583:()=>{!function(h){const v=h.performance;function x(T){v&&v.mark&&v.mark(T)}function _(T,W){v&&v.measure&&v.measure(T,W)}x("Zone");const C=h.__Zone_symbol_prefix||"__zone_symbol__";function I(T){return C+T}const M=!0===h[I("forceDuplicateZoneCheck")];if(h.Zone){if(M||"function"!=typeof h.Zone.__symbol__)throw new Error("Zone already loaded.");return h.Zone}let U=(()=>{class T{constructor(d,g){this._parent=d,this._name=g?g.name||"unnamed":"",this._properties=g&&g.properties||{},this._zoneDelegate=new B(this,this._parent&&this._parent._zoneDelegate,g)}static assertZonePatched(){if(h.Promise!==Tt.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let d=T.current;for(;d.parent;)d=d.parent;return d}static get current(){return Ne.zone}static get currentTask(){return gt}static __load_patch(d,g,k=!1){if(Tt.hasOwnProperty(d)){if(!k&&M)throw Error("Already loaded patch: "+d)}else if(!h["__Zone_disable_"+d]){const J="Zone:"+d;x(J),Tt[d]=g(h,T,be),_(J,J)}}get parent(){return this._parent}get name(){return this._name}get(d){const g=this.getZoneWith(d);if(g)return g._properties[d]}getZoneWith(d){let g=this;for(;g;){if(g._properties.hasOwnProperty(d))return g;g=g._parent}return null}fork(d){if(!d)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,d)}wrap(d,g){if("function"!=typeof d)throw new Error("Expecting function got: "+d);const k=this._zoneDelegate.intercept(this,d,g),J=this;return function(){return J.runGuarded(k,this,arguments,g)}}run(d,g,k,J){Ne={parent:Ne,zone:this};try{return this._zoneDelegate.invoke(this,d,g,k,J)}finally{Ne=Ne.parent}}runGuarded(d,g=null,k,J){Ne={parent:Ne,zone:this};try{try{return this._zoneDelegate.invoke(this,d,g,k,J)}catch(Me){if(this._zoneDelegate.handleError(this,Me))throw Me}}finally{Ne=Ne.parent}}runTask(d,g,k){if(d.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(d.zone||Ie).name+"; Execution: "+this.name+")");if(d.state===Ee&&(d.type===ze||d.type===j))return;const J=d.state!=R;J&&d._transitionTo(R,ue),d.runCount++;const Me=gt;gt=d,Ne={parent:Ne,zone:this};try{d.type==j&&d.data&&!d.data.isPeriodic&&(d.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,d,g,k)}catch(S){if(this._zoneDelegate.handleError(this,S))throw S}}finally{d.state!==Ee&&d.state!==$&&(d.type==ze||d.data&&d.data.isPeriodic?J&&d._transitionTo(ue,R):(d.runCount=0,this._updateTaskCount(d,-1),J&&d._transitionTo(Ee,R,Ee))),Ne=Ne.parent,gt=Me}}scheduleTask(d){if(d.zone&&d.zone!==this){let k=this;for(;k;){if(k===d.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${d.zone.name}`);k=k.parent}}d._transitionTo(Q,Ee);const g=[];d._zoneDelegates=g,d._zone=this;try{d=this._zoneDelegate.scheduleTask(this,d)}catch(k){throw d._transitionTo($,Q,Ee),this._zoneDelegate.handleError(this,k),k}return d._zoneDelegates===g&&this._updateTaskCount(d,1),d.state==Q&&d._transitionTo(ue,Q),d}scheduleMicroTask(d,g,k,J){return this.scheduleTask(new z(se,d,g,k,J,void 0))}scheduleMacroTask(d,g,k,J,Me){return this.scheduleTask(new z(j,d,g,k,J,Me))}scheduleEventTask(d,g,k,J,Me){return this.scheduleTask(new z(ze,d,g,k,J,Me))}cancelTask(d){if(d.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(d.zone||Ie).name+"; Execution: "+this.name+")");d._transitionTo(Ae,ue,R);try{this._zoneDelegate.cancelTask(this,d)}catch(g){throw d._transitionTo($,Ae),this._zoneDelegate.handleError(this,g),g}return this._updateTaskCount(d,-1),d._transitionTo(Ee,Ae),d.runCount=0,d}_updateTaskCount(d,g){const k=d._zoneDelegates;-1==g&&(d._zoneDelegates=null);for(let J=0;JT.hasTask(d,g),onScheduleTask:(T,W,d,g)=>T.scheduleTask(d,g),onInvokeTask:(T,W,d,g,k,J)=>T.invokeTask(d,g,k,J),onCancelTask:(T,W,d,g)=>T.cancelTask(d,g)};class B{constructor(W,d,g){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=W,this._parentDelegate=d,this._forkZS=g&&(g&&g.onFork?g:d._forkZS),this._forkDlgt=g&&(g.onFork?d:d._forkDlgt),this._forkCurrZone=g&&(g.onFork?this.zone:d._forkCurrZone),this._interceptZS=g&&(g.onIntercept?g:d._interceptZS),this._interceptDlgt=g&&(g.onIntercept?d:d._interceptDlgt),this._interceptCurrZone=g&&(g.onIntercept?this.zone:d._interceptCurrZone),this._invokeZS=g&&(g.onInvoke?g:d._invokeZS),this._invokeDlgt=g&&(g.onInvoke?d:d._invokeDlgt),this._invokeCurrZone=g&&(g.onInvoke?this.zone:d._invokeCurrZone),this._handleErrorZS=g&&(g.onHandleError?g:d._handleErrorZS),this._handleErrorDlgt=g&&(g.onHandleError?d:d._handleErrorDlgt),this._handleErrorCurrZone=g&&(g.onHandleError?this.zone:d._handleErrorCurrZone),this._scheduleTaskZS=g&&(g.onScheduleTask?g:d._scheduleTaskZS),this._scheduleTaskDlgt=g&&(g.onScheduleTask?d:d._scheduleTaskDlgt),this._scheduleTaskCurrZone=g&&(g.onScheduleTask?this.zone:d._scheduleTaskCurrZone),this._invokeTaskZS=g&&(g.onInvokeTask?g:d._invokeTaskZS),this._invokeTaskDlgt=g&&(g.onInvokeTask?d:d._invokeTaskDlgt),this._invokeTaskCurrZone=g&&(g.onInvokeTask?this.zone:d._invokeTaskCurrZone),this._cancelTaskZS=g&&(g.onCancelTask?g:d._cancelTaskZS),this._cancelTaskDlgt=g&&(g.onCancelTask?d:d._cancelTaskDlgt),this._cancelTaskCurrZone=g&&(g.onCancelTask?this.zone:d._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=g&&g.onHasTask;(k||d&&d._hasTaskZS)&&(this._hasTaskZS=k?g:ee,this._hasTaskDlgt=d,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=W,g.onScheduleTask||(this._scheduleTaskZS=ee,this._scheduleTaskDlgt=d,this._scheduleTaskCurrZone=this.zone),g.onInvokeTask||(this._invokeTaskZS=ee,this._invokeTaskDlgt=d,this._invokeTaskCurrZone=this.zone),g.onCancelTask||(this._cancelTaskZS=ee,this._cancelTaskDlgt=d,this._cancelTaskCurrZone=this.zone))}fork(W,d){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,W,d):new U(W,d)}intercept(W,d,g){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,W,d,g):d}invoke(W,d,g,k,J){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,W,d,g,k,J):d.apply(g,k)}handleError(W,d){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,W,d)}scheduleTask(W,d){let g=d;if(this._scheduleTaskZS)this._hasTaskZS&&g._zoneDelegates.push(this._hasTaskDlgtOwner),g=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,W,d),g||(g=d);else if(d.scheduleFn)d.scheduleFn(d);else{if(d.type!=se)throw new Error("Task is missing scheduleFn.");ne(d)}return g}invokeTask(W,d,g,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,W,d,g,k):d.callback.apply(g,k)}cancelTask(W,d){let g;if(this._cancelTaskZS)g=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,W,d);else{if(!d.cancelFn)throw Error("Task is not cancelable");g=d.cancelFn(d)}return g}hasTask(W,d){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,W,d)}catch(g){this.handleError(W,g)}}_updateTaskCount(W,d){const g=this._taskCounts,k=g[W],J=g[W]=k+d;if(J<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=J||this.hasTask(this.zone,{microTask:g.microTask>0,macroTask:g.macroTask>0,eventTask:g.eventTask>0,change:W})}}class z{constructor(W,d,g,k,J,Me){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=W,this.source=d,this.data=k,this.scheduleFn=J,this.cancelFn=Me,!g)throw new Error("callback is not defined");this.callback=g;const S=this;this.invoke=W===ze&&k&&k.useG?z.invokeTask:function(){return z.invokeTask.call(h,S,this,arguments)}}static invokeTask(W,d,g){W||(W=this),ke++;try{return W.runCount++,W.zone.runTask(W,d,g)}finally{1==ke&&G(),ke--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ee,Q)}_transitionTo(W,d,g){if(this._state!==d&&this._state!==g)throw new Error(`${this.type} '${this.source}': can not transition to '${W}', expecting state '${d}'${g?" or '"+g+"'":""}, was '${this._state}'.`);this._state=W,W==Ee&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const ge=I("setTimeout"),ce=I("Promise"),ae=I("then");let Ge,we=[],xe=!1;function Fe(T){if(Ge||h[ce]&&(Ge=h[ce].resolve(0)),Ge){let W=Ge[ae];W||(W=Ge.then),W.call(Ge,T)}else h[ge](T,0)}function ne(T){0===ke&&0===we.length&&Fe(G),T&&we.push(T)}function G(){if(!xe){for(xe=!0;we.length;){const T=we;we=[];for(let W=0;WNe,onUnhandledError:ve,microtaskDrainDone:ve,scheduleMicroTask:ne,showUncaughtError:()=>!U[I("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ve,patchMethod:()=>ve,bindArguments:()=>[],patchThen:()=>ve,patchMacroTask:()=>ve,patchEventPrototype:()=>ve,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ve,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ve,wrapWithCurrentZone:()=>ve,filterProperties:()=>[],attachOriginToPatched:()=>ve,_redefineProperty:()=>ve,patchCallbacks:()=>ve,nativeScheduleMicroTask:Fe};let Ne={parent:null,zone:new U(null,null)},gt=null,ke=0;function ve(){}_("Zone","Zone"),h.Zone=U}(typeof window<"u"&&window||typeof self<"u"&&self||global);const Kt=Object.getOwnPropertyDescriptor,Kn=Object.defineProperty,Zn=Object.getPrototypeOf,rr=Object.create,He=Array.prototype.slice,et="addEventListener",bn="removeEventListener",Dn=Zone.__symbol__(et),ms=Zone.__symbol__(bn),wt="true",ft="false",te=Zone.__symbol__("");function Xn(h,v){return Zone.current.wrap(h,v)}function dn(h,v,x,_,C){return Zone.current.scheduleMacroTask(h,v,x,_,C)}const ye=Zone.__symbol__,Nn=typeof window<"u",tt=Nn?window:void 0,Be=Nn&&tt||"object"==typeof self&&self||global;function gs(h,v){for(let x=h.length-1;x>=0;x--)"function"==typeof h[x]&&(h[x]=Xn(h[x],v+"_"+x));return h}function Ve(h){return!h||!1!==h.writable&&!("function"==typeof h.get&&typeof h.set>"u")}const at=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,fn=!("nw"in Be)&&typeof Be.process<"u"&&"[object process]"==={}.toString.call(Be.process),Pn=!fn&&!at&&!(!Nn||!tt.HTMLElement),ir=typeof Be.process<"u"&&"[object process]"==={}.toString.call(Be.process)&&!at&&!(!Nn||!tt.HTMLElement),oe={},Xe=function(h){if(!(h=h||Be.event))return;let v=oe[h.type];v||(v=oe[h.type]=ye("ON_PROPERTY"+h.type));const x=this||h.target||Be,_=x[v];let C;if(Pn&&x===tt&&"error"===h.type){const I=h;C=_&&_.call(this,I.message,I.filename,I.lineno,I.colno,I.error),!0===C&&h.preventDefault()}else C=_&&_.apply(this,arguments),null!=C&&!C&&h.preventDefault();return C};function or(h,v,x){let _=Kt(h,v);if(!_&&x&&Kt(x,v)&&(_={enumerable:!0,configurable:!0}),!_||!_.configurable)return;const C=ye("on"+v+"patched");if(h.hasOwnProperty(C)&&h[C])return;delete _.writable,delete _.value;const I=_.get,M=_.set,U=v.slice(2);let ee=oe[U];ee||(ee=oe[U]=ye("ON_PROPERTY"+U)),_.set=function(B){let z=this;!z&&h===Be&&(z=Be),z&&("function"==typeof z[ee]&&z.removeEventListener(U,Xe),M&&M.call(z,null),z[ee]=B,"function"==typeof B&&z.addEventListener(U,Xe,!1))},_.get=function(){let B=this;if(!B&&h===Be&&(B=Be),!B)return null;const z=B[ee];if(z)return z;if(I){let ge=I.call(this);if(ge)return _.set.call(this,ge),"function"==typeof B.removeAttribute&&B.removeAttribute(v),ge}return null},Kn(h,v,_),h[C]=!0}function ar(h,v,x){if(v)for(let _=0;_function(M,U){const ee=x(M,U);return ee.cbIdx>=0&&"function"==typeof U[ee.cbIdx]?dn(ee.name,U[ee.cbIdx],ee,C):I.apply(M,U)})}function Nt(h,v){h[ye("OriginalDelegate")]=v}let ur=!1,vs=!1;function ui(){if(ur)return vs;ur=!0;try{const h=tt.navigator.userAgent;(-1!==h.indexOf("MSIE ")||-1!==h.indexOf("Trident/")||-1!==h.indexOf("Edge/"))&&(vs=!0)}catch{}return vs}Zone.__load_patch("ZoneAwarePromise",(h,v,x)=>{const _=Object.getOwnPropertyDescriptor,C=Object.defineProperty,M=x.symbol,U=[],ee=!0===h[M("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],B=M("Promise"),z=M("then");x.onUnhandledError=S=>{if(x.showUncaughtError()){const D=S&&S.rejection;D?console.error("Unhandled Promise rejection:",D instanceof Error?D.message:D,"; Zone:",S.zone.name,"; Task:",S.task&&S.task.source,"; Value:",D,D instanceof Error?D.stack:void 0):console.error(S)}},x.microtaskDrainDone=()=>{for(;U.length;){const S=U.shift();try{S.zone.runGuarded(()=>{throw S.throwOriginal?S.rejection:S})}catch(D){ae(D)}}};const ce=M("unhandledPromiseRejectionHandler");function ae(S){x.onUnhandledError(S);try{const D=v[ce];"function"==typeof D&&D.call(this,S)}catch{}}function we(S){return S&&S.then}function xe(S){return S}function Ge(S){return d.reject(S)}const Fe=M("state"),ne=M("value"),G=M("finally"),Ie=M("parentPromiseValue"),Ee=M("parentPromiseState"),ue=null,R=!0,Ae=!1;function se(S,D){return w=>{try{be(S,D,w)}catch(N){be(S,!1,N)}}}const j=function(){let S=!1;return function(w){return function(){S||(S=!0,w.apply(null,arguments))}}},Tt=M("currentTaskTrace");function be(S,D,w){const N=j();if(S===w)throw new TypeError("Promise resolved with itself");if(S[Fe]===ue){let q=null;try{("object"==typeof w||"function"==typeof w)&&(q=w&&w.then)}catch(X){return N(()=>{be(S,!1,X)})(),S}if(D!==Ae&&w instanceof d&&w.hasOwnProperty(Fe)&&w.hasOwnProperty(ne)&&w[Fe]!==ue)gt(w),be(S,w[Fe],w[ne]);else if(D!==Ae&&"function"==typeof q)try{q.call(w,N(se(S,D)),N(se(S,!1)))}catch(X){N(()=>{be(S,!1,X)})()}else{S[Fe]=D;const X=S[ne];if(S[ne]=w,S[G]===G&&D===R&&(S[Fe]=S[Ee],S[ne]=S[Ie]),D===Ae&&w instanceof Error){const V=v.currentTask&&v.currentTask.data&&v.currentTask.data.__creationTrace__;V&&C(w,Tt,{configurable:!0,enumerable:!1,writable:!0,value:V})}for(let V=0;V{try{const Y=S[ne],re=!!w&&G===w[G];re&&(w[Ie]=Y,w[Ee]=X);const ie=D.run(V,void 0,re&&V!==Ge&&V!==xe?[]:[Y]);be(w,!0,ie)}catch(Y){be(w,!1,Y)}},w)}const T=function(){},W=h.AggregateError;class d{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(D){return be(new this(null),R,D)}static reject(D){return be(new this(null),Ae,D)}static any(D){if(!D||"function"!=typeof D[Symbol.iterator])return Promise.reject(new W([],"All promises were rejected"));const w=[];let N=0;try{for(let V of D)N++,w.push(d.resolve(V))}catch{return Promise.reject(new W([],"All promises were rejected"))}if(0===N)return Promise.reject(new W([],"All promises were rejected"));let q=!1;const X=[];return new d((V,Y)=>{for(let re=0;re{q||(q=!0,V(ie))},ie=>{X.push(ie),N--,0===N&&(q=!0,Y(new W(X,"All promises were rejected")))})})}static race(D){let w,N,q=new this((Y,re)=>{w=Y,N=re});function X(Y){w(Y)}function V(Y){N(Y)}for(let Y of D)we(Y)||(Y=this.resolve(Y)),Y.then(X,V);return q}static all(D){return d.allWithCallback(D)}static allSettled(D){return(this&&this.prototype instanceof d?this:d).allWithCallback(D,{thenCallback:N=>({status:"fulfilled",value:N}),errorCallback:N=>({status:"rejected",reason:N})})}static allWithCallback(D,w){let N,q,X=new this((ie,Se)=>{N=ie,q=Se}),V=2,Y=0;const re=[];for(let ie of D){we(ie)||(ie=this.resolve(ie));const Se=Y;try{ie.then(Te=>{re[Se]=w?w.thenCallback(Te):Te,V--,0===V&&N(re)},Te=>{w?(re[Se]=w.errorCallback(Te),V--,0===V&&N(re)):q(Te)})}catch(Te){q(Te)}V++,Y++}return V-=2,0===V&&N(re),X}constructor(D){const w=this;if(!(w instanceof d))throw new Error("Must be an instanceof Promise.");w[Fe]=ue,w[ne]=[];try{const N=j();D&&D(N(se(w,R)),N(se(w,Ae)))}catch(N){be(w,!1,N)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return d}then(D,w){var N;let q=null===(N=this.constructor)||void 0===N?void 0:N[Symbol.species];(!q||"function"!=typeof q)&&(q=this.constructor||d);const X=new q(T),V=v.current;return this[Fe]==ue?this[ne].push(V,X,D,w):ke(this,V,X,D,w),X}catch(D){return this.then(null,D)}finally(D){var w;let N=null===(w=this.constructor)||void 0===w?void 0:w[Symbol.species];(!N||"function"!=typeof N)&&(N=d);const q=new N(T);q[G]=G;const X=v.current;return this[Fe]==ue?this[ne].push(X,q,D,D):ke(this,X,q,D,D),q}}d.resolve=d.resolve,d.reject=d.reject,d.race=d.race,d.all=d.all;const g=h[B]=h.Promise;h.Promise=d;const k=M("thenPatched");function J(S){const D=S.prototype,w=_(D,"then");if(w&&(!1===w.writable||!w.configurable))return;const N=D.then;D[z]=N,S.prototype.then=function(q,X){return new d((Y,re)=>{N.call(this,Y,re)}).then(q,X)},S[k]=!0}return x.patchThen=J,g&&(J(g),Ot(h,"fetch",S=>function Me(S){return function(D,w){let N=S.apply(D,w);if(N instanceof d)return N;let q=N.constructor;return q[k]||J(q),N}}(S))),Promise[v.__symbol__("uncaughtPromiseErrors")]=U,d}),Zone.__load_patch("toString",h=>{const v=Function.prototype.toString,x=ye("OriginalDelegate"),_=ye("Promise"),C=ye("Error"),I=function(){if("function"==typeof this){const B=this[x];if(B)return"function"==typeof B?v.call(B):Object.prototype.toString.call(B);if(this===Promise){const z=h[_];if(z)return v.call(z)}if(this===Error){const z=h[C];if(z)return v.call(z)}}return v.call(this)};I[x]=v,Function.prototype.toString=I;const M=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":M.call(this)}});let Pt=!1;if(typeof window<"u")try{const h=Object.defineProperty({},"passive",{get:function(){Pt=!0}});window.addEventListener("test",h,h),window.removeEventListener("test",h,h)}catch{Pt=!1}const qo={useG:!0},Qe={},Es={},cr=new RegExp("^"+te+"(\\w+)(true|false)$"),Zt=ye("propagationStopped");function pr(h,v){const x=(v?v(h):h)+ft,_=(v?v(h):h)+wt,C=te+x,I=te+_;Qe[h]={},Qe[h][ft]=C,Qe[h][wt]=I}function li(h,v,x,_){const C=_&&_.add||et,I=_&&_.rm||bn,M=_&&_.listeners||"eventListeners",U=_&&_.rmAll||"removeAllListeners",ee=ye(C),B="."+C+":",ce=function(ne,G,Ie){if(ne.isRemoved)return;const Ee=ne.callback;let Q;"object"==typeof Ee&&Ee.handleEvent&&(ne.callback=R=>Ee.handleEvent(R),ne.originalDelegate=Ee);try{ne.invoke(ne,G,[Ie])}catch(R){Q=R}const ue=ne.options;return ue&&"object"==typeof ue&&ue.once&&G[I].call(G,Ie.type,ne.originalDelegate?ne.originalDelegate:ne.callback,ue),Q};function ae(ne,G,Ie){if(!(G=G||h.event))return;const Ee=ne||G.target||h,Q=Ee[Qe[G.type][Ie?wt:ft]];if(Q){const ue=[];if(1===Q.length){const R=ce(Q[0],Ee,G);R&&ue.push(R)}else{const R=Q.slice();for(let Ae=0;Ae{throw Ae})}}}const we=function(ne){return ae(this,ne,!1)},xe=function(ne){return ae(this,ne,!0)};function Ge(ne,G){if(!ne)return!1;let Ie=!0;G&&void 0!==G.useG&&(Ie=G.useG);const Ee=G&&G.vh;let Q=!0;G&&void 0!==G.chkDup&&(Q=G.chkDup);let ue=!1;G&&void 0!==G.rt&&(ue=G.rt);let R=ne;for(;R&&!R.hasOwnProperty(C);)R=Zn(R);if(!R&&ne[C]&&(R=ne),!R||R[ee])return!1;const Ae=G&&G.eventNameToString,$={},se=R[ee]=R[C],j=R[ye(I)]=R[I],ze=R[ye(M)]=R[M],Tt=R[ye(U)]=R[U];let be;function Ne(w,N){return!Pt&&"object"==typeof w&&w?!!w.capture:Pt&&N?"boolean"==typeof w?{capture:w,passive:!0}:w?"object"==typeof w&&!1!==w.passive?Object.assign(Object.assign({},w),{passive:!0}):w:{passive:!0}:w}G&&G.prepend&&(be=R[ye(G.prepend)]=R[G.prepend]);const d=Ie?function(w){if(!$.isExisting)return se.call($.target,$.eventName,$.capture?xe:we,$.options)}:function(w){return se.call($.target,$.eventName,w.invoke,$.options)},g=Ie?function(w){if(!w.isRemoved){const N=Qe[w.eventName];let q;N&&(q=N[w.capture?wt:ft]);const X=q&&w.target[q];if(X)for(let V=0;Vfunction(C,I){C[Zt]=!0,_&&_.apply(C,I)})}function ci(h,v,x,_,C){const I=Zone.__symbol__(_);if(v[I])return;const M=v[I]=v[_];v[_]=function(U,ee,B){return ee&&ee.prototype&&C.forEach(function(z){const ge=`${x}.${_}::`+z,ce=ee.prototype;try{if(ce.hasOwnProperty(z)){const ae=h.ObjectGetOwnPropertyDescriptor(ce,z);ae&&ae.value?(ae.value=h.wrapWithCurrentZone(ae.value,ge),h._redefineProperty(ee.prototype,z,ae)):ce[z]&&(ce[z]=h.wrapWithCurrentZone(ce[z],ge))}else ce[z]&&(ce[z]=h.wrapWithCurrentZone(ce[z],ge))}catch{}}),M.call(v,U,ee,B)},h.attachOriginToPatched(v[_],M)}function _s(h,v,x){if(!x||0===x.length)return v;const _=x.filter(I=>I.target===h);if(!_||0===_.length)return v;const C=_[0].ignoreProperties;return v.filter(I=>-1===C.indexOf(I))}function ys(h,v,x,_){h&&ar(h,_s(h,v,x),_)}function kn(h){return Object.getOwnPropertyNames(h).filter(v=>v.startsWith("on")&&v.length>2).map(v=>v.substring(2))}Zone.__load_patch("util",(h,v,x)=>{const _=kn(h);x.patchOnProperties=ar,x.patchMethod=Ot,x.bindArguments=gs,x.patchMacroTask=ai;const C=v.__symbol__("BLACK_LISTED_EVENTS"),I=v.__symbol__("UNPATCHED_EVENTS");h[I]&&(h[C]=h[I]),h[C]&&(v[C]=v[I]=h[C]),x.patchEventPrototype=hr,x.patchEventTarget=li,x.isIEOrEdge=ui,x.ObjectDefineProperty=Kn,x.ObjectGetOwnPropertyDescriptor=Kt,x.ObjectCreate=rr,x.ArraySlice=He,x.patchClass=Ft,x.wrapWithCurrentZone=Xn,x.filterProperties=_s,x.attachOriginToPatched=Nt,x._redefineProperty=Object.defineProperty,x.patchCallbacks=ci,x.getGlobalObjects=()=>({globalSources:Es,zoneSymbolEventNames:Qe,eventNames:_,isBrowser:Pn,isMix:ir,isNode:fn,TRUE_STR:wt,FALSE_STR:ft,ZONE_SYMBOL_PREFIX:te,ADD_EVENT_LISTENER_STR:et,REMOVE_EVENT_LISTENER_STR:bn})});const Ln=ye("zoneTask");function mn(h,v,x,_){let C=null,I=null;x+=_;const M={};function U(B){const z=B.data;return z.args[0]=function(){return B.invoke.apply(this,arguments)},z.handleId=C.apply(h,z.args),B}function ee(B){return I.call(h,B.data.handleId)}C=Ot(h,v+=_,B=>function(z,ge){if("function"==typeof ge[0]){const ce={isPeriodic:"Interval"===_,delay:"Timeout"===_||"Interval"===_?ge[1]||0:void 0,args:ge},ae=ge[0];ge[0]=function(){try{return ae.apply(this,arguments)}finally{ce.isPeriodic||("number"==typeof ce.handleId?delete M[ce.handleId]:ce.handleId&&(ce.handleId[Ln]=null))}};const we=dn(v,ge[0],ce,U,ee);if(!we)return we;const xe=we.data.handleId;return"number"==typeof xe?M[xe]=we:xe&&(xe[Ln]=we),xe&&xe.ref&&xe.unref&&"function"==typeof xe.ref&&"function"==typeof xe.unref&&(we.ref=xe.ref.bind(xe),we.unref=xe.unref.bind(xe)),"number"==typeof xe||xe?xe:we}return B.apply(h,ge)}),I=Ot(h,x,B=>function(z,ge){const ce=ge[0];let ae;"number"==typeof ce?ae=M[ce]:(ae=ce&&ce[Ln],ae||(ae=ce)),ae&&"string"==typeof ae.type?"notScheduled"!==ae.state&&(ae.cancelFn&&ae.data.isPeriodic||0===ae.runCount)&&("number"==typeof ce?delete M[ce]:ce&&(ce[Ln]=null),ae.zone.cancelTask(ae)):B.apply(h,ge)})}Zone.__load_patch("legacy",h=>{const v=h[Zone.__symbol__("legacyPatch")];v&&v()}),Zone.__load_patch("queueMicrotask",(h,v,x)=>{x.patchMethod(h,"queueMicrotask",_=>function(C,I){v.current.scheduleMicroTask("queueMicrotask",I[0])})}),Zone.__load_patch("timers",h=>{const v="set",x="clear";mn(h,v,x,"Timeout"),mn(h,v,x,"Interval"),mn(h,v,x,"Immediate")}),Zone.__load_patch("requestAnimationFrame",h=>{mn(h,"request","cancel","AnimationFrame"),mn(h,"mozRequest","mozCancel","AnimationFrame"),mn(h,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(h,v)=>{const x=["alert","prompt","confirm"];for(let _=0;_function(ee,B){return v.current.run(I,h,B,U)})}),Zone.__load_patch("EventTarget",(h,v,x)=>{(function di(h,v){v.patchEventPrototype(h,v)})(h,x),function hi(h,v){if(Zone[v.symbol("patchEventTarget")])return;const{eventNames:x,zoneSymbolEventNames:_,TRUE_STR:C,FALSE_STR:I,ZONE_SYMBOL_PREFIX:M}=v.getGlobalObjects();for(let ee=0;ee{Ft("MutationObserver"),Ft("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(h,v,x)=>{Ft("IntersectionObserver")}),Zone.__load_patch("FileReader",(h,v,x)=>{Ft("FileReader")}),Zone.__load_patch("on_property",(h,v,x)=>{!function dr(h,v){if(fn&&!ir||Zone[h.symbol("patchEvents")])return;const x=v.__Zone_ignore_on_properties;let _=[];if(Pn){const C=window;_=_.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const I=function lr(){try{const h=tt.navigator.userAgent;if(-1!==h.indexOf("MSIE ")||-1!==h.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:C,ignoreProperties:["error"]}]:[];ys(C,kn(C),x&&x.concat(I),Zn(C))}_=_.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let C=0;C<_.length;C++){const I=v[_[C]];I&&I.prototype&&ys(I.prototype,kn(I.prototype),x)}}(x,h)}),Zone.__load_patch("customElements",(h,v,x)=>{!function pi(h,v){const{isBrowser:x,isMix:_}=v.getGlobalObjects();(x||_)&&h.customElements&&"customElements"in h&&v.patchCallbacks(v,h.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(h,x)}),Zone.__load_patch("XHR",(h,v)=>{!function ee(B){const z=B.XMLHttpRequest;if(!z)return;const ge=z.prototype;let ae=ge[Dn],we=ge[ms];if(!ae){const $=B.XMLHttpRequestEventTarget;if($){const se=$.prototype;ae=se[Dn],we=se[ms]}}const xe="readystatechange",Ge="scheduled";function Fe($){const se=$.data,j=se.target;j[I]=!1,j[U]=!1;const ze=j[C];ae||(ae=j[Dn],we=j[ms]),ze&&we.call(j,xe,ze);const Tt=j[C]=()=>{if(j.readyState===j.DONE)if(!se.aborted&&j[I]&&$.state===Ge){const Ne=j[v.__symbol__("loadfalse")];if(0!==j.status&&Ne&&Ne.length>0){const gt=$.invoke;$.invoke=function(){const ke=j[v.__symbol__("loadfalse")];for(let ve=0;vefunction($,se){return $[_]=0==se[2],$[M]=se[1],Ie.apply($,se)}),Q=ye("fetchTaskAborting"),ue=ye("fetchTaskScheduling"),R=Ot(ge,"send",()=>function($,se){if(!0===v.current[ue]||$[_])return R.apply($,se);{const j={target:$,url:$[M],isPeriodic:!1,args:se,aborted:!1},ze=dn("XMLHttpRequest.send",ne,j,Fe,G);$&&!0===$[U]&&!j.aborted&&ze.state===Ge&&ze.invoke()}}),Ae=Ot(ge,"abort",()=>function($,se){const j=function ce($){return $[x]}($);if(j&&"string"==typeof j.type){if(null==j.cancelFn||j.data&&j.data.aborted)return;j.zone.cancelTask(j)}else if(!0===v.current[Q])return Ae.apply($,se)})}(h);const x=ye("xhrTask"),_=ye("xhrSync"),C=ye("xhrListener"),I=ye("xhrScheduled"),M=ye("xhrURL"),U=ye("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",h=>{h.navigator&&h.navigator.geolocation&&function oi(h,v){const x=h.constructor.name;for(let _=0;_{const ee=function(){return U.apply(this,gs(arguments,x+"."+C))};return Nt(ee,U),ee})(I)}}}(h.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(h,v)=>{function x(_){return function(C){Xt(h,_).forEach(M=>{const U=h.PromiseRejectionEvent;if(U){const ee=new U(_,{promise:C.promise,reason:C.rejection});M.invoke(ee)}})}}h.PromiseRejectionEvent&&(v[ye("unhandledPromiseRejectionHandler")]=x("unhandledrejection"),v[ye("rejectionHandledHandler")]=x("rejectionhandled"))})}},Kt=>{Kt(Kt.s=5565)}]); \ No newline at end of file diff --git a/samples/Server/wwwroot/polyfills.767545bebe1de56c.js b/samples/Server/wwwroot/polyfills.767545bebe1de56c.js deleted file mode 100644 index f542e1b..0000000 --- a/samples/Server/wwwroot/polyfills.767545bebe1de56c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkclientapp=self.webpackChunkclientapp||[]).push([[429],{8053:(De,de,Te)=>{Te(8583);const Ae="undefined"!=typeof globalThis&&globalThis,He="undefined"!=typeof window&&window,Re="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ce=Ae||"undefined"!=typeof global&&global||He||Re,_e=function($,...ne){if(_e.translate){const J=_e.translate($,ne);$=J[0],ne=J[1]}let S=se($[0],$.raw[0]);for(let J=1;J<$.length;J++)S+=ne[J-1]+se($[J],$.raw[J]);return S};function se($,ne){return":"===ne.charAt(0)?$.substring(function me($,ne){for(let S=1,J=1;S<$.length;S++,J++)if("\\"===ne[J])J++;else if(":"===$[S])return S;throw new Error(`Unterminated $localize metadata block in "${ne}".`)}($,ne)+1):$}Ce.$localize=_e},8583:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function r(L,_){n&&n.measure&&n.measure(L,_)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function u(L){return c+L}const f=!0===e[u("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let p=(()=>{class L{constructor(t,o){this._parent=t,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(e.Promise!==ee.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return V.zone}static get currentTask(){return ie}static __load_patch(t,o,y=!1){if(ee.hasOwnProperty(t)){if(!y&&f)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const P="Zone:"+t;i(P),ee[t]=o(e,L,he),r(P,P)}}get parent(){return this._parent}get name(){return this._name}get(t){const o=this.getZoneWith(t);if(o)return o._properties[t]}getZoneWith(t){let o=this;for(;o;){if(o._properties.hasOwnProperty(t))return o;o=o._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,o){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const y=this._zoneDelegate.intercept(this,t,o),P=this;return function(){return P.runGuarded(y,this,arguments,o)}}run(t,o,y,P){V={parent:V,zone:this};try{return this._zoneDelegate.invoke(this,t,o,y,P)}finally{V=V.parent}}runGuarded(t,o=null,y,P){V={parent:V,zone:this};try{try{return this._zoneDelegate.invoke(this,t,o,y,P)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{V=V.parent}}runTask(t,o,y){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");if(t.state===j&&(t.type===R||t.type===A))return;const P=t.state!=X;P&&t._transitionTo(X,O),t.runCount++;const Q=ie;ie=t,V={parent:V,zone:this};try{t.type==A&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,o,y)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==j&&t.state!==Y&&(t.type==R||t.data&&t.data.isPeriodic?P&&t._transitionTo(O,X):(t.runCount=0,this._updateTaskCount(t,-1),P&&t._transitionTo(j,X,j))),V=V.parent,ie=Q}}scheduleTask(t){if(t.zone&&t.zone!==this){let y=this;for(;y;){if(y===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);y=y.parent}}t._transitionTo(q,j);const o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(y){throw t._transitionTo(Y,q,j),this._zoneDelegate.handleError(this,y),y}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==q&&t._transitionTo(O,q),t}scheduleMicroTask(t,o,y,P){return this.scheduleTask(new m(v,t,o,y,P,void 0))}scheduleMacroTask(t,o,y,P,Q){return this.scheduleTask(new m(A,t,o,y,P,Q))}scheduleEventTask(t,o,y,P,Q){return this.scheduleTask(new m(R,t,o,y,P,Q))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");t._transitionTo(H,O,X);try{this._zoneDelegate.cancelTask(this,t)}catch(o){throw t._transitionTo(Y,H),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(t,-1),t._transitionTo(j,H),t.runCount=0,t}_updateTaskCount(t,o){const y=t._zoneDelegates;-1==o&&(t._zoneDelegates=null);for(let P=0;PL.hasTask(t,o),onScheduleTask:(L,_,t,o)=>L.scheduleTask(t,o),onInvokeTask:(L,_,t,o,y,P)=>L.invokeTask(t,o,y,P),onCancelTask:(L,_,t,o)=>L.cancelTask(t,o)};class T{constructor(_,t,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=_,this._parentDelegate=t,this._forkZS=o&&(o&&o.onFork?o:t._forkZS),this._forkDlgt=o&&(o.onFork?t:t._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:t._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:t._interceptZS),this._interceptDlgt=o&&(o.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:t._invokeZS),this._invokeDlgt=o&&(o.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:t._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:t._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:t._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:t._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const y=o&&o.onHasTask;(y||t&&t._hasTaskZS)&&(this._hasTaskZS=y?o:g,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=_,o.onScheduleTask||(this._scheduleTaskZS=g,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=g,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=g,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(_,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,t):new p(_,t)}intercept(_,t,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,t,o):t}invoke(_,t,o,y,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,t,o,y,P):t.apply(o,y)}handleError(_,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,t)}scheduleTask(_,t){let o=t;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,t),o||(o=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=v)throw new Error("Task is missing scheduleFn.");d(t)}return o}invokeTask(_,t,o,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,t,o,y):t.callback.apply(o,y)}cancelTask(_,t){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");o=t.cancelFn(t)}return o}hasTask(_,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,t)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,t){const o=this._taskCounts,y=o[_],P=o[_]=y+t;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=y&&0!=P||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class m{constructor(_,t,o,y,P,Q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=t,this.data=y,this.scheduleFn=P,this.cancelFn=Q,!o)throw new Error("callback is not defined");this.callback=o;const l=this;this.invoke=_===R&&y&&y.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(_,t,o){_||(_=this),ae++;try{return _.runCount++,_.zone.runTask(_,t,o)}finally{1==ae&&M(),ae--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(j,q)}_transitionTo(_,t,o){if(this._state!==t&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${t}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==j&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const Z=u("setTimeout"),D=u("Promise"),I=u("then");let E,B=[],G=!1;function d(L){if(0===ae&&0===B.length)if(E||e[D]&&(E=e[D].resolve(0)),E){let _=E[I];_||(_=E.then),_.call(E,M)}else e[Z](M,0);L&&B.push(L)}function M(){if(!G){for(G=!0;B.length;){const L=B;B=[];for(let _=0;_V,onUnhandledError:F,microtaskDrainDone:F,scheduleMicroTask:d,showUncaughtError:()=>!p[u("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:F,patchMethod:()=>F,bindArguments:()=>[],patchThen:()=>F,patchMacroTask:()=>F,patchEventPrototype:()=>F,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>F,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>F,wrapWithCurrentZone:()=>F,filterProperties:()=>[],attachOriginToPatched:()=>F,_redefineProperty:()=>F,patchCallbacks:()=>F};let V={parent:null,zone:new p(null,null)},ie=null,ae=0;function F(){}r("Zone","Zone"),e.Zone=p}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const de=Object.getOwnPropertyDescriptor,Te=Object.defineProperty,ye=Object.getPrototypeOf,Ae=Object.create,He=Array.prototype.slice,Re="addEventListener",Ze="removeEventListener",Ce=Zone.__symbol__(Re),_e=Zone.__symbol__(Ze),oe="true",se="false",me=Zone.__symbol__("");function $(e,n){return Zone.current.wrap(e,n)}function ne(e,n,i,r,c){return Zone.current.scheduleMacroTask(e,n,i,r,c)}const S=Zone.__symbol__,J="undefined"!=typeof window,ge=J?window:void 0,K=J&&ge||"object"==typeof self&&self||global,ht=[null];function je(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=$(e[i],n+"_"+i));return e}function Ue(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const We="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Oe=!("nw"in K)&&void 0!==K.process&&"[object process]"==={}.toString.call(K.process),xe=!Oe&&!We&&!(!J||!ge.HTMLElement),qe=void 0!==K.process&&"[object process]"==={}.toString.call(K.process)&&!We&&!(!J||!ge.HTMLElement),Ie={},Xe=function(e){if(!(e=e||K.event))return;let n=Ie[e.type];n||(n=Ie[e.type]=S("ON_PROPERTY"+e.type));const i=this||e.target||K,r=i[n];let c;if(xe&&i===ge&&"error"===e.type){const u=e;c=r&&r.call(this,u.message,u.filename,u.lineno,u.colno,u.error),!0===c&&e.preventDefault()}else c=r&&r.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function Ye(e,n,i){let r=de(e,n);if(!r&&i&&de(i,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const c=S("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete r.writable,delete r.value;const u=r.get,f=r.set,p=n.substr(2);let g=Ie[p];g||(g=Ie[p]=S("ON_PROPERTY"+p)),r.set=function(T){let m=this;!m&&e===K&&(m=K),m&&(m[g]&&m.removeEventListener(p,Xe),f&&f.apply(m,ht),"function"==typeof T?(m[g]=T,m.addEventListener(p,Xe,!1)):m[g]=null)},r.get=function(){let T=this;if(!T&&e===K&&(T=K),!T)return null;const m=T[g];if(m)return m;if(u){let Z=u&&u.call(this);if(Z)return r.set.call(this,Z),"function"==typeof T.removeAttribute&&T.removeAttribute(n),Z}return null},Te(e,n,r),e[c]=!0}function $e(e,n,i){if(n)for(let r=0;rfunction(f,p){const g=i(f,p);return g.cbIdx>=0&&"function"==typeof p[g.cbIdx]?ne(g.name,p[g.cbIdx],g,c):u.apply(f,p)})}function fe(e,n){e[S("OriginalDelegate")]=n}let Ke=!1,Ge=!1;function mt(){if(Ke)return Ge;Ke=!0;try{const e=ge.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ge=!0)}catch(e){}return Ge}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const r=Object.getOwnPropertyDescriptor,c=Object.defineProperty,f=i.symbol,p=[],g=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],T=f("Promise"),m=f("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const s=l&&l.rejection;s?console.error("Unhandled Promise rejection:",s instanceof Error?s.message:s,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",s,s instanceof Error?s.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;p.length;){const l=p.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(s){I(s)}}};const D=f("unhandledPromiseRejectionHandler");function I(l){i.onUnhandledError(l);try{const s=n[D];"function"==typeof s&&s.call(this,l)}catch(s){}}function B(l){return l&&l.then}function G(l){return l}function E(l){return t.reject(l)}const d=f("state"),M=f("value"),z=f("finally"),j=f("parentPromiseValue"),q=f("parentPromiseState"),X=null,H=!0,Y=!1;function A(l,s){return a=>{try{V(l,s,a)}catch(h){V(l,!1,h)}}}const he=f("currentTaskTrace");function V(l,s,a){const h=function(){let l=!1;return function(a){return function(){l||(l=!0,a.apply(null,arguments))}}}();if(l===a)throw new TypeError("Promise resolved with itself");if(l[d]===X){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(C){return h(()=>{V(l,!1,C)})(),l}if(s!==Y&&a instanceof t&&a.hasOwnProperty(d)&&a.hasOwnProperty(M)&&a[d]!==X)ae(a),V(l,a[d],a[M]);else if(s!==Y&&"function"==typeof w)try{w.call(a,h(A(l,s)),h(A(l,!1)))}catch(C){h(()=>{V(l,!1,C)})()}else{l[d]=s;const C=l[M];if(l[M]=a,l[z]===z&&s===H&&(l[d]=l[q],l[M]=l[j]),s===Y&&a instanceof Error){const k=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;k&&c(a,he,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k{try{const b=l[M],N=!!a&&z===a[z];N&&(a[j]=b,a[q]=C);const x=s.run(k,void 0,N&&k!==E&&k!==G?[]:[b]);V(a,!0,x)}catch(b){V(a,!1,b)}},a)}const _=function(){};class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(s){return V(new this(null),H,s)}static reject(s){return V(new this(null),Y,s)}static race(s){let a,h,w=new this((b,N)=>{a=b,h=N});function C(b){a(b)}function k(b){h(b)}for(let b of s)B(b)||(b=this.resolve(b)),b.then(C,k);return w}static all(s){return t.allWithCallback(s)}static allSettled(s){return(this&&this.prototype instanceof t?this:t).allWithCallback(s,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(s,a){let h,w,C=new this((x,U)=>{h=x,w=U}),k=2,b=0;const N=[];for(let x of s){B(x)||(x=this.resolve(x));const U=b;try{x.then(te=>{N[U]=a?a.thenCallback(te):te,k--,0===k&&h(N)},te=>{a?(N[U]=a.errorCallback(te),k--,0===k&&h(N)):w(te)})}catch(te){w(te)}k++,b++}return k-=2,0===k&&h(N),C}constructor(s){const a=this;if(!(a instanceof t))throw new Error("Must be an instanceof Promise.");a[d]=X,a[M]=[];try{s&&s(A(a,H),A(a,Y))}catch(h){V(a,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(s,a){let h=this.constructor[Symbol.species];(!h||"function"!=typeof h)&&(h=this.constructor||t);const w=new h(_),C=n.current;return this[d]==X?this[M].push(C,w,s,a):F(this,C,w,s,a),w}catch(s){return this.then(null,s)}finally(s){let a=this.constructor[Symbol.species];(!a||"function"!=typeof a)&&(a=t);const h=new a(_);h[z]=z;const w=n.current;return this[d]==X?this[M].push(w,h,s,s):F(this,w,h,s,s),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const o=e[T]=e.Promise;e.Promise=t;const y=f("thenPatched");function P(l){const s=l.prototype,a=r(s,"then");if(a&&(!1===a.writable||!a.configurable))return;const h=s.then;s[m]=h,l.prototype.then=function(w,C){return new t((b,N)=>{h.call(this,b,N)}).then(w,C)},l[y]=!0}return i.patchThen=P,o&&(P(o),ue(e,"fetch",l=>function Q(l){return function(s,a){let h=l.apply(s,a);if(h instanceof t)return h;let w=h.constructor;return w[y]||P(w),h}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=p,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=S("OriginalDelegate"),r=S("Promise"),c=S("Error"),u=function(){if("function"==typeof this){const T=this[i];if(T)return"function"==typeof T?n.call(T):Object.prototype.toString.call(T);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};u[i]=n,Function.prototype.toString=u;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let ke=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){ke=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ke=!1}const Et={useG:!0},re={},Je={},Qe=new RegExp("^"+me+"(\\w+)(true|false)$"),Ve=S("propagationStopped");function et(e,n){const i=(n?n(e):e)+se,r=(n?n(e):e)+oe,c=me+i,u=me+r;re[e]={},re[e][se]=c,re[e][oe]=u}function Tt(e,n,i){const r=i&&i.add||Re,c=i&&i.rm||Ze,u=i&&i.listeners||"eventListeners",f=i&&i.rmAll||"removeAllListeners",p=S(r),g="."+r+":",Z=function(E,d,M){if(E.isRemoved)return;const z=E.callback;"object"==typeof z&&z.handleEvent&&(E.callback=q=>z.handleEvent(q),E.originalDelegate=z),E.invoke(E,d,[M]);const j=E.options;j&&"object"==typeof j&&j.once&&d[c].call(d,M.type,E.originalDelegate?E.originalDelegate:E.callback,j)},D=function(E){if(!(E=E||e.event))return;const d=this||E.target||e,M=d[re[E.type][se]];if(M)if(1===M.length)Z(M[0],d,E);else{const z=M.slice();for(let j=0;jfunction(c,u){c[Ve]=!0,r&&r.apply(c,u)})}function gt(e,n,i,r,c){const u=Zone.__symbol__(r);if(n[u])return;const f=n[u]=n[r];n[r]=function(p,g,T){return g&&g.prototype&&c.forEach(function(m){const Z=`${i}.${r}::`+m,D=g.prototype;if(D.hasOwnProperty(m)){const I=e.ObjectGetOwnPropertyDescriptor(D,m);I&&I.value?(I.value=e.wrapWithCurrentZone(I.value,Z),e._redefineProperty(g.prototype,m,I)):D[m]&&(D[m]=e.wrapWithCurrentZone(D[m],Z))}else D[m]&&(D[m]=e.wrapWithCurrentZone(D[m],Z))}),f.call(n,p,g,T)},e.attachOriginToPatched(n[r],f)}const ze=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],wt=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],nt=["load"],rt=["blur","error","focus","load","resize","scroll","messageerror"],St=["bounce","finish","start"],ot=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ve=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Dt=["close","error","open","message"],Zt=["error","message"],be=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],ze,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function st(e,n,i){if(!i||0===i.length)return n;const r=i.filter(u=>u.target===e);if(!r||0===r.length)return n;const c=r[0].ignoreProperties;return n.filter(u=>-1===c.indexOf(u))}function W(e,n,i,r){e&&$e(e,st(e,n,i),r)}Zone.__load_patch("util",(e,n,i)=>{i.patchOnProperties=$e,i.patchMethod=ue,i.bindArguments=je,i.patchMacroTask=pt;const r=n.__symbol__("BLACK_LISTED_EVENTS"),c=n.__symbol__("UNPATCHED_EVENTS");e[c]&&(e[r]=e[c]),e[r]&&(n[r]=n[c]=e[r]),i.patchEventPrototype=yt,i.patchEventTarget=Tt,i.isIEOrEdge=mt,i.ObjectDefineProperty=Te,i.ObjectGetOwnPropertyDescriptor=de,i.ObjectCreate=Ae,i.ArraySlice=He,i.patchClass=Ne,i.wrapWithCurrentZone=$,i.filterProperties=st,i.attachOriginToPatched=fe,i._redefineProperty=Object.defineProperty,i.patchCallbacks=gt,i.getGlobalObjects=()=>({globalSources:Je,zoneSymbolEventNames:re,eventNames:be,isBrowser:xe,isMix:qe,isNode:Oe,TRUE_STR:oe,FALSE_STR:se,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Re,REMOVE_EVENT_LISTENER_STR:Ze})});const Le=S("zoneTask");function we(e,n,i,r){let c=null,u=null;i+=r;const f={};function p(T){const m=T.data;return m.args[0]=function(){return T.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),T}function g(T){return u.call(e,T.data.handleId)}c=ue(e,n+=r,T=>function(m,Z){if("function"==typeof Z[0]){const D={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?Z[1]||0:void 0,args:Z},I=Z[0];Z[0]=function(){try{return I.apply(this,arguments)}finally{D.isPeriodic||("number"==typeof D.handleId?delete f[D.handleId]:D.handleId&&(D.handleId[Le]=null))}};const B=ne(n,Z[0],D,p,g);if(!B)return B;const G=B.data.handleId;return"number"==typeof G?f[G]=B:G&&(G[Le]=B),G&&G.ref&&G.unref&&"function"==typeof G.ref&&"function"==typeof G.unref&&(B.ref=G.ref.bind(G),B.unref=G.unref.bind(G)),"number"==typeof G||G?G:B}return T.apply(e,Z)}),u=ue(e,i,T=>function(m,Z){const D=Z[0];let I;"number"==typeof D?I=f[D]:(I=D&&D[Le],I||(I=D)),I&&"string"==typeof I.type?"notScheduled"!==I.state&&(I.cancelFn&&I.data.isPeriodic||0===I.runCount)&&("number"==typeof D?delete f[D]:D&&(D[Le]=null),I.zone.cancelTask(I)):T.apply(e,Z)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",r=>function(c,u){n.current.scheduleMicroTask("queueMicrotask",u[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";we(e,n,i,"Timeout"),we(e,n,i,"Interval"),we(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{we(e,"request","cancel","AnimationFrame"),we(e,"mozRequest","mozCancel","AnimationFrame"),we(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let r=0;rfunction(g,T){return n.current.run(u,e,T,p)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function Mt(e,n){n.patchEventPrototype(e,n)})(e,i),function Lt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:r,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:f}=n.getGlobalObjects();for(let g=0;g{Ne("MutationObserver"),Ne("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{Ne("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{Ne("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Ot(e,n){if(Oe&&!qe||Zone[e.symbol("patchEvents")])return;const i="undefined"!=typeof WebSocket,r=n.__Zone_ignore_on_properties;if(xe){const f=window,p=function _t(){try{const e=ge.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:f,ignoreProperties:["error"]}]:[];W(f,be.concat(["messageerror"]),r&&r.concat(p),ye(f)),W(Document.prototype,be,r),void 0!==f.SVGElement&&W(f.SVGElement.prototype,be,r),W(Element.prototype,be,r),W(HTMLElement.prototype,be,r),W(HTMLMediaElement.prototype,wt,r),W(HTMLFrameSetElement.prototype,ze.concat(rt),r),W(HTMLBodyElement.prototype,ze.concat(rt),r),W(HTMLFrameElement.prototype,nt,r),W(HTMLIFrameElement.prototype,nt,r);const g=f.HTMLMarqueeElement;g&&W(g.prototype,St,r);const T=f.Worker;T&&W(T.prototype,Zt,r)}const c=n.XMLHttpRequest;c&&W(c.prototype,ot,r);const u=n.XMLHttpRequestEventTarget;u&&W(u&&u.prototype,ot,r),"undefined"!=typeof IDBIndex&&(W(IDBIndex.prototype,ve,r),W(IDBRequest.prototype,ve,r),W(IDBOpenDBRequest.prototype,ve,r),W(IDBDatabase.prototype,ve,r),W(IDBTransaction.prototype,ve,r),W(IDBCursor.prototype,ve,r)),i&&W(WebSocket.prototype,Dt,r)}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function It(e,n){const{isBrowser:i,isMix:r}=n.getGlobalObjects();(i||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function g(T){const m=T.XMLHttpRequest;if(!m)return;const Z=m.prototype;let I=Z[Ce],B=Z[_e];if(!I){const v=T.XMLHttpRequestEventTarget;if(v){const A=v.prototype;I=A[Ce],B=A[_e]}}const G="readystatechange",E="scheduled";function d(v){const A=v.data,R=A.target;R[u]=!1,R[p]=!1;const ee=R[c];I||(I=R[Ce],B=R[_e]),ee&&B.call(R,G,ee);const he=R[c]=()=>{if(R.readyState===R.DONE)if(!A.aborted&&R[u]&&v.state===E){const ie=R[n.__symbol__("loadfalse")];if(0!==R.status&&ie&&ie.length>0){const ae=v.invoke;v.invoke=function(){const F=R[n.__symbol__("loadfalse")];for(let L=0;Lfunction(v,A){return v[r]=0==A[2],v[f]=A[1],j.apply(v,A)}),O=S("fetchTaskAborting"),X=S("fetchTaskScheduling"),H=ue(Z,"send",()=>function(v,A){if(!0===n.current[X]||v[r])return H.apply(v,A);{const R={target:v,url:v[f],isPeriodic:!1,args:A,aborted:!1},ee=ne("XMLHttpRequest.send",M,R,d,z);v&&!0===v[p]&&!R.aborted&&ee.state===E&&ee.invoke()}}),Y=ue(Z,"abort",()=>function(v,A){const R=function D(v){return v[i]}(v);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===n.current[O])return Y.apply(v,A)})}(e);const i=S("xhrTask"),r=S("xhrSync"),c=S("xhrListener"),u=S("xhrScheduled"),f=S("xhrURL"),p=S("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function dt(e,n){const i=e.constructor.name;for(let r=0;r{const g=function(){return p.apply(this,je(arguments,i+"."+c))};return fe(g,p),g})(u)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(r){return function(c){tt(e,r).forEach(f=>{const p=e.PromiseRejectionEvent;if(p){const g=new p(r,{promise:c.promise,reason:c.rejection});f.invoke(g)}})}}e.PromiseRejectionEvent&&(n[S("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[S("rejectionHandledHandler")]=i("rejectionhandled"))})}},De=>{De(De.s=8053)}]); \ No newline at end of file diff --git a/samples/Server/wwwroot/runtime.5eac2139ea957429.js b/samples/Server/wwwroot/runtime.5eac2139ea957429.js deleted file mode 100644 index e6964e1..0000000 --- a/samples/Server/wwwroot/runtime.5eac2139ea957429.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},i={};function n(e){var l=i[e];if(void 0!==l)return l.exports;var r=i[e]={exports:{}};return v[e].call(r.exports,r,r.exports,n),r.exports}n.m=v,e=[],n.O=(l,r,o,f)=>{if(!r){var u=1/0;for(a=0;a=f)&&Object.keys(n.O).every(d=>n.O[d](r[c]))?r.splice(c--,1):(s=!1,f0&&e[a-1][2]>f;a--)e[a]=e[a-1];e[a]=[r,o,f]},n.d=(e,l)=>{for(var r in l)n.o(l,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:l[r]})},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={666:0};n.O.j=o=>0===e[o];var l=(o,f)=>{var c,t,[a,u,s]=f,p=0;if(a.some(b=>0!==e[b])){for(c in u)n.o(u,c)&&(n.m[c]=u[c]);if(s)var _=s(n)}for(o&&o(f);p{"use strict";var e,v={},i={};function a(e){var l=i[e];if(void 0!==l)return l.exports;var r=i[e]={exports:{}};return v[e].call(r.exports,r,r.exports,a),r.exports}a.m=v,e=[],a.O=(l,r,o,f)=>{if(!r){var t=1/0;for(n=0;n=f)&&Object.keys(a.O).every(d=>a.O[d](r[c]))?r.splice(c--,1):(s=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[r,o,f]},a.d=(e,l)=>{for(var r in l)a.o(l,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:l[r]})},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={666:0};a.O.j=o=>0===e[o];var l=(o,f)=>{var c,u,[n,t,s]=f,p=0;if(n.some(b=>0!==e[b])){for(c in t)a.o(t,c)&&(a.m[c]=t[c]);if(s)var _=s(a)}for(o&&o(f);pdiv{line-height:1.5em;text-overflow:ellipsis}.list__item>div:nth-child(1){font-weight:700}.list__item--right{float:right}.list__item .active{background:#e3e7eb}.list__item:hover{cursor:pointer;background:#e3e7eb}.list__item div:focus{outline:none}.list__itemDetail{font-size:.8em}.list__item--active{background:#eb6637}.pane{display:grid;grid-template-columns:360px 1fr;grid-template-rows:1fr;grid-template-areas:"list detail";height:100vh}.pane__list{grid-area:list;padding:5px;overflow-y:auto;border-right:1px solid #2c3e50}.pane__detail{grid-area:detail;padding:5px;overflow-y:auto}.pane--onlydetail{grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"detail"}@media (max-width: 1024px){.pane{display:grid;grid-template-columns:1fr;grid-template-rows:1fr 1fr;grid-template-areas:"list" "detail";height:100vh}.pane--onlydetail{grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"detail"}}.tabs{width:100%;margin:10px 0}.tabs ul li{display:inline;font-weight:700;cursor:pointer}.tabs__tab{margin-left:10px}.tabs .tab__title{margin:0 10px;padding:0 5px}.tabs .tab__title--active{border-bottom:3px solid #2c3e50}.button__bar{position:relative;display:inline-block;vertical-align:middle}.button__bar>button,.button__bar>.button,.button__bar>.button-wrapper{position:relative;float:left;margin-right:1px;margin-bottom:1px;border-radius:0}.button__bar>button:first-child,.button__bar>.button:first-child,.button__bar>.button-wrapper:first-child{border-top-left-radius:18px;border-bottom-left-radius:18px}.button__bar>button:last-child,.button__bar>.button:last-child,.button__bar>.button-wrapper:last-child{margin-right:0;border-top-right-radius:18px;border-bottom-right-radius:18px}.multiselect-dropdown{position:relative}.multiselect-dropdown .dropdown-btn{display:inline-block;border:1px solid #adadad;width:100%;min-height:25px;margin-bottom:0;font-size:.9em;font-weight:400;text-align:left;vertical-align:middle;background-color:#e8eeef;border-radius:4px;cursor:pointer}.multiselect-dropdown .dropdown-btn .selected-item{border:1px solid #2c3e50;margin:4px;padding:0 4px;border-radius:2px;background:#2c3e50;color:#fff;float:left}.multiselect-dropdown .dropdown-btn .selected-item a{text-decoration:none}.multiselect-dropdown .dropdown-btn .selected-item:hover{box-shadow:1px 1px #959595}.multiselect-dropdown .dropdown-btn .no-item-selected{margin-top:2px;margin-bottom:2px;padding:1px 5px;float:left}.multiselect-dropdown .dropdown-btn .dropdown-down{display:inline-block;top:5px;width:0;height:0;border-top:5px solid #adadad;border-left:5px solid transparent;border-right:5px solid transparent}.multiselect-dropdown .dropdown-btn .dropdown-up{display:inline-block;width:0;height:0;border-bottom:5px solid #adadad;border-left:5px solid transparent;border-right:5px solid transparent}.multiselect-dropdown .disabled>span{background-color:#eceeef}.dropdown-list{position:absolute;width:100%;z-index:1000;border:1px solid #ccc;background:#fff;box-shadow:0 1px 5px #959595}.dropdown-list ul{padding:0;list-style:none;overflow-y:auto;margin:0;max-height:200px}.dropdown-list li{padding:5px;cursor:pointer;text-align:left}.dropdown-list .filter-textbox{border-bottom:1px solid #ccc;position:relative;display:flex}.dropdown-list .filter-textbox input{border:0;margin:0}.dropdown-list .filter-textbox input:focus{outline:none}.dropdown-list .filter-textbox button{margin-left:5px}.multiselect-item-checkbox input[type=checkbox]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.multiselect-item-checkbox input[type=checkbox]:focus+div:before,.multiselect-item-checkbox input[type=checkbox]:hover+div:before{border-color:#2c3e50;background-color:#f2f2f2}.multiselect-item-checkbox input[type=checkbox]+div{position:relative;padding-left:2em;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;margin:0}.multiselect-item-checkbox input[type=checkbox]+div:before{box-sizing:content-box;content:"";color:#2c3e50;position:absolute;top:50%;left:0;width:14px;height:14px;margin-top:-9px;border:2px solid #2c3e50;text-align:center;transition:all .1s ease}.multiselect-item-checkbox input[type=checkbox]+div:after{background-color:#2c3e50;content:"";position:absolute;box-sizing:content-box;top:50%;left:4px;width:10px;height:10px;margin-top:-5px;transform:scale(0);transform-origin:50%;transition:transform .1s ease-out}.multiselect-item-checkbox input[type=checkbox]+div:after{background-color:transparent;top:50%;left:4px;width:8px;height:3px;margin-top:-4px;border-style:solid;border-color:#fff;border-width:0 0 3px 3px;-o-border-image:none;border-image:none;transform:rotate(-45deg) scale(0)}.multiselect-item-checkbox input[type=checkbox]:checked+div:after{content:"";transform:rotate(-45deg) scale(1);transition:transform .1s ease-out}.multiselect-item-checkbox input[type=checkbox]:checked+div:before{background:#2c3e50;-webkit-animation:borderscale .1s ease-in;animation:borderscale .1s ease-in}@-webkit-keyframes borderscale{50%{box-shadow:0 0 0 2px #2c3e50}}@keyframes borderscale{50%{box-shadow:0 0 0 2px #2c3e50}}.cdk-overlay-container{background-color:#fff;opacity:.97!important}.popover{background-color:#fff;box-shadow:0 2px 14px #507192;border-radius:5px;padding:1rem}.sidebar{grid-area:sidebar;display:flex;flex-direction:column;background:#2c3e50;width:360px;overflow-y:auto}.sidebar__header{display:flex;padding:10px 20px;font-size:1em;font-weight:700;letter-spacing:.5em;color:#f5f5f5;align-items:center;justify-content:center;text-transform:uppercase}.sidebar__header>button{cursor:pointer}.sidebar__header img{-o-object-fit:cover;object-fit:cover;border-radius:50%;width:140px;height:140px}.sidebar__content{display:flex;flex:1;text-align:left;line-height:2.5em;overflow-y:auto}.sidebar__content ul{width:100%;font-size:.8em}.sidebar__content ul li{padding:0 20px}.sidebar__content ul li a,.sidebar__content ul li span{color:#f5f5f5;display:block;font-weight:700;letter-spacing:.25em;text-transform:uppercase;width:100%}.sidebar__content ul li ul li,.sidebar__content ul li ul .active,.sidebar__content ul li ul li:hover{margin:0 -20px;padding:0 40px}.sidebar__content ul .menu__item:hover{cursor:pointer;background:#3e5771}.sidebar__content ul .active{background:#3e5771}.sidebar__footer{display:flex;color:#f5f5f5;text-align:left;line-height:2.5em}.sidebar__footer ul{width:100%;font-size:.8em}.sidebar__footer ul li{padding:0 20px}.sidebar__footer ul li a,.sidebar__footer ul li span{color:#f5f5f5;display:block;font-weight:700;letter-spacing:.25em;text-transform:uppercase;width:100%}.sidebar__footer ul li:hover{cursor:pointer;background:#3e5771}.sidebar--collapsed{width:50px;overflow:hidden}.sidebar--collapsed .sidebar__header{transform:rotate(-90deg);-o-transform:rotate(-90deg);font-weight:700}.sidebar--collapsed .sidebar__header button{transform:rotate(90deg);-o-transform:rotate(90deg)}.sidebar--collapsed .sidebar__content,.sidebar--collapsed .sidebar__footer{display:none}.workspace{grid-area:workspace;flex:1}.workspace .workspace__header{max-height:4em;font-size:1em}.workspace .workspace__status{font-size:1em;position:fixed;right:5px;top:5px;width:40%;min-height:50px;padding:5px;border-radius:4px;z-index:10}.workspace .workspace__status-close{float:right;font-weight:700;font-size:x-large;cursor:pointer}.workspace .workspace__status--info{background:#fff;color:#333}.workspace .workspace__status--success{background:#9bc855;color:#fff}.workspace .workspace__status--warning{background:#ff9b32;color:#fff}.workspace .workspace__status--danger{background:#e6003c;color:#fff}.workspace .workspace__content{color:#333;background:#fff}.workspace .workspace__footer{height:4em;font-size:.8em}.shell{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr;grid-template-areas:"sidebar workspace";height:100vh}/*! - * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:FontAwesome;src:url(fontawesome-webfont.2b13baa7dd4f54c9.eot?v=4.7.0);src:url(fontawesome-webfont.2b13baa7dd4f54c9.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(fontawesome-webfont.e9955780856cf8aa.woff2?v=4.7.0) format("woff2"),url(fontawesome-webfont.cf011583fb81df9f.woff?v=4.7.0) format("woff"),url(fontawesome-webfont.8a7cb27d142e3e19.ttf?v=4.7.0) format("truetype"),url(fontawesome-webfont.da909aa098b0ee2d.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eeeeee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scaleY(-1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/samples/Server/wwwroot/styles.dcf05ab5a0fdd8cf.css b/samples/Server/wwwroot/styles.dcf05ab5a0fdd8cf.css new file mode 100644 index 0000000..2d16c23 --- /dev/null +++ b/samples/Server/wwwroot/styles.dcf05ab5a0fdd8cf.css @@ -0,0 +1,4 @@ +.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}*{margin:0;padding:0}body{font-family:sans-serif;height:100vh}h1,h2,h3,h4,h5,h6{color:#2c3e50}a{color:#e95420;text-decoration:none}ul,li{list-style-type:none;list-style-position:inside}table{width:100%;margin-top:5px}td{text-align:left;vertical-align:top}td button,td input[type=text],td input[type=password],td input[type=date],td input[type=datetime],td input[type=email],td input[type=number],td input[type=search],td input[type=time],td input[type=url],td textarea,td select{margin-bottom:0;padding:0;-webkit-appearance:menulist-button;height:35px}.title{width:100%;font-size:1.2em;font-weight:700;padding-bottom:5px;margin-bottom:10px;border-bottom:1px solid #2c3e50}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}::-webkit-scrollbar-thumb{background:#507192}::-webkit-scrollbar-thumb:hover{background:#2c3e50}.button,a.button,button,[type=button],[type=submit]{display:inline-block;background:#2c3e50;border:1px solid #2c3e50;color:#fff;text-decoration:none;padding:.25em 1em;vertical-align:middle;white-space:nowrap;cursor:pointer;font-size:.8em;border-radius:18px}.button:hover,a.button:hover,button:hover,[type=button]:hover,[type=submit]:hover{background:#3e5771}.button:disabled,a.button:disabled,button:disabled,[type=button]:disabled,[type=submit]:disabled{background:#aabdd1}.button--secondary{background:#507192;border:1px solid #507192}.button--secondary:hover{background:#698aac}.button--squared{padding:.5em .75em;border-radius:2px}.button--disabled{background:#aabdd1}.form fieldset{border:none;margin-bottom:10px}.form legend:hover{cursor:pointer}.form label{display:block;margin-bottom:2px;font-size:.8em}.form input[type=text],.form input[type=password],.form input[type=date],.form input[type=datetime],.form input[type=email],.form input[type=number],.form input[type=search],.form input[type=time],.form input[type=url],.form textarea,.form select{background:rgba(255,255,255,.1);border:none;border-radius:4px;margin:0;outline:0;padding:5px;width:100%;background-color:#e8eeef;box-sizing:border-box;box-shadow:0 1px #00000008 inset;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.03) inset}.form input[type=text]:focus,.form input[type=password]:focus,.form input[type=date]:focus,.form input[type=datetime]:focus,.form input[type=email]:focus,.form input[type=number]:focus,.form input[type=search]:focus,.form input[type=time]:focus,.form input[type=url]:focus,.form textarea:focus,.form select:focus{background:#d2d9dd}.form select{-webkit-appearance:menulist-button;height:35px}.form .number{height:30px;width:30px;display:inline-block;font-size:.8em;margin-right:4px;line-height:30px;text-align:center;text-shadow:0 1px 0 rgba(255,255,255,.2);border-radius:15px 15px 15px 0}.form__validation--error{font-size:.8em;font-weight:700;color:#e6003c;margin-bottom:10px}.form__validation-summary{color:#e6003c;margin:10px 0}.form__validation-summary li{margin:0}.editor{display:block;padding-bottom:10px}.list,.list__header,.list__footer{display:flex;flex-direction:column}.list__header{font-weight:700}.list__search{margin-top:5px}.list__search input[type=text]{margin:0}.list__content{display:flex;flex:1;flex-direction:column}.list__content--no-data{padding-top:10px}.list__item{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;color:#333;padding:10px 5px}.list__item>div{line-height:1.5em;text-overflow:ellipsis}.list__item>div:nth-child(1){font-weight:700}.list__item--right{float:right}.list__item .active{background:#e3e7eb}.list__item:hover{cursor:pointer;background:#e3e7eb}.list__item div:focus{outline:none}.list__itemDetail{font-size:.8em}.list__item--active{background:#eb6637}.pane{display:grid;grid-template-columns:360px 1fr;grid-template-rows:1fr;grid-template-areas:"list detail";height:100vh}.pane__list{grid-area:list;padding:5px;overflow-y:auto;border-right:1px solid #2c3e50}.pane__detail{grid-area:detail;padding:5px;overflow-y:auto}.pane--onlydetail{grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"detail"}@media (max-width: 1024px){.pane{display:grid;grid-template-columns:1fr;grid-template-rows:1fr 1fr;grid-template-areas:"list" "detail";height:100vh}.pane--onlydetail{grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"detail"}}.tabs{width:100%;margin:10px 0}.tabs ul li{display:inline;font-weight:700;cursor:pointer}.tabs__tab{margin-left:10px}.tabs .tab__title{margin:0 10px;padding:0 5px}.tabs .tab__title--active{border-bottom:3px solid #2c3e50}.button__bar{position:relative;display:inline-block;vertical-align:middle}.button__bar>button,.button__bar>.button,.button__bar>.button-wrapper{position:relative;float:left;margin-right:1px;margin-bottom:1px;border-radius:0}.button__bar>button:first-child,.button__bar>.button:first-child,.button__bar>.button-wrapper:first-child{border-top-left-radius:18px;border-bottom-left-radius:18px}.button__bar>button:last-child,.button__bar>.button:last-child,.button__bar>.button-wrapper:last-child{margin-right:0;border-top-right-radius:18px;border-bottom-right-radius:18px}.multiselect-dropdown{position:relative}.multiselect-dropdown .dropdown-btn{display:inline-block;border:1px solid #adadad;width:100%;min-height:25px;margin-bottom:0;font-size:.9em;font-weight:400;text-align:left;vertical-align:middle;background-color:#e8eeef;border-radius:4px;cursor:pointer}.multiselect-dropdown .dropdown-btn .selected-item{border:1px solid #2c3e50;margin:4px;padding:0 4px;border-radius:2px;background:#2c3e50;color:#fff;float:left}.multiselect-dropdown .dropdown-btn .selected-item a{text-decoration:none}.multiselect-dropdown .dropdown-btn .selected-item:hover{box-shadow:1px 1px #959595}.multiselect-dropdown .dropdown-btn .no-item-selected{margin-top:2px;margin-bottom:2px;padding:1px 5px;float:left}.multiselect-dropdown .dropdown-btn .dropdown-down{display:inline-block;top:5px;width:0;height:0;border-top:5px solid #adadad;border-left:5px solid transparent;border-right:5px solid transparent}.multiselect-dropdown .dropdown-btn .dropdown-up{display:inline-block;width:0;height:0;border-bottom:5px solid #adadad;border-left:5px solid transparent;border-right:5px solid transparent}.multiselect-dropdown .disabled>span{background-color:#eceeef}.dropdown-list{position:absolute;width:100%;z-index:1000;border:1px solid #ccc;background:#fff;box-shadow:0 1px 5px #959595}.dropdown-list ul{padding:0;list-style:none;overflow-y:auto;margin:0;max-height:200px}.dropdown-list li{padding:5px;cursor:pointer;text-align:left}.dropdown-list .filter-textbox{border-bottom:1px solid #ccc;position:relative;display:flex}.dropdown-list .filter-textbox input{border:0;margin:0}.dropdown-list .filter-textbox input:focus{outline:none}.dropdown-list .filter-textbox button{margin-left:5px}.multiselect-item-checkbox input[type=checkbox]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.multiselect-item-checkbox input[type=checkbox]:focus+div:before,.multiselect-item-checkbox input[type=checkbox]:hover+div:before{border-color:#2c3e50;background-color:#f2f2f2}.multiselect-item-checkbox input[type=checkbox]+div{position:relative;padding-left:2em;vertical-align:middle;-webkit-user-select:none;user-select:none;cursor:pointer;margin:0}.multiselect-item-checkbox input[type=checkbox]+div:before{box-sizing:content-box;content:"";color:#2c3e50;position:absolute;top:50%;left:0;width:14px;height:14px;margin-top:-9px;border:2px solid #2c3e50;text-align:center;transition:all .1s ease}.multiselect-item-checkbox input[type=checkbox]+div:after{background-color:#2c3e50;content:"";position:absolute;box-sizing:content-box;top:50%;left:4px;width:10px;height:10px;margin-top:-5px;transform:scale(0);transform-origin:50%;transition:transform .1s ease-out}.multiselect-item-checkbox input[type=checkbox]+div:after{background-color:transparent;top:50%;left:4px;width:8px;height:3px;margin-top:-4px;border-style:solid;border-color:#fff;border-width:0 0 3px 3px;border-image:none;transform:rotate(-45deg) scale(0)}.multiselect-item-checkbox input[type=checkbox]:checked+div:after{content:"";transform:rotate(-45deg) scale(1);transition:transform .1s ease-out}.multiselect-item-checkbox input[type=checkbox]:checked+div:before{background:#2c3e50;animation:borderscale .1s ease-in}@keyframes borderscale{50%{box-shadow:0 0 0 2px #2c3e50}}.cdk-overlay-container{background-color:#fff;opacity:.97!important}.popover{background-color:#fff;box-shadow:0 2px 14px #507192;border-radius:5px;padding:1rem}.sidebar{grid-area:sidebar;display:flex;flex-direction:column;background:#2c3e50;width:360px;overflow-y:auto}.sidebar__header{display:flex;padding:10px 20px;font-size:1em;font-weight:700;letter-spacing:.5em;color:#f5f5f5;align-items:center;justify-content:center;text-transform:uppercase}.sidebar__header>button{cursor:pointer}.sidebar__header img{object-fit:cover;border-radius:50%;width:140px;height:140px}.sidebar__content{display:flex;flex:1;text-align:left;line-height:2.5em;overflow-y:auto}.sidebar__content ul{width:100%;font-size:.8em}.sidebar__content ul li{padding:0 20px}.sidebar__content ul li a,.sidebar__content ul li span{color:#f5f5f5;display:block;font-weight:700;letter-spacing:.25em;text-transform:uppercase;width:100%}.sidebar__content ul li ul li,.sidebar__content ul li ul .active,.sidebar__content ul li ul li:hover{margin:0 -20px;padding:0 40px}.sidebar__content ul .menu__item:hover{cursor:pointer;background:#3e5771}.sidebar__content ul .active{background:#3e5771}.sidebar__footer{display:flex;color:#f5f5f5;text-align:left;line-height:2.5em}.sidebar__footer ul{width:100%;font-size:.8em}.sidebar__footer ul li{padding:0 20px}.sidebar__footer ul li a,.sidebar__footer ul li span{color:#f5f5f5;display:block;font-weight:700;letter-spacing:.25em;text-transform:uppercase;width:100%}.sidebar__footer ul li:hover{cursor:pointer;background:#3e5771}.sidebar--collapsed{width:50px;overflow:hidden}.sidebar--collapsed .sidebar__header{transform:rotate(-90deg);-o-transform:rotate(-90deg);font-weight:700}.sidebar--collapsed .sidebar__header button{transform:rotate(90deg);-o-transform:rotate(90deg)}.sidebar--collapsed .sidebar__content,.sidebar--collapsed .sidebar__footer{display:none}.workspace{grid-area:workspace;flex:1}.workspace .workspace__header{max-height:4em;font-size:1em}.workspace .workspace__status{font-size:1em;position:fixed;right:5px;top:5px;width:40%;min-height:50px;padding:5px;border-radius:4px;z-index:10}.workspace .workspace__status-close{float:right;font-weight:700;font-size:x-large;cursor:pointer}.workspace .workspace__status--info{background:#fff;color:#333}.workspace .workspace__status--success{background:#9bc855;color:#fff}.workspace .workspace__status--warning{background:#ff9b32;color:#fff}.workspace .workspace__status--danger{background:#e6003c;color:#fff}.workspace .workspace__content{color:#333;background:#fff}.workspace .workspace__footer{height:4em;font-size:.8em}.shell{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr;grid-template-areas:"sidebar workspace";height:100vh}/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:FontAwesome;src:url(fontawesome-webfont.2b13baa7dd4f54c9.eot?v=4.7.0);src:url(fontawesome-webfont.2b13baa7dd4f54c9.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(fontawesome-webfont.e9955780856cf8aa.woff2?v=4.7.0) format("woff2"),url(fontawesome-webfont.cf011583fb81df9f.woff?v=4.7.0) format("woff"),url(fontawesome-webfont.8a7cb27d142e3e19.ttf?v=4.7.0) format("truetype"),url(fontawesome-webfont.da909aa098b0ee2d.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eeeeee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scaleY(-1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}