import{E as he,F as pe,H as x,J as me,a as D,b as ue,c as le,d as f,l as fe}from"./chunk-E2GGCCQI.js";import{$a as W,Ab as E,Ad as N,Bb as S,Bd as j,Cb as Q,Db as ee,Ea as y,Eb as te,Fa as h,Fb as ne,Gb as re,Hb as oe,Ia as l,Ib as se,Ja as Y,Jb as g,La as A,Na as c,Nd as ce,Od as de,Pb as T,Ta as w,Wa as q,Wb as ie,Zb as v,a as L,b as G,lb as P,rb as X,sb as O,tb as J,ub as M,wb as k,yd as ae,zd as I}from"./chunk-V6BPA3D7.js";var B=class extends le{constructor(){super(...arguments),this.supportsDOMEvents=!0}},V=class o extends B{static makeCurrent(){ue(new o)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Ce();return e==null?null:Re(e)}resetBaseElement(){C=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fe(document.cookie,n)}},C=null;function Ce(){return C=C||document.querySelector("base"),C?C.getAttribute("href"):null}function Re(o){return new URL(o,document.baseURI).pathname}var $=class{addToWindow(n){h.getAngularTestability=(t,r=!0)=>{let s=n.findTestabilityInTree(t,r);if(s==null)throw new y(5103,!1);return s},h.getAllAngularTestabilities=()=>n.getAllTestabilities(),h.getAllAngularRootElements=()=>n.getAllRootElements();let e=t=>{let r=h.getAllAngularTestabilities(),s=r.length,i=function(){s--,s==0&&t()};r.forEach(a=>{a.whenStable(i)})};h.frameworkStabilizers||(h.frameworkStabilizers=[]),h.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,t){if(e==null)return null;let r=n.getTestability(e);return r??(t?D().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},be=(()=>{class o{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac})}}return o})(),z=new A(""),Ee=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||o)(c(z),c(v))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac})}}return o})(),_=class{constructor(n){this._doc=n}},U="ng-app-id",Se=(()=>{class o{constructor(e,t,r,s={}){this.doc=e,this.appId=t,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=x(s),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(r=>r.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${U}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(r=>{r.textContent!=null&&t.set(r.textContent,r)}),t}return null}changeUsageCount(e,t){let r=this.styleRef;if(r.has(e)){let s=r.get(e);return s.usage+=t,s.usage}return r.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let r=this.styleNodesInDOM,s=r?.get(t);if(s?.parentNode===e)return r.delete(t),s.removeAttribute(U),s;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=t,this.platformIsServer&&i.setAttribute(U,this.appId),e.appendChild(i),i}}addStyleToHost(e,t){let r=this.getStyleElement(e,t),s=this.styleRef,i=s.get(t)?.elements;i?i.push(r):s.set(t,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||o)(c(f),c(O),c(k,8),c(M))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac})}}return o})(),F={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/"},K=/%COMP%/g,we="%COMP%",Ae=`_nghost-${we}`,Oe=`_ngcontent-${we}`,Ie=!0,Ne=new A("",{providedIn:"root",factory:()=>Ie});function _e(o){return Oe.replace(K,o)}function He(o){return Ae.replace(K,o)}function Me(o,n){return n.map(e=>e.replace(K,o))}var ye=(()=>{class o{constructor(e,t,r,s,i,a,d,u=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=d,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=x(a),this.defaultRenderer=new R(e,i,d,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===w.ShadowDom&&(t=G(L({},t),{encapsulation:w.Emulated}));let r=this.getOrCreateRenderer(e,t);return r instanceof H?r.applyToHost(e):r instanceof b&&r.applyStyles(),r}getOrCreateRenderer(e,t){let r=this.rendererByCompId,s=r.get(t.id);if(!s){let i=this.doc,a=this.ngZone,d=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(t.encapsulation){case w.Emulated:s=new H(d,u,t,this.appId,p,i,a,m);break;case w.ShadowDom:return new Z(d,u,e,t,i,a,this.nonce,m);default:s=new b(d,u,t,p,i,a,m);break}r.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||o)(c(Ee),c(Se),c(O),c(Ne),c(f),c(M),c(v),c(k))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac})}}return o})(),R=class{constructor(n,e,t,r){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(F[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ge(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ge(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,r){if(r){e=r+":"+e;let s=F[r];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let r=F[t];r?n.removeAttributeNS(r,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,r){r&(T.DashCase|T.Important)?n.style.setProperty(e,t,r&T.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&T.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=D().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ge(o){return o.tagName==="TEMPLATE"&&o.content!==void 0}var Z=class extends R{constructor(n,e,t,r,s,i,a,d){super(n,s,i,d),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Me(r.id,r.styles);for(let p of u){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=p,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},b=class extends R{constructor(n,e,t,r,s,i,a,d){super(n,s,i,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=d?Me(d,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},H=class extends b{constructor(n,e,t,r,s,i,a,d){let u=r+"-"+t.id;super(n,e,t,s,i,a,d,u),this.contentAttr=_e(u),this.hostAttr=He(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Le=(()=>{class o extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}static{this.\u0275fac=function(t){return new(t||o)(c(f))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac})}}return o})(),ve=["alt","control","meta","shift"],Pe={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ke={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey},je=(()=>{class o extends _{constructor(e){super(e)}supports(e){return o.parseEventName(e)!=null}addEventListener(e,t,r){let s=o.parseEventName(t),i=o.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>D().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),r=t.shift();if(t.length===0||!(r==="keydown"||r==="keyup"))return null;let s=o._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),ve.forEach(u=>{let p=t.indexOf(u);p>-1&&(t.splice(p,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let r=Pe[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(r=e.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ve.forEach(i=>{if(i!==r){let a=ke[i];a(e)&&(s+=i+".")}}),s+=r,s===t)}static eventCallback(e,t,r){return s=>{o.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||o)(c(f))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac})}}return o})();function mt(o,n){return de(L({rootComponent:o},xe(n)))}function xe(o){return{appProviders:[...Te,...o?.providers??[]],platformProviders:Ve}}function Ue(){V.makeCurrent()}function Fe(){return new P}function Be(){return X(document),document}var Ve=[{provide:M,useValue:pe},{provide:J,useValue:Ue,multi:!0},{provide:f,useFactory:Be,deps:[]}];var $e=new A(""),ze=[{provide:I,useClass:$,deps:[]},{provide:ae,useClass:N,deps:[v,j,I]},{provide:N,useClass:N,deps:[v,j,I]}],Te=[{provide:W,useValue:"root"},{provide:P,useFactory:Fe,deps:[]},{provide:z,useClass:Le,multi:!0,deps:[f,v,M]},{provide:z,useClass:je,multi:!0,deps:[f]},ye,Se,Ee,{provide:ie,useExisting:ye},{provide:me,useClass:be,deps:[]},[]],yt=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:O,useValue:e.appId}]}}static{this.\u0275fac=function(t){return new(t||o)(c($e,12))}}static{this.\u0275mod=q({type:o})}static{this.\u0275inj=Y({providers:[...Te,...ze],imports:[he,ce]})}}return o})(),gt=(()=>{class o{constructor(e){this._doc=e,this._dom=D()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((r,s)=>(s&&r.push(this._getOrCreateElement(s,t)),r),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);let r=this.getTag(t);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){let i=this._parseSelector(e),a=this.getTags(i).filter(d=>this._containsAttributes(e,d))[0];if(a!==void 0)return a}let r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(r=>t.setAttribute(this._getMetaKeyMap(r),e[r])),t}_parseSelector(e){let t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(r=>t.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return Ze[e]||e}static{this.\u0275fac=function(t){return new(t||o)(c(f))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})(),Ze={httpEquiv:"http-equiv"},vt=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||o)(c(f))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Ke=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=l({token:o,factory:function(t){let r=null;return t?r=new(t||o):r=c(Ge),r},providedIn:"root"})}}return o})(),Ge=(()=>{class o extends Ke{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return S(t,"HTML")?E(t):se(this._doc,String(t)).toString();case g.STYLE:return S(t,"Style")?E(t):t;case g.SCRIPT:if(S(t,"Script"))return E(t);throw new y(5200,!1);case g.URL:return S(t,"URL")?E(t):oe(String(t));case g.RESOURCE_URL:if(S(t,"ResourceURL"))return E(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Q(e)}bypassSecurityTrustStyle(e){return ee(e)}bypassSecurityTrustScript(e){return te(e)}bypassSecurityTrustUrl(e){return ne(e)}bypassSecurityTrustResourceUrl(e){return re(e)}static{this.\u0275fac=function(t){return new(t||o)(c(f))}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{ye as a,mt as b,yt as c,gt as d,vt as e,Ke as f};