@esm-bundle/angular__animations
Advanced tools
Comparing version 13.3.5 to 14.0.2
@@ -1,4 +0,4 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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 v13.3.5 | ||
* @license Angular v14.0.2 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -233,3 +233,3 @@ * License: MIT | ||
type: 7 | ||
/* Trigger */ | ||
/* AnimationMetadataType.Trigger */ | ||
, | ||
@@ -304,3 +304,3 @@ name, | ||
type: 4 | ||
/* Animate */ | ||
/* AnimationMetadataType.Animate */ | ||
, | ||
@@ -349,3 +349,3 @@ styles, | ||
type: 3 | ||
/* Group */ | ||
/* AnimationMetadataType.Group */ | ||
, | ||
@@ -394,3 +394,3 @@ steps, | ||
type: 2 | ||
/* Sequence */ | ||
/* AnimationMetadataType.Sequence */ | ||
, | ||
@@ -445,3 +445,3 @@ steps, | ||
type: 6 | ||
/* Style */ | ||
/* AnimationMetadataType.Style */ | ||
, | ||
@@ -486,3 +486,3 @@ styles: tokens, | ||
type: 0 | ||
/* State */ | ||
/* AnimationMetadataType.State */ | ||
, | ||
@@ -544,3 +544,3 @@ name, | ||
type: 5 | ||
/* Keyframes */ | ||
/* AnimationMetadataType.Keyframes */ | ||
, | ||
@@ -701,3 +701,3 @@ steps | ||
type: 1 | ||
/* Transition */ | ||
/* AnimationMetadataType.Transition */ | ||
, | ||
@@ -759,3 +759,3 @@ expr: stateChangeExpr, | ||
type: 8 | ||
/* Reference */ | ||
/* AnimationMetadataType.Reference */ | ||
, | ||
@@ -790,3 +790,3 @@ animation: steps, | ||
type: 9 | ||
/* AnimateChild */ | ||
/* AnimationMetadataType.AnimateChild */ | ||
, | ||
@@ -811,3 +811,3 @@ options | ||
type: 10 | ||
/* AnimateRef */ | ||
/* AnimationMetadataType.AnimateRef */ | ||
, | ||
@@ -943,3 +943,3 @@ animation, | ||
type: 11 | ||
/* Query */ | ||
/* AnimationMetadataType.Query */ | ||
, | ||
@@ -1036,3 +1036,3 @@ selector, | ||
type: 12 | ||
/* Stagger */ | ||
/* AnimationMetadataType.Stagger */ | ||
, | ||
@@ -1039,0 +1039,0 @@ timings, |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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 d(t){Promise.resolve(null).then(t)}class F{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(t)}onDone(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(){d((()=>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}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?d((()=>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 m="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,F 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,m as ɵPRE_STYLE}; | ||
//# sourceMappingURL=angular-animations.min.js.map |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations/browser@13.3.5 - 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,false)}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={},a={}){const h=[],c=[];let u=-1,m=null;if(r.forEach((e=>{const i=e.offset,r=i==u,l=r&&m||{};Object.keys(e).forEach((i=>{let r=i,c=e[i];if("offset"!==i)switch(r=t.normalizePropertyName(r,h),c){case n:c=o[i];break;case s:c=a[i];break;default:c=t.normalizeStyleValue(i,r,c,h)}l[r]=c})),r||c.push(l),m=l,u=i})),h.length)throw new l(3502,!1);return c}function y(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=d(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 d(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;return e instanceof Map?(n=e.get(t),n||e.set(t,n=s)):(n=e[t],n||(n=e[t]=s)),n}function g(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(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 T=null,w=!1;function b(e){T||(T=function(){if("undefined"!=typeof document)return document.body;return null}()||{},w=!!T.style&&"WebkitAppearance"in T.style);let t=!0;if(T.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in T.style,!t&&w)){t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in T.style}return t}const k=_,P=S;class N{validateStyleProperty(e){return b(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return P(e,t,s)}computeStyle(e,t,s){return s||""}animate(t,s,n,i,r,o=[],a){return new e(n,i)}}N.ɵfac=function(e){return new(e||N)},N.ɵprov=o.ɵɵdefineInjectable({token:N,factory:N.ɵfac});class A{}A.NOOP=new N;function C(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:O(parseFloat(t[1]),t[2])}function O(e,t){switch(t){case"s":return 1e3*e;default:return e}}function F(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=O(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=O(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 q(e){const t={};return Array.isArray(e)?e.forEach((e=>L(e,!1,t))):L(e,!1,t),t}function L(e,t,s={}){if(t)for(let t in e)s[t]=e[t];else x(e,s);return s}function D(e,t,s){return s?t+":"+s+";":""}function R(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=D(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=D(0,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[s])}e.setAttribute("style",t)}function Q(e,t,s){e.style&&(Object.keys(t).forEach((n=>{const i=V(n);s&&!s.hasOwnProperty(n)&&(s[n]=e.style[i]),e.style[i]=t[n]})),c()&&R(e))}function B(e,t){e.style&&(Object.keys(t).forEach((t=>{const s=V(t);e.style[s]=""})),c()&&R(e))}function I(e){return Array.isArray(e)?1==e.length?e[0]:r(e):e}function K(e,t,s){const n=t.params||{},i=z(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const j=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(e){let t=[];if("string"==typeof e){let s;for(;s=j.exec(e);)t.push(s[1]);j.lastIndex=0}return t}function M(e,t,s){const n=e.toString(),i=n.replace(j,((e,n)=>{let i=t[n];return t.hasOwnProperty(n)||(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function W(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const H=/-+([a-z0-9])/g;function V(e){return e.replace(H,((...e)=>e[1].toUpperCase()))}function $(e,t){return 0===e||0===t}function G(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 U(e,t){return window.getComputedStyle(e)[t]}function Z(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(Y(i,o));const a="*"==i&&"*"==o;"<"!=r[0]||a||t.push(Y(o,i))}(e,s,t))):s.push(e),s}const J=new Set(["true","1"]),X=new Set(["false","0"]);function Y(e,t){const s=J.has(e)||X.has(e),n=J.has(t)||X.has(t);return(i,r)=>{let o="*"==e||e==i,a="*"==t||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?J.has(e):X.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?J.has(t):X.has(t)),o&&a}}const ee=new RegExp("s*:selfs*,?","g");function te(e,t,s,n){return new se(e).build(t,s,n)}class se{constructor(e){this._driver=e}build(e,t,s){const n=new ne(t);this._resetContextStyleTimingState(n);const i=G(this,I(e),n);return n.unsupportedCSSPropertiesFound.size&&n.unsupportedCSSPropertiesFound.keys(),i}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},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=>{if(ie(e)){const t=e;Object.keys(t).forEach((e=>{z(t[e]).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))}})),i.size){W(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=G(this,I(e.animation),t);return{type:1,matchers:Z(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:re(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>G(this,e,t))),options:re(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=G(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:re(e.options)}}visitAnimate(e,s){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return oe(F(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=oe(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=F(s,t);return oe(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=[];Array.isArray(e.styles)?e.styles.forEach((e=>{"string"==typeof e?e==s?n.push(e):t.errors.push(new l(3002,!1)):n.push(e)})):n.push(e.styles);let i=!1,r=null;return n.forEach((e=>{if(ie(e)){const t=e,s=t.easing;if(s&&(r=s,delete t.easing),!i)for(let e in t){if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}})),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,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&&Object.keys(e).forEach((s=>{if(!this._driver.validateStyleProperty(s))return delete e[s],void t.unsupportedCSSPropertiesFound.add(s);const r=t.collectedStyles[t.currentQuerySelector],o=r[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[s]={startTime:i,endTime:n}),t.options&&K(e[s],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(ie(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.offset}}));else if(ie(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.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,y=t.currentTime,p=t.currentAnimateTimings,d=p.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*d;t.currentTime=y+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:G(this,I(e.animation),t),options:re(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:re(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:re(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(ee,""));return[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(e=>".ng-trigger-"+e.substr(1))).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,f(t.collectedStyles,t.currentQuerySelector,{});const o=G(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:re(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"}:F(e.timings,t.errors,!0);return{type:12,animation:G(this,I(e.animation),t),timings:s,options:null}}}class ne{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={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ie(e){return!Array.isArray(e)&&"object"==typeof e}function re(e){var t;return e?(e=x(e)).params&&(e.params=(t=e.params)?x(t):null):e={},e}function oe(e,t,s){return{duration:e,delay:t,easing:s}}function ae(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 le{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 he=new RegExp(":enter","g"),ce=new RegExp(":leave","g");function ue(e,t,s,n,i,r={},o={},a,l,h=[]){return(new me).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class me{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new le;const c=new pe(e,t,l,n,i,h,[]);c.options=a,c.currentTimeline.setStyles([r],null,c.errors,a),G(this,s,c);const u=c.timelines.filter((e=>e.containsAnimation()));if(Object.keys(o).length){let e;for(let s=u.length-1;s>=0;s--){const n=u[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return u.length?u.map((e=>e.buildKeyframes())):[ae(t,[],[],[],0,0,"",!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),G(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=>G(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),G(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 F(t.params?M(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.getCurrentStyleProperties().length&&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.getCurrentStyleProperties().length)&&(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),G(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;G(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const ye={};class pe{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 de(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]=M(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 pe(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 fe(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(he,"."+this._enterClassName)).replace(ce,"."+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 de{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new de(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=Object.create(this._backFill,{}),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[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((e=>{this._backFill[e]=this._globalTimelineStyles[e]||s,this._currentKeyframe[e]=s})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach((e=>{"*"===e?(i=i||Object.keys(t),i.forEach((e=>{n[e]=s}))):L(e,!1,n)})),n}(e,this._globalTimelineStyles);Object.keys(o).forEach((e=>{const t=M(o[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:s),this._updateStyle(e,t)}))}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach((t=>{const s=e[t];this._currentKeyframe[t]=s})),Object.keys(this._localTimelineStyles).forEach((e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((e=>{const t=this._localTimelineStyles[e];this._pendingStyles[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){Object.keys(e._styleSummary).forEach((t=>{const s=this._styleSummary[t],n=e._styleSummary[t];(!s||n.time>s.time)&&this._updateStyle(t,n.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=L(o,!0);Object.keys(l).forEach((i=>{const r=l[i];r==n?e.add(i):r==s&&t.add(i)})),i||(l.offset=a/this.duration),r.push(l)}));const o=e.size?W(e.values()):[],a=t.size?W(t.values()):[];if(i){const e=r[0],t=x(e);e.offset=0,t.offset=1,r=[e,t]}return ae(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class fe extends de{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=L(e[0],!1);a.offset=0,i.push(a);const l=L(e[0],!1);l.offset=ge(o),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=L(e[n],!1);const a=t+o.offset*s;o.offset=ge(a/r),i.push(o)}s=r,t=0,n="",e=i}return ae(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ge(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}class _e{constructor(e,t){this._driver=e;const s=[],n=[],i=te(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)?q(t):t,o=Array.isArray(s)?q(s):s,a=[];i=i||new le;const h=ue(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 Se{}class ve{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}class Ee extends Se{normalizePropertyName(e,t){return V(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Te[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 Te=function(e){const t={};return e.forEach((e=>t[e]=!0)),t}("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".split(","));function we(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 be={};class ke{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){const n=this._stateStyles["*"],i=this._stateStyles[e],r=n?n.buildStyles(t,s):{};return i?i.buildStyles(t,s):r}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||be,m=o&&o.params||be,y=this.buildStyles(s,m,c),p=a&&a.params||be,d=this.buildStyles(n,p,c),g=new Set,_=new Map,S=new Map,v="void"===n,E={params:Object.assign(Object.assign({},u),p)},T=h?[]:ue(e,t,this.ast.animation,i,r,y,d,E,l,c);let w=0;if(T.forEach((e=>{w=Math.max(e.duration+e.delay,w)})),c.length)return we(t,this._triggerName,s,n,v,y,d,[],[],_,S,w,c);T.forEach((e=>{const s=e.element,n=f(_,s,{});e.preStyleProps.forEach((e=>n[e]=!0));const i=f(S,s,{});e.postStyleProps.forEach((e=>i[e]=!0)),s!==t&&g.add(s)}));const b=W(g.values());return we(t,this._triggerName,s,n,v,y,d,T,b,_,S,w)}}class Pe{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s={},n=x(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!=s&&(n[t]=s)})),this.styles.styles.forEach((e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach((e=>{let r=i[e];r.length>1&&(r=M(r,n,t));const o=this.normalizer.normalizePropertyName(e,t);r=this.normalizer.normalizeStyleValue(e,o,r,t),s[o]=r}))}})),s}}class Ne{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states={},t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new Pe(e.style,t,s)})),Ae(this.states,"true","1"),Ae(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new ke(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new ke(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 Ae(e,t,s){e.hasOwnProperty(t)?e.hasOwnProperty(s)||(e[s]=e[t]):e.hasOwnProperty(s)&&(e[t]=e[s])}const Ce=new le;class Oe{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations={},this._playersById={},this.players=[]}register(e,t){const s=[],n=[],i=te(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations[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[e];let o;const a=new Map;if(r?(o=ue(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Ce,i),o.forEach((e=>{const t=f(a,e.element,{});e.postStyleProps.forEach((e=>t[e]=null))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{Object.keys(e).forEach((n=>{e[n]=this._driver.computeStyle(t,n,s)}))}));const h=u(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,{},t)})));return this._playersById[e]=h,h.onDestroy((()=>this.destroy(e))),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new l(3301,!1);return t}listen(e,t,s,n){const i=d(t,"","","");return y(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 Fe=[],xe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Le{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 De=new Le("void");class Re{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Me(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.hasOwnProperty(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,{});return a.hasOwnProperty(t)||(Me(e,"ng-trigger"),Me(e,"ng-trigger-"+t),a[t]=De),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete a[t]}))}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Be(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Me(e,"ng-trigger"),Me(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Le(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=De);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((()=>{B(e,s),Q(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||(Me(e,"ng-animate-queued"),r.onStart((()=>{We(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){delete this._triggers[e],this._engine.statesByElement.forEach(((t,s)=>{delete t[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(Object.keys(i).forEach((t=>{if(r.set(t,i[t].value),this._triggers[t]){const s=this.trigger(e,t,"void",n);s&&o.push(s)}})),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[i].fallbackTransition,o=s[i]||De,a=new Le("void"),l=new Be(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!==xe||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Me(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=d(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,y(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 Qe{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 Re(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,i=s.length-1;if(i>=0){let r=!1;if(void 0!==this.driver.getParentElement){let i=this.driver.getParentElement(t);for(;i;){const t=n.get(i);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}}else for(let n=i;n>=0;n--){const i=s[n];if(this.driver.containsElement(i.hostElement,t)){s.splice(n+1,0,e),r=!0;break}}r||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){const e=Object.keys(s);for(let n=0;n<e.length;n++){const i=s[e[n]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,s,n){if(Ie(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ie(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),Me(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),We(e,"ng-animate-disabled"))}removeNode(e,t,s,n){if(Ie(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 Ie(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=xe,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++){Me(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 le,r=[],o=new Map,a=[],h=new Map,c=new Map,m=new Map,y=new Set;this.disabledNodes.forEach((e=>{y.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)y.add(t[e])}));const p=this.bodyNode,d=Array.from(this.statesByElement.keys()),g=ze(d,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s="ng-enter"+S++;_.set(t,s),e.forEach((e=>Me(e,s)))}));const v=[],E=new Set,T=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))):T.add(t))}const w=new Map,b=ze(d,Array.from(E));b.forEach(((e,t)=>{const s="ng-leave"+S++;w.set(t,s),e.forEach((e=>Me(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>We(e,s)))})),b.forEach(((e,t)=>{const s=w.get(t);e.forEach((e=>We(e,s)))})),v.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],P=[];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);s&&s[e.triggerName]&&(s[e.triggerName].value=t)}return void t.destroy()}}const n=!p||!this.driver.containsElement(p,s),o=w.get(s),l=_.get(s),u=this._buildInstruction(e,i,l,o,n);if(u.errors&&u.errors.length)return void P.push(u);if(n)return t.onStart((()=>B(s,u.fromStyles))),t.onDestroy((()=>Q(s,u.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>B(s,u.fromStyles))),t.onDestroy((()=>Q(s,u.toStyles))),void r.push(t);const y=[];u.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||y.push(e)})),u.timelines=y,i.append(s,u.timelines);const d={instruction:u,player:t,element:s};a.push(d),u.queriedElements.forEach((e=>f(h,e,[]).push(t))),u.preStyleProps.forEach(((e,t)=>{const s=Object.keys(e);if(s.length){let e=c.get(t);e||c.set(t,e=new Set),s.forEach((t=>e.add(t)))}})),u.postStyleProps.forEach(((e,t)=>{const s=Object.keys(e);let n=m.get(t);n||m.set(t,n=new Set),s.forEach((e=>n.add(e)))}))}))}if(P.length){const e=[];P.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const N=new Map,A=new Map;a.forEach((e=>{const t=e.element;i.has(t)&&(A.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,N))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{f(N,t,[]).push(e),e.destroy()}))}));const C=v.filter((e=>$e(e,c,m))),O=new Map;je(O,this.driver,T,m,s).forEach((e=>{$e(e,c,m)&&C.push(e)}));const F=new Map;g.forEach(((e,t)=>{je(F,this.driver,new Set(e),c,n)})),C.forEach((e=>{const t=O.get(e),s=F.get(e);O.set(e,Object.assign(Object.assign({},t),s))}));const x=[],q=[],L={};a.forEach((e=>{const{element:t,player:s,instruction:n}=e;if(i.has(t)){if(y.has(t))return s.onDestroy((()=>Q(t,n.toStyles))),s.disabled=!0,s.overrideTotalTime(n.totalTime),void r.push(s);let e=L;if(A.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=A.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>A.set(t,e)))}const i=this._buildAnimation(s.namespaceId,n,N,o,F,O);if(s.setRealPlayer(i),e===L)x.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=u(t)),r.push(s)}}else B(t,n.fromStyles),s.onDestroy((()=>Q(t,n.toStyles))),q.push(s),y.has(t)&&r.push(s)})),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(We(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?He(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)}))}B(i,t.fromStyles)}_buildAnimation(t,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,y=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 d=u!==l,f=function(e){const t=[];return Ve(e,t),t}((n.get(u)||Fe).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&&y.add(u),d){const e=new Be(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;if(e instanceof Map){if(n=e.get(t),n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}}else if(n=e[t],n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&delete e[t]}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Me(e,"ng-animating")));const d=u(p);return d.onDestroy((()=>{c.forEach((e=>We(e,"ng-animating"))),Q(l,s.toStyles)})),y.forEach((e=>{f(i,e,[]).push(d)})),d}_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 Be{constructor(t,s,n){this.namespaceId=t,this.triggerName=s,this.element=n,this._player=new e,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((t=>{this._queuedCallbacks[t].forEach((s=>y(e,t,void 0,s)))})),this._queuedCallbacks={},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 Ie(e){return e&&1===e.nodeType}function Ke(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(Ke(e))));const o=[];n.forEach(((s,n)=>{const r={};s.forEach((e=>{const s=r[e]=t.computeStyle(n,e,i);s&&0!=s.length||(n.__ng_removed=qe,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ke(e,r[a++]))),o}function ze(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 Me(e,t){var s;null===(s=e.classList)||void 0===s||s.add(t)}function We(e,t){var s;null===(s=e.classList)||void 0===s||s.remove(t)}function He(e,t,s){u(s).onDone((()=>e.processLeaveNode(t)))}function Ve(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof i?Ve(n.players,t):t.push(n)}}function $e(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 Ge{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Qe(e,t,s),this._timelineEngine=new Oe(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=te(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Ne(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 Ue{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=Ue.initialStylesByElement.get(e);n||Ue.initialStylesByElement.set(e,n={}),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ue.initialStylesByElement.delete(this._element),this._startStyles&&(B(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}function Ze(e){let t=null;const s=Object.keys(e);for(let n=0;n<s.length;n++){const i=s[n];Je(i)&&(t=t||{},t[i]=e[i])}return t}function Je(e){return"display"===e||"position"===e}Ue.initialStylesByElement=new WeakMap;class Xe{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.time=0,this.parentPlayer=null,this.currentSnapshot={},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]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,s){return e.animate(t,s)}onStart(e){this._onStartFns.push(e)}onDone(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}_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={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach((s=>{"offset"!=s&&(e[s]=this._finished?t[s]:U(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}class Ye{validateStyleProperty(e){return b(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return P(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={},l=r.filter((e=>e instanceof Xe));$(s,n)&&l.forEach((e=>{let t=e.currentSnapshot;Object.keys(t).forEach((e=>a[e]=t[e]))}));const h=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=Ze(t[0]),t.length>1&&(n=Ze(t[t.length-1]))):t&&(s=Ze(t)),s||n?new Ue(e,s,n):null}(e,t=function(e,t,s){const n=Object.keys(s);if(n.length&&t.length){let r=t[0],o=[];if(n.forEach((e=>{r.hasOwnProperty(e)||o.push(e),r[e]=s[e]})),o.length)for(var i=1;i<t.length;i++){let s=t[i];o.forEach((function(t){s[t]=U(e,t)}))}}return t}(e,t=t.map((e=>L(e,!1))),a));return new Xe(e,t,o,h)}}export{A as AnimationDriver,_e as ɵAnimation,Ge as ɵAnimationEngine,Se as ɵAnimationStyleNormalizer,N as ɵNoopAnimationDriver,ve as ɵNoopAnimationStyleNormalizer,Ye as ɵWebAnimationsDriver,Xe as ɵWebAnimationsPlayer,Ee as ɵWebAnimationsStyleNormalizer,$ as ɵallowPreviousPlayerStylesMerge,k as ɵcontainsElement,E as ɵgetParentElement,P as ɵinvokeQuery,b as ɵvalidateStyleProperty}; | ||
/* esm-bundle - @angular/animations/browser@14.0.2 - 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,false)}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:M(parseFloat(t[1]),t[2])}function M(e,t){switch(t){case"s":return 1e3*e;default:return e}}function x(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=M(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=M(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 F(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 L(e){return e.length?e[0]instanceof Map?e:e.map((e=>z(e))):[]}function q(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>D(e,t))):D(e,t),t}function D(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(x(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=x(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"}:x(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,this.nonAnimatableCSSPropertiesFound=new Set}}function ae(e){var t;return e?(e=F(e)).params&&(e.params=(t=e.params)?F(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 x(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 D(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=D(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=D(e[0]);a.set("offset",0),i.push(a);const l=D(e[0]);l.set("offset",ve(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=D(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)?q(t):t,o=Array.isArray(s)?q(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=F(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=F(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 Me{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))})),xe(this.states,"true","1"),xe(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 xe(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 Fe=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,Fe,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 Le=[],qe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},De={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=F(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!==qe||(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=qe,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))),M=new Map;je(M,this.driver,w,m,s).forEach((e=>{Ze(e,c,m)&&C.push(e)}));const x=new Map;g.forEach(((e,t)=>{je(x,this.driver,new Set(e),c,n)})),C.forEach((e=>{var t,s;const n=M.get(e),i=x.get(e);M.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 F=[],z=[],L={};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=L;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,x,M);if(s.setRealPlayer(i),e===L)F.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,F.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),F}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)||Le).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=De,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 Me(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.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._onStartFns.push(e)}onDone(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}_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=L(t).map((e=>D(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,L as ɵnormalizeKeyframes,T as ɵvalidateStyleProperty}; | ||
//# sourceMappingURL=angular-browser.min.js.map |
@@ -1,4 +0,4 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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 v13.3.5 | ||
* @license Angular v14.0.2 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -233,3 +233,3 @@ * License: MIT | ||
type: 7 | ||
/* Trigger */ | ||
/* AnimationMetadataType.Trigger */ | ||
, | ||
@@ -304,3 +304,3 @@ name, | ||
type: 4 | ||
/* Animate */ | ||
/* AnimationMetadataType.Animate */ | ||
, | ||
@@ -349,3 +349,3 @@ styles, | ||
type: 3 | ||
/* Group */ | ||
/* AnimationMetadataType.Group */ | ||
, | ||
@@ -394,3 +394,3 @@ steps, | ||
type: 2 | ||
/* Sequence */ | ||
/* AnimationMetadataType.Sequence */ | ||
, | ||
@@ -445,3 +445,3 @@ steps, | ||
type: 6 | ||
/* Style */ | ||
/* AnimationMetadataType.Style */ | ||
, | ||
@@ -486,3 +486,3 @@ styles: tokens, | ||
type: 0 | ||
/* State */ | ||
/* AnimationMetadataType.State */ | ||
, | ||
@@ -544,3 +544,3 @@ name, | ||
type: 5 | ||
/* Keyframes */ | ||
/* AnimationMetadataType.Keyframes */ | ||
, | ||
@@ -701,3 +701,3 @@ steps | ||
type: 1 | ||
/* Transition */ | ||
/* AnimationMetadataType.Transition */ | ||
, | ||
@@ -759,3 +759,3 @@ expr: stateChangeExpr, | ||
type: 8 | ||
/* Reference */ | ||
/* AnimationMetadataType.Reference */ | ||
, | ||
@@ -790,3 +790,3 @@ animation: steps, | ||
type: 9 | ||
/* AnimateChild */ | ||
/* AnimationMetadataType.AnimateChild */ | ||
, | ||
@@ -811,3 +811,3 @@ options | ||
type: 10 | ||
/* AnimateRef */ | ||
/* AnimationMetadataType.AnimateRef */ | ||
, | ||
@@ -943,3 +943,3 @@ animation, | ||
type: 11 | ||
/* Query */ | ||
/* AnimationMetadataType.Query */ | ||
, | ||
@@ -1036,3 +1036,3 @@ selector, | ||
type: 12 | ||
/* Stagger */ | ||
/* AnimationMetadataType.Stagger */ | ||
, | ||
@@ -1039,0 +1039,0 @@ timings, |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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 d(t){Promise.resolve(null).then(t)}class F{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(t)}onDone(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(){d((()=>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}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?d((()=>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 m="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,F 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,m as ɵPRE_STYLE}; | ||
//# sourceMappingURL=angular-animations.min.js.map |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations/browser@13.3.5 - 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,false)}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={},a={}){const h=[],c=[];let u=-1,m=null;if(r.forEach((e=>{const i=e.offset,r=i==u,l=r&&m||{};Object.keys(e).forEach((i=>{let r=i,c=e[i];if("offset"!==i)switch(r=t.normalizePropertyName(r,h),c){case n:c=o[i];break;case s:c=a[i];break;default:c=t.normalizeStyleValue(i,r,c,h)}l[r]=c})),r||c.push(l),m=l,u=i})),h.length)throw new l(3502,!1);return c}function y(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=d(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 d(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;return e instanceof Map?(n=e.get(t),n||e.set(t,n=s)):(n=e[t],n||(n=e[t]=s)),n}function g(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(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 T=null,w=!1;function b(e){T||(T=function(){if("undefined"!=typeof document)return document.body;return null}()||{},w=!!T.style&&"WebkitAppearance"in T.style);let t=!0;if(T.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in T.style,!t&&w)){t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in T.style}return t}const k=_,P=S;class N{validateStyleProperty(e){return b(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return P(e,t,s)}computeStyle(e,t,s){return s||""}animate(t,s,n,i,r,o=[],a){return new e(n,i)}}N.ɵfac=function(e){return new(e||N)},N.ɵprov=o.ɵɵdefineInjectable({token:N,factory:N.ɵfac});class A{}A.NOOP=new N;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 O(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 q(e){const t={};return Array.isArray(e)?e.forEach((e=>L(e,!1,t))):L(e,!1,t),t}function L(e,t,s={}){if(t)for(let t in e)s[t]=e[t];else x(e,s);return s}function D(e,t,s){return s?t+":"+s+";":""}function R(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=D(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=D(0,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[s])}e.setAttribute("style",t)}function Q(e,t,s){e.style&&(Object.keys(t).forEach((n=>{const i=V(n);s&&!s.hasOwnProperty(n)&&(s[n]=e.style[i]),e.style[i]=t[n]})),c()&&R(e))}function B(e,t){e.style&&(Object.keys(t).forEach((t=>{const s=V(t);e.style[s]=""})),c()&&R(e))}function I(e){return Array.isArray(e)?1==e.length?e[0]:r(e):e}function K(e,t,s){const n=t.params||{},i=M(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,!1))}))}const z=new RegExp("{{\\s*(.+?)\\s*}}","g");function M(e){let t=[];if("string"==typeof e){let s;for(;s=z.exec(e);)t.push(s[1]);z.lastIndex=0}return t}function j(e,t,s){const n=e.toString(),i=n.replace(z,((e,n)=>{let i=t[n];return t.hasOwnProperty(n)||(s.push(new l(3003,!1)),i=""),i.toString()}));return i==n?e:i}function W(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const H=/-+([a-z0-9])/g;function V(e){return e.replace(H,((...e)=>e[1].toUpperCase()))}function $(e,t){return 0===e||0===t}function G(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 U(e,t){return window.getComputedStyle(e)[t]}function Z(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(Y(i,o));const a="*"==i&&"*"==o;"<"!=r[0]||a||t.push(Y(o,i))}(e,s,t))):s.push(e),s}const J=new Set(["true","1"]),X=new Set(["false","0"]);function Y(e,t){const s=J.has(e)||X.has(e),n=J.has(t)||X.has(t);return(i,r)=>{let o="*"==e||e==i,a="*"==t||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?J.has(e):X.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?J.has(t):X.has(t)),o&&a}}const ee=new RegExp("s*:selfs*,?","g");function te(e,t,s,n){return new se(e).build(t,s,n)}class se{constructor(e){this._driver=e}build(e,t,s){const n=new ne(t);this._resetContextStyleTimingState(n);const i=G(this,I(e),n);return n.unsupportedCSSPropertiesFound.size&&n.unsupportedCSSPropertiesFound.keys(),i}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},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=>{if(ie(e)){const t=e;Object.keys(t).forEach((e=>{M(t[e]).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))}})),i.size){W(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=G(this,I(e.animation),t);return{type:1,matchers:Z(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:re(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>G(this,e,t))),options:re(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=G(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:re(e.options)}}visitAnimate(e,s){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return oe(O(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=oe(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=O(s,t);return oe(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=[];Array.isArray(e.styles)?e.styles.forEach((e=>{"string"==typeof e?e==s?n.push(e):t.errors.push(new l(3002,!1)):n.push(e)})):n.push(e.styles);let i=!1,r=null;return n.forEach((e=>{if(ie(e)){const t=e,s=t.easing;if(s&&(r=s,delete t.easing),!i)for(let e in t){if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}})),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,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&&Object.keys(e).forEach((s=>{if(!this._driver.validateStyleProperty(s))return delete e[s],void t.unsupportedCSSPropertiesFound.add(s);const r=t.collectedStyles[t.currentQuerySelector],o=r[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[s]={startTime:i,endTime:n}),t.options&&K(e[s],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(ie(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.offset}}));else if(ie(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.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,y=t.currentTime,p=t.currentAnimateTimings,d=p.duration;return h.forEach(((e,n)=>{const r=u>0?n==m?1:u*n:i[n],o=r*d;t.currentTime=y+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:G(this,I(e.animation),t),options:re(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:re(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:re(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(ee,""));return[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(e=>".ng-trigger-"+e.substr(1))).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,f(t.collectedStyles,t.currentQuerySelector,{});const o=G(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:re(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"}:O(e.timings,t.errors,!0);return{type:12,animation:G(this,I(e.animation),t),timings:s,options:null}}}class ne{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={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ie(e){return!Array.isArray(e)&&"object"==typeof e}function re(e){var t;return e?(e=x(e)).params&&(e.params=(t=e.params)?x(t):null):e={},e}function oe(e,t,s){return{duration:e,delay:t,easing:s}}function ae(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 le{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 he=new RegExp(":enter","g"),ce=new RegExp(":leave","g");function ue(e,t,s,n,i,r={},o={},a,l,h=[]){return(new me).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class me{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new le;const c=new pe(e,t,l,n,i,h,[]);c.options=a,c.currentTimeline.setStyles([r],null,c.errors,a),G(this,s,c);const u=c.timelines.filter((e=>e.containsAnimation()));if(Object.keys(o).length){let e;for(let s=u.length-1;s>=0;s--){const n=u[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return u.length?u.map((e=>e.buildKeyframes())):[ae(t,[],[],[],0,0,"",!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),G(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=>G(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),G(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 O(t.params?j(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.getCurrentStyleProperties().length&&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.getCurrentStyleProperties().length)&&(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),G(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;G(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const ye={};class pe{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 de(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]=j(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 pe(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 fe(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(he,"."+this._enterClassName)).replace(ce,"."+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 de{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new de(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=Object.create(this._backFill,{}),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[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((e=>{this._backFill[e]=this._globalTimelineStyles[e]||s,this._currentKeyframe[e]=s})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach((e=>{"*"===e?(i=i||Object.keys(t),i.forEach((e=>{n[e]=s}))):L(e,!1,n)})),n}(e,this._globalTimelineStyles);Object.keys(o).forEach((e=>{const t=j(o[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:s),this._updateStyle(e,t)}))}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach((t=>{const s=e[t];this._currentKeyframe[t]=s})),Object.keys(this._localTimelineStyles).forEach((e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((e=>{const t=this._localTimelineStyles[e];this._pendingStyles[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){Object.keys(e._styleSummary).forEach((t=>{const s=this._styleSummary[t],n=e._styleSummary[t];(!s||n.time>s.time)&&this._updateStyle(t,n.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=L(o,!0);Object.keys(l).forEach((i=>{const r=l[i];r==n?e.add(i):r==s&&t.add(i)})),i||(l.offset=a/this.duration),r.push(l)}));const o=e.size?W(e.values()):[],a=t.size?W(t.values()):[];if(i){const e=r[0],t=x(e);e.offset=0,t.offset=1,r=[e,t]}return ae(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class fe extends de{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=L(e[0],!1);a.offset=0,i.push(a);const l=L(e[0],!1);l.offset=ge(o),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=L(e[n],!1);const a=t+o.offset*s;o.offset=ge(a/r),i.push(o)}s=r,t=0,n="",e=i}return ae(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ge(e,t=3){const s=Math.pow(10,t-1);return Math.round(e*s)/s}class _e{constructor(e,t){this._driver=e;const s=[],n=[],i=te(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)?q(t):t,o=Array.isArray(s)?q(s):s,a=[];i=i||new le;const h=ue(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 Se{}class ve{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}class Ee extends Se{normalizePropertyName(e,t){return V(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Te[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 Te=function(e){const t={};return e.forEach((e=>t[e]=!0)),t}("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".split(","));function we(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 be={};class ke{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){const n=this._stateStyles["*"],i=this._stateStyles[e],r=n?n.buildStyles(t,s):{};return i?i.buildStyles(t,s):r}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||be,m=o&&o.params||be,y=this.buildStyles(s,m,c),p=a&&a.params||be,d=this.buildStyles(n,p,c),g=new Set,_=new Map,S=new Map,v="void"===n,E={params:{...u,...p}},T=h?[]:ue(e,t,this.ast.animation,i,r,y,d,E,l,c);let w=0;if(T.forEach((e=>{w=Math.max(e.duration+e.delay,w)})),c.length)return we(t,this._triggerName,s,n,v,y,d,[],[],_,S,w,c);T.forEach((e=>{const s=e.element,n=f(_,s,{});e.preStyleProps.forEach((e=>n[e]=!0));const i=f(S,s,{});e.postStyleProps.forEach((e=>i[e]=!0)),s!==t&&g.add(s)}));const b=W(g.values());return we(t,this._triggerName,s,n,v,y,d,T,b,_,S,w)}}class Pe{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s={},n=x(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!=s&&(n[t]=s)})),this.styles.styles.forEach((e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach((e=>{let r=i[e];r.length>1&&(r=j(r,n,t));const o=this.normalizer.normalizePropertyName(e,t);r=this.normalizer.normalizeStyleValue(e,o,r,t),s[o]=r}))}})),s}}class Ne{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states={},t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new Pe(e.style,t,s)})),Ae(this.states,"true","1"),Ae(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new ke(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new ke(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 Ae(e,t,s){e.hasOwnProperty(t)?e.hasOwnProperty(s)||(e[s]=e[t]):e.hasOwnProperty(s)&&(e[t]=e[s])}const Ce=new le;class Fe{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations={},this._playersById={},this.players=[]}register(e,t){const s=[],n=[],i=te(this._driver,t,s,n);if(s.length)throw new l(3503,!1);this._animations[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[e];let o;const a=new Map;if(r?(o=ue(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Ce,i),o.forEach((e=>{const t=f(a,e.element,{});e.postStyleProps.forEach((e=>t[e]=null))}))):(i.push(new l(3300,!1)),o=[]),i.length)throw new l(3504,!1);a.forEach(((e,t)=>{Object.keys(e).forEach((n=>{e[n]=this._driver.computeStyle(t,n,s)}))}));const h=u(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,{},t)})));return this._playersById[e]=h,h.onDestroy((()=>this.destroy(e))),this.players.push(h),h}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new l(3301,!1);return t}listen(e,t,s,n){const i=d(t,"","","");return y(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 Oe=[],xe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Le{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 De=new Le("void");class Re{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,je(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.hasOwnProperty(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,{});return a.hasOwnProperty(t)||(je(e,"ng-trigger"),je(e,"ng-trigger-"+t),a[t]=De),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete a[t]}))}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new l(3401,!1);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Be(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(je(e,"ng-trigger"),je(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Le(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=De);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((()=>{B(e,s),Q(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||(je(e,"ng-animate-queued"),r.onStart((()=>{We(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){delete this._triggers[e],this._engine.statesByElement.forEach(((t,s)=>{delete t[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(Object.keys(i).forEach((t=>{if(r.set(t,i[t].value),this._triggers[t]){const s=this.trigger(e,t,"void",n);s&&o.push(s)}})),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[i].fallbackTransition,o=s[i]||De,a=new Le("void"),l=new Be(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!==xe||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){je(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=d(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,y(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 Qe{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 Re(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,i=s.length-1;if(i>=0){let r=!1;if(void 0!==this.driver.getParentElement){let i=this.driver.getParentElement(t);for(;i;){const t=n.get(i);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}}else for(let n=i;n>=0;n--){const i=s[n];if(this.driver.containsElement(i.hostElement,t)){s.splice(n+1,0,e),r=!0;break}}r||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){const e=Object.keys(s);for(let n=0;n<e.length;n++){const i=s[e[n]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,s,n){if(Ie(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ie(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),je(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),We(e,"ng-animate-disabled"))}removeNode(e,t,s,n){if(Ie(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 Ie(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=xe,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++){je(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 le,r=[],o=new Map,a=[],h=new Map,c=new Map,m=new Map,y=new Set;this.disabledNodes.forEach((e=>{y.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)y.add(t[e])}));const p=this.bodyNode,d=Array.from(this.statesByElement.keys()),g=Me(d,this.collectedEnterElements),_=new Map;let S=0;g.forEach(((e,t)=>{const s="ng-enter"+S++;_.set(t,s),e.forEach((e=>je(e,s)))}));const v=[],E=new Set,T=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))):T.add(t))}const w=new Map,b=Me(d,Array.from(E));b.forEach(((e,t)=>{const s="ng-leave"+S++;w.set(t,s),e.forEach((e=>je(e,s)))})),e.push((()=>{g.forEach(((e,t)=>{const s=_.get(t);e.forEach((e=>We(e,s)))})),b.forEach(((e,t)=>{const s=w.get(t);e.forEach((e=>We(e,s)))})),v.forEach((e=>{this.processLeaveNode(e)}))}));const k=[],P=[];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);s&&s[e.triggerName]&&(s[e.triggerName].value=t)}return void t.destroy()}}const n=!p||!this.driver.containsElement(p,s),o=w.get(s),l=_.get(s),u=this._buildInstruction(e,i,l,o,n);if(u.errors&&u.errors.length)return void P.push(u);if(n)return t.onStart((()=>B(s,u.fromStyles))),t.onDestroy((()=>Q(s,u.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>B(s,u.fromStyles))),t.onDestroy((()=>Q(s,u.toStyles))),void r.push(t);const y=[];u.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||y.push(e)})),u.timelines=y,i.append(s,u.timelines);const d={instruction:u,player:t,element:s};a.push(d),u.queriedElements.forEach((e=>f(h,e,[]).push(t))),u.preStyleProps.forEach(((e,t)=>{const s=Object.keys(e);if(s.length){let e=c.get(t);e||c.set(t,e=new Set),s.forEach((t=>e.add(t)))}})),u.postStyleProps.forEach(((e,t)=>{const s=Object.keys(e);let n=m.get(t);n||m.set(t,n=new Set),s.forEach((e=>n.add(e)))}))}))}if(P.length){const e=[];P.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,!1)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const N=new Map,A=new Map;a.forEach((e=>{const t=e.element;i.has(t)&&(A.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,N))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{f(N,t,[]).push(e),e.destroy()}))}));const C=v.filter((e=>$e(e,c,m))),F=new Map;ze(F,this.driver,T,m,s).forEach((e=>{$e(e,c,m)&&C.push(e)}));const O=new Map;g.forEach(((e,t)=>{ze(O,this.driver,new Set(e),c,n)})),C.forEach((e=>{const t=F.get(e),s=O.get(e);F.set(e,{...t,...s})}));const x=[],q=[],L={};a.forEach((e=>{const{element:t,player:s,instruction:n}=e;if(i.has(t)){if(y.has(t))return s.onDestroy((()=>Q(t,n.toStyles))),s.disabled=!0,s.overrideTotalTime(n.totalTime),void r.push(s);let e=L;if(A.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=A.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>A.set(t,e)))}const i=this._buildAnimation(s.namespaceId,n,N,o,O,F);if(s.setRealPlayer(i),e===L)x.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=u(t)),r.push(s)}}else B(t,n.fromStyles),s.onDestroy((()=>Q(t,n.toStyles))),q.push(s),y.has(t)&&r.push(s)})),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(We(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?He(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)}))}B(i,t.fromStyles)}_buildAnimation(t,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,y=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 d=u!==l,f=function(e){const t=[];return Ve(e,t),t}((n.get(u)||Oe).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&&y.add(u),d){const e=new Be(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;if(e instanceof Map){if(n=e.get(t),n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}}else if(n=e[t],n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&delete e[t]}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>je(e,"ng-animating")));const d=u(p);return d.onDestroy((()=>{c.forEach((e=>We(e,"ng-animating"))),Q(l,s.toStyles)})),y.forEach((e=>{f(i,e,[]).push(d)})),d}_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 Be{constructor(t,s,n){this.namespaceId=t,this.triggerName=s,this.element=n,this._player=new e,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((t=>{this._queuedCallbacks[t].forEach((s=>y(e,t,void 0,s)))})),this._queuedCallbacks={},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 Ie(e){return e&&1===e.nodeType}function Ke(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function ze(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ke(e))));const o=[];n.forEach(((s,n)=>{const r={};s.forEach((e=>{const s=r[e]=t.computeStyle(n,e,i);s&&0!=s.length||(n.__ng_removed=qe,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ke(e,r[a++]))),o}function Me(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 je(e,t){e.classList?.add(t)}function We(e,t){e.classList?.remove(t)}function He(e,t,s){u(s).onDone((()=>e.processLeaveNode(t)))}function Ve(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof i?Ve(n.players,t):t.push(n)}}function $e(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 Ge{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Qe(e,t,s),this._timelineEngine=new Fe(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=te(this._driver,i,e,t);if(e.length)throw new l(3404,!1);t.length,o=function(e,t,s){return new Ne(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 Ue{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=Ue.initialStylesByElement.get(e);n||Ue.initialStylesByElement.set(e,n={}),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ue.initialStylesByElement.delete(this._element),this._startStyles&&(B(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}function Ze(e){let t=null;const s=Object.keys(e);for(let n=0;n<s.length;n++){const i=s[n];Je(i)&&(t=t||{},t[i]=e[i])}return t}function Je(e){return"display"===e||"position"===e}Ue.initialStylesByElement=new WeakMap;class Xe{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.time=0,this.parentPlayer=null,this.currentSnapshot={},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]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,s){return e.animate(t,s)}onStart(e){this._onStartFns.push(e)}onDone(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}_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={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach((s=>{"offset"!=s&&(e[s]=this._finished?t[s]:U(this.element,s))}))}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((e=>e())),t.length=0}}class Ye{validateStyleProperty(e){return b(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return E(e)}query(e,t,s){return P(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={},l=r.filter((e=>e instanceof Xe));$(s,n)&&l.forEach((e=>{let t=e.currentSnapshot;Object.keys(t).forEach((e=>a[e]=t[e]))}));const h=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=Ze(t[0]),t.length>1&&(n=Ze(t[t.length-1]))):t&&(s=Ze(t)),s||n?new Ue(e,s,n):null}(e,t=function(e,t,s){const n=Object.keys(s);if(n.length&&t.length){let r=t[0],o=[];if(n.forEach((e=>{r.hasOwnProperty(e)||o.push(e),r[e]=s[e]})),o.length)for(var i=1;i<t.length;i++){let s=t[i];o.forEach((function(t){s[t]=U(e,t)}))}}return t}(e,t=t.map((e=>L(e,!1))),a));return new Xe(e,t,o,h)}}export{A as AnimationDriver,_e as ɵAnimation,Ge as ɵAnimationEngine,Se as ɵAnimationStyleNormalizer,N as ɵNoopAnimationDriver,ve as ɵNoopAnimationStyleNormalizer,Ye as ɵWebAnimationsDriver,Xe as ɵWebAnimationsPlayer,Ee as ɵWebAnimationsStyleNormalizer,$ as ɵallowPreviousPlayerStylesMerge,k as ɵcontainsElement,E as ɵgetParentElement,P as ɵinvokeQuery,b as ɵvalidateStyleProperty}; | ||
/* esm-bundle - @angular/animations/browser@14.0.2 - 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,false)}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:M(parseFloat(t[1]),t[2])}function M(e,t){switch(t){case"s":return 1e3*e;default:return e}}function x(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=M(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=M(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 F(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 L(e){return e.length?e[0]instanceof Map?e:e.map((e=>z(e))):[]}function q(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>D(e,t))):D(e,t),t}function D(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(x(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=x(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"}:x(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,this.nonAnimatableCSSPropertiesFound=new Set}}function ae(e){var t;return e?(e=F(e)).params&&(e.params=(t=e.params)?F(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 x(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 D(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=D(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=D(e[0]);a.set("offset",0),i.push(a);const l=D(e[0]);l.set("offset",Se(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=D(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)?q(t):t,o=Array.isArray(s)?q(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=F(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=F(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 Me{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))})),xe(this.states,"true","1"),xe(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 xe(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 Fe=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,Fe,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 Le=[],qe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},De={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=F(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!==qe||(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=qe,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))),M=new Map;je(M,this.driver,w,m,s).forEach((e=>{Ze(e,c,m)&&C.push(e)}));const x=new Map;g.forEach(((e,t)=>{je(x,this.driver,new Set(e),c,n)})),C.forEach((e=>{const t=M.get(e),s=x.get(e);M.set(e,new Map([...Array.from(t?.entries()??[]),...Array.from(s?.entries()??[])]))}));const F=[],z=[],L={};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=L;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,x,M);if(s.setRealPlayer(i),e===L)F.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,F.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),F}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)||Le).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=De,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 Me(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.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._onStartFns.push(e)}onDone(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}_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=L(t).map((e=>D(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,L as ɵnormalizeKeyframes,T as ɵvalidateStyleProperty}; | ||
//# sourceMappingURL=angular-browser.min.js.map |
{ | ||
"name": "@esm-bundle/angular__animations", | ||
"version": "13.3.5", | ||
"version": "14.0.2", | ||
"description": "ESM and SystemJS versions of @angular/animations", | ||
@@ -49,22 +49,22 @@ "type": "module", | ||
"devDependencies": { | ||
"@angular/animations": "13.3.5", | ||
"@angular/compiler": "13.3.5", | ||
"@angular/compiler-cli": "13.3.5", | ||
"@angular/core": "13.3.5", | ||
"@angular/animations": "14.0.2", | ||
"@angular/compiler": "14.0.2", | ||
"@angular/compiler-cli": "14.0.2", | ||
"@angular/core": "14.0.2", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"concurrently": "7.1.0", | ||
"husky": "7.0.4", | ||
"karma": "6.3.19", | ||
"concurrently": "7.2.2", | ||
"husky": "8.0.1", | ||
"karma": "6.4.0", | ||
"karma-firefox-launcher": "2.1.2", | ||
"karma-jasmine": "5.0.0", | ||
"karma-jasmine": "5.1.0", | ||
"pinst": "3.0.0", | ||
"prettier": "2.6.2", | ||
"prettier": "2.7.1", | ||
"pretty-quick": "3.1.3", | ||
"release-it": "14.14.2", | ||
"release-it-plugin-esm-bundle": "2.1.0", | ||
"release-it": "15.0.0", | ||
"release-it-plugin-esm-bundle": "3.0.0", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.70.2", | ||
"rollup": "2.75.6", | ||
"rollup-plugin-terser": "7.0.2", | ||
"typescript": "4.6.4" | ||
"typescript": "4.7.4" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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 v13.3.5 | ||
* @license Angular v14.0.2 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -255,3 +255,3 @@ * License: MIT | ||
type: 7 | ||
/* Trigger */ | ||
/* AnimationMetadataType.Trigger */ | ||
, | ||
@@ -326,3 +326,3 @@ name, | ||
type: 4 | ||
/* Animate */ | ||
/* AnimationMetadataType.Animate */ | ||
, | ||
@@ -371,3 +371,3 @@ styles, | ||
type: 3 | ||
/* Group */ | ||
/* AnimationMetadataType.Group */ | ||
, | ||
@@ -416,3 +416,3 @@ steps, | ||
type: 2 | ||
/* Sequence */ | ||
/* AnimationMetadataType.Sequence */ | ||
, | ||
@@ -467,3 +467,3 @@ steps, | ||
type: 6 | ||
/* Style */ | ||
/* AnimationMetadataType.Style */ | ||
, | ||
@@ -508,3 +508,3 @@ styles: tokens, | ||
type: 0 | ||
/* State */ | ||
/* AnimationMetadataType.State */ | ||
, | ||
@@ -566,3 +566,3 @@ name, | ||
type: 5 | ||
/* Keyframes */ | ||
/* AnimationMetadataType.Keyframes */ | ||
, | ||
@@ -723,3 +723,3 @@ steps | ||
type: 1 | ||
/* Transition */ | ||
/* AnimationMetadataType.Transition */ | ||
, | ||
@@ -781,3 +781,3 @@ expr: stateChangeExpr, | ||
type: 8 | ||
/* Reference */ | ||
/* AnimationMetadataType.Reference */ | ||
, | ||
@@ -812,3 +812,3 @@ animation: steps, | ||
type: 9 | ||
/* AnimateChild */ | ||
/* AnimationMetadataType.AnimateChild */ | ||
, | ||
@@ -833,3 +833,3 @@ options | ||
type: 10 | ||
/* AnimateRef */ | ||
/* AnimationMetadataType.AnimateRef */ | ||
, | ||
@@ -965,3 +965,3 @@ animation, | ||
type: 11 | ||
/* Query */ | ||
/* AnimationMetadataType.Query */ | ||
, | ||
@@ -1058,3 +1058,3 @@ selector, | ||
type: 12 | ||
/* Stagger */ | ||
/* AnimationMetadataType.Stagger */ | ||
, | ||
@@ -1061,0 +1061,0 @@ timings, |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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._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._onStartFns.push(t)}onDone(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}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@13.3.5 - 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:ee,ɵgetParentElement:T,ɵvalidateStyleProperty:P});const h=!1;function c(e){return new l(3e3,h)}function u(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function m(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function y(e,t,s,r,o={},a={}){const c=[],u=[];let m=-1,y=null;if(r.forEach((e=>{const s=e.offset,r=s==m,l=r&&y||{};Object.keys(e).forEach((s=>{let r=s,h=e[s];if("offset"!==s)switch(r=t.normalizePropertyName(r,c),h){case i:h=o[s];break;case n:h=a[s];break;default:h=t.normalizeStyleValue(s,r,h,c)}l[r]=h})),r||u.push(l),y=l,m=s})),c.length)throw new l(3502,h);return u}function p(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&d(s,"start",e))));break;case"done":e.onDone((()=>n(s&&d(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&d(s,"destroy",e))))}}function d(e,t,s){const n=s.totalTime,i=!!s.disabled,r=f(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 f(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function g(e,t,s){let n;return e instanceof Map?(n=e.get(t),n||e.set(t,n=s)):(n=e[t],n||(n=e[t]=s)),n}function _(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let S=(e,t)=>!1,E=(e,t,s)=>[],v=null;function T(e){const t=e.parentNode||e.host;return t===v?null:t}(u()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?S=(e,t)=>e.contains(t):(v=(()=>document.documentElement)(),S=(e,t)=>{for(;t;){if(t===e)return!0;t=T(t)}return!1}),E=(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 P(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.substr(1)in w.style}return t}const k=e("ɵcontainsElement",S),N=e("ɵinvokeQuery",E);class A{validateStyleProperty(e){return P(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return T(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 C{}e("AnimationDriver",C),C.NOOP=new A;const O="ng-enter",F="ng-leave",L="ng-trigger",x=".ng-trigger",q="ng-animating",D=".ng-animating";function R(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 B(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(c()),{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,h)),e=!0),r<0&&(t.push(new l(3101,h)),e=!0),e&&t.splice(s,0,c())}return{duration:i,delay:r,easing:o}}(e,t,s)}function I(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function K(e){const t={};return Array.isArray(e)?e.forEach((e=>j(e,!1,t))):j(e,!1,t),t}function j(e,t,s={}){if(t)for(let t in e)s[t]=e[t];else I(e,s);return s}function z(e,t,s){return s?t+":"+s+";":""}function M(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=z(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=z(0,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[s])}e.setAttribute("style",t)}function W(e,t,s){e.style&&(Object.keys(t).forEach((n=>{const i=X(n);s&&!s.hasOwnProperty(n)&&(s[n]=e.style[i]),e.style[i]=t[n]})),u()&&M(e))}function H(e,t){e.style&&(Object.keys(t).forEach((t=>{const s=X(t);e.style[s]=""})),u()&&M(e))}function V(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function $(e,t,s){const n=t.params||{},i=U(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,h))}))}const G=new RegExp("{{\\s*(.+?)\\s*}}","g");function U(e){let t=[];if("string"==typeof e){let s;for(;s=G.exec(e);)t.push(s[1]);G.lastIndex=0}return t}function Y(e,t,s){const n=e.toString(),i=n.replace(G,((e,n)=>{let i=t[n];return t.hasOwnProperty(n)||(s.push(new l(3003,h)),i=""),i.toString()}));return i==n?e:i}function Z(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const J=/-+([a-z0-9])/g;function X(e){return e.replace(J,((...e)=>e[1].toUpperCase()))}function ee(e,t){return 0===e||0===t}function te(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,h)}}function se(e,t){return window.getComputedStyle(e)[t]}const ne="*";function ie(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,h)),"* => *"}}(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,h)),t;const i=n[1],r=n[2],o=n[3];t.push(ae(i,o));const a=i==ne&&o==ne;"<"!=r[0]||a||t.push(ae(o,i))}(e,s,t))):s.push(e),s}const re=new Set(["true","1"]),oe=new Set(["false","0"]);function ae(e,t){const s=re.has(e)||oe.has(e),n=re.has(t)||oe.has(t);return(i,r)=>{let o=e==ne||e==i,a=t==ne||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?re.has(e):oe.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?re.has(t):oe.has(t)),o&&a}}const le=":self",he=new RegExp("s*:selfs*,?","g");function ce(e,t,s,n){return new ue(e).build(t,s,n)}class ue{constructor(e){this._driver=e}build(e,t,s){const n=new me(t);this._resetContextStyleTimingState(n);const i=te(this,V(e),n);return n.unsupportedCSSPropertiesFound.size&&n.unsupportedCSSPropertiesFound.keys(),i}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},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,h)),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,h))})),{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=>{if(ye(e)){const t=e;Object.keys(t).forEach((e=>{U(t[e]).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))}})),i.size){Z(i.values());t.errors.push((e.name,new l(3008,h)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=te(this,V(e.animation),t);return{type:1,matchers:ie(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:pe(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>te(this,e,t))),options:pe(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=te(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:pe(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return de(B(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=de(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=B(s,t);return de(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=[];Array.isArray(e.styles)?e.styles.forEach((e=>{"string"==typeof e?e==n?s.push(e):t.errors.push(new l(3002,h)):s.push(e)})):s.push(e.styles);let i=!1,r=null;return s.forEach((e=>{if(ye(e)){const t=e,s=t.easing;if(s&&(r=s,delete t.easing),!i)for(let e in t){if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}})),{type:6,styles:s,easing:r,offset:e.offset,containsDynamicStyles:i,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&&Object.keys(e).forEach((s=>{if(!this._driver.validateStyleProperty(s))return delete e[s],void t.unsupportedCSSPropertiesFound.add(s);const r=t.collectedStyles[t.currentQuerySelector],o=r[s];let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,h))),a=!1),i=o.startTime),a&&(r[s]={startTime:i,endTime:n}),t.options&&$(e[s],t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,h)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const c=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(ye(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.offset}}));else if(ye(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.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,h)),r&&t.errors.push(new l(3200,h));const u=e.steps.length;let m=0;n>0&&n<u?t.errors.push(new l(3202,h)):0==n&&(m=1/(u-1));const y=u-1,p=t.currentTime,d=t.currentAnimateTimings,f=d.duration;return c.forEach(((e,n)=>{const r=m>0?n==y?1:m*n:i[n],o=r*f;t.currentTime=p+d.delay+o,d.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:te(this,V(e.animation),t),options:pe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:pe(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:pe(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==le));t&&(e=e.replace(he,""));return[e=e.replace(/@\*/g,x).replace(/@\w+/g,(e=>".ng-trigger-"+e.substr(1))).replace(/:animating/g,D),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,g(t.collectedStyles,t.currentQuerySelector,{});const o=te(this,V(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:pe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,h));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:B(e.timings,t.errors,!0);return{type:12,animation:te(this,V(e.animation),t),timings:s,options:null}}}class me{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={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ye(e){return!Array.isArray(e)&&"object"==typeof e}function pe(e){var t;return e?(e=I(e)).params&&(e.params=(t=e.params)?I(t):null):e={},e}function de(e,t,s){return{duration:e,delay:t,easing:s}}function fe(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 ge{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 _e=new RegExp(":enter","g"),Se=new RegExp(":leave","g");function Ee(e,t,s,n,i,r={},o={},a,l,h=[]){return(new ve).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class ve{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new ge;const c=new we(e,t,l,n,i,h,[]);c.options=a,c.currentTimeline.setStyles([r],null,c.errors,a),te(this,s,c);const u=c.timelines.filter((e=>e.containsAnimation()));if(Object.keys(o).length){let e;for(let s=u.length-1;s>=0;s--){const n=u[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return u.length?u.map((e=>e.buildKeyframes())):[fe(t,[],[],[],0,0,"",!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?R(s.duration):null,r=null!=s.delay?R(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),te(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=Te);const e=R(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>te(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?R(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),te(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 B(t.params?Y(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.getCurrentStyleProperties().length&&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?R(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Te);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),te(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;te(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const Te={};class we{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=Te,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new be(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=R(s.duration)),null!=s.delay&&(n.delay=R(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]=Y(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 we(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=Te,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 Pe(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(_e,"."+this._enterClassName)).replace(Se,"."+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,h)),o}}class be{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new be(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=Object.create(this._backFill,{}),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[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((e=>{this._backFill[e]=this._globalTimelineStyles[e]||n,this._currentKeyframe[e]=n})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},o=function(e,t){const s={};let i;return e.forEach((e=>{"*"===e?(i=i||Object.keys(t),i.forEach((e=>{s[e]=n}))):j(e,!1,s)})),s}(e,this._globalTimelineStyles);Object.keys(o).forEach((e=>{const t=Y(o[e],r,s);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:n),this._updateStyle(e,t)}))}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach((t=>{const s=e[t];this._currentKeyframe[t]=s})),Object.keys(this._localTimelineStyles).forEach((e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((e=>{const t=this._localTimelineStyles[e];this._pendingStyles[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){Object.keys(e._styleSummary).forEach((t=>{const s=this._styleSummary[t],n=e._styleSummary[t];(!s||n.time>s.time)&&this._updateStyle(t,n.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=j(o,!0);Object.keys(l).forEach((s=>{const r=l[s];r==i?e.add(s):r==n&&t.add(s)})),s||(l.offset=a/this.duration),r.push(l)}));const o=e.size?Z(e.values()):[],a=t.size?Z(t.values()):[];if(s){const e=r[0],t=I(e);e.offset=0,t.offset=1,r=[e,t]}return fe(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Pe extends be{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=j(e[0],!1);a.offset=0,i.push(a);const l=j(e[0],!1);l.offset=ke(o),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=j(e[n],!1);const a=t+o.offset*s;o.offset=ke(a/r),i.push(o)}s=r,t=0,n="",e=i}return fe(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ke(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=ce(e,t,s,n);if(s.length)throw new l(3500,h);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?K(t):t,o=Array.isArray(s)?K(s):s,a=[];i=i||new ge;const c=Ee(this._driver,e,this._animationAst,O,F,r,o,n,i,a);if(a.length)throw new l(3501,h);return c}});class Ne{}e("ɵAnimationStyleNormalizer",Ne);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});e("ɵWebAnimationsStyleNormalizer",class extends Ne{normalizePropertyName(e,t){return X(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Ae[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,h))}return r+i}});const Ae=function(e){const t={};return e.forEach((e=>t[e]=!0)),t}("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".split(","));function Ce(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 Oe={};class Fe{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){const n=this._stateStyles["*"],i=this._stateStyles[e],r=n?n.buildStyles(t,s):{};return i?i.buildStyles(t,s):r}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Oe,m=o&&o.params||Oe,y=this.buildStyles(s,m,c),p=a&&a.params||Oe,d=this.buildStyles(n,p,c),f=new Set,_=new Map,S=new Map,E="void"===n,v={params:Object.assign(Object.assign({},u),p)},T=h?[]:Ee(e,t,this.ast.animation,i,r,y,d,v,l,c);let w=0;if(T.forEach((e=>{w=Math.max(e.duration+e.delay,w)})),c.length)return Ce(t,this._triggerName,s,n,E,y,d,[],[],_,S,w,c);T.forEach((e=>{const s=e.element,n=g(_,s,{});e.preStyleProps.forEach((e=>n[e]=!0));const i=g(S,s,{});e.postStyleProps.forEach((e=>i[e]=!0)),s!==t&&f.add(s)}));const b=Z(f.values());return Ce(t,this._triggerName,s,n,E,y,d,T,b,_,S,w)}}class Le{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s={},n=I(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!=s&&(n[t]=s)})),this.styles.styles.forEach((e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach((e=>{let r=i[e];r.length>1&&(r=Y(r,n,t));const o=this.normalizer.normalizePropertyName(e,t);r=this.normalizer.normalizeStyleValue(e,o,r,t),s[o]=r}))}})),s}}class xe{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states={},t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new Le(e.style,t,s)})),qe(this.states,"true","1"),qe(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Fe(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new Fe(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.hasOwnProperty(t)?e.hasOwnProperty(s)||(e[s]=e[t]):e.hasOwnProperty(s)&&(e[t]=e[s])}const De=new ge;class Re{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations={},this._playersById={},this.players=[]}register(e,t){const s=[],n=[],i=ce(this._driver,t,s,n);if(s.length)throw new l(3503,h);this._animations[e]=i}_buildPlayer(e,t,s){const n=e.element,i=y(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[e];let o;const a=new Map;if(r?(o=Ee(this._driver,t,r,O,F,{},{},s,De,i),o.forEach((e=>{const t=g(a,e.element,{});e.postStyleProps.forEach((e=>t[e]=null))}))):(i.push(new l(3300,h)),o=[]),i.length)throw new l(3504,h);a.forEach(((e,t)=>{Object.keys(e).forEach((s=>{e[s]=this._driver.computeStyle(t,s,n)}))}));const c=m(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,{},t)})));return this._playersById[e]=c,c.onDestroy((()=>this.destroy(e))),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new l(3301,h);return t}listen(e,t,s,n){const i=f(t,"","","");return p(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 Qe="ng-animate-queued",Be="ng-animate-disabled",Ie=[],Ke={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},je={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ze{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=I(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 Me="void",We=new ze(Me);class He{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Je(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.hasOwnProperty(t))throw new l(3302,h);if(null==s||0==s.length)throw new l(3303,h);if("start"!=(i=s)&&"done"!=i)throw new l(3400,h);var i;const r=g(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=g(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Je(e,L),Je(e,"ng-trigger-"+t),a[t]=We),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete a[t]}))}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new l(3401,h);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new $e(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Je(e,L),Je(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new ze(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=We);if(!(l.value===Me)&&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((()=>{H(e,s),W(e,n)}))}return}const h=g(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||(Je(e,Qe),r.onStart((()=>{Xe(e,Qe)}))),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){delete this._triggers[e],this._engine.statesByElement.forEach(((t,s)=>{delete t[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(Object.keys(i).forEach((t=>{if(r.set(t,i[t].value),this._triggers[t]){const s=this.trigger(e,t,Me,n);s&&o.push(s)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&m(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[i].fallbackTransition,o=s[i]||We,a=new ze(Me),l=new $e(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!==Ke||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Je(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=f(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,p(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 Ve{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 He(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,i=s.length-1;if(i>=0){let r=!1;if(void 0!==this.driver.getParentElement){let i=this.driver.getParentElement(t);for(;i;){const t=n.get(i);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}}else for(let n=i;n>=0;n--){const i=s[n];if(this.driver.containsElement(i.hostElement,t)){s.splice(n+1,0,e),r=!0;break}}r||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){const e=Object.keys(s);for(let n=0;n<e.length;n++){const i=s[e[n]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,s,n){if(Ge(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ge(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),Je(e,Be)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Xe(e,Be))}removeNode(e,t,s,n){if(Ge(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 Ge(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 m(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){var t;const s=e.__ng_removed;if(s&&s.setForRemoval){if(e.__ng_removed=Ke,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(Be))&&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++){Je(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?m(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,h)}_flushAnimations(e,t){const s=new ge,r=[],o=new Map,a=[],c=new Map,u=new Map,y=new Map,p=new Set;this.disabledNodes.forEach((e=>{p.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)p.add(t[e])}));const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),_=Ze(f,this.collectedEnterElements),S=new Map;let E=0;_.forEach(((e,t)=>{const s=O+E++;S.set(t,s),e.forEach((e=>Je(e,s)))}));const v=[],T=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),T.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>T.add(e))):w.add(t))}const b=new Map,P=Ze(f,Array.from(T));P.forEach(((e,t)=>{const s=F+E++;b.set(t,s),e.forEach((e=>Je(e,s)))})),e.push((()=>{_.forEach(((e,t)=>{const s=S.get(t);e.forEach((e=>Xe(e,s)))})),P.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>Xe(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);n&&n[e.triggerName]&&(n[e.triggerName].value=t)}return void t.destroy()}}const i=!d||!this.driver.containsElement(d,n),o=b.get(n),l=S.get(n),h=this._buildInstruction(e,s,l,o,i);if(h.errors&&h.errors.length)return void N.push(h);if(i)return t.onStart((()=>H(n,h.fromStyles))),t.onDestroy((()=>W(n,h.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>H(n,h.fromStyles))),t.onDestroy((()=>W(n,h.toStyles))),void r.push(t);const m=[];h.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||m.push(e)})),h.timelines=m,s.append(n,h.timelines);const p={instruction:h,player:t,element:n};a.push(p),h.queriedElements.forEach((e=>g(c,e,[]).push(t))),h.preStyleProps.forEach(((e,t)=>{const s=Object.keys(e);if(s.length){let e=u.get(t);e||u.set(t,e=new Set),s.forEach((t=>e.add(t)))}})),h.postStyleProps.forEach(((e,t)=>{const s=Object.keys(e);let n=y.get(t);n||y.set(t,n=new Set),s.forEach((e=>n.add(e)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,h)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const A=new Map,C=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(C.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=>{g(A,t,[]).push(e),e.destroy()}))}));const L=v.filter((e=>st(e,u,y))),x=new Map;Ye(x,this.driver,w,y,n).forEach((e=>{st(e,u,y)&&L.push(e)}));const q=new Map;_.forEach(((e,t)=>{Ye(q,this.driver,new Set(e),u,i)})),L.forEach((e=>{const t=x.get(e),s=q.get(e);x.set(e,Object.assign(Object.assign({},t),s))}));const R=[],Q=[],B={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(p.has(t))return n.onDestroy((()=>W(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=B;if(C.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=C.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>C.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,A,o,q,x);if(n.setRealPlayer(s),e===B)R.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=m(t)),r.push(n)}}else H(t,i.fromStyles),n.onDestroy((()=>W(t,i.toStyles))),Q.push(n),p.has(t)&&r.push(n)})),Q.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=m(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(Xe(t,F),s&&s.hasAnimation)continue;let n=[];if(c.size){let e=c.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=c.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?et(this,t,i):this.processLeaveNode(t)}return v.length=0,R.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),R}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==Me;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=g(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)}))}H(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,u=new Set,p=s.timelines.map((s=>{const m=s.element;c.add(m);const p=m.__ng_removed;if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const d=m!==l,f=function(e){const t=[];return tt(e,t),t}((n.get(m)||Ie).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===m})),g=r.get(m),_=o.get(m),S=y(this.driver,this._normalizer,0,s.keyframes,g,_),E=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&u.add(m),d){const t=new $e(e,a,m);t.setRealPlayer(E),h.push(t)}return E}));h.forEach((e=>{g(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n;if(e instanceof Map){if(n=e.get(t),n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}}else if(n=e[t],n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&delete e[t]}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Je(e,q)));const d=m(p);return d.onDestroy((()=>{c.forEach((e=>Xe(e,q))),W(l,s.toStyles)})),u.forEach((e=>{g(i,e,[]).push(d)})),d}_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 $e{constructor(e,s,n){this.namespaceId=e,this.triggerName=s,this.element=n,this._player=new t,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((t=>{this._queuedCallbacks[t].forEach((s=>p(e,t,void 0,s)))})),this._queuedCallbacks={},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){g(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 Ge(e){return e&&1===e.nodeType}function Ue(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Ye(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ue(e))));const o=[];n.forEach(((s,n)=>{const r={};s.forEach((e=>{const s=r[e]=t.computeStyle(n,e,i);s&&0!=s.length||(n.__ng_removed=je,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ue(e,r[a++]))),o}function Ze(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 Je(e,t){var s;null===(s=e.classList)||void 0===s||s.add(t)}function Xe(e,t){var s;null===(s=e.classList)||void 0===s||s.remove(t)}function et(e,t,s){m(s).onDone((()=>e.processLeaveNode(t)))}function tt(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?tt(n.players,t):t.push(n)}}function st(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 Ve(e,t,s),this._timelineEngine=new Re(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=ce(this._driver,i,e,t);if(e.length)throw new l(3404,h);t.length,o=function(e,t,s){return new xe(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]=_(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]=_(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 nt{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=nt.initialStylesByElement.get(e);n||nt.initialStylesByElement.set(e,n={}),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(nt.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}function it(e){let t=null;const s=Object.keys(e);for(let n=0;n<s.length;n++){const i=s[n];rt(i)&&(t=t||{},t[i]=e[i])}return t}function rt(e){return"display"===e||"position"===e}nt.initialStylesByElement=new WeakMap;class ot{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.time=0,this.parentPlayer=null,this.currentSnapshot={},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]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,s){return e.animate(t,s)}onStart(e){this._onStartFns.push(e)}onDone(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}_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={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach((s=>{"offset"!=s&&(e[s]=this._finished?t[s]:se(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",ot);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return P(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return T(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={},l=r.filter((e=>e instanceof ot));ee(s,n)&&l.forEach((e=>{let t=e.currentSnapshot;Object.keys(t).forEach((e=>a[e]=t[e]))}));const h=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=it(t[0]),t.length>1&&(n=it(t[t.length-1]))):t&&(s=it(t)),s||n?new nt(e,s,n):null}(e,t=function(e,t,s){const n=Object.keys(s);if(n.length&&t.length){let r=t[0],o=[];if(n.forEach((e=>{r.hasOwnProperty(e)||o.push(e),r[e]=s[e]})),o.length)for(var i=1;i<t.length;i++){let s=t[i];o.forEach((function(t){s[t]=se(e,t)}))}}return t}(e,t=t.map((e=>j(e,!1))),a));return new ot(e,t,o,h)}})}}})); | ||
/* esm-bundle - @angular/animations/browser@14.0.2 - 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:ne,ɵgetParentElement:w,ɵnormalizeKeyframes:I,ɵvalidateStyleProperty:k});const h=!1;function c(e){return new l(3e3,h)}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 u(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function m(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function d(e,t,s,r,o=new Map,a=new Map){const c=[],u=[];let m=-1,d=null;if(r.forEach((e=>{const s=e.get("offset"),r=s==m,l=r&&d||new Map;e.forEach(((e,s)=>{let r=s,h=e;if("offset"!==s)switch(r=t.normalizePropertyName(r,c),h){case i:h=o.get(s);break;case n:h=a.get(s);break;default:h=t.normalizeStyleValue(s,r,h,c)}l.set(r,h)})),r||u.push(l),d=l,m=s})),c.length)throw new l(3502,h);return u}function p(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&y(s,"start",e))));break;case"done":e.onDone((()=>n(s&&y(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&y(s,"destroy",e))))}}function y(e,t,s){const n=s.totalTime,i=!!s.disabled,r=f(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 f(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function g(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function _(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}let S=(e,t)=>!1,v=(e,t,s)=>[],E=null;function w(e){const t=e.parentNode||e.host;return t===E?null:t}(u()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?S=(e,t)=>e.contains(t):(E=(()=>document.documentElement)(),S=(e,t)=>{for(;t;){if(t===e)return!0;t=w(t)}return!1}),v=(e,t,s)=>{if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]});let b=null,T=!1;function k(e){b||(b=function(){if("undefined"!=typeof document)return document.body;return null}()||{},T=!!b.style&&"WebkitAppearance"in b.style);let t=!0;if(b.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in b.style,!t&&T)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in b.style}return t}const N=e("ɵcontainsElement",S),A=e("ɵinvokeQuery",v);class P{validateStyleProperty(e){return k(e)}matchesElement(e,t){return!1}containsElement(e,t){return N(e,t)}getParentElement(e){return w(e)}query(e,t,s){return A(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,s,n,i,r,o=[],a){return new t(n,i)}}e("ɵNoopAnimationDriver",P),P.ɵfac=function(e){return new(e||P)},P.ɵprov=a.ɵɵdefineInjectable({token:P,factory:P.ɵfac});class C{}e("AnimationDriver",C),C.NOOP=new P;const M="ng-enter",x="ng-leave",F="ng-trigger",z=".ng-trigger",L="ng-animating",q=".ng-animating";function D(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:R(parseFloat(t[1]),t[2])}function R(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Q(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(c()),{duration:0,delay:0,easing:""};i=R(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=R(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,h)),e=!0),r<0&&(t.push(new l(3101,h)),e=!0),e&&t.splice(s,0,c())}return{duration:i,delay:r,easing:o}}(e,t,s)}function B(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function K(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function I(e){return e.length?e[0]instanceof Map?e:e.map((e=>K(e))):[]}function O(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>W(e,t))):W(e,t),t}function W(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 j(e,t,s){return s?t+":"+s+";":""}function H(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=j(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=j(0,se(s),e.style[s])}e.setAttribute("style",t)}function V(e,t,s){e.style&&(t.forEach(((t,n)=>{const i=te(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t})),u()&&H(e))}function $(e,t){e.style&&(t.forEach(((t,s)=>{const n=te(s);e.style[n]=""})),u()&&H(e))}function G(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function U(e,t,s){const n=t.params||{},i=Z(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,h))}))}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(e){let t=[];if("string"==typeof e){let s;for(;s=Y.exec(e);)t.push(s[1]);Y.lastIndex=0}return t}function J(e,t,s){const n=e.toString(),i=n.replace(Y,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,h)),i=""),i.toString()}));return i==n?e:i}function X(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const ee=/-+([a-z0-9])/g;function te(e){return e.replace(ee,((...e)=>e[1].toUpperCase()))}function se(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ne(e,t){return 0===e||0===t}function ie(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,h)}}function re(e,t){return window.getComputedStyle(e)[t]}const oe="*";function ae(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,h)),"* => *"}}(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,h)),t;const i=n[1],r=n[2],o=n[3];t.push(ce(i,o));const a=i==oe&&o==oe;"<"!=r[0]||a||t.push(ce(o,i))}(e,s,t))):s.push(e),s}const le=new Set(["true","1"]),he=new Set(["false","0"]);function ce(e,t){const s=le.has(e)||he.has(e),n=le.has(t)||he.has(t);return(i,r)=>{let o=e==oe||e==i,a=t==oe||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?le.has(e):he.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?le.has(t):he.has(t)),o&&a}}const ue=":self",me=new RegExp("s*:selfs*,?","g");function de(e,t,s,n){return new pe(e).build(t,s,n)}class pe{constructor(e){this._driver=e}build(e,t,s){const n=new ye(t);this._resetContextStyleTimingState(n);return ie(this,G(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,h)),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,h))})),{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=>{Z(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){X(i.values());t.errors.push((e.name,new l(3008,h)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=ie(this,G(e.animation),t);return{type:1,matchers:ae(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>ie(this,e,t))),options:fe(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=ie(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:fe(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return ge(Q(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=ge(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=Q(s,t);return ge(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,h)):s.push(K(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,h))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&U(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,h)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const c=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,h)),r&&t.errors.push(new l(3200,h));const u=e.steps.length;let m=0;n>0&&n<u?t.errors.push(new l(3202,h)):0==n&&(m=1/(u-1));const d=u-1,p=t.currentTime,y=t.currentAnimateTimings,f=y.duration;return c.forEach(((e,n)=>{const r=m>0?n==d?1:m*n:i[n],o=r*f;t.currentTime=p+y.delay+o,y.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:ie(this,G(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:fe(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:fe(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==ue));t&&(e=e.replace(me,""));return[e=e.replace(/@\*/g,z).replace(/@\w+/g,(e=>".ng-trigger-"+e.slice(1))).replace(/:animating/g,q),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,g(t.collectedStyles,t.currentQuerySelector,new Map);const o=ie(this,G(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:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,h));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:Q(e.timings,t.errors,!0);return{type:12,animation:ie(this,G(e.animation),t),timings:s,options:null}}}class ye{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,this.nonAnimatableCSSPropertiesFound=new Set}}function fe(e){var t;return e?(e=B(e)).params&&(e.params=(t=e.params)?B(t):null):e={},e}function ge(e,t,s){return{duration:e,delay:t,easing:s}}function _e(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 Se{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 ve=new RegExp(":enter","g"),Ee=new RegExp(":leave","g");function we(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new be).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class be{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new Se;const c=new ke(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?D(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),ie(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())):[_e(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?D(s.duration):null,r=null!=s.delay?D(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),ie(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=Te);const e=D(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>ie(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?D(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),ie(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 Q(t.params?J(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?D(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Te);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),ie(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;ie(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const Te={};class ke{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=Te,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ne(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=D(s.duration)),null!=s.delay&&(n.delay=D(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]=J(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 ke(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=Te,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 Ae(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(ve,"."+this._enterClassName)).replace(Ee,"."+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,h)),o}}class Ne{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 Ne(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 W(e,s)})),s}(e,this._globalTimelineStyles);for(let[e,t]of o){const i=J(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=W(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?X(e.values()):[],a=t.size?X(t.values()):[];if(s){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return _e(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Ae extends Ne{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=W(e[0]);a.set("offset",0),i.push(a);const l=W(e[0]);l.set("offset",Pe(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=W(e[n]);const a=t+o.get("offset")*s;o.set("offset",Pe(a/r)),i.push(o)}s=r,t=0,n="",e=i}return _e(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function Pe(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=de(e,t,s,n);if(s.length)throw new l(3500,h);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?O(t):t,o=Array.isArray(s)?O(s):s,a=[];i=i||new Se;const c=we(this._driver,e,this._animationAst,M,x,r,o,n,i,a);if(a.length)throw new l(3501,h);return c}});class Ce{}e("ɵAnimationStyleNormalizer",Ce);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});const Me=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 xe(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 Ce{normalizePropertyName(e,t){return te(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Me.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,h))}return r+i}});const Fe={};class ze{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||Fe,d=o&&o.params||Fe,p=this.buildStyles(s,d,u),y=a&&a.params||Fe,f=this.buildStyles(n,y,u),_=new Set,S=new Map,v=new Map,E="void"===n,w={params:Le(y,m),delay:null===(c=this.ast.options)||void 0===c?void 0:c.delay},b=h?[]:we(e,t,this.ast.animation,i,r,p,f,w,l,u);let T=0;if(b.forEach((e=>{T=Math.max(e.duration+e.delay,T)})),u.length)return xe(t,this._triggerName,s,n,E,p,f,[],[],S,v,T,u);b.forEach((e=>{const s=e.element,n=g(S,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=g(v,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&_.add(s)}));const k=X(_.values());return xe(t,this._triggerName,s,n,E,p,f,b,k,S,v,T)}}function Le(e,t){const s=B(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class qe{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=B(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=J(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(r,e)}))})),s}}class De{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 qe(e.style,t,s))})),Re(this.states,"true","1"),Re(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new ze(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new ze(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 Re(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 Qe=new Se;class Be{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=de(this._driver,t,s,n);if(s.length)throw new l(3503,h);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=d(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=we(this._driver,t,r,M,x,new Map,new Map,s,Qe,i),o.forEach((e=>{const t=g(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,h)),o=[]),i.length)throw new l(3504,h);a.forEach(((e,t)=>{e.forEach(((s,i)=>{e.set(i,this._driver.computeStyle(t,i,n))}))}));const c=m(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,c),c.onDestroy((()=>this.destroy(e))),this.players.push(c),c}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,h);return t}listen(e,t,s,n){const i=f(t,"","","");return p(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 Ke="ng-animate-queued",Ie="ng-animate-disabled",Oe=[],We={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},je={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class He{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=B(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 Ve="void",$e=new He(Ve);class Ge{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,tt(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,h);if(null==s||0==s.length)throw new l(3303,h);if("start"!=(i=s)&&"done"!=i)throw new l(3400,h);var i;const r=g(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=g(this._engine.statesByElement,e,new Map);return a.has(t)||(tt(e,F),tt(e,"ng-trigger-"+t),a.set(t,$e)),()=>{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,h);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ye(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(tt(e,F),tt(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new He(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=$e);if(!(l.value===Ve)&&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((()=>{$(e,s),V(e,n)}))}return}const h=g(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||(tt(e,Ke),r.onStart((()=>{st(e,Ke)}))),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,z,!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,Ve,n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&m(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)||$e,a=new He(Ve),l=new Ye(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!==We||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){tt(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=f(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,p(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 Ue{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 Ge(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(Ze(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ze(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),tt(e,Ie)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),st(e,Ie))}removeNode(e,t,s,n){if(Ze(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 Ze(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,z,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,q,!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 m(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){var t;const s=e.__ng_removed;if(s&&s.setForRemoval){if(e.__ng_removed=We,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(Ie))&&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++){tt(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?m(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,h)}_flushAnimations(e,t){const s=new Se,r=[],o=new Map,a=[],c=new Map,u=new Map,d=new Map,p=new Set;this.disabledNodes.forEach((e=>{p.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)p.add(t[e])}));const y=this.bodyNode,f=Array.from(this.statesByElement.keys()),_=et(f,this.collectedEnterElements),S=new Map;let v=0;_.forEach(((e,t)=>{const s=M+v++;S.set(t,s),e.forEach((e=>tt(e,s)))}));const E=[],w=new Set,b=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t.__ng_removed;s&&s.setForRemoval&&(E.push(t),w.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>w.add(e))):b.add(t))}const T=new Map,k=et(f,Array.from(w));k.forEach(((e,t)=>{const s=x+v++;T.set(t,s),e.forEach((e=>tt(e,s)))})),e.push((()=>{_.forEach(((e,t)=>{const s=S.get(t);e.forEach((e=>st(e,s)))})),k.forEach(((e,t)=>{const s=T.get(t);e.forEach((e=>st(e,s)))})),E.forEach((e=>{this.processLeaveNode(e)}))}));const N=[],A=[];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(N.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=!y||!this.driver.containsElement(y,n),o=T.get(n),l=S.get(n),h=this._buildInstruction(e,s,l,o,i);if(h.errors&&h.errors.length)return void A.push(h);if(i)return t.onStart((()=>$(n,h.fromStyles))),t.onDestroy((()=>V(n,h.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>$(n,h.fromStyles))),t.onDestroy((()=>V(n,h.toStyles))),void r.push(t);const m=[];h.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||m.push(e)})),h.timelines=m,s.append(n,h.timelines);const p={instruction:h,player:t,element:n};a.push(p),h.queriedElements.forEach((e=>g(c,e,[]).push(t))),h.preStyleProps.forEach(((e,t)=>{if(e.size){let s=u.get(t);s||u.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),h.postStyleProps.forEach(((e,t)=>{let s=d.get(t);s||d.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(A.length){const e=[];A.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,h)))})),N.forEach((e=>e.destroy())),this.reportError(e)}const P=new Map,C=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(C.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{g(P,t,[]).push(e),e.destroy()}))}));const F=E.filter((e=>rt(e,u,d))),z=new Map;Xe(z,this.driver,b,d,n).forEach((e=>{rt(e,u,d)&&F.push(e)}));const L=new Map;_.forEach(((e,t)=>{Xe(L,this.driver,new Set(e),u,i)})),F.forEach((e=>{var t,s;const n=z.get(e),i=L.get(e);z.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 D=[],R=[],Q={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(p.has(t))return n.onDestroy((()=>V(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=Q;if(C.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=C.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>C.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,P,o,L,z);if(n.setRealPlayer(s),e===Q)D.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=m(t)),r.push(n)}}else $(t,i.fromStyles),n.onDestroy((()=>V(t,i.toStyles))),R.push(n),p.has(t)&&r.push(n)})),R.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=m(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<E.length;e++){const t=E[e],s=t.__ng_removed;if(st(t,x),s&&s.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,q,!0);for(let e=0;e<s.length;e++){let t=c.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?nt(this,t,i):this.processLeaveNode(t)}return E.length=0,D.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),D}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==Ve;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=g(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)}))}$(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,u=new Set,p=s.timelines.map((s=>{const m=s.element;c.add(m);const p=m.__ng_removed;if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const y=m!==l,f=function(e){const t=[];return it(e,t),t}((n.get(m)||Oe).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===m})),g=r.get(m),_=o.get(m),S=d(this.driver,this._normalizer,0,s.keyframes,g,_),v=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&u.add(m),y){const t=new Ye(e,a,m);t.setRealPlayer(v),h.push(t)}return v}));h.forEach((e=>{g(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=>tt(e,L)));const y=m(p);return y.onDestroy((()=>{c.forEach((e=>st(e,L))),V(l,s.toStyles)})),u.forEach((e=>{g(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 Ye{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=>p(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){g(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 Ze(e){return e&&1===e.nodeType}function Je(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Xe(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Je(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=je,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Je(e,r[a++]))),o}function et(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 tt(e,t){var s;null===(s=e.classList)||void 0===s||s.add(t)}function st(e,t){var s;null===(s=e.classList)||void 0===s||s.remove(t)}function nt(e,t,s){m(s).onDone((()=>e.processLeaveNode(t)))}function it(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?it(n.players,t):t.push(n)}}function rt(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 Ue(e,t,s),this._timelineEngine=new Be(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=de(this._driver,i,e,t);if(e.length)throw new l(3404,h);t.length,o=function(e,t,s){return new De(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]=_(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]=_(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 ot{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=ot.initialStylesByElement.get(e);n||ot.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ot.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}}function at(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}ot.initialStylesByElement=new WeakMap;class lt{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.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._onStartFns.push(e)}onDone(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}_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:re(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",lt);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return N(e,t)}getParentElement(e){return w(e)}query(e,t,s){return A(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 lt));ne(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=I(t).map((e=>W(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,re(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=at(t[0]),t.length>1&&(n=at(t[t.length-1]))):t instanceof Map&&(s=at(t)),s||n?new ot(e,s,n):null}(e,h);return new lt(e,h,o,c)}})}}})); | ||
//# sourceMappingURL=angular-browser.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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 v13.3.5 | ||
* @license Angular v14.0.2 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -255,3 +255,3 @@ * License: MIT | ||
type: 7 | ||
/* Trigger */ | ||
/* AnimationMetadataType.Trigger */ | ||
, | ||
@@ -326,3 +326,3 @@ name, | ||
type: 4 | ||
/* Animate */ | ||
/* AnimationMetadataType.Animate */ | ||
, | ||
@@ -371,3 +371,3 @@ styles, | ||
type: 3 | ||
/* Group */ | ||
/* AnimationMetadataType.Group */ | ||
, | ||
@@ -416,3 +416,3 @@ steps, | ||
type: 2 | ||
/* Sequence */ | ||
/* AnimationMetadataType.Sequence */ | ||
, | ||
@@ -467,3 +467,3 @@ steps, | ||
type: 6 | ||
/* Style */ | ||
/* AnimationMetadataType.Style */ | ||
, | ||
@@ -508,3 +508,3 @@ styles: tokens, | ||
type: 0 | ||
/* State */ | ||
/* AnimationMetadataType.State */ | ||
, | ||
@@ -566,3 +566,3 @@ name, | ||
type: 5 | ||
/* Keyframes */ | ||
/* AnimationMetadataType.Keyframes */ | ||
, | ||
@@ -723,3 +723,3 @@ steps | ||
type: 1 | ||
/* Transition */ | ||
/* AnimationMetadataType.Transition */ | ||
, | ||
@@ -781,3 +781,3 @@ expr: stateChangeExpr, | ||
type: 8 | ||
/* Reference */ | ||
/* AnimationMetadataType.Reference */ | ||
, | ||
@@ -812,3 +812,3 @@ animation: steps, | ||
type: 9 | ||
/* AnimateChild */ | ||
/* AnimationMetadataType.AnimateChild */ | ||
, | ||
@@ -833,3 +833,3 @@ options | ||
type: 10 | ||
/* AnimateRef */ | ||
/* AnimationMetadataType.AnimateRef */ | ||
, | ||
@@ -965,3 +965,3 @@ animation, | ||
type: 11 | ||
/* Query */ | ||
/* AnimationMetadataType.Query */ | ||
, | ||
@@ -1058,3 +1058,3 @@ selector, | ||
type: 12 | ||
/* Stagger */ | ||
/* AnimationMetadataType.Stagger */ | ||
, | ||
@@ -1061,0 +1061,0 @@ timings, |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.5 - 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.0.2 - 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._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._onStartFns.push(t)}onDone(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}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@13.3.5 - 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:ee,ɵgetParentElement:T,ɵvalidateStyleProperty:P});const h=!1;function c(e){return new l(3e3,h)}function u(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function m(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function y(e,t,s,r,o={},a={}){const c=[],u=[];let m=-1,y=null;if(r.forEach((e=>{const s=e.offset,r=s==m,l=r&&y||{};Object.keys(e).forEach((s=>{let r=s,h=e[s];if("offset"!==s)switch(r=t.normalizePropertyName(r,c),h){case i:h=o[s];break;case n:h=a[s];break;default:h=t.normalizeStyleValue(s,r,h,c)}l[r]=h})),r||u.push(l),y=l,m=s})),c.length)throw new l(3502,h);return u}function p(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&d(s,"start",e))));break;case"done":e.onDone((()=>n(s&&d(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&d(s,"destroy",e))))}}function d(e,t,s){const n=s.totalTime,i=!!s.disabled,r=f(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 f(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function g(e,t,s){let n;return e instanceof Map?(n=e.get(t),n||e.set(t,n=s)):(n=e[t],n||(n=e[t]=s)),n}function _(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let S=(e,t)=>!1,E=(e,t,s)=>[],v=null;function T(e){const t=e.parentNode||e.host;return t===v?null:t}(u()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?S=(e,t)=>e.contains(t):(v=(()=>document.documentElement)(),S=(e,t)=>{for(;t;){if(t===e)return!0;t=T(t)}return!1}),E=(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 P(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.substr(1)in w.style}return t}const k=e("ɵcontainsElement",S),N=e("ɵinvokeQuery",E);class A{validateStyleProperty(e){return P(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return T(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 C{}e("AnimationDriver",C),C.NOOP=new A;const F="ng-enter",O="ng-leave",L="ng-trigger",x=".ng-trigger",q="ng-animating",D=".ng-animating";function R(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 B(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(c()),{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,h)),e=!0),r<0&&(t.push(new l(3101,h)),e=!0),e&&t.splice(s,0,c())}return{duration:i,delay:r,easing:o}}(e,t,s)}function I(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function K(e){const t={};return Array.isArray(e)?e.forEach((e=>z(e,!1,t))):z(e,!1,t),t}function z(e,t,s={}){if(t)for(let t in e)s[t]=e[t];else I(e,s);return s}function M(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+=M(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=M(0,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[s])}e.setAttribute("style",t)}function W(e,t,s){e.style&&(Object.keys(t).forEach((n=>{const i=X(n);s&&!s.hasOwnProperty(n)&&(s[n]=e.style[i]),e.style[i]=t[n]})),u()&&j(e))}function H(e,t){e.style&&(Object.keys(t).forEach((t=>{const s=X(t);e.style[s]=""})),u()&&j(e))}function V(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function $(e,t,s){const n=t.params||{},i=U(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,h))}))}const G=new RegExp("{{\\s*(.+?)\\s*}}","g");function U(e){let t=[];if("string"==typeof e){let s;for(;s=G.exec(e);)t.push(s[1]);G.lastIndex=0}return t}function Y(e,t,s){const n=e.toString(),i=n.replace(G,((e,n)=>{let i=t[n];return t.hasOwnProperty(n)||(s.push(new l(3003,h)),i=""),i.toString()}));return i==n?e:i}function Z(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const J=/-+([a-z0-9])/g;function X(e){return e.replace(J,((...e)=>e[1].toUpperCase()))}function ee(e,t){return 0===e||0===t}function te(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,h)}}function se(e,t){return window.getComputedStyle(e)[t]}const ne="*";function ie(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,h)),"* => *"}}(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,h)),t;const i=n[1],r=n[2],o=n[3];t.push(ae(i,o));const a=i==ne&&o==ne;"<"!=r[0]||a||t.push(ae(o,i))}(e,s,t))):s.push(e),s}const re=new Set(["true","1"]),oe=new Set(["false","0"]);function ae(e,t){const s=re.has(e)||oe.has(e),n=re.has(t)||oe.has(t);return(i,r)=>{let o=e==ne||e==i,a=t==ne||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?re.has(e):oe.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?re.has(t):oe.has(t)),o&&a}}const le=":self",he=new RegExp("s*:selfs*,?","g");function ce(e,t,s,n){return new ue(e).build(t,s,n)}class ue{constructor(e){this._driver=e}build(e,t,s){const n=new me(t);this._resetContextStyleTimingState(n);const i=te(this,V(e),n);return n.unsupportedCSSPropertiesFound.size&&n.unsupportedCSSPropertiesFound.keys(),i}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},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,h)),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,h))})),{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=>{if(ye(e)){const t=e;Object.keys(t).forEach((e=>{U(t[e]).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))}})),i.size){Z(i.values());t.errors.push((e.name,new l(3008,h)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=te(this,V(e.animation),t);return{type:1,matchers:ie(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:pe(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>te(this,e,t))),options:pe(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=te(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:pe(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return de(B(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=de(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=B(s,t);return de(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=[];Array.isArray(e.styles)?e.styles.forEach((e=>{"string"==typeof e?e==n?s.push(e):t.errors.push(new l(3002,h)):s.push(e)})):s.push(e.styles);let i=!1,r=null;return s.forEach((e=>{if(ye(e)){const t=e,s=t.easing;if(s&&(r=s,delete t.easing),!i)for(let e in t){if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}})),{type:6,styles:s,easing:r,offset:e.offset,containsDynamicStyles:i,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&&Object.keys(e).forEach((s=>{if(!this._driver.validateStyleProperty(s))return delete e[s],void t.unsupportedCSSPropertiesFound.add(s);const r=t.collectedStyles[t.currentQuerySelector],o=r[s];let a=!0;o&&(i!=n&&i>=o.startTime&&n<=o.endTime&&(t.errors.push((o.startTime,o.endTime,new l(3010,h))),a=!1),i=o.startTime),a&&(r[s]={startTime:i,endTime:n}),t.options&&$(e[s],t.options,t.errors)}))}))}visitKeyframes(e,t){const s={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(new l(3011,h)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const c=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(ye(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.offset}}));else if(ye(e)&&e.hasOwnProperty("offset")){const s=e;t=parseFloat(s.offset),delete s.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,h)),r&&t.errors.push(new l(3200,h));const u=e.steps.length;let m=0;n>0&&n<u?t.errors.push(new l(3202,h)):0==n&&(m=1/(u-1));const y=u-1,p=t.currentTime,d=t.currentAnimateTimings,f=d.duration;return c.forEach(((e,n)=>{const r=m>0?n==y?1:m*n:i[n],o=r*f;t.currentTime=p+d.delay+o,d.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:te(this,V(e.animation),t),options:pe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:pe(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:pe(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==le));t&&(e=e.replace(he,""));return[e=e.replace(/@\*/g,x).replace(/@\w+/g,(e=>".ng-trigger-"+e.substr(1))).replace(/:animating/g,D),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,g(t.collectedStyles,t.currentQuerySelector,{});const o=te(this,V(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:pe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,h));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:B(e.timings,t.errors,!0);return{type:12,animation:te(this,V(e.animation),t),timings:s,options:null}}}class me{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={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ye(e){return!Array.isArray(e)&&"object"==typeof e}function pe(e){var t;return e?(e=I(e)).params&&(e.params=(t=e.params)?I(t):null):e={},e}function de(e,t,s){return{duration:e,delay:t,easing:s}}function fe(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 ge{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 _e=new RegExp(":enter","g"),Se=new RegExp(":leave","g");function Ee(e,t,s,n,i,r={},o={},a,l,h=[]){return(new ve).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class ve{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new ge;const c=new we(e,t,l,n,i,h,[]);c.options=a,c.currentTimeline.setStyles([r],null,c.errors,a),te(this,s,c);const u=c.timelines.filter((e=>e.containsAnimation()));if(Object.keys(o).length){let e;for(let s=u.length-1;s>=0;s--){const n=u[s];if(n.element===t){e=n;break}}e&&!e.allowOnlyTimelineStyles()&&e.setStyles([o],null,c.errors,a)}return u.length?u.map((e=>e.buildKeyframes())):[fe(t,[],[],[],0,0,"",!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?R(s.duration):null,r=null!=s.delay?R(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),te(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=Te);const e=R(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>te(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?R(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),te(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 B(t.params?Y(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.getCurrentStyleProperties().length&&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?R(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Te);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),te(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;te(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const Te={};class we{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=Te,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new be(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=R(s.duration)),null!=s.delay&&(n.delay=R(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]=Y(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 we(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=Te,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 Pe(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(_e,"."+this._enterClassName)).replace(Se,"."+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,h)),o}}class be{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new be(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=Object.create(this._backFill,{}),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[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((e=>{this._backFill[e]=this._globalTimelineStyles[e]||n,this._currentKeyframe[e]=n})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},o=function(e,t){const s={};let i;return e.forEach((e=>{"*"===e?(i=i||Object.keys(t),i.forEach((e=>{s[e]=n}))):z(e,!1,s)})),s}(e,this._globalTimelineStyles);Object.keys(o).forEach((e=>{const t=Y(o[e],r,s);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:n),this._updateStyle(e,t)}))}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach((t=>{const s=e[t];this._currentKeyframe[t]=s})),Object.keys(this._localTimelineStyles).forEach((e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((e=>{const t=this._localTimelineStyles[e];this._pendingStyles[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){Object.keys(e._styleSummary).forEach((t=>{const s=this._styleSummary[t],n=e._styleSummary[t];(!s||n.time>s.time)&&this._updateStyle(t,n.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=z(o,!0);Object.keys(l).forEach((s=>{const r=l[s];r==i?e.add(s):r==n&&t.add(s)})),s||(l.offset=a/this.duration),r.push(l)}));const o=e.size?Z(e.values()):[],a=t.size?Z(t.values()):[];if(s){const e=r[0],t=I(e);e.offset=0,t.offset=1,r=[e,t]}return fe(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Pe extends be{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=z(e[0],!1);a.offset=0,i.push(a);const l=z(e[0],!1);l.offset=ke(o),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=z(e[n],!1);const a=t+o.offset*s;o.offset=ke(a/r),i.push(o)}s=r,t=0,n="",e=i}return fe(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function ke(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=ce(e,t,s,n);if(s.length)throw new l(3500,h);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?K(t):t,o=Array.isArray(s)?K(s):s,a=[];i=i||new ge;const c=Ee(this._driver,e,this._animationAst,F,O,r,o,n,i,a);if(a.length)throw new l(3501,h);return c}});class Ne{}e("ɵAnimationStyleNormalizer",Ne);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});e("ɵWebAnimationsStyleNormalizer",class extends Ne{normalizePropertyName(e,t){return X(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Ae[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,h))}return r+i}});const Ae=function(e){const t={};return e.forEach((e=>t[e]=!0)),t}("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".split(","));function Ce(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 Fe={};class Oe{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){const n=this._stateStyles["*"],i=this._stateStyles[e],r=n?n.buildStyles(t,s):{};return i?i.buildStyles(t,s):r}build(e,t,s,n,i,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Fe,m=o&&o.params||Fe,y=this.buildStyles(s,m,c),p=a&&a.params||Fe,d=this.buildStyles(n,p,c),f=new Set,_=new Map,S=new Map,E="void"===n,v={params:{...u,...p}},T=h?[]:Ee(e,t,this.ast.animation,i,r,y,d,v,l,c);let w=0;if(T.forEach((e=>{w=Math.max(e.duration+e.delay,w)})),c.length)return Ce(t,this._triggerName,s,n,E,y,d,[],[],_,S,w,c);T.forEach((e=>{const s=e.element,n=g(_,s,{});e.preStyleProps.forEach((e=>n[e]=!0));const i=g(S,s,{});e.postStyleProps.forEach((e=>i[e]=!0)),s!==t&&f.add(s)}));const b=Z(f.values());return Ce(t,this._triggerName,s,n,E,y,d,T,b,_,S,w)}}class Le{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s={},n=I(this.defaultParams);return Object.keys(e).forEach((t=>{const s=e[t];null!=s&&(n[t]=s)})),this.styles.styles.forEach((e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach((e=>{let r=i[e];r.length>1&&(r=Y(r,n,t));const o=this.normalizer.normalizePropertyName(e,t);r=this.normalizer.normalizeStyleValue(e,o,r,t),s[o]=r}))}})),s}}class xe{constructor(e,t,s){var n,i;this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states={},t.states.forEach((e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new Le(e.style,t,s)})),qe(this.states,"true","1"),qe(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new Oe(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new Oe(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.hasOwnProperty(t)?e.hasOwnProperty(s)||(e[s]=e[t]):e.hasOwnProperty(s)&&(e[t]=e[s])}const De=new ge;class Re{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations={},this._playersById={},this.players=[]}register(e,t){const s=[],n=[],i=ce(this._driver,t,s,n);if(s.length)throw new l(3503,h);this._animations[e]=i}_buildPlayer(e,t,s){const n=e.element,i=y(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[e];let o;const a=new Map;if(r?(o=Ee(this._driver,t,r,F,O,{},{},s,De,i),o.forEach((e=>{const t=g(a,e.element,{});e.postStyleProps.forEach((e=>t[e]=null))}))):(i.push(new l(3300,h)),o=[]),i.length)throw new l(3504,h);a.forEach(((e,t)=>{Object.keys(e).forEach((s=>{e[s]=this._driver.computeStyle(t,s,n)}))}));const c=m(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,{},t)})));return this._playersById[e]=c,c.onDestroy((()=>this.destroy(e))),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new l(3301,h);return t}listen(e,t,s,n){const i=f(t,"","","");return p(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 Qe="ng-animate-queued",Be="ng-animate-disabled",Ie=[],Ke={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Me{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=I(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 je="void",We=new Me(je);class He{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Je(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.hasOwnProperty(t))throw new l(3302,h);if(null==s||0==s.length)throw new l(3303,h);if("start"!=(i=s)&&"done"!=i)throw new l(3400,h);var i;const r=g(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=g(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Je(e,L),Je(e,"ng-trigger-"+t),a[t]=We),()=>{this._engine.afterFlush((()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete a[t]}))}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new l(3401,h);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new $e(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Je(e,L),Je(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Me(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=We);if(!(l.value===je)&&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((()=>{H(e,s),W(e,n)}))}return}const h=g(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||(Je(e,Qe),r.onStart((()=>{Xe(e,Qe)}))),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){delete this._triggers[e],this._engine.statesByElement.forEach(((t,s)=>{delete t[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(Object.keys(i).forEach((t=>{if(r.set(t,i[t].value),this._triggers[t]){const s=this.trigger(e,t,je,n);s&&o.push(s)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&m(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[i].fallbackTransition,o=s[i]||We,a=new Me(je),l=new $e(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!==Ke||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Je(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=f(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,p(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 Ve{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 He(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,i=s.length-1;if(i>=0){let r=!1;if(void 0!==this.driver.getParentElement){let i=this.driver.getParentElement(t);for(;i;){const t=n.get(i);if(t){const n=s.indexOf(t);s.splice(n+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}}else for(let n=i;n>=0;n--){const i=s[n];if(this.driver.containsElement(i.hostElement,t)){s.splice(n+1,0,e),r=!0;break}}r||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){const e=Object.keys(s);for(let n=0;n<e.length;n++){const i=s[e[n]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,s,n){if(Ge(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ge(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),Je(e,Be)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Xe(e,Be))}removeNode(e,t,s,n){if(Ge(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 Ge(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 m(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Ke,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Be)&&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++){Je(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?m(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,h)}_flushAnimations(e,t){const s=new ge,r=[],o=new Map,a=[],c=new Map,u=new Map,y=new Map,p=new Set;this.disabledNodes.forEach((e=>{p.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)p.add(t[e])}));const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),_=Ze(f,this.collectedEnterElements),S=new Map;let E=0;_.forEach(((e,t)=>{const s=F+E++;S.set(t,s),e.forEach((e=>Je(e,s)))}));const v=[],T=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),T.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>T.add(e))):w.add(t))}const b=new Map,P=Ze(f,Array.from(T));P.forEach(((e,t)=>{const s=O+E++;b.set(t,s),e.forEach((e=>Je(e,s)))})),e.push((()=>{_.forEach(((e,t)=>{const s=S.get(t);e.forEach((e=>Xe(e,s)))})),P.forEach(((e,t)=>{const s=b.get(t);e.forEach((e=>Xe(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);n&&n[e.triggerName]&&(n[e.triggerName].value=t)}return void t.destroy()}}const i=!d||!this.driver.containsElement(d,n),o=b.get(n),l=S.get(n),h=this._buildInstruction(e,s,l,o,i);if(h.errors&&h.errors.length)return void N.push(h);if(i)return t.onStart((()=>H(n,h.fromStyles))),t.onDestroy((()=>W(n,h.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>H(n,h.fromStyles))),t.onDestroy((()=>W(n,h.toStyles))),void r.push(t);const m=[];h.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||m.push(e)})),h.timelines=m,s.append(n,h.timelines);const p={instruction:h,player:t,element:n};a.push(p),h.queriedElements.forEach((e=>g(c,e,[]).push(t))),h.preStyleProps.forEach(((e,t)=>{const s=Object.keys(e);if(s.length){let e=u.get(t);e||u.set(t,e=new Set),s.forEach((t=>e.add(t)))}})),h.postStyleProps.forEach(((e,t)=>{const s=Object.keys(e);let n=y.get(t);n||y.set(t,n=new Set),s.forEach((e=>n.add(e)))}))}))}if(N.length){const e=[];N.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,h)))})),k.forEach((e=>e.destroy())),this.reportError(e)}const A=new Map,C=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(C.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=>{g(A,t,[]).push(e),e.destroy()}))}));const L=v.filter((e=>st(e,u,y))),x=new Map;Ye(x,this.driver,w,y,n).forEach((e=>{st(e,u,y)&&L.push(e)}));const q=new Map;_.forEach(((e,t)=>{Ye(q,this.driver,new Set(e),u,i)})),L.forEach((e=>{const t=x.get(e),s=q.get(e);x.set(e,{...t,...s})}));const R=[],Q=[],B={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(p.has(t))return n.onDestroy((()=>W(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=B;if(C.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=C.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>C.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,A,o,q,x);if(n.setRealPlayer(s),e===B)R.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=m(t)),r.push(n)}}else H(t,i.fromStyles),n.onDestroy((()=>W(t,i.toStyles))),Q.push(n),p.has(t)&&r.push(n)})),Q.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=m(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(Xe(t,O),s&&s.hasAnimation)continue;let n=[];if(c.size){let e=c.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=c.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?et(this,t,i):this.processLeaveNode(t)}return v.length=0,R.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),R}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==je;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=g(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)}))}H(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,u=new Set,p=s.timelines.map((s=>{const m=s.element;c.add(m);const p=m.__ng_removed;if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const d=m!==l,f=function(e){const t=[];return tt(e,t),t}((n.get(m)||Ie).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===m})),g=r.get(m),_=o.get(m),S=y(this.driver,this._normalizer,0,s.keyframes,g,_),E=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&u.add(m),d){const t=new $e(e,a,m);t.setRealPlayer(E),h.push(t)}return E}));h.forEach((e=>{g(this.playersByQueriedElement,e.element,[]).push(e),e.onDone((()=>function(e,t,s){let n;if(e instanceof Map){if(n=e.get(t),n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&e.delete(t)}}else if(n=e[t],n){if(n.length){const e=n.indexOf(s);n.splice(e,1)}0==n.length&&delete e[t]}return n}(this.playersByQueriedElement,e.element,e)))})),c.forEach((e=>Je(e,q)));const d=m(p);return d.onDestroy((()=>{c.forEach((e=>Xe(e,q))),W(l,s.toStyles)})),u.forEach((e=>{g(i,e,[]).push(d)})),d}_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 $e{constructor(e,s,n){this.namespaceId=e,this.triggerName=s,this.element=n,this._player=new t,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((t=>{this._queuedCallbacks[t].forEach((s=>p(e,t,void 0,s)))})),this._queuedCallbacks={},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){g(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 Ge(e){return e&&1===e.nodeType}function Ue(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Ye(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Ue(e))));const o=[];n.forEach(((s,n)=>{const r={};s.forEach((e=>{const s=r[e]=t.computeStyle(n,e,i);s&&0!=s.length||(n.__ng_removed=ze,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Ue(e,r[a++]))),o}function Ze(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 Je(e,t){e.classList?.add(t)}function Xe(e,t){e.classList?.remove(t)}function et(e,t,s){m(s).onDone((()=>e.processLeaveNode(t)))}function tt(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?tt(n.players,t):t.push(n)}}function st(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 Ve(e,t,s),this._timelineEngine=new Re(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=ce(this._driver,i,e,t);if(e.length)throw new l(3404,h);t.length,o=function(e,t,s){return new xe(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]=_(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]=_(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 nt{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=nt.initialStylesByElement.get(e);n||nt.initialStylesByElement.set(e,n={}),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(nt.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}function it(e){let t=null;const s=Object.keys(e);for(let n=0;n<s.length;n++){const i=s[n];rt(i)&&(t=t||{},t[i]=e[i])}return t}function rt(e){return"display"===e||"position"===e}nt.initialStylesByElement=new WeakMap;class ot{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.time=0,this.parentPlayer=null,this.currentSnapshot={},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]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,s){return e.animate(t,s)}onStart(e){this._onStartFns.push(e)}onDone(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}_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={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach((s=>{"offset"!=s&&(e[s]=this._finished?t[s]:se(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",ot);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return P(e)}matchesElement(e,t){return!1}containsElement(e,t){return k(e,t)}getParentElement(e){return T(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={},l=r.filter((e=>e instanceof ot));ee(s,n)&&l.forEach((e=>{let t=e.currentSnapshot;Object.keys(t).forEach((e=>a[e]=t[e]))}));const h=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=it(t[0]),t.length>1&&(n=it(t[t.length-1]))):t&&(s=it(t)),s||n?new nt(e,s,n):null}(e,t=function(e,t,s){const n=Object.keys(s);if(n.length&&t.length){let r=t[0],o=[];if(n.forEach((e=>{r.hasOwnProperty(e)||o.push(e),r[e]=s[e]})),o.length)for(var i=1;i<t.length;i++){let s=t[i];o.forEach((function(t){s[t]=se(e,t)}))}}return t}(e,t=t.map((e=>z(e,!1))),a));return new ot(e,t,o,h)}})}}})); | ||
/* esm-bundle - @angular/animations/browser@14.0.2 - 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:ne,ɵgetParentElement:w,ɵnormalizeKeyframes:I,ɵvalidateStyleProperty:k});const h=!1;function c(e){return new l(3e3,h)}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 u(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function m(e){switch(e.length){case 0:return new t;case 1:return e[0];default:return new r(e)}}function d(e,t,s,r,o=new Map,a=new Map){const c=[],u=[];let m=-1,d=null;if(r.forEach((e=>{const s=e.get("offset"),r=s==m,l=r&&d||new Map;e.forEach(((e,s)=>{let r=s,h=e;if("offset"!==s)switch(r=t.normalizePropertyName(r,c),h){case i:h=o.get(s);break;case n:h=a.get(s);break;default:h=t.normalizeStyleValue(s,r,h,c)}l.set(r,h)})),r||u.push(l),d=l,m=s})),c.length)throw new l(3502,h);return u}function p(e,t,s,n){switch(t){case"start":e.onStart((()=>n(s&&y(s,"start",e))));break;case"done":e.onDone((()=>n(s&&y(s,"done",e))));break;case"destroy":e.onDestroy((()=>n(s&&y(s,"destroy",e))))}}function y(e,t,s){const n=s.totalTime,i=!!s.disabled,r=f(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 f(e,t,s,n,i="",r=0,o){return{element:e,triggerName:t,fromState:s,toState:n,phaseName:i,totalTime:r,disabled:!!o}}function g(e,t,s){let n=e.get(t);return n||e.set(t,n=s),n}function _(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}let S=(e,t)=>!1,v=(e,t,s)=>[],E=null;function w(e){const t=e.parentNode||e.host;return t===E?null:t}(u()||"undefined"!=typeof Element)&&("undefined"==typeof window||void 0===window.document?S=(e,t)=>e.contains(t):(E=(()=>document.documentElement)(),S=(e,t)=>{for(;t;){if(t===e)return!0;t=w(t)}return!1}),v=(e,t,s)=>{if(s)return Array.from(e.querySelectorAll(t));const n=e.querySelector(t);return n?[n]:[]});let b=null,T=!1;function k(e){b||(b=function(){if("undefined"!=typeof document)return document.body;return null}()||{},T=!!b.style&&"WebkitAppearance"in b.style);let t=!0;if(b.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in b.style,!t&&T)){t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in b.style}return t}const N=e("ɵcontainsElement",S),A=e("ɵinvokeQuery",v);class P{validateStyleProperty(e){return k(e)}matchesElement(e,t){return!1}containsElement(e,t){return N(e,t)}getParentElement(e){return w(e)}query(e,t,s){return A(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,s,n,i,r,o=[],a){return new t(n,i)}}e("ɵNoopAnimationDriver",P),P.ɵfac=function(e){return new(e||P)},P.ɵprov=a.ɵɵdefineInjectable({token:P,factory:P.ɵfac});class C{}e("AnimationDriver",C),C.NOOP=new P;const M="ng-enter",x="ng-leave",F="ng-trigger",z=".ng-trigger",L="ng-animating",q=".ng-animating";function D(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:R(parseFloat(t[1]),t[2])}function R(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Q(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(c()),{duration:0,delay:0,easing:""};i=R(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(r=R(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,h)),e=!0),r<0&&(t.push(new l(3101,h)),e=!0),e&&t.splice(s,0,c())}return{duration:i,delay:r,easing:o}}(e,t,s)}function B(e,t={}){return Object.keys(e).forEach((s=>{t[s]=e[s]})),t}function K(e){const t=new Map;return Object.keys(e).forEach((s=>{const n=e[s];t.set(s,n)})),t}function I(e){return e.length?e[0]instanceof Map?e:e.map((e=>K(e))):[]}function O(e){const t=new Map;return Array.isArray(e)?e.forEach((e=>W(e,t))):W(e,t),t}function W(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 j(e,t,s){return s?t+":"+s+";":""}function H(e){let t="";for(let s=0;s<e.style.length;s++){const n=e.style.item(s);t+=j(0,n,e.style.getPropertyValue(n))}for(const s in e.style){if(!e.style.hasOwnProperty(s)||s.startsWith("_"))continue;t+=j(0,se(s),e.style[s])}e.setAttribute("style",t)}function V(e,t,s){e.style&&(t.forEach(((t,n)=>{const i=te(n);s&&!s.has(n)&&s.set(n,e.style[i]),e.style[i]=t})),u()&&H(e))}function $(e,t){e.style&&(t.forEach(((t,s)=>{const n=te(s);e.style[n]=""})),u()&&H(e))}function G(e){return Array.isArray(e)?1==e.length?e[0]:o(e):e}function U(e,t,s){const n=t.params||{},i=Z(e);i.length&&i.forEach((e=>{n.hasOwnProperty(e)||s.push(new l(3001,h))}))}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(e){let t=[];if("string"==typeof e){let s;for(;s=Y.exec(e);)t.push(s[1]);Y.lastIndex=0}return t}function J(e,t,s){const n=e.toString(),i=n.replace(Y,((e,n)=>{let i=t[n];return null==i&&(s.push(new l(3003,h)),i=""),i.toString()}));return i==n?e:i}function X(e){const t=[];let s=e.next();for(;!s.done;)t.push(s.value),s=e.next();return t}const ee=/-+([a-z0-9])/g;function te(e){return e.replace(ee,((...e)=>e[1].toUpperCase()))}function se(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ne(e,t){return 0===e||0===t}function ie(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,h)}}function re(e,t){return window.getComputedStyle(e)[t]}const oe="*";function ae(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,h)),"* => *"}}(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,h)),t;const i=n[1],r=n[2],o=n[3];t.push(ce(i,o));const a=i==oe&&o==oe;"<"!=r[0]||a||t.push(ce(o,i))}(e,s,t))):s.push(e),s}const le=new Set(["true","1"]),he=new Set(["false","0"]);function ce(e,t){const s=le.has(e)||he.has(e),n=le.has(t)||he.has(t);return(i,r)=>{let o=e==oe||e==i,a=t==oe||t==r;return!o&&s&&"boolean"==typeof i&&(o=i?le.has(e):he.has(e)),!a&&n&&"boolean"==typeof r&&(a=r?le.has(t):he.has(t)),o&&a}}const ue=":self",me=new RegExp("s*:selfs*,?","g");function de(e,t,s,n){return new pe(e).build(t,s,n)}class pe{constructor(e){this._driver=e}build(e,t,s){const n=new ye(t);this._resetContextStyleTimingState(n);return ie(this,G(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,h)),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,h))})),{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=>{Z(e).forEach((e=>{r.hasOwnProperty(e)||i.add(e)}))}))})),i.size){X(i.values());t.errors.push((e.name,new l(3008,h)))}}return{type:0,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=ie(this,G(e.animation),t);return{type:1,matchers:ae(e.expr,t.errors),animation:s,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map((e=>ie(this,e,t))),options:fe(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const i=e.steps.map((e=>{t.currentTime=s;const i=ie(this,e,t);return n=Math.max(n,t.currentTime),i}));return t.currentTime=n,{type:3,steps:i,options:fe(e.options)}}visitAnimate(e,t){const n=function(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e){return ge(Q(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some((e=>"{"==e.charAt(0)&&"{"==e.charAt(1)))){const e=ge(0,0,"");return e.dynamic=!0,e.strValue=s,e}const n=Q(s,t);return ge(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,h)):s.push(K(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,h))),a=!1),i=o.startTime),a&&r.set(s,{startTime:i,endTime:n}),t.options&&U(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,h)),s;let n=0;const i=[];let r=!1,o=!1,a=0;const c=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,h)),r&&t.errors.push(new l(3200,h));const u=e.steps.length;let m=0;n>0&&n<u?t.errors.push(new l(3202,h)):0==n&&(m=1/(u-1));const d=u-1,p=t.currentTime,y=t.currentAnimateTimings,f=y.duration;return c.forEach(((e,n)=>{const r=m>0?n==d?1:m*n:i[n],o=r*f;t.currentTime=p+y.delay+o,y.duration=o,this._validateStyleAst(e,t),e.offset=r,s.styles.push(e)})),s}visitReference(e,t){return{type:8,animation:ie(this,G(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:fe(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:fe(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==ue));t&&(e=e.replace(me,""));return[e=e.replace(/@\*/g,z).replace(/@\w+/g,(e=>".ng-trigger-"+e.slice(1))).replace(/:animating/g,q),t]}(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,g(t.collectedStyles,t.currentQuerySelector,new Map);const o=ie(this,G(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:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(new l(3013,h));const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:Q(e.timings,t.errors,!0);return{type:12,animation:ie(this,G(e.animation),t),timings:s,options:null}}}class ye{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,this.nonAnimatableCSSPropertiesFound=new Set}}function fe(e){var t;return e?(e=B(e)).params&&(e.params=(t=e.params)?B(t):null):e={},e}function ge(e,t,s){return{duration:e,delay:t,easing:s}}function _e(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 Se{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 ve=new RegExp(":enter","g"),Ee=new RegExp(":leave","g");function we(e,t,s,n,i,r=new Map,o=new Map,a,l,h=[]){return(new be).buildKeyframes(e,t,s,n,i,r,o,a,l,h)}class be{buildKeyframes(e,t,s,n,i,r,o,a,l,h=[]){l=l||new Se;const c=new ke(e,t,l,n,i,h,[]);c.options=a;const u=a.delay?D(a.delay):0;c.currentTimeline.delayNextStep(u),c.currentTimeline.setStyles([r],null,c.errors,a),ie(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())):[_e(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?D(s.duration):null,r=null!=s.delay?D(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),ie(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=Te);const e=D(i.delay);n.delayNextStep(e)}e.steps.length&&(e.steps.forEach((e=>ie(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?D(e.options.delay):0;e.steps.forEach((r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),ie(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 Q(t.params?J(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?D(n.delay):0;i&&(6===t.previousNode.type||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Te);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),ie(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;ie(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-h+(n.startTime-s.currentTimeline.startTime)}}const Te={};class ke{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=Te,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ne(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=D(s.duration)),null!=s.delay&&(n.delay=D(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]=J(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 ke(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=Te,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 Ae(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(ve,"."+this._enterClassName)).replace(Ee,"."+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,h)),o}}class Ne{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 Ne(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 W(e,s)})),s}(e,this._globalTimelineStyles);for(let[e,t]of o){const i=J(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=W(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?X(e.values()):[],a=t.size?X(t.values()):[];if(s){const e=r[0],t=new Map(e);e.set("offset",0),t.set("offset",1),r=[e,t]}return _e(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Ae extends Ne{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=W(e[0]);a.set("offset",0),i.push(a);const l=W(e[0]);l.set("offset",Pe(o)),i.push(l);const h=e.length-1;for(let n=1;n<=h;n++){let o=W(e[n]);const a=t+o.get("offset")*s;o.set("offset",Pe(a/r)),i.push(o)}s=r,t=0,n="",e=i}return _e(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function Pe(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=de(e,t,s,n);if(s.length)throw new l(3500,h);this._animationAst=i}buildTimelines(e,t,s,n,i){const r=Array.isArray(t)?O(t):t,o=Array.isArray(s)?O(s):s,a=[];i=i||new Se;const c=we(this._driver,e,this._animationAst,M,x,r,o,n,i,a);if(a.length)throw new l(3501,h);return c}});class Ce{}e("ɵAnimationStyleNormalizer",Ce);e("ɵNoopAnimationStyleNormalizer",class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}});const Me=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 xe(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 Ce{normalizePropertyName(e,t){return te(e)}normalizeStyleValue(e,t,s,n){let i="";const r=s.toString().trim();if(Me.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,h))}return r+i}});const Fe={};class ze{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||Fe,m=o&&o.params||Fe,d=this.buildStyles(s,m,c),p=a&&a.params||Fe,y=this.buildStyles(n,p,c),f=new Set,_=new Map,S=new Map,v="void"===n,E={params:Le(p,u),delay:this.ast.options?.delay},w=h?[]:we(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 xe(t,this._triggerName,s,n,v,d,y,[],[],_,S,b,c);w.forEach((e=>{const s=e.element,n=g(_,s,new Set);e.preStyleProps.forEach((e=>n.add(e)));const i=g(S,s,new Set);e.postStyleProps.forEach((e=>i.add(e))),s!==t&&f.add(s)}));const T=X(f.values());return xe(t,this._triggerName,s,n,v,d,y,w,T,_,S,b)}}function Le(e,t){const s=B(t);for(const t in e)e.hasOwnProperty(t)&&null!=e[t]&&(s[t]=e[t]);return s}class qe{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=B(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=J(e,n,t));const r=this.normalizer.normalizePropertyName(i,t);e=this.normalizer.normalizeStyleValue(i,r,e,t),s.set(r,e)}))})),s}}class De{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 qe(e.style,t,s))})),Re(this.states,"true","1"),Re(this.states,"false","0"),t.transitions.forEach((t=>{this.transitionFactories.push(new ze(e,t,this.states))})),this.fallbackTransition=(n=e,i=this.states,this._normalizer,new ze(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 Re(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 Qe=new Se;class Be{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=de(this._driver,t,s,n);if(s.length)throw new l(3503,h);this._animations.set(e,i)}_buildPlayer(e,t,s){const n=e.element,i=d(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=we(this._driver,t,r,M,x,new Map,new Map,s,Qe,i),o.forEach((e=>{const t=g(a,e.element,new Map);e.postStyleProps.forEach((e=>t.set(e,null)))}))):(i.push(new l(3300,h)),o=[]),i.length)throw new l(3504,h);a.forEach(((e,t)=>{e.forEach(((s,i)=>{e.set(i,this._driver.computeStyle(t,i,n))}))}));const c=m(o.map((e=>{const t=a.get(e.element);return this._buildPlayer(e,new Map,t)})));return this._playersById.set(e,c),c.onDestroy((()=>this.destroy(e))),this.players.push(c),c}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,h);return t}listen(e,t,s,n){const i=f(t,"","","");return p(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 Ke="ng-animate-queued",Ie="ng-animate-disabled",Oe=[],We={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},je={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class He{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=B(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 Ve="void",$e=new He(Ve);class Ge{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,tt(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw new l(3302,h);if(null==s||0==s.length)throw new l(3303,h);if("start"!=(i=s)&&"done"!=i)throw new l(3400,h);var i;const r=g(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=g(this._engine.statesByElement,e,new Map);return a.has(t)||(tt(e,F),tt(e,"ng-trigger-"+t),a.set(t,$e)),()=>{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,h);return t}trigger(e,t,s,n=!0){const i=this._getTrigger(t),r=new Ye(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(tt(e,F),tt(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o=new Map));let a=o.get(t);const l=new He(s,this.id);!(s&&s.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o.set(t,l),a||(a=$e);if(!(l.value===Ve)&&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((()=>{$(e,s),V(e,n)}))}return}const h=g(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||(tt(e,Ke),r.onStart((()=>{st(e,Ke)}))),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,z,!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,Ve,n);t&&o.push(t)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,r),s&&m(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)||$e,a=new He(Ve),l=new Ye(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!==We||(s.afterFlush((()=>this.clearElementCache(e))),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){tt(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=f(i,s.triggerName,s.fromState.value,s.toState.value);n._data=e,p(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 Ue{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 Ge(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(Ze(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ze(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),tt(e,Ie)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),st(e,Ie))}removeNode(e,t,s,n){if(Ze(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 Ze(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,z,!0);t.forEach((e=>this.destroyActiveAnimationsForElement(e))),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,q,!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 m(this.players).onDone((()=>e()));e()}))}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=We,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ie)&&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++){tt(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?m(t).onDone((()=>{e.forEach((e=>e()))})):e.forEach((e=>e()))}}reportError(e){throw new l(3402,h)}_flushAnimations(e,t){const s=new Se,r=[],o=new Map,a=[],c=new Map,u=new Map,d=new Map,p=new Set;this.disabledNodes.forEach((e=>{p.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let e=0;e<t.length;e++)p.add(t[e])}));const y=this.bodyNode,f=Array.from(this.statesByElement.keys()),_=et(f,this.collectedEnterElements),S=new Map;let v=0;_.forEach(((e,t)=>{const s=M+v++;S.set(t,s),e.forEach((e=>tt(e,s)))}));const E=[],w=new Set,b=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],s=t.__ng_removed;s&&s.setForRemoval&&(E.push(t),w.add(t),s.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach((e=>w.add(e))):b.add(t))}const T=new Map,k=et(f,Array.from(w));k.forEach(((e,t)=>{const s=x+v++;T.set(t,s),e.forEach((e=>tt(e,s)))})),e.push((()=>{_.forEach(((e,t)=>{const s=S.get(t);e.forEach((e=>st(e,s)))})),k.forEach(((e,t)=>{const s=T.get(t);e.forEach((e=>st(e,s)))})),E.forEach((e=>{this.processLeaveNode(e)}))}));const N=[],A=[];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(N.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=!y||!this.driver.containsElement(y,n),o=T.get(n),l=S.get(n),h=this._buildInstruction(e,s,l,o,i);if(h.errors&&h.errors.length)return void A.push(h);if(i)return t.onStart((()=>$(n,h.fromStyles))),t.onDestroy((()=>V(n,h.toStyles))),void r.push(t);if(e.isFallbackTransition)return t.onStart((()=>$(n,h.fromStyles))),t.onDestroy((()=>V(n,h.toStyles))),void r.push(t);const m=[];h.timelines.forEach((e=>{e.stretchStartingKeyframe=!0,this.disabledNodes.has(e.element)||m.push(e)})),h.timelines=m,s.append(n,h.timelines);const p={instruction:h,player:t,element:n};a.push(p),h.queriedElements.forEach((e=>g(c,e,[]).push(t))),h.preStyleProps.forEach(((e,t)=>{if(e.size){let s=u.get(t);s||u.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}})),h.postStyleProps.forEach(((e,t)=>{let s=d.get(t);s||d.set(t,s=new Set),e.forEach(((e,t)=>s.add(t)))}))}))}if(A.length){const e=[];A.forEach((t=>{e.push((t.triggerName,t.errors,new l(3505,h)))})),N.forEach((e=>e.destroy())),this.reportError(e)}const P=new Map,C=new Map;a.forEach((e=>{const t=e.element;s.has(t)&&(C.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))})),r.forEach((e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((e=>{g(P,t,[]).push(e),e.destroy()}))}));const F=E.filter((e=>rt(e,u,d))),z=new Map;Xe(z,this.driver,b,d,n).forEach((e=>{rt(e,u,d)&&F.push(e)}));const L=new Map;_.forEach(((e,t)=>{Xe(L,this.driver,new Set(e),u,i)})),F.forEach((e=>{const t=z.get(e),s=L.get(e);z.set(e,new Map([...Array.from(t?.entries()??[]),...Array.from(s?.entries()??[])]))}));const D=[],R=[],Q={};a.forEach((e=>{const{element:t,player:n,instruction:i}=e;if(s.has(t)){if(p.has(t))return n.onDestroy((()=>V(t,i.toStyles))),n.disabled=!0,n.overrideTotalTime(i.totalTime),void r.push(n);let e=Q;if(C.size>1){let s=t;const n=[];for(;s=s.parentNode;){const t=C.get(s);if(t){e=t;break}n.push(s)}n.forEach((t=>C.set(t,e)))}const s=this._buildAnimation(n.namespaceId,i,P,o,L,z);if(n.setRealPlayer(s),e===Q)D.push(n);else{const t=this.playersByElement.get(e);t&&t.length&&(n.parentPlayer=m(t)),r.push(n)}}else $(t,i.fromStyles),n.onDestroy((()=>V(t,i.toStyles))),R.push(n),p.has(t)&&r.push(n)})),R.forEach((e=>{const t=o.get(e.element);if(t&&t.length){const s=m(t);e.setRealPlayer(s)}})),r.forEach((e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(let e=0;e<E.length;e++){const t=E[e],s=t.__ng_removed;if(st(t,x),s&&s.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,q,!0);for(let e=0;e<s.length;e++){let t=c.get(s[e]);t&&t.length&&n.push(...t)}}const i=n.filter((e=>!e.destroyed));i.length?nt(this,t,i):this.processLeaveNode(t)}return E.length=0,D.forEach((e=>{this.players.push(e),e.onDone((()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)})),e.play()})),D}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==Ve;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=g(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)}))}$(i,t.fromStyles)}_buildAnimation(e,s,n,i,r,o){const a=s.triggerName,l=s.element,h=[],c=new Set,u=new Set,p=s.timelines.map((s=>{const m=s.element;c.add(m);const p=m.__ng_removed;if(p&&p.removedBeforeQueried)return new t(s.duration,s.delay);const y=m!==l,f=function(e){const t=[];return it(e,t),t}((n.get(m)||Oe).map((e=>e.getRealPlayer()))).filter((e=>{const t=e;return!!t.element&&t.element===m})),g=r.get(m),_=o.get(m),S=d(this.driver,this._normalizer,0,s.keyframes,g,_),v=this._buildPlayer(s,S,f);if(s.subTimeline&&i&&u.add(m),y){const t=new Ye(e,a,m);t.setRealPlayer(v),h.push(t)}return v}));h.forEach((e=>{g(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=>tt(e,L)));const y=m(p);return y.onDestroy((()=>{c.forEach((e=>st(e,L))),V(l,s.toStyles)})),u.forEach((e=>{g(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 Ye{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=>p(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){g(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 Ze(e){return e&&1===e.nodeType}function Je(e,t){const s=e.style.display;return e.style.display=null!=t?t:"none",s}function Xe(e,t,s,n,i){const r=[];s.forEach((e=>r.push(Je(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=je,o.push(n))})),e.set(n,r)}));let a=0;return s.forEach((e=>Je(e,r[a++]))),o}function et(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 tt(e,t){e.classList?.add(t)}function st(e,t){e.classList?.remove(t)}function nt(e,t,s){m(s).onDone((()=>e.processLeaveNode(t)))}function it(e,t){for(let s=0;s<e.length;s++){const n=e[s];n instanceof r?it(n.players,t):t.push(n)}}function rt(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 Ue(e,t,s),this._timelineEngine=new Be(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=de(this._driver,i,e,t);if(e.length)throw new l(3404,h);t.length,o=function(e,t,s){return new De(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]=_(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]=_(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 ot{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=ot.initialStylesByElement.get(e);n||ot.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ot.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}}function at(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}ot.initialStylesByElement=new WeakMap;class lt{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.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._onStartFns.push(e)}onDone(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}_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:re(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",lt);e("ɵWebAnimationsDriver",class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return N(e,t)}getParentElement(e){return w(e)}query(e,t,s){return A(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 lt));ne(s,n)&&l.forEach((e=>{e.currentSnapshot.forEach(((e,t)=>a.set(t,e)))}));let h=I(t).map((e=>W(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,re(e,t))))}}return t}(e,h,a);const c=function(e,t){let s=null,n=null;return Array.isArray(t)&&t.length?(s=at(t[0]),t.length>1&&(n=at(t[t.length-1]))):t instanceof Map&&(s=at(t)),s||n?new ot(e,s,n):null}(e,h);return new lt(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
3206546
23786