vendor: 4,199 bytes, lines 1-2
1import{$a as ut,A as We,Ba as nt,C as Ze,Ca as Y,Da as rt,Ea as _,Ga as Pe,H as qe,Ha as L,Hc as vt,I as Te,Ia as x,Ic as Tt,Ja as st,K as Ke,Ka as ot,Kc as ne,La as it,Lc as re,Ma as at,N as Ye,Na as ct,Oa as lt,P as we,Pa as dt,Qa as C,R as E,S as P,U as y,Ua as $,V as Ee,W as T,X as l,Y as v,a as S,aa as z,ac as ht,b as K,bc as H,ca as Re,cc as Q,dc as De,ea as He,fa as be,g as me,ga as Qe,ha as et,hc as ft,i as ye,ia as tt,jc as pt,k as ge,kc as mt,n as Ge,o as ve,p as Je,q as B,rc as ee,sc as yt,ta as Me,tc as gt,uc as w,va as R,wa as Se,wc as te}from"./chunk-6ER5EEDF.js";var X=class{},oe=class{},b=class r{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` 2`).forEach(e=>{let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),o=s.toLowerCase(),i=e.slice(n+1).trim();this.maybeSetNormalizedName(s,o),this.headers.has(o)?this.headers.get(o).push(i):this.headers.set(o,[i])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}: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 r?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 r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?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 n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let s=(t.op==="a"?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>o.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),s=t.toLowerCase();this.headers.set(s,n),this.maybeSetNormalizedName(t,s)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var Ie=class{encodeKey(t){return wt(t)}encodeValue(t){return wt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Xt(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let o=s.indexOf("="),[i,c]=o==-1?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var Gt=/%(\d[a-f0-9])/gi,Jt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wt(r){return encodeURIComponent(r).replace(Gt,(t,e)=>Jt[e]??t)}function se(r){return`${r}`}var A=class r{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ie,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Xt(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],s=Array.isArray(n)?n.map(se):[se(n)];this.map.set(e,s)})):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}
2keys(){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(n=>{let s=t[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,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(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new r({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(se(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],s=n.indexOf(se(t.value));s!==-1&&n.splice(s,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Oe=class{constructor(){this.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()}};function Wt(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Et(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Rt(r){return typeof Blob<"u"&&r instanceof Blob}function bt(r){return typeof FormData<"u"&&r instanceof FormData}function Zt(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var V=class r{constructor(t,e,n,s){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(Wt(this.method)||s?(this.body=n!==void 0?n:null,o=s):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new b,this.context??=new Oe,!this.params)this.params=new A,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"||Et(this.body)||Rt(this.body)||bt(this.body)||Zt(this.body)?this.body:this.body instanceof A?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||bt(this.body)?null:Rt(this.body)?this.body.type||null:Et(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof A?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,o=t.transferCache??this.transferCache,i=t.body!==void 0?t.body:this.body,c=t.withCredentials??this.withCredentials,a=t.reportProgress??this.reportProgress,d=t.headers||this.headers,f=t.params||this.params,p=t.context??this.context;return t.setHeaders!==void 0&&(d=Object.keys(t.setHeaders).reduce((O,m)=>O.set(m,t.setHeaders[m]),d)),t.setParams&&(f=Object.keys(t.setParams).reduce((O,m)=>O.set(m,t.setParams[m]),f)),new r(e,n,i,{params:f,headers:d,context:p,reportProgress:a,responseType:s,withCredentials:c,transferCache:o})}},I=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(I||{}),G=class{constructor(t,e=200,n="OK"){this.headers=t.headers||new b,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ie=class r extends G{constructor(t={}){super(t),this.type=I.ResponseHeader}clone(t={}){return new r({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})}},J=class r extends G{constructor(t={}){super(t),this.type=I.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new r({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})}},D=class extends G{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,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}},At=200,qt=204;function Ae(r,t){return{body:t,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Ce=(()=>
2{class r{constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof V)o=e;else{let a;s.headers instanceof b?a=s.headers:a=new b(s.headers);let d;s.params&&(s.params instanceof A?d=s.params:d=new A({fromObject:s.params})),o=new V(e,n,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:d,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let i=ve(o).pipe(Ze(a=>this.handler.handle(a)));if(e instanceof V||s.observe==="events")return i;let c=i.pipe(We(a=>a instanceof J));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(B(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(B(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(B(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(B(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${s.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 A().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,Ae(s,n))}post(e,n,s={}){return this.request("POST",e,Ae(s,n))}put(e,n,s={}){return this.request("PUT",e,Ae(s,n))}static{this.\u0275fac=function(n){return new(n||r)(l(X))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),Kt=/^\)\]\}',?\n/,Yt="X-Request-URL";function Mt(r){if(r.url)return r.url;let t=Yt.toLocaleLowerCase();return r.headers.get(t)}var Ht=(()=>{class r{constructor(){this.fetchImpl=v(Ne,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=v(R)}handle(e){return new ye(n=>{let s=new AbortController;return this.doRequest(e,s.signal,n).then(_e,o=>n.error(new D({error:o}))),()=>s.abort()})}doRequest(e,n,s){return me(this,null,function*(){let o=this.createRequestInit(e),i;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,S({signal:n},o)));Qt(m),s.next({type:I.Sent}),i=yield m}catch(m){s.error(new D({error:m,status:m.status??0,statusText:m.statusText,url:e.urlWithParams,headers:m.headers}));return}let c=new b(i.headers),a=i.statusText,d=Mt(i)??e.urlWithParams,f=i.status,p=null;if(e.reportProgress&&s.next(new ie({headers:c,status:f,statusText:a,url:d})),i.body){let m=i.headers.get("content-length"),F=[],u=i.body.getReader(),h=0,M,k,g=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>me(this,null,function*(){for(;;){let{done:N,value:U}=yield u.read();if(N)break;if(F.push(U),h+=U.length,e.reportProgress){k=e.responseType==="text"?(k??"")+(M??=new TextDecoder).decode(U,{stream:!0}):void 0;let Xe=()=>s.next({type:I.DownloadProgress,total:m?+m:void 0,loaded:h,partialText:k});g?g.run(Xe):Xe()}}}));let j=this.concatChunks(F,h);try{let N=i.headers.get("Content-Type")??"";p=this.parseBody(e,j,N)}catch(N){s.error(new D({error:N,headers:new b(i.headers),status:i.status,statusText:i.statusText,url:Mt(i)??e.urlWithParams}));return}}f===0&&(f=p?At:0),f>=200&&f<300?(s.next(new J({body:p,headers:c,status:f,statusText:a,url:d})),s.complete()):s.error(new D({error:p,headers:c,status:f,statusText:a,url:d}))})}parseBody(e,n,s){switch(e.responseType){case"json":let o=new TextDecoder().decode(n).replace(Kt,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:s});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},s=e.withCredentials?"include":void 0;if(e.headers.forEach((o,i)=>n[o]=i.join(",")),e.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(n["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:s}}concatChunks(e,n){let s=new Uint8Array(n),o=0;for(let i of e)s.set(i,o),o+=i.length;return s}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),Ne=class{};function _e(){}function Qt(r){r.then(_e,_e)}function It(r,t){return t(r)}function en(r,t){return(e,n)=>t.intercept(e,{handle:s=>r(s,n)})}function tn(r,t,e){return(n,s)=>tt(e,()=>t(n,o=>r(o,s)))}var nn=new T(""),ke=new T(""),rn=new T(""),Ot=new T("",{providedIn:"root",factory:()=>!0});function sn(){let r=null;return(t,e)=>{r===null&&(r=(v(nn,{optional:!0})??[]).reduceRight(en,It));let n=v(Me);
2if(v(Ot)){let o=n.add();return r(t,e).pipe(Te(()=>n.remove(o)))}else return r(t,e)}}var St=(()=>{class r extends X{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=v(Me),this.contributeToStability=v(Ot)}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(ke),...this.injector.get(rn,[])]));this.chain=n.reduceRight((s,o)=>tn(s,o,this.injector),It)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(Te(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static{this.\u0275fac=function(n){return new(n||r)(l(oe),l(et))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})();var on=/^\)\]\}',?\n/;function an(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var Pt=(()=>{class r{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Ge(n.\u0275loadImpl()):ve(null)).pipe(Ye(()=>new ye(o=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((u,h)=>i.setRequestHeader(u,h.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let u=e.detectContentTypeHeader();u!==null&&i.setRequestHeader("Content-Type",u)}if(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",h=new b(i.getAllResponseHeaders()),M=an(i)||e.url;return a=new ie({headers:h,status:i.status,statusText:u,url:M}),a},f=()=>{let{headers:u,status:h,statusText:M,url:k}=d(),g=null;h!==qt&&(g=typeof i.response>"u"?i.responseText:i.response),h===0&&(h=g?At:0);let j=h>=200&&h<300;if(e.responseType==="json"&&typeof g=="string"){let N=g;g=g.replace(on,"");try{g=g!==""?JSON.parse(g):null}catch(U){g=N,j&&(j=!1,g={error:U,text:g})}}j?(o.next(new J({body:g,headers:u,status:h,statusText:M,url:k||void 0})),o.complete()):o.error(new D({error:g,headers:u,status:h,statusText:M,url:k||void 0}))},p=u=>{let{url:h}=d(),M=new D({error:u,status:i.status||0,statusText:i.statusText||"Unknown Error",url:h||void 0});o.error(M)},O=!1,m=u=>{O||(o.next(d()),O=!0);let h={type:I.DownloadProgress,loaded:u.loaded};u.lengthComputable&&(h.total=u.total),e.responseType==="text"&&i.responseText&&(h.partialText=i.responseText),o.next(h)},F=u=>{let h={type:I.UploadProgress,loaded:u.loaded};u.lengthComputable&&(h.total=u.total),o.next(h)};return i.addEventListener("load",f),i.addEventListener("error",p),i.addEventListener("timeout",p),i.addEventListener("abort",p),e.reportProgress&&(i.addEventListener("progress",m),c!==null&&i.upload&&i.upload.addEventListener("progress",F)),i.send(c),o.next({type:I.Sent}),()=>{i.removeEventListener("error",p),i.removeEventListener("abort",p),i.removeEventListener("load",f),i.removeEventListener("timeout",p),e.reportProgress&&(i.removeEventListener("progress",m),c!==null&&i.upload&&i.upload.removeEventListener("progress",F)),i.readyState!==i.DONE&&i.abort()}})))}static{this.\u0275fac=function(n){return new(n||r)(l(re))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),Nt=new T(""),cn="XSRF-TOKEN",ln=new T("",{providedIn:"root",factory:()=>cn}),dn="X-XSRF-TOKEN",un=new T("",{providedIn:"root",factory:()=>dn}),ae=class{},hn=(()=>{class r{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=te(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(n){return new(n||r)(l(w),l(_),l(ln))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})();function fn(r,t){let e=r.url.toLowerCase();if(!v(Nt)||r.method==="GET"||r.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(r);let n=v(ae).getToken(),s=v(un);return n!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,n)})),t(r)}var _t=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(_t||{});function pn(r,t){return{\u0275kind:r,\u0275providers:t}}function tr(...r){let t=[Ce,Pt,St,{provide:X,useExisting:St},{provide:oe,useFactory:()=>v(Ht,{optional:!0})??v(Pt)},{provide:ke,useValue:fn,multi:!0},{provide:Nt,useValue:!0},{provide:ae,useClass:hn}];for(let e of r)t.push(...e.\u0275providers);return be(t)}var Dt=new T("");function nr(){return pn(_t.LegacyInterceptors,[{provide:Dt,useFactory:sn},{provide:ke,useExisting:Dt,multi:!0}])}var Fe=class extends gt{constructor(){super(...arguments),this.supportsDOMEvents=!0}},je=class r extends Fe{static makeCurrent(){yt(new r)}
2onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}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=gn();return e==null?null:vn(e)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return te(document.cookie,t)}},W=null;function gn(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}function vn(r){return new URL(r,document.baseURI).pathname}var Ue=class{addToWindow(t){P.getAngularTestability=(n,s=!0)=>{let o=t.findTestabilityInTree(n,s);if(o==null)throw new E(5103,!1);return o},P.getAllAngularTestabilities=()=>t.getAllTestabilities(),P.getAllAngularRootElements=()=>t.getAllRootElements();let e=n=>{let s=P.getAllAngularTestabilities(),o=s.length,i=function(){o--,o==0&&n()};s.forEach(c=>{c.whenStable(i)})};P.frameworkStabilizers||(P.frameworkStabilizers=[]),P.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,n){if(e==null)return null;let s=t.getTestability(e);return s??(n?ee().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},Tn=(()=>{class r{build(){return new XMLHttpRequest}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),Be=new T(""),xt=(()=>{class r{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(s=>{s.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return this._findPluginFor(n).addEventListener(e,n,s)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new E(5101,!1);return this._eventNameToPlugin.set(e,n),n}static{this.\u0275fac=function(n){return new(n||r)(l(Be),l(R))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),le=class{constructor(t){this._doc=t}},Le="ng-app-id",Ft=(()=>{class r{constructor(e,n,s,o={}){this.doc=e,this.appId=n,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ne(o),this.resetHostNodes()}addStyles(e){for(let n of e)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(e){for(let n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){let n=this.styleRef;n.get(e)?.elements?.forEach(s=>s.remove()),n.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Le}="${this.appId}"]`);if(e?.length){let n=new Map;return e.forEach(s=>{s.textContent!=null&&n.set(s.textContent,s)}),n}return null}changeUsageCount(e,n){let s=this.styleRef;if(s.has(e)){let o=s.get(e);return o.usage+=n,o.usage}return s.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){let s=this.styleNodesInDOM,o=s?.get(n);if(o?.parentNode===e)return s.delete(n),o.removeAttribute(Le),o;{let i=this.doc.createElement("style");return this.nonce&&i.setAttribute("nonce",this.nonce),i.textContent=n,this.platformIsServer&&i.setAttribute(Le,this.appId),e.appendChild(i),i}}addStyleToHost(e,n){let s=this.getStyleElement(e,n),o=this.styleRef,i=o.get(n)?.elements;i?i.push(s):o.set(n,{elements:[s],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(n){return new(n||r)(l(w),l(Y),l(Pe,8),l(_))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),xe={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"},$e=/%COMP%/g,jt="%COMP%",wn=`_nghost-${jt}`,En=`_ngcontent-${jt}`,Rn=!0,bn=new T("",{providedIn:"root",factory:()=>Rn});function Mn(r){return En.replace($e,r)}function Sn(r){return wn.replace($e,r)}function Ut(r,t){return t.map(e=>e.replace($e,r))}var Ct=(()=>
2{class r{constructor(e,n,s,o,i,c,a,d=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=i,this.platformId=c,this.ngZone=a,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=ne(c),this.defaultRenderer=new Z(e,i,a,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===z.ShadowDom&&(n=K(S({},n),{encapsulation:z.Emulated}));let s=this.getOrCreateRenderer(e,n);return s instanceof de?s.applyToHost(e):s instanceof q&&s.applyStyles(),s}getOrCreateRenderer(e,n){let s=this.rendererByCompId,o=s.get(n.id);if(!o){let i=this.doc,c=this.ngZone,a=this.eventManager,d=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case z.Emulated:o=new de(a,d,n,this.appId,f,i,c,p);break;case z.ShadowDom:return new ze(a,d,e,n,i,c,this.nonce,p);default:o=new q(a,d,n,f,i,c,p);break}s.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(n){return new(n||r)(l(xt),l(Ft),l(Y),l(bn),l(w),l(_),l(R),l(Pe))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),Z=class{constructor(t,e,n,s){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=s,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(xe[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(kt(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(kt(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new E(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;let o=xe[s];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let s=xe[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&($.DashCase|$.Important)?t.style.setProperty(e,n,s&$.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&$.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n){if(typeof t=="string"&&(t=ee().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function kt(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var ze=class extends Z{constructor(t,e,n,s,o,i,c,a){super(t,o,i,a),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=Ut(s.id,s.styles);for(let f of d){let p=document.createElement("style");c&&p.setAttribute("nonce",c),p.textContent=f,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},q=class extends Z{constructor(t,e,n,s,o,i,c,a){super(t,o,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s,this.styles=a?Ut(a,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},de=class extends q{constructor(t,e,n,s,o,i,c,a){let d=s+"-"+n.id;super(t,e,n,o,i,c,a,d),this.contentAttr=Mn(d),this.hostAttr=Sn(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},Pn=(()=>{class r extends le{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return e.removeEventListener(n,s)}static{this.\u0275fac=function(n){return new(n||r)(l(w))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})(),Lt=["alt","control","meta","shift"],Dn={"\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"},An={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},In=(()=>{class r extends le{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,n,s){let o=r.parseEventName(n),i=r.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ee().onAndCancel(e,o.domEventName,i))}static parseEventName(e){let n=e.toLowerCase().split("."),s=n.shift();if(n.length===0||!(s==="keydown"||s==="keyup"))return null;let o=r._normalizeKey(n.pop()),i="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),i="code."),Lt.forEach(d=>{let f=n.indexOf(d);f>-1&&(n.splice(f,1),i+=d+".")}),i+=o,n.length!=0||o.length===0)return null;let a={};return a.domEventName=s,a.fullKey=i,a}static matchEventFullKeyCode(e,n){let s=Dn[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(s=e.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Lt.forEach(i=>
2{if(i!==s){let c=An[i];c(e)&&(o+=i+".")}}),o+=s,o===n)}static eventCallback(e,n,s){return o=>{r.matchEventFullKeyCode(o,e)&&s.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(n){return new(n||r)(l(w))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac})}}return r})();function On(){je.makeCurrent()}function Nn(){return new Se}function _n(){return nt(document),document}var Cn=[{provide:_,useValue:Tt},{provide:rt,useValue:On,multi:!0},{provide:w,useFactory:_n,deps:[]}],wr=ft(pt,"browser",Cn),kn=new T(""),Ln=[{provide:H,useClass:Ue,deps:[]},{provide:ht,useClass:Q,deps:[R,De,H]},{provide:Q,useClass:Q,deps:[R,De,H]}],xn=[{provide:Qe,useValue:"root"},{provide:Se,useFactory:Nn,deps:[]},{provide:Be,useClass:Pn,multi:!0,deps:[w,R,_]},{provide:Be,useClass:In,multi:!0,deps:[w]},Ct,Ft,xt,{provide:ut,useExisting:Ct},{provide:re,useClass:Tn,deps:[]},[]],Er=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:Y,useValue:e.appId}]}}static{this.\u0275fac=function(n){return new(n||r)(l(kn,12))}}static{this.\u0275mod=Re({type:r})}static{this.\u0275inj=Ee({providers:[...xn,...Ln],imports:[vt,mt]})}}return r})();var Ve=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=y({token:r,factory:function(n){let s=null;return n?s=new(n||r):s=l(Fn),s},providedIn:"root"})}}return r})(),Fn=(()=>{class r extends Ve{constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case C.NONE:return n;case C.HTML:return x(n,"HTML")?L(n):dt(this._doc,String(n)).toString();case C.STYLE:return x(n,"Style")?L(n):n;case C.SCRIPT:if(x(n,"Script"))return L(n);throw new E(5200,!1);case C.URL:return x(n,"URL")?L(n):lt(String(n));case C.RESOURCE_URL:if(x(n,"ResourceURL"))return L(n);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return st(e)}bypassSecurityTrustStyle(e){return ot(e)}bypassSecurityTrustScript(e){return it(e)}bypassSecurityTrustUrl(e){return at(e)}bypassSecurityTrustResourceUrl(e){return ct(e)}static{this.\u0275fac=function(n){return new(n||r)(l(w))}}static{this.\u0275prov=y({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var ue=class{constructor(t,e){this.theme=t;this._defaultChatService=e;this.theme.allowPoweredBySilice=this.theme.allowPoweredBySilice!=!1,this._setPlaceHolderText();let n=document.documentElement.style;this._setColors(n),this._importFontFamily(n)}_setColors(t){for(let e in this.theme.colors){let n=e;this.theme.colors.hasOwnProperty(n)&&this.theme.colors[n]&&t.setProperty(`--${n}`,this.theme.colors[n])}}_importFontFamily(t){let e=this.theme.fontConfig;if(e){let{fontFamilyUrl:n,fontFamily:s}=e;if(n){let o=document.createElement("link");o.href=n,o.rel="stylesheet",document.head.appendChild(o),t.setProperty("--silice-font-family",s),console.log({fontConfig:e,rootStyle:t})}}}_setPlaceHolderText(){this.theme.chatInputPlaceholderText&&this._defaultChatService.setPlaceHolder(this.theme.chatInputPlaceholderText)}};var Bt={production:!0,configUrl:"assets/config.json"};var he=class{theme;constructor(t){this._setColors(t.colors),this._setLayout(t.layout),t.fontSizes&&this._setFontSizes(t.fontSizes),this._calculateScrollWidth();let e=this._transformImages(t);this._importFontFamily(t),this.theme=e}_setFontSizes(t){let e=document.documentElement.style;for(let n in t)t.hasOwnProperty(n)&&e.setProperty(`--silice-font-size-${n}`,t[n])}_setColors(t){let e=document.documentElement.style;for(let n in t){let s=n;t.hasOwnProperty(s)&&e.setProperty(`--silice-color-${s}`,t[s])}}_transformImages(t){let n=S(S({},{}),t.images);return K(S({},t),{images:n})}_calculateScrollWidth(){let t=document.documentElement.style,e=document.createElement("div");e.style.overflowY="scroll",e.style.width="50px",e.style.height="50px",document.body.append(e);let n=e.offsetWidth-e.clientWidth;t.setProperty("--silice-scroll-width",n+"px"),e.remove()}_setLayout(t){let e=document.documentElement.style,n={mainLogoLabelMarginBottom:"12px"};for(let s in t){let o=s;n.hasOwnProperty(o)&&n[o]&&e.setProperty(`--silice-layout-${o}`,n[o]),t.hasOwnProperty(o)&&t[o]&&e.setProperty(`--silice-layout-${o}`,t[o])}}_importFontFamily(t){if(t.fontConfig){let{fontFamily:e,fontFamilyUrl:n}=t.fontConfig;if(e&&n){let s=document.createElement("link");s.href=n,s.rel="stylesheet",document.head.appendChild(s),document.documentElement.style.setProperty("--silice-font-family",e)}}}};var fe=class r{_chatState$=new ge("close");chatState$=this._chatState$.asObservable();_placeHolder$=new ge("Ingresa aqu\xED tu mensaje...");placeHolder$=this._placeHolder$.asObservable().pipe(qe(),Ke());constructor(){}resolveToggleChat=t=>{switch(t){case"open":this._chatState$.next("open");break;
2case"close":this._chatState$.next("close");break;default:let e=this._chatState$.getValue();this._chatState$.next(e=="open"?"close":"open")}};setPlaceHolder(t){this._placeHolder$.next(t)}get chatState(){return this._chatState$.getValue()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=y({token:r,factory:r.\u0275fac,providedIn:"root"})};var pe=class r{constructor(t,e){this._httpClient=t;this._defaultThemeService=e}config;initialize(){let t=Bt.configUrl;return Je(this._httpClient.get(t).pipe(we(e=>{this.config=e;let{styleVariant:n,theme:s}=e;switch(n){case"Silice":this.config.theme=new he(s).theme;break;case"default":default:this.config.theme=new ue(s,this._defaultThemeService).theme;break}})))}static \u0275fac=function(e){return new(e||r)(l(Ce),l(fe))};static \u0275prov=y({token:r,factory:r.\u0275fac})};var zt=class r{_domSanitizer=v(Ve);_configLoaderService=v(pe);assetsDirectory=this._configLoaderService.config.assetsUrl;transform(t){return typeof this.assetsDirectory!="string"&&(this.assetsDirectory="./"),this._domSanitizer.bypassSecurityTrustUrl(this.assetsDirectory+t)}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=He({name:"fixAssetsDirectory",type:r,pure:!0,standalone:!0})};export{b as a,Ce as b,tr as c,nr as d,Ct as e,wr as f,Er as g,Ve as h,fe as i,pe as j,zt as k};
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.