@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
2 lines • 125 kB
JavaScript
import{Aa as Jt,Ba as Hi,Da as Vi,Ia as rn,a as ct,b as ki,c as ji,d as Gt,e as Fi,h as xe,j as $i,m as Ee,n as tn,xa as Bi,ya as zi,za as Wt}from"./chunk-WKOKZ3JO.js";import{$a as gi,A as Ot,Aa as _,Ab as at,Ba as qr,Cd as Ui,Dd as qt,Ea as ot,Fa as Gr,Ga as oi,Gb as Kr,H as ee,Ha as Wr,Hd as Li,Ia as si,Ib as Ti,J as et,Ja as Jr,Ka as ai,Kb as Qr,L as ye,La as Lt,Lb as Zr,Mb as zt,Na as kt,Nb as en,O as De,Qa as ci,R as tt,Ra as Xr,S as ue,Sa as jt,Sb as Ci,T as zr,Ta as Ne,Ua as Oe,Va as li,W as ti,Wa as ui,X as z,Xa as di,Y as Pt,Ya as hi,Z as X,Za as fi,_ as Hr,_a as pi,a as d,aa as w,ab as we,b as P,ba as xt,da as m,dc as Mi,ea as Ae,eb as mi,fa as ri,ga as S,h as Yn,ha as v,hb as st,ia as u,ib as vi,j as Kn,ja as rt,jb as Ft,k as Nt,kb as yi,kd as Ni,l as le,la as ni,lb as $t,m as G,ma as H,na as U,ob as Ri,od as C,p as W,pb as Yr,pd as Ht,q as x,qb as te,qd as Oi,r as p,ra as nt,rb as wi,rc as Ii,s as Qn,sa as F,t as $r,ta as it,tb as Ei,td as Pi,u as Zn,ua as ii,v as M,va as Re,vb as bi,vc as Di,vd as xi,w as Br,wa as _e,x as Z,xb as Bt,xc as Ai,y as Ze,ya as Vr,yb as Si,yc as _i,z as ei,za as Ut,zb as Pe,zd as Vt}from"./chunk-3WD6XLXL.js";var lt=class{_doc;constructor(n){this._doc=n}manager},ut=(()=>{class t extends lt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(v(F))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),Kt=new S(""),Qt=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof ut));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof ut);o&&this._plugins.push(o)}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(v(Kt),v(_e))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),nn="ng-app-id";function qi(t){for(let n of t)n.remove()}function Gi(t,n){let e=n.createElement("style");return e.textContent=t,e}function Es(t,n,e,r){let i=t.head?.querySelectorAll(`style[${nn}="${n}"],link[${nn}="${n}"]`);if(i)for(let o of i)o.removeAttribute(nn),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function sn(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Zt=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,Es(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,Gi);r?.forEach(i=>this.addUsage(i,this.external,sn))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(qi(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])qi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,Gi(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,sn(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||t)(v(F),v(Jr),v(kt,8),v(Lt))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),on={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"},an=/%COMP%/g;var Ji="%COMP%",bs=`_nghost-${Ji}`,Ss=`_ngcontent-${Ji}`,Ts=!0,Xi=new S("",{factory:()=>Ts});function Cs(t){return Ss.replace(an,t)}function Ms(t){return bs.replace(an,t)}function Yi(t,n){return n.map(e=>e.replace(an,t))}var er=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,i,o,s,a,c=null,l=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.defaultRenderer=new dt(e,s,a,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof Yt?i.applyToHost(e):i instanceof ht&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,f=this.tracingService;switch(r.encapsulation){case jt.Emulated:o=new Yt(c,l,r,this.appId,h,s,a,f);break;case jt.ShadowDom:return new Xt(c,e,r,s,a,this.nonce,f,l);case jt.ExperimentalIsolatedShadowDom:return new Xt(c,e,r,s,a,this.nonce,f);default:o=new ht(c,l,r,h,s,a,f);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(v(Qt),v(Zt),v(Jr),v(Xi),v(F),v(_e),v(kt),v(Ft,8))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),dt=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(on[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Wi(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Wi(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new w(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=on[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=on[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(st.DashCase|st.Important)?n.style.setProperty(e,r,i&st.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&st.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,i){if(typeof n=="string"&&(n=ct().getGlobalEventTarget(this.doc,n),!n))throw new w(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Wi(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Xt=class extends dt{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,r,i,o,s,a,c){super(n,i,o,a),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Yi(r.id,l);for(let f of l){let R=document.createElement("style");s&&R.setAttribute("nonce",s),R.textContent=f,this.shadowRoot.appendChild(R)}let h=r.getExternalStyles?.();if(h)for(let f of h){let R=sn(f,i);s&&R.setAttribute("nonce",s),this.shadowRoot.appendChild(R)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},ht=class extends dt{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=r.styles;this.styles=c?Yi(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&vi.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Yt=class extends ht{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,c){let l=i+"-"+r.id;super(n,e,r,o,s,a,c,l),this.contentAttr=Cs(l),this.hostAttr=Ms(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var tr=class t extends ji{supportsDOMEvents=!0;static makeCurrent(){ki(new t)}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Ds();return e==null?null:As(e)}resetBaseElement(){pt=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Wt(document.cookie,n)}},pt=null;function Ds(){return pt=pt||document.head.querySelector("base"),pt?pt.getAttribute("href"):null}function As(t){return new URL(t,document.baseURI).pathname}var _s=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),Ki=["alt","control","meta","shift"],Ns={"\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"},Os={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Qi=(()=>{class t extends lt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ct().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ki.forEach(l=>{let h=r.indexOf(l);h>-1&&(r.splice(h,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let i=Ns[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ki.forEach(s=>{if(s!==i){let a=Os[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(v(F))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})();async function Ps(t,n,e){let r=d({rootComponent:t},xs(n,e));return Ui(r)}function xs(t,n){return{platformRef:n?.platformRef,appProviders:[...Fs,...t?.providers??[]],platformProviders:js}}function Us(){tr.makeCurrent()}function Ls(){return new Vr}function ks(){return si(document),document}var js=[{provide:Lt,useValue:Vi},{provide:ai,useValue:Us,multi:!0},{provide:F,useFactory:ks}];var Fs=[{provide:ni,useValue:"root"},{provide:Vr,useFactory:Ls},{provide:Kt,useClass:ut,multi:!0},{provide:Kt,useClass:Qi,multi:!0},er,Zt,Qt,{provide:Ri,useExisting:er},{provide:Jt,useClass:_s},[]];var de=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var ln=class{defaultValue;constructor(n){this.defaultValue=n}},nr=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}},ir=class{encodeKey(n){return Zi(n)}encodeValue(n){return Zi(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function $s(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var Bs=/%(\d[a-f0-9])/gi,zs={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Zi(t){return encodeURIComponent(t).replace(Bs,(n,e)=>zs[e]??n)}function rr(t){return`${t}`}var ie=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new ir,n.fromString){if(n.fromObject)throw new w(2805,!1);this.map=$s(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(rr):[rr(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(rr(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(rr(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};function Hs(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function eo(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function to(t){return typeof Blob<"u"&&t instanceof Blob}function ro(t){return typeof FormData<"u"&&t instanceof FormData}function Vs(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var no="Content-Type",io="Accept",so="text/plain",ao="application/json",qs=`${ao}, ${so}, */*`,Ue=class t{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(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(Hs(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new w(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer!==void 0&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new de,this.context??=new nr,!this.params)this.params=new ie,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||eo(this.body)||to(this.body)||ro(this.body)||Vs(this.body)?this.body:this.body instanceof ie?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||ro(this.body)?null:to(this.body)?this.body.type||null:eo(this.body)?null:typeof this.body=="string"?so:this.body instanceof ie?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?ao:null}clone(n={}){let e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.keepalive??this.keepalive,s=n.priority||this.priority,a=n.cache||this.cache,c=n.mode||this.mode,l=n.redirect||this.redirect,h=n.credentials||this.credentials,f=n.referrer??this.referrer,R=n.integrity||this.integrity,j=n.referrerPolicy||this.referrerPolicy,O=n.transferCache??this.transferCache,T=n.timeout??this.timeout,y=n.body!==void 0?n.body:this.body,b=n.withCredentials??this.withCredentials,D=n.reportProgress??this.reportProgress,B=n.headers||this.headers,A=n.params||this.params,Ke=n.context??this.context;return n.setHeaders!==void 0&&(B=Object.keys(n.setHeaders).reduce((Qe,ve)=>Qe.set(ve,n.setHeaders[ve]),B)),n.setParams&&(A=Object.keys(n.setParams).reduce((Qe,ve)=>Qe.set(ve,n.setParams[ve]),A)),new t(e,r,y,{params:A,headers:B,context:Ke,reportProgress:D,responseType:i,withCredentials:b,transferCache:O,keepalive:o,cache:a,priority:s,timeout:T,mode:c,redirect:l,credentials:h,referrer:f,integrity:R,referrerPolicy:j})}},be=(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})(be||{}),ke=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(n,e=200,r="OK"){this.headers=n.headers||new de,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.responseType=n.responseType,this.ok=this.status>=200&&this.status<300}},or=class t extends ke{constructor(n={}){super(n)}type=be.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},gt=class t extends ke{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=be.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected,responseType:n.responseType??this.responseType})}},Le=class extends ke{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Gs=200,Ws=204;var Js=new S("");var Xs=/^\)\]\}',?\n/;var un=(()=>{class t{xhrFactory;tracingService=u(Ft,{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 w(-2800,!1);let r=this.xhrFactory;return p(null).pipe(z(()=>new Nt(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((y,b)=>s.setRequestHeader(y,b.join(","))),e.headers.has(io)||s.setRequestHeader(io,qs),!e.headers.has(no)){let y=e.detectContentTypeHeader();y!==null&&s.setRequestHeader(no,y)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let y=e.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let y=s.statusText||"OK",b=new de(s.getAllResponseHeaders()),D=s.responseURL||e.url;return c=new or({headers:b,status:s.status,statusText:y,url:D}),c},h=this.maybePropagateTrace(()=>{let{headers:y,status:b,statusText:D,url:B}=l(),A=null;b!==Ws&&(A=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=A?Gs:0);let Ke=b>=200&&b<300;if(e.responseType==="json"&&typeof A=="string"){let Qe=A;A=A.replace(Xs,"");try{A=A!==""?JSON.parse(A):null}catch(ve){A=Qe,Ke&&(Ke=!1,A={error:ve,text:A})}}Ke?(o.next(new gt({body:A,headers:y,status:b,statusText:D,url:B||void 0})),o.complete()):o.error(new Le({error:A,headers:y,status:b,statusText:D,url:B||void 0}))}),f=this.maybePropagateTrace(y=>{let{url:b}=l(),D=new Le({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});o.error(D)}),R=f;e.timeout&&(R=this.maybePropagateTrace(y=>{let{url:b}=l(),D=new Le({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:b||void 0});o.error(D)}));let j=!1,O=this.maybePropagateTrace(y=>{j||(o.next(l()),j=!0);let b={type:be.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(b.total=y.total),e.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),o.next(b)}),T=this.maybePropagateTrace(y=>{let b={type:be.UploadProgress,loaded:y.loaded};y.lengthComputable&&(b.total=y.total),o.next(b)});return s.addEventListener("load",h),s.addEventListener("error",f),s.addEventListener("timeout",R),s.addEventListener("abort",f),e.reportProgress&&(s.addEventListener("progress",O),a!==null&&s.upload&&s.upload.addEventListener("progress",T)),s.send(a),o.next({type:be.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",h),s.removeEventListener("timeout",R),e.reportProgress&&(s.removeEventListener("progress",O),a!==null&&s.upload&&s.upload.removeEventListener("progress",T)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(v(Jt))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function co(t,n){return n(t)}function Ys(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function Ks(t,n,e){return(r,i)=>U(e,()=>n(r,o=>t(o,i)))}var lo=new S(""),ar=new S("",{factory:()=>[]}),uo=new S(""),dn=new S("",{factory:()=>!0});function Qs(){let t=null;return(n,e)=>{t===null&&(t=(u(lo,{optional:!0})??[]).reduceRight(Ys,co));let r=u(qr);if(u(dn)){let o=r.add();return t(n,e).pipe(tt(o))}else return t(n,e)}}var hn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=v(un),i},providedIn:"root"})}return t})();var sr=(()=>{class t{backend;injector;chain=null;pendingTasks=u(qr);contributeToStability=u(dn);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ar),...this.injector.get(uo,[])]));this.chain=r.reduceRight((i,o)=>Ks(i,o,this.injector),co)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(tt(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(v(hn),v(H))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=v(sr),i},providedIn:"root"})}return t})();function cn(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var ho=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof Ue)o=e;else{let c;i.headers instanceof de?c=i.headers:c=new de(i.headers);let l;i.params&&(i.params instanceof ie?l=i.params:l=new ie({fromObject:i.params})),o=new Ue(e,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout})}let s=p(o).pipe(ye(c=>this.handler.handle(c)));if(e instanceof Ue||i.observe==="events")return s;let a=s.pipe(ee(c=>c instanceof gt));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(M(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new w(2806,!1);return c.body}));case"blob":return a.pipe(M(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new w(2807,!1);return c.body}));case"text":return a.pipe(M(c=>{if(c.body!==null&&typeof c.body!="string")throw new w(2808,!1);return c.body}));default:return a.pipe(M(c=>c.body))}case"response":return a;default:throw new w(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 ie().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,cn(i,r))}post(e,r,i={}){return this.request("POST",e,cn(i,r))}put(e,r,i={}){return this.request("PUT",e,cn(i,r))}static \u0275fac=function(r){return new(r||t)(v(fn))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zs=new S("",{factory:()=>!0}),ea="XSRF-TOKEN",ta=new S("",{factory:()=>ea}),ra="X-XSRF-TOKEN",na=new S("",{factory:()=>ra}),ia=(()=>{class t{cookieName=u(ta);doc=u(F);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fo=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=v(ia),i},providedIn:"root"})}return t})();function oa(t,n){if(!u(Zs)||t.method==="GET"||t.method==="HEAD")return n(t);try{let i=u(Gt).href,{origin:o}=new URL(i),{origin:s}=new URL(t.url,o);if(o!==s)return n(t)}catch{return n(t)}let e=u(fo).getToken(),r=u(na);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}var cr=(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})(cr||{});function po(t,n){return{\u0275kind:t,\u0275providers:n}}function go(...t){let n=[ho,sr,{provide:fn,useExisting:sr},{provide:hn,useFactory:()=>u(Js,{optional:!0})??u(un)},{provide:ar,useValue:oa,multi:!0}];for(let e of t)n.push(...e.\u0275providers);return rt(n)}function sa(t){return po(cr.Interceptors,t.map(n=>({provide:ar,useValue:n,multi:!0})))}var oo=new S("");function mo(){return po(cr.LegacyInterceptors,[{provide:oo,useFactory:Qs},{provide:ar,useExisting:oo,multi:!0}])}var aa=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Pe({type:t});static \u0275inj=Ae({providers:[go(mo())]})}return t})();var vo=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(v(F))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var la=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=v(ua),i},providedIn:"root"})}return t})(),ua=(()=>{class t extends la{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case we.NONE:return r;case we.HTML:return Oe(r,"HTML")?Ne(r):gi(this._doc,String(r)).toString();case we.STYLE:return Oe(r,"Style")?Ne(r):r;case we.SCRIPT:if(Oe(r,"Script"))return Ne(r);throw new w(5200,!1);case we.URL:return Oe(r,"URL")?Ne(r):pi(String(r));case we.RESOURCE_URL:if(Oe(r,"ResourceURL"))return Ne(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(e){return li(e)}bypassSecurityTrustStyle(e){return ui(e)}bypassSecurityTrustScript(e){return di(e)}bypassSecurityTrustUrl(e){return hi(e)}bypassSecurityTrustResourceUrl(e){return fi(e)}static \u0275fac=function(r){return new(r||t)(v(F))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var g="primary",It=Symbol("RouteTitle"),yn=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Te(t){return new yn(t)}function pn(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function To(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},l=t.slice(0,r.length);return pn(r,l,c)?{consumed:l,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!pn(o,t.slice(0,o.length),a)||!pn(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function pr(t){return new Promise((n,e)=>{t.pipe(ue()).subscribe({next:r=>n(r),error:r=>e(r)})})}function ha(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!re(t[e],n[e]))return!1;return!0}function re(t,n){let e=t?Rn(t):void 0,r=n?Rn(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Co(t[i],n[i]))return!1;return!0}function Rn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Co(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function fa(t){return t.length>0?t[t.length-1]:null}function Me(t){return $r(t)?t:Ti(t)?x(Promise.resolve(t)):p(t)}function Mo(t){return $r(t)?pr(t):Promise.resolve(t)}var pa={exact:Do,subset:Ao},Io={exact:ga,subset:ma,ignored:()=>!0},xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Un(t,n,e){let r=t instanceof k?t:n.parseUrl(t);return Ht(()=>wn(n.lastSuccessfulNavigation()?.finalUrl??new k,r,d(d({},wt),e)))}function wn(t,n,e){return pa[e.paths](t.root,n.root,e.matrixParams)&&Io[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ga(t,n){return re(t,n)}function Do(t,n,e){if(!Se(t.segments,n.segments)||!dr(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Do(t.children[r],n.children[r],e))return!1;return!0}function ma(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Co(t[e],n[e]))}function Ao(t,n,e){return _o(t,n,n.segments,e)}function _o(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Se(i,e)||n.hasChildren()||!dr(i,e,r))}else if(t.segments.length===e.length){if(!Se(t.segments,e)||!dr(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Ao(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Se(t.segments,i)||!dr(t.segments,i,r)||!t.children[g]?!1:_o(t.children[g],n,o,r)}}function dr(t,n,e){return n.every((r,i)=>Io[e](t[i].parameters,r.parameters))}var k=class{root;queryParams;fragment;_queryParamMap;constructor(n=new E([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Te(this.queryParams),this._queryParamMap}toString(){return Ra.serialize(this)}},E=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hr(this)}},he=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Te(this.parameters),this._parameterMap}toString(){return Oo(this)}};function va(t,n){return Se(t,n)&&t.every((e,r)=>re(e.parameters,n[r].parameters))}function Se(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ya(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ge=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>new se,providedIn:"root"})}return t})(),se=class{parse(n){let e=new bn(n);return new k(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${mt(n.root,!0)}`,r=ba(n.queryParams),i=typeof n.fragment=="string"?`#${wa(n.fragment)}`:"";return`${e}${r}${i}`}},Ra=new se;function hr(t){return t.segments.map(n=>Oo(n)).join("/")}function mt(t,n){if(!t.hasChildren())return hr(t);if(n){let e=t.children[g]?mt(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${mt(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ya(t,(r,i)=>i===g?[mt(t.children[g],!1)]:[`${i}:${mt(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${hr(t)}/${e[0]}`:`${hr(t)}/(${e.join("//")})`}}function No(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lr(t){return No(t).replace(/%3B/gi,";")}function wa(t){return encodeURI(t)}function En(t){return No(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fr(t){return decodeURIComponent(t)}function yo(t){return fr(t.replace(/\+/g,"%20"))}function Oo(t){return`${En(t.path)}${Ea(t.parameters)}`}function Ea(t){return Object.entries(t).map(([n,e])=>`;${En(n)}=${En(e)}`).join("")}function ba(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lr(e)}=${lr(i)}`).join("&"):`${lr(e)}=${lr(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Sa=/^[^\/()?;#]+/;function gn(t){let n=t.match(Sa);return n?n[0]:""}var Ta=/^[^\/()?;=#]+/;function Ca(t){let n=t.match(Ta);return n?n[0]:""}var Ma=/^[^=?&#]+/;function Ia(t){let n=t.match(Ma);return n?n[0]:""}var Da=/^[^&#]+/;function Aa(t){let n=t.match(Da);return n?n[0]:""}var bn=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[g]=new E(e,r)),i}parseSegment(){let n=gn(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new he(fr(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ca(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=gn(this.remaining);i&&(r=i,this.capture(r))}n[fr(e)]=fr(r)}parseQueryParam(n){let e=Ia(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Aa(this.remaining);s&&(r=s,this.capture(r))}let i=yo(e),o=yo(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=gn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=g);let a=this.parseChildren(e+1);r[s??g]=Object.keys(a).length===1&&a[g]?a[g]:new E([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function Po(t){return t.segments.length>0?new E([],{[g]:t}):t}function xo(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=xo(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new E(t.segments,n);return _a(e)}function _a(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new E(t.segments.concat(n.segments),n.children)}return t}function fe(t){return t instanceof k}function Uo(t,n,e=null,r=null,i=new se){let o=Lo(t);return ko(o,n,e,r,i)}function Lo(t){let n;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new E(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=Po(r);return n??i}function ko(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return mn(o,o,o,e,r,i);let s=Na(n);if(s.toRoot())return mn(o,o,new E([],{}),e,r,i);let a=Oa(s,o,t),c=a.processChildren?yt(a.segmentGroup,a.index,s.commands):Fo(a.segmentGroup,a.index,s.commands);return mn(o,a.segmentGroup,c,e,r,i)}function gr(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Et(t){return typeof t=="object"&&t!=null&&t.outlets}function Ro(t,n,e){t||="\u0275";let r=new k;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function mn(t,n,e,r,i,o){let s={};for(let[l,h]of Object.entries(r??{}))s[l]=Array.isArray(h)?h.map(f=>Ro(l,f,o)):Ro(l,h,o);let a;t===n?a=e:a=jo(t,n,e);let c=Po(xo(a));return new k(c,s,i)}function jo(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=jo(o,n,e)}),new E(t.segments,r)}var mr=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&gr(r[0]))throw new w(4003,!1);let i=r.find(Et);if(i&&i!==fa(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Na(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mr(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new mr(e,n,r)}var Fe=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Oa(t,n,e){if(t.isAbsolute)return new Fe(n,!0,0);if(!e)return new Fe(n,!1,NaN);if(e.parent===null)return new Fe(e,!0,0);let r=gr(t.commands[0])?0:1,i=e.segments.length-1+r;return Pa(e,i,t.numberOfDoubleDots)}function Pa(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Fe(r,!1,i-o)}function xa(t){return Et(t[0])?t[0].outlets:{[g]:t}}function Fo(t,n,e){if(t??=new E([],{}),t.segments.length===0&&t.hasChildren())return yt(t,n,e);let r=Ua(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new E(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new E(t.segments.slice(r.pathIndex),t.children),yt(o,0,i)}else return r.match&&i.length===0?new E(t.segments,{}):r.match&&!t.hasChildren()?Sn(t,n,e):r.match?yt(t,0,i):Sn(t,n,e)}function yt(t,n,e){if(e.length===0)return new E(t.segments,{});{let r=xa(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=yt(t.children[g],n,e);return new E(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Fo(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new E(t.segments,i)}}function Ua(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(Et(a))break;let c=`${a}`,l=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Eo(c,l,s))return o;r+=2}else{if(!Eo(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Sn(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Et(o)){let c=La(o.outlets);return new E(r,c)}if(i===0&&gr(e[0])){let c=t.segments[n];r.push(new he(c.path,wo(e[0]))),i++;continue}let s=Et(o)?o.outlets[g]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&gr(a)?(r.push(new he(s,wo(a))),i+=2):(r.push(new he(s,{})),i++)}return new E(r,{})}function La(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Sn(new E([],{}),0,r))}),n}function wo(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Eo(t,n,e){return t==e.path&&re(n,e.parameters)}var $e="imperative",I=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(I||{}),q=class{id;url;constructor(n,e){this.id=n,this.url=e}},ae=class extends q{type=I.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends q{urlAfterRedirects;type=I.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},N=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(N||{}),ze=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(ze||{}),L=class extends q{reason;code;type=I.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Ln(t){return t instanceof L&&(t.code===N.Redirect||t.code===N.SupersededByNewNavigation)}var K=class extends q{reason;code;type=I.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},pe=class extends q{error;target;type=I.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},bt=class extends q{urlAfterRedirects;state;type=I.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vr=class extends q{urlAfterRedirects;state;type=I.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yr=class extends q{urlAfterRedirects;state;shouldActivate;type=I.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Rr=class extends q{urlAfterRedirects;state;type=I.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wr=class extends q{urlAfterRedirects;state;type=I.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Er=class{route;type=I.RouteConfigLoadStart;constructor