*"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function MF(n){return new Se(3015,!1)}()),t;const r=i[1],o=i[2],a=i[3];t.push(pb(r,a));"<"==o[0]&&!("*"==r&&"*"==a)&&t.push(pb(a,r))}(i,e,t)):e.push(n),e}const M4=new Set(["true","1"]),S4=new Set(["false","0"]);function pb(n,t){const e=M4.has(n)||S4.has(n),i=M4.has(t)||S4.has(t);return(r,o)=>{let a="*"==n||n==r,s="*"==t||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?M4.has(n):S4.has(n)),!s&&i&&"boolean"==typeof o&&(s=o?M4.has(t):S4.has(t)),a&&s}}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */const oN=new RegExp("s*:selfs*,?","g");function z6(n,t,e,i){return new aN(n).build(t,e,i)}class aN{constructor(t){this._driver=t}build(t,e,i){const r=new cN(e);return this._resetContextStyleTimingState(r),Yr(this,W1(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function dF(){return new Se(3006,!1)}()),t.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,e))}),l.name=u}else if(1==s.type){const l=this.visitTransition(s,e);i+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(function fF(){return new Se(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{fb(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&(y4(o.values()),e.errors.push(function mF(n,t){return new Se(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Yr(this,W1(t.animation),e);return{type:1,matchers:nN(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:qs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Yr(this,i,e)),options:qs(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=i;const s=Yr(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:qs(t.options)}}visitAnimate(t,e){const i=function hN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return E6(_4(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=E6(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=_4(e,t);return E6(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:gt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,s=!1;if(!a){s=!0;const u={};i.easing&&(u.easing=i.easing),a=gt(u)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let s of r)"string"==typeof s?s===ba?i.push(s):e.errors.push(new Se(3002,!1)):i.push(cb(s));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let l of s.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const u=e.collectedStyles.get(e.currentQuerySelector),f=u.get(l);let p=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(e.errors.push(function gF(n,t,e,i,r){return new Se(3010,!1)}()),p=!1),o=f.startTime),p&&u.set(l,{startTime:o,endTime:r}),e.options&&function GF(n,t,e){const i=t.params||{},r=fb(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function lF(n){return new Se(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function vF(){return new Se(3011,!1)}()),i;let o=0;const a=[];let s=!1,l=!1,u=0;const f=t.steps.map(ue=>{const ye=this._makeStyleAst(ue,e);let le=null!=ye.offset?ye.offset:function uN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(ye.styles),Pe=0;return null!=le&&(o++,Pe=ye.offset=le),l=l||Pe<0||Pe>1,s=s||Pe0&&o{const le=P>0?ye==E?1:P*ye:a[ye],Pe=le*ne;e.currentTime=H+G.delay+Pe,G.duration=Pe,this._validateStyleAst(ue,e),ue.offset=le,i.styles.push(ue)}),i}visitReference(t,e){return{type:8,animation:Yr(this,W1(t.animation),e),options:qs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:qs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:qs(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function sN(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(oN,"")),n=n.replace(/@\*/g,v4).replace(/@\w+/g,e=>v4+"-"+e.slice(1)).replace(/:animating/g,D6),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Ur(e.collectedStyles,e.currentQuerySelector,new Map);const s=Yr(this,W1(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:qs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function CF(){return new Se(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:_4(t.timings,e.errors,!0);return{type:12,animation:Yr(this,W1(t.animation),e),timings:i,options:null}}}class cN{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function qs(n){return n?(n=$1(n)).params&&(n.params=function lN(n){return n?$1(n):null}(n.params)):n={},n}function E6(n,t,e){return{duration:n,delay:t,easing:e}}function O6(n,t,e,i,r,o,a=null,s=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class T4{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */const mN=new RegExp(":enter","g"),gN=new RegExp(":leave","g");function I6(n,t,e,i,r,o=new Map,a=new Map,s,l,u=[]){return(new vN).buildKeyframes(n,t,e,i,r,o,a,s,l,u)}class vN{buildKeyframes(t,e,i,r,o,a,s,l,u,f=[]){u=u||new T4;const p=new A6(t,e,u,r,o,f,[]);p.options=l;const P=l.delay?Ca(l.delay):0;p.currentTimeline.delayNextStep(P),p.currentTimeline.setStyles([a],null,p.errors,l),Yr(this,i,p);const E=p.timelines.filter(H=>H.containsAnimation());if(E.length&&s.size){let H;for(let G=E.length-1;G>=0;G--){const ne=E[G];if(ne.element===e){H=ne;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([s],null,p.errors,l)}return E.length?E.map(H=>H.buildKeyframes()):[O6(e,[],[],[],0,P,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){var r;for(const o of t){const a=null==o?void 0:o.delay;if(a){const s="number"==typeof a?a:Ca(G1(a,null!==(r=null==o?void 0:o.params)&&void 0!==r?r:{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?Ca(i.duration):null,s=null!=i.delay?Ca(i.delay):null;return 0!==a&&t.forEach(l=>{const u=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Yr(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=D4);const a=Ca(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>Yr(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Ca(t.options.delay):0;t.steps.forEach(a=>{const s=e.createSubContext(t.options);o&&s.delayNextStep(o),Yr(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return _4(e.params?G1(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,t.styles.forEach(l=>{s.forwardTime((l.offset||0)*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Ca(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=D4);let a=i;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,f)=>{e.currentQueryIndex=f;const p=e.createSubContext(t.options,u);o&&p.delayNextStep(o),u===e.element&&(l=p.currentTimeline),Yr(this,t.animation,p),p.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const f=e.currentTimeline;l&&f.delayNextStep(l);const p=f.currentTime;Yr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-p+(r.startTime-i.currentTimeline.startTime)}}const D4={};class A6{constructor(t,e,i,r,o,a,s,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=D4,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new k4(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Ca(i.duration)),null!=i.delay&&(r.delay=Ca(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=G1(o[s],a,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new A6(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=D4,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new _N(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,a){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(mN,"."+this._enterClassName)).replace(gN,"."+this._leaveClassName);let u=this._driver.query(this.element,t,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push(...u)}return!o&&0==s.length&&a.push(function wF(n){return new Se(3014,!1)}()),s}}class k4{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new k4(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||ba),this._currentKeyframe.set(e,ba);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){var o;e&&this._previousKeyframe.set("easing",e);const a=r&&r.params||{},s=function yN(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,ba)}else es(r,e)}),e}(t,this._globalTimelineStyles);for(let[l,u]of s){const f=G1(u,a,i);this._pendingStyles.set(l,f),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(o=this._globalTimelineStyles.get(l))&&void 0!==o?o:ba),this._updateStyle(l,f)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,l)=>{const u=es(s,new Map,this._backFill);u.forEach((f,p)=>{"!"===f?t.add(p):f===ba&&e.add(p)}),i||u.set("offset",l/this.duration),r.push(u)});const o=t.size?y4(t.values()):[],a=e.size?y4(e.values()):[];if(i){const s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l]}return O6(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class _N extends k4{constructor(t,e,i,r,o,a,s=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=i+e,s=e/a,l=es(t[0]);l.set("offset",0),o.push(l);const u=es(t[0]);u.set("offset",_b(s)),o.push(u);const f=t.length-1;for(let p=1;p<=f;p++){let P=es(t[p]);const E=P.get("offset");P.set("offset",_b((e+E*i)/a)),o.push(P)}i=a,e=0,r="",t=o}return O6(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function _b(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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 L6{}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */
+const bN=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class CN extends L6{normalizePropertyName(t,e){return P6(t)}normalizeStyleValue(t,e,i,r){let o="";const a=i.toString().trim();if(bN.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function hF(n,t){return new Se(3005,!1)}())}return a+o}}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */function yb(n,t,e,i,r,o,a,s,l,u,f,p,P){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:f,totalTime:p,errors:P}}const F6={};class bb{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function wN(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(null==t?void 0:t.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,a,s,l,u,f){var p;const P=[],E=this.ast.options&&this.ast.options.params||F6,G=this.buildStyles(i,s&&s.params||F6,P),ne=l&&l.params||F6,ue=this.buildStyles(r,ne,P),ye=new Set,le=new Map,Pe=new Map,Xe="void"===r,st={params:MN(ne,E),delay:null===(p=this.ast.options)||void 0===p?void 0:p.delay},Bt=f?[]:I6(t,e,this.ast.animation,o,a,G,ue,st,u,P);let yn=0;if(Bt.forEach(Ut=>{yn=Math.max(Ut.duration+Ut.delay,yn)}),P.length)return yb(e,this._triggerName,i,r,Xe,G,ue,[],[],le,Pe,yn,P);Bt.forEach(Ut=>{const Hn=Ut.element,On=Ur(le,Hn,new Set);Ut.preStyleProps.forEach(Ti=>On.add(Ti));const _i=Ur(Pe,Hn,new Set);Ut.postStyleProps.forEach(Ti=>_i.add(Ti)),Hn!==e&&ye.add(Hn)});const Ot=y4(ye.values());return yb(e,this._triggerName,i,r,Xe,G,ue,Bt,Ot,le,Pe,yn)}}function MN(n,t){const e=$1(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class SN{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=$1(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=G1(a,r,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(l,a)})}),i}}class DN{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new SN(r.style,r.options&&r.options.params||{},i))}),Cb(this.states,"true","1"),Cb(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new bb(t,r,this.states))}),this.fallbackTransition=function kN(n,t,e){return new bb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Cb(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */const xN=new T4;class PN{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=z6(this._driver,e,i,[]);if(i.length)throw function PF(n){return new Se(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=Jy(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let a;const s=new Map;if(o?(a=I6(this._driver,e,o,T6,p4,new Map,new Map,i,xN,r),a.forEach(f=>{const p=Ur(s,f.element,new Map);f.postStyleProps.forEach(P=>p.set(P,null))})):(r.push(function zF(){return new Se(3300,!1)}()),a=[]),r.length)throw function EF(n){return new Se(3504,!1)}();s.forEach((f,p)=>{f.forEach((P,E)=>{f.set(E,this._driver.computeStyle(p,E,ba))})});const u=Ja(a.map(f=>{const p=s.get(f.element);return this._buildPlayer(f,new Map,p)}));return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function OF(n){return new Se(3301,!1)}();return e}listen(t,e,i,r){const o=C6(e,"","","");return y6(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */const wb="ng-animate-queued",N6="ng-animate-disabled",AN=[],Mb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},LN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},oo="__ng_removed";class R6{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function VN(n){return null!=n?n:null}(i?t.value:t),i){const o=$1(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const K1="void",V6=new R6(K1);class FN{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ao(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function IF(n,t){return new Se(3302,!1)}();if(null==i||0==i.length)throw function AF(n){return new Se(3303,!1)}();if(!function HN(n){return"start"==n||"done"==n}(i))throw function LF(n,t){return new Se(3400,!1)}();const o=Ur(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};o.push(a);const s=Ur(this._engine.statesByElement,t,new Map);return s.has(e)||(ao(t,g4),ao(t,g4+"-"+e),s.set(e,V6)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function FF(n){return new Se(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),a=new H6(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(ao(t,g4),ao(t,g4+"-"+e),this._engine.statesByElement.set(t,s=new Map));let l=s.get(e);const u=new R6(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=V6),u.value!==K1&&l.value===u.value){if(!function YN(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ys(t,ne),Jo(t,ue)})}return}const P=Ur(this._engine.playersByElement,t,[]);P.forEach(G=>{G.namespaceId==this.id&&G.triggerName==e&&G.queued&&G.destroy()});let E=o.matchTransition(l.value,u.value,t,u.params),H=!1;if(!E){if(!r)return;E=o.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:E,fromState:l,toState:u,player:a,isFallbackTransition:H}),H||(ao(t,wb),a.onStart(()=>{rc(t,wb)})),a.onDone(()=>{let G=this.players.indexOf(a);G>=0&&this.players.splice(G,1);const ne=this._engine.playersByElement.get(t);if(ne){let ue=ne.indexOf(a);ue>=0&&ne.splice(ue,1)}}),this.players.push(a),P.push(a),a}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,v4,!0);i.forEach(r=>{if(r[oo])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),a=new Map;if(o){const s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){const f=this.trigger(t,u,K1,r);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&Ja(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const l=this._triggers.get(a).fallbackTransition,u=i.get(a)||V6,f=new R6(K1),p=new H6(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:l,fromState:u,toState:f,player:p,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[oo];(!o||o===Mb)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){ao(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=C6(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,y6(i.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class NN{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new FN(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=r.get(s);if(l){const u=i.indexOf(l);i.splice(u+1,0,t),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(x4(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!x4(e))return;const o=e[oo];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ao(t,N6)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),rc(t,N6))}removeNode(t,e,i,r){if(x4(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[oo]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return x4(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,v4,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D6,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ja(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[oo];if(i&&i.setForRemoval){if(t[oo]=Mb,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}!(null===(e=t.classList)||void 0===e)&&e.contains(N6)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ja(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function NF(n){return new Se(3402,!1)}()}_flushAnimations(t,e){const i=new T4,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(ze=>{f.add(ze);const Ge=this.driver.query(ze,".ng-animate-queued",!0);for(let it=0;it{const it=T6+G++;H.set(Ge,it),ze.forEach(It=>ao(It,it))});const ne=[],ue=new Set,ye=new Set;for(let ze=0;zeue.add(It)):ye.add(Ge))}const le=new Map,Pe=Db(P,Array.from(ue));Pe.forEach((ze,Ge)=>{const it=p4+G++;le.set(Ge,it),ze.forEach(It=>ao(It,it))}),t.push(()=>{E.forEach((ze,Ge)=>{const it=H.get(Ge);ze.forEach(It=>rc(It,it))}),Pe.forEach((ze,Ge)=>{const it=le.get(Ge);ze.forEach(It=>rc(It,it))}),ne.forEach(ze=>{this.processLeaveNode(ze)})});const Xe=[],st=[];for(let ze=this._namespaceList.length-1;ze>=0;ze--)this._namespaceList[ze].drainQueuedTransitions(e).forEach(it=>{const It=it.player,Yn=it.element;if(Xe.push(It),this.collectedEnterElements.length){const si=Yn[oo];if(si&&si.setForMove){if(si.previousTriggersValues&&si.previousTriggersValues.has(it.triggerName)){const In=si.previousTriggersValues.get(it.triggerName),Lt=this.statesByElement.get(it.element);if(Lt&&Lt.has(it.triggerName)){const qi=Lt.get(it.triggerName);qi.value=In,Lt.set(it.triggerName,qi)}}return void It.destroy()}}const Ir=!p||!this.driver.containsElement(p,Yn),Di=le.get(Yn),Ao=H.get(Yn),bn=this._buildInstruction(it,i,Ao,Di,Ir);if(bn.errors&&bn.errors.length)return void st.push(bn);if(Ir)return It.onStart(()=>Ys(Yn,bn.fromStyles)),It.onDestroy(()=>Jo(Yn,bn.toStyles)),void r.push(It);if(it.isFallbackTransition)return It.onStart(()=>Ys(Yn,bn.fromStyles)),It.onDestroy(()=>Jo(Yn,bn.toStyles)),void r.push(It);const au=[];bn.timelines.forEach(si=>{si.stretchStartingKeyframe=!0,this.disabledNodes.has(si.element)||au.push(si)}),bn.timelines=au,i.append(Yn,bn.timelines),a.push({instruction:bn,player:It,element:Yn}),bn.queriedElements.forEach(si=>Ur(s,si,[]).push(It)),bn.preStyleProps.forEach((si,In)=>{if(si.size){let Lt=l.get(In);Lt||l.set(In,Lt=new Set),si.forEach((qi,ss)=>Lt.add(ss))}}),bn.postStyleProps.forEach((si,In)=>{let Lt=u.get(In);Lt||u.set(In,Lt=new Set),si.forEach((qi,ss)=>Lt.add(ss))})});if(st.length){const ze=[];st.forEach(Ge=>{ze.push(function RF(n,t){return new Se(3505,!1)}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */())}),Xe.forEach(Ge=>Ge.destroy()),this.reportError(ze)}const Bt=new Map,yn=new Map;a.forEach(ze=>{const Ge=ze.element;i.has(Ge)&&(yn.set(Ge,Ge),this._beforeAnimationBuild(ze.player.namespaceId,ze.instruction,Bt))}),r.forEach(ze=>{const Ge=ze.element;this._getPreviousPlayers(Ge,!1,ze.namespaceId,ze.triggerName,null).forEach(It=>{Ur(Bt,Ge,[]).push(It),It.destroy()})});const Ot=ne.filter(ze=>xb(ze,l,u)),Ut=new Map;Tb(Ut,this.driver,ye,u,ba).forEach(ze=>{xb(ze,l,u)&&Ot.push(ze)});const On=new Map;E.forEach((ze,Ge)=>{Tb(On,this.driver,new Set(ze),l,"!")}),Ot.forEach(ze=>{var Ge,it;const It=Ut.get(ze),Yn=On.get(ze);Ut.set(ze,new Map([...Array.from(null!==(Ge=null==It?void 0:It.entries())&&void 0!==Ge?Ge:[]),...Array.from(null!==(it=null==Yn?void 0:Yn.entries())&&void 0!==it?it:[])]))});const _i=[],Ti=[],pn={};a.forEach(ze=>{const{element:Ge,player:it,instruction:It}=ze;if(i.has(Ge)){if(f.has(Ge))return it.onDestroy(()=>Jo(Ge,It.toStyles)),it.disabled=!0,it.overrideTotalTime(It.totalTime),void r.push(it);let Yn=pn;if(yn.size>1){let Di=Ge;const Ao=[];for(;Di=Di.parentNode;){const bn=yn.get(Di);if(bn){Yn=bn;break}Ao.push(Di)}Ao.forEach(bn=>yn.set(bn,Yn))}const Ir=this._buildAnimation(it.namespaceId,It,Bt,o,On,Ut);if(it.setRealPlayer(Ir),Yn===pn)_i.push(it);else{const Di=this.playersByElement.get(Yn);Di&&Di.length&&(it.parentPlayer=Ja(Di)),r.push(it)}}else Ys(Ge,It.fromStyles),it.onDestroy(()=>Jo(Ge,It.toStyles)),Ti.push(it),f.has(Ge)&&r.push(it)}),Ti.forEach(ze=>{const Ge=o.get(ze.element);if(Ge&&Ge.length){const it=Ja(Ge);ze.setRealPlayer(it)}}),r.forEach(ze=>{ze.parentPlayer?ze.syncPlayerEvents(ze.parentPlayer):ze.destroy()});for(let ze=0;ze!Ir.destroyed);Yn.length?BN(this,Ge,Yn):this.processLeaveNode(Ge)}return ne.length=0,_i.forEach(ze=>{this.players.push(ze),ze.onDone(()=>{ze.destroy();const Ge=this.players.indexOf(ze);this.players.splice(Ge,1)}),ze.play()}),_i}elementContainsData(t,e){let i=!1;const r=e[oo];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let a=[];if(e){const s=this.playersByQueriedElement.get(t);s&&(a=s)}else{const s=this.playersByElement.get(t);if(s){const l=!o||o==K1;s.forEach(u=>{u.queued||!l&&u.triggerName!=r||a.push(u)})}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(t,e,i){const o=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const u=l.element,f=u!==o,p=Ur(i,u,[]);this._getPreviousPlayers(u,f,a,s,e.toState).forEach(E=>{const H=E.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),E.destroy(),p.push(E)})}Ys(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,a){const s=e.triggerName,l=e.element,u=[],f=new Set,p=new Set,P=e.timelines.map(H=>{const G=H.element;f.add(G);const ne=G[oo];if(ne&&ne.removedBeforeQueried)return new j1(H.duration,H.delay);const ue=G!==l,ye=function UN(n){const t=[];return kb(n,t),t}((i.get(G)||AN).map(Bt=>Bt.getRealPlayer())).filter(Bt=>!!Bt.element&&Bt.element===G),le=o.get(G),Pe=a.get(G),Xe=Jy(0,this._normalizer,0,H.keyframes,le,Pe),st=this._buildPlayer(H,Xe,ye);if(H.subTimeline&&r&&p.add(G),ue){const Bt=new H6(t,s,G);Bt.setRealPlayer(st),u.push(Bt)}return st});u.forEach(H=>{Ur(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function RN(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,H.element,H))}),f.forEach(H=>ao(H,lb));const E=Ja(P);return E.onDestroy(()=>{f.forEach(H=>rc(H,lb)),Jo(l,e.toStyles)}),p.forEach(H=>{Ur(r,H,[]).push(E)}),E}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new j1(t.duration,t.delay)}}class H6{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new j1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>y6(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ur(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function x4(n){return n&&1===n.nodeType}function Sb(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function Tb(n,t,e,i,r){const o=[];e.forEach(l=>o.push(Sb(l)));const a=[];i.forEach((l,u)=>{const f=new Map;l.forEach(p=>{const P=t.computeStyle(u,p,r);f.set(p,P),(!P||0==P.length)&&(u[oo]=LN,a.push(u))}),n.set(u,f)});let s=0;return e.forEach(l=>Sb(l,o[s++])),a}function Db(n,t){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==t.length)return e;const r=new Set(t),o=new Map;function a(s){if(!s)return 1;let l=o.get(s);if(l)return l;const u=s.parentNode;return l=e.has(u)?u:r.has(u)?1:a(u),o.set(s,l),l}return t.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function ao(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function rc(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function BN(n,t,e){Ja(e).onDone(()=>n.processLeaveNode(t))}function kb(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class P4{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new NN(t,e,i),this._timelineEngine=new PN(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const a=t+"-"+r;let s=this._triggerCache[a];if(!s){const l=[],f=z6(this._driver,o,l,[]);if(l.length)throw function kF(n,t){return new Se(3404,!1)}();s=function TN(n,t,e){return new DN(n,t,e)}(r,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,a]=eb(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[a,s]=eb(i);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let jN=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Jo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Jo(this._element,this._initialStyles),this._endStyles&&(Jo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ys(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ys(this._element,this._endStyles),this._endStyles=null),Jo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function B6(n){let t=null;return n.forEach((e,i)=>{(function $N(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class Pb{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:mb(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class WN{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return rb(t,e)}getParentElement(t){return M6(t)}query(t,e,i){return ob(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,a=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const u=new Map,f=a.filter(E=>E instanceof Pb);(function ZF(n,t){return 0===n||0===t})(i,r)&&f.forEach(E=>{E.currentSnapshot.forEach((H,G)=>u.set(G,H))});let p=function WF(n){return n.length?n[0]instanceof Map?n:n.map(t=>cb(t)):[]}(e).map(E=>es(E));p=function XF(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(s,mb(n,s)))}}return t}(t,p,u);const P=function qN(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=B6(t[0]),t.length>1&&(i=B6(t[t.length-1]))):t instanceof Map&&(e=B6(t)),e||i?new jN(n,e,i):null}(t,p);return new Pb(t,p,l,P)}}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.io/license
+ */
+/**
+ * @license Angular v14.2.12
+ * (c) 2010-2022 Google LLC. https://angular.io/
+ * License: MIT
+ */
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */let GN=(()=>{class n extends $y{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Lr.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Wy(e):e;return zb(this._renderer,null,i,"register",[r]),new KN(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(me(ja),me(en))},n.\u0275prov=Le({token:n,factory:n.\u0275fac}),n})();class KN extends class oF{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new QN(this._id,t,e||{},this._renderer)}}class QN{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return zb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function zb(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const Eb="@.disabled";let ZN=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,a)=>{const s=null==a?void 0:a.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let f=this._rendererCache.get(o);return f||(f=new Ob("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,f)),f}const a=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const l=f=>{Array.isArray(f)?f.forEach(l):this.engine.registerTrigger(a,s,e,f.name,f)};return i.data.animation.forEach(l),new XN(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(me(ja),me(P4),me(Ft))},n.\u0275prov=Le({token:n,factory:n.\u0275fac}),n})();class Ob{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(t=this._onDestroy)||void 0===t||t.call(this)}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==Eb?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class XN extends Ob{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Eb?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function JN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function eR(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(t,e,i)}}let tR=(()=>{class n extends P4{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(me(en),me(S6),me(L6),me(tc))},n.\u0275prov=Le({token:n,factory:n.\u0275fac}),n})();const Ib=[{provide:$y,useClass:GN},{provide:L6,useFactory:function nR(){return new CN}},{provide:P4,useClass:tR},{provide:ja,useFactory:function iR(n,t,e){return new ZN(n,t,e)},deps:[G0,P4,Ft]}],U6=[{provide:S6,useFactory:()=>new WN},{provide:O1,useValue:"BrowserAnimations"},...Ib],Ab=[{provide:S6,useClass:ab},{provide:O1,useValue:"NoopAnimations"},...Ib];
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ */let rR=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Ab:U6}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Tt({type:n}),n.\u0275inj=Ct({providers:U6,imports:[w_]}),n})();
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * 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 Q1 extends de{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new we;return this._value}next(t){super.next(this._value=t)}}const Lb={};const js=(...n)=>function Fb(n,...t){y9()&&function aR(...n){const t=n.reduce((e,i)=>e+i.toString(),"");return!Lb[t]&&(Lb[t]=!0,!0)}(...t)&&n(...t)}((...t)=>console.warn("[NG-ZORRO]:",...t),...n);function Ze(n,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function E4(n){return(E4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function yt(n){Ze(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"===E4(n)&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Jn(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var Nb={};function ts(){return Nb}function Rb(n,t){var e,i,r,o,a,s,l,u;Ze(1,arguments);var f=ts(),p=Jn(null!==(e=null!==(i=null!==(r=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:f.weekStartsOn)&&void 0!==i?i:null===(l=f.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==e?e:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var P=yt(n),E=P.getDay(),H=(E