@skill-map/cli 0.61.5 → 0.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/cli/tutorial/sm-tutorial/references/_core.md +8 -1
  2. package/dist/cli/tutorial/sm-tutorial/references/_manifest.json +1 -11
  3. package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +1 -3
  4. package/dist/cli/tutorial/sm-tutorial/references/part-authoring.md +43 -76
  5. package/dist/cli/tutorial/sm-tutorial/references/part-plugins.md +14 -9
  6. package/dist/cli/tutorial/sm-tutorial/references/part-settings.md +10 -58
  7. package/dist/cli.js +1346 -479
  8. package/dist/index.js +368 -96
  9. package/dist/kernel/index.d.ts +232 -25
  10. package/dist/kernel/index.js +368 -96
  11. package/dist/migrations/001_initial.sql +18 -8
  12. package/dist/ui/{chunk-4N3NRZEH.js → chunk-276RLZR4.js} +1 -1
  13. package/dist/ui/{chunk-MGWGV4VD.js → chunk-34ZZDYNQ.js} +1 -1
  14. package/dist/ui/chunk-56CBK7LB.js +1 -0
  15. package/dist/ui/{chunk-OVVTCPBJ.js → chunk-7ANZW2OI.js} +1 -1
  16. package/dist/ui/chunk-BJ6X6WBO.js +4 -0
  17. package/dist/ui/{chunk-5SSKJ7AM.js → chunk-BOVJVOLH.js} +1 -1
  18. package/dist/ui/{chunk-GKQA75EF.js → chunk-CJURGJTN.js} +1 -1
  19. package/dist/ui/chunk-CM4YB7L4.js +2 -0
  20. package/dist/ui/{chunk-Q4PXVDJA.js → chunk-CZSLV6YD.js} +1 -1
  21. package/dist/ui/{chunk-7X3DZNG4.js → chunk-DLYJHLJX.js} +2 -2
  22. package/dist/ui/chunk-ECKRC6XD.js +1843 -0
  23. package/dist/ui/{chunk-JTCIY3SL.js → chunk-FC22ZJQZ.js} +1 -1
  24. package/dist/ui/{chunk-FRUHVCND.js → chunk-FYATUDAH.js} +1 -1
  25. package/dist/ui/chunk-HLHEDNSJ.js +3 -0
  26. package/dist/ui/chunk-IYC5ZW4L.js +2 -0
  27. package/dist/ui/{chunk-MBBJJEUX.js → chunk-JZ2YF7EL.js} +1 -1
  28. package/dist/ui/{chunk-HQ6M2HXK.js → chunk-LPDD2DHE.js} +1 -1
  29. package/dist/ui/{chunk-I52OQIZQ.js → chunk-NC3HOVDG.js} +1 -1
  30. package/dist/ui/{chunk-N6MUHKWR.js → chunk-UTRZTB6V.js} +1 -1
  31. package/dist/ui/chunk-VHEFRMK3.js +1 -0
  32. package/dist/ui/chunk-Y2Z26SRI.js +1 -0
  33. package/dist/ui/index.html +1 -1
  34. package/dist/ui/main-CBZBFVUW.js +4 -0
  35. package/migrations/001_initial.sql +18 -8
  36. package/package.json +2 -2
  37. package/dist/ui/chunk-6NYH7LND.js +0 -3
  38. package/dist/ui/chunk-7VUEZZFJ.js +0 -1
  39. package/dist/ui/chunk-AKKFFP7Y.js +0 -1
  40. package/dist/ui/chunk-L34EUS75.js +0 -2
  41. package/dist/ui/chunk-UTGLW5ON.js +0 -1843
  42. package/dist/ui/chunk-ZYPXVXYF.js +0 -4
  43. package/dist/ui/main-OTDMPZHD.js +0 -4
@@ -1,2 +1,2 @@
1
- import{a as G,b as ot,c as st,d as it,m as re,n as ne,o as at}from"./chunk-MGWGV4VD.js";import{$ as $e,Aa as qe,Ba as Qe,Ca as et,D as ze,Da as k,Ec as nt,H as g,Ia as $,Ja as tt,K as m,Ka as te,N as R,O as l,Oa as rt,P as v,Q as Ee,R as He,S as Te,T as Ve,_ as M,c as ge,ca as V,da as we,ha as Ge,i as ve,ma as Xe,n as H,na as Re,oa as Je,pa as q,qa as Q,ta as ee,u as Ue,ua as L,va as j,w as Fe,wa as Ye,xa as Ke,y as Be,ya as We,za as Ze}from"./chunk-ZYPXVXYF.js";import{a as x}from"./chunk-WCABR6TI.js";var X=class{_doc;constructor(t){this._doc=t}manager},oe=(()=>{class n extends X{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o,s){return e.addEventListener(r,o,s),()=>this.removeEventListener(e,r,o,s)}removeEventListener(e,r,o,s){return e.removeEventListener(r,o,s)}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ae=new R(""),Pe=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this});let o=e.filter(i=>!(i instanceof oe));this._plugins=o.slice().reverse();let s=e.find(i=>i instanceof oe);s&&this._plugins.push(s)}addEventListener(e,r,o,s){return this._findPluginFor(r).addEventListener(e,r,o,s)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(s=>s.supports(e)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(l(ae),l(V))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Me="ng-app-id";function ct(n){for(let t of n)t.remove()}function dt(n,t){let e=t.createElement("style");return e.textContent=n,e}function It(n,t,e,r){let o=n.head?.querySelectorAll(`style[${Me}="${t}"],link[${Me}="${t}"]`);if(o)for(let s of o)s.removeAttribute(Me),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function De(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Oe=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,s={}){this.doc=e,this.appId=r,this.nonce=o,It(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,dt);r?.forEach(o=>this.addUsage(o,this.external,De))}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,r,o){let s=r.get(e);s?s.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(ct(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ct(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,dt(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,De(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||n)(l(M),l(Re),l(Q,8),l(q))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Se=/%COMP%/g;var ut="%COMP%",Nt=`_nghost-${ut}`,Ct=`_ngcontent-${ut}`,kt=!0,xt=new R("",{factory:()=>kt});function Lt(n){return Ct.replace(Se,n)}function jt(n){return Nt.replace(Se,n)}function ft(n,t){return t.map(e=>e.replace(Se,n))}var Ae=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,o,s,i,c,a=null,d=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=a,this.tracingService=d,this.defaultRenderer=new J(e,i,c,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof ie?o.applyToHost(e):o instanceof Y&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let i=this.doc,c=this.ngZone,a=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.tracingService;switch(r.encapsulation){case ee.Emulated:s=new ie(a,d,r,this.appId,h,i,c,p);break;case ee.ShadowDom:return new se(a,e,r,i,c,this.nonce,p,d);case ee.ExperimentalIsolatedShadowDom:return new se(a,e,r,i,c,this.nonce,p);default:s=new Y(a,d,r,h,i,c,p);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||n)(l(Pe),l(Oe),l(Re),l(xt),l(M),l(V),l(Q),l(te,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),J=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,r,o){this.eventManager=t,this.doc=e,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(be[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(lt(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(lt(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){e.remove()}selectRootElement(t,e){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,!1);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,o){if(o){e=o+":"+e;let s=be[o];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let o=be[r];o?t.removeAttributeNS(o,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,o){o&($.DashCase|$.Important)?t.style.setProperty(e,r,o&$.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&$.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t!=null&&(t[e]=r)}setValue(t,e){t.nodeValue=e}listen(t,e,r,o){if(typeof t=="string"&&(t=G().getGlobalEventTarget(this.doc,t),!t))throw new g(5102,!1);let s=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(t,e,s)),this.eventManager.addEventListener(t,e,s,o)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;t(e)===!1&&e.preventDefault()}}};function lt(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var se=class extends J{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,r,o,s,i,c,a){super(t,o,s,c),this.hostEl=e,this.sharedStylesHost=a,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=ft(r.id,d);for(let p of d){let T=document.createElement("style");i&&T.setAttribute("nonce",i),T.textContent=p,this.shadowRoot.appendChild(T)}let h=r.getExternalStyles?.();if(h)for(let p of h){let T=De(p,o);i&&T.setAttribute("nonce",i),this.shadowRoot.appendChild(T)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Y=class extends J{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,o,s,i,c,a){super(t,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let d=r.styles;this.styles=a?ft(a,d):d,this.styleUrls=r.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&tt.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ie=class extends Y{contentAttr;hostAttr;constructor(t,e,r,o,s,i,c,a){let d=o+"-"+r.id;super(t,e,r,s,i,c,a,d),this.contentAttr=Lt(d),this.hostAttr=jt(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}};var ce=class n extends st{supportsDOMEvents=!0;static makeCurrent(){ot(new n)}onAndCancel(t,e,r,o){return t.addEventListener(e,r,o),()=>{t.removeEventListener(e,r,o)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Ft();return e==null?null:Bt(e)}resetBaseElement(){K=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return re(document.cookie,t)}},K=null;function Ft(){return K=K||document.head.querySelector("base"),K?K.getAttribute("href"):null}function Bt(n){return new URL(n,document.baseURI).pathname}var zt=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ht=["alt","control","meta","shift"],Ht={"\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"},Vt={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},mt=(()=>{class n extends X{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,o,s){let i=n.parseEventName(r),c=n.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>G().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=n._normalizeKey(r.pop()),i="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),i="code."),ht.forEach(d=>{let h=r.indexOf(d);h>-1&&(r.splice(h,1),i+=d+".")}),i+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=o,a.fullKey=i,a}static matchEventFullKeyCode(e,r){let o=Ht[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ht.forEach(i=>{if(i!==o){let c=Vt[i];c(e)&&(s+=i+".")}}),s+=o,s===r)}static eventCallback(e,r,o){return s=>{n.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>r(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();async function $t(n,t,e){let r=x({rootComponent:n},Gt(t,e));return nt(r)}function Gt(n,t){return{platformRef:t?.platformRef,appProviders:[...Wt,...n?.providers??[]],platformProviders:Kt}}function Xt(){ce.makeCurrent()}function Jt(){return new we}function Yt(){return Xe(document),document}var Kt=[{provide:q,useValue:at},{provide:Je,useValue:Xt,multi:!0},{provide:M,useFactory:Yt}];var Wt=[{provide:He,useValue:"root"},{provide:we,useFactory:Jt},{provide:ae,useClass:oe,multi:!0},{provide:ae,useClass:mt,multi:!0},Ae,Oe,Pe,{provide:rt,useExisting:Ae},{provide:ne,useClass:zt},[]];var D=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
2
- `).forEach(e=>{let r=e.indexOf(":");if(r>0){let o=e.slice(0,r),s=e.slice(r+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,e);let o=(t.op==="a"?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":let s=t.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>s.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(t,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var ue=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},fe=class{encodeKey(t){return gt(t)}encodeValue(t){return gt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function qt(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,c]=s==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var Qt=/%(\d[a-f0-9])/gi,er={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gt(n){return encodeURIComponent(n).replace(Qt,(t,e)=>er[e]??t)}function de(n){return`${n}`}var P=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new fe,t.fromString){if(t.fromObject)throw new g(2805,!1);this.map=qt(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let r=t.fromObject[e],o=Array.isArray(r)?r.map(de):[de(r)];this.map.set(e,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(de(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(de(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function tr(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vt(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Et(n){return typeof Blob<"u"&&n instanceof Blob}function Tt(n){return typeof FormData<"u"&&n instanceof FormData}function rr(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var W="Content-Type",he="Accept",wt="text/plain",Rt="application/json",Mt=`${Rt}, ${wt}, */*`,U=class n{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,r,o){this.url=e,this.method=t.toUpperCase();let s;if(tr(this.method)||o?(this.body=r!==void 0?r:null,s=o):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new g(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new D,this.context??=new ue,!this.params)this.params=new P,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vt(this.body)||Et(this.body)||Tt(this.body)||rr(this.body)?this.body:this.body instanceof P?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Tt(this.body)?null:Et(this.body)?this.body.type||null:vt(this.body)?null:typeof this.body=="string"?wt:this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Rt:null}clone(t={}){let e=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,s=t.keepalive??this.keepalive,i=t.priority||this.priority,c=t.cache||this.cache,a=t.mode||this.mode,d=t.redirect||this.redirect,h=t.credentials||this.credentials,p=t.referrer||this.referrer,T=t.integrity||this.integrity,N=t.referrerPolicy||this.referrerPolicy,C=t.transferCache??this.transferCache,E=t.timeout??this.timeout,u=t.body!==void 0?t.body:this.body,f=t.withCredentials??this.withCredentials,w=t.reportProgress??this.reportProgress,S=t.headers||this.headers,y=t.params||this.params,A=t.context??this.context;return t.setHeaders!==void 0&&(S=Object.keys(t.setHeaders).reduce((I,_)=>I.set(_,t.setHeaders[_]),S)),t.setParams&&(y=Object.keys(t.setParams).reduce((I,_)=>I.set(_,t.setParams[_]),y)),new n(e,r,u,{params:y,headers:S,context:A,reportProgress:w,responseType:o,withCredentials:f,transferCache:C,keepalive:s,cache:c,priority:i,timeout:E,mode:a,redirect:d,credentials:h,referrer:p,integrity:T,referrerPolicy:N})}},O=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(O||{}),F=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,r="OK"){this.headers=t.headers||new D,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Z=class n extends F{constructor(t={}){super(t)}type=O.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},B=class n extends F{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=O.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},b=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},bt=200,nr=204;var or=/^\)\]\}',?\n/,Dt=new R(""),le=(()=>{class n{fetchImpl=v(Ne,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=v(V);destroyRef=v($e);handle(e){return new ge(r=>{let o=new AbortController;this.doRequest(e,o.signal,r).then(Ce,i=>r.error(new b({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort()}})}async doRequest(e,r,o){let s=this.createRequestInit(e),i;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,x({signal:r},s)));sr(E),o.next({type:O.Sent}),i=await E}catch(E){o.error(new b({error:E,status:E.status??0,statusText:E.statusText,url:e.urlWithParams,headers:E.headers}));return}let c=new D(i.headers),a=i.statusText,d=i.url||e.urlWithParams,h=i.status,p=null;if(e.reportProgress&&o.next(new Z({headers:c,status:h,statusText:a,url:d})),i.body){let E=i.headers.get("content-length"),u=[],f=i.body.getReader(),w=0,S,y,A=typeof Zone<"u"&&Zone.current,I=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await f.cancel(),I=!0;break}let{done:z,value:me}=await f.read();if(z)break;if(u.push(me),w+=me.length,e.reportProgress){y=e.responseType==="text"?(y??"")+(S??=new TextDecoder).decode(me,{stream:!0}):void 0;let je=()=>o.next({type:O.DownloadProgress,total:E?+E:void 0,loaded:w,partialText:y});A?A.run(je):je()}}}),I){o.complete();return}let _=this.concatChunks(u,w);try{let z=i.headers.get(W)??"";p=this.parseBody(e,_,z,h)}catch(z){o.error(new b({error:z,headers:new D(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}h===0&&(h=p?bt:0);let T=h>=200&&h<300,N=i.redirected,C=i.type;T?(o.next(new B({body:p,headers:c,status:h,statusText:a,url:d,redirected:N,responseType:C})),o.complete()):o.error(new b({error:p,headers:c,status:h,statusText:a,url:d,redirected:N,responseType:C}))}parseBody(e,r,o,s){switch(e.responseType){case"json":let i=new TextDecoder().decode(r).replace(or,"");if(i==="")return null;try{return JSON.parse(i)}catch(c){if(s<200||s>=300)return i;throw c}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEach((s,i)=>r[s]=i.join(",")),e.headers.has(he)||(r[he]=Mt),!e.headers.has(W)){let s=e.detectContentTypeHeader();s!==null&&(r[W]=s)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,r){let o=new Uint8Array(r),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ne=class{};function Ce(){}function sr(n){n.then(Ce,Ce)}var ir=/^\)\]\}',?\n/;var ke=(()=>{class n{xhrFactory;tracingService=v(te,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new g(-2800,!1);let r=this.xhrFactory;return ve(null).pipe(ze(()=>new ge(s=>{let i=r.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((u,f)=>i.setRequestHeader(u,f.join(","))),e.headers.has(he)||i.setRequestHeader(he,Mt),!e.headers.has(W)){let u=e.detectContentTypeHeader();u!==null&&i.setRequestHeader(W,u)}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let u=e.responseType.toLowerCase();i.responseType=u!=="json"?u:"text"}let c=e.serializeBody(),a=null,d=()=>{if(a!==null)return a;let u=i.statusText||"OK",f=new D(i.getAllResponseHeaders()),w=i.responseURL||e.url;return a=new Z({headers:f,status:i.status,statusText:u,url:w}),a},h=this.maybePropagateTrace(()=>{let{headers:u,status:f,statusText:w,url:S}=d(),y=null;f!==nr&&(y=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=y?bt:0);let A=f>=200&&f<300;if(e.responseType==="json"&&typeof y=="string"){let I=y;y=y.replace(ir,"");try{y=y!==""?JSON.parse(y):null}catch(_){y=I,A&&(A=!1,y={error:_,text:y})}}A?(s.next(new B({body:y,headers:u,status:f,statusText:w,url:S||void 0})),s.complete()):s.error(new b({error:y,headers:u,status:f,statusText:w,url:S||void 0}))}),p=this.maybePropagateTrace(u=>{let{url:f}=d(),w=new b({error:u,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});s.error(w)}),T=p;e.timeout&&(T=this.maybePropagateTrace(u=>{let{url:f}=d(),w=new b({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:f||void 0});s.error(w)}));let N=!1,C=this.maybePropagateTrace(u=>{N||(s.next(d()),N=!0);let f={type:O.DownloadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),s.next(f)}),E=this.maybePropagateTrace(u=>{let f={type:O.UploadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),s.next(f)});return i.addEventListener("load",h),i.addEventListener("error",p),i.addEventListener("timeout",T),i.addEventListener("abort",p),e.reportProgress&&(i.addEventListener("progress",C),c!==null&&i.upload&&i.upload.addEventListener("progress",E)),i.send(c),s.next({type:O.Sent}),()=>{i.removeEventListener("error",p),i.removeEventListener("abort",p),i.removeEventListener("load",h),i.removeEventListener("timeout",T),e.reportProgress&&(i.removeEventListener("progress",C),c!==null&&i.upload&&i.upload.removeEventListener("progress",E)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||n)(l(ne))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ar(n,t){return t(n)}function cr(n,t,e){return(r,o)=>Ve(e,()=>t(r,s=>n(s,o)))}var _t=new R("",{factory:()=>[]}),Pt=new R(""),Ot=new R("",{factory:()=>!0});var ye=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(ke),o},providedIn:"root"})}return n})();var pe=(()=>{class n{backend;injector;chain=null;pendingTasks=v(Ge);contributeToStability=v(Ot);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_t),...this.injector.get(Pt,[])]));this.chain=r.reduceRight((o,s)=>cr(o,s,this.injector),ar)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Be(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||n)(l(ye),l(Te))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),xe=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(pe),o},providedIn:"root"})}return n})();function Ie(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,credentials:n.credentials,transferCache:n.transferCache,timeout:n.timeout,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,integrity:n.integrity,referrer:n.referrer,referrerPolicy:n.referrerPolicy}}var St=(()=>{class n{handler;constructor(e){this.handler=e}request(e,r,o={}){let s;if(e instanceof U)s=e;else{let a;o.headers instanceof D?a=o.headers:a=new D(o.headers);let d;o.params&&(o.params instanceof P?d=o.params:d=new P({fromObject:o.params})),s=new U(e,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let i=ve(s).pipe(Fe(a=>this.handler.handle(a)));if(e instanceof U||o.observe==="events")return i;let c=i.pipe(Ue(a=>a instanceof B));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(H(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new g(2806,!1);return a.body}));case"blob":return c.pipe(H(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new g(2807,!1);return a.body}));case"text":return c.pipe(H(a=>{if(a.body!==null&&typeof a.body!="string")throw new g(2808,!1);return a.body}));default:return c.pipe(H(a=>a.body))}case"response":return c;default:throw new g(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new P().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Ie(o,r))}post(e,r,o={}){return this.request("POST",e,Ie(o,r))}put(e,r,o={}){return this.request("PUT",e,Ie(o,r))}static \u0275fac=function(r){return new(r||n)(l(xe))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var dr=new R("",{factory:()=>!0}),lr="XSRF-TOKEN",ur=new R("",{factory:()=>lr}),fr="X-XSRF-TOKEN",hr=new R("",{factory:()=>fr}),pr=(()=>{class n{cookieName=v(ur);doc=v(M);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=re(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),At=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(pr),o},providedIn:"root"})}return n})();function yr(n,t){if(!v(dr)||n.method==="GET"||n.method==="HEAD")return t(n);try{let o=v(it).href,{origin:s}=new URL(o),{origin:i}=new URL(n.url,s);if(s!==i)return t(n)}catch{return t(n)}let e=v(At).getToken(),r=v(hr);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}var Le=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n})(Le||{});function mr(n,t){return{\u0275kind:n,\u0275providers:t}}function gr(...n){let t=[St,pe,{provide:xe,useExisting:pe},{provide:ye,useFactory:()=>v(Dt,{optional:!0})??v(ke)},{provide:_t,useValue:yr,multi:!0}];for(let e of n)t.push(...e.\u0275providers);return Ee(t)}function vr(){return mr(Le.Fetch,[le,{provide:Dt,useExisting:le},{provide:ye,useExisting:le}])}var Yn=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Tr=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(wr),o},providedIn:"root"})}return n})(),wr=(()=>{class n extends Tr{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case k.NONE:return r;case k.HTML:return j(r,"HTML")?L(r):et(this._doc,String(r)).toString();case k.STYLE:return j(r,"Style")?L(r):r;case k.SCRIPT:if(j(r,"Script"))return L(r);throw new g(5200,!1);case k.URL:return j(r,"URL")?L(r):Qe(String(r));case k.RESOURCE_URL:if(j(r,"ResourceURL"))return L(r);throw new g(5201,!1);default:throw new g(5202,!1)}}bypassSecurityTrustHtml(e){return Ye(e)}bypassSecurityTrustStyle(e){return Ke(e)}bypassSecurityTrustScript(e){return We(e)}bypassSecurityTrustUrl(e){return Ze(e)}bypassSecurityTrustResourceUrl(e){return qe(e)}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{$t as a,b,St as c,gr as d,vr as e,Yn as f,Tr as g};
1
+ import{a as G,b as ot,c as st,d as it,m as re,n as ne,o as at}from"./chunk-34ZZDYNQ.js";import{$ as $e,Aa as We,Ba as Ze,Ca as qe,D as ze,Da as Qe,Ea as et,Fa as k,H as g,Hc as nt,K as m,Ka as $,La as tt,Ma as te,N as R,O as l,P as v,Q as Ee,Qa as rt,R as He,S as Te,T as Ve,_ as M,c as ge,ca as V,da as we,i as ve,ia as Ge,n as H,na as Xe,oa as Re,pa as Je,qa as q,sa as Q,u as Ue,va as ee,w as Fe,wa as L,xa as j,y as Be,ya as Ye,za as Ke}from"./chunk-BJ6X6WBO.js";import{a as x}from"./chunk-WCABR6TI.js";var X=class{_doc;constructor(t){this._doc=t}manager},oe=(()=>{class n extends X{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o,s){return e.addEventListener(r,o,s),()=>this.removeEventListener(e,r,o,s)}removeEventListener(e,r,o,s){return e.removeEventListener(r,o,s)}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ae=new R(""),Pe=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this});let o=e.filter(i=>!(i instanceof oe));this._plugins=o.slice().reverse();let s=e.find(i=>i instanceof oe);s&&this._plugins.push(s)}addEventListener(e,r,o,s){return this._findPluginFor(r).addEventListener(e,r,o,s)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(s=>s.supports(e)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(l(ae),l(V))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Me="ng-app-id";function ct(n){for(let t of n)t.remove()}function dt(n,t){let e=t.createElement("style");return e.textContent=n,e}function It(n,t,e,r){let o=n.head?.querySelectorAll(`style[${Me}="${t}"],link[${Me}="${t}"]`);if(o)for(let s of o)s.removeAttribute(Me),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function De(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Oe=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,s={}){this.doc=e,this.appId=r,this.nonce=o,It(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,dt);r?.forEach(o=>this.addUsage(o,this.external,De))}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,r,o){let s=r.get(e);s?s.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(ct(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ct(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,dt(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,De(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||n)(l(M),l(Re),l(Q,8),l(q))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Se=/%COMP%/g;var ut="%COMP%",Nt=`_nghost-${ut}`,Ct=`_ngcontent-${ut}`,kt=!0,xt=new R("",{factory:()=>kt});function Lt(n){return Ct.replace(Se,n)}function jt(n){return Nt.replace(Se,n)}function ft(n,t){return t.map(e=>e.replace(Se,n))}var Ae=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,o,s,i,c,a=null,d=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=a,this.tracingService=d,this.defaultRenderer=new J(e,i,c,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof ie?o.applyToHost(e):o instanceof Y&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let i=this.doc,c=this.ngZone,a=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.tracingService;switch(r.encapsulation){case ee.Emulated:s=new ie(a,d,r,this.appId,h,i,c,p);break;case ee.ShadowDom:return new se(a,e,r,i,c,this.nonce,p,d);case ee.ExperimentalIsolatedShadowDom:return new se(a,e,r,i,c,this.nonce,p);default:s=new Y(a,d,r,h,i,c,p);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||n)(l(Pe),l(Oe),l(Re),l(xt),l(M),l(V),l(Q),l(te,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),J=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,r,o){this.eventManager=t,this.doc=e,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(be[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(lt(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(lt(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){e.remove()}selectRootElement(t,e){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,!1);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,o){if(o){e=o+":"+e;let s=be[o];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let o=be[r];o?t.removeAttributeNS(o,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,o){o&($.DashCase|$.Important)?t.style.setProperty(e,r,o&$.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&$.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t!=null&&(t[e]=r)}setValue(t,e){t.nodeValue=e}listen(t,e,r,o){if(typeof t=="string"&&(t=G().getGlobalEventTarget(this.doc,t),!t))throw new g(5102,!1);let s=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(t,e,s)),this.eventManager.addEventListener(t,e,s,o)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;t(e)===!1&&e.preventDefault()}}};function lt(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var se=class extends J{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,r,o,s,i,c,a){super(t,o,s,c),this.hostEl=e,this.sharedStylesHost=a,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=ft(r.id,d);for(let p of d){let T=document.createElement("style");i&&T.setAttribute("nonce",i),T.textContent=p,this.shadowRoot.appendChild(T)}let h=r.getExternalStyles?.();if(h)for(let p of h){let T=De(p,o);i&&T.setAttribute("nonce",i),this.shadowRoot.appendChild(T)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Y=class extends J{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,o,s,i,c,a){super(t,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let d=r.styles;this.styles=a?ft(a,d):d,this.styleUrls=r.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&tt.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ie=class extends Y{contentAttr;hostAttr;constructor(t,e,r,o,s,i,c,a){let d=o+"-"+r.id;super(t,e,r,s,i,c,a,d),this.contentAttr=Lt(d),this.hostAttr=jt(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}};var ce=class n extends st{supportsDOMEvents=!0;static makeCurrent(){ot(new n)}onAndCancel(t,e,r,o){return t.addEventListener(e,r,o),()=>{t.removeEventListener(e,r,o)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Ft();return e==null?null:Bt(e)}resetBaseElement(){K=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return re(document.cookie,t)}},K=null;function Ft(){return K=K||document.head.querySelector("base"),K?K.getAttribute("href"):null}function Bt(n){return new URL(n,document.baseURI).pathname}var zt=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ht=["alt","control","meta","shift"],Ht={"\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"},Vt={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},mt=(()=>{class n extends X{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,o,s){let i=n.parseEventName(r),c=n.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>G().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=n._normalizeKey(r.pop()),i="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),i="code."),ht.forEach(d=>{let h=r.indexOf(d);h>-1&&(r.splice(h,1),i+=d+".")}),i+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=o,a.fullKey=i,a}static matchEventFullKeyCode(e,r){let o=Ht[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ht.forEach(i=>{if(i!==o){let c=Vt[i];c(e)&&(s+=i+".")}}),s+=o,s===r)}static eventCallback(e,r,o){return s=>{n.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>r(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();async function $t(n,t,e){let r=x({rootComponent:n},Gt(t,e));return nt(r)}function Gt(n,t){return{platformRef:t?.platformRef,appProviders:[...Wt,...n?.providers??[]],platformProviders:Kt}}function Xt(){ce.makeCurrent()}function Jt(){return new we}function Yt(){return Xe(document),document}var Kt=[{provide:q,useValue:at},{provide:Je,useValue:Xt,multi:!0},{provide:M,useFactory:Yt}];var Wt=[{provide:He,useValue:"root"},{provide:we,useFactory:Jt},{provide:ae,useClass:oe,multi:!0},{provide:ae,useClass:mt,multi:!0},Ae,Oe,Pe,{provide:rt,useExisting:Ae},{provide:ne,useClass:zt},[]];var D=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
2
+ `).forEach(e=>{let r=e.indexOf(":");if(r>0){let o=e.slice(0,r),s=e.slice(r+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,e);let o=(t.op==="a"?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":let s=t.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>s.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(t,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var ue=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},fe=class{encodeKey(t){return gt(t)}encodeValue(t){return gt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function qt(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,c]=s==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var Qt=/%(\d[a-f0-9])/gi,er={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gt(n){return encodeURIComponent(n).replace(Qt,(t,e)=>er[e]??t)}function de(n){return`${n}`}var P=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new fe,t.fromString){if(t.fromObject)throw new g(2805,!1);this.map=qt(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let r=t.fromObject[e],o=Array.isArray(r)?r.map(de):[de(r)];this.map.set(e,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(de(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(de(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function tr(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vt(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Et(n){return typeof Blob<"u"&&n instanceof Blob}function Tt(n){return typeof FormData<"u"&&n instanceof FormData}function rr(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var W="Content-Type",he="Accept",wt="text/plain",Rt="application/json",Mt=`${Rt}, ${wt}, */*`,U=class n{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,r,o){this.url=e,this.method=t.toUpperCase();let s;if(tr(this.method)||o?(this.body=r!==void 0?r:null,s=o):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new g(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new D,this.context??=new ue,!this.params)this.params=new P,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vt(this.body)||Et(this.body)||Tt(this.body)||rr(this.body)?this.body:this.body instanceof P?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Tt(this.body)?null:Et(this.body)?this.body.type||null:vt(this.body)?null:typeof this.body=="string"?wt:this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Rt:null}clone(t={}){let e=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,s=t.keepalive??this.keepalive,i=t.priority||this.priority,c=t.cache||this.cache,a=t.mode||this.mode,d=t.redirect||this.redirect,h=t.credentials||this.credentials,p=t.referrer||this.referrer,T=t.integrity||this.integrity,N=t.referrerPolicy||this.referrerPolicy,C=t.transferCache??this.transferCache,E=t.timeout??this.timeout,u=t.body!==void 0?t.body:this.body,f=t.withCredentials??this.withCredentials,w=t.reportProgress??this.reportProgress,S=t.headers||this.headers,y=t.params||this.params,A=t.context??this.context;return t.setHeaders!==void 0&&(S=Object.keys(t.setHeaders).reduce((I,_)=>I.set(_,t.setHeaders[_]),S)),t.setParams&&(y=Object.keys(t.setParams).reduce((I,_)=>I.set(_,t.setParams[_]),y)),new n(e,r,u,{params:y,headers:S,context:A,reportProgress:w,responseType:o,withCredentials:f,transferCache:C,keepalive:s,cache:c,priority:i,timeout:E,mode:a,redirect:d,credentials:h,referrer:p,integrity:T,referrerPolicy:N})}},O=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(O||{}),F=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,r="OK"){this.headers=t.headers||new D,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Z=class n extends F{constructor(t={}){super(t)}type=O.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},B=class n extends F{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=O.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},b=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},bt=200,nr=204;var or=/^\)\]\}',?\n/,Dt=new R(""),le=(()=>{class n{fetchImpl=v(Ne,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=v(V);destroyRef=v($e);handle(e){return new ge(r=>{let o=new AbortController;this.doRequest(e,o.signal,r).then(Ce,i=>r.error(new b({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort()}})}async doRequest(e,r,o){let s=this.createRequestInit(e),i;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,x({signal:r},s)));sr(E),o.next({type:O.Sent}),i=await E}catch(E){o.error(new b({error:E,status:E.status??0,statusText:E.statusText,url:e.urlWithParams,headers:E.headers}));return}let c=new D(i.headers),a=i.statusText,d=i.url||e.urlWithParams,h=i.status,p=null;if(e.reportProgress&&o.next(new Z({headers:c,status:h,statusText:a,url:d})),i.body){let E=i.headers.get("content-length"),u=[],f=i.body.getReader(),w=0,S,y,A=typeof Zone<"u"&&Zone.current,I=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await f.cancel(),I=!0;break}let{done:z,value:me}=await f.read();if(z)break;if(u.push(me),w+=me.length,e.reportProgress){y=e.responseType==="text"?(y??"")+(S??=new TextDecoder).decode(me,{stream:!0}):void 0;let je=()=>o.next({type:O.DownloadProgress,total:E?+E:void 0,loaded:w,partialText:y});A?A.run(je):je()}}}),I){o.complete();return}let _=this.concatChunks(u,w);try{let z=i.headers.get(W)??"";p=this.parseBody(e,_,z,h)}catch(z){o.error(new b({error:z,headers:new D(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}h===0&&(h=p?bt:0);let T=h>=200&&h<300,N=i.redirected,C=i.type;T?(o.next(new B({body:p,headers:c,status:h,statusText:a,url:d,redirected:N,responseType:C})),o.complete()):o.error(new b({error:p,headers:c,status:h,statusText:a,url:d,redirected:N,responseType:C}))}parseBody(e,r,o,s){switch(e.responseType){case"json":let i=new TextDecoder().decode(r).replace(or,"");if(i==="")return null;try{return JSON.parse(i)}catch(c){if(s<200||s>=300)return i;throw c}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEach((s,i)=>r[s]=i.join(",")),e.headers.has(he)||(r[he]=Mt),!e.headers.has(W)){let s=e.detectContentTypeHeader();s!==null&&(r[W]=s)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,r){let o=new Uint8Array(r),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ne=class{};function Ce(){}function sr(n){n.then(Ce,Ce)}var ir=/^\)\]\}',?\n/;var ke=(()=>{class n{xhrFactory;tracingService=v(te,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new g(-2800,!1);let r=this.xhrFactory;return ve(null).pipe(ze(()=>new ge(s=>{let i=r.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((u,f)=>i.setRequestHeader(u,f.join(","))),e.headers.has(he)||i.setRequestHeader(he,Mt),!e.headers.has(W)){let u=e.detectContentTypeHeader();u!==null&&i.setRequestHeader(W,u)}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let u=e.responseType.toLowerCase();i.responseType=u!=="json"?u:"text"}let c=e.serializeBody(),a=null,d=()=>{if(a!==null)return a;let u=i.statusText||"OK",f=new D(i.getAllResponseHeaders()),w=i.responseURL||e.url;return a=new Z({headers:f,status:i.status,statusText:u,url:w}),a},h=this.maybePropagateTrace(()=>{let{headers:u,status:f,statusText:w,url:S}=d(),y=null;f!==nr&&(y=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=y?bt:0);let A=f>=200&&f<300;if(e.responseType==="json"&&typeof y=="string"){let I=y;y=y.replace(ir,"");try{y=y!==""?JSON.parse(y):null}catch(_){y=I,A&&(A=!1,y={error:_,text:y})}}A?(s.next(new B({body:y,headers:u,status:f,statusText:w,url:S||void 0})),s.complete()):s.error(new b({error:y,headers:u,status:f,statusText:w,url:S||void 0}))}),p=this.maybePropagateTrace(u=>{let{url:f}=d(),w=new b({error:u,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});s.error(w)}),T=p;e.timeout&&(T=this.maybePropagateTrace(u=>{let{url:f}=d(),w=new b({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:f||void 0});s.error(w)}));let N=!1,C=this.maybePropagateTrace(u=>{N||(s.next(d()),N=!0);let f={type:O.DownloadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),s.next(f)}),E=this.maybePropagateTrace(u=>{let f={type:O.UploadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),s.next(f)});return i.addEventListener("load",h),i.addEventListener("error",p),i.addEventListener("timeout",T),i.addEventListener("abort",p),e.reportProgress&&(i.addEventListener("progress",C),c!==null&&i.upload&&i.upload.addEventListener("progress",E)),i.send(c),s.next({type:O.Sent}),()=>{i.removeEventListener("error",p),i.removeEventListener("abort",p),i.removeEventListener("load",h),i.removeEventListener("timeout",T),e.reportProgress&&(i.removeEventListener("progress",C),c!==null&&i.upload&&i.upload.removeEventListener("progress",E)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||n)(l(ne))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ar(n,t){return t(n)}function cr(n,t,e){return(r,o)=>Ve(e,()=>t(r,s=>n(s,o)))}var _t=new R("",{factory:()=>[]}),Pt=new R(""),Ot=new R("",{factory:()=>!0});var ye=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(ke),o},providedIn:"root"})}return n})();var pe=(()=>{class n{backend;injector;chain=null;pendingTasks=v(Ge);contributeToStability=v(Ot);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_t),...this.injector.get(Pt,[])]));this.chain=r.reduceRight((o,s)=>cr(o,s,this.injector),ar)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Be(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||n)(l(ye),l(Te))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),xe=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(pe),o},providedIn:"root"})}return n})();function Ie(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,credentials:n.credentials,transferCache:n.transferCache,timeout:n.timeout,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,integrity:n.integrity,referrer:n.referrer,referrerPolicy:n.referrerPolicy}}var St=(()=>{class n{handler;constructor(e){this.handler=e}request(e,r,o={}){let s;if(e instanceof U)s=e;else{let a;o.headers instanceof D?a=o.headers:a=new D(o.headers);let d;o.params&&(o.params instanceof P?d=o.params:d=new P({fromObject:o.params})),s=new U(e,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let i=ve(s).pipe(Fe(a=>this.handler.handle(a)));if(e instanceof U||o.observe==="events")return i;let c=i.pipe(Ue(a=>a instanceof B));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(H(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new g(2806,!1);return a.body}));case"blob":return c.pipe(H(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new g(2807,!1);return a.body}));case"text":return c.pipe(H(a=>{if(a.body!==null&&typeof a.body!="string")throw new g(2808,!1);return a.body}));default:return c.pipe(H(a=>a.body))}case"response":return c;default:throw new g(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new P().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Ie(o,r))}post(e,r,o={}){return this.request("POST",e,Ie(o,r))}put(e,r,o={}){return this.request("PUT",e,Ie(o,r))}static \u0275fac=function(r){return new(r||n)(l(xe))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var dr=new R("",{factory:()=>!0}),lr="XSRF-TOKEN",ur=new R("",{factory:()=>lr}),fr="X-XSRF-TOKEN",hr=new R("",{factory:()=>fr}),pr=(()=>{class n{cookieName=v(ur);doc=v(M);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=re(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),At=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(pr),o},providedIn:"root"})}return n})();function yr(n,t){if(!v(dr)||n.method==="GET"||n.method==="HEAD")return t(n);try{let o=v(it).href,{origin:s}=new URL(o),{origin:i}=new URL(n.url,s);if(s!==i)return t(n)}catch{return t(n)}let e=v(At).getToken(),r=v(hr);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}var Le=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n})(Le||{});function mr(n,t){return{\u0275kind:n,\u0275providers:t}}function gr(...n){let t=[St,pe,{provide:xe,useExisting:pe},{provide:ye,useFactory:()=>v(Dt,{optional:!0})??v(ke)},{provide:_t,useValue:yr,multi:!0}];for(let e of n)t.push(...e.\u0275providers);return Ee(t)}function vr(){return mr(Le.Fetch,[le,{provide:Dt,useExisting:le},{provide:ye,useExisting:le}])}var Yn=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Tr=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(wr),o},providedIn:"root"})}return n})(),wr=(()=>{class n extends Tr{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case k.NONE:return r;case k.HTML:return j(r,"HTML")?L(r):et(this._doc,String(r)).toString();case k.STYLE:return j(r,"Style")?L(r):r;case k.SCRIPT:if(j(r,"Script"))return L(r);throw new g(5200,!1);case k.URL:return j(r,"URL")?L(r):Qe(String(r));case k.RESOURCE_URL:if(j(r,"ResourceURL"))return L(r);throw new g(5201,!1);default:throw new g(5202,!1)}}bypassSecurityTrustHtml(e){return Ye(e)}bypassSecurityTrustStyle(e){return Ke(e)}bypassSecurityTrustScript(e){return We(e)}bypassSecurityTrustUrl(e){return Ze(e)}bypassSecurityTrustResourceUrl(e){return qe(e)}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{Ae as a,$t as b,b as c,St as d,gr as e,vr as f,Yn as g,Tr as h};