New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@esm-bundle/angular__animations

Package Overview
Dependencies
Maintainers
6
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esm-bundle/angular__animations - npm Package Compare versions

Comparing version 14.1.3 to 14.2.0

4

es2015/ivy/angular-animations.js

@@ -1,4 +0,4 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/**
* @license Angular v14.1.3
* @license Angular v14.2.0
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -5,0 +5,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
class t{}class s{}const n="*";function i(t,s){return{type:7,name:t,definitions:s,options:{}}}function o(t,s=null){return{type:4,styles:s,timings:t}}function e(t,s=null){return{type:3,steps:t,options:s}}function r(t,s=null){return{type:2,steps:t,options:s}}function h(t){return{type:6,styles:t,offset:null}}function a(t,s,n){return{type:0,name:t,styles:s,options:n}}function l(t){return{type:5,steps:t}}function _(t,s,n=null){return{type:1,expr:t,animation:s,options:n}}function y(t,s=null){return{type:8,animation:t,options:s}}function p(t=null){return{type:9,options:t}}function u(t,s=null){return{type:10,animation:t,options:s}}function c(t,s,n=null){return{type:11,selector:t,animation:s,options:n}}function f(t,s){return{type:12,timings:t,animation:s}}function F(t){Promise.resolve(null).then(t)}class d{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_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(){F((()=>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){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}class D{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,i=0;const o=this.players.length;0==o?F((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==o&&this._onFinish()})),t.onDestroy((()=>{++n==o&&this._onDestroy()})),t.onStart((()=>{++i==o&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.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){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}const S="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,d as NoopAnimationPlayer,o as animate,p as animateChild,y as animation,e as group,l as keyframes,c as query,r as sequence,f as stagger,a as state,h as style,_ as transition,i as trigger,u as useAnimation,D as ɵAnimationGroupPlayer,S as ɵPRE_STYLE};
//# sourceMappingURL=angular-animations.min.js.map

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations/browser@14.1.3 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations/browser@14.2.0 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
import{NoopAnimationPlayer as e,style as t,AUTO_STYLE as s,ɵPRE_STYLE as n,ɵAnimationGroupPlayer as i,sequence as r}from"@angular/animations";import*as o from"@angular/core";import{Injectable as a,ɵRuntimeError as l}from"@angular/core";function h(e){return new l(3e3,!1)}new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function c(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(t){switch(t.length){case 0:return new e;case 1:return t[0];default:return new i(t)}}function m(e,t,i,r,o=new Map,a=new Map){const h=[],c=[];let u=-1,m=null;if(r.forEach((e=>{const i=e.get("offset"),r=i==u,l=r&&m||new Map;e.forEach(((e,i)=>{let r=i,c=e;if("offset"!==i)switch(r=t.normalizePropertyName(r,h),c){case n:c=o.get(i);break;case s:c=a.get(i);break;default:c=t.normalizeStyleValue(i,r,c,h)}l.set(r,c)})),r||c.push(l),m=l,u=i})),h.length)throw new l(3502,!1);return c}function d(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&p(s,"start",e))));break;case"done":e.onDone((()=>n(s&&p(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&p(s,"destroy",e))))}}function p(e,t,s){const n=s.totalTime,i=!!s.disabled,r=y(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),o=e._data;return null!=o&&(r._data=o),r}function y(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function f(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function g(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}let _=(e,t)=>!1,v=(e,t,s)=>[],S=null;function E(e){const t=e.parentNode||e.host;return t===S?null:t}(c()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?_=(e,t)=>e.contains(t):(S=(()=>document.documentElement)(),_=(e,t)=>{for(;t;){if(t===e)return!0;t=E(t)}return!1}),v=(e,t,s)=>{if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]});let w=null,b=!1;function T(e){w||(w=function(){if("undefined"!=typeof document)return document.body;return null}()||{},b=!!w.style&&"WebkitAppearance"in w.style);let t=!0;if(w.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in w.style,!t&&b)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in w.style}return t}const k=_,N=v;class A{validateStyleProperty(e){return T(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return s||""}animate(t,s,n,i,r,o=[],a){return new e(n,i)}}A.ɵfac=function(e){return new(e||A)},A.ɵprov=o.ɵɵdefineInjectable({token:A,factory:A.ɵfac});class P{}P.NOOP=new A;function C(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:F(parseFloat(t[1]),t[2])}function F(e,t){switch(t){case"s":return 1e3*e;default:return e}}function M(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(h()),{duration:0,delay:0,easing:""};i=F(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=F(parseFloat(a),s[4]));const l=s[5];l&&(o=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new l(3100,!1)),e=!0),r<0&&(t.push(new l(3101,!1)),e=!0),e&&t.splice(s,0,h())}return{duration:i,delay:r,easing:o}}(e,t,s)}function x(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function z(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function D(e){return e.length?e[0]instanceof Map?e:e.map((e=>z(e))):[]}function L(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>q(e,t))):q(e,t),t}function q(e,t=new Map,s){if(s)for(let[e,n]of s)t.set(e,n);for(let[s,n]of e)t.set(s,n);return t}function R(e,t,s){return s?t+":"+s+";":""}function Q(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=R(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=R(0,U(s),e.style[s])}e.setAttribute("style",t)}function B(e,t,s){e.style&&(t.forEach(((t,n)=>{const i=G(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t})),c()&&Q(e))}function K(e,t){e.style&&(t.forEach(((t,s)=>{const n=G(s);e.style[n]=""})),c()&&Q(e))}function I(e){return Array.isArray(e)?1==e.length?e[0]:r(e):e}function O(e,t,s){const n=t.params||{},i=j(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const W=new RegExp("{{\\s*(.+?)\\s*}}","g");function j(e){let t=[];if("string"==typeof e){let s;for(;s=W.exec(e);)t.push(s[1]);W.lastIndex=0}return t}function H(e,t,s){const n=e.toString(),i=n.replace(W,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function V(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const $=/-+([a-z0-9])/g;function G(e){return e.replace($,((...e)=>e[1].toUpperCase()))}function U(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Z(e,t){return 0===e||0===t}function J(e,t,s){switch(t.type){case 7:return e.visitTrigger(t,s);case 0:return e.visitState(t,s);case 1:return e.visitTransition(t,s);case 2:return e.visitSequence(t,s);case 3:return e.visitGroup(t,s);case 4:return e.visitAnimate(t,s);case 5:return e.visitKeyframes(t,s);case 6:return e.visitStyle(t,s);case 8:return e.visitReference(t,s);case 9:return e.visitAnimateChild(t,s);case 10:return e.visitAnimateRef(t,s);case 11:return e.visitQuery(t,s);case 12:return e.visitStagger(t,s);default:throw t.type,new l(3004,!1)}}function X(e,t){return window.getComputedStyle(e)[t]}function Y(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new l(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new l(3015,!1)),t;const i=n[1],r=n[2],o=n[3];t.push(se(i,o));const a="*"==i&&"*"==o;"<"!=r[0]||a||t.push(se(o,i))}(e,s,t))):s.push(e),s}const ee=new Set(["true","1"]),te=new Set(["false","0"]);function se(e,t){const s=ee.has(e)||te.has(e),n=ee.has(t)||te.has(t);return(i,r)=>{let o="*"==e||e==i,a="*"==t||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?ee.has(e):te.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?ee.has(t):te.has(t)),o&&a}}const ne=new RegExp("s*:selfs*,?","g");function ie(e,t,s,n){return new re(e).build(t,s,n)}class re{constructor(e){this._driver=e}build(e,t,s){const n=new oe(t);this._resetContextStyleTimingState(n);return J(this,I(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push(new l(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),0==e.type){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,i.push(this.visitState(s,t))})),s.name=n}else if(1==e.type){const i=this.visitTransition(e,t);s+=i.queryCount,n+=i.depCount,r.push(i)}else t.errors.push(new l(3007,!1))})),{type:7,name:e.name,states:i,transitions:r,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const i=new Set,r=n||{};if(s.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{j(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){V(i.values());t.errors.push((e.name,new l(3008,!1)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=J(this,I(e.animation),t);return{type:1,matchers:Y(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ae(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>J(this,e,t))),options:ae(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=J(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:ae(e.options)}}visitAnimate(e,s){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return le(M(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=le(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=M(s,t);return le(n.duration,n.delay,n.easing)}(e.timings,s.errors);let i;s.currentAnimateTimings=n;let r=e.styles?e.styles:t({});if(5==r.type)i=this.visitKeyframes(r,s);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=t(e)}s.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,s);a.isEmptyStep=o,i=a}return s.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of i)"string"==typeof e?e===s?n.push(e):t.errors.push(new l(3002,!1)):n.push(z(e));let r=!1,o=null;return n.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!r))for(let t of e.values())if(t.toString().indexOf("{{")>=0){r=!0;break}})),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),o=r.get(s);let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,!1))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&O(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,!1)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const h=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let l=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=l&&(n++,h=s.offset=l),o=o||h<0||h>1,r=r||h<a,a=h,i.push(h),s}));o&&t.errors.push(new l(3012,!1)),r&&t.errors.push(new l(3200,!1));const c=e.steps.length;let u=0;n>0&&n<c?t.errors.push(new l(3202,!1)):0==n&&(u=1/(c-1));const m=c-1,d=t.currentTime,p=t.currentAnimateTimings,y=p.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*y;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:J(this,I(e.animation),t),options:ae(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ae(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ae(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>":self"==e));t&&(e=e.replace(ne,""));return[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(e=>".ng-trigger-"+e.slice(1))).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,f(t.collectedStyles,t.currentQuerySelector,new Map);const o=J(this,I(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ae(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,!1));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:M(e.timings,t.errors,!0);return{type:12,animation:J(this,I(e.animation),t),timings:s,options:null}}}class oe{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ae(e){var t;return e?(e=x(e)).params&&(e.params=(t=e.params)?x(t):null):e={},e}function le(e,t,s){return{duration:e,delay:t,easing:s}}function he(e,t,s,n,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class ce{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ue=new RegExp(":enter","g"),me=new RegExp(":leave","g");function de(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new pe).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class pe{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new ce;const c=new fe(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?C(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),J(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&o.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return m.length?m.map((e=>e.buildKeyframes())):[he(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?C(s.duration):null,r=null!=s.delay?C(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),J(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ye);const e=C(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>J(this,e,n))),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?C(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),J(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return M(t.params?H(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?C(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);let r=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,s);i&&o.delayNextStep(i),s===t.element&&(a=o.currentTimeline),J(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=s.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;J(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const ye={};class fe{constructor(e,t,s,n,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ge(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=C(s.duration)),null!=s.delay&&(n.delay=C(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=H(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new fe(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new _e(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(ue,"."+this._enterClassName)).replace(me,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),o.push(...n)}return i||0!=o.length||r.push(new l(3014,!1)),o}}class ge{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ge(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+=1,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[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||s),this._currentKeyframe.set(e,s);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){var r;t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},a=function(e,t){const n=new Map;let i;return e.forEach((e=>{if("*"===e){i=i||t.keys();for(let e of i)n.set(e,s)}else q(e,n)})),n}(e,this._globalTimelineStyles);for(let[e,t]of a){const i=H(t,o,n);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,null!==(r=this._globalTimelineStyles.get(e))&&void 0!==r?r:s),this._updateStyle(e,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(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(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,a)=>{const l=q(o,new Map,this._backFill);l.forEach(((i,r)=>{i===n?e.add(r):i===s&&t.add(r)})),i||l.set("offset",a/this.duration),r.push(l)}));const o=e.size?V(e.values()):[],a=t.size?V(t.values()):[];if(i){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return he(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class _e extends ge{constructor(e,t,s,n,i,r,o=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,o=t/r,a=q(e[0]);a.set("offset",0),i.push(a);const l=q(e[0]);l.set("offset",ve(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=q(e[n]);const a=t+o.get("offset")*s;o.set("offset",ve(a/r)),i.push(o)}s=r,t=0,n="",e=i}return he(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ve(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}class Se{constructor(e,t){this._driver=e;const s=[],n=[],i=ie(e,t,s,n);if(s.length)throw new l(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?L(t):t,o=Array.isArray(s)?L(s):s,a=[];i=i||new ce;const h=de(this._driver,e,this._animationAst,"ng-enter","ng-leave",r,o,n,i,a);if(a.length)throw new l(3501,!1);return h}}class Ee{}class we{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}const be=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"]);class Te extends Ee{normalizePropertyName(e,t){return G(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(be.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new l(3005,!1))}return r+i}}function ke(e,t,s,n,i,r,o,a,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}const Ne={};class Ae{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(null==e?void 0:e.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,o,a,l,h){var c;const u=[],m=this.ast.options&&this.ast.options.params||Ne,d=o&&o.params||Ne,p=this.buildStyles(s,d,u),y=a&&a.params||Ne,g=this.buildStyles(n,y,u),_=new Set,v=new Map,S=new Map,E="void"===n,w={params:Pe(y,m),delay:null===(c=this.ast.options)||void 0===c?void 0:c.delay},b=h?[]:de(e,t,this.ast.animation,i,r,p,g,w,l,u);let T=0;if(b.forEach((e=>{T=Math.max(e.duration+e.delay,T)})),u.length)return ke(t,this._triggerName,s,n,E,p,g,[],[],v,S,T,u);b.forEach((e=>{const s=e.element,n=f(v,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=f(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&_.add(s)}));const k=V(_.values());return ke(t,this._triggerName,s,n,E,p,g,b,k,v,S,T)}}function Pe(e,t){const s=x(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class Ce{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=x(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!==s&&(n[t]=s)})),this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=H(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(r,e)}))})),s}}class Fe{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new Ce(e.style,t,s))})),Me(this.states,"true","1"),Me(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Ae(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new Ae(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function Me(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const xe=new ce;class ze{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],n=[],i=ie(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=m(this._driver,this._normalizer,0,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=de(this._driver,t,r,"ng-enter","ng-leave",new Map,new Map,n,xe,i),o.forEach((e=>{const t=f(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{e.forEach(((n,i)=>{e.set(i,this._driver.computeStyle(t,i,s))}))}));const h=u(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,h),h.onDestroy((()=>this.destroy(e))),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw new l(3301,!1);return t}listen(e,t,s,n){const i=y(t,"","","");return d(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const De=[],Le={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Re{constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const t=x(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const Qe=new Re("void");class Be{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ve(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,!1);if(null==s||0==s.length)throw new l(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new l(3400,!1);var i;const r=f(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=f(this._engine.statesByElement,e,new Map);return a.has(t)||(Ve(e,"ng-trigger"),Ve(e,"ng-trigger-"+t),a.set(t,Qe)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers.has(t)||a.delete(t)}))}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ie(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ve(e,"ng-trigger"),Ve(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new Re(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=Qe);if(!("void"===l.value)&&a.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],s=i.matchStyles(a.value,a.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{K(e,s),B(e,n)}))}return}const h=f(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(a.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Ve(e,"ng-animate-queued"),r.onStart((()=>{$e(e,"ng-animate-queued")}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach((t=>t.delete(e))),this._elementListeners.forEach(((t,s)=>{this._elementListeners.set(s,t.filter((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,".ng-trigger",!0);s.forEach((e=>{if(e.__ng_removed)return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const o=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,"void",n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&u(o).onDone((()=>this._engine.processLeaveNode(e))),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,o=s.get(i)||Qe,a=new Re("void"),l=new Ie(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e.__ng_removed;n&&n!==Le||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Ve(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=y(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,d(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((t=>t.element===e))||t,t}}class Ke{constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new Be(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){if(!e)return;const s=this._fetchNamespace(e);this.afterFlush((()=>{this.namespacesByHostElement.delete(s.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(s);t>=0&&this._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((()=>s.destroy(t)))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if(Oe(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Oe(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ve(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$e(e,"ng-animate-disabled"))}removeNode(e,t,s,n){if(Oe(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),s){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return u(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){var t;const s=e.__ng_removed;if(s&&s.setForRemoval){if(e.__ng_removed=Le,s.namespaceId){this.destroyInnerAnimations(e);const t=this._fetchNamespace(s.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,s.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains("ng-animate-disabled"))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){Ve(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?u(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,!1)}_flushAnimations(e,t){const i=new ce,r=[],o=new Map,a=[],h=new Map,c=new Map,m=new Map,d=new Set;this.disabledNodes.forEach((e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)d.add(t[e])}));const p=this.bodyNode,y=Array.from(this.statesByElement.keys()),g=He(y,this.collectedEnterElements),_=new Map;let v=0;g.forEach(((e,t)=>{const s="ng-enter"+v++;_.set(t,s),e.forEach((e=>Ve(e,s)))}));const S=[],E=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t.__ng_removed;s&&s.setForRemoval&&(S.push(t),E.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>E.add(e))):w.add(t))}const b=new Map,T=He(y,Array.from(E));T.forEach(((e,t)=>{const s="ng-leave"+v++;b.set(t,s),e.forEach((e=>Ve(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>$e(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>$e(e,s)))})),S.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],N=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,s=e.element;if(k.push(t),this.collectedEnterElements.length){const n=s.__ng_removed;if(n&&n.setForMove){if(n.previousTriggersValues&&n.previousTriggersValues.has(e.triggerName)){const t=n.previousTriggersValues.get(e.triggerName),s=this.statesByElement.get(e.element);if(s&&s.has(e.triggerName)){const n=s.get(e.triggerName);n.value=t,s.set(e.triggerName,n)}}return void t.destroy()}}const n=!p||!this.driver.containsElement(p,s),o=b.get(s),l=_.get(s),u=this._buildInstruction(e,i,l,o,n);if(u.errors&&u.errors.length)return void N.push(u);if(n)return t.onStart((()=>K(s,u.fromStyles))),t.onDestroy((()=>B(s,u.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>K(s,u.fromStyles))),t.onDestroy((()=>B(s,u.toStyles))),void r.push(t);const d=[];u.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||d.push(e)})),u.timelines=d,i.append(s,u.timelines);const y={instruction:u,player:t,element:s};a.push(y),u.queriedElements.forEach((e=>f(h,e,[]).push(t))),u.preStyleProps.forEach(((e,t)=>{if(e.size){let s=c.get(t);s||c.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),u.postStyleProps.forEach(((e,t)=>{let s=m.get(t);s||m.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const A=new Map,P=new Map;a.forEach((e=>{const t=e.element;i.has(t)&&(P.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{f(A,t,[]).push(e),e.destroy()}))}));const C=S.filter((e=>Ze(e,c,m))),F=new Map;je(F,this.driver,w,m,s).forEach((e=>{Ze(e,c,m)&&C.push(e)}));const M=new Map;g.forEach(((e,t)=>{je(M,this.driver,new Set(e),c,n)})),C.forEach((e=>{var t,s;const n=F.get(e),i=M.get(e);F.set(e,new Map([...Array.from(null!==(t=null==n?void 0:n.entries())&&void 0!==t?t:[]),...Array.from(null!==(s=null==i?void 0:i.entries())&&void 0!==s?s:[])]))}));const x=[],z=[],D={};a.forEach((e=>{const{element:t,player:s,instruction:n}=e;if(i.has(t)){if(d.has(t))return s.onDestroy((()=>B(t,n.toStyles))),s.disabled=!0,s.overrideTotalTime(n.totalTime),void r.push(s);let e=D;if(P.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=P.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>P.set(t,e)))}const i=this._buildAnimation(s.namespaceId,n,A,o,M,F);if(s.setRealPlayer(i),e===D)x.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=u(t)),r.push(s)}}else K(t,n.fromStyles),s.onDestroy((()=>B(t,n.toStyles))),z.push(s),d.has(t)&&r.push(s)})),z.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=u(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<S.length;e++){const t=S[e],s=t.__ng_removed;if($e(t,"ng-leave"),s&&s.hasAnimation)continue;let n=[];if(h.size){let e=h.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,".ng-animating",!0);for(let e=0;e<s.length;e++){let t=h.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?Ge(this,t,i):this.processLeaveNode(t)}return S.length=0,x.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),x}elementContainsData(e,t){let s=!1;const n=t.__ng_removed;return n&&n.setForRemoval&&(s=!0),this.playersByElement.has(t)&&(s=!0),this.playersByQueriedElement.has(t)&&(s=!0),this.statesByElement.has(t)&&(s=!0),this._fetchNamespace(e).elementContainsData(t)||s}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||"void"==i;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,a=n!==i,l=f(s,n,[]);this._getPreviousPlayers(n,a,r,o,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}K(i,t.fromStyles)}_buildAnimation(t,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,d=new Set,p=s.timelines.map((s=>{const u=s.element;c.add(u);const p=u.__ng_removed;if(p&&p.removedBeforeQueried)return new e(s.duration,s.delay);const y=u!==l,f=function(e){const t=[];return Ue(e,t),t}((n.get(u)||De).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===u})),g=r.get(u),_=o.get(u),v=m(this.driver,this._normalizer,0,s.keyframes,g,_),S=this._buildPlayer(s,v,f);if(s.subTimeline&&i&&d.add(u),y){const e=new Ie(t,a,u);e.setRealPlayer(S),h.push(e)}return S}));h.forEach((e=>{f(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Ve(e,"ng-animating")));const y=u(p);return y.onDestroy((()=>{c.forEach((e=>$e(e,"ng-animating"))),B(l,s.toStyles)})),d.forEach((e=>{f(i,e,[]).push(y)})),y}_buildPlayer(t,s,n){return s.length>0?this.driver.animate(t.element,s,t.duration,t.delay,t.easing,n):new e(t.duration,t.delay)}}class Ie{constructor(t,s,n){this.namespaceId=t,this.triggerName=s,this.element=n,this._player=new e,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(((t,s)=>{t.forEach((t=>d(e,s,void 0,t)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart((()=>t.triggerCallback("start"))),e.onDone((()=>this.finish())),e.onDestroy((()=>this.destroy()))}_queueEvent(e,t){f(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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Oe(e){return e&&1===e.nodeType}function We(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function je(e,t,s,n,i){const r=[];s.forEach((e=>r.push(We(e))));const o=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n.__ng_removed=qe,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>We(e,r[a++]))),o}function He(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=s.has(o)?o:n.has(o)?1:r(o),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function Ve(e,t){var s;null===(s=e.classList)||void 0===s||s.add(t)}function $e(e,t){var s;null===(s=e.classList)||void 0===s||s.remove(t)}function Ge(e,t,s){u(s).onDone((()=>e.processLeaveNode(t)))}function Ue(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof i?Ue(n.players,t):t.push(n)}}function Ze(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}class Je{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ke(e,t,s),this._timelineEngine=new ze(e,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let o=this._triggerCache[r];if(!o){const e=[],t=[],s=ie(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Fe(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s,n){this._transitionEngine.removeNode(e,t,n||!1,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=g(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=g(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}class Xe{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=Xe.initialStylesByElement.get(e);n||Xe.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Xe.initialStylesByElement.delete(this._element),this._startStyles&&(K(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}function Ye(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}Xe.initialStylesByElement=new WeakMap;class et{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((e=>e())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:X(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}class tt{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return window.getComputedStyle(e)[t]}animate(e,t,s,n,i,r=[]){const o={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(o.easing=i);const a=new Map,l=r.filter((e=>e instanceof et));Z(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=D(t).map((e=>q(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,X(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=Ye(t[0]),t.length>1&&(n=Ye(t[t.length-1]))):t instanceof Map&&(s=Ye(t)),s||n?new Xe(e,s,n):null}(e,h);return new et(e,h,o,c)}}export{P as AnimationDriver,Se as ɵAnimation,Je as ɵAnimationEngine,Ee as ɵAnimationStyleNormalizer,A as ɵNoopAnimationDriver,we as ɵNoopAnimationStyleNormalizer,tt as ɵWebAnimationsDriver,et as ɵWebAnimationsPlayer,Te as ɵWebAnimationsStyleNormalizer,Z as ɵallowPreviousPlayerStylesMerge,k as ɵcontainsElement,E as ɵgetParentElement,N as ɵinvokeQuery,D as ɵnormalizeKeyframes,T as ɵvalidateStyleProperty};
//# sourceMappingURL=angular-browser.min.js.map

@@ -1,4 +0,4 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/**
* @license Angular v14.1.3
* @license Angular v14.2.0
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -5,0 +5,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
class t{}class s{}const n="*";function i(t,s){return{type:7,name:t,definitions:s,options:{}}}function o(t,s=null){return{type:4,styles:s,timings:t}}function e(t,s=null){return{type:3,steps:t,options:s}}function r(t,s=null){return{type:2,steps:t,options:s}}function h(t){return{type:6,styles:t,offset:null}}function a(t,s,n){return{type:0,name:t,styles:s,options:n}}function l(t){return{type:5,steps:t}}function _(t,s,n=null){return{type:1,expr:t,animation:s,options:n}}function y(t,s=null){return{type:8,animation:t,options:s}}function p(t=null){return{type:9,options:t}}function u(t,s=null){return{type:10,animation:t,options:s}}function c(t,s,n=null){return{type:11,selector:t,animation:s,options:n}}function f(t,s){return{type:12,timings:t,animation:s}}function F(t){Promise.resolve(null).then(t)}class d{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_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(){F((()=>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){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}class D{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,i=0;const o=this.players.length;0==o?F((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==o&&this._onFinish()})),t.onDestroy((()=>{++n==o&&this._onDestroy()})),t.onStart((()=>{++i==o&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.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){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}const S="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,d as NoopAnimationPlayer,o as animate,p as animateChild,y as animation,e as group,l as keyframes,c as query,r as sequence,f as stagger,a as state,h as style,_ as transition,i as trigger,u as useAnimation,D as ɵAnimationGroupPlayer,S as ɵPRE_STYLE};
//# sourceMappingURL=angular-animations.min.js.map

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations/browser@14.1.3 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations/browser@14.2.0 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
import{NoopAnimationPlayer as e,style as t,AUTO_STYLE as s,ɵPRE_STYLE as n,ɵAnimationGroupPlayer as i,sequence as r}from"@angular/animations";import*as o from"@angular/core";import{Injectable as a,ɵRuntimeError as l}from"@angular/core";function h(e){return new l(3e3,!1)}new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function c(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(t){switch(t.length){case 0:return new e;case 1:return t[0];default:return new i(t)}}function m(e,t,i,r,o=new Map,a=new Map){const h=[],c=[];let u=-1,m=null;if(r.forEach((e=>{const i=e.get("offset"),r=i==u,l=r&&m||new Map;e.forEach(((e,i)=>{let r=i,c=e;if("offset"!==i)switch(r=t.normalizePropertyName(r,h),c){case n:c=o.get(i);break;case s:c=a.get(i);break;default:c=t.normalizeStyleValue(i,r,c,h)}l.set(r,c)})),r||c.push(l),m=l,u=i})),h.length)throw new l(3502,!1);return c}function d(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&p(s,"start",e))));break;case"done":e.onDone((()=>n(s&&p(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&p(s,"destroy",e))))}}function p(e,t,s){const n=s.totalTime,i=!!s.disabled,r=y(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),o=e._data;return null!=o&&(r._data=o),r}function y(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function f(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function g(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}let _=(e,t)=>!1,S=(e,t,s)=>[],v=null;function E(e){const t=e.parentNode||e.host;return t===v?null:t}(c()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?_=(e,t)=>e.contains(t):(v=(()=>document.documentElement)(),_=(e,t)=>{for(;t;){if(t===e)return!0;t=E(t)}return!1}),S=(e,t,s)=>{if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]});let w=null,b=!1;function T(e){w||(w=function(){if("undefined"!=typeof document)return document.body;return null}()||{},b=!!w.style&&"WebkitAppearance"in w.style);let t=!0;if(w.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in w.style,!t&&b)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in w.style}return t}const k=_,N=S;class A{validateStyleProperty(e){return T(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return s||""}animate(t,s,n,i,r,o=[],a){return new e(n,i)}}A.ɵfac=function(e){return new(e||A)},A.ɵprov=o.ɵɵdefineInjectable({token:A,factory:A.ɵfac});class P{}P.NOOP=new A;function C(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:F(parseFloat(t[1]),t[2])}function F(e,t){switch(t){case"s":return 1e3*e;default:return e}}function M(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(h()),{duration:0,delay:0,easing:""};i=F(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=F(parseFloat(a),s[4]));const l=s[5];l&&(o=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new l(3100,!1)),e=!0),r<0&&(t.push(new l(3101,!1)),e=!0),e&&t.splice(s,0,h())}return{duration:i,delay:r,easing:o}}(e,t,s)}function x(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function z(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function D(e){return e.length?e[0]instanceof Map?e:e.map((e=>z(e))):[]}function L(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>q(e,t))):q(e,t),t}function q(e,t=new Map,s){if(s)for(let[e,n]of s)t.set(e,n);for(let[s,n]of e)t.set(s,n);return t}function R(e,t,s){return s?t+":"+s+";":""}function Q(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=R(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=R(0,U(s),e.style[s])}e.setAttribute("style",t)}function B(e,t,s){e.style&&(t.forEach(((t,n)=>{const i=G(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t})),c()&&Q(e))}function K(e,t){e.style&&(t.forEach(((t,s)=>{const n=G(s);e.style[n]=""})),c()&&Q(e))}function I(e){return Array.isArray(e)?1==e.length?e[0]:r(e):e}function O(e,t,s){const n=t.params||{},i=j(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const W=new RegExp("{{\\s*(.+?)\\s*}}","g");function j(e){let t=[];if("string"==typeof e){let s;for(;s=W.exec(e);)t.push(s[1]);W.lastIndex=0}return t}function H(e,t,s){const n=e.toString(),i=n.replace(W,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function V(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const $=/-+([a-z0-9])/g;function G(e){return e.replace($,((...e)=>e[1].toUpperCase()))}function U(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Z(e,t){return 0===e||0===t}function J(e,t,s){switch(t.type){case 7:return e.visitTrigger(t,s);case 0:return e.visitState(t,s);case 1:return e.visitTransition(t,s);case 2:return e.visitSequence(t,s);case 3:return e.visitGroup(t,s);case 4:return e.visitAnimate(t,s);case 5:return e.visitKeyframes(t,s);case 6:return e.visitStyle(t,s);case 8:return e.visitReference(t,s);case 9:return e.visitAnimateChild(t,s);case 10:return e.visitAnimateRef(t,s);case 11:return e.visitQuery(t,s);case 12:return e.visitStagger(t,s);default:throw t.type,new l(3004,!1)}}function X(e,t){return window.getComputedStyle(e)[t]}function Y(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new l(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new l(3015,!1)),t;const i=n[1],r=n[2],o=n[3];t.push(se(i,o));const a="*"==i&&"*"==o;"<"!=r[0]||a||t.push(se(o,i))}(e,s,t))):s.push(e),s}const ee=new Set(["true","1"]),te=new Set(["false","0"]);function se(e,t){const s=ee.has(e)||te.has(e),n=ee.has(t)||te.has(t);return(i,r)=>{let o="*"==e||e==i,a="*"==t||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?ee.has(e):te.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?ee.has(t):te.has(t)),o&&a}}const ne=new RegExp("s*:selfs*,?","g");function ie(e,t,s,n){return new re(e).build(t,s,n)}class re{constructor(e){this._driver=e}build(e,t,s){const n=new oe(t);this._resetContextStyleTimingState(n);return J(this,I(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push(new l(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),0==e.type){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,i.push(this.visitState(s,t))})),s.name=n}else if(1==e.type){const i=this.visitTransition(e,t);s+=i.queryCount,n+=i.depCount,r.push(i)}else t.errors.push(new l(3007,!1))})),{type:7,name:e.name,states:i,transitions:r,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const i=new Set,r=n||{};if(s.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{j(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){V(i.values());t.errors.push((e.name,new l(3008,!1)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=J(this,I(e.animation),t);return{type:1,matchers:Y(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ae(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>J(this,e,t))),options:ae(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=J(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:ae(e.options)}}visitAnimate(e,s){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return le(M(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=le(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=M(s,t);return le(n.duration,n.delay,n.easing)}(e.timings,s.errors);let i;s.currentAnimateTimings=n;let r=e.styles?e.styles:t({});if(5==r.type)i=this.visitKeyframes(r,s);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=t(e)}s.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,s);a.isEmptyStep=o,i=a}return s.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of i)"string"==typeof e?e===s?n.push(e):t.errors.push(new l(3002,!1)):n.push(z(e));let r=!1,o=null;return n.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!r))for(let t of e.values())if(t.toString().indexOf("{{")>=0){r=!0;break}})),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),o=r.get(s);let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,!1))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&O(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,!1)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const h=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let l=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=l&&(n++,h=s.offset=l),o=o||h<0||h>1,r=r||h<a,a=h,i.push(h),s}));o&&t.errors.push(new l(3012,!1)),r&&t.errors.push(new l(3200,!1));const c=e.steps.length;let u=0;n>0&&n<c?t.errors.push(new l(3202,!1)):0==n&&(u=1/(c-1));const m=c-1,d=t.currentTime,p=t.currentAnimateTimings,y=p.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*y;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:J(this,I(e.animation),t),options:ae(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ae(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ae(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>":self"==e));t&&(e=e.replace(ne,""));return[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(e=>".ng-trigger-"+e.slice(1))).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,f(t.collectedStyles,t.currentQuerySelector,new Map);const o=J(this,I(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ae(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,!1));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:M(e.timings,t.errors,!0);return{type:12,animation:J(this,I(e.animation),t),timings:s,options:null}}}class oe{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ae(e){var t;return e?(e=x(e)).params&&(e.params=(t=e.params)?x(t):null):e={},e}function le(e,t,s){return{duration:e,delay:t,easing:s}}function he(e,t,s,n,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class ce{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ue=new RegExp(":enter","g"),me=new RegExp(":leave","g");function de(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new pe).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class pe{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new ce;const c=new fe(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?C(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),J(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&o.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return m.length?m.map((e=>e.buildKeyframes())):[he(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?C(s.duration):null,r=null!=s.delay?C(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),J(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ye);const e=C(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>J(this,e,n))),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?C(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),J(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return M(t.params?H(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?C(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);let r=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,s);i&&o.delayNextStep(i),s===t.element&&(a=o.currentTimeline),J(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=s.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;J(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const ye={};class fe{constructor(e,t,s,n,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ge(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=C(s.duration)),null!=s.delay&&(n.delay=C(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=H(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new fe(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new _e(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(ue,"."+this._enterClassName)).replace(me,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),o.push(...n)}return i||0!=o.length||r.push(new l(3014,!1)),o}}class ge{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ge(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+=1,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[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||s),this._currentKeyframe.set(e,s);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},o=function(e,t){const n=new Map;let i;return e.forEach((e=>{if("*"===e){i=i||t.keys();for(let e of i)n.set(e,s)}else q(e,n)})),n}(e,this._globalTimelineStyles);for(let[e,t]of o){const i=H(t,r,n);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,this._globalTimelineStyles.get(e)??s),this._updateStyle(e,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(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(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,a)=>{const l=q(o,new Map,this._backFill);l.forEach(((i,r)=>{i===n?e.add(r):i===s&&t.add(r)})),i||l.set("offset",a/this.duration),r.push(l)}));const o=e.size?V(e.values()):[],a=t.size?V(t.values()):[];if(i){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return he(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class _e extends ge{constructor(e,t,s,n,i,r,o=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,o=t/r,a=q(e[0]);a.set("offset",0),i.push(a);const l=q(e[0]);l.set("offset",Se(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=q(e[n]);const a=t+o.get("offset")*s;o.set("offset",Se(a/r)),i.push(o)}s=r,t=0,n="",e=i}return he(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function Se(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}class ve{constructor(e,t){this._driver=e;const s=[],n=[],i=ie(e,t,s,n);if(s.length)throw new l(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?L(t):t,o=Array.isArray(s)?L(s):s,a=[];i=i||new ce;const h=de(this._driver,e,this._animationAst,"ng-enter","ng-leave",r,o,n,i,a);if(a.length)throw new l(3501,!1);return h}}class Ee{}class we{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}const be=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"]);class Te extends Ee{normalizePropertyName(e,t){return G(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(be.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new l(3005,!1))}return r+i}}function ke(e,t,s,n,i,r,o,a,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}const Ne={};class Ae{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Ne,m=o&&o.params||Ne,d=this.buildStyles(s,m,c),p=a&&a.params||Ne,y=this.buildStyles(n,p,c),g=new Set,_=new Map,S=new Map,v="void"===n,E={params:Pe(p,u),delay:this.ast.options?.delay},w=h?[]:de(e,t,this.ast.animation,i,r,d,y,E,l,c);let b=0;if(w.forEach((e=>{b=Math.max(e.duration+e.delay,b)})),c.length)return ke(t,this._triggerName,s,n,v,d,y,[],[],_,S,b,c);w.forEach((e=>{const s=e.element,n=f(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=f(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&g.add(s)}));const T=V(g.values());return ke(t,this._triggerName,s,n,v,d,y,w,T,_,S,b)}}function Pe(e,t){const s=x(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class Ce{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=x(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!==s&&(n[t]=s)})),this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=H(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(r,e)}))})),s}}class Fe{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new Ce(e.style,t,s))})),Me(this.states,"true","1"),Me(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Ae(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new Ae(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function Me(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const xe=new ce;class ze{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],n=[],i=ie(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=m(this._driver,this._normalizer,0,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=de(this._driver,t,r,"ng-enter","ng-leave",new Map,new Map,n,xe,i),o.forEach((e=>{const t=f(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{e.forEach(((n,i)=>{e.set(i,this._driver.computeStyle(t,i,s))}))}));const h=u(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,h),h.onDestroy((()=>this.destroy(e))),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw new l(3301,!1);return t}listen(e,t,s,n){const i=y(t,"","","");return d(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const De=[],Le={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Re{constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const t=x(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const Qe=new Re("void");class Be{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ve(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,!1);if(null==s||0==s.length)throw new l(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new l(3400,!1);var i;const r=f(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=f(this._engine.statesByElement,e,new Map);return a.has(t)||(Ve(e,"ng-trigger"),Ve(e,"ng-trigger-"+t),a.set(t,Qe)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers.has(t)||a.delete(t)}))}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ie(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ve(e,"ng-trigger"),Ve(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new Re(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=Qe);if(!("void"===l.value)&&a.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],s=i.matchStyles(a.value,a.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{K(e,s),B(e,n)}))}return}const h=f(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(a.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Ve(e,"ng-animate-queued"),r.onStart((()=>{$e(e,"ng-animate-queued")}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach((t=>t.delete(e))),this._elementListeners.forEach(((t,s)=>{this._elementListeners.set(s,t.filter((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,".ng-trigger",!0);s.forEach((e=>{if(e.__ng_removed)return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const o=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,"void",n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&u(o).onDone((()=>this._engine.processLeaveNode(e))),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,o=s.get(i)||Qe,a=new Re("void"),l=new Ie(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e.__ng_removed;n&&n!==Le||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Ve(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=y(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,d(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((t=>t.element===e))||t,t}}class Ke{constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new Be(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){if(!e)return;const s=this._fetchNamespace(e);this.afterFlush((()=>{this.namespacesByHostElement.delete(s.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(s);t>=0&&this._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((()=>s.destroy(t)))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if(Oe(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Oe(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ve(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$e(e,"ng-animate-disabled"))}removeNode(e,t,s,n){if(Oe(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),s){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return u(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Le,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains("ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){Ve(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?u(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,!1)}_flushAnimations(e,t){const i=new ce,r=[],o=new Map,a=[],h=new Map,c=new Map,m=new Map,d=new Set;this.disabledNodes.forEach((e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)d.add(t[e])}));const p=this.bodyNode,y=Array.from(this.statesByElement.keys()),g=He(y,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s="ng-enter"+S++;_.set(t,s),e.forEach((e=>Ve(e,s)))}));const v=[],E=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t.__ng_removed;s&&s.setForRemoval&&(v.push(t),E.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>E.add(e))):w.add(t))}const b=new Map,T=He(y,Array.from(E));T.forEach(((e,t)=>{const s="ng-leave"+S++;b.set(t,s),e.forEach((e=>Ve(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>$e(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>$e(e,s)))})),v.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],N=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,s=e.element;if(k.push(t),this.collectedEnterElements.length){const n=s.__ng_removed;if(n&&n.setForMove){if(n.previousTriggersValues&&n.previousTriggersValues.has(e.triggerName)){const t=n.previousTriggersValues.get(e.triggerName),s=this.statesByElement.get(e.element);if(s&&s.has(e.triggerName)){const n=s.get(e.triggerName);n.value=t,s.set(e.triggerName,n)}}return void t.destroy()}}const n=!p||!this.driver.containsElement(p,s),o=b.get(s),l=_.get(s),u=this._buildInstruction(e,i,l,o,n);if(u.errors&&u.errors.length)return void N.push(u);if(n)return t.onStart((()=>K(s,u.fromStyles))),t.onDestroy((()=>B(s,u.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>K(s,u.fromStyles))),t.onDestroy((()=>B(s,u.toStyles))),void r.push(t);const d=[];u.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||d.push(e)})),u.timelines=d,i.append(s,u.timelines);const y={instruction:u,player:t,element:s};a.push(y),u.queriedElements.forEach((e=>f(h,e,[]).push(t))),u.preStyleProps.forEach(((e,t)=>{if(e.size){let s=c.get(t);s||c.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),u.postStyleProps.forEach(((e,t)=>{let s=m.get(t);s||m.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const A=new Map,P=new Map;a.forEach((e=>{const t=e.element;i.has(t)&&(P.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{f(A,t,[]).push(e),e.destroy()}))}));const C=v.filter((e=>Ze(e,c,m))),F=new Map;je(F,this.driver,w,m,s).forEach((e=>{Ze(e,c,m)&&C.push(e)}));const M=new Map;g.forEach(((e,t)=>{je(M,this.driver,new Set(e),c,n)})),C.forEach((e=>{const t=F.get(e),s=M.get(e);F.set(e,new Map([...Array.from(t?.entries()??[]),...Array.from(s?.entries()??[])]))}));const x=[],z=[],D={};a.forEach((e=>{const{element:t,player:s,instruction:n}=e;if(i.has(t)){if(d.has(t))return s.onDestroy((()=>B(t,n.toStyles))),s.disabled=!0,s.overrideTotalTime(n.totalTime),void r.push(s);let e=D;if(P.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=P.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>P.set(t,e)))}const i=this._buildAnimation(s.namespaceId,n,A,o,M,F);if(s.setRealPlayer(i),e===D)x.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=u(t)),r.push(s)}}else K(t,n.fromStyles),s.onDestroy((()=>B(t,n.toStyles))),z.push(s),d.has(t)&&r.push(s)})),z.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=u(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<v.length;e++){const t=v[e],s=t.__ng_removed;if($e(t,"ng-leave"),s&&s.hasAnimation)continue;let n=[];if(h.size){let e=h.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,".ng-animating",!0);for(let e=0;e<s.length;e++){let t=h.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?Ge(this,t,i):this.processLeaveNode(t)}return v.length=0,x.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),x}elementContainsData(e,t){let s=!1;const n=t.__ng_removed;return n&&n.setForRemoval&&(s=!0),this.playersByElement.has(t)&&(s=!0),this.playersByQueriedElement.has(t)&&(s=!0),this.statesByElement.has(t)&&(s=!0),this._fetchNamespace(e).elementContainsData(t)||s}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||"void"==i;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,a=n!==i,l=f(s,n,[]);this._getPreviousPlayers(n,a,r,o,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}K(i,t.fromStyles)}_buildAnimation(t,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,d=new Set,p=s.timelines.map((s=>{const u=s.element;c.add(u);const p=u.__ng_removed;if(p&&p.removedBeforeQueried)return new e(s.duration,s.delay);const y=u!==l,f=function(e){const t=[];return Ue(e,t),t}((n.get(u)||De).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===u})),g=r.get(u),_=o.get(u),S=m(this.driver,this._normalizer,0,s.keyframes,g,_),v=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&d.add(u),y){const e=new Ie(t,a,u);e.setRealPlayer(v),h.push(e)}return v}));h.forEach((e=>{f(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Ve(e,"ng-animating")));const y=u(p);return y.onDestroy((()=>{c.forEach((e=>$e(e,"ng-animating"))),B(l,s.toStyles)})),d.forEach((e=>{f(i,e,[]).push(y)})),y}_buildPlayer(t,s,n){return s.length>0?this.driver.animate(t.element,s,t.duration,t.delay,t.easing,n):new e(t.duration,t.delay)}}class Ie{constructor(t,s,n){this.namespaceId=t,this.triggerName=s,this.element=n,this._player=new e,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(((t,s)=>{t.forEach((t=>d(e,s,void 0,t)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart((()=>t.triggerCallback("start"))),e.onDone((()=>this.finish())),e.onDestroy((()=>this.destroy()))}_queueEvent(e,t){f(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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Oe(e){return e&&1===e.nodeType}function We(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function je(e,t,s,n,i){const r=[];s.forEach((e=>r.push(We(e))));const o=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n.__ng_removed=qe,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>We(e,r[a++]))),o}function He(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=s.has(o)?o:n.has(o)?1:r(o),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function Ve(e,t){e.classList?.add(t)}function $e(e,t){e.classList?.remove(t)}function Ge(e,t,s){u(s).onDone((()=>e.processLeaveNode(t)))}function Ue(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof i?Ue(n.players,t):t.push(n)}}function Ze(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}class Je{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ke(e,t,s),this._timelineEngine=new ze(e,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let o=this._triggerCache[r];if(!o){const e=[],t=[],s=ie(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Fe(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s,n){this._transitionEngine.removeNode(e,t,n||!1,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=g(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=g(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}class Xe{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=Xe.initialStylesByElement.get(e);n||Xe.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Xe.initialStylesByElement.delete(this._element),this._startStyles&&(K(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}function Ye(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}Xe.initialStylesByElement=new WeakMap;class et{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((e=>e())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:X(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}class tt{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return window.getComputedStyle(e)[t]}animate(e,t,s,n,i,r=[]){const o={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(o.easing=i);const a=new Map,l=r.filter((e=>e instanceof et));Z(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=D(t).map((e=>q(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,X(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=Ye(t[0]),t.length>1&&(n=Ye(t[t.length-1]))):t instanceof Map&&(s=Ye(t)),s||n?new Xe(e,s,n):null}(e,h);return new et(e,h,o,c)}}export{P as AnimationDriver,ve as ɵAnimation,Je as ɵAnimationEngine,Ee as ɵAnimationStyleNormalizer,A as ɵNoopAnimationDriver,we as ɵNoopAnimationStyleNormalizer,tt as ɵWebAnimationsDriver,et as ɵWebAnimationsPlayer,Te as ɵWebAnimationsStyleNormalizer,Z as ɵallowPreviousPlayerStylesMerge,k as ɵcontainsElement,E as ɵgetParentElement,N as ɵinvokeQuery,D as ɵnormalizeKeyframes,T as ɵvalidateStyleProperty};
//# sourceMappingURL=angular-browser.min.js.map
{
"name": "@esm-bundle/angular__animations",
"version": "14.1.3",
"version": "14.2.0",
"description": "ESM and SystemJS versions of @angular/animations",

@@ -49,6 +49,6 @@ "type": "module",

"devDependencies": {
"@angular/animations": "14.1.3",
"@angular/compiler": "14.1.3",
"@angular/compiler-cli": "14.1.3",
"@angular/core": "14.1.3",
"@angular/animations": "14.2.0",
"@angular/compiler": "14.2.0",
"@angular/compiler-cli": "14.2.0",
"@angular/core": "14.2.0",
"@rollup/plugin-babel": "5.3.1",

@@ -63,9 +63,9 @@ "concurrently": "7.3.0",

"pretty-quick": "3.1.3",
"release-it": "15.3.0",
"release-it": "15.4.0",
"release-it-plugin-esm-bundle": "3.0.0",
"rimraf": "3.0.2",
"rollup": "2.78.0",
"rollup": "2.78.1",
"rollup-plugin-terser": "7.0.2",
"typescript": "4.7.4"
"typescript": "4.8.2"
}
}

@@ -1,2 +0,2 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register([], (function (exports) {

@@ -24,3 +24,3 @@ 'use strict';

/**
* @license Angular v14.1.3
* @license Angular v14.2.0
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -27,0 +27,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register([],(function(t){"use strict";return{execute:function(){t({animate:function(t,s=null){return{type:4,styles:s,timings:t}},animateChild:function(t=null){return{type:9,options:t}},animation:function(t,s=null){return{type:8,animation:t,options:s}},group:function(t,s=null){return{type:3,steps:t,options:s}},keyframes:function(t){return{type:5,steps:t}},query:function(t,s,n=null){return{type:11,selector:t,animation:s,options:n}},sequence:function(t,s=null){return{type:2,steps:t,options:s}},stagger:function(t,s){return{type:12,timings:t,animation:s}},state:function(t,s,n){return{type:0,name:t,styles:s,options:n}},style:function(t){return{type:6,styles:t,offset:null}},transition:function(t,s,n=null){return{type:1,expr:t,animation:s,options:n}},trigger:function(t,s){return{type:7,name:t,definitions:s,options:{}}},useAnimation:function(t,s=null){return{type:10,animation:t,options:s}}});t("AnimationBuilder",class{});t("AnimationFactory",class{});t("AUTO_STYLE","*");function s(t){Promise.resolve(null).then(t)}t("NoopAnimationPlayer",class{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_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(){s((()=>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){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵAnimationGroupPlayer",class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,i=0,o=0;const e=this.players.length;0==e?s((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++n==e&&this._onFinish()})),t.onDestroy((()=>{++i==e&&this._onDestroy()})),t.onStart((()=>{++o==e&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.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){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵPRE_STYLE","!")}}}));
//# sourceMappingURL=angular-animations.min.js.map

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations/browser@14.1.3 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations/browser@14.2.0 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register(["@angular/animations","@angular/core"],(function(e){"use strict";var t,s,n,i,r,o,a,l;return{setters:[function(e){t=e.NoopAnimationPlayer,s=e.style,n=e.AUTO_STYLE,i=e["ɵPRE_STYLE"],r=e["ɵAnimationGroupPlayer"],o=e.sequence},function(e){a=e,e.Injectable,l=e["ɵRuntimeError"]}],execute:function(){e({ɵallowPreviousPlayerStylesMerge:se,ɵgetParentElement:E,ɵnormalizeKeyframes:K,ɵvalidateStyleProperty:T});function h(e){return new l(3e3,!1)}new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function c(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function m(e,t,s,r,o=new Map,a=new Map){const h=[],c=[];let u=-1,m=null;if(r.forEach((e=>{const s=e.get("offset"),r=s==u,l=r&&m||new Map;e.forEach(((e,s)=>{let r=s,c=e;if("offset"!==s)switch(r=t.normalizePropertyName(r,h),c){case i:c=o.get(s);break;case n:c=a.get(s);break;default:c=t.normalizeStyleValue(s,r,c,h)}l.set(r,c)})),r||c.push(l),m=l,u=s})),h.length)throw new l(3502,!1);return c}function d(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&p(s,"start",e))));break;case"done":e.onDone((()=>n(s&&p(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&p(s,"destroy",e))))}}function p(e,t,s){const n=s.totalTime,i=!!s.disabled,r=y(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),o=e._data;return null!=o&&(r._data=o),r}function y(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function f(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function g(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}let _=(e,t)=>!1,S=(e,t,s)=>[],v=null;function E(e){const t=e.parentNode||e.host;return t===v?null:t}(c()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?_=(e,t)=>e.contains(t):(v=(()=>document.documentElement)(),_=(e,t)=>{for(;t;){if(t===e)return!0;t=E(t)}return!1}),S=(e,t,s)=>{if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]});let w=null,b=!1;function T(e){w||(w=function(){if("undefined"!=typeof document)return document.body;return null}()||{},b=!!w.style&&"WebkitAppearance"in w.style);let t=!0;if(w.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in w.style,!t&&b)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in w.style}return t}const k=e("ɵcontainsElement",_),N=e("ɵinvokeQuery",S);class A{validateStyleProperty(e){return T(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,s,n,i,r,o=[],a){return new t(n,i)}}e("ɵNoopAnimationDriver",A),A.ɵfac=function(e){return new(e||A)},A.ɵprov=a.ɵɵdefineInjectable({token:A,factory:A.ɵfac});class P{}e("AnimationDriver",P),P.NOOP=new A;const C="ng-enter",F="ng-leave",M="ng-trigger",x=".ng-trigger",z="ng-animating",D=".ng-animating";function L(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:q(parseFloat(t[1]),t[2])}function q(e,t){switch(t){case"s":return 1e3*e;default:return e}}function R(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(h()),{duration:0,delay:0,easing:""};i=q(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=q(parseFloat(a),s[4]));const l=s[5];l&&(o=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new l(3100,!1)),e=!0),r<0&&(t.push(new l(3101,!1)),e=!0),e&&t.splice(s,0,h())}return{duration:i,delay:r,easing:o}}(e,t,s)}function Q(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function B(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function K(e){return e.length?e[0]instanceof Map?e:e.map((e=>B(e))):[]}function I(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>O(e,t))):O(e,t),t}function O(e,t=new Map,s){if(s)for(let[e,n]of s)t.set(e,n);for(let[s,n]of e)t.set(s,n);return t}function W(e,t,s){return s?t+":"+s+";":""}function j(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=W(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=W(0,te(s),e.style[s])}e.setAttribute("style",t)}function H(e,t,s){e.style&&(t.forEach(((t,n)=>{const i=ee(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t})),c()&&j(e))}function V(e,t){e.style&&(t.forEach(((t,s)=>{const n=ee(s);e.style[n]=""})),c()&&j(e))}function $(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function G(e,t,s){const n=t.params||{},i=Y(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function Y(e){let t=[];if("string"==typeof e){let s;for(;s=U.exec(e);)t.push(s[1]);U.lastIndex=0}return t}function Z(e,t,s){const n=e.toString(),i=n.replace(U,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function J(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const X=/-+([a-z0-9])/g;function ee(e){return e.replace(X,((...e)=>e[1].toUpperCase()))}function te(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function se(e,t){return 0===e||0===t}function ne(e,t,s){switch(t.type){case 7:return e.visitTrigger(t,s);case 0:return e.visitState(t,s);case 1:return e.visitTransition(t,s);case 2:return e.visitSequence(t,s);case 3:return e.visitGroup(t,s);case 4:return e.visitAnimate(t,s);case 5:return e.visitKeyframes(t,s);case 6:return e.visitStyle(t,s);case 8:return e.visitReference(t,s);case 9:return e.visitAnimateChild(t,s);case 10:return e.visitAnimateRef(t,s);case 11:return e.visitQuery(t,s);case 12:return e.visitStagger(t,s);default:throw t.type,new l(3004,!1)}}function ie(e,t){return window.getComputedStyle(e)[t]}const re="*";function oe(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new l(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new l(3015,!1)),t;const i=n[1],r=n[2],o=n[3];t.push(he(i,o));const a=i==re&&o==re;"<"!=r[0]||a||t.push(he(o,i))}(e,s,t))):s.push(e),s}const ae=new Set(["true","1"]),le=new Set(["false","0"]);function he(e,t){const s=ae.has(e)||le.has(e),n=ae.has(t)||le.has(t);return(i,r)=>{let o=e==re||e==i,a=t==re||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?ae.has(e):le.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?ae.has(t):le.has(t)),o&&a}}const ce=":self",ue=new RegExp("s*:selfs*,?","g");function me(e,t,s,n){return new de(e).build(t,s,n)}class de{constructor(e){this._driver=e}build(e,t,s){const n=new pe(t);this._resetContextStyleTimingState(n);return ne(this,$(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push(new l(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),0==e.type){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,i.push(this.visitState(s,t))})),s.name=n}else if(1==e.type){const i=this.visitTransition(e,t);s+=i.queryCount,n+=i.depCount,r.push(i)}else t.errors.push(new l(3007,!1))})),{type:7,name:e.name,states:i,transitions:r,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const i=new Set,r=n||{};if(s.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{Y(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){J(i.values());t.errors.push((e.name,new l(3008,!1)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=ne(this,$(e.animation),t);return{type:1,matchers:oe(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ye(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>ne(this,e,t))),options:ye(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=ne(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:ye(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return fe(R(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=fe(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=R(s,t);return fe(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:s({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=s(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,t);a.isEmptyStep=o,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of i)"string"==typeof e?e===n?s.push(e):t.errors.push(new l(3002,!1)):s.push(B(e));let r=!1,o=null;return s.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!r))for(let t of e.values())if(t.toString().indexOf("{{")>=0){r=!0;break}})),{type:6,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),o=r.get(s);let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,!1))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&G(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,!1)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const h=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let l=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=l&&(n++,h=s.offset=l),o=o||h<0||h>1,r=r||h<a,a=h,i.push(h),s}));o&&t.errors.push(new l(3012,!1)),r&&t.errors.push(new l(3200,!1));const c=e.steps.length;let u=0;n>0&&n<c?t.errors.push(new l(3202,!1)):0==n&&(u=1/(c-1));const m=c-1,d=t.currentTime,p=t.currentAnimateTimings,y=p.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*y;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:ne(this,$(e.animation),t),options:ye(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ye(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ye(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>e==ce));t&&(e=e.replace(ue,""));return[e=e.replace(/@\*/g,x).replace(/@\w+/g,(e=>".ng-trigger-"+e.slice(1))).replace(/:animating/g,D),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,f(t.collectedStyles,t.currentQuerySelector,new Map);const o=ne(this,$(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ye(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,!1));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:R(e.timings,t.errors,!0);return{type:12,animation:ne(this,$(e.animation),t),timings:s,options:null}}}class pe{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ye(e){var t;return e?(e=Q(e)).params&&(e.params=(t=e.params)?Q(t):null):e={},e}function fe(e,t,s){return{duration:e,delay:t,easing:s}}function ge(e,t,s,n,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class _e{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Se=new RegExp(":enter","g"),ve=new RegExp(":leave","g");function Ee(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new we).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class we{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new _e;const c=new Te(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?L(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),ne(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&o.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return m.length?m.map((e=>e.buildKeyframes())):[ge(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?L(s.duration):null,r=null!=s.delay?L(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),ne(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=be);const e=L(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>ne(this,e,n))),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),ne(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return R(t.params?Z(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?L(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=be);let r=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,s);i&&o.delayNextStep(i),s===t.element&&(a=o.currentTimeline),ne(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=s.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;ne(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const be={};class Te{constructor(e,t,s,n,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=be,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ke(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=L(s.duration)),null!=s.delay&&(n.delay=L(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=Z(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new Te(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=be,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new Ne(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(Se,"."+this._enterClassName)).replace(ve,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),o.push(...n)}return i||0!=o.length||r.push(new l(3014,!1)),o}}class ke{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ke(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+=1,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[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||n),this._currentKeyframe.set(e,n);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){var r;t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},a=function(e,t){const s=new Map;let i;return e.forEach((e=>{if("*"===e){i=i||t.keys();for(let e of i)s.set(e,n)}else O(e,s)})),s}(e,this._globalTimelineStyles);for(let[e,t]of a){const i=Z(t,o,s);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,null!==(r=this._globalTimelineStyles.get(e))&&void 0!==r?r:n),this._updateStyle(e,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(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(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,a)=>{const l=O(o,new Map,this._backFill);l.forEach(((s,r)=>{s===i?e.add(r):s===n&&t.add(r)})),s||l.set("offset",a/this.duration),r.push(l)}));const o=e.size?J(e.values()):[],a=t.size?J(t.values()):[];if(s){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return ge(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Ne extends ke{constructor(e,t,s,n,i,r,o=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,o=t/r,a=O(e[0]);a.set("offset",0),i.push(a);const l=O(e[0]);l.set("offset",Ae(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=O(e[n]);const a=t+o.get("offset")*s;o.set("offset",Ae(a/r)),i.push(o)}s=r,t=0,n="",e=i}return ge(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function Ae(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}e("ɵAnimation",class{constructor(e,t){this._driver=e;const s=[],n=[],i=me(e,t,s,n);if(s.length)throw new l(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?I(t):t,o=Array.isArray(s)?I(s):s,a=[];i=i||new _e;const h=Ee(this._driver,e,this._animationAst,C,F,r,o,n,i,a);if(a.length)throw new l(3501,!1);return h}});class Pe{}e("ɵAnimationStyleNormalizer",Pe);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});const Ce=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"]);function Fe(e,t,s,n,i,r,o,a,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}e("ɵWebAnimationsStyleNormalizer",class extends Pe{normalizePropertyName(e,t){return ee(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Ce.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new l(3005,!1))}return r+i}});const Me={};class xe{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(null==e?void 0:e.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,o,a,l,h){var c;const u=[],m=this.ast.options&&this.ast.options.params||Me,d=o&&o.params||Me,p=this.buildStyles(s,d,u),y=a&&a.params||Me,g=this.buildStyles(n,y,u),_=new Set,S=new Map,v=new Map,E="void"===n,w={params:ze(y,m),delay:null===(c=this.ast.options)||void 0===c?void 0:c.delay},b=h?[]:Ee(e,t,this.ast.animation,i,r,p,g,w,l,u);let T=0;if(b.forEach((e=>{T=Math.max(e.duration+e.delay,T)})),u.length)return Fe(t,this._triggerName,s,n,E,p,g,[],[],S,v,T,u);b.forEach((e=>{const s=e.element,n=f(S,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=f(v,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&_.add(s)}));const k=J(_.values());return Fe(t,this._triggerName,s,n,E,p,g,b,k,S,v,T)}}function ze(e,t){const s=Q(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class De{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=Q(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!==s&&(n[t]=s)})),this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=Z(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(r,e)}))})),s}}class Le{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new De(e.style,t,s))})),qe(this.states,"true","1"),qe(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new xe(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new xe(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function qe(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const Re=new _e;class Qe{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],n=[],i=me(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=m(this._driver,this._normalizer,0,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const i=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=Ee(this._driver,t,r,C,F,new Map,new Map,s,Re,i),o.forEach((e=>{const t=f(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{e.forEach(((s,i)=>{e.set(i,this._driver.computeStyle(t,i,n))}))}));const h=u(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,h),h.onDestroy((()=>this.destroy(e))),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw new l(3301,!1);return t}listen(e,t,s,n){const i=y(t,"","","");return d(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Be="ng-animate-queued",Ke="ng-animate-disabled",Ie=[],Oe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},We={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class je{constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const t=Q(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const He="void",Ve=new je(He);class $e{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,et(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,!1);if(null==s||0==s.length)throw new l(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new l(3400,!1);var i;const r=f(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=f(this._engine.statesByElement,e,new Map);return a.has(t)||(et(e,M),et(e,"ng-trigger-"+t),a.set(t,Ve)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers.has(t)||a.delete(t)}))}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ue(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(et(e,M),et(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new je(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=Ve);if(!(l.value===He)&&a.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],s=i.matchStyles(a.value,a.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{V(e,s),H(e,n)}))}return}const h=f(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(a.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(et(e,Be),r.onStart((()=>{tt(e,Be)}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach((t=>t.delete(e))),this._elementListeners.forEach(((t,s)=>{this._elementListeners.set(s,t.filter((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,x,!0);s.forEach((e=>{if(e.__ng_removed)return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const o=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,He,n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&u(o).onDone((()=>this._engine.processLeaveNode(e))),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,o=s.get(i)||Ve,a=new je(He),l=new Ue(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e.__ng_removed;n&&n!==Oe||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){et(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=y(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,d(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((t=>t.element===e))||t,t}}class Ge{constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new $e(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){if(!e)return;const s=this._fetchNamespace(e);this.afterFlush((()=>{this.namespacesByHostElement.delete(s.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(s);t>=0&&this._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((()=>s.destroy(t)))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if(Ye(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ye(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),et(e,Ke)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tt(e,Ke))}removeNode(e,t,s,n){if(Ye(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),s){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return Ye(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,x,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,D,!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return u(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){var t;const s=e.__ng_removed;if(s&&s.setForRemoval){if(e.__ng_removed=Oe,s.namespaceId){this.destroyInnerAnimations(e);const t=this._fetchNamespace(s.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,s.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(Ke))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){et(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?u(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,!1)}_flushAnimations(e,t){const s=new _e,r=[],o=new Map,a=[],h=new Map,c=new Map,m=new Map,d=new Set;this.disabledNodes.forEach((e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)d.add(t[e])}));const p=this.bodyNode,y=Array.from(this.statesByElement.keys()),g=Xe(y,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s=C+S++;_.set(t,s),e.forEach((e=>et(e,s)))}));const v=[],E=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t.__ng_removed;s&&s.setForRemoval&&(v.push(t),E.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>E.add(e))):w.add(t))}const b=new Map,T=Xe(y,Array.from(E));T.forEach(((e,t)=>{const s=F+S++;b.set(t,s),e.forEach((e=>et(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>tt(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>tt(e,s)))})),v.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],N=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,n=e.element;if(k.push(t),this.collectedEnterElements.length){const s=n.__ng_removed;if(s&&s.setForMove){if(s.previousTriggersValues&&s.previousTriggersValues.has(e.triggerName)){const t=s.previousTriggersValues.get(e.triggerName),n=this.statesByElement.get(e.element);if(n&&n.has(e.triggerName)){const s=n.get(e.triggerName);s.value=t,n.set(e.triggerName,s)}}return void t.destroy()}}const i=!p||!this.driver.containsElement(p,n),o=b.get(n),l=_.get(n),u=this._buildInstruction(e,s,l,o,i);if(u.errors&&u.errors.length)return void N.push(u);if(i)return t.onStart((()=>V(n,u.fromStyles))),t.onDestroy((()=>H(n,u.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>V(n,u.fromStyles))),t.onDestroy((()=>H(n,u.toStyles))),void r.push(t);const d=[];u.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||d.push(e)})),u.timelines=d,s.append(n,u.timelines);const y={instruction:u,player:t,element:n};a.push(y),u.queriedElements.forEach((e=>f(h,e,[]).push(t))),u.preStyleProps.forEach(((e,t)=>{if(e.size){let s=c.get(t);s||c.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),u.postStyleProps.forEach(((e,t)=>{let s=m.get(t);s||m.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const A=new Map,P=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(P.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{f(A,t,[]).push(e),e.destroy()}))}));const M=v.filter((e=>it(e,c,m))),x=new Map;Je(x,this.driver,w,m,n).forEach((e=>{it(e,c,m)&&M.push(e)}));const z=new Map;g.forEach(((e,t)=>{Je(z,this.driver,new Set(e),c,i)})),M.forEach((e=>{var t,s;const n=x.get(e),i=z.get(e);x.set(e,new Map([...Array.from(null!==(t=null==n?void 0:n.entries())&&void 0!==t?t:[]),...Array.from(null!==(s=null==i?void 0:i.entries())&&void 0!==s?s:[])]))}));const L=[],q=[],R={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(d.has(t))return n.onDestroy((()=>H(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=R;if(P.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=P.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>P.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,A,o,z,x);if(n.setRealPlayer(s),e===R)L.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=u(t)),r.push(n)}}else V(t,i.fromStyles),n.onDestroy((()=>H(t,i.toStyles))),q.push(n),d.has(t)&&r.push(n)})),q.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=u(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<v.length;e++){const t=v[e],s=t.__ng_removed;if(tt(t,F),s&&s.hasAnimation)continue;let n=[];if(h.size){let e=h.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,D,!0);for(let e=0;e<s.length;e++){let t=h.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?st(this,t,i):this.processLeaveNode(t)}return v.length=0,L.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),L}elementContainsData(e,t){let s=!1;const n=t.__ng_removed;return n&&n.setForRemoval&&(s=!0),this.playersByElement.has(t)&&(s=!0),this.playersByQueriedElement.has(t)&&(s=!0),this.statesByElement.has(t)&&(s=!0),this._fetchNamespace(e).elementContainsData(t)||s}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==He;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,a=n!==i,l=f(s,n,[]);this._getPreviousPlayers(n,a,r,o,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}V(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,d=new Set,p=s.timelines.map((s=>{const u=s.element;c.add(u);const p=u.__ng_removed;if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const y=u!==l,f=function(e){const t=[];return nt(e,t),t}((n.get(u)||Ie).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===u})),g=r.get(u),_=o.get(u),S=m(this.driver,this._normalizer,0,s.keyframes,g,_),v=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&d.add(u),y){const t=new Ue(e,a,u);t.setRealPlayer(v),h.push(t)}return v}));h.forEach((e=>{f(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>et(e,z)));const y=u(p);return y.onDestroy((()=>{c.forEach((e=>tt(e,z))),H(l,s.toStyles)})),d.forEach((e=>{f(i,e,[]).push(y)})),y}_buildPlayer(e,s,n){return s.length>0?this.driver.animate(e.element,s,e.duration,e.delay,e.easing,n):new t(e.duration,e.delay)}}class Ue{constructor(e,s,n){this.namespaceId=e,this.triggerName=s,this.element=n,this._player=new t,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(((t,s)=>{t.forEach((t=>d(e,s,void 0,t)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart((()=>t.triggerCallback("start"))),e.onDone((()=>this.finish())),e.onDestroy((()=>this.destroy()))}_queueEvent(e,t){f(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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Ye(e){return e&&1===e.nodeType}function Ze(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Je(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ze(e))));const o=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n.__ng_removed=We,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ze(e,r[a++]))),o}function Xe(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=s.has(o)?o:n.has(o)?1:r(o),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function et(e,t){var s;null===(s=e.classList)||void 0===s||s.add(t)}function tt(e,t){var s;null===(s=e.classList)||void 0===s||s.remove(t)}function st(e,t,s){u(s).onDone((()=>e.processLeaveNode(t)))}function nt(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?nt(n.players,t):t.push(n)}}function it(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}e("ɵAnimationEngine",class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ge(e,t,s),this._timelineEngine=new Qe(e,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let o=this._triggerCache[r];if(!o){const e=[],t=[],s=me(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Le(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s,n){this._transitionEngine.removeNode(e,t,n||!1,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=g(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=g(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}});class rt{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=rt.initialStylesByElement.get(e);n||rt.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(rt.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}function ot(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}rt.initialStylesByElement=new WeakMap;class at{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((e=>e())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:ie(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}e("ɵWebAnimationsPlayer",at);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return window.getComputedStyle(e)[t]}animate(e,t,s,n,i,r=[]){const o={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(o.easing=i);const a=new Map,l=r.filter((e=>e instanceof at));se(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=K(t).map((e=>O(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,ie(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=ot(t[0]),t.length>1&&(n=ot(t[t.length-1]))):t instanceof Map&&(s=ot(t)),s||n?new rt(e,s,n):null}(e,h);return new at(e,h,o,c)}})}}}));
//# sourceMappingURL=angular-browser.min.js.map

@@ -1,2 +0,2 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register([], (function (exports) {

@@ -24,3 +24,3 @@ 'use strict';

/**
* @license Angular v14.1.3
* @license Angular v14.2.0
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -27,0 +27,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations@14.1.3 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations@14.2.0 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register([],(function(t){"use strict";return{execute:function(){t({animate:function(t,s=null){return{type:4,styles:s,timings:t}},animateChild:function(t=null){return{type:9,options:t}},animation:function(t,s=null){return{type:8,animation:t,options:s}},group:function(t,s=null){return{type:3,steps:t,options:s}},keyframes:function(t){return{type:5,steps:t}},query:function(t,s,n=null){return{type:11,selector:t,animation:s,options:n}},sequence:function(t,s=null){return{type:2,steps:t,options:s}},stagger:function(t,s){return{type:12,timings:t,animation:s}},state:function(t,s,n){return{type:0,name:t,styles:s,options:n}},style:function(t){return{type:6,styles:t,offset:null}},transition:function(t,s,n=null){return{type:1,expr:t,animation:s,options:n}},trigger:function(t,s){return{type:7,name:t,definitions:s,options:{}}},useAnimation:function(t,s=null){return{type:10,animation:t,options:s}}});t("AnimationBuilder",class{});t("AnimationFactory",class{});t("AUTO_STYLE","*");function s(t){Promise.resolve(null).then(t)}t("NoopAnimationPlayer",class{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_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(){s((()=>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){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵAnimationGroupPlayer",class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,i=0,o=0;const e=this.players.length;0==e?s((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++n==e&&this._onFinish()})),t.onDestroy((()=>{++i==e&&this._onDestroy()})),t.onStart((()=>{++o==e&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.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){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵPRE_STYLE","!")}}}));
//# sourceMappingURL=angular-animations.min.js.map

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/animations/browser@14.1.3 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
/* esm-bundle - @angular/animations/browser@14.2.0 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */
System.register(["@angular/animations","@angular/core"],(function(e){"use strict";var t,s,n,i,r,o,a,l;return{setters:[function(e){t=e.NoopAnimationPlayer,s=e.style,n=e.AUTO_STYLE,i=e["ɵPRE_STYLE"],r=e["ɵAnimationGroupPlayer"],o=e.sequence},function(e){a=e,e.Injectable,l=e["ɵRuntimeError"]}],execute:function(){e({ɵallowPreviousPlayerStylesMerge:se,ɵgetParentElement:E,ɵnormalizeKeyframes:K,ɵvalidateStyleProperty:T});function h(e){return new l(3e3,!1)}new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function c(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function m(e,t,s,r,o=new Map,a=new Map){const h=[],c=[];let u=-1,m=null;if(r.forEach((e=>{const s=e.get("offset"),r=s==u,l=r&&m||new Map;e.forEach(((e,s)=>{let r=s,c=e;if("offset"!==s)switch(r=t.normalizePropertyName(r,h),c){case i:c=o.get(s);break;case n:c=a.get(s);break;default:c=t.normalizeStyleValue(s,r,c,h)}l.set(r,c)})),r||c.push(l),m=l,u=s})),h.length)throw new l(3502,!1);return c}function d(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&p(s,"start",e))));break;case"done":e.onDone((()=>n(s&&p(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&p(s,"destroy",e))))}}function p(e,t,s){const n=s.totalTime,i=!!s.disabled,r=y(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,i),o=e._data;return null!=o&&(r._data=o),r}function y(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function f(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function g(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}let _=(e,t)=>!1,S=(e,t,s)=>[],v=null;function E(e){const t=e.parentNode||e.host;return t===v?null:t}(c()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?_=(e,t)=>e.contains(t):(v=(()=>document.documentElement)(),_=(e,t)=>{for(;t;){if(t===e)return!0;t=E(t)}return!1}),S=(e,t,s)=>{if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]});let w=null,b=!1;function T(e){w||(w=function(){if("undefined"!=typeof document)return document.body;return null}()||{},b=!!w.style&&"WebkitAppearance"in w.style);let t=!0;if(w.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in w.style,!t&&b)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in w.style}return t}const k=e("ɵcontainsElement",_),N=e("ɵinvokeQuery",S);class A{validateStyleProperty(e){return T(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,s,n,i,r,o=[],a){return new t(n,i)}}e("ɵNoopAnimationDriver",A),A.ɵfac=function(e){return new(e||A)},A.ɵprov=a.ɵɵdefineInjectable({token:A,factory:A.ɵfac});class P{}e("AnimationDriver",P),P.NOOP=new A;const C="ng-enter",F="ng-leave",M="ng-trigger",x=".ng-trigger",z="ng-animating",D=".ng-animating";function L(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:q(parseFloat(t[1]),t[2])}function q(e,t){switch(t){case"s":return 1e3*e;default:return e}}function R(e,t,s){return e.hasOwnProperty("duration")?e:function(e,t,s){const n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const s=e.match(n);if(null===s)return t.push(h()),{duration:0,delay:0,easing:""};i=q(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=q(parseFloat(a),s[4]));const l=s[5];l&&(o=l)}else i=e;if(!s){let e=!1,s=t.length;i<0&&(t.push(new l(3100,!1)),e=!0),r<0&&(t.push(new l(3101,!1)),e=!0),e&&t.splice(s,0,h())}return{duration:i,delay:r,easing:o}}(e,t,s)}function Q(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function B(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function K(e){return e.length?e[0]instanceof Map?e:e.map((e=>B(e))):[]}function I(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>O(e,t))):O(e,t),t}function O(e,t=new Map,s){if(s)for(let[e,n]of s)t.set(e,n);for(let[s,n]of e)t.set(s,n);return t}function W(e,t,s){return s?t+":"+s+";":""}function j(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=W(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=W(0,te(s),e.style[s])}e.setAttribute("style",t)}function H(e,t,s){e.style&&(t.forEach(((t,n)=>{const i=ee(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t})),c()&&j(e))}function V(e,t){e.style&&(t.forEach(((t,s)=>{const n=ee(s);e.style[n]=""})),c()&&j(e))}function $(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function G(e,t,s){const n=t.params||{},i=Y(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function Y(e){let t=[];if("string"==typeof e){let s;for(;s=U.exec(e);)t.push(s[1]);U.lastIndex=0}return t}function Z(e,t,s){const n=e.toString(),i=n.replace(U,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function J(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const X=/-+([a-z0-9])/g;function ee(e){return e.replace(X,((...e)=>e[1].toUpperCase()))}function te(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function se(e,t){return 0===e||0===t}function ne(e,t,s){switch(t.type){case 7:return e.visitTrigger(t,s);case 0:return e.visitState(t,s);case 1:return e.visitTransition(t,s);case 2:return e.visitSequence(t,s);case 3:return e.visitGroup(t,s);case 4:return e.visitAnimate(t,s);case 5:return e.visitKeyframes(t,s);case 6:return e.visitStyle(t,s);case 8:return e.visitReference(t,s);case 9:return e.visitAnimateChild(t,s);case 10:return e.visitAnimateRef(t,s);case 11:return e.visitQuery(t,s);case 12:return e.visitStagger(t,s);default:throw t.type,new l(3004,!1)}}function ie(e,t){return window.getComputedStyle(e)[t]}const re="*";function oe(e,t){const s=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach((e=>function(e,t,s){if(":"==e[0]){const n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(new l(3016,!1)),"* => *"}}(e,s);if("function"==typeof n)return void t.push(n);e=n}const n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return s.push(new l(3015,!1)),t;const i=n[1],r=n[2],o=n[3];t.push(he(i,o));const a=i==re&&o==re;"<"!=r[0]||a||t.push(he(o,i))}(e,s,t))):s.push(e),s}const ae=new Set(["true","1"]),le=new Set(["false","0"]);function he(e,t){const s=ae.has(e)||le.has(e),n=ae.has(t)||le.has(t);return(i,r)=>{let o=e==re||e==i,a=t==re||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?ae.has(e):le.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?ae.has(t):le.has(t)),o&&a}}const ce=":self",ue=new RegExp("s*:selfs*,?","g");function me(e,t,s,n){return new de(e).build(t,s,n)}class de{constructor(e){this._driver=e}build(e,t,s){const n=new pe(t);this._resetContextStyleTimingState(n);return ne(this,$(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push(new l(3006,!1)),e.definitions.forEach((e=>{if(this._resetContextStyleTimingState(t),0==e.type){const s=e,n=s.name;n.toString().split(/\s*,\s*/).forEach((e=>{s.name=e,i.push(this.visitState(s,t))})),s.name=n}else if(1==e.type){const i=this.visitTransition(e,t);s+=i.queryCount,n+=i.depCount,r.push(i)}else t.errors.push(new l(3007,!1))})),{type:7,name:e.name,states:i,transitions:r,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const i=new Set,r=n||{};if(s.styles.forEach((e=>{e instanceof Map&&e.forEach((e=>{Y(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){J(i.values());t.errors.push((e.name,new l(3008,!1)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=ne(this,$(e.animation),t);return{type:1,matchers:oe(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ye(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>ne(this,e,t))),options:ye(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=ne(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:ye(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return fe(R(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=fe(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=R(s,t);return fe(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:s({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=s(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,t);a.isEmptyStep=o,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let e of i)"string"==typeof e?e===n?s.push(e):t.errors.push(new l(3002,!1)):s.push(B(e));let r=!1,o=null;return s.forEach((e=>{if(e instanceof Map&&(e.has("easing")&&(o=e.get("easing"),e.delete("easing")),!r))for(let t of e.values())if(t.toString().indexOf("{{")>=0){r=!0;break}})),{type:6,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,s)=>{const r=t.collectedStyles.get(t.currentQuerySelector),o=r.get(s);let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,!1))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&G(e,t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,!1)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const h=e.steps.map((e=>{const s=this._makeStyleAst(e,t);let l=null!=s.offset?s.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach((e=>{if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}}));else if(e instanceof Map&&e.has("offset")){const s=e;t=parseFloat(s.get("offset")),s.delete("offset")}return t}(s.styles),h=0;return null!=l&&(n++,h=s.offset=l),o=o||h<0||h>1,r=r||h<a,a=h,i.push(h),s}));o&&t.errors.push(new l(3012,!1)),r&&t.errors.push(new l(3200,!1));const c=e.steps.length;let u=0;n>0&&n<c?t.errors.push(new l(3202,!1)):0==n&&(u=1/(c-1));const m=c-1,d=t.currentTime,p=t.currentAnimateTimings,y=p.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*y;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:ne(this,$(e.animation),t),options:ye(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ye(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ye(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find((e=>e==ce));t&&(e=e.replace(ue,""));return[e=e.replace(/@\*/g,x).replace(/@\w+/g,(e=>".ng-trigger-"+e.slice(1))).replace(/:animating/g,D),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,f(t.collectedStyles,t.currentQuerySelector,new Map);const o=ne(this,$(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:11,selector:i,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:ye(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,!1));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:R(e.timings,t.errors,!0);return{type:12,animation:ne(this,$(e.animation),t),timings:s,options:null}}}class pe{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ye(e){var t;return e?(e=Q(e)).params&&(e.params=(t=e.params)?Q(t):null):e={},e}function fe(e,t,s){return{duration:e,delay:t,easing:s}}function ge(e,t,s,n,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:s,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class _e{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Se=new RegExp(":enter","g"),ve=new RegExp(":leave","g");function Ee(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new we).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class we{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new _e;const c=new Te(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?L(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),ne(this,s,c);const m=c.timelines.filter((e=>e.containsAnimation()));if(m.length&&o.size){let e;for(let s=m.length-1;s>=0;s--){const n=m[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return m.length?m.map((e=>e.buildKeyframes())):[ge(t,[],[],[],0,u,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(s,n,n.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,s){let n=t.currentTimeline.currentTime;const i=null!=s.duration?L(s.duration):null,r=null!=s.delay?L(s.delay):null;return 0!==i&&e.forEach((e=>{const s=t.appendInstructionToTimeline(e,i,r);n=Math.max(n,s.duration+s.delay)})),n}visitReference(e,t){t.updateOptions(e.options,!0),ne(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const i=e.options;if(i&&(i.params||i.delay)&&(n=t.createSubContext(i),n.transformIntoNewTimeline(),null!=i.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=be);const e=L(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>ne(this,e,n))),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),ne(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)})),s.forEach((e=>t.currentTimeline.mergeTimelineCollectedStyles(e))),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return R(t.params?Z(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const i=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,i=s.duration,r=t.createSubContext().currentTimeline;r.easing=s.easing,e.styles.forEach((e=>{const s=e.offset||0;r.forwardTime(s*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+i),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},i=n.delay?L(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=be);let r=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach(((s,n)=>{t.currentQueryIndex=n;const o=t.createSubContext(e.options,s);i&&o.delayNextStep(i),s===t.element&&(a=o.currentTimeline),ne(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=s.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;ne(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const be={};class Te{constructor(e,t,s,n,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=be,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ke(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=L(s.duration)),null!=s.delay&&(n.delay=L(s.delay));const i=s.params;if(i){let e=n.params;e||(e=this.options.params={}),Object.keys(i).forEach((s=>{t&&e.hasOwnProperty(s)||(e[s]=Z(i[s],e,this.errors))}))}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach((e=>{s[e]=t[e]}))}}return e}createSubContext(e=null,t,s){const n=t||this.element,i=new Te(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=be,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=s?s:0)+e.delay,easing:""},i=new Ne(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(i),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,i,r){let o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(Se,"."+this._enterClassName)).replace(ve,"."+this._leaveClassName);const t=1!=s;let n=this._driver.query(this.element,e,t);0!==s&&(n=s<0?n.slice(n.length+s,n.length):n.slice(0,s)),o.push(...n)}return i||0!=o.length||r.push(new l(3014,!1)),o}}class ke{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ke(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+=1,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[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||n),this._currentKeyframe.set(e,n);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},o=function(e,t){const s=new Map;let i;return e.forEach((e=>{if("*"===e){i=i||t.keys();for(let e of i)s.set(e,n)}else O(e,s)})),s}(e,this._globalTimelineStyles);for(let[e,t]of o){const i=Z(t,r,s);this._pendingStyles.set(e,i),this._localTimelineStyles.has(e)||this._backFill.set(e,this._globalTimelineStyles.get(e)??n),this._updateStyle(e,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(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(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach(((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,a)=>{const l=O(o,new Map,this._backFill);l.forEach(((s,r)=>{s===i?e.add(r):s===n&&t.add(r)})),s||l.set("offset",a/this.duration),r.push(l)}));const o=e.size?J(e.values()):[],a=t.size?J(t.values()):[];if(s){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return ge(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Ne extends ke{constructor(e,t,s,n,i,r,o=!1){super(e,t,r.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=s+t,o=t/r,a=O(e[0]);a.set("offset",0),i.push(a);const l=O(e[0]);l.set("offset",Ae(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=O(e[n]);const a=t+o.get("offset")*s;o.set("offset",Ae(a/r)),i.push(o)}s=r,t=0,n="",e=i}return ge(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function Ae(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}e("ɵAnimation",class{constructor(e,t){this._driver=e;const s=[],n=[],i=me(e,t,s,n);if(s.length)throw new l(3500,!1);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?I(t):t,o=Array.isArray(s)?I(s):s,a=[];i=i||new _e;const h=Ee(this._driver,e,this._animationAst,C,F,r,o,n,i,a);if(a.length)throw new l(3501,!1);return h}});class Pe{}e("ɵAnimationStyleNormalizer",Pe);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});const Ce=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"]);function Fe(e,t,s,n,i,r,o,a,l,h,c,u,m){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:s,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:m}}e("ɵWebAnimationsStyleNormalizer",class extends Pe{normalizePropertyName(e,t){return ee(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Ce.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)i="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(new l(3005,!1))}return r+i}});const Me={};class xe{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function(e,t,s,n,i){return e.some((e=>e(t,s,n,i)))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Me,m=o&&o.params||Me,d=this.buildStyles(s,m,c),p=a&&a.params||Me,y=this.buildStyles(n,p,c),g=new Set,_=new Map,S=new Map,v="void"===n,E={params:ze(p,u),delay:this.ast.options?.delay},w=h?[]:Ee(e,t,this.ast.animation,i,r,d,y,E,l,c);let b=0;if(w.forEach((e=>{b=Math.max(e.duration+e.delay,b)})),c.length)return Fe(t,this._triggerName,s,n,v,d,y,[],[],_,S,b,c);w.forEach((e=>{const s=e.element,n=f(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=f(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&g.add(s)}));const T=J(g.values());return Fe(t,this._triggerName,s,n,v,d,y,w,T,_,S,b)}}function ze(e,t){const s=Q(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class De{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=Q(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!==s&&(n[t]=s)})),this.styles.styles.forEach((e=>{"string"!=typeof e&&e.forEach(((e,i)=>{e&&(e=Z(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(r,e)}))})),s}}class Le{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states.set(e.name,new De(e.style,t,s))})),qe(this.states,"true","1"),qe(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new xe(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new xe(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find((i=>i.match(e,t,s,n)))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function qe(e,t,s){e.has(t)?e.has(s)||e.set(s,e.get(t)):e.has(s)&&e.set(t,e.get(s))}const Re=new _e;class Qe{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const s=[],n=[],i=me(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=m(this._driver,this._normalizer,0,e.keyframes,t,s);return this._driver.animate(n,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const i=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=Ee(this._driver,t,r,C,F,new Map,new Map,s,Re,i),o.forEach((e=>{const t=f(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{e.forEach(((s,i)=>{e.set(i,this._driver.computeStyle(t,i,n))}))}));const h=u(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,h),h.onDestroy((()=>this.destroy(e))),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw new l(3301,!1);return t}listen(e,t,s,n){const i=y(t,"","","");return d(this._getPlayer(e),s,i,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s){const s=n[0]||{};return void this.create(e,t,s)}const i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Be="ng-animate-queued",Ke="ng-animate-disabled",Ie=[],Oe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},We={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class je{constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=function(e){return null!=e?e:null}(n),s){const t=Q(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach((s=>{null==e[s]&&(e[s]=t[s])}))}}}const He="void",Ve=new je(He);class $e{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,et(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,!1);if(null==s||0==s.length)throw new l(3303,!1);if("start"!=(i=s)&&"done"!=i)throw new l(3400,!1);var i;const r=f(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=f(this._engine.statesByElement,e,new Map);return a.has(t)||(et(e,M),et(e,"ng-trigger-"+t),a.set(t,Ve)),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers.has(t)||a.delete(t)}))}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ue(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(et(e,M),et(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new je(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=Ve);if(!(l.value===He)&&a.value===l.value){if(!function(e,t){const s=Object.keys(e),n=Object.keys(t);if(s.length!=n.length)return!1;for(let n=0;n<s.length;n++){const i=s[n];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],s=i.matchStyles(a.value,a.params,t),n=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush((()=>{V(e,s),H(e,n)}))}return}const h=f(this._engine.playersByElement,e,[]);h.forEach((e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()}));let c=i.matchTransition(a.value,l.value,e,l.params),u=!1;if(!c){if(!n)return;c=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(et(e,Be),r.onStart((()=>{tt(e,Be)}))),r.onDone((()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const s=this._engine.playersByElement.get(e);if(s){let e=s.indexOf(r);e>=0&&s.splice(e,1)}})),this.players.push(r),h.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach((t=>t.delete(e))),this._elementListeners.forEach(((t,s)=>{this._elementListeners.set(s,t.filter((t=>t.name!=e)))}))}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach((e=>e.destroy())),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,x,!0);s.forEach((e=>{if(e.__ng_removed)return;const s=this._engine.fetchNamespacesByElement(e);s.size?s.forEach((s=>s.triggerLeaveAnimation(e,t,!1,!0))):this.clearElementCache(e)})),this._engine.afterFlushAnimationsDone((()=>s.forEach((e=>this.clearElementCache(e)))))}triggerLeaveAnimation(e,t,s,n){const i=this._engine.statesByElement.get(e),r=new Map;if(i){const o=[];if(i.forEach(((t,s)=>{if(r.set(s,t.value),this._triggers.has(s)){const t=this.trigger(e,s,He,n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&u(o).onDone((()=>this._engine.processLeaveNode(e))),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach((t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers.get(i).fallbackTransition,o=s.get(i)||Ve,a=new je(He),l=new Ue(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const t=s.players.length?s.playersByQueriedElement.get(e):[];if(t&&t.length)n=!0;else{let t=e;for(;t=t.parentNode;){if(s.statesByElement.get(t)){n=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const n=e.__ng_removed;n&&n!==Oe||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){et(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach((s=>{const n=s.player;if(n.destroyed)return;const i=s.element,r=this._elementListeners.get(i);r&&r.forEach((t=>{if(t.name==s.triggerName){const n=y(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,d(s.player,t.phase,n,t.callback)}})),n.markedForDestroy?this._engine.afterFlush((()=>{n.destroy()})):t.push(s)})),this._queue=[],t.sort(((e,t)=>{const s=e.transition.ast.depCount,n=t.transition.ast.depCount;return 0==s||0==n?s-n:this._engine.driver.containsElement(e.element,t.element)?1:-1}))}destroy(e){this.players.forEach((e=>e.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((t=>t.element===e))||t,t}}class Ge{constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach((t=>{t.players.forEach((t=>{t.queued&&e.push(t)}))})),e}createNamespace(e,t){const s=new $e(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let i=!1,r=this.driver.getParentElement(t);for(;r;){const t=n.get(r);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),i=!0;break}r=this.driver.getParentElement(r)}i||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){if(!e)return;const s=this._fetchNamespace(e);this.afterFlush((()=>{this.namespacesByHostElement.delete(s.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(s);t>=0&&this._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((()=>s.destroy(t)))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let e of s.values())if(e.namespaceId){const s=this._fetchNamespace(e.namespaceId);s&&t.add(s)}return t}trigger(e,t,s,n){if(Ye(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ye(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const n=this._fetchNamespace(e);n&&n.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),et(e,Ke)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tt(e,Ke))}removeNode(e,t,s,n){if(Ye(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),s){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,s,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,n,i){return Ye(t)?this._fetchNamespace(e).listen(t,s,n,i):()=>{}}_buildInstruction(e,t,s,n,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,x,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,D,!0),t.forEach((e=>this.finishActiveQueriedAnimationOnElement(e))))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach((e=>{e.queued?e.markedForDestroy=!0:e.destroy()}))}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach((e=>e.finish()))}whenRenderingDone(){return new Promise((e=>{if(this.players.length)return u(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Oe,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ke)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((e=>{this.markElementAsDisabled(e,!1)}))}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((e,t)=>this._balanceNamespaceList(e,t))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){et(this.collectedEnterElements[e],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let e=0;e<s.length;e++)s[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((e=>e())),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?u(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,!1)}_flushAnimations(e,t){const s=new _e,r=[],o=new Map,a=[],h=new Map,c=new Map,m=new Map,d=new Set;this.disabledNodes.forEach((e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)d.add(t[e])}));const p=this.bodyNode,y=Array.from(this.statesByElement.keys()),g=Xe(y,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s=C+S++;_.set(t,s),e.forEach((e=>et(e,s)))}));const v=[],E=new Set,w=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t.__ng_removed;s&&s.setForRemoval&&(v.push(t),E.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>E.add(e))):w.add(t))}const b=new Map,T=Xe(y,Array.from(E));T.forEach(((e,t)=>{const s=F+S++;b.set(t,s),e.forEach((e=>et(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>tt(e,s)))})),T.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>tt(e,s)))})),v.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],N=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach((e=>{const t=e.player,n=e.element;if(k.push(t),this.collectedEnterElements.length){const s=n.__ng_removed;if(s&&s.setForMove){if(s.previousTriggersValues&&s.previousTriggersValues.has(e.triggerName)){const t=s.previousTriggersValues.get(e.triggerName),n=this.statesByElement.get(e.element);if(n&&n.has(e.triggerName)){const s=n.get(e.triggerName);s.value=t,n.set(e.triggerName,s)}}return void t.destroy()}}const i=!p||!this.driver.containsElement(p,n),o=b.get(n),l=_.get(n),u=this._buildInstruction(e,s,l,o,i);if(u.errors&&u.errors.length)return void N.push(u);if(i)return t.onStart((()=>V(n,u.fromStyles))),t.onDestroy((()=>H(n,u.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>V(n,u.fromStyles))),t.onDestroy((()=>H(n,u.toStyles))),void r.push(t);const d=[];u.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||d.push(e)})),u.timelines=d,s.append(n,u.timelines);const y={instruction:u,player:t,element:n};a.push(y),u.queriedElements.forEach((e=>f(h,e,[]).push(t))),u.preStyleProps.forEach(((e,t)=>{if(e.size){let s=c.get(t);s||c.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),u.postStyleProps.forEach(((e,t)=>{let s=m.get(t);s||m.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const A=new Map,P=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(P.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{f(A,t,[]).push(e),e.destroy()}))}));const M=v.filter((e=>it(e,c,m))),x=new Map;Je(x,this.driver,w,m,n).forEach((e=>{it(e,c,m)&&M.push(e)}));const z=new Map;g.forEach(((e,t)=>{Je(z,this.driver,new Set(e),c,i)})),M.forEach((e=>{const t=x.get(e),s=z.get(e);x.set(e,new Map([...Array.from(t?.entries()??[]),...Array.from(s?.entries()??[])]))}));const L=[],q=[],R={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(d.has(t))return n.onDestroy((()=>H(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=R;if(P.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=P.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>P.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,A,o,z,x);if(n.setRealPlayer(s),e===R)L.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=u(t)),r.push(n)}}else V(t,i.fromStyles),n.onDestroy((()=>H(t,i.toStyles))),q.push(n),d.has(t)&&r.push(n)})),q.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=u(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<v.length;e++){const t=v[e],s=t.__ng_removed;if(tt(t,F),s&&s.hasAnimation)continue;let n=[];if(h.size){let e=h.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,D,!0);for(let e=0;e<s.length;e++){let t=h.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?st(this,t,i):this.processLeaveNode(t)}return v.length=0,L.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),L}elementContainsData(e,t){let s=!1;const n=t.__ng_removed;return n&&n.setForRemoval&&(s=!0),this.playersByElement.has(t)&&(s=!0),this.playersByQueriedElement.has(t)&&(s=!0),this.statesByElement.has(t)&&(s=!0),this._fetchNamespace(e).elementContainsData(t)||s}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==He;t.forEach((t=>{t.queued||(e||t.triggerName==n)&&r.push(t)}))}}return(s||n)&&(r=r.filter((e=>(!s||s==e.namespaceId)&&(!n||n==e.triggerName)))),r}_beforeAnimationBuild(e,t,s){const n=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(const e of t.timelines){const n=e.element,a=n!==i,l=f(s,n,[]);this._getPreviousPlayers(n,a,r,o,t.toState).forEach((e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))}V(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,d=new Set,p=s.timelines.map((s=>{const u=s.element;c.add(u);const p=u.__ng_removed;if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const y=u!==l,f=function(e){const t=[];return nt(e,t),t}((n.get(u)||Ie).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===u})),g=r.get(u),_=o.get(u),S=m(this.driver,this._normalizer,0,s.keyframes,g,_),v=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&d.add(u),y){const t=new Ue(e,a,u);t.setRealPlayer(v),h.push(t)}return v}));h.forEach((e=>{f(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n=e.get(t);if(n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>et(e,z)));const y=u(p);return y.onDestroy((()=>{c.forEach((e=>tt(e,z))),H(l,s.toStyles)})),d.forEach((e=>{f(i,e,[]).push(y)})),y}_buildPlayer(e,s,n){return s.length>0?this.driver.animate(e.element,s,e.duration,e.delay,e.easing,n):new t(e.duration,e.delay)}}class Ue{constructor(e,s,n){this.namespaceId=e,this.triggerName=s,this.element=n,this._player=new t,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(((t,s)=>{t.forEach((t=>d(e,s,void 0,t)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart((()=>t.triggerCallback("start"))),e.onDone((()=>this.finish())),e.onDestroy((()=>this.destroy()))}_queueEvent(e,t){f(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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Ye(e){return e&&1===e.nodeType}function Ze(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Je(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ze(e))));const o=[];n.forEach(((s,n)=>{const r=new Map;s.forEach((e=>{const s=t.computeStyle(n,e,i);r.set(e,s),s&&0!=s.length||(n.__ng_removed=We,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ze(e,r[a++]))),o}function Xe(e,t){const s=new Map;if(e.forEach((e=>s.set(e,[]))),0==t.length)return s;const n=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=s.has(o)?o:n.has(o)?1:r(o),i.set(e,t),t}return t.forEach((e=>{const t=r(e);1!==t&&s.get(t).push(e)})),s}function et(e,t){e.classList?.add(t)}function tt(e,t){e.classList?.remove(t)}function st(e,t,s){u(s).onDone((()=>e.processLeaveNode(t)))}function nt(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?nt(n.players,t):t.push(n)}}function it(e,t,s){const n=s.get(e);if(!n)return!1;let i=t.get(e);return i?n.forEach((e=>i.add(e))):t.set(e,n),s.delete(e),!0}e("ɵAnimationEngine",class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ge(e,t,s),this._timelineEngine=new Qe(e,t,s),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,s,n,i){const r=e+"-"+n;let o=this._triggerCache[r];if(!o){const e=[],t=[],s=me(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Le(e,t,s)}(n,s,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s,n){this._transitionEngine.removeNode(e,t,n||!1,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[e,i]=g(s),r=n;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,i){if("@"==s.charAt(0)){const[e,n]=g(s);return this._timelineEngine.listen(e,t,n,i)}return this._transitionEngine.listen(e,t,s,n,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}});class rt{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=rt.initialStylesByElement.get(e);n||rt.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(rt.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}function ot(e){let t=null;return e.forEach(((e,s)=>{(function(e){return"display"===e||"position"===e})(s)&&(t=t||new Map,t.set(s,e))})),t}rt.initialStylesByElement=new WeakMap;class at{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((e=>e())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach((e=>{t.push(Object.fromEntries(e))})),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((t,s)=>{"offset"!==s&&e.set(s,this._finished?t:ie(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}e("ɵWebAnimationsPlayer",at);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return N(e,t,s)}computeStyle(e,t,s){return window.getComputedStyle(e)[t]}animate(e,t,s,n,i,r=[]){const o={duration:s,delay:n,fill:0==n?"both":"forwards"};i&&(o.easing=i);const a=new Map,l=r.filter((e=>e instanceof at));se(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=K(t).map((e=>O(e)));h=function(e,t,s){if(s.size&&t.length){let n=t[0],i=[];if(s.forEach(((e,t)=>{n.has(t)||i.push(t),n.set(t,e)})),i.length)for(let s=1;s<t.length;s++){let n=t[s];i.forEach((t=>n.set(t,ie(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=ot(t[0]),t.length>1&&(n=ot(t[t.length-1]))):t instanceof Map&&(s=ot(t)),s||n?new rt(e,s,n):null}(e,h);return new at(e,h,o,c)}})}}}));
//# sourceMappingURL=angular-browser.min.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc