import{e as ee}from"./chunk-CMCTAGIA.js";import{a as T,b as q,c as W,d as f,k as X,r as J,t as P,v as Q}from"./chunk-FMXXXVVG.js";import{Ba as N,Ia as g,N as b,Oa as z,Q as p,Ra as v,Rb as Y,Sb as G,T as A,V as u,Z as m,da as V,fa as $,ra as O,wa as K,xa as I,ya as Z,za as y}from"./chunk-MYCZEVHT.js";import{a as R,b as B}from"./chunk-YHOLSLLF.js";var k=class extends W{constructor(){super(...arguments),this.supportsDOMEvents=!0}},_=class s extends k{static makeCurrent(){q(new s)}onAndCancel(e,o,t){return e.addEventListener(o,t),()=>{e.removeEventListener(o,t)}}dispatchEvent(e,o){e.dispatchEvent(o)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,o){return o=o||this.getDefaultDocument(),o.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,o){return o==="window"?window:o==="document"?e:o==="body"?e.body:null}getBaseHref(e){let o=ue();return o==null?null:de(o)}resetBaseElement(){E=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return X(document.cookie,e)}},E=null;function ue(){return E=E||document.querySelector("base"),E?E.getAttribute("href"):null}function de(s){return new URL(s,document.baseURI).pathname}var le=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=p({token:e,factory:e.\u0275fac});let s=e;return s})(),j=new A(""),oe=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,r){return this._findPluginFor(n).addEventListener(t,n,r)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(i=>i.supports(t)),!n)throw new b(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(u(j),u(v))},e.\u0275prov=p({token:e,factory:e.\u0275fac});let s=e;return s})(),M=class{constructor(e){this._doc=e}},L="ng-app-id",se=(()=>{let e=class e{constructor(t,n,r,i={}){this.doc=t,this.appId=n,this.nonce=r,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=P(i),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(r=>r.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${L}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(r=>{r.textContent!=null&&n.set(r.textContent,r)}),n}return null}changeUsageCount(t,n){let r=this.styleRef;if(r.has(t)){let i=r.get(t);return i.usage+=n,i.usage}return r.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let r=this.styleNodesInDOM,i=r?.get(n);if(i?.parentNode===t)return r.delete(n),i.removeAttribute(L),i;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(L,this.appId),t.appendChild(a),a}}addStyleToHost(t,n){let r=this.getStyleElement(t,n),i=this.styleRef,a=i.get(n)?.elements;a?a.push(r):i.set(n,{elements:[r],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(u(f),u(I),u(N,8),u(y))},e.\u0275prov=p({token:e,factory:e.\u0275fac});let s=e;return s})(),H={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/"},F=/%COMP%/g,ie="%COMP%",fe=`_nghost-${ie}`,he=`_ngcontent-${ie}`,pe=!0,me=new A("",{providedIn:"root",factory:()=>pe});function ye(s){return he.replace(F,s)}function ge(s){return fe.replace(F,s)}function ae(s,e){return e.map(o=>o.replace(F,s))}var te=(()=>{let e=class e{constructor(t,n,r,i,a,c,d,l=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=i,this.doc=a,this.platformId=c,this.ngZone=d,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=P(c),this.defaultRenderer=new S(t,a,d,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===m.ShadowDom&&(n=B(R({},n),{encapsulation:m.Emulated}));let r=this.getOrCreateRenderer(t,n);return r instanceof C?r.applyToHost(t):r instanceof w&&r.applyStyles(),r}getOrCreateRenderer(t,n){let r=this.rendererByCompId,i=r.get(n.id);if(!i){let a=this.doc,c=this.ngZone,d=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,D=this.platformIsServer;switch(n.encapsulation){case m.Emulated:i=new C(d,l,n,this.appId,h,a,c,D);break;case m.ShadowDom:return new x(d,l,t,n,a,c,this.nonce,D);default:i=new w(d,l,n,h,a,c,D);break}r.set(n.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(u(oe),u(se),u(I),u(me),u(f),u(y),u(v),u(N))},e.\u0275prov=p({token:e,factory:e.\u0275fac});let s=e;return s})(),S=class{constructor(e,o,t,n){this.eventManager=e,this.doc=o,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,o){return o?this.doc.createElementNS(H[o]||o,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,o){(ne(e)?e.content:e).appendChild(o)}insertBefore(e,o,t){e&&(ne(e)?e.content:e).insertBefore(o,t)}removeChild(e,o){e&&e.removeChild(o)}selectRootElement(e,o){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new b(-5104,!1);return o||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,o,t,n){if(n){o=n+":"+o;let r=H[n];r?e.setAttributeNS(r,o,t):e.setAttribute(o,t)}else e.setAttribute(o,t)}removeAttribute(e,o,t){if(t){let n=H[t];n?e.removeAttributeNS(n,o):e.removeAttribute(`${t}:${o}`)}else e.removeAttribute(o)}addClass(e,o){e.classList.add(o)}removeClass(e,o){e.classList.remove(o)}setStyle(e,o,t,n){n&(g.DashCase|g.Important)?e.style.setProperty(o,t,n&g.Important?"important":""):e.style[o]=t}removeStyle(e,o,t){t&g.DashCase?e.style.removeProperty(o):e.style[o]=""}setProperty(e,o,t){e!=null&&(e[o]=t)}setValue(e,o){e.nodeValue=o}listen(e,o,t){if(typeof e=="string"&&(e=T().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${o}`);return this.eventManager.addEventListener(e,o,this.decoratePreventDefault(t))}decoratePreventDefault(e){return o=>{if(o==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(o)):e(o))===!1&&o.preventDefault()}}};function ne(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var x=class extends S{constructor(e,o,t,n,r,i,a,c){super(e,r,i,c),this.sharedStylesHost=o,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=ae(n.id,n.styles);for(let l of d){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=l,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,o){return super.appendChild(this.nodeOrShadowRoot(e),o)}insertBefore(e,o,t){return super.insertBefore(this.nodeOrShadowRoot(e),o,t)}removeChild(e,o){return super.removeChild(this.nodeOrShadowRoot(e),o)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},w=class extends S{constructor(e,o,t,n,r,i,a,c){super(e,r,i,a),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=n,this.styles=c?ae(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},C=class extends w{constructor(e,o,t,n,r,i,a,c){let d=n+"-"+t.id;super(e,o,t,r,i,a,c,d),this.contentAttr=ye(d),this.hostAttr=ge(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,o){let t=super.createElement(e,o);return super.setAttribute(t,this.contentAttr,""),t}},ve=(()=>{let e=class e extends M{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,r){return t.addEventListener(n,r,!1),()=>this.removeEventListener(t,n,r)}removeEventListener(t,n,r){return t.removeEventListener(n,r)}};e.\u0275fac=function(n){return new(n||e)(u(f))},e.\u0275prov=p({token:e,factory:e.\u0275fac});let s=e;return s})(),re=["alt","control","meta","shift"],Ee={"\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"},Se={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},we=(()=>{let e=class e extends M{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r){let i=e.parseEventName(n),a=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>T().onAndCancel(t,i.domEventName,a))}static parseEventName(t){let n=t.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let i=e._normalizeKey(n.pop()),a="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),a="code."),re.forEach(l=>{let h=n.indexOf(l);h>-1&&(n.splice(h,1),a+=l+".")}),a+=i,n.length!=0||i.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(t,n){let r=Ee[t.key]||t.key,i="";return n.indexOf("code.")>-1&&(r=t.code,i="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),re.forEach(a=>{if(a!==r){let c=Se[a];c(t)&&(i+=a+".")}}),i+=r,i===n)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(u(f))},e.\u0275prov=p({token:e,factory:e.\u0275fac});let s=e;return s})();function pt(s,e){return Y(R({rootComponent:s},Te(e)))}function Te(s){return{appProviders:[...be,...s?.providers??[]],platformProviders:Re}}function Me(){_.makeCurrent()}function Ce(){return new O}function De(){return K(document),document}var Re=[{provide:y,useValue:J},{provide:Z,useValue:Me,multi:!0},{provide:f,useFactory:De,deps:[]}];var be=[{provide:$,useValue:"root"},{provide:O,useFactory:Ce,deps:[]},{provide:j,useClass:ve,multi:!0,deps:[f,v,y]},{provide:j,useClass:we,multi:!0,deps:[f]},te,se,oe,{provide:z,useExisting:te},{provide:Q,useClass:le,deps:[]},[]];var mt=(()=>{let e=class e{constructor(t){this._doc=t,this._dom=T()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((r,i)=>(i&&r.push(this._getOrCreateElement(i,n)),r),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let r=this.getTag(n);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let a=this._parseSelector(t),c=this.getTags(a).filter(d=>this._containsAttributes(t,d))[0];if(c!==void 0)return c}let r=this._dom.createElement("meta");return this._setMetaElementAttributes(t,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),t[r])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}="${t[n]}"`}_containsAttributes(t,n){return Object.keys(t).every(r=>n.getAttribute(this._getMetaKeyMap(r))===t[r])}_getMetaKeyMap(t){return Ae[t]||t}};e.\u0275fac=function(n){return new(n||e)(u(f))},e.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Ae={httpEquiv:"http-equiv"},yt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(u(f))},e.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var U=function(s){return s[s.NoHttpTransferCache=0]="NoHttpTransferCache",s[s.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",s}(U||{});function gt(...s){let e=[],o=new Set,t=o.has(U.HttpTransferCacheOptions);for(let{\u0275providers:n,\u0275kind:r}of s)o.add(r),n.length&&e.push(n);return V([[],G(),o.has(U.NoHttpTransferCache)||t?[]:ee({}),e])}export{te as a,pt as b,mt as c,yt as d,gt as e};