-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-KUIU3T4D.js
2 lines (2 loc) · 32.3 KB
/
chunk-KUIU3T4D.js
1
2
import{$ as h,E as Q,N as _e,Qa as Pe,R as $,Sa as E,T as Se,Ta as ie,V as y,W as ee,Wa as z,Xa as V,Y as w,_ as p,aa as Te,c as J,da as Ie,ea as Re,eb as se,f as Ce,fb as R,ga as Me,gb as Oe,j as Ae,k as q,lc as oe,mc as Be,na as te,nc as ke,o as L,pa as ne,pb as Le,qb as Ne,ta as j,tc as ae,x as be,xa as re,z as ve}from"./chunk-GR3MIE2K.js";import{a as H,d as U}from"./chunk-4CLCTAJ7.js";var Ge=null;function ue(){return Ge}function Tn(t){Ge??=t}var xe=class{};var Y=new w(""),Ye=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>h(lt),providedIn:"platform"})}return t})();var lt=(()=>{class t extends Ye{_location;_history;_doc=h(Y);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ue().getBaseHref(this._doc)}onPopState(e){let n=ue().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=ue().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function We(t,r){if(t.length==0)return r;if(r.length==0)return t;let e=0;return t.endsWith("/")&&e++,r.startsWith("/")&&e++,e==2?t+r.substring(1):e==1?t+r:t+"/"+r}function Ue(t){let r=t.match(/#|\?|$/),e=r&&r.index||t.length,n=e-(t[e-1]==="/"?1:0);return t.slice(0,n)+t.slice(e)}function T(t){return t&&t[0]!=="?"?"?"+t:t}var ge=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>h(ht),providedIn:"root"})}return t})(),dt=new w(""),ht=(()=>{class t extends ge{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??h(Y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return We(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+T(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,s){let o=this.prepareExternalUrl(i+T(s));this._platformLocation.pushState(e,n,o)}replaceState(e,n,i,s){let o=this.prepareExternalUrl(i+T(s));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(p(Ye),p(dt,8))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ft=(()=>{class t{_subject=new Ce;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=pt(Ue($e(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+T(n))}normalize(e){return t.stripTrailingSlash(Dt(this._basePath,$e(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+T(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+T(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=T;static joinWithSlash=We;static stripTrailingSlash=Ue;static \u0275fac=function(n){return new(n||t)(p(ge))};static \u0275prov=y({token:t,factory:()=>gt(),providedIn:"root"})}return t})();function gt(){return new ft(p(ge))}function Dt(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function $e(t){return t.replace(/\/index.html$/,"")}function pt(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function Ze(t,r){r=encodeURIComponent(r);for(let e of t.split(";")){let n=e.indexOf("="),[i,s]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===r)return decodeURIComponent(s)}return null}var ce=/\s+/,je=[],In=(()=>{class t{_ngEl;_renderer;initialClasses=je;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(ce):je}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(ce):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],i=e[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(ce).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||t)(E(j),E(z))};static \u0275dir=R({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var le=class{$implicit;ngForOf;index;count;constructor(r,e,n,i){this.$implicit=r,this.ngForOf=e,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Rn=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,i){this._viewContainer=e,this._template=n,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((i,s,o)=>{if(i.previousIndex==null)n.createEmbeddedView(this._template,new le(i.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let u=n.get(s);n.move(u,o),ze(u,i)}});for(let i=0,s=n.length;i<s;i++){let u=n.get(i).context;u.index=i,u.count=s,u.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{let s=n.get(i.currentIndex);ze(s,i)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(E(V),E(ie),E(Be))};static \u0275dir=R({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function ze(t,r){t.context.$implicit=r.item}var Mn=(()=>{class t{_viewContainer;_context=new de;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ve("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ve("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(E(V),E(ie))};static \u0275dir=R({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),de=class{$implicit=null;ngIf=null};function Ve(t,r){if(!!!(!r||r.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Se(r)}'.`)}var Pn=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,i){this._ngEl=e,this._differs=n,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[i,s]=e.split("."),o=i.indexOf("-")===-1?void 0:Pe.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,i,o)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(E(j),E(ke),E(z))};static \u0275dir=R({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),On=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(e,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||t)(E(V))};static \u0275dir=R({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Me]})}return t})();function mt(t,r){return new $(2100,!1)}var he=class{createSubscription(r,e){return ae(()=>r.subscribe({next:e,error:n=>{throw n}}))}dispose(r){ae(()=>r.unsubscribe())}},fe=class{createSubscription(r,e){return r.then(e,n=>{throw n})}dispose(r){}},yt=new fe,Et=new he,Ln=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Le(e))return yt;if(Ne(e))return Et;throw mt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(E(oe,16))};static \u0275pipe=Oe({name:"async",type:t,pure:!1})}return t})();var Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=se({type:t});static \u0275inj=ee({})}return t})(),wt="browser",Ft="server";function Bn(t){return t===wt}function Ct(t){return t===Ft}var G=class{};var B=class{},Z=class{},F=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),s=e.slice(n+1).trim();this.addHeaderEntry(i,s)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let s=r.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(u=>s.indexOf(u)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var pe=class{encodeKey(r){return Ke(r)}encodeValue(r){return Ke(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function bt(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,u]=s==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,s)),r.decodeValue(i.slice(s+1))],a=e.get(o)||[];a.push(u),e.set(o,a)}),e}var vt=/%(\d[a-f0-9])/gi,_t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ke(t){return encodeURIComponent(t).replace(vt,(r,e)=>_t[e]??r)}function W(t){return`${t}`}var b=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new pe,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bt(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(W):[W(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(W(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(W(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var me=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function St(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Xe(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function He(t){return typeof Blob<"u"&&t instanceof Blob}function Je(t){return typeof FormData<"u"&&t instanceof FormData}function Tt(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var N=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let s;if(St(this.method)||i?(this.body=n!==void 0?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new F,this.context??=new me,!this.params)this.params=new b,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let u=e.indexOf("?"),a=u===-1?"?":u<e.length-1?"&":"";this.urlWithParams=e+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Xe(this.body)||He(this.body)||Je(this.body)||Tt(this.body)?this.body:this.body instanceof b?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||Je(this.body)?null:He(this.body)?this.body.type||null:Xe(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof b?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,s=r.transferCache??this.transferCache,o=r.body!==void 0?r.body:this.body,u=r.withCredentials??this.withCredentials,a=r.reportProgress??this.reportProgress,g=r.headers||this.headers,D=r.params||this.params,m=r.context??this.context;return r.setHeaders!==void 0&&(g=Object.keys(r.setHeaders).reduce((_,d)=>_.set(d,r.setHeaders[d]),g)),r.setParams&&(D=Object.keys(r.setParams).reduce((_,d)=>_.set(d,r.setParams[d]),D)),new t(e,n,o,{params:D,headers:g,context:m,reportProgress:a,responseType:i,withCredentials:u,transferCache:s})}},v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(v||{}),k=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new F,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},K=class t extends k{constructor(r={}){super(r)}type=v.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},x=class t extends k{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=v.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},A=class extends k{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},nt=200,It=204;function De(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Rt=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let s;if(e instanceof N)s=e;else{let a;i.headers instanceof F?a=i.headers:a=new F(i.headers);let g;i.params&&(i.params instanceof b?g=i.params:g=new b({fromObject:i.params})),s=new N(e,n,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:g,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let o=q(s).pipe(ve(a=>this.handler.handle(a)));if(e instanceof N||i.observe==="events")return o;let u=o.pipe(be(a=>a instanceof x));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(L(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return u.pipe(L(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return u.pipe(L(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return u.pipe(L(a=>a.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new b().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,De(i,n))}post(e,n,i={}){return this.request("POST",e,De(i,n))}put(e,n,i={}){return this.request("PUT",e,De(i,n))}static \u0275fac=function(n){return new(n||t)(p(B))};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),Mt=/^\)\]\}',?\n/,Pt="X-Request-URL";function qe(t){if(t.url)return t.url;let r=Pt.toLocaleLowerCase();return t.headers.get(r)}var Ot=(()=>{class t{fetchImpl=h(ye,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=h(ne);handle(e){return new J(n=>{let i=new AbortController;return this.doRequest(e,i.signal,n).then(Ee,s=>n.error(new A({error:s}))),()=>i.abort()})}doRequest(e,n,i){return U(this,null,function*(){let s=this.createRequestInit(e),o;try{let d=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,H({signal:n},s)));Lt(d),i.next({type:v.Sent}),o=yield d}catch(d){i.error(new A({error:d,status:d.status??0,statusText:d.statusText,url:e.urlWithParams,headers:d.headers}));return}let u=new F(o.headers),a=o.statusText,g=qe(o)??e.urlWithParams,D=o.status,m=null;if(e.reportProgress&&i.next(new K({headers:u,status:D,statusText:a,url:g})),o.body){let d=o.headers.get("content-length"),M=[],c=o.body.getReader(),l=0,C,I,f=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>U(this,null,function*(){for(;;){let{done:S,value:O}=yield c.read();if(S)break;if(M.push(O),l+=O.length,e.reportProgress){I=e.responseType==="text"?(I??"")+(C??=new TextDecoder).decode(O,{stream:!0}):void 0;let Fe=()=>i.next({type:v.DownloadProgress,total:d?+d:void 0,loaded:l,partialText:I});f?f.run(Fe):Fe()}}}));let P=this.concatChunks(M,l);try{let S=o.headers.get("Content-Type")??"";m=this.parseBody(e,P,S)}catch(S){i.error(new A({error:S,headers:new F(o.headers),status:o.status,statusText:o.statusText,url:qe(o)??e.urlWithParams}));return}}D===0&&(D=m?nt:0),D>=200&&D<300?(i.next(new x({body:m,headers:u,status:D,statusText:a,url:g})),i.complete()):i.error(new A({error:m,headers:u,status:D,statusText:a,url:g}))})}parseBody(e,n,i){switch(e.responseType){case"json":let s=new TextDecoder().decode(n).replace(Mt,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:i});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},i=e.withCredentials?"include":void 0;if(e.headers.forEach((s,o)=>n[s]=o.join(",")),e.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let s=e.detectContentTypeHeader();s!==null&&(n["Content-Type"]=s)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:i}}concatChunks(e,n){let i=new Uint8Array(n),s=0;for(let o of e)i.set(o,s),s+=o.length;return i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),ye=class{};function Ee(){}function Lt(t){t.then(Ee,Ee)}function rt(t,r){return r(t)}function Nt(t,r){return(e,n)=>r.intercept(e,{handle:i=>t(i,n)})}function Bt(t,r,e){return(n,i)=>Re(e,()=>r(n,s=>t(s,i)))}var kt=new w(""),we=new w(""),xt=new w(""),it=new w("",{providedIn:"root",factory:()=>!0});function Ut(){let t=null;return(r,e)=>{t===null&&(t=(h(kt,{optional:!0})??[]).reduceRight(Nt,rt));let n=h(te);if(h(it)){let s=n.add();return t(r,e).pipe(Q(()=>n.remove(s)))}else return t(r,e)}}var Qe=(()=>{class t extends B{backend;injector;chain=null;pendingTasks=h(te);contributeToStability=h(it);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(we),...this.injector.get(xt,[])]));this.chain=n.reduceRight((i,s)=>Bt(i,s,this.injector),rt)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Q(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(p(Z),p(Ie))};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})();var $t=/^\)\]\}',?\n/;function jt(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var et=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new $(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Ae(n.\u0275loadImpl()):q(null)).pipe(_e(()=>new J(s=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let c=e.detectContentTypeHeader();c!==null&&o.setRequestHeader("Content-Type",c)}if(e.responseType){let c=e.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let u=e.serializeBody(),a=null,g=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new F(o.getAllResponseHeaders()),C=jt(o)||e.url;return a=new K({headers:l,status:o.status,statusText:c,url:C}),a},D=()=>{let{headers:c,status:l,statusText:C,url:I}=g(),f=null;l!==It&&(f=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=f?nt:0);let P=l>=200&&l<300;if(e.responseType==="json"&&typeof f=="string"){let S=f;f=f.replace($t,"");try{f=f!==""?JSON.parse(f):null}catch(O){f=S,P&&(P=!1,f={error:O,text:f})}}P?(s.next(new x({body:f,headers:c,status:l,statusText:C,url:I||void 0})),s.complete()):s.error(new A({error:f,headers:c,status:l,statusText:C,url:I||void 0}))},m=c=>{let{url:l}=g(),C=new A({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});s.error(C)},_=!1,d=c=>{_||(s.next(g()),_=!0);let l={type:v.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),e.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),s.next(l)},M=c=>{let l={type:v.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),s.next(l)};return o.addEventListener("load",D),o.addEventListener("error",m),o.addEventListener("timeout",m),o.addEventListener("abort",m),e.reportProgress&&(o.addEventListener("progress",d),u!==null&&o.upload&&o.upload.addEventListener("progress",M)),o.send(u),s.next({type:v.Sent}),()=>{o.removeEventListener("error",m),o.removeEventListener("abort",m),o.removeEventListener("load",D),o.removeEventListener("timeout",m),e.reportProgress&&(o.removeEventListener("progress",d),u!==null&&o.upload&&o.upload.removeEventListener("progress",M)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(p(G))};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),st=new w(""),zt="XSRF-TOKEN",Vt=new w("",{providedIn:"root",factory:()=>zt}),Gt="X-XSRF-TOKEN",Yt=new w("",{providedIn:"root",factory:()=>Gt}),X=class{},Wt=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n,i){this.doc=e,this.platform=n,this.cookieName=i}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ze(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(p(Y),p(re),p(Vt))};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})();function Zt(t,r){let e=t.url.toLowerCase();if(!h(st)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=h(X).getToken(),i=h(Yt);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var ot=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ot||{});function Kt(t,r){return{\u0275kind:t,\u0275providers:r}}function Qn(...t){let r=[Rt,et,Qe,{provide:B,useExisting:Qe},{provide:Z,useFactory:()=>h(Ot,{optional:!0})??h(et)},{provide:we,useValue:Zt,multi:!0},{provide:st,useValue:!0},{provide:X,useClass:Wt}];for(let e of t)r.push(...e.\u0275providers);return Te(r)}var tt=new w("");function er(){return Kt(ot.LegacyInterceptors,[{provide:tt,useFactory:Ut},{provide:we,useExisting:tt,multi:!0}])}export{ue as a,Tn as b,xe as c,Y as d,ge as e,ft as f,Ze as g,In as h,Rn as i,Mn as j,Pn as k,On as l,Ln as m,Nn as n,wt as o,Bn as p,Ct as q,G as r,Rt as s,Qn as t,er as u};