vendor: 13,471 bytes, line 1
1import{k as tr}from"./chunk-LJSYQ6VW.js";import{C as Jn,d as Zn,e as Kn,f as mt,g as Yn,h as Xn,i as Ct}from"./chunk-UPDZMESH.js";import{$ as qt,$b as zn,$c as Wt,A as _t,Aa as Dn,B as D,Ba as Mn,Bb as rt,C as vt,Cb as Ie,D as Cn,Db as $n,E as ve,Ea as Vt,Fa as Tn,Ga as En,Gb as Nn,Ha as Bt,Hb as jn,Ib as Ae,Ic as Bn,J as Z,Ja as On,Jb as Ln,La as et,Ma as q,N as X,Oa as Ht,Ob as kn,P as J,R as me,S as tt,Sa as Re,Ta as Un,U as yn,Ua as Se,Vc as Hn,Wc as Wn,Xa as we,Ya as nt,Yc as De,Zc as Me,_c as Gn,a as h,aa as F,b as A,ca as Ce,da as Rn,dd as Gt,g as fn,h as pn,ha as Sn,hd as Qt,i as gn,ja as wn,k as pe,ka as x,l as ge,la as bn,m as k,ma as w,md as Qn,n as E,oc as Fn,pa as b,pb as xn,s as z,sa as S,ta as In,tb as P,u as I,ua as An,ub as Pn,uc as _n,v as d,va as O,w as gt,wa as ye,wc as qn,x as vn,xa as _,xc as Vn,y as mn,ya as f,z as C,zb as be}from"./chunk-REFE22HE.js";var p="primary",$t=Symbol("RouteTitle"),xe=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ut(e){return new xe(e)}function Gr(e,t,i){let n=i.path.split("/");if(n.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||n.length<e.length))return null;let r={};for(let s=0;s<n.length;s++){let o=n[s],a=e[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:e.slice(0,n.length),posParams:r}}function Qr(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!N(e[i],t[i]))return!1;return!0}function N(e,t){let i=e?Pe(e):void 0,n=t?Pe(t):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!lr(e[r],t[r]))return!1;return!0}function Pe(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function lr(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let i=[...e].sort(),n=[...t].sort();return i.every((r,s)=>n[s]===r)}else return e===t}function hr(e){return e.length>0?e[e.length-1]:null}function G(e){return vn(e)?e:Wn(e)?I(Promise.resolve(e)):d(e)}var Zr={exact:fr,subset:pr},dr={exact:Kr,subset:Yr,ignored:()=>!0};function er(e,t,i){return Zr[i.paths](e.root,t.root,i.matrixParams)&&dr[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Kr(e,t){return N(e,t)}function fr(e,t,i){if(!Y(e.segments,t.segments)||!Yt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!fr(e.children[n],t.children[n],i))return!1;return!0}function Yr(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>lr(e[i],t[i]))}function pr(e,t,i){return gr(e,t,t.segments,i)}function gr(e,t,i,n){if(e.segments.length>i.length){let r=e.segments.slice(0,i.length);return!(!Y(r,i)||t.hasChildren()||!Yt(r,i,n))}else if(e.segments.length===i.length){if(!Y(e.segments,i)||!Yt(e.segments,i,n))return!1;for(let r in t.children)if(!e.children[r]||!pr(e.children[r],t.children[r],n))return!1;return!0}else{let r=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!Y(e.segments,r)||!Yt(e.segments,r,n)||!e.children[p]?!1:gr(e.children[p],t,s,n)}}function Yt(e,t,i){return t.every((n,r)=>dr[i](e[r].parameters,n.parameters))}var V=class{constructor(t=new m([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ut(this.queryParams),this._queryParamMap}toString(){return ti.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xt(this)}},K=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=ut(this.parameters),this._parameterMap}toString(){return mr(this)}};function Xr(e,t){return Y(e,t)&&e.every((i,n)=>N(i.parameters,t[n].parameters))}function Y(e,t){return e.length!==t.length?!1:e.every((i,n)=>i.path===t[n].path)}function Jr(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===p&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==p&&(i=i.concat(t(r,n)))}),i}var Nt=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:()=>new At,providedIn:"root"});let e=t;return e})(),At=class{parse(t){let i=new Ne(t);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${yt(t.root,!0)}`,n=ri(t.queryParams),r=typeof t.fragment=="string"?`#${ei(t.fragment)}`:"";return`${i}${n}${r}`}},ti=new At;function Xt(e){return e.segments.map(t=>mr(t)).join("/")}function yt(e,t){if(!e.hasChildren())return Xt(e);if(t){let i=e.children[p]?yt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([r,s])=>{r!==p&&n.push(`${r}:${yt(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Jr(e,(n,r)=>r===p?[yt(e.children[p],!1)]:[`${r}:${yt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${Xt(e)}/${i[0]}`:`${Xt(e)}/(${i.join("//")})`}}function vr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zt(e){return vr(e).replace(/%3B/gi,";")}function ei(e){return encodeURI(e)}function $e(e){return vr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jt(e){return decodeURIComponent(e)}function nr(e){return Jt(e.replace(/\+/g,"%20"))}function mr(e){return`${$e(e.path)}${ni(e.parameters)}`}function ni(e){return Object.entries(e).map(([t,i])=>`;${$e(t)}=${$e(i)}`).join("")}function ri(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Zt(i)}=${Zt(r)}`).join("&"):`${Zt(i)}=${Zt(n)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var ii=/^[^\/()?;#]+/;function Te(e){let t=e.match(ii);return t?t[0]:""}var si=/^[^\/()?;=#]+/;function oi(e){let t=e.match(si);return t?t[0]:""}var ai=/^[^=?&#]+/;function ui(e){let t=e.match(ai);return t?t[0]:""}var ci=/^[^&#]+/;function li(e){let t=e.match(ci);return t?t[0]:""}var Ne=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[p]=new m(t,i)),n}parseSegment(){let t=Te(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(t),new K(Jt(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=oi(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=Te(this.remaining);r&&(n=r,this.capture(n))}t[Jt(i)]=Jt(n)}parseQueryParam(t){let i=ui(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=li(this.remaining);o&&(n=o,this.capture(n))}let r=nr(i),s=nr(n);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Te(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new b(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=p);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[p]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new b(4011,!1)}};function Cr(e){return e.segments.length>0?new m([],{[p]:e}):e}function yr(e){let t={};for(let[n,r]of Object.entries(e.children)){let s=yr(r);if(n===p&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[n]=s)}let i=new m(e.segments,t);return hi(i)}function hi(e){if(e.numberOfChildren===1&&e.children[p]){let t=e.children[p];return new m(e.segments.concat(t.segments),t.children)}return e}function ct(e){return e instanceof V}function di(e,t,i=null,n=null){let r=Rr(e);return Sr(r,t,i,n)}function Rr(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let n=i(e.root),r=Cr(n);return t??r}function Sr(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(t.length===0)return Ee(r,r,r,i,n);let s=fi(t);if(s.toRoot())return Ee(r,r,new m([],{}),i,n);let o=pi(s,r,e),a=o.processChildren?wt(o.segmentGroup,o.index,s.commands):br(o.segmentGroup,o.index,s.commands);return Ee(r,o.segmentGroup,a,i,n)}function te(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Dt(e){return typeof e=="object"&&e!=null&&e.outlets}function Ee(e,t,i,n,r){let s={};n&&Object.entries(n).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=wr(e,t,i);let a=Cr(yr(o));return new V(a,s,r)}function wr(e,t,i){let n={};return Object.entries(e.children).forEach(([r,s])=>{s===t?n[r]=i:n[r]=wr(s,t,i)}),new m(e.segments,n)}var ee=class{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&te(n[0]))throw new b(4003,!1);let r=n.find(Dt);if(r&&r!==hr(n))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ee(!0,0,e);let t=0,i=!1,n=e.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new ee(i,t,n)}var ot=class{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}};function pi(e,t,i){if(e.isAbsolute)return new ot(t,!0,0);if(!i)return new ot(t,!1,NaN);if(i.parent===null)return new ot(i,!0,0);let n=te(e.commands[0])?0:1,r=i.segments.length-1+n;return gi(i,r,e.numberOfDoubleDots)}function gi(e,t,i){let n=e,r=t,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new b(4005,!1);r=n.segments.length}return new ot(n,!1,r-s)}function vi(e){return Dt(e[0])?e[0].outlets:{[p]:e}}function br(e,t,i){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return wt(e,t,i);let n=mi(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let s=new m(e.segments.slice(0,n.pathIndex),{});return s.children[p]=new m(e.segments.slice(n.pathIndex),e.children),wt(s,0,r)}else return n.match&&r.length===0?new m(e.segments,{}):n.match&&!e.hasChildren()?je(e,t,i):n.match?wt(e,0,r):je(e,t,i)}function wt(e,t,i){if(i.length===0)return new m(e.segments,{});{let n=vi(i),r={};if(Object.keys(n).some(s=>s!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let s=wt(e.children[p],t,i);return new m(e.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=br(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new m(e.segments,r)}}function mi(e,t,i){let n=0,r=t,s={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(n>=i.length)return s;let o=e.segments[r],a=i[n];if(Dt(a))break;let c=`${a}`,u=n<i.length-1?i[n+1]:null;if(r>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ir(c,u,o))return s;n+=2}else{if(!ir(c,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function je(e,t,i){let n=e.segments.slice(0,t),r=0;for(;r<i.length;){let s=i[r];if(Dt(s)){let c=Ci(s.outlets);return new m(n,c)}if(r===0&&te(i[0])){let c=e.segments[t];n.push(new K(c.path,rr(i[0]))),r++;continue}let o=Dt(s)?s.outlets[p]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&te(a)?(n.push(new K(o,rr(a))),r+=2):(n.push(new K(o,{})),r++)}return new m(n,{})}function Ci(e){let t={};return Object.entries(e).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(t[i]=je(new m([],{}),0,n))}),t}function rr(e){let t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function ir(e,t,i){return e==i.path&&N(t,i.parameters)}var bt="imperative",R=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.Re
1solveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(R||{}),U=class{constructor(t,i){this.id=t,this.url=i}},lt=class extends U{constructor(t,i,n="imperative",r=null){super(t,i),this.type=R.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends U{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=R.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(T||{}),ne=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ne||{}),B=class extends U{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=R.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},H=class extends U{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=R.NavigationSkipped}},Mt=class extends U{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=R.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},re=class extends U{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=R.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Le=class extends U{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=R.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ke=class extends U{constructor(t,i,n,r,s){super(t,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=R.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ze=class extends U{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=R.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fe=class extends U{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=R.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_e=class{constructor(t){this.route=t,this.type=R.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},qe=class{constructor(t){this.route=t,this.type=R.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ve=class{constructor(t){this.snapshot=t,this.type=R.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Be=class{constructor(t){this.snapshot=t,this.type=R.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},He=class{constructor(t){this.snapshot=t,this.type=R.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},We=class{constructor(t){this.snapshot=t,this.type=R.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ie=class{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=R.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Tt=class{},Et=class{constructor(t){this.url=t}};var Ge=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new jt,this.attachRef=null}},jt=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ge,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),se=class{constructor(t){this._root=t}get root(){return this._root.value}
vendor: 4,192 bytes, line 1
1parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=Qe(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){let i=Qe(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=Ze(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Ze(t,this._root).map(i=>i.value)}};function Qe(e,t){if(e===t.value)return t;for(let i of t.children){let n=Qe(e,i);if(n)return n}return null}function Ze(e,t){if(e===t.value)return[t];for(let i of t.children){let n=Ze(e,i);if(n.length)return n.unshift(t),n}return[]}var M=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function st(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var oe=class extends se{constructor(t,i){super(t),this.snapshot=i,on(this,t)}toString(){return this.snapshot.toString()}};function Ir(e){let t=yi(e),i=new E([new K("",{})]),n=new E({}),r=new E({}),s=new E({}),o=new E(""),a=new W(i,n,s,o,r,p,e,t.root);return a.snapshot=t.root,new oe(new M(a,[]),t)}function yi(e){let t={},i={},n={},r="",s=new Ot([],t,n,r,i,p,e,null,{});return new ae("",new M(s,[]))}var W=class{constructor(t,i,n,r,s,o,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[$t]))??d(void 0),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(C(t=>ut(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(t=>ut(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function sn(e,t,i="emptyOnly"){let n,{routeConfig:r}=e;return t!==null&&(i==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),r?.data),e._resolvedData)}:n={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},r&&Dr(r)&&(n.resolve[$t]=r.title),n}var Ot=class{get title(){return this.data?.[$t]}constructor(t,i,n,r,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ut(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ut(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},ae=class extends se{constructor(t,i){super(i),this.url=t,on(this,i)}toString(){return Ar(this._root)}};function on(e,t){t.value._routerState=e,t.children.forEach(i=>on(e,i))}function Ar(e){let t=e.children.length>0?` { ${e.children.map(Ar).join(", ")} } `:"";return`${e.value}${t}`}function Oe(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,N(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),N(t.params,i.params)||e.paramsSubject.next(i.params),Qr(t.url,i.url)||e.urlSubject.next(i.url),N(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ke(e,t){let i=N(e.params,t.params)&&Xr(e.url,t.url),n=!e.parent!=!t.parent;return i&&!n&&(!e.parent||Ke(e.parent,t.parent))}
1function Dr(e){return typeof e.title=="string"||e.title===null}var Ri=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=p,this.activateEvents=new nt,this.deactivateEvents=new nt,this.attachEvents=new nt,this.detachEvents=new nt,this.parentContexts=f(jt),this.location=f($n),this.changeDetector=f(Gt),this.environmentInjector=f(et),this.inputBinder=f(he,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Ye(n,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=Bt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ht]});let e=t;return e})(),Ye=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===W?this.route:t===jt?this.childContexts:this.parent.get(t,i)}},he=new O(""),sr=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,s=_t([r.queryParams,r.params,r.data]).pipe(x(([o,a,c],u)=>(c=h(h(h({},o),a),c),u===0?d(c):Promise.resolve(c)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=Qn(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(n,s)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Si(e,t,i){let n=Ut(e,t._root,i?i._root:void 0);return new oe(n,t)}function Ut(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=t.value;let r=wi(e,t,i);return new M(n,r)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Ut(e,a)),o}}let n=bi(t.value),r=t.children.map(s=>Ut(e,s));return new M(n,r)}}function wi(e,t,i){return t.children.map(n=>{for(let r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return Ut(e,n,r);return Ut(e,n)})}function bi(e){return new W(new E(e.url),new E(e.params),new E(e.queryParams),new E(e.fragment),new E(e.data),e.outlet,e.component,e)}var Mr="ngNavigationCancelingError";function Tr(e,t){let{redirectTo:i,navigationBehaviorOptions:n}=ct(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=Er(!1,T.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Er(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[Mr]=!0,i.cancellationCode=t,i}function Ii(e){return Or(e)&&ct(e.url)}function Or(e){return!!e&&e[Mr]}var Ai=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Tn({type:t,selectors:[["ng-component"]],standalone:!0,features:[Bn],decls:1,vars:0,template:function(r,s){r&1&&zn(0,"router-outlet")},dependencies:[Ri],encapsulation:2});let e=t;return e})();function Di(e,t){return e.providers&&!e._injector&&(e._injector=Ae(e.providers,t,`Route: ${e.path}`)),e._injector??t}function an(e){let t=e.children&&e.children.map(an),i=t?A(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==p&&
vendor: 4,101 bytes, line 1
1(i.component=Ai),i}function j(e){return e.outlet||p}function Mi(e,t){let i=e.filter(n=>j(n)===t);return i.push(...e.filter(n=>j(n)!==t)),i}function Lt(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var Ti=(e,t,i,n)=>C(r=>(new Xe(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)),Xe=class{constructor(t,i,n,r,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),Oe(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){let r=st(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(t,i,n){let r=t.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,s=st(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,s=st(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){let r=st(i);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new We(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Be(t.value.snapshot))}activateRoutes(t,i,n){let r=t.value,s=i?i.value:null;if(Oe(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Oe(a.route.value),this.activateChildRoutes(t,null,o.children)}else{let a=Lt(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)}},ue=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},at=class{constructor(t,i){this.component=t,this.route=i}};function Ei(e,t,i){let n=e._root,r=t?t._root:null;return Rt(n,r,i,[n.value])}function Oi(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function dt(e,t){let i=Symbol(),n=t.get(e,i);return n===i?typeof e=="function"&&!An(e)?e:t.get(e):n}function Rt(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=st(t);return e.children.forEach(o=>{Ui(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>It(a,i.getContext(o),r)),r}function Ui(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=xi(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ue(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Rt(e,t,a?a.children:null,n,r):Rt
1(e,t,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new at(a.outlet.component,o))}else o&&It(t,a,r),r.canActivateChecks.push(new ue(n)),s.component?Rt(e,null,a?a.children:null,n,r):Rt(e,null,i,n,r);return r}function xi(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!Y(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Y(e.url,t.url)||!N(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ke(e,t)||!N(e.queryParams,t.queryParams);case"paramsChange":default:return!Ke(e,t)}}function It(e,t,i){let n=st(e),r=e.value;Object.entries(n).forEach(([s,o])=>{r.component?t?It(o,t.children.getContext(s),i):It(o,null,i):It(o,t,i)}),r.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new at(t.outlet.component,r)):i.canDeactivateChecks.push(new at(null,r)):i.canDeactivateChecks.push(new at(null,r))}function kt(e){return typeof e=="function"}function Pi(e){return typeof e=="boolean"}function $i(e){return e&&kt(e.canLoad)}function Ni(e){return e&&kt(e.canActivate)}function ji(e){return e&&kt(e.canActivateChild)}function Li(e){return e&&kt(e.canDeactivate)}function ki(e){return e&&kt(e.canMatch)}function Ur(e){return e instanceof mn||e?.name==="EmptyError"}var Kt=Symbol("INITIAL_VALUE");function ht(){return x(e=>_t(e.map(t=>t.pipe(tt(1),wn(Kt)))).pipe(C(t=>{for(let i of t)if(i!==!0){if(i===Kt)return Kt;if(i===!1||i instanceof V)return i}return!0}),Z(t=>t!==Kt),tt(1)))}function zi(e,t){return D(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?d(A(h({},i),{guardsResult:!0})):Fi(o,n,r,e).pipe(D(a=>a&&Pi(a)?_i(n,s,e,t):d(a)),C(a=>A(h({},i),{guardsResult:a})))})}function Fi(e,t,i,n){return I(e).pipe(D(r=>Wi(r.component,r.route,i,t,n)),F(r=>r!==!0,!0))}function _i(e,t,i,n){return I(t).pipe(J(r=>Cn(Vi(r.route.parent,n),qi(r.route,n),Hi(e,r.path,i),Bi(e,r.route,i))),F(r=>r!==!0,!0))}function qi(e,t){return e!==null&&t&&t(new He(e)),d(!0)}function Vi(e,t){return e!==null&&t&&t(new Ve(e)),d(!0)}function Bi(e,t,i){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return d(!0);let r=n.map(s=>ve(()=>{let o=Lt(t)??i,a=dt(s,o),c=Ni(a)?a.canActivate(t,e):q(o,()=>a(t,e));return G(c).pipe(F())}));return d(r).pipe(ht())}function Hi(e,t,i){let n=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>Oi(o)).filter(o=>o!==null).map(o=>ve(()=>{let a=o.guards.map(c=>{let u=Lt(o.node)??i,l=dt(c,u),v=ji(l)?l.canActivateChild(n,e):q(u,()=>l(n,e));return G(v).pipe(F())});return d(a).pipe(ht())}));return d(s).pipe(ht())}function Wi(e,t,i,n,r){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{let c=Lt(t)??r,u=dt(a,c),l=Li(u)?u.canDeactivate(e,t,i,n):q(c,()=>u(e,t,i,n));return G(l).pipe(F())});return d(o).pipe(ht())}function Gi(e,t,i,n){let r=t.canLoad;if(r===void 0||r.length===0)return d(!0);let s=r.map(o=>{let a=dt(o,e),c=$i(a)?a.canLoad(t,i):q(e,()=>a(t,i));return G(c)});return d(s).pipe(ht(),xr(n))}function xr(e){return gn(w(t=>{if(ct(t))throw Tr(e,t)}),C(t=>t===!0))}function Qi(e,t,i,n){let r=t.canMatch;if(!r||r.length===0)return d(!0);let s=r.map(o=>{let a=dt(o,e),c=ki(a)?a.canMatch(t,i):q(e,()=>a(t,i));return G(c)});return d(s).pipe(ht(),xr(n))}var xt=class{constructor(t){this.segmentGroup=t||null}},ce=class extends Error{constructor(t){super(),this.urlTree=t}};function it(e){return gt(new xt(e))}function Zi(e){return gt(new b(4e3,!1))}function Ki(e){return gt(Er(!1,T.GuardRejected))}var Je=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return d(n);if(r.numberOfChildren>1||!r.children[p])return Zi(t.redirectTo);r=r.children[p]}}applyRedirectCommands(t,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n);if(i.startsWith("/"))throw new ce(r);return r}applyRedirectCreateUrlTree(t,i,n,r){let s=this.createSegmentGroup(t,i.root,n,r);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let n={};return Object.entries(t).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(t,i,n,r){let s=this.createSegments(t,i.segments,n,r),o={};
1return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,n,r)}),new m(s,o)}createSegments(t,i,n,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,n))}findPosParam(t,i,n){let r=n[i.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(t,i){let n=0;for(let r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}},tn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yi(e,t,i,n,r){let s=un(e,t,i);return s.matched?(n=Di(t,n),Qi(n,t,i,r).pipe(C(o=>o===!0?s:h({},tn)))):d(s)}function un(e,t,i){if(t.path==="**")return Xi(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},tn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(t.matcher||Gr)(i,e,t);if(!r)return h({},tn);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=r.consumed.length>0?h(h({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Xi(e){return{matched:!0,parameters:e.length>0?hr(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function or(e,t,i,n){return i.length>0&&es(e,i,n)?{segmentGroup:new m(t,ts(n,new m(i,e.children))),slicedSegments:[]}:i.length===0&&ns(e,i,n)?{segmentGroup:new m(e.segments,Ji(e,i,n,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function Ji(e,t,i,n){let r={};for(let s of i)if(de(e,t,s)&&!n[j(s)]){let o=new m([],{});r[j(s)]=o}return h(h({},n),r)}function ts(e,t){let i={};i[p]=t;for(let n of e)if(n.path===""&&j(n)!==p){let r=new m([],{});i[j(n)]=r}return i}function es(e,t,i){return i.some(n=>de(e,t,n)&&j(n)!==p)}function ns(e,t,i){return i.some(n=>de(e,t,n))}function de(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function rs(e,t,i,n){return j(e)!==n&&(n===p||!de(t,i,e))?!1:un(t,e,i).matched}function is(e,t,i){return t.length===0&&!e.children[i]}var en=class{};function ss(e,t,i,n,r,s,o="emptyOnly"){return new nn(e,t,i,n,r,o,s).recognize()}var os=31,nn=class{constructor(t,i,n,r,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Je(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new b(4002,`'${t.segmentGroup}'`)}recognize(){let t=or(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(C(i=>{let n=new Ot([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},p,this.rootComponentType,null,{}),r=new M(n,i),s=new ae("",r),o=di(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,p).pipe(X(n=>{if(n instanceof ce)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof xt?this.noMatchError(n):n}))}inheritParamsAndData(t,i){let n=t.value,r=sn(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(t,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0).pipe(C(s=>s instanceof M?[s]:[]))}processChildren(t,i,n){let r=[];for(let s of Object.keys(n.children))s==="primary"?r.unshift(s):r.push(s);return I(r).pipe(J(s=>{let o=n.children[s],a=Mi(i,s);return this.processSegmentGroup(t,a,o,s)}),Sn((s,o)=>(s.push(...o),s)),me(null),Rn(),D(s=>{if(s===null)return it(n);let o=Pr(s);return as(o),d(o)}))}processSegment(t,i,n,r,s,o){return I(i).pipe(J(a=>this.processSegmentAgainstRoute(a._injector??t,i,a,n,r,s,o).pipe(X(c=>{if(c instanceof xt)return d(null);throw c}))),F(a=>!!a),X(a=>{if(Ur(a))return is(n,r,s)?d(new en):it(n);throw a}))}processSegmentAgainstRoute(t,i,n,r,s,o,a){return rs(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,s,o):it(r):it(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=un(i,r,s);if(!a)return it(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>os&&(this.allowRedirects=!1));let v=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,v).pipe(D(g=>this.processSegment(t,n,i,g.concat(l),o,!1)))}matchSegmentAgainstRoute(t,i,n,r,s){let o=Yi(i,n,r,t,this.urlSerializer);return n.path==="**"&&(i.children={}),o.pipe(x(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,r).pipe(x(({routes:c})=>{let u=n._loadedInjector??t,{consumedSegments:l,remainingSegments:v,parameters:g}=a,y=new Ot(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cs(n),j(n),n.component??n._loadedComponent??null,n,ls(n)),{segmentGroup:ft,slicedSegments:pt}=or(i,l,v,c);if(pt.length===0&&ft.hasChildren())return this.processChildren(u,c,ft).pipe(C(Q=>Q===null?null:new M(y,Q)));if(c.length===0&&pt.length===0)return d(new M(y,[]));let fe=j(n)===s;return this.processSegment(u,c,ft,pt,fe?p:s,!0).pipe(C(Q=>new M(y,Q instanceof M?[Q]:[])))}))):it(i)))}getChildConfig(t,i,n){return i.children?d({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?d({routes:i._loadedRoutes,injector:i._loadedInjector}):Gi(t,i,n,this.urlSerializer).pipe(D(r=>r?this.configLoader.loadChildren(t,i).pipe(w(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ki(i))):d({routes:[],injector:t})}};function as(e){e.sort((t,i)=>t.value.outlet===p?-1:i.value.outlet===p?1:t.value.outlet.localeCompare(i.value.outlet))}function us(e){let t=e.value.routeConfig;return t&&t.path===""}function Pr(e){let t=[],i=new Set;for(let n of e){if(!us(n)){t.push(n);continue}let r=t.find(s=>
1n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):t.push(n)}for(let n of i){let r=Pr(n.children);t.push(new M(n.value,r))}return t.filter(n=>!i.has(n))}function cs(e){return e.data||{}}function ls(e){return e.resolve||{}}function hs(e,t,i,n,r,s){return D(o=>ss(e,t,i,n,o.extractedUrl,r,s).pipe(C(({state:a,tree:c})=>A(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function ds(e,t){return D(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return d(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of $r(c))o.add(u);let a=0;return I(o).pipe(J(c=>s.has(c)?fs(c,n,e,t):(c.data=sn(c,c.parent,e).resolve,d(void 0))),w(()=>a++),Ce(1),D(c=>a===o.size?d(i):z))})}function $r(e){let t=e.children.map(i=>$r(i)).flat();return[e,...t]}function fs(e,t,i,n){let r=e.routeConfig,s=e._resolve;return r?.title!==void 0&&!Dr(r)&&(s[$t]=r.title),ps(s,e,t,n).pipe(C(o=>(e._resolvedData=o,e.data=sn(e,e.parent,i).resolve,null)))}function ps(e,t,i,n){let r=Pe(e);if(r.length===0)return d({});let s={};return I(r).pipe(D(o=>gs(e[o],t,i,n).pipe(F(),w(a=>{s[o]=a}))),Ce(1),yn(s),X(o=>Ur(o)?z:gt(o)))}function gs(e,t,i,n){let r=Lt(t)??n,s=dt(e,r),o=s.resolve?s.resolve(t,i):q(r,()=>s(t,i));return G(o)}function Ue(e){return x(t=>{let i=e(t);return i?I(i).pipe(C(()=>t)):d(t)})}var Nr=(()=>{let t=class t{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(n){return n.data[$t]}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:()=>f(vs),providedIn:"root"});let e=t;return e})(),vs=(()=>{let t=class t extends Nr{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};t.\u0275fac=function(r){return new(r||t)(_(tr))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zt=new O("",{providedIn:"root",factory:()=>({})}),Pt=new O(""),cn=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(Wt)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return d(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=G(n.loadComponent()).pipe(C(jr),w(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),qt(()=>{this.componentLoaders.delete(n)})),s=new ge(r,()=>new k).pipe(pe());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=ms(r,this.compiler,n,this.onLoadEndListener).pipe(qt(()=>{this.childrenLoaders.delete(r)})),a=new ge(o,()=>new k).pipe(pe());return this.childrenLoaders.set(r,a),a}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ms(e,t,i,n){return G(e.loadChildren()).pipe(C(jr),D(r=>r instanceof jn||Array.isArray(r)?d(r):I(t.compileModuleAsync(r))),C(r=>{n&&n(e);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(Pt,[],{optional:!0,self:!0}).flat()),{routes:o.map(an),injector:s}}))}function Cs(e){return e&&typeof e=="object"&&"default"in e}function jr(e){return Cs(e)?e.default:e}var ln=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:()=>f(ys),providedIn:"root"});let e=t;return e})(),ys=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Lr=new O(""),kr=new O("");function Rs(e,t,i){let n=e.get(kr),r=e.get(Zn);return e.get(rt).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),a=r.startViewTransition(()=>(s(),Ss(e))),{onViewTransitionCreated:c}=n;return c&&q(e,()=>c({transition:a,from:t,to:i})),o})}function Ss(e){return new Promise(t=>{Ie(t,{injector:e})})}var hn=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new k,this.transitionAbortSubject=ne
1w k,this.configLoader=f(cn),this.environmentInjector=f(et),this.urlSerializer=f(Nt),this.rootContexts=f(jt),this.location=f(Ct),this.inputBindingEnabled=f(he,{optional:!0})!==null,this.titleStrategy=f(Nr),this.options=f(zt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(ln),this.createViewTransition=f(Lr,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>d(void 0),this.rootComponentType=null;let n=s=>this.events.next(new _e(s)),r=s=>this.events.next(new qe(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(A(h(h({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Z(o=>o.id!==0),C(o=>A(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{let a=!1,c=!1;return d(o).pipe(x(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",T.SupersededByNewNavigation),z;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?A(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&v!=="reload"){let g="";return this.events.next(new H(u.id,this.urlSerializer.serialize(u.rawUrl),g,ne.IgnoredSameUrlNavigation)),u.resolve(null),z}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return d(u).pipe(x(g=>{let y=this.transitions?.getValue();return this.events.next(new lt(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),y!==this.transitions?.getValue()?z:Promise.resolve(g)}),hs(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),w(g=>{o.targetSnapshot=g.targetSnapshot,o.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=A(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let y=new re(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(y)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:g,extractedUrl:y,source:ft,restoredState:pt,extras:fe}=u,Q=new lt(g,this.urlSerializer.serialize(y),ft,pt);this.events.next(Q);let Wr=Ir(this.rootComponentType).snapshot;return this.currentTransition=o=A(h({},u),{targetSnapshot:Wr,urlAfterRedirects:y,extras:A(h({},fe),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let g="";return this.events.next(new H(u.id,this.urlSerializer.serialize(u.extractedUrl),g,ne.IgnoredByUrlHandlingStrategy)),u.resolve(null),z}}),w(u=>{let l=new Le(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=o=A(h({},u),{guards:Ei(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),zi(this.environmentInjector,u=>this.events.next(u)),w(u=>{if(o.guardsResult=u.guardsResult,ct(u.guardsResult))throw Tr(this.urlSerializer,u.guardsResult);let l=new ke(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Z(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",T.GuardRejected),!1)),Ue(u=>{if(u.guards.canActivateChecks.length)return d(u).pipe(w(l=>{let v=new ze(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(v)}
1),x(l=>{let v=!1;return d(l).pipe(ds(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(l,"",T.NoDataFromResolver)}}))}),w(l=>{let v=new Fe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(v)}))}),Ue(u=>{let l=v=>{let g=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(v.routeConfig).pipe(w(y=>{v.component=y}),C(()=>{})));for(let y of v.children)g.push(...l(y));return g};return _t(l(u.targetSnapshot.root)).pipe(me(null),tt(1))}),Ue(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,v=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return v?I(v).pipe(C(()=>o)):d(o)}),C(u=>{let l=Si(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=A(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),w(()=>{this.events.next(new Tt)}),Ti(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),tt(1),w({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),bn(this.transitionAbortSubject.pipe(w(u=>{throw u}))),qt(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",T.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),X(u=>{if(c=!0,Or(u))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Ii(u)?this.events.next(new Et(u.url)):o.resolve(!1);else{this.events.next(new Mt(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return z}))}))}cancelNavigationTransition(n,r,s){let o=new B(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ws(e){return e!==bt}var bs=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:()=>f(Is),providedIn:"root"});let e=t;return e})(),rn=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},Is=(()=>{let t=class t extends rn{};t.\u0275fac=(()=>{let n;return function(s){return(n||(n=Re(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zr=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:()=>f(As),providedIn:"root"});let e=t;return e})(),As=(()=>{let t=class t extends zr{constructor(){super(...arguments),this.location=f(Ct),this.urlSerializer=f(Nt),this.options=f(zt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(ln),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ir(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof lt)this.stateMemento=this.createStateMemento();else if(n instanceof H)this.rawUrlTree=r.initialUrl;else if(n instanceof re){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof Tt?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof B&&(n.code===T.GuardRejected||n.c
1ode===T.NoDataFromResolver)?this.restoreHistory(r):n instanceof Mt?this.restoreHistory(r,!0):n instanceof $&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(s){return(n||(n=Re(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),St=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(St||{});function Fr(e,t){e.events.pipe(Z(i=>i instanceof $||i instanceof B||i instanceof Mt||i instanceof H),C(i=>i instanceof $||i instanceof H?St.COMPLETE:(i instanceof B?i.code===T.Redirect||i.code===T.SupersededByNewNavigation:!1)?St.REDIRECTING:St.FAILED),Z(i=>i!==St.REDIRECTING),tt(1)).subscribe(()=>{t()})}function Ds(e){throw e}var Ms={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ts={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},L=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(Hn),this.stateManager=f(zr),this.options=f(zt,{optional:!0})||{},this.pendingTasks=f(Ln),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(hn),this.urlSerializer=f(Nt),this.location=f(Ct),this.urlHandlingStrategy=f(ln),this._events=new k,this.errorHandler=this.options.errorHandler||Ds,this.navigated=!1,this.routeReuseStrategy=f(bs),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(Pt,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(he,{optional:!0}),this.eventsSubscription=new pn,this.isNgZoneEnabled=f(rt)instanceof rt&&rt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==T.Redirect&&r.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $)this.navigated=!0;else if(r instanceof Et){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ws(s.source)};this.scheduleNavigation(a,bt,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Os(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(an),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:a,v=null;switch(c){case"merge":v=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}v!==null&&(v=this.removeEmptyProps(v));let g;try{let y=s?s.snapshot:this.routerState.snapshot.root;g=Rr(y)}
1catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),g=this.currentUrlTree.root}return Sr(g,n,v,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=ct(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,bt,null,r)}navigate(n,r={skipLocationChange:!1}){return Es(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=h({},Ms):r===!1?s=h({},Ts):s=r,ct(n))return er(this.currentUrlTree,n,s);let o=this.parseUrl(n);return er(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((g,y)=>{c=g,u=y});let v=this.pendingTasks.add();return Fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Es(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new b(4008,!1)}function Os(e){return!(e instanceof Tt)&&!(e instanceof Et)}var ar=(()=>{let t=class t{constructor(n,r,s,o,a,c){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new k,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof $&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:xn(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(r){return new(r||t)(P(L),P(W),Un("tabindex"),P(be),P(we),P(mt))},t.\u0275dir=Bt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&Fn("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&kn("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Vt.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Qt],skipLocationChange:[Vt.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Qt],replaceUrl:[Vt.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Qt],routerLink:"routerLink"},standalone:!0,features:[Nn,Ht]});let e=t;return e})(),go=(()=>{let t=class t{get isActive(){return this._isActive}constructor(n,r,s,o,a){this.router=n,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new nt,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof $&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(vt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(n).pipe(vt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(s=>!!s)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();
1this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=Us(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};t.\u0275fac=function(r){return new(r||t)(P(L),P(we),P(be),P(Gt),P(ar,8))},t.\u0275dir=Bt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&_n(o,ar,5),r&2){let a;qn(a=Vn())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ht]});let e=t;return e})();function Us(e){return!!e.paths}var le=class{};var xs=(()=>{let t=class t{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Z(n=>n instanceof $),J(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ae(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return I(s).pipe(vt())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=d(null);let o=s.pipe(D(a=>a===null?d(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return I([o,a]).pipe(vt())}else return o})}};t.\u0275fac=function(r){return new(r||t)(_(L),_(Wt),_(et),_(le),_(cn))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_r=new O(""),Ps=(()=>{let t=class t{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=f(et),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof lt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof $?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof H&&n.code===ne.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ie&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>fn(this,null,function*(){yield new Promise(s=>{setTimeout(()=>{s()}),Ie(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new ie(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(r){Pn()},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function vo(e,...t){return On([{provide:Pt,multi:!0,useValue:e},[],{provide:W,useFactory:qr,deps:[L]},{provide:Me,multi:!0,useFactory:Vr},t.map(i=>i.\u0275providers)])}function qr(e){return e.routerState.root}function Ft(e,t){return{\u0275kind:e,\u0275providers:t}}function Vr(){let e=f(Se);return t=>{let i=e.get(Gn);if(t!==i.components[0])return;let n=e.get(L),r=e.get(Br);e.get(dn)===1&&n.initialNavigation(),e.get(Hr,null,ye.Optional)?.setUpPreloading(),e.get(_r,null,ye.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Br=new O("",{factory:()=>new k}),dn=new O("",{providedIn:"root",factory:()=>1});function $s(){return Ft(2,[{provide:dn,useValue:0},{provide:De,multi:!0,deps:[Se],useFactory:t=>{let i=t.get(Kn,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=t.get(L),s=t.get(Br);Fr(r,()=>{n(!0)}),t.get(hn).afterPreactivation=()=>(n(!0),s.closed?d(void 0):s),r.initialNavigation()}))}}])}function Ns(){return Ft(3,[{provide:De,multi:!0,useFactory:()=>{let t=f(L);return()=>{t.setUpLocationChangeListener()}}},{provide:dn,useValue:2}])}
1var Hr=new O("");function js(e){return Ft(0,[{provide:Hr,useExisting:xs},{provide:le,useExisting:e}])}function Ls(){return Ft(8,[sr,{provide:he,useExisting:sr}])}function ks(e){let t=[{provide:Lr,useValue:Rs},{provide:kr,useValue:h({skipNextTransition:!!e?.skipInitialTransition},e)}];return Ft(9,t)}var ur=new O("ROUTER_FORROOT_GUARD"),zs=[Ct,{provide:Nt,useClass:At},L,jt,{provide:W,useFactory:qr,deps:[L]},cn,[]],mo=(()=>{let t=class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[zs,[],{provide:Pt,multi:!0,useValue:n},{provide:ur,useFactory:Vs,deps:[[L,new Dn,new Mn]]},{provide:zt,useValue:r||{}},r?.useHash?_s():qs(),Fs(),r?.preloadingStrategy?js(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Bs(r):[],r?.bindToComponentInputs?Ls().\u0275providers:[],r?.enableViewTransitions?ks().\u0275providers:[],Hs()]}}static forChild(n){return{ngModule:t,providers:[{provide:Pt,multi:!0,useValue:n}]}}};t.\u0275fac=function(r){return new(r||t)(_(ur,8))},t.\u0275mod=En({type:t}),t.\u0275inj=In({});let e=t;return e})();function Fs(){return{provide:_r,useFactory:()=>{let e=f(Jn),t=f(rt),i=f(zt),n=f(hn),r=f(Nt);return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ps(r,n,e,t,i)}}}function _s(){return{provide:mt,useClass:Xn}}function qs(){return{provide:mt,useClass:Yn}}function Vs(e){return"guarded"}function Bs(e){return[e.initialNavigation==="disabled"?Ns().\u0275providers:[],e.initialNavigation==="enabledBlocking"?$s().\u0275providers:[]]}var cr=new O("");function Hs(){return[{provide:cr,useFactory:Vr},{provide:Me,multi:!0,useExisting:cr}]}export{$ as a,W as b,Ri as c,L as d,ar as e,go as f,vo as g,Ls as h,mo as i}; 2/**i18n:6ff56e1237b5ca15ba2d806f4d3091c6d8ad6faa4340cb54c69cbdda31c6edcb*/
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.