PageSourceSearch

https://races.bordairrace.com/main-SRLXW5TB.js

js bordairrace.com collected 2026-09-27 02:00:53 UTC 68,240 bytes, 1 lines download raw bytes

vendor: 53,040 bytes, line 1
1import{d as ni}from"./chunk-LRD7JII3.js";import{$ as rt,$b as ci,Ba as Xt,C as Ut,Ca as Zt,Da as Jt,E as st,Ea as ei,Eb as ri,Fa as ti,Fb as oi,Ga as Be,H as B,Ha as S,I as ue,Ia as W,Ja as ii,K as xt,Ka as ot,L as Se,La as Te,M as Z,Ma as at,Na as ze,O as ve,Q as k,R as Wt,Sb as ai,T as w,U as A,V as Ee,Y as Pe,_ as J,_b as li,a as Fe,ac as ui,bc as hi,c as Vt,g as Qt,ga as Gt,ha as D,mb as si,na as V,ob as be,pc as di,q as jt,qa as ee,qc as mi,r as E,ra as te,s as _e,sc as fi,t as X,uc as pi,v as ae,va as Ht,vc as Ke,wc as we,x as le,xc as lt,y as ce,ya as Yt,za as Le}from"./chunk-VKIDN44N.js";function gi(n){return new E(3e3,!1)}function en(){return new E(3100,!1)}function tn(){return new E(3101,!1)}function nn(n){return new E(3001,!1)}function sn(n){return new E(3003,!1)}function rn(n){return new E(3004,!1)}function on(n,e){return new E(3005,!1)}function an(){return new E(3006,!1)}function ln(){return new E(3007,!1)}function cn(n,e){return new E(3008,!1)}function un(n){return new E(3002,!1)}function hn(n,e,t,i,s){return new E(3010,!1)}function dn(){return new E(3011,!1)}function mn(){return new E(3012,!1)}function fn(){return new E(3200,!1)}function pn(){return new E(3202,!1)}function gn(){return new E(3013,!1)}function yn(n){return new E(3014,!1)}function _n(n){return new E(3015,!1)}function Sn(n){return new E(3016,!1)}function vn(n,e){return new E(3404,!1)}function En(n){return new E(3502,!1)}function Tn(n){return new E(3503,!1)}function bn(){return new E(3300,!1)}function wn(n){return new E(3504,!1)}function An(n){return new E(3301,!1)}function Mn(n,e){return new E(3302,!1)}function Pn(n){return new E(3303,!1)}function Cn(n,e){return new E(3400,!1)}function Nn(n){return new E(3401,!1)}function kn(n){return new E(3402,!1)}function Dn(n,e){return new E(3505,!1)}function ie(n){switch(n.length){case 0:return new Te;case 1:return n[0];default:return new at(n)}}function ki(n,e,t=new Map,i=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=n.normalizePropertyName(m,s),g){case ze:g=t.get(y);break;case W:g=i.get(y);break;default:g=n.normalizeStyleValue(y,m,g,s);break}u.set(m,g)}),h||r.push(u),a=u,o=c}),s.length)throw En(s);return r}function kt(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ct(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ct(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ct(t,"destroy",n)));break}}function ct(n,e,t){let i=t.totalTime,s=!!t.disabled,r=Dt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function Dt(n,e,t,i,s="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function q(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function yi(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var Rn=typeof document>"u"?null:document.documentElement;function Rt(n){let e=n.parentNode||n.host||null;return e===Rn?null:e}function In(n){return n.substring(1,6)=="ebkit"}var he=null,_i=!1;function On(n){he||(he=Fn()||{},_i=he.style?"WebkitAppearance"in he.style:!1);let e=!0;return he.style&&!In(n)&&(e=n in he.style,!e&&_i&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in he.style)),e}function Fn(){return typeof document<"u"?document.body:null}function Di(n,e){for(;e;){if(e===n)return!0;e=Rt(e)}return!1}function Ri(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var It=(()=>{class n{validateStyleProperty(t){return On(t)}containsElement(t,i){return Di(t,i)}getParentElement(t){return Rt(t)}query(t,i,s){return Ri(t,i,s)}computeStyle(t,i,s){return s||""}animate(t,i,s,r,o,a=[],l){return new Te(s,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=_e({token:n,factory:n.\u0275fac})}return n})(),fe=class{static NOOP=new It},pe=class{};var Ln=1e3,Ii="{{",Bn="}}",Oi="ng-enter",pt="ng-leave",qe="ng-trigger",Ue=".ng-trigger",Si="ng-animating",gt=".ng-animating";function H(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yt(parseFloat(e[1]),e[2])}function yt(n,e){switch(e){case"s":return n*Ln;default:return n}}function xe(n,e,t){return n.hasOwnProperty("duration")?n:zn(n,e,t)}function zn(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(gi(n)),{duration:0,delay:0,easing:""};s=yt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=yt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!t){let a=!1,l=e.length;s<0&&(e.push(en()),a=!0),r<0&&(e.push(tn()),a=!0),a&&e.splice(l,0,gi(n))}return{duration:s,delay:r,easing:o}}function Kn(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function G(n,e,t){e.forEach((i,s)=>{let r=Ot(s);t&&!t.has(s)&&t.set(s,n.style[r]),n.style[r]=i})}function me(n,e){e.forEach((t,i)=>{let s=Ot(i);n.style[s]=""})}function Ce(n){return Array.isArray(n)?n.length==1?n[0]:ii(n):n}function qn(n,e,t){let i=e.params||{},s=Fi(n);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||t.push(nn(r))})}var _t=new RegExp(`${Ii}\\s*(.+?)\\s*${Bn}`,"g");function Fi(n){let e=[];if(typeof n=="string"){let t;for(;t=_t.exec(n);)e.push(t[1]);_t.lastIndex=0}return e}function ke(n,e,t){let i=`${n}`,s=i.replace(_t,(r,o)=>{let a=e[o];return a==null&&(t.push(sn(o)),a=""),a.toString()});return s==i?n:s}var $n=/-+([a-z0-9])/g;function Ot(n){return n.replace($n,(...e)=>e[1].toUpperCase())}function Vn(n,e){return n===0||e===0}function Qn(n,e,t){if(t.size&&e.length){let i=e[0],s=[];if(t.forEach((r,o)=>{i.has(o)||s.push(o),i.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Ft(n,a)))}}return e}function K(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw rn(e.type)}}function Ft(n,e){return window.getComputedStyle(n)[e]}var jn=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"]),We=class extends pe{normalizePropertyName(e,t){return Ot(e)}normalizeStyleValue(e,t,i,s){let r="",o=i.toString().trim();if(jn.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(on(e,i))}return o+r}};var Ge="*";function Un(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>xn(i,t,e)):t.push(n),t}function xn(n,e,t){if(n[0]==":"){let l=Wn(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(_n(n)),e;let s=i[1],r=i[2],o=i[3];e.push(vi(s,o));let a=s==Ge&&o==Ge;r[0]=="<"&&!a&&e.push(vi(o,s))}function Wn(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(Sn(n)),"* => *"}}var $e=new Set(["true","1"]),Ve=new Set(["false","0"]);function vi(n,e){let t=$e.has(n)||Ve.has(n),i=$e.has(e)||Ve.has(e);return(s,r)=>{let o=n==Ge||n==s,a=e==Ge||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?$e.has(n):Ve.has(n)),!a&&i&&typeof r=="boolean"&&(a=r?$e.has(e):Ve.has(e)),o&&a}}var Li=":self",Gn=new RegExp(`s*${Li}s*,?`,"g");function Bi(n,e,t,i){return new St(n).build(e,t,i)}var Ei="",St=class{_driver;constructor(e){this._driver=e}build(e,t,i){let s=new vt(t);return this._resetContextStyleTimingState(s),K(this,Ce(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ei,e.collectedStyles=new Map,e.collectedStyles.set(Ei,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(an()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==S.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==S.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(ln())}),{type:S.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=s||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Fi(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(cn(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:i,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=K(this,Ce(e.animation),t),s=Un(e.expr,t.errors);return{type:S.Transition,matchers:s,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:de(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(i=>K(this,i,t)),options:de(e.options)}}visitGroup(e,t){let i=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=i;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:S.Group,steps:r,options:de(e.options)}}visitAnimate(e,t){let i=Zn(e.timings,t.errors);t.currentAnimateTimings=i;let s,r=e.styles?e.styles:ot({});if(r.type==S.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=ot(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:i,style:s,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===W?i.push(a):t.errors.push(un(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Ii)>=0){r=!0;break}}}),{type:S.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=!0;h&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(t.errors.push(hn(l,h.startTime,h.endTime,r,s)),u=!1),r=h.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&qn(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(dn()),i;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(M=>{let P=this._makeStyleAst(M,t),I=P.offset!=null?P.offset:Xn(P.styles),N=0;return I!=null&&(r++,N=P.offset=I),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),P});l&&t.errors.push(mn()),a&&t.errors.push(fn());let u=e.steps.length,_=0;r>0&&r<u?t.errors.push(pn()):r==0&&(_=s/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((M,P)=>{let I=_>0?P==y?1:_*P:o[P],N=I*T;t.currentTime=m+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=I,i.styles.push(M)}),i}visitReference(e,t){return{type:S.Reference,animation:K(this,Ce(e.animation),t),options:de(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:de(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:de(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Hn(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,q(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Ce(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:S.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:de(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(gn());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:xe(e.timings,t.errors,!0);return{type:S.Stagger,animation:K(this,Ce(e.animation),t),timings:i,options:null}}};function Hn(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Li);return e&&(n=n.replace(Gn,"")),n=n.replace(/@\*/g,Ue).replace(/@\w+/g,t=>Ue+"-"+t.slice(1)).replace(/:animating/g,gt),[n,e]}function Yn(n){return n?Fe({},n):null}var vt=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(e){this.errors=e}};function Xn(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Zn(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=xe(n,e).duration;return ut(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ut(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=xe(t,e);return ut(s.duration,s.delay,s.easing)}function de(n){return n?(n=Fe({},n),n.params&&(n.params=Yn(n.params))):n={},n}function ut(n,e,t){return{duration:n,delay:e,easing:t}}function Lt(n,e,t,i,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Jn=1,es=":enter",ts=new RegExp(es,"g"),is=":leave",ns=new RegExp(is,"g");function zi(n,e,t,i,s,r=new Map,o=new Map,a,l,c=[]){return new Et().buildKeyframes(n,e,t,i,s,r,o,a,l,c)}var Et=class{buildKeyframes(e,t,i,s,r,o,a,l,c,h=[]){c=c||new De;let u=new Tt(e,t,c,s,r,h,[]);u.options=l;let _=l.delay?H(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,i,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[Lt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:H(ke(r,s?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?H(i.duration):null,a=i.delay!=null?H(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==S.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=He);let o=H(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?H(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,s=t.params?ke(i,t.params,t.errors):i;return xe(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),s.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,s=t.currentAnimateTimings;!s&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,s=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?H(s.delay):0;r&&(t.previousNode.type===S.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=He);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;o=Math.max(o,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;K(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=s.currentTime-u+(s.startTime-i.currentTimeline.startTime)}},He={},Tt=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=He;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new Ye(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,s=this.options;i.duration!=null&&(s.duration=H(i.duration)),i.delay!=null&&(s.delay=H(i.delay));let r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ke(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(s=>{i[s]=t[s]})}}return e}createSubContext(e=null,t,i){let s=t||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=He,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new bt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(ts,"."+this._enterClassName),e=e.replace(ns,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(yn(t)),a}},Ye=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(e,t,i,s){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=s,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=Jn,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||W),this._currentKeyframe.set(t,W);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=ss(e,this._globalTimelineStyles);for(let[a,l]of o){let c=ke(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??W),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let s=this._styleSummary.get(i);(!s||t.time>s.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===ze?e.add(u):h===W&&t.add(u)}),i||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return Lt(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},bt=class extends Ye{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Ti(a)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let _=new Map(e[u]),y=_.get("offset"),m=t+y*i;_.set("offset",Ti(m/o)),r.push(_)}i=o,t=0,s="",e=r}return Lt(this.element,e,this.preStyleProps,this.postStyleProps,i,t,s,!0)}};function Ti(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ss(n,e){let t=new Map,i;return n.forEach(s=>{if(s==="*"){i??=e.keys();for(let r of i)t.set(r,W)}else for(let[r,o]of s)t.set(r,o)}),t}function bi(n,e,t,i,s,r,o,a,l,c,h,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:_}}var ht={},Xe=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,s){return rs(this.ast.matchers,e,t,i,s)}buildStyles(e,t,i){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,i):new Map}build(e,t,i,s,r,o,a,l,c,h){let u=[],_=this.ast.options&&this.ast.options.params||ht,y=a&&a.params||ht,m=this.buildStyles(i,y,u),g=l&&l.params||ht,T=this.buildStyles(s,g,u),M=new Set,P=new Map,I=new Map,N=s==="void",ge={params:Ki(g,_),delay:this.ast.options?.delay},U=h?[]:zi(e,t,this.ast.animation,r,o,m,T,ge,c,u),O=0;return U.forEach(L=>{O=Math.max(L.duration+L.delay,O)}),u.length?bi(t,this._triggerName,i,s,N,m,T,[],[],P,I,O,u):(U.forEach(L=>{let se=L.element,ye=q(P,se,new Set);L.preStyleProps.forEach(re=>ye.add(re));let zt=q(I,se,new Set);L.postStyleProps.forEach(re=>zt.add(re)),se!==t&&M.add(se)}),bi(t,this._triggerName,i,s,N,m,T,U,[...M.values()],P,I,O))}};function rs(n,e,t,i,s){return n.some(r=>r(e,t,i,s))}function Ki(n,e){let t=Fe({},e);return Object.entries(n).forEach(([i,s])=>{s!=null&&(t[i]=s)}),t}var wt=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,s=Ki(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ke(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function os(n,e,t){return new At(n,e,t)}var At=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new wt(s.style,r,i))}),wi(this.states,"true","1"),wi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Xe(e,s,this.states))}),this.fallbackTransition=as(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,s){return this.transitionFactories.find(o=>o.match(e,t,i,s))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function as(n,e,t){let i=[(o,a)=>!0],s={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:s,matchers:i,options:null,queryCount:0,depCount:0};return new Xe(n,r,e)}function wi(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ls=new De,Mt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],s=[],r=Bi(this._driver,t,i,s);if(i.length)throw Tn(i);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,i){let s=e.element,r=ki(this._normalizer,e.keyframes,t,i);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=zi(this._driver,t,r,Oi,pt,new Map,new Map,i,ls,s),o.forEach(h=>{let u=q(a,h.element,new Map);h.postStyleProps.forEach(_=>u.set(_,null))})):(s.push(bn()),o=[]),s.length)throw wn(s);a.forEach((h,u)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(u,y,W))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=ie(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw An(e);return t}listen(e,t,i,s){let r=Dt(t,"","","");return kt(this._getPlayer(e),i,r,s),()=>{}}command(e,t,i,s){if(i=="register"){this.register(e,s[0]);return}if(i=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},Ai="ng-animate-queued",cs=".ng-animate-queued",dt="ng-animate-disabled",us=".ng-animate-disabled",hs="ng-star-inserted",ds=".ng-star-inserted",ms=[],qi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},j="__ng_removed",Re=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),s=i?e.value:e;if(this.value=gs(s),i){let r=e,{value:o}=r,a=Vt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(s=>{i[s]==null&&(i[s]=t[s])})}}},Ne="void",mt=new Re(Ne),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,Q(t,this._hostClassName)}listen(e,t,i,s){if(!this._triggers.has(t))throw Mn(i,t);if(i==null||i.length==0)throw Pn(t);if(!ys(i))throw Cn(i,t);let r=q(this._elementListeners,e,[]),o={name:t,phase:i,callback:s};r.push(o);let a=q(this._engine.statesByElement,e,new Map);return a.has(t)||(Q(e,qe),Q(e,qe+"-"+t),a.set(t,mt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Nn(e);return t}trigger(e,t,i,s=!0){let r=this._getTrigger(t),o=new Ie(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Q(e,qe),Q(e,qe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Re(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=mt),!(c.value===Ne)&&l.value===c.value){if(!vs(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),G(e,M)})}return}let _=q(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!y){if(!s)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(Q(e,Ai),o.onStart(()=>{Ae(e,Ai)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Ue,!0);i.forEach(s=>{if(s[j])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,i,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,Ne,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ie(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||mt,h=new Re(Ne),u=new Ie(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[j];(!r||r===qi)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Q(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let s=i.player;if(s.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Dt(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,kt(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(i)}),this._queue=[],t.sort((i,s)=>{let r=i.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ct=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=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,s=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return s.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let s=this._namespaceLookup[e];s&&s.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let s of i.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,s),!0}return!1}insertNode(e,t,i,s){if(!Qe(t))return;let r=t[j];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Q(e,dt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ae(e,dt))}removeNode(e,t,i){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,s,r){this.collectedLeaveElements.push(t),t[j]={namespaceId:e,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,i,s,r):()=>{}}_buildInstruction(e,t,i,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ue,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,gt,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ie(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[j];if(t&&t.setForRemoval){if(e[j]=qi,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(dt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,us,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let s=this.collectedEnterElements[i];Q(s,hs)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let s=this.collectedLeaveElements[i];this.processLeaveNode(s)}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=[],t.length?ie(t).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(e){throw kn(e)}_flushAnimations(e,t){let i=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,cs,!0);for(let p=0;p<f.length;p++)h.add(f[p])});let u=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=Ci(_,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=Oi+g++;m.set(f,p),d.forEach(v=>Q(v,p))});let T=[],M=new Set,P=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[j];p&&p.setForRemoval&&(T.push(f),M.add(f),p.hasAnimation?this.driver.query(f,ds,!0).forEach(v=>M.add(v)):P.add(f))}let I=new Map,N=Ci(_,Array.from(M));N.forEach((d,f)=>{let p=pt+g++;I.set(f,p),d.forEach(v=>Q(v,p))}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(v=>Ae(v,p))}),N.forEach((d,f)=>{let p=I.get(f);d.forEach(v=>Ae(v,p))}),T.forEach(d=>{this.processLeaveNode(d)})});let ge=[],U=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let v=p.player,C=p.element;if(ge.push(v),this.collectedEnterElements.length){let R=C[j];if(R&&R.setForMove){if(R.previousTriggersValues&&R.previousTriggersValues.has(p.triggerName)){let oe=R.previousTriggersValues.get(p.triggerName),$=this.statesByElement.get(p.element);if($&&$.has(p.triggerName)){let Oe=$.get(p.triggerName);Oe.value=oe,$.set(p.triggerName,Oe)}}v.destroy();return}}let x=!u||!this.driver.containsElement(u,C),z=I.get(C),Y=m.get(C),b=this._buildInstruction(p,i,Y,z,x);if(b.errors&&b.errors.length){U.push(b);return}if(x){v.onStart(()=>me(C,b.fromStyles)),v.onDestroy(()=>G(C,b.toStyles)),s.push(v);return}if(p.isFallbackTransition){v.onStart(()=>me(C,b.fromStyles)),v.onDestroy(()=>G(C,b.toStyles)),s.push(v);return}let $t=[];b.timelines.forEach(R=>{R.stretchStartingKeyframe=!0,this.disabledNodes.has(R.element)||$t.push(R)}),b.timelines=$t,i.append(C,b.timelines);let Ji={instruction:b,player:v,element:C};o.push(Ji),b.queriedElements.forEach(R=>q(a,R,[]).push(v)),b.preStyleProps.forEach((R,oe)=>{if(R.size){let $=l.get(oe);$||l.set(oe,$=new Set),R.forEach((Oe,nt)=>$.add(nt))}}),b.postStyleProps.forEach((R,oe)=>{let $=c.get(oe);$||c.set(oe,$=new Set),R.forEach((Oe,nt)=>$.add(nt))})});if(U.length){let d=[];U.forEach(f=>{d.push(Dn(f.triggerName,f.errors))}),ge.forEach(f=>f.destroy()),this.reportError(d)}let O=new Map,L=new Map;o.forEach(d=>{let f=d.element;i.has(f)&&(L.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,O))}),s.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,!1,d.namespaceId,d.triggerName,null).forEach(v=>{q(O,f,[]).push(v),v.destroy()})});let se=T.filter(d=>Ni(d,l,c)),ye=new Map;Pi(ye,this.driver,P,c,W).forEach(d=>{Ni(d,l,c)&&se.push(d)});let re=new Map;y.forEach((d,f)=>{Pi(re,this.driver,new Set(d),l,ze)}),se.forEach(d=>{let f=ye.get(d),p=re.get(d);ye.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]))});let it=[],Kt=[],qt={};o.forEach(d=>{let{element:f,player:p,instruction:v}=d;if(i.has(f)){if(h.has(f)){p.onDestroy(()=>G(f,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),s.push(p);return}let C=qt;if(L.size>1){let z=f,Y=[];for(;z=z.parentNode;){let b=L.get(z);if(b){C=b;break}Y.push(z)}Y.forEach(b=>L.set(b,C))}let x=this._buildAnimation(p.namespaceId,v,O,r,re,ye);if(p.setRealPlayer(x),C===qt)it.push(p);else{let z=this.playersByElement.get(C);z&&z.length&&(p.parentPlayer=ie(z)),s.push(p)}}else me(f,v.fromStyles),p.onDestroy(()=>G(f,v.toStyles)),Kt.push(p),h.has(f)&&s.push(p)}),Kt.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=ie(f);d.setRealPlayer(p)}}),s.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<T.length;d++){let f=T[d],p=f[j];if(Ae(f,pt),p&&p.hasAnimation)continue;let v=[];if(a.size){let x=a.get(f);x&&x.length&&v.push(...x);let z=this.driver.query(f,gt,!0);for(let Y=0;Y<z.length;Y++){let b=a.get(z[Y]);b&&b.length&&v.push(...b)}}let C=v.filter(x=>!x.destroyed);C.length?_s(this,f,C):this.processLeaveNode(f)}return T.length=0,it.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1)}),d.play()}),it}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Ne;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,h=c!==r,u=q(i,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y)})}me(r,t.fromStyles)}_buildAnimation(e,t,i,s,r,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,_=t.timelines.map(m=>{let g=m.element;h.add(g);let T=g[j];if(T&&T.removedBeforeQueried)return new Te(m.duration,m.delay);let M=g!==l,P=Ss((i.get(g)||ms).map(O=>O.getRealPlayer())).filter(O=>{let L=O;return L.element?L.element===g:!1}),I=r.get(g),N=o.get(g),ge=ki(this._normalizer,m.keyframes,I,N),U=this._buildPlayer(m,ge,P);if(m.subTimeline&&s&&u.add(g),M){let O=new Ie(e,a,g);O.setRealPlayer(U),c.push(O)}return U});c.forEach(m=>{q(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>ps(this.playersByQueriedElement,m.element,m))}),h.forEach(m=>Q(m,Si));let y=ie(_);return y.onDestroy(()=>{h.forEach(m=>Ae(m,Si)),G(l,t.toStyles)}),u.forEach(m=>{q(s,m,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Te(e.duration,e.delay)}},Ie=class{namespaceId;triggerName;element;_player=new Te;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(s=>kt(e,i,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){q(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ps(n,e,t){let i=n.get(e);if(i){if(i.length){let s=i.indexOf(t);i.splice(s,1)}i.length==0&&n.delete(e)}return i}function gs(n){return n??null}function Qe(n){return n&&n.nodeType===1}function ys(n){return n=="start"||n=="done"}function Mi(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Pi(n,e,t,i,s){let r=[];t.forEach(l=>r.push(Mi(l)));let o=[];i.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let _=e.computeStyle(c,u,s);h.set(u,_),(!_||_.length==0)&&(c[j]=fs,o.push(c))}),n.set(c,h)});let a=0;return t.forEach(l=>Mi(l,r[a++])),o}function Ci(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,s=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function Q(n,e){n.classList?.add(e)}function Ae(n,e){n.classList?.remove(e)}function _s(n,e,t){ie(t).onDone(()=>n.processLeaveNode(e))}function Ss(n){let e=[];return $i(n,e),e}function $i(n,e){for(let t=0;t<n.length;t++){let i=n[t];i instanceof at?$i(i.players,e):e.push(i)}}function vs(n,e){let t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Ni(n,e,t){let i=t.get(n);if(!i)return!1;let s=e.get(n);return s?i.forEach(r=>s.add(r)):e.set(n,i),t.delete(n),!0}var Me=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new Ct(e.body,t,i),this._timelineEngine=new Mt(e.body,t,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,i,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Bi(this._driver,r,l,c);if(l.length)throw vn(s,l);c.length&&void 0,a=os(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,s){this._transitionEngine.insertNode(e,t,i,s)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,s){if(i.charAt(0)=="@"){let[r,o]=yi(i),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,s)}listen(e,t,i,s,r){if(i.charAt(0)=="@"){let[o,a]=yi(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Es(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ft(e[0]),e.length>1&&(i=ft(e[e.length-1]))):e instanceof Map&&(t=ft(e)),t||i?new Ts(n,t,i):null}var Ts=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,s){this._element=t,this._startStyles=i,this._endStyles=s;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&G(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(G(this._element,this._initialStyles),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),G(this._element,this._initialStyles),this._state=3)}}return n})();function ft(n){let e=null;return n.forEach((t,i)=>{bs(i)&&(e=e||new Map,e.set(i,t))}),e}function bs(n){return n==="display"||n==="position"}var Ze=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(e,t,i,s){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=s,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,s)=>{s!=="offset"&&e.set(s,this._finished?i:Ft(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Di(e,t)}getParentElement(e){return Rt(e)}query(e,t,i){return Ri(e,t,i)}computeStyle(e,t,i){return Ft(e,t)}animate(e,t,i,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:i,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof Ze);Vn(i,s)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m))});let u=Kn(t).map(y=>new Map(y));u=Qn(e,u,c);let _=Es(e,u);return new Ze(e,u,l,_)}};var je="@",Vi="@.disabled",et=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,s){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=s}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,s=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,s){this.delegate.setAttribute(e,t,i,s)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,s){this.delegate.setStyle(e,t,i,s)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==je&&t==Vi?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Nt=class extends et{factory;constructor(e,t,i,s,r){super(t,i,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==je?t.charAt(1)=="."&&t==Vi?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==je){let s=ws(e),r=t.slice(1),o="";return r.charAt(0)!=je&&([r,o]=As(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function ws(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function As(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var tt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(s,r)=>{r?.removeChild(null,s)}}createRenderer(e,t){let i="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(s);if(!h){let u=()=>c.delete(s);h=new et(i,s,this.engine,u),c.set(s,h)}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>
1{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Nt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,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 Ps=(()=>{class n extends Me{constructor(t,i,s){super(t,i,s)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(ae(Ht),ae(fe),ae(pe))};static \u0275prov=_e({token:n,factory:n.\u0275fac})}return n})();function Cs(){return new We}function Ns(n,e,t){return new tt(n,e,t)}var ji=[{provide:pe,useFactory:Cs},{provide:Me,useClass:Ps},{provide:xt,useFactory:Ns,deps:[ei,Me,Ut]}],Qi=[{provide:fe,useFactory:()=>new Je},{provide:st,useValue:"BrowserAnimations"},...ji],ks=[{provide:fe,useClass:It},{provide:st,useValue:"NoopAnimations"},...ji],Ui=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?ks:Qi}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Z({type:n});static \u0275inj=X({providers:Qi,imports:[Be]})}return n})();var xi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=X({providers:[be,Zt(Jt())],imports:[Xt]});let n=e;return n})();var F=(()=>{let e=class e{constructor(i,s){this.router=i,this.backendService=s}canActivate(i,s){return this.backendService.loggedIn$.pipe(jt(r=>{r||this.router.navigate(["login"],{queryParams:{next:s.url}})}))}};e.\u0275fac=function(s){return new(s||e)(ae(Ke),ae(be))},e.\u0275prov=_e({token:e,factory:e.\u0275fac});let n=e;return n})();var Rs=[{path:"",loadChildren:()=>import("./chunk-WJM7GMQJ.js").then(n=>n.RacesModule),pathMatch:"full"},{path:"register",loadChildren:()=>import("./chunk-THNPNAMP.js").then(n=>n.RegisterModule)},{path:"activate",loadChildren:()=>import("./chunk-CWRBMLXS.js").then(n=>n.ActivateModule)},{path:"login",loadChildren:()=>import("./chunk-ZSQUZ3KY.js").then(n=>n.LoginModule)},{path:"logout",loadChildren:()=>import("./chunk-4KEZUPS5.js").then(n=>n.LogoutModule)},{path:"reset",loadChildren:()=>import("./chunk-QOM2JANC.js").then(n=>n.ResetModule)},{path:"password",loadChildren:()=>import("./chunk-LAVJM5KJ.js").then(n=>n.PasswordModule),canActivate:[F]},{path:"participate",loadChildren:()=>import("./chunk-IAI2KJKO.js").then(n=>n.ParticipateModule),canActivate:[F]},{path:"invitations",loadChildren:()=>import("./chunk-IGGJ3VSC.js").then(n=>n.InvitationModule)},{path:"profile",loadChildren:()=>import("./chunk-DZURAJQE.js").then(n=>
1n.ProfileModule),canActivate:[F]},{path:"race",loadChildren:()=>import("./chunk-I363XHZP.js").then(n=>n.RaceModule)},{path:"edit",loadChildren:()=>import("./chunk-NNERU62A.js").then(n=>n.EditRaceModule),canActivate:[F]},{path:"evaluate",loadChildren:()=>import("./chunk-2XSXHWIA.js").then(n=>n.EvaluateModule),canActivate:[F]},{path:"participation",loadChildren:()=>import("./chunk-LN4KKATG.js").then(n=>n.ParticipationModule),canActivate:[F]},{path:"sponsors",loadChildren:()=>import("./chunk-ESIIDQZ6.js").then(n=>n.SponsorsModule)},{path:"result",loadChildren:()=>import("./chunk-SSIGAUQW.js").then(n=>n.ResultModule)},{path:"season",loadChildren:()=>import("./chunk-YRJEA6FT.js").then(n=>n.SeasonModule)},{path:"mail",loadChildren:()=>import("./chunk-YYOMHASR.js").then(n=>n.MailModule),canActivate:[F]},{path:"publish",loadChildren:()=>import("./chunk-C2YIJWLV.js").then(n=>n.PublishModule),canActivate:[F]},{path:"privacy",loadChildren:()=>import("./chunk-TIAFRSVP.js").then(n=>n.PrivacyModule)},{path:"tracks",loadChildren:()=>import("./chunk-BLUEBQ2R.js").then(n=>n.TracksModule),canActivate:[F]},{path:"flights",loadChildren:()=>import("./chunk-RV7VFOXW.js").then(n=>n.FlightsModule),canActivate:[F]},{path:"documents",loadChildren:()=>import("./chunk-F6HR66I5.js").then(n=>n.DocumentsModule),canActivate:[F]},{path:"mine",loadChildren:()=>import("./chunk-MY4ZOLA4.js").then(n=>n.MineModule),canActivate:[F]},{path:"sms",loadChildren:()=>import("./chunk-NJPQKDTE.js").then(n=>n.SmsModule),canActivate:[F]}],Wi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=X({providers:[F],imports:[lt.forRoot(Rs,{}),lt]});let n=e;return n})();var Os=()=>["/privacy"],Gi=(()=>{let e=class e{constructor(i){this.snackBar=i}accept(){localStorage.setItem("cookies_accepted","1"),this.snackBar.dismiss()}};e.\u0275fac=function(s){return new(s||e)(ue(di))},e.\u0275cmp=Se({type:e,selectors:[["br-cookie-snack-bar"]],standalone:!1,decls:9,vars:2,consts:[[1,"flex-row"],[3,"routerLink"],[1,"mat-button",3,"click"]],template:function(s,r){s&1&&(w(0,"div",0)(1,"div"),D(2," This website uses cookies. For further details please check the "),w(3,"a",1),D(4,"privacy policy"),A(),D(5,". "),A(),w(6,"div")(7,"button",2),J("click",function(){return r.accept()}),D(8,"Accept"),A()()()),s&2&&(B(3),k("routerLink",V(1,Os)))},dependencies:[we],encapsulation:2,changeDetection:0});let n=e;return n})();var Bs=()=>["/"],zs=()=>["/season"],Ks=()=>["/sponsors"],qs=()=>["/privacy"],$s=()=>["/mine"],Vs=()=>["/invitations"],Qs=()=>["/profile"];function js(n,e){n&1&&(w(0,"a",0),D(1,"My Races"),A()),n&2&&k("routerLink",V(1,$s))}function Us(n,e){n&1&&(w(0,"a",0),D(1,"Invitations"),A()),n&2&&k("routerLink",V(1,Vs))}function xs(n,e){n&1&&(w(0,"a",0),D(1,"Profile"),A()),n&2&&k("routerLink",V(1,Qs))}function Ws(n,e){if(n&1){let t=Pe();w(0,"a",3),J("click",function(){le(t);let s=rt();return ce(s.login())}),D(1,"Login"),A()}}function Gs(n,e){if(n&1){let t=Pe();w(0,"a",3),J("click",function(){le(t);let s=rt();return ce(s.logout())}),D(1,"Logout"),A()}}var Hi=(()=>{let e=class e{constructor(i,s){this.router=i,this.backendService=s}login(){this.router.navigate(["login"],{queryParams:{next:this.router.url}})}logout(){this.backendService.logout().subscribe(()=>this.router.navigate(["/"]))}};e.\u0275fac=function(s){return new(s||e)(ue(Ke),ue(be))},e.\u0275cmp=Se({type:e,selectors:[["br-menu"]],standalone:!1,decls:18,vars:23,consts:[["mat-button","",3,"routerLink"],["mat-button","",3,"routerLink",4,"ngIf"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"]],template:function(s,r){s&1&&(w(0,"a",0),D(1,"Races"),A(),w(2,"a",0),D(3,"Season"),A(),w(4,"a",0),D(5,"Sponsors"),A(),ve(6,js,2,2,"a",1),ee(7,"async"),ve(8,Us,2,2,"a",1),ee(9,"async"),ve(10,xs,2,2,"a",1),ee(11,"async"),w(12,"a",0),D(13,"Imprint"),A(),ve(14,Ws,2,0,"a",2),ee(15,"async"),ve(16,Gs,2,0,"a",2),ee(17,"async")),s&2&&(k("routerLink",V(19,Bs)),B(2),k("routerLink",V(20,zs)),B(2),k("routerLink",V(21,Ks)),B(2),k("ngIf",te(7,9,r.backendService.loggedIn$)),B(2),k("ngIf",te(9,11,r.backendService.loggedIn$)),B(2),k("ngIf",te
1(11,13,r.backendService.loggedIn$)),B(2),k("routerLink",V(22,qs)),B(2),k("ngIf",!te(15,15,r.backendService.loggedIn$)),B(2),k("ngIf",te(17,17,r.backendService.loggedIn$)))},dependencies:[Yt,ri,we,Le],encapsulation:2,changeDetection:0});let n=e;return n})();var Ys=()=>["/"],Yi=(()=>{let e=class e{constructor(i){this.snackBar=i,this.print$=new Qt(!1)}ngOnInit(){setTimeout(()=>{localStorage.getItem("cookies_accepted")||this.snackBar.openFromComponent(Gi)})}onPrint(i){this.print$.next(!0)}onScreen(i){this.print$.next(!1)}};e.\u0275fac=function(s){return new(s||e)(ue(mi))},e.\u0275cmp=Se({type:e,selectors:[["br-root"]],standalone:!1,decls:22,vars:6,consts:[["sidenav",""],["name","print",3,"activate","deactivate"],[1,"container"],["color","primary"],[1,"hide-desktop"],["mat-icon-button","",3,"click"],[3,"routerLink"],["src","images/logo.png","width","222"],[2,"width","100%"],[1,"hide-mobile"],[1,"flex-column"],[1,"main-container"],[1,"main"]],template:function(s,r){if(s&1){let o=Pe();w(0,"router-outlet",1),J("activate",function(l){return le(o),ce(r.onPrint(l))})("deactivate",function(l){return le(o),ce(r.onScreen(l))}),A(),w(1,"div",2),ee(2,"async"),w(3,"mat-toolbar",3)(4,"div",4)(5,"button",5),J("click",function(){le(o);let l=Gt(16);return ce(l.toggle())}),w(6,"mat-icon"),D(7,"menu"),A()()(),w(8,"span")(9,"a",6),Ee(10,"img",7),A()(),Ee(11,"span",8),w(12,"div",9),Ee(13,"br-menu"),A()(),w(14,"mat-sidenav-container")(15,"mat-sidenav",null,0),Ee(17,"br-menu",10),A(),w(18,"mat-sidenav-content")(19,"div",11)(20,"div",12),Ee(21,"router-outlet"),A()()()()()}s&2&&(B(),Wt("display",te(2,3,r.print$)?"none":"flex"),B(8),k("routerLink",V(5,Ys)))},dependencies:[oi,hi,ci,ui,li,ai,pi,we,Hi,Le],styles:[".mat-toolbar[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;text-decoration:none}mat-sidenav-container[_ngcontent-%COMP%]{flex:1}.main[_ngcontent-%COMP%]{padding:10px;width:100%;max-width:1024px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0}@media print{.container[_ngcontent-%COMP%]{display:none}}"]});let n=e;return n})();var Xi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Z({type:e,bootstrap:[Yi]}),e.\u0275inj=X({providers:[{provide:si,useValue:{appearance:"outline"}}],imports:[Be,Ui,ni,xi,fi,Wi]});let n=e;return n})();var Zi={production:!0};Zi.production&&void 0;ti().bootstrapModule(Xi).catch(n=>console.log(n));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.