-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-VT3INCVS.js
1 lines (1 loc) · 173 KB
/
main-VT3INCVS.js
1
import{d as Bs}from"./chunk-WMURG36E.js";import{a as qs,b as Vs,c as mi,d as Hs,e as Ks}from"./chunk-IK75PPQG.js";import{d as Ve,e as gi,f as gn,h as js,p as Us,t as $s,u as zs}from"./chunk-KUIU3T4D.js";import{$ as R,A as ci,Aa as gs,Ab as Ds,B as at,Ba as ms,Bb as Ms,C as is,Cb as Os,Db as W,E as ln,Eb as Q,F as Oe,Fb as ve,G as ui,H as rs,K as ss,Lb as Be,M as os,Ma as ys,Mb as fi,N as me,Nb as Ns,O as as,Ob as Is,P as V,Pa as vs,Pb as Ps,Qb as ks,R as _,Ra as Mt,Rb as Ls,Sa as C,Ta as hn,Ua as _s,V as O,Va as lt,W as At,Wa as Ce,Wb as ht,X as ls,Xa as Ot,Y as le,Z as hi,_ as L,a as Yr,aa as cs,ac as xs,b as Xr,ba as us,bb as ws,bc as Fs,cb as Ss,cc as fn,d as ii,da as cn,db as Ne,e as ri,ea as be,eb as Nt,f as ge,fb as ye,g as ne,ga as un,h as Zr,i as Me,ib as bs,j as ie,ja as di,jb as Cs,jc as pi,k as S,ka as hs,kb as Es,l as Rt,la as $e,lc as qe,m as Jr,n as es,na as ds,o as N,oa as F,p as si,pa as ze,pb as Rs,q as re,qc as pn,r as oi,rb as Ts,s as ts,sa as fs,sb as dn,t as ai,ta as Y,tb as ct,ub as ut,v as li,w as ns,wb as It,x as se,xa as ps,xb as As,y as ot,ya as Dt,z as Tt}from"./chunk-GR3MIE2K.js";import{b as Ws}from"./chunk-UPEGBOOY.js";import{a as y,b as z,c as Gr}from"./chunk-4CLCTAJ7.js";var T=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(T||{}),_e="*";function kt(n,t=null){return{type:T.Animate,styles:t,timings:n}}function wi(n,t=null){return{type:T.Sequence,steps:n,options:t}}function ce(n){return{type:T.Style,styles:n,offset:null}}var dt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:()=>R(Ua),providedIn:"root"})}return n})(),yi=class{},Ua=(()=>{class n extends dt{animationModuleType=R(Dt,{optional:!0});_nextAnimationId=0;_renderer;constructor(e,i){super();let r={id:"0",encapsulation:ms.None,styles:[],data:{animation:[]}};if(this._renderer=e.createRenderer(i.body,r),this.animationModuleType===null&&!za(this._renderer))throw new _(3600,!1)}build(e){let i=this._nextAnimationId;this._nextAnimationId++;let r=Array.isArray(e)?wi(e):e;return Qs(this._renderer,null,i,"register",[r]),new vi(i,this._renderer)}static \u0275fac=function(i){return new(i||n)(L(lt),L(Ve))};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),vi=class extends yi{_id;_renderer;constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new _i(this._id,t,e||{},this._renderer)}},_i=class{id;element;_renderer;parentPlayer=null;_started=!1;constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){Qs(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return $a(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0};function Qs(n,t,e,i,r){n.setProperty(t,`@@${e}:${i}`,r)}function $a(n){let t=n.\u0275type;return t===0?n:t===1?n.animationRenderer:null}function za(n){let t=n.\u0275type;return t===0||t===1}var Ie=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Pt=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,i=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},mn="!";function Ys(n){return new _(3e3,!1)}function Ba(){return new _(3100,!1)}function qa(){return new _(3101,!1)}function Va(n){return new _(3001,!1)}function Ha(n){return new _(3003,!1)}function Ka(n){return new _(3004,!1)}function Wa(n,t){return new _(3005,!1)}function Qa(){return new _(3006,!1)}function Ga(){return new _(3007,!1)}function Ya(n,t){return new _(3008,!1)}function Xa(n){return new _(3002,!1)}function Za(n,t,e,i,r){return new _(3010,!1)}function Ja(){return new _(3011,!1)}function el(){return new _(3012,!1)}function tl(){return new _(3200,!1)}function nl(){return new _(3202,!1)}function il(){return new _(3013,!1)}function rl(n){return new _(3014,!1)}function sl(n){return new _(3015,!1)}function ol(n){return new _(3016,!1)}function al(n,t){return new _(3404,!1)}function ll(n){return new _(3502,!1)}function cl(n){return new _(3503,!1)}function ul(){return new _(3300,!1)}function hl(n){return new _(3504,!1)}function dl(n){return new _(3301,!1)}function fl(n,t){return new _(3302,!1)}function pl(n){return new _(3303,!1)}function gl(n,t){return new _(3400,!1)}function ml(n){return new _(3401,!1)}function yl(n){return new _(3402,!1)}function vl(n,t){return new _(3505,!1)}function Pe(n){switch(n.length){case 0:return new Ie;case 1:return n[0];default:return new Pt(n)}}function uo(n,t,e=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),u=c==o,h=u&&a||new Map;l.forEach((f,p)=>{let d=p,m=f;if(p!=="offset")switch(d=n.normalizePropertyName(d,r),m){case mn:m=e.get(p);break;case _e:m=i.get(p);break;default:m=n.normalizeStyleValue(p,d,m,r);break}h.set(d,m)}),u||s.push(h),a=h,o=c}),r.length)throw ll(r);return s}function Bi(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Si(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Si(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Si(e,"destroy",n)));break}}function Si(n,t,e){let i=e.totalTime,r=!!e.disabled,s=qi(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function qi(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Z(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Xs(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var _l=typeof document>"u"?null:document.documentElement;function Vi(n){let t=n.parentNode||n.host||null;return t===_l?null:t}function wl(n){return n.substring(1,6)=="ebkit"}var He=null,Zs=!1;function Sl(n){He||(He=bl()||{},Zs=He.style?"WebkitAppearance"in He.style:!1);let t=!0;return He.style&&!wl(n)&&(t=n in He.style,!t&&Zs&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in He.style)),t}function bl(){return typeof document<"u"?document.body:null}function ho(n,t){for(;t;){if(t===n)return!0;t=Vi(t)}return!1}function fo(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var Hi=(()=>{class n{validateStyleProperty(e){return Sl(e)}containsElement(e,i){return ho(e,i)}getParentElement(e){return Vi(e)}query(e,i,r){return fo(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Ie(r,s)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:n.\u0275fac})}return n})(),Qe=class{static NOOP=new Hi},Ge=class{};var Cl=1e3,po="{{",El="}}",go="ng-enter",Ai="ng-leave",yn="ng-trigger",bn=".ng-trigger",Js="ng-animating",Di=".ng-animating";function Re(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Mi(parseFloat(t[1]),t[2])}function Mi(n,t){switch(t){case"s":return n*Cl;default:return n}}function Cn(n,t,e){return n.hasOwnProperty("duration")?n:Rl(n,t,e)}function Rl(n,t,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return t.push(Ys(n)),{duration:0,delay:0,easing:""};r=Mi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Mi(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(Ba()),a=!0),s<0&&(t.push(qa()),a=!0),a&&t.splice(l,0,Ys(n))}return{duration:r,delay:s,easing:o}}function Tl(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function we(n,t,e){t.forEach((i,r)=>{let s=Ki(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i})}function We(n,t){t.forEach((e,i)=>{let r=Ki(i);n.style[r]=""})}function Lt(n){return Array.isArray(n)?n.length==1?n[0]:wi(n):n}function Al(n,t,e){let i=t.params||{},r=mo(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(Va(s))})}var Oi=new RegExp(`${po}\\s*(.+?)\\s*${El}`,"g");function mo(n){let t=[];if(typeof n=="string"){let e;for(;e=Oi.exec(n);)t.push(e[1]);Oi.lastIndex=0}return t}function Ft(n,t,e){let i=`${n}`,r=i.replace(Oi,(s,o)=>{let a=t[o];return a==null&&(e.push(Ha(o)),a=""),a.toString()});return r==i?n:r}var Dl=/-+([a-z0-9])/g;function Ki(n){return n.replace(Dl,(...t)=>t[1].toUpperCase())}function Ml(n,t){return n===0||t===0}function Ol(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<t.length;s++){let o=t[s];r.forEach(a=>o.set(a,Wi(n,a)))}}return t}function X(n,t,e){switch(t.type){case T.Trigger:return n.visitTrigger(t,e);case T.State:return n.visitState(t,e);case T.Transition:return n.visitTransition(t,e);case T.Sequence:return n.visitSequence(t,e);case T.Group:return n.visitGroup(t,e);case T.Animate:return n.visitAnimate(t,e);case T.Keyframes:return n.visitKeyframes(t,e);case T.Style:return n.visitStyle(t,e);case T.Reference:return n.visitReference(t,e);case T.AnimateChild:return n.visitAnimateChild(t,e);case T.AnimateRef:return n.visitAnimateRef(t,e);case T.Query:return n.visitQuery(t,e);case T.Stagger:return n.visitStagger(t,e);default:throw Ka(t.type)}}function Wi(n,t){return window.getComputedStyle(n)[t]}var Nl=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),En=class extends Ge{normalizePropertyName(t,e){return Ki(t)}normalizeStyleValue(t,e,i,r){let s="",o=i.toString().trim();if(Nl.has(e)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Wa(t,i))}return o+s}};var Rn="*";function Il(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>Pl(i,e,t)):e.push(n),e}function Pl(n,t,e){if(n[0]==":"){let l=kl(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(sl(n)),t;let r=i[1],s=i[2],o=i[3];t.push(eo(r,o));let a=r==Rn&&o==Rn;s[0]=="<"&&!a&&t.push(eo(o,r))}function kl(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(ol(n)),"* => *"}}var vn=new Set(["true","1"]),_n=new Set(["false","0"]);function eo(n,t){let e=vn.has(n)||_n.has(n),i=vn.has(t)||_n.has(t);return(r,s)=>{let o=n==Rn||n==r,a=t==Rn||t==s;return!o&&e&&typeof r=="boolean"&&(o=r?vn.has(n):_n.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?vn.has(t):_n.has(t)),o&&a}}var yo=":self",Ll=new RegExp(`s*${yo}s*,?`,"g");function vo(n,t,e,i){return new Ni(n).build(t,e,i)}var to="",Ni=class{_driver;constructor(t){this._driver=t}build(t,e,i){let r=new Ii(e);return this._resetContextStyleTimingState(r),X(this,Lt(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=to,t.collectedStyles=new Map,t.collectedStyles.set(to,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0,s=[],o=[];return t.name.charAt(0)=="@"&&e.errors.push(Qa()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==T.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(a.type==T.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(Ga())}),{type:T.Trigger,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{mo(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&e.errors.push(Ya(t.name,[...s.values()]))}return{type:T.State,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=X(this,Lt(t.animation),e),r=Il(t.expr,e.errors);return{type:T.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ke(t.options)}}visitSequence(t,e){return{type:T.Sequence,steps:t.steps.map(i=>X(this,i,e)),options:Ke(t.options)}}visitGroup(t,e){let i=e.currentTime,r=0,s=t.steps.map(o=>{e.currentTime=i;let a=X(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:T.Group,steps:s,options:Ke(t.options)}}visitAnimate(t,e){let i=Ul(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:ce({});if(s.type==T.Keyframes)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=ce(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:T.Animate,timings:i,style:r,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)typeof a=="string"?a===_e?i.push(a):e.errors.push(Xa(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(po)>=0){s=!0;break}}}),{type:T.Style,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l),h=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(e.errors.push(Za(l,u.startTime,u.endTime,s,r)),h=!1),s=u.startTime),h&&c.set(l,{startTime:s,endTime:r}),e.options&&Al(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:T.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Ja()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,u=t.steps.map(A=>{let P=this._makeStyleAst(A,e),x=P.offset!=null?P.offset:jl(P.styles),$=0;return x!=null&&(s++,$=P.offset=x),l=l||$<0||$>1,a=a||$<c,c=$,o.push($),P});l&&e.errors.push(el()),a&&e.errors.push(tl());let h=t.steps.length,f=0;s>0&&s<h?e.errors.push(nl()):s==0&&(f=r/(h-1));let p=h-1,d=e.currentTime,m=e.currentAnimateTimings,b=m.duration;return u.forEach((A,P)=>{let x=f>0?P==p?1:f*P:o[P],$=x*b;e.currentTime=d+m.delay+$,m.duration=$,this._validateStyleAst(A,e),A.offset=x,i.styles.push(A)}),i}visitReference(t,e){return{type:T.Reference,animation:X(this,Lt(t.animation),e),options:Ke(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:T.AnimateChild,options:Ke(t.options)}}visitAnimateRef(t,e){return{type:T.AnimateRef,animation:this.visitReference(t.animation,e),options:Ke(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[s,o]=xl(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Z(e.collectedStyles,e.currentQuerySelector,new Map);let a=X(this,Lt(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:T.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ke(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(il());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Cn(t.timings,e.errors,!0);return{type:T.Stagger,animation:X(this,Lt(t.animation),e),timings:i,options:null}}};function xl(n){let t=!!n.split(/\s*,\s*/).find(e=>e==yo);return t&&(n=n.replace(Ll,"")),n=n.replace(/@\*/g,bn).replace(/@\w+/g,e=>bn+"-"+e.slice(1)).replace(/:animating/g,Di),[n,t]}function Fl(n){return n?y({},n):null}var Ii=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function jl(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function Ul(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Cn(n,t).duration;return bi(s,0,"")}let e=n;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=bi(0,0,"");return s.dynamic=!0,s.strValue=e,s}let r=Cn(e,t);return bi(r.duration,r.delay,r.easing)}function Ke(n){return n?(n=y({},n),n.params&&(n.params=Fl(n.params))):n={},n}function bi(n,t,e){return{duration:n,delay:t,easing:e}}function Qi(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var jt=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},$l=1,zl=":enter",Bl=new RegExp(zl,"g"),ql=":leave",Vl=new RegExp(ql,"g");function _o(n,t,e,i,r,s=new Map,o=new Map,a,l,c=[]){return new Pi().buildKeyframes(n,t,e,i,r,s,o,a,l,c)}var Pi=class{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new jt;let h=new ki(t,e,c,r,s,u,[]);h.options=l;let f=l.delay?Re(l.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([o],null,h.errors,l),X(this,i,h);let p=h.timelines.filter(d=>d.containsAnimation());if(p.length&&a.size){let d;for(let m=p.length-1;m>=0;m--){let b=p[m];if(b.element===e){d=b;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,h.errors,l)}return p.length?p.map(d=>d.buildKeyframes()):[Qi(e,[],[],[],0,f,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let r of t){let s=r?.delay;if(s){let o=typeof s=="number"?s:Re(Ft(s,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime,o=i.duration!=null?Re(i.duration):null,a=i.delay!=null?Re(i.delay):null;return o!==0&&t.forEach(l=>{let c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,r=e,s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==T.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Tn);let o=Re(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>X(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],r=e.currentTimeline.currentTime,s=t.options&&t.options.delay?Re(t.options.delay):0;t.steps.forEach(o=>{let a=e.createSubContext(t.options);s&&a.delayNextStep(s),X(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,r=e.params?Ft(i,e.params,e.errors):i;return Cn(r,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let s=t.style;s.type==T.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Re(r.delay):0;s&&(e.previousNode.type===T.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Tn);let o=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;let h=e.createSubContext(t.options,c);s&&h.delayNextStep(s),c===e.element&&(l=h.currentTimeline),X(this,t.animation,h),h.currentTimeline.applyStylesToKeyframe();let f=h.currentTimeline.currentTime;o=Math.max(o,f)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1),l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let u=e.currentTimeline;l&&u.delayNextStep(l);let h=u.currentTime;X(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-h+(r.startTime-i.currentTimeline.startTime)}},Tn={},ki=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Tn;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new An(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,r=this.options;i.duration!=null&&(r.duration=Re(i.duration)),i.delay!=null&&(r.delay=Re(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Ft(s[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){let r=e||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Tn,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new Li(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=t.replace(Bl,"."+this._enterClassName),t=t.replace(Vl,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,t,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(rl(e)),a}},An=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new n(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=$l,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||_e),this._currentKeyframe.set(e,_e);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);let s=r&&r.params||{},o=Hl(t,this._globalTimelineStyles);for(let[a,l]of o){let c=Ft(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??_e),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,h)=>{u===mn?t.add(h):u===_e&&e.add(h)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...t.values()],o=[...e.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Qi(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Li=class extends An{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],o=i+e,a=e/o,l=new Map(t[0]);l.set("offset",0),s.push(l);let c=new Map(t[0]);c.set("offset",no(a)),s.push(c);let u=t.length-1;for(let h=1;h<=u;h++){let f=new Map(t[h]),p=f.get("offset"),d=e+p*i;f.set("offset",no(d/o)),s.push(f)}i=o,e=0,r="",t=s}return Qi(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function no(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function Hl(n,t){let e=new Map,i;return n.forEach(r=>{if(r==="*"){i??=t.keys();for(let s of i)e.set(s,_e)}else for(let[s,o]of r)e.set(s,o)}),e}function io(n,t,e,i,r,s,o,a,l,c,u,h,f){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}var Ci={},Dn=class{_triggerName;ast;_stateStyles;constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return Kl(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,s,o,a,l,c,u){let h=[],f=this.ast.options&&this.ast.options.params||Ci,p=a&&a.params||Ci,d=this.buildStyles(i,p,h),m=l&&l.params||Ci,b=this.buildStyles(r,m,h),A=new Set,P=new Map,x=new Map,$=r==="void",rt={params:wo(m,f),delay:this.ast.options?.delay},fe=u?[]:_o(t,e,this.ast.animation,s,o,d,b,rt,c,h),H=0;return fe.forEach(K=>{H=Math.max(K.duration+K.delay,H)}),h.length?io(e,this._triggerName,i,r,$,d,b,[],[],P,x,H,h):(fe.forEach(K=>{let Fe=K.element,st=Z(P,Fe,new Set);K.preStyleProps.forEach(je=>st.add(je));let Hr=Z(x,Fe,new Set);K.postStyleProps.forEach(je=>Hr.add(je)),Fe!==e&&A.add(Fe)}),io(e,this._triggerName,i,r,$,d,b,fe,[...A.values()],P,x,H))}};function Kl(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}function wo(n,t){let e=y({},t);return Object.entries(n).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var xi=class{styles;defaultParams;normalizer;constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,r=wo(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Ft(o,r,e));let l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(a,o)})}),i}};function Wl(n,t,e){return new Fi(n,t,e)}var Fi=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,e.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new xi(r.style,s,i))}),ro(this.states,"true","1"),ro(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Dn(t,r,this.states))}),this.fallbackTransition=Ql(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function Ql(n,t,e){let i=[(o,a)=>!0],r={type:T.Sequence,steps:[],options:null},s={type:T.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Dn(n,s,t)}function ro(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var Gl=new jt,ji=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i}register(t,e){let i=[],r=[],s=vo(this._driver,e,i,r);if(i.length)throw cl(i);r.length&&void 0,this._animations.set(t,s)}_buildPlayer(t,e,i){let r=t.element,s=uo(this._normalizer,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let r=[],s=this._animations.get(t),o,a=new Map;if(s?(o=_o(this._driver,e,s,go,Ai,new Map,new Map,i,Gl,r),o.forEach(u=>{let h=Z(a,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(ul()),o=[]),r.length)throw hl(r);a.forEach((u,h)=>{u.forEach((f,p)=>{u.set(p,this._driver.computeStyle(h,p,_e))})});let l=o.map(u=>{let h=a.get(u.element);return this._buildPlayer(u,new Map,h)}),c=Pe(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw dl(t);return e}listen(t,e,i,r){let s=qi(e,"","","");return Bi(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if(i=="register"){this.register(t,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(t,e,o);return}let s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t);break}}},so="ng-animate-queued",Yl=".ng-animate-queued",Ei="ng-animate-disabled",Xl=".ng-animate-disabled",Zl="ng-star-inserted",Jl=".ng-star-inserted",ec=[],So={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ue="__ng_removed",Ut=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=ic(r),i){let s=t,{value:o}=s,a=Gr(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},xt="void",Ri=new Ut(xt),Ui=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+t,oe(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw fl(i,e);if(i==null||i.length==0)throw pl(e);if(!rc(i))throw gl(i,e);let s=Z(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);let a=Z(this._engine.statesByElement,t,new Map);return a.has(e)||(oe(t,yn),oe(t,yn+"-"+e),a.set(e,Ri)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw ml(t);return e}trigger(t,e,i,r=!0){let s=this._getTrigger(e),o=new $t(this.id,e,t),a=this._engine.statesByElement.get(t);a||(oe(t,yn),oe(t,yn+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),c=new Ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Ri),!(c.value===xt)&&l.value===c.value){if(!ac(l.params,c.params)){let m=[],b=s.matchStyles(l.value,l.params,m),A=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{We(t,b),we(t,A)})}return}let f=Z(this._engine.playersByElement,t,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let p=s.matchTransition(l.value,c.value,t,c.params),d=!1;if(!p){if(!r)return;p=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:d}),d||(oe(t,so),o.onStart(()=>{ft(t,so)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let b=this._engine.playersByElement.get(t);if(b){let A=b.indexOf(o);A>=0&&b.splice(A,1)}}),this.players.push(o),f.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,bn,!0);i.forEach(r=>{if(r[ue])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){let s=this._engine.statesByElement.get(t),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let u=this.trigger(t,c,xt,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Pe(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let r=new Set;e.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Ri,u=new Ut(xt),h=new $t(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{let s=t[ue];(!s||s===So)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){oe(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=qi(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Bi(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},$i=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new Ui(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}}return e}trigger(t,e,i,r){if(wn(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!wn(e))return;let s=e[ue];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),oe(t,Ei)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ft(t,Ei))}removeNode(t,e,i){if(wn(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[ue]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return wn(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,bn,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Di,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Pe(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[ue];if(e&&e.setForRemoval){if(t[ue]=So,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Ei)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Xl,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];oe(r,Zl)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Pe(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw yl(t)}_flushAnimations(t,e){let i=new jt,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(g=>{u.add(g);let v=this.driver.query(g,Yl,!0);for(let w=0;w<v.length;w++)u.add(v[w])});let h=this.bodyNode,f=Array.from(this.statesByElement.keys()),p=lo(f,this.collectedEnterElements),d=new Map,m=0;p.forEach((g,v)=>{let w=go+m++;d.set(v,w),g.forEach(D=>oe(D,w))});let b=[],A=new Set,P=new Set;for(let g=0;g<this.collectedLeaveElements.length;g++){let v=this.collectedLeaveElements[g],w=v[ue];w&&w.setForRemoval&&(b.push(v),A.add(v),w.hasAnimation?this.driver.query(v,Jl,!0).forEach(D=>A.add(D)):P.add(v))}let x=new Map,$=lo(f,Array.from(A));$.forEach((g,v)=>{let w=Ai+m++;x.set(v,w),g.forEach(D=>oe(D,w))}),t.push(()=>{p.forEach((g,v)=>{let w=d.get(v);g.forEach(D=>ft(D,w))}),$.forEach((g,v)=>{let w=x.get(v);g.forEach(D=>ft(D,w))}),b.forEach(g=>{this.processLeaveNode(g)})});let rt=[],fe=[];for(let g=this._namespaceList.length-1;g>=0;g--)this._namespaceList[g].drainQueuedTransitions(e).forEach(w=>{let D=w.player,j=w.element;if(rt.push(D),this.collectedEnterElements.length){let q=j[ue];if(q&&q.setForMove){if(q.previousTriggersValues&&q.previousTriggersValues.has(w.triggerName)){let Ue=q.previousTriggersValues.get(w.triggerName),te=this.statesByElement.get(w.element);if(te&&te.has(w.triggerName)){let an=te.get(w.triggerName);an.value=Ue,te.set(w.triggerName,an)}}D.destroy();return}}let pe=!h||!this.driver.containsElement(h,j),G=x.get(j),De=d.get(j),k=this._buildInstruction(w,i,De,G,pe);if(k.errors&&k.errors.length){fe.push(k);return}if(pe){D.onStart(()=>We(j,k.fromStyles)),D.onDestroy(()=>we(j,k.toStyles)),r.push(D);return}if(w.isFallbackTransition){D.onStart(()=>We(j,k.fromStyles)),D.onDestroy(()=>we(j,k.toStyles)),r.push(D);return}let Qr=[];k.timelines.forEach(q=>{q.stretchStartingKeyframe=!0,this.disabledNodes.has(q.element)||Qr.push(q)}),k.timelines=Qr,i.append(j,k.timelines);let ja={instruction:k,player:D,element:j};o.push(ja),k.queriedElements.forEach(q=>Z(a,q,[]).push(D)),k.preStyleProps.forEach((q,Ue)=>{if(q.size){let te=l.get(Ue);te||l.set(Ue,te=new Set),q.forEach((an,ni)=>te.add(ni))}}),k.postStyleProps.forEach((q,Ue)=>{let te=c.get(Ue);te||c.set(Ue,te=new Set),q.forEach((an,ni)=>te.add(ni))})});if(fe.length){let g=[];fe.forEach(v=>{g.push(vl(v.triggerName,v.errors))}),rt.forEach(v=>v.destroy()),this.reportError(g)}let H=new Map,K=new Map;o.forEach(g=>{let v=g.element;i.has(v)&&(K.set(v,v),this._beforeAnimationBuild(g.player.namespaceId,g.instruction,H))}),r.forEach(g=>{let v=g.element;this._getPreviousPlayers(v,!1,g.namespaceId,g.triggerName,null).forEach(D=>{Z(H,v,[]).push(D),D.destroy()})});let Fe=b.filter(g=>co(g,l,c)),st=new Map;ao(st,this.driver,P,c,_e).forEach(g=>{co(g,l,c)&&Fe.push(g)});let je=new Map;p.forEach((g,v)=>{ao(je,this.driver,new Set(g),l,mn)}),Fe.forEach(g=>{let v=st.get(g),w=je.get(g);st.set(g,new Map([...v?.entries()??[],...w?.entries()??[]]))});let ti=[],Kr=[],Wr={};o.forEach(g=>{let{element:v,player:w,instruction:D}=g;if(i.has(v)){if(u.has(v)){w.onDestroy(()=>we(v,D.toStyles)),w.disabled=!0,w.overrideTotalTime(D.totalTime),r.push(w);return}let j=Wr;if(K.size>1){let G=v,De=[];for(;G=G.parentNode;){let k=K.get(G);if(k){j=k;break}De.push(G)}De.forEach(k=>K.set(k,j))}let pe=this._buildAnimation(w.namespaceId,D,H,s,je,st);if(w.setRealPlayer(pe),j===Wr)ti.push(w);else{let G=this.playersByElement.get(j);G&&G.length&&(w.parentPlayer=Pe(G)),r.push(w)}}else We(v,D.fromStyles),w.onDestroy(()=>we(v,D.toStyles)),Kr.push(w),u.has(v)&&r.push(w)}),Kr.forEach(g=>{let v=s.get(g.element);if(v&&v.length){let w=Pe(v);g.setRealPlayer(w)}}),r.forEach(g=>{g.parentPlayer?g.syncPlayerEvents(g.parentPlayer):g.destroy()});for(let g=0;g<b.length;g++){let v=b[g],w=v[ue];if(ft(v,Ai),w&&w.hasAnimation)continue;let D=[];if(a.size){let pe=a.get(v);pe&&pe.length&&D.push(...pe);let G=this.driver.query(v,Di,!0);for(let De=0;De<G.length;De++){let k=a.get(G[De]);k&&k.length&&D.push(...k)}}let j=D.filter(pe=>!pe.destroyed);j.length?sc(this,v,j):this.processLeaveNode(v)}return b.length=0,ti.forEach(g=>{this.players.push(g),g.onDone(()=>{g.destroy();let v=this.players.indexOf(g);this.players.splice(v,1)}),g.play()}),ti}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let l=!s||s==xt;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){let r=e.triggerName,s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,u=c!==s,h=Z(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{let d=p.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),p.destroy(),h.push(p)})}We(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){let a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(d=>{let m=d.element;u.add(m);let b=m[ue];if(b&&b.removedBeforeQueried)return new Ie(d.duration,d.delay);let A=m!==l,P=oc((i.get(m)||ec).map(H=>H.getRealPlayer())).filter(H=>{let K=H;return K.element?K.element===m:!1}),x=s.get(m),$=o.get(m),rt=uo(this._normalizer,d.keyframes,x,$),fe=this._buildPlayer(d,rt,P);if(d.subTimeline&&r&&h.add(m),A){let H=new $t(t,a,m);H.setRealPlayer(fe),c.push(H)}return fe});c.forEach(d=>{Z(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>nc(this.playersByQueriedElement,d.element,d))}),u.forEach(d=>oe(d,Js));let p=Pe(f);return p.onDestroy(()=>{u.forEach(d=>ft(d,Js)),we(l,e.toStyles)}),h.forEach(d=>{Z(r,d,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ie(t.duration,t.delay)}},$t=class{namespaceId;triggerName;element;_player=new Ie;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Bi(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Z(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function nc(n,t,e){let i=n.get(t);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&n.delete(t)}return i}function ic(n){return n??null}function wn(n){return n&&n.nodeType===1}function rc(n){return n=="start"||n=="done"}function oo(n,t){let e=n.style.display;return n.style.display=t??"none",e}function ao(n,t,e,i,r){let s=[];e.forEach(l=>s.push(oo(l)));let o=[];i.forEach((l,c)=>{let u=new Map;l.forEach(h=>{let f=t.computeStyle(c,h,r);u.set(h,f),(!f||f.length==0)&&(c[ue]=tc,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>oo(l,s[a++])),o}function lo(n,t){let e=new Map;if(n.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,r=new Set(t),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return t.forEach(a=>{let l=o(a);l!==i&&e.get(l).push(a)}),e}function oe(n,t){n.classList?.add(t)}function ft(n,t){n.classList?.remove(t)}function sc(n,t,e){Pe(e).onDone(()=>n.processLeaveNode(t))}function oc(n){let t=[];return bo(n,t),t}function bo(n,t){for(let e=0;e<n.length;e++){let i=n[e];i instanceof Pt?bo(i.players,t):t.push(i)}}function ac(n,t){let e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}function co(n,t,e){let i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}var pt=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new $i(t.body,e,i),this._timelineEngine=new ji(t.body,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){let o=t+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],u=vo(this._driver,s,l,c);if(l.length)throw al(r,l);c.length&&void 0,a=Wl(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if(i.charAt(0)=="@"){let[s,o]=Xs(i),a=r;this._timelineEngine.command(s,e,o,a)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if(i.charAt(0)=="@"){let[o,a]=Xs(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function lc(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Ti(t[0]),t.length>1&&(i=Ti(t[t.length-1]))):t instanceof Map&&(e=Ti(t)),e||i?new cc(n,e,i):null}var cc=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(We(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(We(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return n})();function Ti(n){let t=null;return n.forEach((e,i)=>{uc(i)&&(t=t||new Map,t.set(i,e))}),t}function uc(n){return n==="display"||n==="position"}var Mn=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&t.set(r,this._finished?i:Wi(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},On=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return ho(t,e)}getParentElement(t){return Vi(t)}query(t,e,i){return fo(t,e,i)}computeStyle(t,e,i){return Wi(t,e)}animate(t,e,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,u=o.filter(p=>p instanceof Mn);Ml(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((d,m)=>c.set(m,d))});let h=Tl(e).map(p=>new Map(p));h=Ol(t,h,c);let f=lc(t,h);return new Mn(t,h,l,f)}};var Sn="@",Co="@.disabled",Nn=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Sn&&e==Co?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},zi=class extends Nn{factory;constructor(t,e,i,r,s){super(e,i,r,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Sn?e.charAt(1)=="."&&e==Co?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Sn){let r=hc(t),s=e.slice(1),o="";return s.charAt(0)!=Sn&&([s,o]=dc(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(t,e,i)}};function hc(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function dc(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var In=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,e.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(t,e){let i="",r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let h=()=>c.delete(r);u=new Nn(i,r,this.engine,h),c.set(r,u)}return u}let s=e.id,o=e.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,t,c.name,c)};return e.data.animation.forEach(a),new zi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var pc=(()=>{class n extends pt{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(L(Ve),L(Qe),L(Ge))};static \u0275prov=O({token:n,factory:n.\u0275fac})}return n})();function gc(){return new En}function mc(n,t,e){return new In(n,t,e)}var Eo=[{provide:Ge,useFactory:gc},{provide:pt,useClass:pc},{provide:lt,useFactory:mc,deps:[qs,pt,ze]}],yc=[{provide:Qe,useFactory:()=>new On},{provide:Dt,useValue:"BrowserAnimations"},...Eo],od=[{provide:Qe,useClass:Hi},{provide:Dt,useValue:"NoopAnimations"},...Eo];function Ro(){return gs("NgEagerAnimations"),[...yc]}var E="primary",tn=Symbol("RouteTitle"),Ji=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function wt(n){return new Ji(n)}function _c(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.length<n.length))return null;let r={};for(let s=0;s<i.length;s++){let o=i[s],a=n[s];if(o[0]===":")r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function wc(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Se(n[e],t[e]))return!1;return!0}function Se(n,t){let e=n?er(n):void 0,i=t?er(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!Po(n[r],t[r]))return!1;return!0}function er(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Po(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;let e=[...n].sort(),i=[...t].sort();return e.every((r,s)=>i[s]===r)}else return n===t}function ko(n){return n.length>0?n[n.length-1]:null}function ke(n){return Jr(n)?n:Rs(n)?ie(Promise.resolve(n)):S(n)}var Sc={exact:xo,subset:Fo},Lo={exact:bc,subset:Cc,ignored:()=>!0};function To(n,t,e){return Sc[e.paths](n.root,t.root,e.matrixParams)&&Lo[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function bc(n,t){return Se(n,t)}function xo(n,t,e){if(!Xe(n.segments,t.segments)||!Ln(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!xo(n.children[i],t.children[i],e))return!1;return!0}function Cc(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>Po(n[e],t[e]))}function Fo(n,t,e){return jo(n,t,t.segments,e)}function jo(n,t,e,i){if(n.segments.length>e.length){let r=n.segments.slice(0,e.length);return!(!Xe(r,e)||t.hasChildren()||!Ln(r,e,i))}else if(n.segments.length===e.length){if(!Xe(n.segments,e)||!Ln(n.segments,e,i))return!1;for(let r in t.children)if(!n.children[r]||!Fo(n.children[r],t.children[r],i))return!1;return!0}else{let r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!Xe(n.segments,r)||!Ln(n.segments,r,i)||!n.children[E]?!1:jo(n.children[E],t,s,i)}}function Ln(n,t,e){return t.every((i,r)=>Lo[e](n[r].parameters,i.parameters))}var Ae=class{root;queryParams;fragment;_queryParamMap;constructor(t=new M([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=wt(this.queryParams),this._queryParamMap}toString(){return Tc.serialize(this)}},M=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xn(this)}},Ye=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=wt(this.parameters),this._parameterMap}toString(){return $o(this)}};function Ec(n,t){return Xe(n,t)&&n.every((e,i)=>Se(e.parameters,t[i].parameters))}function Xe(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function Rc(n,t){let e=[];return Object.entries(n.children).forEach(([i,r])=>{i===E&&(e=e.concat(t(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==E&&(e=e.concat(t(r,i)))}),e}var Tr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:()=>new Wt,providedIn:"root"})}return n})(),Wt=class{parse(t){let e=new nr(t);return new Ae(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${zt(t.root,!0)}`,i=Mc(t.queryParams),r=typeof t.fragment=="string"?`#${Ac(t.fragment)}`:"";return`${e}${i}${r}`}},Tc=new Wt;function xn(n){return n.segments.map(t=>$o(t)).join("/")}function zt(n,t){if(!n.hasChildren())return xn(n);if(t){let e=n.children[E]?zt(n.children[E],!1):"",i=[];return Object.entries(n.children).forEach(([r,s])=>{r!==E&&i.push(`${r}:${zt(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=Rc(n,(i,r)=>r===E?[zt(n.children[E],!1)]:[`${r}:${zt(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[E]!=null?`${xn(n)}/${e[0]}`:`${xn(n)}/(${e.join("//")})`}}function Uo(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pn(n){return Uo(n).replace(/%3B/gi,";")}function Ac(n){return encodeURI(n)}function tr(n){return Uo(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fn(n){return decodeURIComponent(n)}function Ao(n){return Fn(n.replace(/\+/g,"%20"))}function $o(n){return`${tr(n.path)}${Dc(n.parameters)}`}function Dc(n){return Object.entries(n).map(([t,e])=>`;${tr(t)}=${tr(e)}`).join("")}function Mc(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Pn(e)}=${Pn(r)}`).join("&"):`${Pn(e)}=${Pn(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var Oc=/^[^\/()?;#]+/;function Gi(n){let t=n.match(Oc);return t?t[0]:""}var Nc=/^[^\/()?;=#]+/;function Ic(n){let t=n.match(Nc);return t?t[0]:""}var Pc=/^[^=?&#]+/;function kc(n){let t=n.match(Pc);return t?t[0]:""}var Lc=/^[^&#]+/;function xc(n){let t=n.match(Lc);return t?t[0]:""}var nr=class{url;remaining;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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[E]=new M(t,e)),i}parseSegment(){let t=Gi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new _(4009,!1);return this.capture(t),new Ye(Fn(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=Ic(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=Gi(this.remaining);r&&(i=r,this.capture(i))}t[Fn(e)]=Fn(i)}parseQueryParam(t){let e=kc(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let o=xc(this.remaining);o&&(i=o,this.capture(i))}let r=Ao(e),s=Ao(i);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 e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Gi(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new _(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=E);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[E]:new M([],o),this.consumeOptional("//")}return e}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 _(4011,!1)}};function zo(n){return n.segments.length>0?new M([],{[E]:n}):n}function Bo(n){let t={};for(let[i,r]of Object.entries(n.children)){let s=Bo(r);if(i===E&&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[i]=s)}let e=new M(n.segments,t);return Fc(e)}function Fc(n){if(n.numberOfChildren===1&&n.children[E]){let t=n.children[E];return new M(n.segments.concat(t.segments),t.children)}return n}function Ze(n){return n instanceof Ae}function jc(n,t,e=null,i=null){let r=qo(n);return Vo(r,t,e,i)}function qo(n){let t;function e(s){let o={};for(let l of s.children){let c=e(l);o[l.outlet]=c}let a=new M(s.url,o);return s===n&&(t=a),a}let i=e(n.root),r=zo(i);return t??r}function Vo(n,t,e,i){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return Yi(r,r,r,e,i);let s=Uc(t);if(s.toRoot())return Yi(r,r,new M([],{}),e,i);let o=$c(s,r,n),a=o.processChildren?Vt(o.segmentGroup,o.index,s.commands):Ko(o.segmentGroup,o.index,s.commands);return Yi(r,o.segmentGroup,a,e,i)}function jn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Qt(n){return typeof n=="object"&&n!=null&&n.outlets}function Yi(n,t,e,i,r){let s={};i&&Object.entries(i).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;n===t?o=e:o=Ho(n,t,e);let a=zo(Bo(o));return new Ae(a,s,r)}function Ho(n,t,e){let i={};return Object.entries(n.children).forEach(([r,s])=>{s===t?i[r]=e:i[r]=Ho(s,t,e)}),new M(n.segments,i)}var Un=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&jn(i[0]))throw new _(4003,!1);let r=i.find(Qt);if(r&&r!==ko(i))throw new _(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Uc(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Un(!0,0,n);let t=0,e=!1,i=n.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new Un(e,t,i)}var yt=class{segmentGroup;processChildren;index;constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function $c(n,t,e){if(n.isAbsolute)return new yt(t,!0,0);if(!e)return new yt(t,!1,NaN);if(e.parent===null)return new yt(e,!0,0);let i=jn(n.commands[0])?0:1,r=e.segments.length-1+i;return zc(e,r,n.numberOfDoubleDots)}function zc(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new _(4005,!1);r=i.segments.length}return new yt(i,!1,r-s)}function Bc(n){return Qt(n[0])?n[0].outlets:{[E]:n}}function Ko(n,t,e){if(n??=new M([],{}),n.segments.length===0&&n.hasChildren())return Vt(n,t,e);let i=qc(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){let s=new M(n.segments.slice(0,i.pathIndex),{});return s.children[E]=new M(n.segments.slice(i.pathIndex),n.children),Vt(s,0,r)}else return i.match&&r.length===0?new M(n.segments,{}):i.match&&!n.hasChildren()?ir(n,t,e):i.match?Vt(n,0,r):ir(n,t,e)}function Vt(n,t,e){if(e.length===0)return new M(n.segments,{});{let i=Bc(e),r={};if(Object.keys(i).some(s=>s!==E)&&n.children[E]&&n.numberOfChildren===1&&n.children[E].segments.length===0){let s=Vt(n.children[E],t,e);return new M(n.segments,s.children)}return Object.entries(i).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Ko(n.children[s],t,o))}),Object.entries(n.children).forEach(([s,o])=>{i[s]===void 0&&(r[s]=o)}),new M(n.segments,r)}}function qc(n,t,e){let i=0,r=t,s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return s;let o=n.segments[r],a=e[i];if(Qt(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Mo(l,c,o))return s;i+=2}else{if(!Mo(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function ir(n,t,e){let i=n.segments.slice(0,t),r=0;for(;r<e.length;){let s=e[r];if(Qt(s)){let l=Vc(s.outlets);return new M(i,l)}if(r===0&&jn(e[0])){let l=n.segments[t];i.push(new Ye(l.path,Do(e[0]))),r++;continue}let o=Qt(s)?s.outlets[E]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&jn(a)?(i.push(new Ye(o,Do(a))),r+=2):(i.push(new Ye(o,{})),r++)}return new M(i,{})}function Vc(n){let t={};return Object.entries(n).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=ir(new M([],{}),0,i))}),t}function Do(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function Mo(n,t,e){return n==e.path&&Se(t,e.parameters)}var Ht="imperative",B=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(B||{}),ae=class{id;url;constructor(t,e){this.id=t,this.url=e}},Je=class extends ae{type=B.NavigationStart;navigationTrigger;restoredState;constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},de=class extends ae{urlAfterRedirects;type=B.NavigationEnd;constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ee=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(ee||{}),rr=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(rr||{}),Te=class extends ae{reason;code;type=B.NavigationCancel;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},et=class extends ae{reason;code;type=B.NavigationSkipped;constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r}},Gt=class extends ae{error;target;type=B.NavigationError;constructor(t,e,i,r){super(t,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},$n=class extends ae{urlAfterRedirects;state;type=B.RoutesRecognized;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sr=class extends ae{urlAfterRedirects;state;type=B.GuardsCheckStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},or=class extends ae{urlAfterRedirects;state;shouldActivate;type=B.GuardsCheckEnd;constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ar=class extends ae{urlAfterRedirects;state;type=B.ResolveStart;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lr=class extends ae{urlAfterRedirects;state;type=B.ResolveEnd;constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cr=class{route;type=B.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ur=class{route;type=B.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},hr=class{snapshot;type=B.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{snapshot;type=B.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fr=class{snapshot;type=B.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pr=class{snapshot;type=B.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Yt=class{},St=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function Hc(n,t){return n.providers&&!n._injector&&(n._injector=Ss(n.providers,t,`Route: ${n.path}`)),n._injector??t}function he(n){return n.outlet||E}function Kc(n,t){let e=n.filter(i=>he(i)===t);return e.push(...n.filter(i=>he(i)!==t)),e}function nn(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var gr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return nn(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Qn(this.rootInjector)}},Qn=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new gr(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||n)(L(cn))};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),zn=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=mr(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=mr(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=yr(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return yr(t,this._root).map(e=>e.value)}};function mr(n,t){if(n===t.value)return t;for(let e of t.children){let i=mr(n,e);if(i)return i}return null}function yr(n,t){if(n===t.value)return[t];for(let e of t.children){let i=yr(n,e);if(i.length)return i.unshift(t),i}return[]}var J=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function mt(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var Bn=class extends zn{snapshot;constructor(t,e){super(t),this.snapshot=e,Ar(this,t)}toString(){return this.snapshot.toString()}};function Wo(n){let t=Wc(n),e=new ne([new Ye("",{})]),i=new ne({}),r=new ne({}),s=new ne({}),o=new ne(""),a=new tt(e,i,s,o,r,E,n,t.root);return a.snapshot=t.root,new Bn(new J(a,[]),t)}function Wc(n){let t={},e={},i={},r="",s=new vt([],t,i,r,e,E,n,null,{});return new Vn("",new J(s,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,e,i,r,s,o,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(N(c=>c[tn]))??S(void 0),this.url=t,this.params=e,this.queryParams=i,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(N(t=>wt(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(N(t=>wt(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qn(n,t,e="emptyOnly"){let i,{routeConfig:r}=n;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:y(y({},t.params),n.params),data:y(y({},t.data),n.data),resolve:y(y(y(y({},n.data),t.data),r?.data),n._resolvedData)}:i={params:y({},n.params),data:y({},n.data),resolve:y(y({},n.data),n._resolvedData??{})},r&&Go(r)&&(i.resolve[tn]=r.title),i}var vt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[tn]}constructor(t,e,i,r,s,o,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}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??=wt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=wt(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Vn=class extends zn{url;constructor(t,e){super(e),this.url=t,Ar(this,e)}toString(){return Qo(this._root)}};function Ar(n,t){t.value._routerState=n,t.children.forEach(e=>Ar(n,e))}function Qo(n){let t=n.children.length>0?` { ${n.children.map(Qo).join(", ")} } `:"";return`${n.value}${t}`}function Xi(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Se(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),Se(t.params,e.params)||n.paramsSubject.next(e.params),wc(t.url,e.url)||n.urlSubject.next(e.url),Se(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function vr(n,t){let e=Se(n.params,t.params)&&Ec(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||vr(n.parent,t.parent))}function Go(n){return typeof n.title=="string"||n.title===null}var Qc=new le(""),Dr=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=E;activateEvents=new F;deactivateEvents=new F;attachEvents=new F;detachEvents=new F;routerOutletData=fs(void 0);parentContexts=R(Qn);location=R(Ot);changeDetector=R(qe);inputBinder=R(Mr,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new _(4013,!1);this._activatedRoute=e;let r=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new _r(e,a,r.injector,this.routerOutletData);this.activated=r.createComponent(o,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=ye({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[un]})}return n})(),_r=class n{route;childContexts;parent;outletData;__ngOutletInjector(t){return new n(this.route,this.childContexts,t,this.outletData)}constructor(t,e,i,r){this.route=t,this.childContexts=e,this.parent=i,this.outletData=r}get(t,e){return t===tt?this.route:t===Qn?this.childContexts:t===Qc?this.outletData:this.parent.get(t,e)}},Mr=new le("");function Gc(n,t,e){let i=Xt(n,t._root,e?e._root:void 0);return new Bn(i,t)}function Xt(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let r=Yc(n,t,e);return new J(i,r)}else{if(n.shouldAttach(t.value)){let s=n.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Xt(n,a)),o}}let i=Xc(t.value),r=t.children.map(s=>Xt(n,s));return new J(i,r)}}function Yc(n,t,e){return t.children.map(i=>{for(let r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Xt(n,i,r);return Xt(n,i)})}function Xc(n){return new tt(new ne(n.url),new ne(n.params),new ne(n.queryParams),new ne(n.fragment),new ne(n.data),n.outlet,n.component,n)}var Zt=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},Yo="ngNavigationCancelingError";function Hn(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=Ze(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=Xo(!1,ee.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function Xo(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[Yo]=!0,e.cancellationCode=t,e}function Zc(n){return Zo(n)&&Ze(n.url)}function Zo(n){return!!n&&n[Yo]}var Jc=(n,t,e,i)=>N(r=>(new wr(t,r.targetRouterState,r.currentRouterState,e,i).activate(n),r)),wr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,i,r,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=s}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Xi(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let r=mt(e);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){let r=t.value,s=e?e.value:null;if(r===s)if(r.component){let o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=mt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(i&&i.outlet){let o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=mt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let r=mt(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new pr(s.value.snapshot))}),t.children.length&&this.forwardEvent(new dr(t.value.snapshot))}activateRoutes(t,e,i){let r=t.value,s=e?e.value:null;if(Xi(r),r===s)if(r.component){let o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){let o=i.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),Xi(a.route.value),this.activateChildRoutes(t,null,o.children)}else o.attachRef=null,o.route=r,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,i)}},Kn=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},_t=class{component;route;constructor(t,e){this.component=t,this.route=e}};function eu(n,t,e){let i=n._root,r=t?t._root:null;return Bt(i,r,e,[i.value])}function tu(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Ct(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!ls(n)?n:t.get(n):i}function Bt(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=mt(t);return n.children.forEach(o=>{nu(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Kt(a,e.getContext(o),r)),r}function nu(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=iu(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Kn(i)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Bt(n,t,a?a.children:null,i,r):Bt(n,t,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new _t(a.outlet.component,o))}else o&&Kt(t,a,r),r.canActivateChecks.push(new Kn(i)),s.component?Bt(n,null,a?a.children:null,i,r):Bt(n,null,e,i,r);return r}function iu(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!Xe(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Xe(n.url,t.url)||!Se(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vr(n,t)||!Se(n.queryParams,t.queryParams);case"paramsChange":default:return!vr(n,t)}}function Kt(n,t,e){let i=mt(n),r=n.value;Object.entries(i).forEach(([s,o])=>{r.component?t?Kt(o,t.children.getContext(s),e):Kt(o,null,e):Kt(o,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new _t(t.outlet.component,r)):e.canDeactivateChecks.push(new _t(null,r)):e.canDeactivateChecks.push(new _t(null,r))}function rn(n){return typeof n=="function"}function ru(n){return typeof n=="boolean"}function su(n){return n&&rn(n.canLoad)}function ou(n){return n&&rn(n.canActivate)}function au(n){return n&&rn(n.canActivateChild)}function lu(n){return n&&rn(n.canDeactivate)}function cu(n){return n&&rn(n.canMatch)}function Jo(n){return n instanceof es||n?.name==="EmptyError"}var kn=Symbol("INITIAL_VALUE");function bt(){return me(n=>si(n.map(t=>t.pipe(at(1),os(kn)))).pipe(N(t=>{for(let e of t)if(e!==!0){if(e===kn)return kn;if(e===!1||uu(e))return e}return!0}),se(t=>t!==kn),at(1)))}function uu(n){return Ze(n)||n instanceof Zt}function hu(n,t){return re(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?S(z(y({},e),{guardsResult:!0})):du(o,i,r,n).pipe(re(a=>a&&ru(a)?fu(i,s,n,t):S(a)),N(a=>z(y({},e),{guardsResult:a})))})}function du(n,t,e,i){return ie(n).pipe(re(r=>vu(r.component,r.route,e,t,i)),Oe(r=>r!==!0,!0))}function fu(n,t,e,i){return ie(t).pipe(Tt(r=>ts(gu(r.route.parent,i),pu(r.route,i),yu(n,r.path,e),mu(n,r.route,e))),Oe(r=>r!==!0,!0))}function pu(n,t){return n!==null&&t&&t(new fr(n)),S(!0)}function gu(n,t){return n!==null&&t&&t(new hr(n)),S(!0)}function mu(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return S(!0);let r=i.map(s=>ai(()=>{let o=nn(t)??e,a=Ct(s,o),l=ou(a)?a.canActivate(t,n):be(o,()=>a(t,n));return ke(l).pipe(Oe())}));return S(r).pipe(bt())}function yu(n,t,e){let i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>tu(o)).filter(o=>o!==null).map(o=>ai(()=>{let a=o.guards.map(l=>{let c=nn(o.node)??e,u=Ct(l,c),h=au(u)?u.canActivateChild(i,n):be(c,()=>u(i,n));return ke(h).pipe(Oe())});return S(a).pipe(bt())}));return S(s).pipe(bt())}function vu(n,t,e,i,r){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return S(!0);let o=s.map(a=>{let l=nn(t)??r,c=Ct(a,l),u=lu(c)?c.canDeactivate(n,t,e,i):be(l,()=>c(n,t,e,i));return ke(u).pipe(Oe())});return S(o).pipe(bt())}function _u(n,t,e,i){let r=t.canLoad;if(r===void 0||r.length===0)return S(!0);let s=r.map(o=>{let a=Ct(o,n),l=su(a)?a.canLoad(t,e):be(n,()=>a(t,e));return ke(l)});return S(s).pipe(bt(),ea(i))}function ea(n){return Xr(V(t=>{if(typeof t!="boolean")throw Hn(n,t)}),N(t=>t===!0))}function wu(n,t,e,i){let r=t.canMatch;if(!r||r.length===0)return S(!0);let s=r.map(o=>{let a=Ct(o,n),l=cu(a)?a.canMatch(t,e):be(n,()=>a(t,e));return ke(l)});return S(s).pipe(bt(),ea(i))}var Jt=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},en=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function gt(n){return Rt(new Jt(n))}function Su(n){return Rt(new _(4e3,!1))}function bu(n){return Rt(Xo(!1,ee.GuardRejected))}var Sr=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return S(i);if(r.numberOfChildren>1||!r.children[E])return Su(`${t.redirectTo}`);r=r.children[E]}}applyRedirectCommands(t,e,i,r,s){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:u,url:h,outlet:f,params:p,data:d,title:m}=r,b=be(s,()=>a({params:p,data:d,queryParams:l,fragment:c,routeConfig:u,url:h,outlet:f,title:m}));if(b instanceof Ae)throw new en(b);e=b}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e[0]==="/")throw new en(o);return o}applyRedirectCreateUrlTree(t,e,i,r){let s=this.createSegmentGroup(t,e.root,i,r);return new Ae(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);i[r]=e[a]}else i[r]=s}),i}createSegmentGroup(t,e,i,r){let s=this.createSegments(t,e.segments,i,r),o={};return Object.entries(e.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(t,l,i,r)}),new M(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path[0]===":"?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){let r=i[e.path.substring(1)];if(!r)throw new _(4001,!1);return r}findOrReturn(t,e){let i=0;for(let r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}},br={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cu(n,t,e,i,r){let s=ta(n,t,e);return s.matched?(i=Hc(t,i),wu(i,t,e,r).pipe(N(o=>o===!0?s:y({},br)))):S(s)}function ta(n,t,e){if(t.path==="**")return Eu(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?y({},br):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||_c)(e,n,t);if(!r)return y({},br);let s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=r.consumed.length>0?y(y({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Eu(n){return{matched:!0,parameters:n.length>0?ko(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Oo(n,t,e,i){return e.length>0&&Au(n,e,i)?{segmentGroup:new M(t,Tu(i,new M(e,n.children))),slicedSegments:[]}:e.length===0&&Du(n,e,i)?{segmentGroup:new M(n.segments,Ru(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new M(n.segments,n.children),slicedSegments:e}}function Ru(n,t,e,i){let r={};for(let s of e)if(Gn(n,t,s)&&!i[he(s)]){let o=new M([],{});r[he(s)]=o}return y(y({},i),r)}function Tu(n,t){let e={};e[E]=t;for(let i of n)if(i.path===""&&he(i)!==E){let r=new M([],{});e[he(i)]=r}return e}function Au(n,t,e){return e.some(i=>Gn(n,t,i)&&he(i)!==E)}function Du(n,t,e){return e.some(i=>Gn(n,t,i))}function Gn(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Mu(n,t,e){return t.length===0&&!n.children[e]}var Cr=class{};function Ou(n,t,e,i,r,s,o="emptyOnly"){return new Er(n,t,e,i,r,o,s).recognize()}var Nu=31,Er=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,i,r,s,o,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Sr(this.urlSerializer,this.urlTree)}noMatchError(t){return new _(4002,`'${t.segmentGroup}'`)}recognize(){let t=Oo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(N(({children:e,rootSnapshot:i})=>{let r=new J(i,e),s=new Vn("",r),o=jc(i,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(t){let e=new vt([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),E,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,E,e).pipe(N(i=>({children:i,rootSnapshot:e})),ot(i=>{if(i instanceof en)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Jt?this.noMatchError(i):i}))}processSegmentGroup(t,e,i,r,s){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i,s):this.processSegment(t,e,i,i.segments,r,!0,s).pipe(N(o=>o instanceof J?[o]:[]))}processChildren(t,e,i,r){let s=[];for(let o of Object.keys(i.children))o==="primary"?s.unshift(o):s.push(o);return ie(s).pipe(Tt(o=>{let a=i.children[o],l=Kc(e,o);return this.processSegmentGroup(t,l,a,o,r)}),ss((o,a)=>(o.push(...a),o)),ci(null),rs(),re(o=>{if(o===null)return gt(i);let a=na(o);return Iu(a),S(a)}))}processSegment(t,e,i,r,s,o,a){return ie(e).pipe(Tt(l=>this.processSegmentAgainstRoute(l._injector??t,e,l,i,r,s,o,a).pipe(ot(c=>{if(c instanceof Jt)return S(null);throw c}))),Oe(l=>!!l),ot(l=>{if(Jo(l))return Mu(i,r,s)?S(new Cr):gt(i);throw l}))}processSegmentAgainstRoute(t,e,i,r,s,o,a,l){return he(i)!==o&&(o===E||!Gn(r,s,i))?gt(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,i,s,o,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,i,s,o,l):gt(r)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:h,remainingSegments:f}=ta(e,r,s);if(!l)return gt(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Nu&&(this.allowRedirects=!1));let p=new vt(s,c,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,No(r),he(r),r.component??r._loadedComponent??null,r,Io(r)),d=qn(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(d.params),p.data=Object.freeze(d.data);let m=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,h,p,t);return this.applyRedirects.lineralizeSegments(r,m).pipe(re(b=>this.processSegment(t,i,e,b.concat(f),o,!1,a)))}matchSegmentAgainstRoute(t,e,i,r,s,o){let a=Cu(e,i,r,t,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(me(l=>l.matched?(t=i._injector??t,this.getChildConfig(t,i,r).pipe(me(({routes:c})=>{let u=i._loadedInjector??t,{parameters:h,consumedSegments:f,remainingSegments:p}=l,d=new vt(f,h,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,No(i),he(i),i.component??i._loadedComponent??null,i,Io(i)),m=qn(d,o,this.paramsInheritanceStrategy);d.params=Object.freeze(m.params),d.data=Object.freeze(m.data);let{segmentGroup:b,slicedSegments:A}=Oo(e,f,p,c);if(A.length===0&&b.hasChildren())return this.processChildren(u,c,b,d).pipe(N(x=>new J(d,x)));if(c.length===0&&A.length===0)return S(new J(d,[]));let P=he(i)===s;return this.processSegment(u,c,b,A,P?E:s,!0,d).pipe(N(x=>new J(d,x instanceof J?[x]:[])))}))):gt(e)))}getChildConfig(t,e,i){return e.children?S({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?S({routes:e._loadedRoutes,injector:e._loadedInjector}):_u(t,e,i,this.urlSerializer).pipe(re(r=>r?this.configLoader.loadChildren(t,e).pipe(V(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):bu(e))):S({routes:[],injector:t})}};function Iu(n){n.sort((t,e)=>t.value.outlet===E?-1:e.value.outlet===E?1:t.value.outlet.localeCompare(e.value.outlet))}function Pu(n){let t=n.value.routeConfig;return t&&t.path===""}function na(n){let t=[],e=new Set;for(let i of n){if(!Pu(i)){t.push(i);continue}let r=t.find(s=>i.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):t.push(i)}for(let i of e){let r=na(i.children);t.push(new J(i.value,r))}return t.filter(i=>!e.has(i))}function No(n){return n.data||{}}function Io(n){return n.resolve||{}}function ku(n,t,e,i,r,s){return re(o=>Ou(n,t,e,i,o.extractedUrl,r,s).pipe(N(({state:a,tree:l})=>z(y({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function Lu(n,t){return re(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return S(e);let s=new Set(r.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of ia(l))o.add(c);let a=0;return ie(o).pipe(Tt(l=>s.has(l)?xu(l,i,n,t):(l.data=qn(l,l.parent,n).resolve,S(void 0))),V(()=>a++),ui(1),re(l=>a===o.size?S(e):Me))})}function ia(n){let t=n.children.map(e=>ia(e)).flat();return[n,...t]}function xu(n,t,e,i){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!Go(r)&&(s[tn]=r.title),Fu(s,n,t,i).pipe(N(o=>(n._resolvedData=o,n.data=qn(n,n.parent,e).resolve,null)))}function Fu(n,t,e,i){let r=er(n);if(r.length===0)return S({});let s={};return ie(r).pipe(re(o=>ju(n[o],t,e,i).pipe(Oe(),V(a=>{if(a instanceof Zt)throw Hn(new Wt,a);s[o]=a}))),ui(1),is(s),ot(o=>Jo(o)?Me:Rt(o)))}function ju(n,t,e,i){let r=nn(t)??i,s=Ct(n,r),o=s.resolve?s.resolve(t,e):be(r,()=>s(t,e));return ke(o)}function Zi(n){return me(t=>{let e=n(t);return e?ie(e).pipe(N(()=>t)):S(t)})}var ra=(()=>{class n{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===E);return i}getResolvedTitleForRoute(e){return e.data[tn]}static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:()=>R(Uu),providedIn:"root"})}return n})(),Uu=(()=>{class n extends ra{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||n)(L(Hs))};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Or=new le("",{providedIn:"root",factory:()=>({})}),$u=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=Ne({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,r){i&1&&ve(0,"router-outlet")},dependencies:[Dr],encapsulation:2})}return n})();function Nr(n){let t=n.children&&n.children.map(Nr),e=t?z(y({},n),{children:t}):y({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==E&&(e.component=$u),e}var Ir=new le(""),zu=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=R(pi);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return S(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=ke(e.loadComponent()).pipe(N(sa),V(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),ln(()=>{this.componentLoaders.delete(e)})),r=new ri(i,()=>new ge).pipe(ii());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return S({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=Bu(i,this.compiler,e,this.onLoadEndListener).pipe(ln(()=>{this.childrenLoaders.delete(i)})),o=new ri(s,()=>new ge).pipe(ii());return this.childrenLoaders.set(i,o),o}static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Bu(n,t,e,i){return ke(n.loadChildren()).pipe(N(sa),re(r=>r instanceof ws||Array.isArray(r)?S(r):ie(t.compileModuleAsync(r))),N(r=>{i&&i(n);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(e).injector,o=s.get(Ir,[],{optional:!0,self:!0}).flat()),{routes:o.map(Nr),injector:s}}))}function qu(n){return n&&typeof n=="object"&&"default"in n}function sa(n){return qu(n)?n.default:n}var Pr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:()=>R(Vu),providedIn:"root"})}return n})(),Vu=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Hu=new le("");var Ku=new le(""),Wu=(()=>{class n{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ge;transitionAbortSubject=new ge;configLoader=R(zu);environmentInjector=R(cn);urlSerializer=R(Tr);rootContexts=R(Qn);location=R(gn);inputBindingEnabled=R(Mr,{optional:!0})!==null;titleStrategy=R(ra);options=R(Or,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=R(Pr);createViewTransition=R(Hu,{optional:!0});navigationErrorHandler=R(Ku,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>S(void 0);rootComponentType=null;constructor(){let e=r=>this.events.next(new cr(r)),i=r=>this.events.next(new ur(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(z(y(y({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new ne({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ht,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(se(s=>s.id!==0),N(s=>z(y({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),me(s=>{let o=!1,a=!1;return S(s).pipe(me(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",ee.SupersededByNewNavigation),Me;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?z(y({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&u!=="reload"){let h="";return this.events.next(new et(l.id,this.urlSerializer.serialize(l.rawUrl),h,rr.IgnoredSameUrlNavigation)),l.resolve(!1),Me}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return S(l).pipe(me(h=>{let f=this.transitions?.getValue();return this.events.next(new Je(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?Me:Promise.resolve(h)}),ku(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),V(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=z(y({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new $n(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:d,extras:m}=l,b=new Je(h,this.urlSerializer.serialize(f),p,d);this.events.next(b);let A=Wo(this.rootComponentType).snapshot;return this.currentTransition=s=z(y({},l),{targetSnapshot:A,urlAfterRedirects:f,extras:z(y({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,S(s)}else{let h="";return this.events.next(new et(l.id,this.urlSerializer.serialize(l.extractedUrl),h,rr.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Me}}),V(l=>{let c=new sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),N(l=>(this.currentTransition=s=z(y({},l),{guards:eu(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),hu(this.environmentInjector,l=>this.events.next(l)),V(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Hn(this.urlSerializer,l.guardsResult);let c=new or(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),se(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",ee.GuardRejected),!1)),Zi(l=>{if(l.guards.canActivateChecks.length)return S(l).pipe(V(c=>{let u=new ar(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),me(c=>{let u=!1;return S(c).pipe(Lu(this.paramsInheritanceStrategy,this.environmentInjector),V({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",ee.NoDataFromResolver)}}))}),V(c=>{let u=new lr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),Zi(l=>{let c=u=>{let h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(V(f=>{u.component=f}),N(()=>{})));for(let f of u.children)h.push(...c(f));return h};return si(c(l.targetSnapshot.root)).pipe(ci(null),at(1))}),Zi(()=>this.afterPreactivation()),me(()=>{let{currentSnapshot:l,targetSnapshot:c}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?ie(u).pipe(N(()=>s)):S(s)}),N(l=>{let c=Gc(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=z(y({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),V(()=>{this.events.next(new Yt)}),Jc(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),at(1),V({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new de(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),as(this.transitionAbortSubject.pipe(V(l=>{throw l}))),ln(()=>{!o&&!a&&this.cancelNavigationTransition(s,"",ee.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ot(l=>{if(a=!0,Zo(l))this.events.next(new Te(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),Zc(l)?this.events.next(new St(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let c=new Gt(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=be(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Zt){let{message:h,cancellationCode:f}=Hn(this.urlSerializer,u);this.events.next(new Te(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new St(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Me}))}))}cancelNavigationTransition(e,i,r){let s=new Te(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Qu(n){return n!==Ht}var Gu=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:()=>R(Yu),providedIn:"root"})}return n})(),Rr=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},Yu=(()=>{class n extends Rr{static \u0275fac=(()=>{let e;return function(r){return(e||(e=di(n)))(r||n)}})();static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),oa=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:()=>R(Xu),providedIn:"root"})}return n})(),Xu=(()=>{class n extends oa{location=R(gn);urlSerializer=R(Tr);options=R(Or,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=R(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ae;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Wo(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Je)this.stateMemento=this.createStateMemento();else if(e instanceof et)this.rawUrlTree=i.initialUrl;else if(e instanceof $n){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof Yt?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Te&&(e.code===ee.GuardRejected||e.code===ee.NoDataFromResolver)?this.restoreHistory(i):e instanceof Gt?this.restoreHistory(i,!0):e instanceof de&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Ae?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let s=this.browserPageId,o=y(y({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(r,"",o)}else{let s=y(y({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,s=this.currentPageId-r;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=di(n)))(r||n)}})();static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),qt=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(qt||{});function Zu(n,t){n.events.pipe(se(e=>e instanceof de||e instanceof Te||e instanceof Gt||e instanceof et),N(e=>e instanceof de||e instanceof et?qt.COMPLETE:(e instanceof Te?e.code===ee.Redirect||e.code===ee.SupersededByNewNavigation:!1)?qt.REDIRECTING:qt.FAILED),se(e=>e!==qt.REDIRECTING),at(1)).subscribe(()=>{t()})}var Ju={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eh={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Le=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=R(Es);stateManager=R(oa);options=R(Or,{optional:!0})||{};pendingTasks=R(ds);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=R(Wu);urlSerializer=R(Tr);location=R(gn);urlHandlingStrategy=R(Pr);_events=new ge;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=R(Gu);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=R(Ir,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!R(Mr,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Yr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(r!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Te&&i.code!==ee.Redirect&&i.code!==ee.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof de)this.navigated=!0;else if(i instanceof St){let o=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=y({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qu(r.source)},o);this.scheduleNavigation(a,Ht,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}nh(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ht,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let s={replaceUrl:!0},o=r?.navigationId?r:null;if(r){let l=y({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Nr),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(e,i={}){let{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:o,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=y(y({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let h;try{let f=r?r.snapshot:this.routerState.snapshot.root;h=qo(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return Vo(h,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Ze(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,Ht,null,i)}navigate(e,i={skipLocationChange:!1}){return th(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=y({},Ju):i===!1?r=y({},eh):r=i,Ze(e))return To(this.currentUrlTree,e,r);let s=this.parseUrl(e);return To(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,s])=>(s!=null&&(i[r]=s),i),{})}scheduleNavigation(e,i,r,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c;o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((h,f)=>{a=h,l=f});let u=this.pendingTasks.add();return Zu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function th(n){for(let t=0;t<n.length;t++)if(n[t]==null)throw new _(4008,!1)}function nh(n){return!(n instanceof Yt)&&!(n instanceof St)}var Wn=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ge;constructor(e,i,r,s,o,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.locationStrategy=a;let l=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof de&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Ze(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,s,o){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:vs(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,s=this.el.nativeElement;i!==null?r.setAttribute(s,e,i):r.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:Ze(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||n)(C(Le),C(tt),hs("tabindex"),C(Ce),C(Y),C(gi))};static \u0275dir=ye({type:n,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&Be("click",function(o){return r.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),i&2&&ct("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",pn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",pn],replaceUrl:[2,"replaceUrl","replaceUrl",pn],routerLink:"routerLink"},features:[bs,un]})}return n})(),aa=(()=>{class n{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new F;constructor(e,i,r,s,o){this.router=e,this.element=i,this.renderer=r,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof de&&this.update()})}ngAfterContentInit(){S(this.links.changes,S(null)).pipe(oi()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ie(e).pipe(oi()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let i=ih(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let s=r.urlTree;return s?e.isActive(s,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||n)(C(Le),C(Y),C(Ce),C(qe),C(Wn,8))};static \u0275dir=ye({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,s){if(i&1&&Ps(s,Wn,5),i&2){let o;ks(o=Ls())&&(r.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[un]})}return n})();function ih(n){return!!n.paths}var rh=new le("");function la(n,...t){return cs([{provide:Ir,multi:!0,useValue:n},[],{provide:tt,useFactory:sh,deps:[Le]},{provide:Ts,multi:!0,useFactory:oh},t.map(e=>e.\u0275providers)])}function sh(n){return n.routerState.root}function oh(){let n=R($e);return t=>{let e=n.get(dn);if(t!==e.components[0])return;let i=n.get(Le),r=n.get(ah);n.get(lh)===1&&i.initialNavigation(),n.get(ch,null,hi.Optional)?.setUpPreloading(),n.get(rh,null,hi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ah=new le("",{factory:()=>new ge}),lh=new le("",{providedIn:"root",factory:()=>1});var ch=new le("");var kr=class{constructor(t,e){this.open=t,this.close=e||t}isManual(){return this.open==="manual"||this.close==="manual"}},uh={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function hh(n,t=uh){let e=(n||"").trim();if(e.length===0)return[];let i=e.split(/\s+/).map(s=>s.split(":")).map(s=>{let o=t[s[0]]||s;return new kr(o[0],o[1])}),r=i.filter(s=>s.isManual());if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(r.length===1&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}function ua(n,t){let e=hh(t.triggers),i=t.target;if(e.length===1&&e[0].isManual())return Function.prototype;let r=[],s=[],o=()=>{s.forEach(a=>r.push(a())),s.length=0};return e.forEach(a=>{let l=a.open===a.close,c=l?t.toggle:t.show;if(!l&&a.close&&t.hide){let u=a.close,h=t.hide,f=()=>n.listen(i,u,h);s.push(f)}c&&r.push(n.listen(i,a.open,()=>c(o)))}),()=>{r.forEach(a=>a())}}function ha(n,t){return t.outsideClick?n.listen("document","click",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(i=>i.contains(e.target))||t.hide&&t.hide()}):Function.prototype}function da(n,t){return t.outsideEsc?n.listen("document","keyup.esc",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(i=>i.contains(e.target))||t.hide&&t.hide()}):Function.prototype}var U=typeof window<"u"&&window||{},$d=U.document,zd=U.location,Bd=U.gc?()=>U.gc():()=>null,qd=U.performance?U.performance:null,Vd=U.Event,Hd=U.MouseEvent,Kd=U.KeyboardEvent,Wd=U.EventTarget,Qd=U.History,Gd=U.Location,Yd=U.EventListener;var xe;function fa(){let n=U.document.createElement("span");n.innerText="testing bs version",n.classList.add("d-none"),n.classList.add("pl-1"),U.document.head.appendChild(n);let t=U.getComputedStyle(n).paddingLeft;return t&&parseFloat(t)?(U.document.head.removeChild(n),"bs4"):(U.document.head.removeChild(n),"bs5")}function dh(){return xe||(xe=fa()),xe==="bs4"}function fh(){return xe||(xe=fa()),xe==="bs5"}function sn(){return{isBs4:dh(),isBs5:fh()}}var Xd=typeof console>"u"||!("warn"in console);var _a=function(n){return n.top="top",n.bottom="bottom",n.left="left",n.right="right",n.auto="auto",n.end="right",n.start="left",n["top left"]="top left",n["top right"]="top right",n["right top"]="right top",n["right bottom"]="right bottom",n["bottom right"]="bottom right",n["bottom left"]="bottom left",n["left bottom"]="left bottom",n["left top"]="left top",n["top start"]="top left",n["top end"]="top right",n["end top"]="right top",n["end bottom"]="right bottom",n["bottom end"]="bottom right",n["bottom start"]="bottom left",n["start bottom"]="start bottom",n["start top"]="left top",n}(_a||{}),jr=function(n){return n.top="top",n.bottom="bottom",n.left="start",n.right="end",n.auto="auto",n.end="end",n.start="start",n["top left"]="top start",n["top right"]="top end",n["right top"]="end top",n["right bottom"]="end bottom",n["bottom right"]="bottom end",n["bottom left"]="bottom start",n["left bottom"]="start bottom",n["left top"]="start top",n["top start"]="top start",n["top end"]="top end",n["end top"]="end top",n["end bottom"]="end bottom",n["bottom end"]="bottom end",n["bottom start"]="bottom start",n["start bottom"]="start bottom",n["start top"]="start top",n}(jr||{});function nt(n,t){if(n.nodeType!==1)return[];let i=n.ownerDocument.defaultView?.getComputedStyle(n,null);return t?i&&i[t]:i}function Ur(n){if(!n)return document.documentElement;let t=null,e=n?.offsetParent,i;for(;e===t&&n.nextElementSibling&&i!==n.nextElementSibling;)i=n.nextElementSibling,e=i.offsetParent;let r=e&&e.nodeName;return!r||r==="BODY"||r==="HTML"?i?i.ownerDocument.documentElement:document.documentElement:e&&["TH","TD","TABLE"].indexOf(e.nodeName)!==-1&&nt(e,"position")==="static"?Ur(e):e}function ph(n){let{nodeName:t}=n;return t==="BODY"?!1:t==="HTML"||Ur(n.firstElementChild)===n}function Lr(n){return n.parentNode!==null?Lr(n.parentNode):n}function Jn(n,t){if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;let e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=e?n:t,r=e?t:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);let o=s.commonAncestorContainer;if(n!==o&&t!==o||i.contains(r))return ph(o)?o:Ur(o);let a=Lr(n);return a.host?Jn(a.host,t):Jn(n,Lr(t).host)}function wa(n){if(!n||!n.parentElement)return document.documentElement;let t=n.parentElement;for(;t?.parentElement&&nt(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function pa(n,t){let e=t==="x"?"Left":"Top",i=e==="Left"?"Right":"Bottom";return parseFloat(n[`border${e}Width`])+parseFloat(n[`border${i}Width`])}function ga(n,t,e){let i=t,r=e;return Math.max(i[`offset${n}`],i[`scroll${n}`],r[`client${n}`],r[`offset${n}`],r[`scroll${n}`],0)}function Sa(n){let t=n.body,e=n.documentElement;return{height:ga("Height",t,e),width:ga("Width",t,e)}}function on(n){return z(y({},n),{right:(n.left||0)+n.width,bottom:(n.top||0)+n.height})}function gh(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(Number(n))}function I(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function ma(n){let t=n.getBoundingClientRect();if(!(t&&I(t.top)&&I(t.left)&&I(t.bottom)&&I(t.right)))return t;let e={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i=n.nodeName==="HTML"?Sa(n.ownerDocument):void 0,r=i?.width||n.clientWidth||I(t.right)&&I(e.left)&&t.right-e.left||0,s=i?.height||n.clientHeight||I(t.bottom)&&I(e.top)&&t.bottom-e.top||0,o=n.offsetWidth-r,a=n.offsetHeight-s;if(o||a){let l=nt(n);o-=pa(l,"x"),a-=pa(l,"y"),e.width-=o,e.height-=a}return on(e)}function $r(n,t,e=!1){let i=t.nodeName==="HTML",r=ma(n),s=ma(t),o=nt(t),a=parseFloat(o.borderTopWidth),l=parseFloat(o.borderLeftWidth);e&&i&&(s.top=Math.max(s.top??0,0),s.left=Math.max(s.left??0,0));let c=on({top:(r.top??0)-(s.top??0)-a,left:(r.left??0)-(s.left??0)-l,width:r.width,height:r.height});if(c.marginTop=0,c.marginLeft=0,i){let u=parseFloat(o.marginTop),h=parseFloat(o.marginLeft);I(c.top)&&(c.top-=a-u),I(c.bottom)&&(c.bottom-=a-u),I(c.left)&&(c.left-=l-h),I(c.right)&&(c.right-=l-h),c.marginTop=u,c.marginLeft=h}return c}function zr(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function ba(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body;default:}let{overflow:t,overflowX:e,overflowY:i}=nt(n);return/(auto|scroll|overlay)/.test(String(t)+String(i)+String(e))?n:ba(zr(n))}function ya(n,t="top"){let e=t==="top"?"scrollTop":"scrollLeft",i=n.nodeName;if(i==="BODY"||i==="HTML"){let r=n.ownerDocument.documentElement;return(n.ownerDocument.scrollingElement||r)[e]}return n[e]}function mh(n,t=!1){let e=n.ownerDocument.documentElement,i=$r(n,e),r=Math.max(e.clientWidth,window.innerWidth||0),s=Math.max(e.clientHeight,window.innerHeight||0),o=t?0:ya(e),a=t?0:ya(e,"left"),l={top:o-Number(i?.top)+Number(i?.marginTop),left:a-Number(i?.left)+Number(i?.marginLeft),width:r,height:s};return on(l)}function Ca(n){let t=n.nodeName;return t==="BODY"||t==="HTML"?!1:nt(n,"position")==="fixed"?!0:Ca(zr(n))}function Br(n,t,e=0,i,r=!1){let s={top:0,left:0},o=r?wa(n):Jn(n,t);if(i==="viewport")s=mh(o,r);else{let a;i==="scrollParent"?(a=ba(zr(t)),a.nodeName==="BODY"&&(a=n.ownerDocument.documentElement)):i==="window"?a=n.ownerDocument.documentElement:a=i;let l=$r(a,o,r);if(l&&a.nodeName==="HTML"&&!Ca(o)){let{height:c,width:u}=Sa(n.ownerDocument);I(s.top)&&I(l.top)&&I(l.marginTop)&&(s.top+=l.top-l.marginTop),I(s.top)&&(s.bottom=Number(c)+Number(l.top)),I(s.left)&&I(l.left)&&I(l.marginLeft)&&(s.left+=l.left-l.marginLeft),I(s.top)&&(s.right=Number(u)+Number(l.left))}else l&&(s=l)}return I(s.left)&&(s.left+=e),I(s.top)&&(s.top+=e),I(s.right)&&(s.right-=e),I(s.bottom)&&(s.bottom-=e),s}function yh({width:n,height:t}){return n*t}function Ea(n,t,e,i,r=["top","bottom","right","left"],s="viewport",o=0){if(n.indexOf("auto")===-1)return n;let a=Br(e,i,o,s),l={top:{width:a?.width??0,height:(t?.top??0)-(a?.top??0)},right:{width:(a?.right??0)-(t?.right??0),height:a?.height??0},bottom:{width:a?.width??0,height:(a?.bottom??0)-(t?.bottom??0)},left:{width:(t.left??0)-(a?.left??0),height:a?.height??0}},c=Object.keys(l).map(p=>z(y({position:p},l[p]),{area:yh(l[p])})).sort((p,d)=>d.area-p.area),u=c.filter(({width:p,height:d})=>p>=e.clientWidth&&d>=e.clientHeight);u=u.filter(({position:p})=>r.some(d=>d===p));let h=u.length>0?u[0].position:c[0].position,f=n.split(" ")[1];return e.className=e.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${sn().isBs5?jr[h]:h}`),h+(f?`-${f}`:"")}function vh(n){return{width:n.offsets.target.width,height:n.offsets.target.height,left:Math.floor(n.offsets.target.left??0),top:Math.round(n.offsets.target.top??0),bottom:Math.round(n.offsets.target.bottom??0),right:Math.floor(n.offsets.target.right??0)}}function _h(n){let t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,e=>t[e])}function wh(n){return n==="right"?"left":n==="left"?"right":n}var Yn=(n,t=0)=>n?parseFloat(n):t;function Ra(n){let e=n.ownerDocument.defaultView?.getComputedStyle(n),i=Yn(e?.marginTop)+Yn(e?.marginBottom),r=Yn(e?.marginLeft)+Yn(e?.marginRight);return{width:Number(n.offsetWidth)+r,height:Number(n.offsetHeight)+i}}function Ta(n,t,e){let i=e?wa(n):Jn(n,t);return $r(t,i,e)}function xr(n,t,e){let i=e.split(" ")[0],r=Ra(n),s={width:r.width,height:r.height},o=["right","left"].indexOf(i)!==-1,a=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return s[a]=(t[a]??0)+t[c]/2-r[c]/2,s[l]=i===l?(t[l]??0)-r[u]:t[_h(l)]??0,s}function Aa(n,t){return!!n.modifiers[t]?.enabled}var Sh={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function Xn(n,t){return sn().isBs5?Sh[t].includes(n):!1}function bh(n){return sn().isBs5?Xn(n,"end")?"ms-2":Xn(n,"start")?"me-2":Xn(n,"top")?"mb-2":Xn(n,"bottom")?"mt-2":"":""}function Ch(n,t){let e=n.instance.target,i=e.className,r=sn().isBs5?jr[n.placement]:n.placement;if(n.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${r}`),i=i.replace(/ms-2|me-2|mb-2|mt-2/g,""),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${r}`),i=i.replace(/\sauto/g,` ${r}`),i.indexOf("popover")!==-1&&(i=i+" "+bh(r)),i.indexOf("popover")!==-1&&i.indexOf("popover-auto")===-1&&(i+=" popover-auto"),i.indexOf("tooltip")!==-1&&i.indexOf("tooltip-auto")===-1&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom|end|start/g,`${r.split(" ")[0]}`),t){t.setAttribute(e,"class",i);return}e.className=i}function va(n,t,e){!n||!t||Object.keys(t).forEach(i=>{let r="";if(["width","height","top","right","bottom","left"].indexOf(i)!==-1&&gh(t[i])&&(r="px"),e){e.setStyle(n,i,`${String(t[i])}${r}`);return}n.style[i]=String(t[i])+r})}function Eh(n){let t=n.offsets.target,e=n.instance.target.querySelector(".arrow");if(!e)return n;let i=["left","right"].indexOf(n.placement.split(" ")[0])!==-1,r=i?"height":"width",s=i?"Top":"Left",o=s.toLowerCase(),a=i?"left":"top",l=i?"bottom":"right",c=Ra(e)[r],u=n.placement.split(" ")[1];(n.offsets.host[l]??0)-c<(t[o]??0)&&(t[o]-=(t[o]??0)-((n.offsets.host[l]??0)-c)),Number(n.offsets.host[o])+Number(c)>(t[l]??0)&&(t[o]+=Number(n.offsets.host[o])+Number(c)-Number(t[l])),t=on(t);let h=nt(n.instance.target),f=parseFloat(h[`margin${s}`])||0,p=parseFloat(h[`border${s}Width`])||0,d;if(!u)d=Number(n.offsets.host[o])+Number(n.offsets.host[r]/2-c/2);else{let b=parseFloat(h.borderRadius)||0,A=Number(f+p+b);d=o===u?Number(n.offsets.host[o])+A:Number(n.offsets.host[o])+Number(n.offsets.host[r]-A)}let m=d-(t[o]??0)-f-p;return m=Math.max(Math.min(t[r]-(c+5),m),0),n.offsets.arrow={[o]:Math.round(m),[a]:""},n.instance.arrow=e,n}function Rh(n){if(n.offsets.target=on(n.offsets.target),!Aa(n.options,"flip"))return n.offsets.target=y(y({},n.offsets.target),xr(n.instance.target,n.offsets.host,n.placement)),n;let t=Br(n.instance.target,n.instance.host,0,"viewport",!1),e=n.placement.split(" ")[0],i=n.placement.split(" ")[1]||"",r=n.offsets.host,s=n.instance.target,o=n.instance.host,a=Ea("auto",r,s,o,n.options.allowedPositions),l=[e,a];return l.forEach((c,u)=>{if(e!==c||l.length===u+1)return;e=n.placement.split(" ")[0];let h=e==="left"&&Math.floor(n.offsets.target.right??0)>Math.floor(n.offsets.host.left??0)||e==="right"&&Math.floor(n.offsets.target.left??0)<Math.floor(n.offsets.host.right??0)||e==="top"&&Math.floor(n.offsets.target.bottom??0)>Math.floor(n.offsets.host.top??0)||e==="bottom"&&Math.floor(n.offsets.target.top??0)<Math.floor(n.offsets.host.bottom??0),f=Math.floor(n.offsets.target.left??0)<Math.floor(t.left??0),p=Math.floor(n.offsets.target.right??0)>Math.floor(t.right??0),d=Math.floor(n.offsets.target.top??0)<Math.floor(t.top??0),m=Math.floor(n.offsets.target.bottom??0)>Math.floor(t.bottom??0),b=e==="left"&&f||e==="right"&&p||e==="top"&&d||e==="bottom"&&m,A=["top","bottom"].indexOf(e)!==-1,P=A&&i==="left"&&f||A&&i==="right"&&p||!A&&i==="left"&&d||!A&&i==="right"&&m;(h||b||P)&&((h||b)&&(e=l[u+1]),P&&(i=wh(i)),n.placement=e+(i?` ${i}`:""),n.offsets.target=y(y({},n.offsets.target),xr(n.instance.target,n.offsets.host,n.placement)))}),n}function Th(n,t,e,i){if(!n||!t)return;let r=Ta(n,t);!e.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!e.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(e="auto");let s=!!e.match(/auto/g),o=e.match(/auto\s(left|right|top|bottom|start|end)/)?e.split(" ")[1]||"auto":e,a=o.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);a&&(o=a[1]+(a[2]?` ${a[2]}`:"")),["left right","right left","top bottom","bottom top"].indexOf(o)!==-1&&(o="auto"),o=Ea(o,r,n,t,i?i.allowedPositions:void 0);let l=xr(n,r,o);return{options:i||{modifiers:{}},instance:{target:n,host:t,arrow:void 0},offsets:{target:l,host:r,arrow:void 0},positionFixed:!1,placement:o,placementAuto:s}}function Ah(n){if(!Aa(n.options,"preventOverflow"))return n;let t="transform",e=n.instance.target.style,{top:i,left:r,[t]:s}=e;e.top="",e.left="",e[t]="";let o=Br(n.instance.target,n.instance.host,0,n.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);e.top=i,e.left=r,e[t]=s;let a=["left","right","top","bottom"],l={primary(c){let u=n.offsets.target[c];return(n.offsets.target[c]??0)<(o[c]??0)&&(u=Math.max(n.offsets.target[c]??0,o[c]??0)),{[c]:u}},secondary(c){let u=c==="right",h=u?"left":"top",f=u?"width":"height",p=n.offsets.target[h];return(n.offsets.target[c]??0)>(o[c]??0)&&(p=Math.min(n.offsets.target[h]??0,(o[c]??0)-n.offsets.target[f])),{[h]:p}}};return a.forEach(c=>{let u=["left","top","start"].indexOf(c)!==-1?l.primary:l.secondary;n.offsets.target=y(y({},n.offsets.target),u(c))}),n}function Dh(n){let t=n.placement,e=t.split(" ")[0],i=t.split(" ")[1];if(i){let{host:r,target:s}=n.offsets,o=["bottom","top"].indexOf(e)!==-1,a=o?"left":"top",l=o?"width":"height",c={start:{[a]:r[a]},end:{[a]:(r[a]??0)+r[l]-s[l]}};n.offsets.target=z(y({},s),{[a]:a===i?c.start[a]:c.end[a]})}return n}var Fr=class{position(t,e){return this.offset(t,e)}offset(t,e){return Ta(e,t)}positionElements(t,e,i,r,s){let o=[Rh,Dh,Ah,Eh],a=_a[i],l=Th(e,t,a,s);if(l)return o.reduce((c,u)=>u(c),l)}},Mh=new Fr;function Oh(n,t,e,i,r,s){let o=Mh.positionElements(n,t,e,i,r);if(!o)return;let a=vh(o);va(t,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},s),o.instance.arrow&&va(o.instance.arrow,o.offsets.arrow,s),Ch(o,s)}var Da=(()=>{class n{constructor(e,i,r){this.update$$=new ge,this.positionElements=new Map,this.isDisabled=!1,Us(r)&&e.runOutsideAngular(()=>{this.triggerEvent$=ns(li(window,"scroll",{passive:!0}),li(window,"resize",{passive:!0}),S(0,Zr),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(s=>{Oh(Zn(s.target),Zn(s.element),s.attachment,s.appendToBody,this.options,i.createRenderer(null,null))})})})}position(e){this.addPositionElement(e)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(e){this.positionElements.set(Zn(e.element),e)}calcPosition(){this.update$$.next(null)}deletePositionElement(e){this.positionElements.delete(Zn(e))}setOptions(e){this.options=e}static{this.\u0275fac=function(i){return new(i||n)(L(ze),L(lt),L(ps))}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Zn(n){return typeof n=="string"?document.querySelector(n):n instanceof Y?n.nativeElement:n??null}var it=class{constructor(t,e,i){this.nodes=t,this.viewRef=e,this.componentRef=i}},qr=class{constructor(t,e,i,r,s,o,a,l,c){this._viewContainerRef=t,this._renderer=e,this._elementRef=i,this._injector=r,this._componentFactoryResolver=s,this._ngZone=o,this._applicationRef=a,this._posService=l,this._document=c,this.onBeforeShow=new F,this.onShown=new F,this.onBeforeHide=new F,this.onHidden=new F,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return this._isHiding?!1:!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return t?(this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this):this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);let e=$e.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof Y&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),typeof this.container=="string"&&typeof this._document<"u"){let i=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!i)return;i.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(t.id?{id:t.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(t){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);let e=this._componentRef.location.nativeElement;return e.parentNode?.removeChild(e),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._componentRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(t?{id:t}:null),this}toggle(){if(this.isShown){this.hide();return}this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef?.nativeElement;let e=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),i=this._listenOpts.show=s=>{t.show?t.show(s):this.show(s),s()},r=s=>{this.isShown?e():i(s)};return this._renderer&&(this._unregisterListenersFn=ua(this._renderer,{target:t.target,triggers:t.triggers,show:i,hide:e,toggle:r})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(t,e){return t&&e&&(this._inlineViewRef=t.createEmbeddedView(e)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let t=Function.prototype,e=Function.prototype;if(this._listenOpts.outsideClick){let i=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(t=ha(this._renderer,{targets:[i,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}if(this._listenOpts.outsideEsc&&this._renderer&&this._elementRef){let i=this._componentRef.location.nativeElement;e=da(this._renderer,{targets:[i,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})}this._globalListener=()=>{t(),e()}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:this.container==="body"})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(t,e,i){if(!t)return new it([]);if(t instanceof hn){if(this._viewContainerRef){let o=this._viewContainerRef.createEmbeddedView(t,e);return o.markForCheck(),new it([o.rootNodes],o)}let s=t.createEmbeddedView({});return this._applicationRef.attachView(s),new it([s.rootNodes],s)}if(typeof t=="function"){let s=this._componentFactoryResolver.resolveComponentFactory(t),o=$e.create({providers:this._providers,parent:this._injector}),a=s.create(o);return Object.assign(a.instance,i),this._applicationRef.attachView(a.hostView),new it([[a.location.nativeElement]],a.hostView,a)}let r=this._renderer?[this._renderer.createText(`${t}`)]:[];return new it([r])}},ei=(()=>{class n{constructor(e,i,r,s,o,a){this._componentFactoryResolver=e,this._ngZone=i,this._injector=r,this._posService=s,this._applicationRef=o,this._document=a}createLoader(e,i,r){return new qr(i,r,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static{this.\u0275fac=function(i){return new(i||n)(L(_s),L(ze),L($e),L(Da),L(dn),L(Ve))}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ph=["*"],kh=n=>({dropdown:n}),Ma=(()=>{class n{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Et=(()=>{class n{constructor(){this.direction="down",this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1,this.isOpenChange=new F,this.isDisabledChange=new F,this.toggleClick=new F,this.counts=0,this.dropdownMenu=new Promise(e=>{this.resolveDropdownMenu=e})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"platform"})}}return n})(),Lh="220ms cubic-bezier(0, 0, 0.2, 1)",Oa=[ce({height:0,overflow:"hidden"}),kt(Lh,ce({height:"*",overflow:"hidden"}))],xh=(()=>{class n{get direction(){return this._state.direction}constructor(e,i,r,s,o){this._state=e,this.cd=i,this._renderer=r,this._element=s,this.isOpen=!1,this._factoryDropDownAnimation=o.build(Oa),this._subscription=e.isOpenChange.subscribe(a=>{this.isOpen=a;let l=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),l&&(this._renderer.addClass(l,"show"),(l.classList.contains("dropdown-menu-right")||l.classList.contains("dropdown-menu-end"))&&(this._renderer.setStyle(l,"left","auto"),this._renderer.setStyle(l,"right","0")),this.direction==="up"&&(this._renderer.setStyle(l,"top","auto"),this._renderer.setStyle(l,"transform","translateY(-101%)"))),l&&this._state.isAnimated&&this._factoryDropDownAnimation.create(l).play(),this.cd.markForCheck(),this.cd.detectChanges()})}_contains(e){return this._element.nativeElement.contains(e)}ngOnDestroy(){this._subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(C(Et),C(qe),C(Ce),C(Y),C(dt))}}static{this.\u0275cmp=Ne({type:n,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:Ph,decls:2,vars:9,consts:[[3,"ngClass"]],template:function(i,r){i&1&&(Ns(),W(0,"div",0),Is(1),Q()),i&2&&(It("dropup",r.direction==="up")("show",r.isOpen)("open",r.isOpen),ut("ngClass",fn(7,kh,r.direction==="down")))},dependencies:[js],encapsulation:2,changeDetection:0})}}return n})(),Vr=(()=>{class n{set autoClose(e){this._state.autoClose=e}get autoClose(){return this._state.autoClose}set isAnimated(e){this._state.isAnimated=e}get isAnimated(){return this._state.isAnimated}set insideClick(e){this._state.insideClick=e}get insideClick(){return this._state.insideClick}set isDisabled(e){this._isDisabled=e,this._state.isDisabledChange.emit(e),e&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(e){e?this.show():this.hide()}get _showInline(){return!this.container}constructor(e,i,r,s,o,a,l){this._elementRef=e,this._renderer=i,this._viewContainerRef=r,this._cis=s,this._state=o,this._config=a,this.dropup=!1,this._isInlineOpen=!1,this._isDisabled=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._state.isAnimated=this._config.isAnimated,this._state.stopOnClickPropagation=this._config.stopOnClickPropagation,this._factoryDropDownAnimation=l.build(Oa),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:Et,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(e=>this.toggle(e))),this._subscriptions.push(this._state.isDisabledChange.pipe(se(e=>e)).subscribe(()=>this.hide())))}show(){if(!(this.isOpen||this.isDisabled)){if(this._showInline){this._inlinedMenu||this._state.dropdownMenu.then(e=>{this._dropdown.attachInline(e.viewContainer,e.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills(),this._inlinedMenu&&this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode,"open"),this.playAnimation()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),this._state.isOpenChange.emit(!0),this.playAnimation();return}this._state.dropdownMenu.then(e=>{let i=this.dropup||typeof this.dropup<"u"&&this.dropup;this._state.direction=i?"up":"down";let r=this.placement||(i?"top start":"bottom start");this._dropdown.attach(xh).to(this.container).position({attachment:r}).show({content:e.templateRef,placement:r}),this._state.isOpenChange.emit(!0)}).catch()}}hide(){this.isOpen&&(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(e){return this.isOpen||!e?this.hide():this.show()}_contains(e){return this._elementRef.nativeElement.contains(e.target)||this._dropdown.instance&&this._dropdown.instance._contains(e.target)}navigationClick(e){let i=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(!i)return;let r=this._elementRef.nativeElement.ownerDocument.activeElement,s=i.querySelectorAll(".dropdown-item");switch(e.keyCode){case 38:this._state.counts>0&&s[--this._state.counts].focus();break;case 40:this._state.counts+1<s.length&&(r.classList!==s[this._state.counts].classList?s[this._state.counts].focus():s[++this._state.counts].focus());break;default:}e.preventDefault()}ngOnDestroy(){for(let e of this._subscriptions)e.unsubscribe();this._dropdown.dispose()}addBs4Polyfills(){this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles()}playAnimation(){this._state.isAnimated&&this._inlinedMenu&&setTimeout(()=>{this._inlinedMenu&&this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play()})}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){let e=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right")||this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-end");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",e?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",e?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}static{this.\u0275fac=function(i){return new(i||n)(C(Y),C(Ce),C(Ot),C(ei),C(Et),C(Ma),C(dt))}}static{this.\u0275dir=ye({type:n,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(i,r){i&1&&Be("keydown.arrowDown",function(o){return r.navigationClick(o)})("keydown.arrowUp",function(o){return r.navigationClick(o)}),i&2&&It("dropup",r.dropup)("open",r.isOpen)("show",r.isOpen)},inputs:{placement:"placement",triggers:"triggers",container:"container",dropup:"dropup",autoClose:"autoClose",isAnimated:"isAnimated",insideClick:"insideClick",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-dropdown"],features:[xs([Et,ei,Ma])]})}}return n})(),Na=(()=>{class n{constructor(e,i,r){e.resolveDropdownMenu({templateRef:r,viewContainer:i})}static{this.\u0275fac=function(i){return new(i||n)(C(Et),C(Ot),C(hn))}}static{this.\u0275dir=ye({type:n,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]})}}return n})(),Ia=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dropdown=i,this._element=r,this._renderer=s,this._state=o,this.isOpen=!1,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(a=>{this.isOpen=a,a?(this._documentClickListener=this._renderer.listen("document","click",l=>{this._state.autoClose&&l.button!==2&&!this._element.nativeElement.contains(l.target)&&!(this._state.insideClick&&this._dropdown._contains(l))&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(a=>this.isDisabled=a||void 0))}onClick(e){this._state.stopOnClickPropagation&&e.stopPropagation(),!this.isDisabled&&this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(let e of this._subscriptions)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(C(qe),C(Vr),C(Y),C(Ce),C(Et))}}static{this.\u0275dir=ye({type:n,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(i,r){i&1&&Be("click",function(o){return r.onClick(o)}),i&2&&ct("aria-haspopup",!0)("disabled",r.isDisabled)("aria-expanded",r.isOpen)},exportAs:["bs-dropdown-toggle"]})}}return n})(),Pa=(()=>{class n{static forRoot(){return{ngModule:n,providers:[]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=Nt({type:n})}static{this.\u0275inj=At({})}}return n})();var ka="400ms cubic-bezier(0.4,0.0,0.2,1)",jh=[ce({height:0,visibility:"hidden"}),kt(ka,ce({height:"*",visibility:"visible"}))],Uh=[ce({height:"*",visibility:"visible"}),kt(ka,ce({height:0,visibility:"hidden"}))],La=(()=>{class n{set display(e){if(this._display=e,e==="none"){this.hide();return}this.isAnimated?this.toggle():this.show()}set collapse(e){this.collapseNewValue=e,(!this._player||this._isAnimationDone)&&(this.isExpanded=e,this.toggle())}get collapse(){return this.isExpanded}constructor(e,i,r){this._el=e,this._renderer=i,this.collapsed=new F,this.collapses=new F,this.expanded=new F,this.expands=new F,this.isExpanded=!0,this.collapseNewValue=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this.isAnimated=!1,this._display="block",this._stylesLoaded=!1,this._COLLAPSE_ACTION_NAME="collapse",this._EXPAND_ACTION_NAME="expand",this._factoryCollapseAnimation=r.build(Uh),this._factoryExpandAnimation=r.build(jh)}ngAfterViewChecked(){this._stylesLoaded=!0,!(!this._player||!this._isAnimationDone)&&(this._player.reset(),this._renderer.setStyle(this._el.nativeElement,"height","*"))}toggle(){this.isExpanded?this.hide():this.show()}hide(){this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapsing=!1,this.collapses.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._COLLAPSE_ACTION_NAME)(()=>{if(this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated){this.show();return}this.collapsed.emit(this),this._renderer.setStyle(this._el.nativeElement,"display","none")})}show(){this._renderer.setStyle(this._el.nativeElement,"display",this._display),this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapsing=!1,this.expands.emit(this),this._isAnimationDone=!1,this.animationRun(this.isAnimated,this._EXPAND_ACTION_NAME)(()=>{if(this._isAnimationDone=!0,this.collapseNewValue!==this.isCollapsed&&this.isAnimated){this.hide();return}this.expanded.emit(this),this._renderer.removeStyle(this._el.nativeElement,"overflow")})}animationRun(e,i){if(!e||!this._stylesLoaded)return s=>s();this._renderer.setStyle(this._el.nativeElement,"overflow","hidden"),this._renderer.addClass(this._el.nativeElement,"collapse");let r=i===this._EXPAND_ACTION_NAME?this._factoryExpandAnimation:this._factoryCollapseAnimation;return this._player&&this._player.reset(),this._player=r.create(this._el.nativeElement),this._player.play(),s=>this._player?.onDone(s)}static{this.\u0275fac=function(i){return new(i||n)(C(Y),C(Ce),C(dt))}}static{this.\u0275dir=ye({type:n,selectors:[["","collapse",""]],hostVars:9,hostBindings:function(i,r){i&2&&(ct("aria-hidden",r.isCollapsed),It("collapse",r.isCollapse)("in",r.isExpanded)("show",r.isExpanded)("collapsing",r.isCollapsing))},inputs:{display:"display",isAnimated:"isAnimated",collapse:"collapse"},outputs:{collapsed:"collapsed",collapses:"collapses",expanded:"expanded",expands:"expands"},exportAs:["bs-collapse"]})}}return n})();var $h=()=>({exact:!0}),zh=n=>["/examples",n];function Bh(n,t){if(n&1&&(W(0,"li",17),ve(1,"a",18),Q()),n&2){let e=t.$implicit,i=fi(2);Mt(),ut("routerLink",fn(2,zh,e.path))("innerHTML",i.transform(e==null||e.data==null?null:e.data.label),ys)}}function qh(n,t){if(n&1&&(W(0,"ul",16),Ms(1,Bh,2,4,"li",17,Ds),Q()),n&2){let e=fi();Mt(),Os(e.examples)}}var xa=(()=>{class n{constructor(e,i){this.sanitizer=e,this.router=i,this.isCollapsed=!0,this.class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark",this.examples=Ws,this.router.events.pipe(se(r=>r instanceof Je)).subscribe(()=>{this.isCollapsed=!0})}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(i){return new(i||n)(C(Ks),C(Le))}}static{this.\u0275cmp=Ne({type:n,selectors:[["sp-topbar"]],hostVars:2,hostBindings:function(i,r){i&2&&As(r.class)},decls:22,vars:3,consts:[[1,"navbar-toggler","hidden-lg-up",3,"click"],[1,"navbar-toggler-icon"],[1,"mr-auto"],["src","/assets/logo.svg","height","28","alt","",1,"mx-2"],["routerLink","/",1,"navbar-brand"],[1,"collapse","navbar-collapse",3,"collapse"],[1,"nav","navbar-nav"],["routerLinkActive","active",1,"nav-item",3,"routerLinkActiveOptions"],["routerLink","/",1,"nav-link"],["routerLinkActive","active",1,"nav-item"],["routerLink","/changelog",1,"nav-link"],["routerLink","/documentation",1,"nav-link"],["dropdown","","routerLinkActive","active",1,"nav-item","dropdown"],["dropdownToggle","",1,"nav-link","dropdown-toggle"],[1,"caret"],["class","dropdown-menu","role","menu",4,"dropdownMenu"],["role","menu",1,"dropdown-menu"],["routerLinkActive","active"],[1,"dropdown-item",3,"routerLink","innerHTML"]],template:function(i,r){i&1&&(W(0,"button",0),Be("click",function(){return r.isCollapsed=!r.isCollapsed}),ve(1,"span",1),Q(),W(2,"span",2),ve(3,"img",3),W(4,"a",4),ht(5,"angular-split"),Q()(),W(6,"div",5)(7,"ul",6)(8,"li",7)(9,"a",8),ht(10,"Home"),Q()(),W(11,"li",9)(12,"a",10),ht(13,"Changelog"),Q()(),W(14,"li",9)(15,"a",11),ht(16,"Documentation"),Q()(),W(17,"li",12)(18,"a",13),ht(19,"Examples "),ve(20,"span",14),Q(),Cs(21,qh,3,0,"ul",15),Q()()()),i&2&&(Mt(6),ut("collapse",r.isCollapsed),Mt(2),ut("routerLinkActiveOptions",Fs(2,$h)))},dependencies:[Wn,aa,La,Pa,Na,Ia,Vr],styles:["[_nghost-%COMP%]{position:absolute}a.navbar-brand[_ngcontent-%COMP%], a.navbar-brand[_ngcontent-%COMP%]:hover{font-weight:700;color:#ffc421}li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{cursor:pointer}ul.dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active, ul.dropdown-menu[_ngcontent-%COMP%] > li.active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{background-color:#eee;cursor:default;color:#000}.navbar-toggler[_ngcontent-%COMP%]{float:right;margin-right:20px}@media (max-width: 992px){.container-fluid[_ngcontent-%COMP%]{padding-left:0}a.navbar-brand[_ngcontent-%COMP%]{margin-right:0}}"],changeDetection:0})}}return n})();var Fa=(()=>{class n{constructor(e){this.router=e,this.router.events.pipe(se(i=>i instanceof de)).subscribe(()=>{window.scrollTo(0,0)})}static{this.\u0275fac=function(i){return new(i||n)(C(Le))}}static{this.\u0275cmp=Ne({type:n,selectors:[["sp-app-root"]],decls:3,vars:0,template:function(i,r){i&1&&(ve(0,"sp-topbar"),W(1,"div"),ve(2,"router-outlet"),Q())},dependencies:[Dr,xa],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{padding-top:54px;width:100%;height:100%}"]})}}return n})();var Vh=[{path:"",loadComponent:()=>import("./chunk-RTWJQGK6.js").then(n=>n.HomeComponent)},{path:"changelog",loadComponent:()=>import("./chunk-NV53ZGLB.js").then(n=>n.ChangelogComponent)},{path:"documentation",loadComponent:()=>import("./chunk-FEEGVKS6.js").then(n=>n.DocumentationComponent)},{path:"examples",loadChildren:()=>import("./chunk-GJFKSNGM.js").then(n=>n.exampleRoutes)}];Vs(Fa,{providers:[us(mi,Bs),Ro(),la(Vh),$s(zs())]}).catch(n=>console.error(n));