@esm-bundle/angular__animations
Advanced tools
Comparing version 13.3.2 to 13.3.3
@@ -1,4 +0,4 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/** | ||
* @license Angular v13.3.2 | ||
* @license Angular v13.3.3 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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.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 */ | ||
/* esm-bundle - @angular/animations/browser@13.3.3 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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}; | ||
//# sourceMappingURL=angular-browser.min.js.map |
@@ -1,4 +0,4 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/** | ||
* @license Angular v13.3.2 | ||
* @license Angular v13.3.3 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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.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 */ | ||
/* esm-bundle - @angular/animations/browser@13.3.3 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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}; | ||
//# sourceMappingURL=angular-browser.min.js.map |
{ | ||
"name": "@esm-bundle/angular__animations", | ||
"version": "13.3.2", | ||
"version": "13.3.3", | ||
"description": "ESM and SystemJS versions of @angular/animations", | ||
@@ -49,16 +49,16 @@ "type": "module", | ||
"devDependencies": { | ||
"@angular/animations": "13.3.2", | ||
"@angular/compiler": "13.3.2", | ||
"@angular/compiler-cli": "13.3.2", | ||
"@angular/core": "13.3.2", | ||
"@angular/animations": "13.3.3", | ||
"@angular/compiler": "13.3.3", | ||
"@angular/compiler-cli": "13.3.3", | ||
"@angular/core": "13.3.3", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"concurrently": "7.1.0", | ||
"husky": "7.0.4", | ||
"karma": "6.3.17", | ||
"karma": "6.3.18", | ||
"karma-firefox-launcher": "2.1.2", | ||
"karma-jasmine": "4.0.2", | ||
"karma-jasmine": "5.0.0", | ||
"pinst": "3.0.0", | ||
"prettier": "2.6.2", | ||
"pretty-quick": "3.1.3", | ||
"release-it": "14.14.0", | ||
"release-it": "14.14.2", | ||
"release-it-plugin-esm-bundle": "2.1.0", | ||
@@ -65,0 +65,0 @@ "rimraf": "3.0.2", |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register([], (function (exports) { | ||
@@ -24,3 +24,3 @@ 'use strict'; | ||
/** | ||
* @license Angular v13.3.2 | ||
* @license Angular v13.3.3 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -27,0 +27,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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.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 */ | ||
/* esm-bundle - @angular/animations/browser@13.3.3 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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)}})}}})); | ||
//# sourceMappingURL=angular-browser.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register([], (function (exports) { | ||
@@ -24,3 +24,3 @@ 'use strict'; | ||
/** | ||
* @license Angular v13.3.2 | ||
* @license Angular v13.3.3 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -27,0 +27,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.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 */ | ||
/* esm-bundle - @angular/animations@13.3.3 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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.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 */ | ||
/* esm-bundle - @angular/animations/browser@13.3.3 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
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)}})}}})); | ||
//# 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