3 lines
31 KiB
JavaScript
3 lines
31 KiB
JavaScript
import{a as F,b as We,c as Ze,d as qe,q as Q,r as ee,s as Qe}from"./chunk-4YKLO6PP.js";import{C as Ne,G as Ce,Ga as Ue,Ha as ye,Ia as Fe,Ja as K,La as W,Oa as Z,Pa as S,Q as ke,Qa as A,Ra as Be,Sa as ze,Ta as He,Ua as Ve,Va as $e,Vc as Ke,Wa as Ge,Xa as Xe,Ya as _,Z as m,aa as h,c as Ae,da as v,db as U,ea as l,eb as Je,fa as E,fb as q,ga as fe,ia as xe,ja as he,ka as Le,kb as Ye,m as ue,q as j,qa as w,ua as Y,va as pe,ya as je,z as Ie}from"./chunk-COCHPIBX.js";import{a as L}from"./chunk-Q7L6LLAK.js";var B=class{_doc;constructor(t){this._doc=t}manager},te=(()=>{class n extends B{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(w))};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),oe=new v(""),Te=(()=>{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 te));this._plugins=o.slice().reverse();let s=e.find(i=>i instanceof te);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 m(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(l(oe),l(Y))};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),me="ng-app-id";function et(n){for(let t of n)t.remove()}function tt(n,t){let e=t.createElement("style");return e.textContent=n,e}function wt(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 ve(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var we=(()=>{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,wt(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,tt);r?.forEach(o=>this.addUsage(o,this.external,ve))}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&&(et(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])et(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,tt(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,ve(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(w),l(ye),l(W,8),l(K))};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),ge={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"},Re=/%COMP%/g;var nt="%COMP%",Rt=`_nghost-${nt}`,Mt=`_ngcontent-${nt}`,bt=!0,Dt=new v("",{factory:()=>bt});function _t(n){return Mt.replace(Re,n)}function Pt(n){return Rt.replace(Re,n)}function ot(n,t){return t.map(e=>e.replace(Re,n))}var Me=(()=>{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 z(e,i,c,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof ne?o.applyToHost(e):o instanceof H&&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,g=this.removeStylesOnCompDestroy,y=this.tracingService;switch(r.encapsulation){case Z.Emulated:s=new ne(a,d,r,this.appId,g,i,c,y);break;case Z.ShadowDom:return new re(a,e,r,i,c,this.nonce,y,d);case Z.ExperimentalIsolatedShadowDom:return new re(a,e,r,i,c,this.nonce,y);default:s=new H(a,d,r,g,i,c,y);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(Te),l(we),l(ye),l(Dt),l(w),l(Y),l(W),l(q,8))};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),z=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(ge[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(rt(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(rt(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 m(-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=ge[o];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let o=ge[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&(U.DashCase|U.Important)?t.style.setProperty(e,r,o&U.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&U.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=F().getGlobalEventTarget(this.doc,t),!t))throw new m(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 rt(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var re=class extends z{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=ot(r.id,d);for(let y of d){let T=document.createElement("style");i&&T.setAttribute("nonce",i),T.textContent=y,this.shadowRoot.appendChild(T)}let g=r.getExternalStyles?.();if(g)for(let y of g){let T=ve(y,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)}},H=class extends z{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?ot(a,d):d,this.styleUrls=r.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Je.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ne=class extends H{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=_t(d),this.hostAttr=Pt(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 se=class n extends Ze{supportsDOMEvents=!0;static makeCurrent(){We(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=St();return e==null?null:At(e)}resetBaseElement(){V=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Q(document.cookie,t)}},V=null;function St(){return V=V||document.head.querySelector("base"),V?V.getAttribute("href"):null}function At(n){return new URL(n,document.baseURI).pathname}var It=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||n)};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),st=["alt","control","meta","shift"],Nt={"\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"},Ct={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},ct=(()=>{class n extends B{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(()=>F().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."),st.forEach(d=>{let g=r.indexOf(d);g>-1&&(r.splice(g,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=Nt[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"),st.forEach(i=>{if(i!==o){let c=Ct[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(w))};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})();async function kt(n,t,e){let r=L({rootComponent:n},xt(t,e));return Ke(r)}function xt(n,t){return{platformRef:t?.platformRef,appProviders:[...Bt,...n?.providers??[]],platformProviders:Ft}}function Lt(){se.makeCurrent()}function jt(){return new pe}function Ut(){return Ue(document),document}var Ft=[{provide:K,useValue:Qe},{provide:Fe,useValue:Lt,multi:!0},{provide:w,useFactory:Ut}];var Bt=[{provide:xe,useValue:"root"},{provide:pe,useFactory:jt},{provide:oe,useClass:te,multi:!0},{provide:oe,useClass:ct,multi:!0},Me,we,Te,{provide:Ye,useExisting:Me},{provide:ee,useClass:It},[]];var b=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
`).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 ae=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()}},ce=class{encodeKey(t){return dt(t)}encodeValue(t){return dt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Ht(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 Vt=/%(\d[a-f0-9])/gi,$t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function dt(n){return encodeURIComponent(n).replace(Vt,(t,e)=>$t[e]??t)}function ie(n){return`${n}`}var M=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ce,t.fromString){if(t.fromObject)throw new m(2805,!1);this.map=Ht(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(ie):[ie(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(ie(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(ie(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 Gt(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function lt(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function ut(n){return typeof Blob<"u"&&n instanceof Blob}function ft(n){return typeof FormData<"u"&&n instanceof FormData}function Xt(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var ht="Content-Type",pt="Accept",yt="text/plain",mt="application/json",Jt=`${mt}, ${yt}, */*`,I=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(Gt(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 m(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 b,this.context??=new ae,!this.params)this.params=new M,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"||lt(this.body)||ut(this.body)||ft(this.body)||Xt(this.body)?this.body:this.body instanceof M?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||ft(this.body)?null:ut(this.body)?this.body.type||null:lt(this.body)?null:typeof this.body=="string"?yt:this.body instanceof M?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?mt: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,g=t.credentials||this.credentials,y=t.referrer||this.referrer,T=t.integrity||this.integrity,G=t.referrerPolicy||this.referrerPolicy,X=t.transferCache??this.transferCache,J=t.timeout??this.timeout,u=t.body!==void 0?t.body:this.body,f=t.withCredentials??this.withCredentials,R=t.reportProgress??this.reportProgress,O=t.headers||this.headers,p=t.params||this.params,k=t.context??this.context;return t.setHeaders!==void 0&&(O=Object.keys(t.setHeaders).reduce((x,D)=>x.set(D,t.setHeaders[D]),O)),t.setParams&&(p=Object.keys(t.setParams).reduce((x,D)=>x.set(D,t.setParams[D]),p)),new n(e,r,u,{params:p,headers:O,context:k,reportProgress:R,responseType:o,withCredentials:f,transferCache:X,keepalive:s,cache:c,priority:i,timeout:J,mode:a,redirect:d,credentials:g,referrer:y,integrity:T,referrerPolicy:G})}},P=(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})(P||{}),C=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,r="OK"){this.headers=t.headers||new b,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}},de=class n extends C{constructor(t={}){super(t)}type=P.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})}},$=class n extends C{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=P.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})}},N=class extends C{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}},Yt=200,Kt=204;var Wt=new v("");var Zt=/^\)\]\}',?\n/;var De=(()=>{class n{xhrFactory;tracingService=E(q,{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 m(-2800,!1);let r=this.xhrFactory;return ue(null).pipe(ke(()=>new Ae(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(pt)||i.setRequestHeader(pt,Jt),!e.headers.has(ht)){let u=e.detectContentTypeHeader();u!==null&&i.setRequestHeader(ht,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 b(i.getAllResponseHeaders()),R=i.responseURL||e.url;return a=new de({headers:f,status:i.status,statusText:u,url:R}),a},g=this.maybePropagateTrace(()=>{let{headers:u,status:f,statusText:R,url:O}=d(),p=null;f!==Kt&&(p=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=p?Yt:0);let k=f>=200&&f<300;if(e.responseType==="json"&&typeof p=="string"){let x=p;p=p.replace(Zt,"");try{p=p!==""?JSON.parse(p):null}catch(D){p=x,k&&(k=!1,p={error:D,text:p})}}k?(s.next(new $({body:p,headers:u,status:f,statusText:R,url:O||void 0})),s.complete()):s.error(new N({error:p,headers:u,status:f,statusText:R,url:O||void 0}))}),y=this.maybePropagateTrace(u=>{let{url:f}=d(),R=new N({error:u,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});s.error(R)}),T=y;e.timeout&&(T=this.maybePropagateTrace(u=>{let{url:f}=d(),R=new N({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:f||void 0});s.error(R)}));let G=!1,X=this.maybePropagateTrace(u=>{G||(s.next(d()),G=!0);let f={type:P.DownloadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),s.next(f)}),J=this.maybePropagateTrace(u=>{let f={type:P.UploadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),s.next(f)});return i.addEventListener("load",g),i.addEventListener("error",y),i.addEventListener("timeout",T),i.addEventListener("abort",y),e.reportProgress&&(i.addEventListener("progress",X),c!==null&&i.upload&&i.upload.addEventListener("progress",J)),i.send(c),s.next({type:P.Sent}),()=>{i.removeEventListener("error",y),i.removeEventListener("abort",y),i.removeEventListener("load",g),i.removeEventListener("timeout",T),e.reportProgress&&(i.removeEventListener("progress",X),c!==null&&i.upload&&i.upload.removeEventListener("progress",J)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||n)(l(ee))};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function qt(n,t){return t(n)}function Qt(n,t,e){return(r,o)=>Le(e,()=>t(r,s=>n(s,o)))}var _e=new v("",{factory:()=>[]}),gt=new v(""),vt=new v("",{factory:()=>!0});var Pe=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=h({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(De),o},providedIn:"root"})}return n})();var le=(()=>{class n{backend;injector;chain=null;pendingTasks=E(je);contributeToStability=E(vt);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_e),...this.injector.get(gt,[])]));this.chain=r.reduceRight((o,s)=>Qt(o,s,this.injector),qt)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Ce(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||n)(l(Pe),l(he))};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Oe=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=h({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(le),o},providedIn:"root"})}return n})();function be(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 Et=(()=>{class n{handler;constructor(e){this.handler=e}request(e,r,o={}){let s;if(e instanceof I)s=e;else{let a;o.headers instanceof b?a=o.headers:a=new b(o.headers);let d;o.params&&(o.params instanceof M?d=o.params:d=new M({fromObject:o.params})),s=new I(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=ue(s).pipe(Ne(a=>this.handler.handle(a)));if(e instanceof I||o.observe==="events")return i;let c=i.pipe(Ie(a=>a instanceof $));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(j(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new m(2806,!1);return a.body}));case"blob":return c.pipe(j(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new m(2807,!1);return a.body}));case"text":return c.pipe(j(a=>{if(a.body!==null&&typeof a.body!="string")throw new m(2808,!1);return a.body}));default:return c.pipe(j(a=>a.body))}case"response":return c;default:throw new m(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 M().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,be(o,r))}post(e,r,o={}){return this.request("POST",e,be(o,r))}put(e,r,o={}){return this.request("PUT",e,be(o,r))}static \u0275fac=function(r){return new(r||n)(l(Oe))};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var er=new v("",{factory:()=>!0}),tr="XSRF-TOKEN",rr=new v("",{factory:()=>tr}),nr="X-XSRF-TOKEN",or=new v("",{factory:()=>nr}),sr=(()=>{class n{cookieName=E(rr);doc=E(w);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Q(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Tt=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=h({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(sr),o},providedIn:"root"})}return n})();function ir(n,t){if(!E(er)||n.method==="GET"||n.method==="HEAD")return t(n);try{let o=E(qe).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=E(Tt).getToken(),r=E(or);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}var Se=(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})(Se||{});function ar(n,t){return{\u0275kind:n,\u0275providers:t}}function cr(...n){let t=[Et,le,{provide:Oe,useExisting:le},{provide:Pe,useFactory:()=>E(Wt,{optional:!0})??E(De)},{provide:_e,useValue:ir,multi:!0}];for(let e of n)t.push(...e.\u0275providers);return fe(t)}function dr(n){return ar(Se.Interceptors,n.map(t=>({provide:_e,useValue:t,multi:!0})))}var zn=(()=>{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(w))};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ur=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=h({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(fr),o},providedIn:"root"})}return n})(),fr=(()=>{class n extends ur{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case _.NONE:return r;case _.HTML:return A(r,"HTML")?S(r):Xe(this._doc,String(r)).toString();case _.STYLE:return A(r,"Style")?S(r):r;case _.SCRIPT:if(A(r,"Script"))return S(r);throw new m(5200,!1);case _.URL:return A(r,"URL")?S(r):Ge(String(r));case _.RESOURCE_URL:if(A(r,"ResourceURL"))return S(r);throw new m(5201,!1);default:throw new m(5202,!1)}}bypassSecurityTrustHtml(e){return Be(e)}bypassSecurityTrustStyle(e){return ze(e)}bypassSecurityTrustScript(e){return He(e)}bypassSecurityTrustUrl(e){return Ve(e)}bypassSecurityTrustResourceUrl(e){return $e(e)}static \u0275fac=function(r){return new(r||n)(l(w))};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{Me as a,kt as b,N as c,Et as d,cr as e,dr as f,zn as g,ur as h};
|