1import{d as h,u as E}from"./chunk-K3H6HK5I.js";import{Kd as a,Va as o,ka as n,pa as i}from"./chunk-7TO3YRUY.js";var c="private, no-store, no-cache, must-revalidate",t=function(r){return r[r.PERMANENT_REDIRECT=301]="PERMANENT_REDIRECT",r[r.TEMPORARY_REDIRECT=302]="TEMPORARY_REDIRECT",r[r.NOT_FOUND=404]="NOT_FOUND",r[r.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",r[r.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",r}(t||{}),T=(()=>{class r{response=i(a,{optional:!0});isPlatformServer=E(i(o));baseHref=i(h).getBaseHref().slice(0,-1);redirect(e,s){if(this.isPlatformServer&&this.response){this.response.status=s;let R=e.startsWith(this.baseHref)?e:this.baseHref+e;this.headers().set("Location",encodeURI(R)),this.preventCdnCache()}return this}permanentRedirect(e){return this.redirect(e,t.PERMANENT_REDIRECT)}temporaryRedirect(e){return this.redirect(e,t.TEMPORARY_REDIRECT)}setNotFound(e="Not Found"){return this.isPlatformServer&&this.response&&(this.response.status=t.NOT_FOUND,this.response.statusText=e,this.preventCdnCache()),this}setError(e="Internal Server Error"){return this.isPlatformServer&&this.response&&(this.response.status=t.INTERNAL_SERVER_ERROR,this.response.statusText=e,this.preventCdnCache()),this}setServiceUnavailable(e="Service Unavailable",s=120){return this.isPlatformServer&&this.response&&(this.response.status=t.SERVICE_UNAVAILABLE,this.response.statusText=e,this.headers().set("Retry-After",String(s)),this.preventCdnCache()),this}headers(){let e=this.response?.headers;if(e instanceof Headers)return e;let s=new Headers(e);return this.response&&(this.response.headers=s),s}preventCdnCache(){let e=this.headers();e.set("Cache-Control",c),e.set("CDN-Cache-Control","no-store"),e.set("Surrogate-Control","no-store")}static \u0275fac=function(s){return new(s||r)};static \u0275prov=n({token:r,factory:r.\u0275fac})}return r})();export{T as a}; 2/**i18n:3863e90172e9fd3c04c0dbbe3fd9c8612275b9268b9b4280ab0bb679a7810333*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.