diff --git a/demo/3rdpartylicenses.txt b/demo/3rdpartylicenses.txt index 2449a9be..362abad5 100644 --- a/demo/3rdpartylicenses.txt +++ b/demo/3rdpartylicenses.txt @@ -225,26 +225,11 @@ Apache-2.0 -tslib -0BSD -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - zone.js MIT The MIT License -Copyright (c) 2010-2022 Google LLC. https://angular.io/license +Copyright (c) 2010-2023 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/demo/index.html b/demo/index.html index adb2dc56..133159eb 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,4 +1,6 @@ - + + + Angular UI Switch @@ -32,6 +34,5 @@

Loading...

- - - \ No newline at end of file + + diff --git a/demo/main.1322302d22533d4c.js b/demo/main.1322302d22533d4c.js deleted file mode 100644 index 49b313da..00000000 --- a/demo/main.1322302d22533d4c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkngx_ui_switch=self.webpackChunkngx_ui_switch||[]).push([[179],{859:()=>{function de(t){return"function"==typeof t}function Qi(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Yi=Qi(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Gr(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class kt{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(de(r))try{r()}catch(o){e=o instanceof Yi?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{ud(o)}catch(s){e=e??[],s instanceof Yi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Yi(e)}}add(e){var n;if(e&&e!==this)if(this.closed)ud(e);else{if(e instanceof kt){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Gr(n,e)}remove(e){const{_finalizers:n}=this;n&&Gr(n,e),e instanceof kt&&e._removeParent(this)}}kt.EMPTY=(()=>{const t=new kt;return t.closed=!0,t})();const ad=kt.EMPTY;function ld(t){return t instanceof kt||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}function ud(t){de(t)?t():t.unsubscribe()}const Fn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zi={setTimeout(t,e,...n){const{delegate:r}=Zi;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=Zi;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function cd(t){Zi.setTimeout(()=>{const{onUnhandledError:e}=Fn;if(!e)throw t;e(t)})}function dd(){}const pD=ia("C",void 0,void 0);function ia(t,e,n){return{kind:t,value:e,error:n}}let Pn=null;function Xi(t){if(Fn.useDeprecatedSynchronousErrorHandling){const e=!Pn;if(e&&(Pn={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=Pn;if(Pn=null,n)throw r}}else t()}class oa extends kt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ld(e)&&e.add(this)):this.destination=CD}static create(e,n,r){return new zr(e,n,r)}next(e){this.isStopped?aa(function mD(t){return ia("N",t,void 0)}(e),this):this._next(e)}error(e){this.isStopped?aa(function gD(t){return ia("E",void 0,t)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?aa(pD,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _D=Function.prototype.bind;function sa(t,e){return _D.call(t,e)}class vD{constructor(e){this.partialObserver=e}next(e){const{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Ji(r)}}error(e){const{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Ji(r)}else Ji(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Ji(n)}}}class zr extends oa{constructor(e,n,r){let i;if(super(),de(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Fn.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&sa(e.next,o),error:e.error&&sa(e.error,o),complete:e.complete&&sa(e.complete,o)}):i=e}this.destination=new vD(i)}}function Ji(t){Fn.useDeprecatedSynchronousErrorHandling?function yD(t){Fn.useDeprecatedSynchronousErrorHandling&&Pn&&(Pn.errorThrown=!0,Pn.error=t)}(t):cd(t)}function aa(t,e){const{onStoppedNotification:n}=Fn;n&&Zi.setTimeout(()=>n(t,e))}const CD={closed:!0,next:dd,error:function DD(t){throw t},complete:dd},la="function"==typeof Symbol&&Symbol.observable||"@@observable";function fd(t){return t}let Oe=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function ED(t){return t&&t instanceof oa||function wD(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}(t)&&ld(t)}(n)?n:new zr(n,r,i);return Xi(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=pd(r))((i,o)=>{const s=new zr({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[la](){return this}pipe(...n){return function hd(t){return 0===t.length?fd:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=pd(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function pd(t){var e;return null!==(e=t??Fn.Promise)&&void 0!==e?e:Promise}const bD=Qi(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ua=(()=>{class t extends Oe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new gd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new bD}next(n){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?ad:(this.currentObservers=null,o.push(n),new kt(()=>{this.currentObservers=null,Gr(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new Oe;return n.source=this,n}}return t.create=(e,n)=>new gd(e,n),t})();class gd extends ua{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:ad}}function qr(t){return e=>{if(function SD(t){return de(t?.lift)}(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Wr(t,e,n,r,i){return new MD(t,e,n,r,i)}class MD extends oa{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function ca(t,e){return qr((n,r)=>{let i=0;n.subscribe(Wr(r,o=>{r.next(t.call(e,o,i++))}))})}function On(t){return this instanceof On?(this.v=t,this):new On(t)}function ND(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function _d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=t[o](s)).done,s.value)})}}}const vd=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Dd(t){return de(t?.then)}function Cd(t){return de(t[la])}function wd(t){return Symbol.asyncIterator&&de(t?.[Symbol.asyncIterator])}function Ed(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const bd=function PD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Sd(t){return de(t?.[bd])}function Md(t){return function TD(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(h){return new Promise(function(p,g){o.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof On?Promise.resolve(f.value.v).then(u,c):d(o[0][2],f)}(r[f](h))}catch(p){d(o[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:i}=yield On(n.read());if(i)return yield On(void 0);yield yield On(r)}}finally{n.releaseLock()}})}function Id(t){return de(t?.getReader)}function gn(t){if(t instanceof Oe)return t;if(null!=t){if(Cd(t))return function OD(t){return new Oe(e=>{const n=t[la]();if(de(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(vd(t))return function RD(t){return new Oe(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,cd)})}(t);if(wd(t))return Ad(t);if(Sd(t))return function kD(t){return new Oe(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(Id(t))return function LD(t){return Ad(Md(t))}(t)}throw Ed(t)}function Ad(t){return new Oe(e=>{(function VD(t,e){var n,r,i,o;return function ID(t,e,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=ND(t);!(r=yield n.next()).done;)if(e.next(r.value),e.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})})(t,e).catch(n=>e.error(n))})}function mn(t,e,n,r=0,i=!1){const o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Td(t,e,n=1/0){return de(e)?Td((r,i)=>ca((o,s)=>e(r,o,i,s))(gn(t(r,i))),n):("number"==typeof e&&(n=e),qr((r,i)=>function BD(t,e,n,r,i,o,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&e.complete()},h=g=>u{o&&e.next(g),u++;let y=!1;gn(n(g,c++)).subscribe(Wr(e,_=>{i?.(_),o?h(_):e.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&up(_)):p(_)}f()}catch(_){e.error(_)}}))};return t.subscribe(Wr(e,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,t,n)))}const Nd=new Oe(t=>t.complete());function fa(t){return t[t.length-1]}function Fd(t,e=0){return qr((n,r)=>{n.subscribe(Wr(r,i=>mn(r,t,()=>r.next(i),e),()=>mn(r,t,()=>r.complete(),e),i=>mn(r,t,()=>r.error(i),e)))})}function Pd(t,e=0){return qr((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Od(t,e){if(!t)throw new Error("Iterable cannot be null");return new Oe(n=>{mn(n,e,()=>{const r=t[Symbol.asyncIterator]();mn(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Rd(t,e){return e?function ZD(t,e){if(null!=t){if(Cd(t))return function qD(t,e){return gn(t).pipe(Pd(e),Fd(e))}(t,e);if(vd(t))return function KD(t,e){return new Oe(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(Dd(t))return function WD(t,e){return gn(t).pipe(Pd(e),Fd(e))}(t,e);if(wd(t))return Od(t,e);if(Sd(t))return function QD(t,e){return new Oe(n=>{let r;return mn(n,e,()=>{r=t[bd](),mn(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>de(r?.return)&&r.return()})}(t,e);if(Id(t))return function YD(t,e){return Od(Md(t),e)}(t,e)}throw Ed(t)}(t,e):gn(t)}function XD(...t){const e=function GD(t){return function $D(t){return t&&de(t.schedule)}(fa(t))?t.pop():void 0}(t),n=function zD(t,e){return"number"==typeof fa(t)?t.pop():e}(t,1/0),r=t;return r.length?1===r.length?gn(r[0]):function jD(t=1/0){return Td(fd,t)}(n)(Rd(r,e)):Nd}function ha(t,e,...n){if(!0===e)return void t();if(!1===e)return;const r=new zr({next:()=>{r.unsubscribe(),t()}});return e(...n).subscribe(r)}function ie(t){for(let e in t)if(t[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function pa(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function se(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(se).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ga(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const eC=ie({__forward_ref__:ie});function oe(t){return t.__forward_ref__=oe,t.toString=function(){return se(this())},t}function F(t){return ma(t)?t():t}function ma(t){return"function"==typeof t&&t.hasOwnProperty(eC)&&t.__forward_ref__===oe}function ya(t){return t&&!!t.\u0275providers}const xd="https://g.co/ng/security#xss";class D extends Error{constructor(e,n){super(eo(e,n)),this.code=e}}function eo(t,e){return`NG0${Math.abs(t)}${e?": "+e.trim():""}`}function L(t){return"string"==typeof t?t:null==t?"":String(t)}function to(t,e){throw new D(-201,!1)}function dt(t,e){null==t&&function J(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function ee(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wt(t){return{providers:t.providers||[],imports:t.imports||[]}}function no(t){return kd(t,ro)||kd(t,Vd)}function kd(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ld(t){return t&&(t.hasOwnProperty(_a)||t.hasOwnProperty(aC))?t[_a]:null}const ro=ie({\u0275prov:ie}),_a=ie({\u0275inj:ie}),Vd=ie({ngInjectableDef:ie}),aC=ie({ngInjectorDef:ie});var k=(()=>((k=k||{})[k.Default=0]="Default",k[k.Host=1]="Host",k[k.Self=2]="Self",k[k.SkipSelf=4]="SkipSelf",k[k.Optional=8]="Optional",k))();let va;function ft(t){const e=va;return va=t,e}function Bd(t,e,n){const r=no(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&k.Optional?null:void 0!==e?e:void to(se(t))}const le=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Kr={},Da="__NG_DI_FLAG__",io="ngTempTokenPath",uC="ngTokenPath",cC=/\n/gm,dC="\u0275",jd="__source";let Qr;function Jn(t){const e=Qr;return Qr=t,e}function fC(t,e=k.Default){if(void 0===Qr)throw new D(-203,!1);return null===Qr?Bd(t,void 0,e):Qr.get(t,e&k.Optional?null:void 0,e)}function H(t,e=k.Default){return(function lC(){return va}()||fC)(F(t),e)}function oo(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ca(t){const e=[];for(let n=0;n((Lt=Lt||{})[Lt.OnPush=0]="OnPush",Lt[Lt.Default=1]="Default",Lt))(),Et=(()=>{return(t=Et||(Et={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Et;var t})();const Yt={},Z=[],so=ie({\u0275cmp:ie}),wa=ie({\u0275dir:ie}),Ea=ie({\u0275pipe:ie}),Ud=ie({\u0275mod:ie}),Zt=ie({\u0275fac:ie}),Zr=ie({__NG_ELEMENT_ID__:ie});let mC=0;function _n(t){return Qt(()=>{const e=zd(t),n={...e,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c"+mC++,styles:t.styles||Z,_:null,schemas:t.schemas||null,tView:null};qd(n);const r=t.dependencies;return n.directiveDefs=ao(r,!1),n.pipeDefs=ao(r,!0),n})}function _C(t){return te(t)||Re(t)}function vC(t){return null!==t}function Vt(t){return Qt(()=>({type:t.type,bootstrap:t.bootstrap||Z,declarations:t.declarations||Z,imports:t.imports||Z,exports:t.exports||Z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Gd(t,e){if(null==t)return Yt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}function V(t){return Qt(()=>{const e=zd(t);return qd(e),e})}function Qe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function te(t){return t[so]||null}function Re(t){return t[wa]||null}function Ye(t){return t[Ea]||null}function zd(t){const e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Z,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gd(t.inputs,e),outputs:Gd(t.outputs)}}function qd(t){t.features?.forEach(e=>e(t))}function ao(t,e){if(!t)return null;const n=e?Ye:_C;return()=>("function"==typeof t?t():t).map(r=>n(r)).filter(vC)}const Xt=0,I=1,$=2,ge=3,bt=4,Rn=5,xe=6,er=7,ye=8,lo=9,uo=10,G=11,ba=12,Jr=13,Wd=14,tr=15,ke=16,ei=17,nr=18,Bt=19,ti=20,Kd=21,ue=22,Sa=1,Qd=2,co=7,fo=8,rr=9,Ue=10;function rt(t){return Array.isArray(t)&&"object"==typeof t[Sa]}function St(t){return Array.isArray(t)&&!0===t[Sa]}function Ma(t){return 0!=(4&t.flags)}function ni(t){return t.componentOffset>-1}function ho(t){return 1==(1&t.flags)}function Mt(t){return!!t.template}function CC(t){return 0!=(256&t[$])}function xn(t,e){return t.hasOwnProperty(Zt)?t[Zt]:null}class bC{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Jt(){return Xd}function Xd(t){return t.type.prototype.ngOnChanges&&(t.setInput=MC),SC}function SC(){const t=ef(this),e=t?.current;if(e){const n=t.previous;if(n===Yt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function MC(t,e,n,r){const i=this.declaredInputs[n],o=ef(t)||function IC(t,e){return t[Jd]=e}(t,{previous:Yt,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new bC(l&&l.currentValue,e,a===Yt),t[r]=e}Jt.ngInherit=!0;const Jd="__ngSimpleChanges__";function ef(t){return t[Jd]||null}const ht=function(t,e,n){},tf="svg";function Fe(t){for(;Array.isArray(t);)t=t[Xt];return t}function po(t,e){return Fe(e[t])}function it(t,e){return Fe(e[t.index])}function rf(t,e){return t.data[e]}function Ze(t,e){const n=e[t];return rt(n)?n:n[Xt]}function go(t){return 64==(64&t[$])}function vn(t,e){return null==e?null:t[e]}function of(t){t[nr]=0}function Aa(t,e){t[Rn]+=e;let n=t,r=t[ge];for(;null!==r&&(1===e&&1===n[Rn]||-1===e&&0===n[Rn]);)r[Rn]+=e,n=r,r=r[ge]}const B={lFrame:gf(null),bindingsEnabled:!0};function af(){return B.bindingsEnabled}function v(){return B.lFrame.lView}function W(){return B.lFrame.tView}function Pe(){let t=lf();for(;null!==t&&64===t.type;)t=t.parent;return t}function lf(){return B.lFrame.currentTNode}function jt(t,e){const n=B.lFrame;n.currentTNode=t,n.isParent=e}function Ta(){return B.lFrame.isParent}function Na(){B.lFrame.isParent=!1}function or(){return B.lFrame.bindingIndex++}function $C(t,e){const n=B.lFrame;n.bindingIndex=n.bindingRootIndex=t,Fa(e)}function Fa(t){B.lFrame.currentDirectiveIndex=t}function ff(){return B.lFrame.currentQueryIndex}function Oa(t){B.lFrame.currentQueryIndex=t}function GC(t){const e=t[I];return 2===e.type?e.declTNode:1===e.type?t[xe]:null}function hf(t,e,n){if(n&k.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&k.Host||(i=GC(o),null===i||(o=o[tr],10&i.type))););if(null===i)return!1;e=i,t=o}const r=B.lFrame=pf();return r.currentTNode=e,r.lView=t,!0}function Ra(t){const e=pf(),n=t[I];B.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pf(){const t=B.lFrame,e=null===t?null:t.child;return null===e?gf(t):e}function gf(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function mf(){const t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const yf=mf;function xa(){const t=mf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ze(){return B.lFrame.selectedIndex}function kn(t){B.lFrame.selectedIndex=t}function fe(){const t=B.lFrame;return rf(t.tView,t.selectedIndex)}function mo(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[l]<0&&(t[nr]+=65536),(a>11>16&&(3&t[$])===e){t[$]+=2048,ht(4,a,o);try{o.call(a)}finally{ht(5,a,o)}}}else{ht(4,a,o);try{o.call(a)}finally{ht(5,a,o)}}}const sr=-1;class ii{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Va(t,e,n){let r=0;for(;re){s=o-1;break}}}for(;o>16}(t),r=e;for(;n>0;)r=r[tr],n--;return r}let Ba=!0;function Co(t){const e=Ba;return Ba=t,e}const bf=255,Sf=5;let rw=0;const Ht={};function wo(t,e){const n=Mf(t,e);if(-1!==n)return n;const r=e[I];r.firstCreatePass&&(t.injectorIndex=e.length,ja(r.data,t),ja(e,null),ja(r.blueprint,null));const i=Ha(t,e),o=t.injectorIndex;if(Ef(i)){const s=vo(i),a=Do(i,e),l=a[I].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|l[s+u]}return e[o+8]=i,o}function ja(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Mf(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ha(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){if(r=Of(i),null===r)return sr;if(n++,i=i[tr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return sr}function $a(t,e,n){!function iw(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Zr)&&(r=n[Zr]),null==r&&(r=n[Zr]=rw++);const i=r&bf;e.data[t+(i>>Sf)]|=1<=0?e&bf:lw:e}(n);if("function"==typeof o){if(!hf(e,t,r))return r&k.Host?If(i,0,r):Af(e,n,r,i);try{const s=o(r);if(null!=s||r&k.Optional)return s;to()}finally{yf()}}else if("number"==typeof o){let s=null,a=Mf(t,e),l=sr,u=r&k.Host?e[ke][xe]:null;for((-1===a||r&k.SkipSelf)&&(l=-1===a?Ha(t,e):e[a+8],l!==sr&&Pf(r,!1)?(s=e[I],a=vo(l),e=Do(l,e)):a=-1);-1!==a;){const c=e[I];if(Ff(o,a,c.data)){const d=sw(a,e,n,s,r,u);if(d!==Ht)return d}l=e[a+8],l!==sr&&Pf(r,e[I].data[a+8]===u)&&Ff(o,a,e)?(s=c,a=vo(l),e=Do(l,e)):a=-1}}return i}function sw(t,e,n,r,i,o){const s=e[I],a=s.data[t+8],c=Eo(a,s,n,null==r?ni(a)&&Ba:r!=s&&0!=(3&a.type),i&k.Host&&o===a);return null!==c?Ln(e,s,c,a):Ht}function Eo(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=o>>20,f=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(i){const h=s[l];if(h&&Mt(h)&&h.type===n)return l}return null}function Ln(t,e,n,r){let i=t[n];const o=e.data;if(function JC(t){return t instanceof ii}(i)){const s=i;s.resolving&&function tC(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new D(-200,`Circular dependency in DI detected for ${t}${n}`)}(function X(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():L(t)}(o[n]));const a=Co(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ft(s.injectImpl):null;hf(t,r,k.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function ZC(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const s=Xd(e);(n.preOrderHooks??(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&ft(l),Co(a),s.resolving=!1,yf()}}return i}function Ff(t,e,n){return!!(n[e+(t>>Sf)]&1<{const e=Ua(F(t));return e&&e()}:xn(t)}function Of(t){const e=t[I],n=e.type;return 2===n?e.declTNode:1===n?t[xe]:null}class R{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=ee({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Vn(t,e){t.forEach(n=>Array.isArray(n)?Vn(n,e):e(n))}function xf(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function bo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function li(t,e){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function hw(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function Wa(t,e){const n=fr(t,e);if(n>=0)return t[1|n]}function fr(t,e){return function kf(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<((Xe=Xe||{})[Xe.Important=1]="Important",Xe[Xe.DashCase=2]="DashCase",Xe))();const Ja=new Map;let xw=0;const tl="__ngContext__";function Ve(t,e){rt(e)?(t[tl]=e[ti],function Lw(t){Ja.set(t[ti],t)}(e)):t[tl]=e}let nl;function rl(t,e){return nl(t,e)}function fi(t){const e=t[ge];return St(e)?e[ge]:e}function il(t){return nh(t[Jr])}function ol(t){return nh(t[bt])}function nh(t){for(;null!==t&&!St(t);)t=t[bt];return t}function pr(t,e,n,r,i){if(null!=r){let o,s=!1;St(r)?o=r:rt(r)&&(s=!0,r=r[Xt]);const a=Fe(r);0===t&&null!==n?null==i?lh(e,n,a):Bn(e,n,a,i||null,!0):1===t&&null!==n?Bn(e,n,a,i||null,!0):2===t?function fl(t,e,n){const r=No(t,e);r&&function rE(t,e,n,r){t.removeChild(e,n,r)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function sE(t,e,n,r,i){const o=n[co];o!==Fe(n)&&pr(e,t,r,o,i);for(let a=Ue;a0&&(t[n-1][bt]=r[bt]);const o=bo(t,Ue+e);!function Qw(t,e){hi(t,e,e[G],2,null,null),e[Xt]=null,e[xe]=null}(r[I],r);const s=o[Bt];null!==s&&s.detachView(o[I]),r[ge]=null,r[bt]=null,r[$]&=-65}return r}function oh(t,e){if(!(128&e[$])){const n=e[G];n.destroyNode&&hi(t,e,n,3,null,null),function Xw(t){let e=t[Jr];if(!e)return ul(t[I],t);for(;e;){let n=null;if(rt(e))n=e[Jr];else{const r=e[Ue];r&&(n=r)}if(!n){for(;e&&!e[bt]&&e!==t;)rt(e)&&ul(e[I],e),e=e[ge];null===e&&(e=t),rt(e)&&ul(e[I],e),n=e&&e[bt]}e=n}}(e)}}function ul(t,e){if(!(128&e[$])){e[$]&=-65,e[$]|=128,function nE(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=t.data[r.directiveStart+i];if(o===Et.None||o===Et.Emulated)return null}return it(r,n)}}(t,e.parent,n)}function Bn(t,e,n,r,i){t.insertBefore(e,n,r,i)}function lh(t,e,n){t.appendChild(e,n)}function uh(t,e,n,r,i){null!==r?Bn(t,e,n,r,i):lh(t,e,n)}function No(t,e){return t.parentNode(e)}function ch(t,e,n){return fh(t,e,n)}let cl,gl,fh=function dh(t,e,n){return 40&t.type?it(t,n):null};function Fo(t,e,n,r){const i=sh(t,r,e),o=e[G],a=ch(r.parent||e[xe],r,e);if(null!=i)if(Array.isArray(n))for(let l=0;l((Ce=Ce||{})[Ce.NONE=0]="NONE",Ce[Ce.HTML=1]="HTML",Ce[Ce.STYLE=2]="STYLE",Ce[Ce.SCRIPT=3]="SCRIPT",Ce[Ce.URL=4]="URL",Ce[Ce.RESOURCE_URL=5]="RESOURCE_URL",Ce))();function Cl(t){const e=function mi(){const t=v();return t&&t[ba]}();return e?e.sanitize(Ce.URL,t)||"":function pi(t,e){const n=function _E(t){return t instanceof wh&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${xd})`)}return n===e}(t,"URL")?Dn(t):function yl(t){return(t=String(t)).match(wE)?t:"unsafe:"+t}(L(t))}const Nh=new R("ENVIRONMENT_INITIALIZER"),Fh=new R("INJECTOR",-1),Ph=new R("INJECTOR_DEF_TYPES");class Oh{get(e,n=Kr){if(n===Kr){const r=new Error(`NullInjectorError: No provider for ${se(e)}!`);throw r.name="NullInjectorError",r}return n}}function kE(...t){return{\u0275providers:Rh(0,t),\u0275fromNgModule:!0}}function Rh(t,...e){const n=[],r=new Set;let i;return Vn(e,o=>{const s=o;wl(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&xh(i,n),n}function xh(t,e){for(let n=0;n{e.push(o)})}}function wl(t,e,n,r){if(!(t=F(t)))return!1;let i=null,o=Ld(t);const s=!o&&te(t);if(o||s){if(s&&!s.standalone)return!1;i=t}else{const l=t.ngModule;if(o=Ld(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)wl(u,e,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Vn(o.imports,c=>{wl(c,e,n,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&xh(u,e)}if(!a){const u=xn(i)||(()=>new i);e.push({provide:i,useFactory:u,deps:Z},{provide:Ph,useValue:i,multi:!0},{provide:Nh,useValue:()=>H(i),multi:!0})}const l=o.providers;null==l||a||El(l,c=>{e.push(c)})}}return i!==t&&void 0!==t.providers}function El(t,e){for(let n of t)ya(n)&&(n=n.\u0275providers),Array.isArray(n)?El(n,e):e(n)}const LE=ie({provide:String,useValue:ie});function bl(t){return null!==t&&"object"==typeof t&&LE in t}function jn(t){return"function"==typeof t}const Sl=new R("Set Injector scope."),ko={},BE={};let Ml;function Lo(){return void 0===Ml&&(Ml=new Oh),Ml}class mr{}class Vh extends mr{get destroyed(){return this._destroyed}constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Al(e,s=>this.processProvider(s)),this.records.set(Fh,yr(void 0,this)),i.has("environment")&&this.records.set(mr,yr(void 0,this));const o=this.records.get(Sl);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ph.multi,Z,k.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const n=Jn(this),r=ft(void 0);try{return e()}finally{Jn(n),ft(r)}}get(e,n=Kr,r=k.Default){this.assertNotDestroyed(),r=oo(r);const i=Jn(this),o=ft(void 0);try{if(!(r&k.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function GE(t){return"function"==typeof t||"object"==typeof t&&t instanceof R}(e)&&no(e);a=l&&this.injectableDefInScope(l)?yr(Il(e),ko):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&k.Self?Lo():this.parent).get(e,n=r&k.Optional&&n===Kr?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[io]=s[io]||[]).unshift(se(e)),i)throw s;return function pC(t,e,n,r){const i=t[io];throw e[jd]&&i.unshift(e[jd]),t.message=function gC(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==dC?t.slice(2):t;let i=se(e);if(Array.isArray(e))i=e.map(se).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):se(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(cC,"\n ")}`}("\n"+t.message,i,n,r),t[uC]=i,t[io]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{ft(o),Jn(i)}}resolveInjectorInitializers(){const e=Jn(this),n=ft(void 0);try{const r=this.get(Nh.multi,Z,k.Self);for(const i of r)i()}finally{Jn(e),ft(n)}}toString(){const e=[],n=this.records;for(const r of n.keys())e.push(se(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(e){let n=jn(e=F(e))?e:F(e&&e.provide);const r=function HE(t){return bl(t)?yr(void 0,t.useValue):yr(Bh(t),ko)}(e);if(jn(e)||!0!==e.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=yr(void 0,ko,!0),i.factory=()=>Ca(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){return n.value===ko&&(n.value=BE,n.value=n.factory()),"object"==typeof n.value&&n.value&&function UE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=F(e.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Il(t){const e=no(t),n=null!==e?e.factory:xn(t);if(null!==n)return n;if(t instanceof R)throw new D(204,!1);if(t instanceof Function)return function jE(t){const e=t.length;if(e>0)throw li(e,"?"),new D(204,!1);const n=function sC(t){return t&&(t[ro]||t[Vd])||null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new D(204,!1)}function Bh(t,e,n){let r;if(jn(t)){const i=F(t);return xn(i)||Il(i)}if(bl(t))r=()=>F(t.useValue);else if(function Lh(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Ca(t.deps||[]));else if(function kh(t){return!(!t||!t.useExisting)}(t))r=()=>H(F(t.useExisting));else{const i=F(t&&(t.useClass||t.provide));if(!function $E(t){return!!t.deps}(t))return xn(i)||Il(i);r=()=>new i(...Ca(t.deps))}return r}function yr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Al(t,e){for(const n of t)Array.isArray(n)?Al(n,e):n&&ya(n)?Al(n.\u0275providers,e):e(n)}class zE{}class jh{}class WE{resolveComponentFactory(e){throw function qE(t){const e=Error(`No component factory found for ${se(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Vo=(()=>{class t{}return t.NULL=new WE,t})();function KE(){return _r(Pe(),v())}function _r(t,e){return new It(it(t,e))}let It=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=KE,t})();function QE(t){return t instanceof It?t.nativeElement:t}class yi{}let Hn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function YE(){const t=v(),n=Ze(Pe().index,t);return(rt(n)?n:t)[G]}(),t})(),ZE=(()=>{class t{}return t.\u0275prov=ee({token:t,providedIn:"root",factory:()=>null}),t})();class Bo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const $h=new Bo("15.2.10"),Tl={},Nl="ngOriginalError";function Fl(t){return t[Nl]}class vr{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Fl(e);for(;n&&Fl(n);)n=Fl(n);return n||null}}function Gh(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}const zh="ng-template";function lb(t,e,n){let r=0,i=!0;for(;ro?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gh(h,u,0)||2&r&&u!==f){if(At(r))return!1;s=!0}}}}else{if(!s&&!At(r)&&!At(l))return!1;if(s&&At(l))continue;s=!1,r=l|1&r}}return At(r)||s}function At(t){return 0==(1&t)}function db(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!At(s)&&(e+=Kh(o,i),i=""),r=s,o=o||!At(r);n++}return""!==i&&(e+=Kh(o,i)),e}const j={};function ne(t){Qh(W(),v(),ze()+t,!1)}function Qh(t,e,n,r){if(!r)if(3==(3&e[$])){const o=t.preOrderCheckHooks;null!==o&&yo(e,o,n)}else{const o=t.preOrderHooks;null!==o&&_o(e,o,0,n)}kn(n)}function Jh(t,e=null,n=null,r){const i=ep(t,e,n,r);return i.resolveInjectorInitializers(),i}function ep(t,e=null,n=null,r,i=new Set){const o=[n||Z,kE(t)];return r=r||("object"==typeof t?void 0:se(t)),new Vh(o,e||Lo(),r||null,i)}let Cn=(()=>{class t{static create(n,r){if(Array.isArray(n))return Jh({name:""},r,n,"");{const i=n.name??"";return Jh({name:i},n.parent,n.providers,i)}}}return t.THROW_IF_NOT_FOUND=Kr,t.NULL=new Oh,t.\u0275prov=ee({token:t,providedIn:"any",factory:()=>H(Fh)}),t.__NG_ELEMENT_ID__=-1,t})();function C(t,e=k.Default){const n=v();return null===n?H(t,e):Tf(Pe(),n,F(t),e)}function ap(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rue&&Qh(t,e,ue,!1),ht(s?2:0,i),n(r,i)}finally{kn(o),ht(s?3:1,i)}}function Vl(t,e,n){if(Ma(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(t,e,r,_i(t,n,i.hostVars,j),i)}function $t(t,e,n,r,i,o){const s=it(t,e);!function Gl(t,e,n,r,i,o,s){if(null==o)t.removeAttribute(e,i,n);else{const a=null==s?L(o):s(o,r||"",i);t.setAttribute(e,i,a,n)}}(e[G],s,o,t.value,n,r,i)}function iS(t,e,n,r,i,o){const s=o[e];if(null!==s){const a=r.setInput;for(let l=0;l0&&zl(n)}}function zl(t){for(let r=il(t);null!==r;r=ol(r))for(let i=Ue;i0&&zl(o)}const n=t[I].components;if(null!==n)for(let r=0;r0&&zl(i)}}function uS(t,e){const n=Ze(e,t),r=n[I];(function cS(t,e){for(let n=e.length;n-1&&(ll(e,r),bo(n,r))}this._attachedToViewContainer=!1}oh(this._lView[I],this._lView)}onDestroy(e){cp(this._lView[I],this._lView,null,e)}markForCheck(){Go(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){zo(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Zw(t,e){hi(t,e,e[G],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=e}}class dS extends vi{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;zo(e[I],e,e[ye],!1)}checkNoChanges(){}get context(){return null}}class Dp extends Vo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=te(e);return new Di(n,this.ngModule)}}function Cp(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class hS{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=oo(r);const i=this.injector.get(e,Tl,r);return i!==Tl||n===Tl?i:this.parentInjector.get(e,n,r)}}class Di extends jh{get inputs(){return Cp(this.componentDef.inputs)}get outputs(){return Cp(this.componentDef.outputs)}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function yb(t){return t.map(mb).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}create(e,n,r,i){let o=(i=i||this.ngModule)instanceof mr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new hS(e,o):e,a=s.get(yi,null);if(null===a)throw new D(407,!1);const l=s.get(ZE,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function $b(t,e,n){return t.selectRootElement(e,n===Et.ShadowDom)}(u,r,this.componentDef.encapsulation):al(u,c,function fS(t){const e=t.toLowerCase();return"svg"===e?tf:"math"===e?"math":null}(c)),f=this.componentDef.onPush?288:272,h=Hl(0,null,null,1,0,null,null,null,null,null),p=Ho(null,h,null,f,null,null,a,u,l,s,null);let g,y;Ra(p);try{const _=this.componentDef;let w,m=null;_.findHostDirectiveDefs?(w=[],m=new Map,_.findHostDirectiveDefs(_,w,m),w.push(_)):w=[_];const M=function gS(t,e){const n=t[I],r=ue;return t[r]=e,wr(n,r,2,"#host",null)}(p,d),z=function mS(t,e,n,r,i,o,s,a){const l=i[I];!function yS(t,e,n,r){for(const i of t)e.mergedAttrs=oi(e.mergedAttrs,i.hostAttrs);null!==e.mergedAttrs&&(qo(e,e.mergedAttrs,!0),null!==n&&yh(r,n,e))}(r,t,e,s);const u=o.createRenderer(e,n),c=Ho(i,up(n),null,n.onPush?32:16,i[t.index],t,o,u,a||null,null,null);return l.firstCreatePass&&Ul(l,t,r.length-1),Uo(i,c),i[t.index]=c}(M,d,_,w,p,a,u);y=rf(h,ue),d&&function vS(t,e,n,r){if(r)Va(t,n,["ng-version",$h.full]);else{const{attrs:i,classes:o}=function _b(t){const e=[],n=[];let r=1,i=2;for(;r0&&mh(t,n,o.join(" "))}}(u,_,d,r),void 0!==n&&function DS(t,e,n){const r=t.projection=[];for(let i=0;i=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=oi(i.hostAttrs,n=oi(n,i.hostAttrs))}}(r)}function Kl(t){return t===Yt?{}:t===Z?[]:t}function ES(t,e){const n=t.viewQuery;t.viewQuery=n?(r,i)=>{e(r,i),n(r,i)}:e}function bS(t,e){const n=t.contentQueries;t.contentQueries=n?(r,i,o)=>{e(r,i,o),n(r,i,o)}:e}function SS(t,e){const n=t.hostBindings;t.hostBindings=n?(r,i)=>{e(r,i),n(r,i)}:e}function Be(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function mt(t,e,n,r){const i=v();return Be(i,or(),e)&&(W(),$t(fe(),i,t,e,n,r)),mt}function Pr(t,e,n,r,i,o,s,a){const l=v(),u=W(),c=t+ue,d=u.firstCreatePass?function xS(t,e,n,r,i,o,s,a,l){const u=e.consts,c=wr(e,t,4,s||null,vn(u,a));$l(e,n,c,vn(u,l)),mo(e,c);const d=c.tView=Hl(2,c,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,n,r,i,o,s):u.data[c];jt(d,!1);const f=l[G].createComment("");Fo(u,l,f,d),Ve(f,l),Uo(l,l[c]=gp(f,l,f,d)),ho(d)&&Bl(u,l,d),null!=s&&jl(l,d,a)}function Ae(t,e,n){const r=v();return Be(r,or(),e)&&function st(t,e,n,r,i,o,s,a){const l=it(e,n);let c,u=e.inputs;!a&&null!=u&&(c=u[r])?(Wl(t,n,c,r,i),ni(e)&&function qb(t,e){const n=Ze(e,t);16&n[$]||(n[$]|=32)}(n,e.index)):3&e.type&&(r=function zb(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=s?s(i,e.value||"",r):i,o.setProperty(l,r,i))}(W(),fe(),r,t,e,r[G],n,!1),Ae}function Yl(t,e,n,r,i){const s=i?"class":"style";Wl(t,n,e.inputs[s],s,r)}function b(t,e,n,r){const i=v(),o=W(),s=ue+t,a=i[G],l=o.firstCreatePass?function VS(t,e,n,r,i,o){const s=e.consts,l=wr(e,t,2,r,vn(s,i));return $l(e,n,l,vn(s,o)),null!==l.attrs&&qo(l,l.attrs,!1),null!==l.mergedAttrs&&qo(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,i,e,n,r):o.data[s],u=i[s]=al(a,e,function YC(){return B.lFrame.currentNamespace}()),c=ho(l);return jt(l,!0),yh(a,u,l),32!=(32&l.flags)&&Fo(o,i,u,l),0===function OC(){return B.lFrame.elementDepthCount}()&&Ve(u,i),function RC(){B.lFrame.elementDepthCount++}(),c&&(Bl(o,i,l),Vl(o,l,i)),null!==r&&jl(i,l),b}function E(){let t=Pe();Ta()?Na():(t=t.parent,jt(t,!1));const e=t;!function xC(){B.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(mo(n,t),Ma(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function ew(t){return 0!=(8&t.flags)}(e)&&Yl(n,e,v(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function tw(t){return 0!=(16&t.flags)}(e)&&Yl(n,e,v(),e.stylesWithoutHost,!1),E}function Q(t,e,n,r){return b(t,e,n,r),E(),Q}function Yo(t){return!!t&&"function"==typeof t.then}const Lp=function kp(t){return!!t&&"function"==typeof t.subscribe};function _e(t,e,n,r){const i=v(),o=W(),s=Pe();return function Bp(t,e,n,r,i,o,s){const a=ho(r),u=t.firstCreatePass&&yp(t),c=e[ye],d=mp(e);let f=!0;if(3&r.type||s){const g=it(r,e),y=s?s(g):g,_=d.length,w=s?M=>s(Fe(M[r.index])):r.index;let m=null;if(!s&&a&&(m=function HS(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,e,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=Hp(r,e,c,o,!1);const M=n.listen(y,i,o);d.push(o,M),u&&u.push(i,w,_,_+1)}}else o=Hp(r,e,c,o,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const g=p.length;if(g)for(let y=0;y-1?Ze(t.index,e):e);let l=jp(e,n,r,s),u=o.__ngNextListenerFn__;for(;u;)l=jp(e,n,u,s)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function $p(t=1){return function zC(t){return(B.lFrame.contextLView=function qC(t,e){for(;t>0;)e=e[tr],t--;return e}(t,B.lFrame.contextLView))[ye]}(t)}function $S(t,e){let n=null;const r=function fb(t){const e=t.attrs;if(null!=e){const n=e.indexOf(5);if(!(1&n))return e[n+1]}return null}(t);for(let i=0;i>17&32767}function eu(t){return 2|t}function Un(t){return(131068&t)>>2}function tu(t,e){return-131069&t|e<<2}function nu(t){return 1|t}function eg(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?wn(o):Un(o),l=!1;for(;0!==a&&(!1===l||s);){const c=t[a+1];KS(t[a],e)&&(l=!0,t[a+1]=r?nu(c):eu(c)),a=r?wn(c):Un(c)}l&&(t[n+1]=r?eu(o):nu(o))}function KS(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&fr(t,e)>=0}function Rr(t,e,n){return Tt(t,e,n,!1),Rr}function wi(t,e){return Tt(t,e,null,!0),wi}function Tt(t,e,n,r){const i=v(),o=W(),s=function tn(t){const e=B.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);o.firstUpdatePass&&function lg(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[ze()],s=function ag(t,e){return e>=t.expandoStartIndex}(t,n);(function fg(t,e){return 0!=(t.flags&(e?8:16))})(o,r)&&null===e&&!s&&(e=!1),e=function r0(t,e,n,r){const i=function Pa(t){const e=B.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Ei(n=ru(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=ru(i,t,e,n,r),null===o){let l=function o0(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Un(r))return t[wn(r)]}(t,e,r);void 0!==l&&Array.isArray(l)&&(l=ru(null,t,e,l[1],r),l=Ei(l,e.attrs,r),function s0(t,e,n,r){t[wn(n?e.classBindings:e.styleBindings)]=r}(t,e,r,l))}else o=function a0(t,e,n){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)):c=n,i)if(0!==l){const f=wn(t[a+1]);t[r+1]=Zo(f,a),0!==f&&(t[f+1]=tu(t[f+1],r)),t[a+1]=function GS(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=Zo(a,0),0!==a&&(t[a+1]=tu(t[a+1],r)),a=r;else t[r+1]=Zo(l,0),0===a?a=r:t[l+1]=tu(t[l+1],r),l=r;u&&(t[r+1]=eu(t[r+1])),eg(t,c,r,!0),eg(t,c,r,!1),function WS(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&fr(o,e)>=0&&(n[r+1]=nu(n[r+1]))}(e,c,t,r,o),s=Zo(a,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}(o,t,s,r),e!==j&&Be(i,s,e)&&function cg(t,e,n,r,i,o,s,a){if(!(3&e.type))return;const l=t.data,u=l[a+1],c=function zS(t){return 1==(1&t)}(u)?dg(l,e,n,i,Un(u),s):void 0;Xo(c)||(Xo(o)||function US(t){return 2==(2&t)}(u)&&(o=dg(l,null,n,i,a,s)),function aE(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=-1===r.indexOf("-")?void 0:Xe.DashCase;null==i?t.removeStyle(n,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Xe.Important),t.setStyle(n,r,i,o))}}(r,s,po(ze(),n),i,o))}(o,o.data[ze()],i,i[G],t,i[s+1]=function d0(t,e){return null==t||""===t||("string"==typeof e?t+=e:"object"==typeof t&&(t=se(Dn(t)))),t}(e,n),r,s)}function ru(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=t[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[i+1];f===j&&(f=d?Z:void 0);let h=d?Wa(f,r):c===r?f:void 0;if(u&&!Xo(h)&&(h=Wa(l,r)),Xo(h)&&(a=h,s))return a;const p=t[i+1];i=s?wn(p):Un(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=Wa(l,r))}return a}function Xo(t){return void 0!==t}function x(t,e=""){const n=v(),r=W(),i=t+ue,o=r.firstCreatePass?wr(r,i,1,e,null):r.data[i],s=n[i]=function sl(t,e){return t.createText(e)}(n[G],e);Fo(r,n,s,o),jt(o,!1)}function Jo(t){return Ft("",t,""),Jo}function Ft(t,e,n){const r=v(),i=function br(t,e,n,r){return Be(t,or(),n)?e+L(n)+r:j}(r,t,e,n);return i!==j&&function on(t,e,n){const r=po(e,t);!function rh(t,e,n){t.setValue(e,n)}(t[G],r,n)}(r,ze(),i),Ft}const kr="en-US";let Rg=kr;function su(t,e,n,r,i){if(t=F(t),Array.isArray(t))for(let o=0;o>20;if(jn(t)||!t.multi){const h=new ii(l,i,C),p=lu(a,e,i?c:c+f,d);-1===p?($a(wo(u,s),o,a),au(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=lu(a,e,c+f,d),p=lu(a,e,c,c+f),y=p>=0&&n[p];if(i&&!y||!i&&!(h>=0&&n[h])){$a(wo(u,s),o,a);const _=function TM(t,e,n,r,i){const o=new ii(t,n,C);return o.multi=[],o.index=e,o.componentProviders=0,om(o,i,r&&!n),o}(i?AM:IM,n.length,i,r,l);!i&&y&&(n[p].providerFactory=_),au(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(_),s.push(_)}else au(o,t,h>-1?h:p,om(n[i?p:h],l,!i&&r));!i&&r&&y&&n[p].componentProviders++}}}function au(t,e,n,r){const i=jn(e),o=function VE(t){return!!t.useClass}(e);if(i||o){const l=(o?F(e.useClass):e).prototype.ngOnDestroy;if(l){const u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function om(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function lu(t,e,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function MM(t,e,n){const r=W();if(r.firstCreatePass){const i=Mt(t);su(n,r.data,r.blueprint,i,!0),su(e,r.data,r.blueprint,i,!1)}}(r,i?i(t):t,e)}}class Lr{}class NM{}class sm extends Lr{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dp(this);const r=function nt(t,e){const n=t[Ud]||null;if(!n&&!0===e)throw new Error(`Type ${se(t)} does not have '\u0275mod' property.`);return n}(e);this._bootstrapComponents=function rn(t){return t instanceof Function?t():t}(r.bootstrap),this._r3Injector=ep(e,n,[{provide:Lr,useValue:this},{provide:Vo,useValue:this.componentFactoryResolver}],se(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class cu extends NM{constructor(e){super(),this.moduleType=e}create(e){return new sm(this.moduleType,e)}}function pm(t,e,n,r,i,o){const s=e+n;return Be(t,s,i)?function Ut(t,e,n){return t[e]=n}(t,s+1,o?r.call(o,i):r(i)):function Ti(t,e){const n=t[e];return n===j?void 0:n}(t,s+1)}function fu(t,e){const n=W();let r;const i=t+ue;n.firstCreatePass?(r=function JM(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=xn(r.type)),s=ft(C);try{const a=Co(!1),l=o();return Co(a),function kS(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,v(),i,l),l}finally{ft(s)}}function hu(t,e,n){const r=t+ue,i=v(),o=function ir(t,e){return t[e]}(i,r);return function Ni(t,e){return t[I].data[e].pure}(i,r)?pm(i,function Ge(){const t=B.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,o.transform,n,o):o.transform(n)}function pu(t){return e=>{setTimeout(t,void 0,e)}}const Me=class iI extends ua{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=pu(o),i&&(i=pu(i)),s&&(s=pu(s)));const a=super.subscribe({next:i,error:o,complete:s});return e instanceof kt&&e.add(a),a}};function oI(){return this._results[Symbol.iterator]()}class gu{get changes(){return this._changes||(this._changes=new Me)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=gu.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=oI)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const i=function pt(t){return t.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function dw(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=lI,t})();const sI=sn,aI=class extends sI{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e,n){const r=this._declarationTContainer.tView,i=Ho(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,n||null);i[ei]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Bt];return null!==s&&(i[Bt]=s.createEmbeddedView(r)),Ll(r,i,e),new vi(i)}};function lI(){return is(Pe(),v())}function is(t,e){return 4&t.type?new aI(e,t,_r(t,e)):null}let qt=(()=>{class t{}return t.__NG_ELEMENT_ID__=uI,t})();function uI(){return Cm(Pe(),v())}const cI=qt,vm=class extends cI{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return _r(this._hostTNode,this._hostLView)}get injector(){return new ar(this._hostTNode,this._hostLView)}get parentInjector(){const e=Ha(this._hostTNode,this._hostLView);if(Ef(e)){const n=Do(e,this._hostLView),r=vo(e);return new ar(n[I].data[r+8],n)}return new ar(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=Dm(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(e,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=e.createEmbeddedView(n||{},o);return this.insert(s,i),s}createComponent(e,n,r,i,o){const s=e&&!function ai(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?e:new Di(te(e)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?u:this.parentInjector).get(mr,null);f&&(o=f)}const c=l.create(u,i,void 0,o);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,i=r[I];if(function PC(t){return St(t[ge])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[ge],f=new vm(d,d[xe],d[ge]);f.detach(f.indexOf(e))}}const o=this._adjustIndex(n),s=this._lContainer;!function Jw(t,e,n,r){const i=Ue+r,o=n.length;r>0&&(n[i-1][bt]=e),r0)r.push(s[a/2]);else{const u=o[a+1],c=e[-l];for(let d=Ue;d{class t{constructor(n){this.appInits=n,this.resolve=ss,this.reject=ss,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(H(Km,8))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Pi=new R("AppId",{providedIn:"root",factory:function Qm(){return`${Mu()}${Mu()}${Mu()}`}});function Mu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ym=new R("Platform Initializer"),Zm=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xm=new R("AnimationModuleType"),an=new R("LocaleId",{providedIn:"root",factory:()=>function $d(t,e=k.Default){return H(t,oo(e))}(an,k.Optional|k.SkipSelf)||function VI(){return typeof $localize<"u"&&$localize.locale||kr}()}),UI=(()=>Promise.resolve(0))();function Iu(t){typeof Zone>"u"?UI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Te{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function GI(){let t=le.requestAnimationFrame,e=le.cancelAnimationFrame;if(typeof Zone<"u"&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function WI(t){const e=()=>{!function qI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(le,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Tu(t),t.isCheckStableRunning=!0,Au(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Tu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return ty(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),ny(t)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return ty(t),n.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),ny(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Tu(t),Au(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new D(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,zI,ss,ss);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const zI={};function Au(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Tu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ty(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ny(t){t._nesting--,Au(t)}class KI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}const ry=new R(""),ls=new R("");let Pu,Nu=(()=>{class t{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Pu||(function QI(t){Pu=t}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Te.assertNotInAngularZone(),Iu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Iu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(H(Te),H(Fu),H(ls))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})(),Fu=(()=>{class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Pu?.findTestabilityInTree(this,n,r)??null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ln=!1;let En=null;const iy=new R("AllowMultipleToken"),Ou=new R("PlatformDestroyListeners"),YI=new R("appBootstrapListener");function sy(t,e,n=[]){const r=`Platform: ${e}`,i=new R(r);return(o=[])=>{let s=Ru();if(!s||s.injector.get(iy,!1)){const a=[...n,...o,{provide:i,useValue:!0}];t?t(a):function JI(t){if(En&&!En.get(iy,!1))throw new D(400,!1);En=t;const e=t.get(ly);(function oy(t){const e=t.get(Ym,null);e&&e.forEach(n=>n())})(t)}(function ay(t=[],e){return Cn.create({name:e,providers:[{provide:Sl,useValue:"platform"},{provide:Ou,useValue:new Set([()=>En=null])},...t]})}(a,r))}return function tA(t){const e=Ru();if(!e)throw new D(401,!1);return e}()}}function Ru(){return En?.get(ly)??null}let ly=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function cy(t,e){let n;return n="noop"===t?new KI:("zone.js"===t?void 0:t)||new Te(e),n}(r?.ngZone,function uy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Te,useValue:i}];return i.run(()=>{const s=Cn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),l=a.injector.get(vr,null);if(!l)throw new D(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{cs(this._modules,a),u.unsubscribe()})}),function dy(t,e,n){try{const r=n();return Yo(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(l,i,()=>{const u=a.injector.get(as);return u.runInitializers(),u.donePromise.then(()=>(function xg(t){dt(t,"Expected localeId to be defined"),"string"==typeof t&&(Rg=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(an,kr)||kr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=fy({},r);return function ZI(t,e,n){const r=new cu(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(us);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new D(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Ou,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(H(Cn))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function fy(t,e){return Array.isArray(e)?e.reduce(fy,t):{...t,...e}}let us=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Oe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Oe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Te.assertNotInAngularZone(),Iu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=XD(o,s.pipe(function JD(t={}){const{connector:e=(()=>new ua),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return qr((g,y)=>{u++,!d&&!c&&f();const _=l=l??e();y.add(()=>{u--,0===u&&!d&&!c&&(a=ha(p,i))}),_.subscribe(y),!s&&u>0&&(s=new zr({next:w=>_.next(w),error:w=>{d=!0,f(),a=ha(h,n,w),_.error(w)},complete:()=>{c=!0,f(),a=ha(h,r),_.complete()}}),gn(g).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof jh;if(!this._injector.get(as).done){!i&&function Xr(t){const e=te(t)||Re(t)||Ye(t);return null!==e&&e.standalone}(n);throw new D(405,ln)}let s;s=i?n:this._injector.get(Vo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function XI(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Lr),u=s.create(Cn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(ry,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),cs(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new D(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;cs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(YI,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>cs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(n){return new(n||t)(H(Te),H(mr),H(vr))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function cs(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let xu=(()=>{class t{}return t.__NG_ELEMENT_ID__=rA,t})();function rA(t){return function iA(t,e,n){if(ni(t)&&!n){const r=Ze(t.index,e);return new vi(r,r)}return 47&t.type?new vi(e[ke],e):null}(Pe(),v(),16==(16&t))}const yA=sy(null,"core",[]);let _A=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(H(us))},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({}),t})();let Hu=null;function jr(){return Hu}class CA{}const at=new R("DocumentToken");let Xu=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new fT,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ky("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ky("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(C(qt),C(sn))},t.\u0275dir=V({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class fT{constructor(){this.$implicit=null,this.ngIf=null}}function ky(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${se(e)}'.`)}let Vy=(()=>{class t{transform(n){return JSON.stringify(n,null,2)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275pipe=Qe({name:"json",type:t,pure:!1,standalone:!0}),t})(),jy=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({}),t})();class hN extends CA{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oc extends hN{static makeCurrent(){!function DA(t){Hu||(Hu=t)}(new oc)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function pN(){return Li=Li||document.querySelector("base"),Li?Li.getAttribute("href"):null}();return null==n?null:function gN(t){Ss=Ss||document.createElement("a"),Ss.setAttribute("href",t);const e=Ss.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Li=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function sT(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Ss,Li=null;const Wy=new R("TRANSITION_ID"),yN=[{provide:Km,useFactory:function mN(t,e,n){return()=>{n.get(as).donePromise.then(()=>{const r=jr(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();const Ms=new R("EventManagerPlugins");let Is=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const i=this.usageCount;let o=i.get(n)??0;return o+=r,o>0?i.set(n,o):i.delete(n),o}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})(),Vi=(()=>{class t extends Qy{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(o=>o.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const i=this.doc.createElement("style");i.textContent=r,n.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return t.\u0275fac=function(n){return new(n||t)(H(at))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();const sc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ac=/%COMP%/g,Xy=new R("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Jy(t,e){return e.flat(100).map(n=>n.replace(ac,t))}function e_(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let As=(()=>{class t{constructor(n,r,i,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new lc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof r_?i.applyToHost(n):i instanceof uc&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(r.encapsulation){case Et.Emulated:o=new r_(s,a,r,this.appId,l);break;case Et.ShadowDom:return new MN(s,a,n,r);default:o=new uc(s,a,r,l)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(H(Is),H(Vi),H(Pi),H(Xy))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();class lc{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(sc[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){(n_(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(n_(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const o=sc[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=sc[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(Xe.DashCase|Xe.Important)?e.style.setProperty(n,r,i&Xe.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Xe.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,e_(r)):this.eventManager.addEventListener(e,n,e_(r))}}function n_(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class MN extends lc{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Jy(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class uc extends lc{constructor(e,n,r,i,o=r.id){super(e),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=Jy(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class r_ extends uc{constructor(e,n,r,i,o){const s=i+"-"+r.id;super(e,n,r,o,s),this.contentAttr=function EN(t){return"_ngcontent-%COMP%".replace(ac,t)}(s),this.hostAttr=function bN(t){return"_nghost-%COMP%".replace(ac,t)}(s)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}let IN=(()=>{class t extends Ky{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(H(at))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();const i_=["alt","control","meta","shift"],AN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},TN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NN=(()=>{class t extends Ky{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jr().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),i_.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=AN[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),i_.forEach(s=>{s!==i&&(0,TN[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(H(at))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();const RN=sy(yA,"browser",[{provide:Zm,useValue:"browser"},{provide:Ym,useValue:function FN(){oc.makeCurrent()},multi:!0},{provide:at,useFactory:function ON(){return function fE(t){gl=t}(document),document},deps:[]}]),a_=new R(""),l_=[{provide:ls,useClass:class _N{addToWindow(e){le.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},le.getAllAngularTestabilities=()=>e.getAllTestabilities(),le.getAllAngularRootElements=()=>e.getAllRootElements(),le.frameworkStabilizers||(le.frameworkStabilizers=[]),le.frameworkStabilizers.push(r=>{const i=le.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){return null==n?null:e.getTestability(n)??(r?jr().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},deps:[]},{provide:ry,useClass:Nu,deps:[Te,Fu,ls]},{provide:Nu,useClass:Nu,deps:[Te,Fu,ls]}],u_=[{provide:Sl,useValue:"root"},{provide:vr,useFactory:function PN(){return new vr},deps:[]},{provide:Ms,useClass:IN,multi:!0,deps:[at,Te,Zm]},{provide:Ms,useClass:NN,multi:!0,deps:[at]},{provide:As,useClass:As,deps:[Is,Vi,Pi,Xy]},{provide:yi,useExisting:As},{provide:Qy,useExisting:Vi},{provide:Vi,useClass:Vi,deps:[at]},{provide:Is,useClass:Is,deps:[Ms,Te]},{provide:class jT{},useClass:vN,deps:[]},[]];let c_=(()=>{class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Pi,useValue:n.appId},{provide:Wy,useExisting:Pi},yN]}}}return t.\u0275fac=function(n){return new(n||t)(H(a_,12))},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({providers:[...u_,...l_],imports:[jy,_A]}),t})(),d_=(()=>{class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return t.\u0275fac=function(n){return new(n||t)(H(at))},t.\u0275prov=ee({token:t,factory:function(n){let r=null;return r=n?new n:function kN(){return new d_(H(at))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;class p_{}class $N{}const cn="*";function g_(t,e=null){return{type:2,steps:t,options:e}}function m_(t){return{type:6,styles:t,offset:null}}function y_(t){Promise.resolve().then(t)}class Bi{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){y_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class __{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,r=0,i=0;const o=this.players.length;0==o?y_(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}const fc="!";function v_(t){return new D(3e3,!1)}function EF(){return typeof window<"u"&&typeof window.document<"u"}function hc(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Sn(t){switch(t.length){case 0:return new Bi;case 1:return t[0];default:return new __(t)}}function D_(t,e,n,r,i=new Map,o=new Map){const s=[],a=[];let l=-1,u=null;if(r.forEach(c=>{const d=c.get("offset"),f=d==l,h=f&&u||new Map;c.forEach((p,g)=>{let y=g,_=p;if("offset"!==g)switch(y=e.normalizePropertyName(y,s),_){case fc:_=i.get(g);break;case cn:_=o.get(g);break;default:_=e.normalizeStyleValue(g,y,_,s)}h.set(y,_)}),f||a.push(h),u=h,l=d}),s.length)throw function dF(t){return new D(3502,!1)}();return a}function pc(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&gc(n,"start",t)));break;case"done":t.onDone(()=>r(n&&gc(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&gc(n,"destroy",t)))}}function gc(t,e,n){const o=mc(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n.totalTime??t.totalTime,!!n.disabled),s=t._data;return null!=s&&(o._data=s),o}function mc(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function lt(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function C_(t){const e=t.indexOf(":");return[t.substring(1,e),t.slice(e+1)]}let yc=(t,e)=>!1,w_=(t,e,n)=>[],E_=null;function _c(t){const e=t.parentNode||t.host;return e===E_?null:e}(hc()||typeof Element<"u")&&(EF()?(E_=(()=>document.documentElement)(),yc=(t,e)=>{for(;e;){if(e===t)return!0;e=_c(e)}return!1}):yc=(t,e)=>t.contains(e),w_=(t,e,n)=>{if(n)return Array.from(t.querySelectorAll(e));const r=t.querySelector(e);return r?[r]:[]});let qn=null,b_=!1;const S_=yc,M_=w_;let I_=(()=>{class t{validateStyleProperty(n){return function SF(t){qn||(qn=function MF(){return typeof document<"u"?document.body:null}()||{},b_=!!qn.style&&"WebkitAppearance"in qn.style);let e=!0;return qn.style&&!function bF(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in qn.style,!e&&b_&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in qn.style)),e}(n)}matchesElement(n,r){return!1}containsElement(n,r){return S_(n,r)}getParentElement(n){return _c(n)}query(n,r,i){return M_(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,s,a=[],l){return new Bi(i,o)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})(),vc=(()=>{class t{}return t.NOOP=new I_,t})();const IF=1e3,Dc="ng-enter",Ts="ng-leave",Ns="ng-trigger",Fs=".ng-trigger",T_="ng-animating",Cc=".ng-animating";function dn(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wc(parseFloat(e[1]),e[2])}function wc(t,e){return"s"===e?t*IF:t}function Ps(t,e,n){return t.hasOwnProperty("duration")?t:function TF(t,e,n){let i,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(v_()),{duration:0,delay:0,easing:""};i=wc(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=wc(parseFloat(l),a[4]));const u=a[5];u&&(s=u)}else i=t;if(!n){let a=!1,l=e.length;i<0&&(e.push(function UN(){return new D(3100,!1)}()),a=!0),o<0&&(e.push(function GN(){return new D(3101,!1)}()),a=!0),a&&e.splice(l,0,v_())}return{duration:i,delay:o,easing:s}}(t,e,n)}function ji(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function N_(t){const e=new Map;return Object.keys(t).forEach(n=>{e.set(n,t[n])}),e}function Mn(t,e=new Map,n){if(n)for(let[r,i]of n)e.set(r,i);for(let[r,i]of t)e.set(r,i);return e}function P_(t,e,n){return n?e+":"+n+";":""}function O_(t){let e="";for(let n=0;n{const o=bc(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r}),hc()&&O_(t))}function Wn(t,e){t.style&&(e.forEach((n,r)=>{const i=bc(r);t.style[i]=""}),hc()&&O_(t))}function Hi(t){return Array.isArray(t)?1==t.length?t[0]:g_(t):t}const Ec=new RegExp("{{\\s*(.+?)\\s*}}","g");function R_(t){let e=[];if("string"==typeof t){let n;for(;n=Ec.exec(t);)e.push(n[1]);Ec.lastIndex=0}return e}function $i(t,e,n){const r=t.toString(),i=r.replace(Ec,(o,s)=>{let a=e[s];return null==a&&(n.push(function qN(t){return new D(3003,!1)}()),a=""),a.toString()});return i==r?t:i}function Os(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const PF=/-+([a-z0-9])/g;function bc(t){return t.replace(PF,(...e)=>e[1].toUpperCase())}function OF(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ut(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function WN(t){return new D(3004,!1)}()}}function x_(t,e){return window.getComputedStyle(t)[e]}const ks="*";function BF(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function jF(t,e,n){if(":"==t[0]){const l=function HF(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}(t,n);if("function"==typeof l)return void e.push(l);t=l}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function sF(t){return new D(3015,!1)}()),e;const i=r[1],o=r[2],s=r[3];e.push(k_(i,s));"<"==o[0]&&!(i==ks&&s==ks)&&e.push(k_(s,i))}(r,n,e)):n.push(t),n}const Ls=new Set(["true","1"]),Vs=new Set(["false","0"]);function k_(t,e){const n=Ls.has(t)||Vs.has(t),r=Ls.has(e)||Vs.has(e);return(i,o)=>{let s=t==ks||t==i,a=e==ks||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?Ls.has(t):Vs.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?Ls.has(e):Vs.has(e)),s&&a}}const $F=new RegExp("s*:selfs*,?","g");function Sc(t,e,n,r){return new UF(t).build(e,n,r)}class UF{constructor(e){this._driver=e}build(e,n,r){const i=new qF(n);return this._resetContextStyleTimingState(i),ut(this,Hi(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&n.errors.push(function QN(){return new D(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,o.push(this.visitState(l,n))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,n);r+=l.queryCount,i+=l.depCount,s.push(l)}else n.errors.push(function YN(){return new D(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,n){const r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{R_(l).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&(Os(o.values()),n.errors.push(function ZN(t,e){return new D(3008,!1)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const r=ut(this,Hi(e.animation),n);return{type:1,matchers:BF(e.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Kn(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(r=>ut(this,r,n)),options:Kn(e.options)}}visitGroup(e,n){const r=n.currentTime;let i=0;const o=e.steps.map(s=>{n.currentTime=r;const a=ut(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:3,steps:o,options:Kn(e.options)}}visitAnimate(e,n){const r=function KF(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Mc(Ps(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Mc(0,0,"");return o.dynamic=!0,o.strValue=n,o}const i=Ps(n,e);return Mc(i.duration,i.delay,i.easing)}(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:m_({});if(5==o.type)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;const u={};r.easing&&(u.easing=r.easing),s=m_(u)}n.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,n);l.isEmptyStep=a,i=l}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,n){const r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){const r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)"string"==typeof a?a===cn?r.push(a):n.errors.push(new D(3002,!1)):r.push(N_(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){const r=n.currentAnimateTimings;let i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const u=n.collectedStyles.get(n.currentQuerySelector),c=u.get(l);let d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(n.errors.push(function JN(t,e,n,r,i){return new D(3010,!1)}()),d=!1),o=c.startTime),d&&u.set(l,{startTime:o,endTime:i}),n.options&&function FF(t,e,n){const r=e.params||{},i=R_(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(function zN(t){return new D(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(e,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function eF(){return new D(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,u=0;const c=e.steps.map(_=>{const w=this._makeStyleAst(_,n);let m=null!=w.offset?w.offset:function WF(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}(w.styles),M=0;return null!=m&&(o++,M=w.offset=m),l=l||M<0||M>1,a=a||M0&&o{const m=f>0?w==h?1:f*w:s[w],M=m*y;n.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(_,n),_.offset=m,r.styles.push(_)}),r}visitReference(e,n){return{type:8,animation:ut(this,Hi(e.animation),n),options:Kn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:Kn(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:Kn(e.options)}}visitQuery(e,n){const r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;const[o,s]=function GF(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace($F,"")),t=t.replace(/@\*/g,Fs).replace(/@\w+/g,n=>Fs+"-"+n.slice(1)).replace(/:animating/g,Cc),[t,e]}(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,lt(n.collectedStyles,n.currentQuerySelector,new Map);const a=ut(this,Hi(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Kn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function iF(){return new D(3013,!1)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ps(e.timings,n.errors,!0);return{type:12,animation:ut(this,Hi(e.animation),n),timings:r,options:null}}}class qF{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Kn(t){return t?(t=ji(t)).params&&(t.params=function zF(t){return t?ji(t):null}(t.params)):t={},t}function Mc(t,e,n){return{duration:t,delay:e,easing:n}}function Ic(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Bs{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ZF=new RegExp(":enter","g"),JF=new RegExp(":leave","g");function Ac(t,e,n,r,i,o=new Map,s=new Map,a,l,u=[]){return(new e1).buildKeyframes(t,e,n,r,i,o,s,a,l,u)}class e1{buildKeyframes(e,n,r,i,o,s,a,l,u,c=[]){u=u||new Bs;const d=new Tc(e,n,u,i,o,c,[]);d.options=l;const f=l.delay?dn(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),ut(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let g=h.length-1;g>=0;g--){const y=h[g];if(y.element===n){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Ic(n,[],[],[],0,f,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const r=n.subInstructions.get(n.element);if(r){const i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){const r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(const i of e){const o=i?.delay;if(o){const s="number"==typeof o?o:dn($i(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime;const s=null!=r.duration?dn(r.duration):null,a=null!=r.delay?dn(r.delay):null;return 0!==s&&e.forEach(l=>{const u=n.appendInstructionToTimeline(l,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),ut(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const r=n.subContextCount;let i=n;const o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=js);const s=dn(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ut(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const r=[];let i=n.currentTimeline.currentTime;const o=e.options&&e.options.delay?dn(e.options.delay):0;e.steps.forEach(s=>{const a=n.createSubContext(e.options);o&&a.delayNextStep(o),ut(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const r=e.strValue;return Ps(n.params?$i(r,n.params,n.errors):r,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){const r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?dn(i.delay):0;o&&(6===n.previousNode.type||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=js);let s=r;const a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{n.currentQueryIndex=c;const d=n.createSubContext(e.options,u);o&&d.delayNextStep(o),u===n.element&&(l=d.currentTimeline),ut(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const r=n.parentContext,i=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1);let l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=n.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;ut(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const js={};class Tc{constructor(e,n,r,i,o,s,a,l){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=js,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Hs(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=dn(r.duration)),null!=r.delay&&(i.delay=dn(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=$i(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){const i=n||this.element,o=new Tc(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=js,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){const i={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},o=new t1(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ZF,"."+this._enterClassName)).replace(JF,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&0==a.length&&s.push(function oF(t){return new D(3014,!1)}()),a}}class Hs{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new Hs(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||cn),this._currentKeyframe.set(n,cn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);const o=i&&i.params||{},s=function n1(t,e){const n=new Map;let r;return t.forEach(i=>{if("*"===i){r=r||e.keys();for(let o of r)n.set(o,cn)}else Mn(i,n)}),n}(e,this._globalTimelineStyles);for(let[a,l]of s){const u=$i(l,o,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??cn),this._updateStyle(a,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{const i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const u=Mn(a,new Map,this._backFill);u.forEach((c,d)=>{c===fc?e.add(d):c===cn&&n.add(d)}),r||u.set("offset",l/this.duration),i.push(u)});const o=e.size?Os(e.values()):[],s=n.size?Os(n.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Ic(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class t1 extends Hs{constructor(e,n,r,i,o,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const o=[],s=r+n,a=n/s,l=Mn(e[0]);l.set("offset",0),o.push(l);const u=Mn(e[0]);u.set("offset",B_(a)),o.push(u);const c=e.length-1;for(let d=1;d<=c;d++){let f=Mn(e[d]);const h=f.get("offset");f.set("offset",B_((n+h*r)/s)),o.push(f)}r=s,n=0,i="",e=o}return Ic(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function B_(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Nc{}const r1=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 i1 extends Nc{normalizePropertyName(e,n){return bc(e)}normalizeStyleValue(e,n,r,i){let o="";const s=r.toString().trim();if(r1.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function KN(t,e){return new D(3005,!1)}())}return s+o}}function j_(t,e,n,r,i,o,s,a,l,u,c,d,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const Fc={};class H_{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return function o1(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||Fc,p=this.buildStyles(r,a&&a.params||Fc,d),g=l&&l.params||Fc,y=this.buildStyles(i,g,d),_=new Set,w=new Map,m=new Map,M="void"===i,z={params:s1(g,f),delay:this.ast.options?.delay},Y=c?[]:Ac(e,n,this.ast.animation,o,s,p,y,z,u,d);let He=0;if(Y.forEach(hn=>{He=Math.max(hn.duration+hn.delay,He)}),d.length)return j_(n,this._triggerName,r,i,M,p,y,[],[],w,m,He,d);Y.forEach(hn=>{const pn=hn.element,cD=lt(w,pn,new Set);hn.preStyleProps.forEach(Zn=>cD.add(Zn));const Ki=lt(m,pn,new Set);hn.postStyleProps.forEach(Zn=>Ki.add(Zn)),pn!==n&&_.add(pn)});const fn=Os(_.values());return j_(n,this._triggerName,r,i,M,p,y,Y,fn,w,m,He)}}function s1(t,e){const n=ji(e);for(const r in t)t.hasOwnProperty(r)&&null!=t[r]&&(n[r]=t[r]);return n}class a1{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){const r=new Map,i=ji(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=$i(s,i,n));const l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}}class u1{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{this.states.set(i.name,new a1(i.style,i.options&&i.options.params||{},r))}),$_(this.states,"true","1"),$_(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new H_(e,i,this.states))}),this.fallbackTransition=function c1(t,e,n){return new H_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(s=>s.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}}function $_(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}const d1=new Bs;class f1{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){const r=[],i=[],o=Sc(this._driver,n,r,i);if(r.length)throw function fF(t){return new D(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,n,r){const i=e.element,o=D_(0,this._normalizer,0,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){const i=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=Ac(this._driver,n,o,Dc,Ts,new Map,new Map,r,d1,i),s.forEach(c=>{const d=lt(a,c.element,new Map);c.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function hF(){return new D(3300,!1)}()),s=[]),i.length)throw function pF(t){return new D(3504,!1)}();a.forEach((c,d)=>{c.forEach((f,h)=>{c.set(h,this._driver.computeStyle(d,h,cn))})});const u=Sn(s.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,new Map,d)}));return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){const n=this._playersById.get(e);if(!n)throw function gF(t){return new D(3301,!1)}();return n}listen(e,n,r,i){const o=mc(n,"","","");return pc(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,n,i[0]||{});const o=this._getPlayer(e);switch(r){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(i[0]));break;case"destroy":this.destroy(e)}}}const U_="ng-animate-queued",Pc="ng-animate-disabled",y1=[],G_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_1={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vt="__ng_removed";class Oc{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;const r=e&&e.hasOwnProperty("value");if(this.value=function w1(t){return t??null}(r?e.value:e),r){const o=ji(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const n=e.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const Ui="void",Rc=new Oc(Ui);class v1{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Dt(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw function mF(t,e){return new D(3302,!1)}();if(null==r||0==r.length)throw function yF(t){return new D(3303,!1)}();if(!function E1(t){return"start"==t||"done"==t}(r))throw function _F(t,e){return new D(3400,!1)}();const o=lt(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);const a=lt(this._engine.statesByElement,e,new Map);return a.has(n)||(Dt(e,Ns),Dt(e,Ns+"-"+n),a.set(n,Rc)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return!this._triggers.has(e)&&(this._triggers.set(e,n),!0)}_getTrigger(e){const n=this._triggers.get(e);if(!n)throw function vF(t){return new D(3401,!1)}();return n}trigger(e,n,r,i=!0){const o=this._getTrigger(n),s=new xc(this.id,n,e);let a=this._engine.statesByElement.get(e);a||(Dt(e,Ns),Dt(e,Ns+"-"+n),this._engine.statesByElement.set(e,a=new Map));let l=a.get(n);const u=new Oc(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(n,u),l||(l=Rc),u.value!==Ui&&l.value===u.value){if(!function M1(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i{Wn(e,y),Wt(e,_)})}return}const f=lt(this._engine.playersByElement,e,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let h=o.matchTransition(l.value,u.value,e,u.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(Dt(e,U_),s.onStart(()=>{Hr(e,U_)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let _=y.indexOf(s);_>=0&&y.splice(_,1)}}),this.players.push(s),f.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const r=this._engine.driver.query(e,Fs,!0);r.forEach(i=>{if(i[vt])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){const c=this.trigger(e,u,Ui,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&Sn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){const i=new Set;n.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,u=r.get(s)||Rc,c=new Oc(Ui),d=new xc(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,n){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{const o=e[vt];(!o||o===G_)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Dt(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=mc(o,r.triggerName,r.fromState.value,r.toState.value);l._data=e,pc(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(r=>r.element===e)||n,n}}class D1{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,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=(i,o)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){const r=new v1(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){const l=i.get(a);if(l){const u=r.indexOf(l);r.splice(u+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,r=this.statesByElement.get(e);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}return n}trigger(e,n,r,i){if($s(n)){const o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!$s(n))return;const o=n[vt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Dt(e,Pc)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hr(e,Pc))}removeNode(e,n,r,i){if($s(n)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i),r){const s=this.namespacesByHostElement.get(n);s&&s.id!==e&&s.removeNode(n,i)}}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[vt]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return $s(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,Fs,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Cc,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Sn(this.players).onDone(()=>e());e()})}processLeaveNode(e){const n=e[vt];if(n&&n.setForRemoval){if(e[vt]=G_,n.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Pc)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?Sn(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function DF(t){return new D(3402,!1)}()}_flushAnimations(e,n){const r=new Bs,i=[],o=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(A=>{c.add(A);const T=this.driver.query(A,".ng-animate-queued",!0);for(let O=0;O{const O=Dc+g++;p.set(T,O),A.forEach(K=>Dt(K,O))});const y=[],_=new Set,w=new Set;for(let A=0;A_.add(K)):w.add(T))}const m=new Map,M=W_(f,Array.from(_));M.forEach((A,T)=>{const O=Ts+g++;m.set(T,O),A.forEach(K=>Dt(K,O))}),e.push(()=>{h.forEach((A,T)=>{const O=p.get(T);A.forEach(K=>Hr(K,O))}),M.forEach((A,T)=>{const O=m.get(T);A.forEach(K=>Hr(K,O))}),y.forEach(A=>{this.processLeaveNode(A)})});const z=[],Y=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(n).forEach(O=>{const K=O.player,Ne=O.element;if(z.push(K),this.collectedEnterElements.length){const $e=Ne[vt];if($e&&$e.setForMove){if($e.previousTriggersValues&&$e.previousTriggersValues.has(O.triggerName)){const Xn=$e.previousTriggersValues.get(O.triggerName),Ct=this.statesByElement.get(O.element);if(Ct&&Ct.has(O.triggerName)){const ra=Ct.get(O.triggerName);ra.value=Xn,Ct.set(O.triggerName,ra)}}return void K.destroy()}}const Kt=!d||!this.driver.containsElement(d,Ne),ct=m.get(Ne),Nn=p.get(Ne),pe=this._buildInstruction(O,r,Nn,ct,Kt);if(pe.errors&&pe.errors.length)return void Y.push(pe);if(Kt)return K.onStart(()=>Wn(Ne,pe.fromStyles)),K.onDestroy(()=>Wt(Ne,pe.toStyles)),void i.push(K);if(O.isFallbackTransition)return K.onStart(()=>Wn(Ne,pe.fromStyles)),K.onDestroy(()=>Wt(Ne,pe.toStyles)),void i.push(K);const hD=[];pe.timelines.forEach($e=>{$e.stretchStartingKeyframe=!0,this.disabledNodes.has($e.element)||hD.push($e)}),pe.timelines=hD,r.append(Ne,pe.timelines),s.push({instruction:pe,player:K,element:Ne}),pe.queriedElements.forEach($e=>lt(a,$e,[]).push(K)),pe.preStyleProps.forEach(($e,Xn)=>{if($e.size){let Ct=l.get(Xn);Ct||l.set(Xn,Ct=new Set),$e.forEach((ra,sd)=>Ct.add(sd))}}),pe.postStyleProps.forEach(($e,Xn)=>{let Ct=u.get(Xn);Ct||u.set(Xn,Ct=new Set),$e.forEach((ra,sd)=>Ct.add(sd))})});if(Y.length){const A=[];Y.forEach(T=>{A.push(function CF(t,e){return new D(3505,!1)}())}),z.forEach(T=>T.destroy()),this.reportError(A)}const He=new Map,fn=new Map;s.forEach(A=>{const T=A.element;r.has(T)&&(fn.set(T,T),this._beforeAnimationBuild(A.player.namespaceId,A.instruction,He))}),i.forEach(A=>{const T=A.element;this._getPreviousPlayers(T,!1,A.namespaceId,A.triggerName,null).forEach(K=>{lt(He,T,[]).push(K),K.destroy()})});const hn=y.filter(A=>Q_(A,l,u)),pn=new Map;q_(pn,this.driver,w,u,cn).forEach(A=>{Q_(A,l,u)&&hn.push(A)});const Ki=new Map;h.forEach((A,T)=>{q_(Ki,this.driver,new Set(A),l,fc)}),hn.forEach(A=>{const T=pn.get(A),O=Ki.get(A);pn.set(A,new Map([...Array.from(T?.entries()??[]),...Array.from(O?.entries()??[])]))});const Zn=[],dD=[],fD={};s.forEach(A=>{const{element:T,player:O,instruction:K}=A;if(r.has(T)){if(c.has(T))return O.onDestroy(()=>Wt(T,K.toStyles)),O.disabled=!0,O.overrideTotalTime(K.totalTime),void i.push(O);let Ne=fD;if(fn.size>1){let ct=T;const Nn=[];for(;ct=ct.parentNode;){const pe=fn.get(ct);if(pe){Ne=pe;break}Nn.push(ct)}Nn.forEach(pe=>fn.set(pe,Ne))}const Kt=this._buildAnimation(O.namespaceId,K,He,o,Ki,pn);if(O.setRealPlayer(Kt),Ne===fD)Zn.push(O);else{const ct=this.playersByElement.get(Ne);ct&&ct.length&&(O.parentPlayer=Sn(ct)),i.push(O)}}else Wn(T,K.fromStyles),O.onDestroy(()=>Wt(T,K.toStyles)),dD.push(O),c.has(T)&&i.push(O)}),dD.forEach(A=>{const T=o.get(A.element);if(T&&T.length){const O=Sn(T);A.setRealPlayer(O)}}),i.forEach(A=>{A.parentPlayer?A.syncPlayerEvents(A.parentPlayer):A.destroy()});for(let A=0;A!Kt.destroyed);Ne.length?b1(this,T,Ne):this.processLeaveNode(T)}return y.length=0,Zn.forEach(A=>{this.players.push(A),A.onDone(()=>{A.destroy();const T=this.players.indexOf(A);this.players.splice(T,1)}),A.play()}),Zn}elementContainsData(e,n){let r=!1;const i=n[vt];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(e).elementContainsData(n)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let s=[];if(n){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Ui;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){const o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const u=l.element,c=u!==o,d=lt(r,u,[]);this._getPreviousPlayers(u,c,s,a,n.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Wn(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){const a=n.triggerName,l=n.element,u=[],c=new Set,d=new Set,f=n.timelines.map(p=>{const g=p.element;c.add(g);const y=g[vt];if(y&&y.removedBeforeQueried)return new Bi(p.duration,p.delay);const _=g!==l,w=function S1(t){const e=[];return K_(t,e),e}((r.get(g)||y1).map(He=>He.getRealPlayer())).filter(He=>!!He.element&&He.element===g),m=o.get(g),M=s.get(g),z=D_(0,this._normalizer,0,p.keyframes,m,M),Y=this._buildPlayer(p,z,w);if(p.subTimeline&&i&&d.add(g),_){const He=new xc(e,a,g);He.setRealPlayer(Y),u.push(He)}return Y});u.forEach(p=>{lt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function C1(t,e,n){let r=t.get(e);if(r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}return r}(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Dt(p,T_));const h=Sn(f);return h.onDestroy(()=>{c.forEach(p=>Hr(p,T_)),Wt(l,n.toStyles)}),d.forEach(p=>{lt(i,p,[]).push(h)}),h}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Bi(e.duration,e.delay)}}class xc{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new Bi,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>pc(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){lt(this._queuedCallbacks,e,[]).push(n)}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 n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function $s(t){return t&&1===t.nodeType}function z_(t,e){const n=t.style.display;return t.style.display=e??"none",n}function q_(t,e,n,r,i){const o=[];n.forEach(l=>o.push(z_(l)));const s=[];r.forEach((l,u)=>{const c=new Map;l.forEach(d=>{const f=e.computeStyle(u,d,i);c.set(d,f),(!f||0==f.length)&&(u[vt]=_1,s.push(u))}),t.set(u,c)});let a=0;return n.forEach(l=>z_(l,o[a++])),s}function W_(t,e){const n=new Map;if(t.forEach(a=>n.set(a,[])),0==e.length)return n;const r=1,i=new Set(e),o=new Map;function s(a){if(!a)return r;let l=o.get(a);if(l)return l;const u=a.parentNode;return l=n.has(u)?u:i.has(u)?r:s(u),o.set(a,l),l}return e.forEach(a=>{const l=s(a);l!==r&&n.get(l).push(a)}),n}function Dt(t,e){t.classList?.add(e)}function Hr(t,e){t.classList?.remove(e)}function b1(t,e,n){Sn(n).onDone(()=>t.processLeaveNode(e))}function K_(t,e){for(let n=0;ni.add(o)):e.set(t,r),n.delete(t),!0}class Us{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new D1(e,n,r),this._timelineEngine=new f1(e,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){const s=e+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=[],c=Sc(this._driver,o,l,u);if(l.length)throw function cF(t,e){return new D(3404,!1)}();a=function l1(t,e,n){return new u1(t,e,n)}(i,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r,i){this._transitionEngine.removeNode(e,n,i||!1,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if("@"==r.charAt(0)){const[o,s]=C_(r);this._timelineEngine.command(o,n,s,i)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if("@"==r.charAt(0)){const[s,a]=C_(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let A1=(()=>{class t{constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i,this._state=0;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Wt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wt(this._element,this._initialStyles),this._endStyles&&(Wt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Wn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wn(this._element,this._endStyles),this._endStyles=null),Wt(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function kc(t){let e=null;return t.forEach((n,r)=>{(function T1(t){return"display"===t||"position"===t})(r)&&(e=e||new Map,e.set(r,n))}),e}class Y_{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){return e.animate(this._convertKeyframesToObject(n),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&e.set(i,this._finished?r:x_(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const n="start"===e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class N1{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return S_(e,n)}getParentElement(e){return _c(e)}query(e,n,r){return M_(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}animate(e,n,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const u=new Map,c=s.filter(h=>h instanceof Y_);(function RF(t,e){return 0===t||0===e})(r,i)&&c.forEach(h=>{h.currentSnapshot.forEach((p,g)=>u.set(g,p))});let d=function NF(t){return t.length?t[0]instanceof Map?t:t.map(e=>N_(e)):[]}(n).map(h=>Mn(h));d=function xF(t,e,n){if(n.size&&e.length){let r=e[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,x_(t,a)))}}return e}(e,d,u);const f=function I1(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=kc(e[0]),e.length>1&&(r=kc(e[e.length-1]))):e instanceof Map&&(n=kc(e)),n||r?new A1(t,n,r):null}(e,d);return new Y_(e,d,l,f)}}let F1=(()=>{class t extends p_{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:Et.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(n)?g_(n):n;return Z_(this._renderer,null,r,"register",[i]),new P1(r,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(H(yi),H(at))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();class P1 extends $N{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new O1(this._id,e,n||{},this._renderer)}}class O1{constructor(e,n,r,i){this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return Z_(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Z_(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const X_="@.disabled";let R1=(()=>{class t{constructor(n,r,i){this.delegate=n,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(n,r){const o=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(o);return c||(c=new J_("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,c)),c}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(s,a,n,c.name,c)};return r.data.animation.forEach(l),new x1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,i){n>=0&&nr(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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 t.\u0275fac=function(n){return new(n||t)(H(yi),H(Us),H(Te))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})();class J_{constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i,this.destroyNode=this.delegate.destroyNode?o=>n.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){"@"==n.charAt(0)&&n==X_?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class x1 extends J_{constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==X_?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if("@"==n.charAt(0)){const i=function k1(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=n.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function L1(t){const e=t.indexOf(".");return[t.substring(0,e),t.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,n,r)}}const ev=[{provide:p_,useClass:F1},{provide:Nc,useFactory:function B1(){return new i1}},{provide:Us,useClass:(()=>{class t extends Us{constructor(n,r,i,o){super(n.body,r,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(H(at),H(vc),H(Nc),H(us))},t.\u0275prov=ee({token:t,factory:t.\u0275fac}),t})()},{provide:yi,useFactory:function j1(t,e,n){return new R1(t,e,n)},deps:[As,Us,Te]}],Lc=[{provide:vc,useFactory:()=>new N1},{provide:Xm,useValue:"BrowserAnimations"},...ev],tv=[{provide:vc,useClass:I_},{provide:Xm,useValue:"NoopAnimations"},...ev];let H1=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?tv:Lc}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({providers:Lc,imports:[c_]}),t})();const{isArray:$1}=Array,{getPrototypeOf:U1,prototype:G1,keys:z1}=Object;const{isArray:K1}=Array;function Z1(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function X1(...t){const e=function UD(t){return de(fa(t))?t.pop():void 0}(t),{args:n,keys:r}=function q1(t){if(1===t.length){const e=t[0];if($1(e))return{args:e,keys:null};if(function W1(t){return t&&"object"==typeof t&&U1(t)===G1}(e)){const n=z1(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}(t),i=new Oe(o=>{const{length:s}=n;if(!s)return void o.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||o.next(r?Z1(r,a):a),o.complete())}))}});return e?i.pipe(function Y1(t){return ca(e=>function Q1(t,e){return K1(e)?t(...e):t(e)}(t,e))}(e)):i}let nv=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(C(Hn),C(It))},t.\u0275dir=V({type:t}),t})(),Qn=(()=>{class t extends nv{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=function Le(t){return Qt(()=>{const e=t.prototype.constructor,n=e[Zt]||Ua(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const o=i[Zt]||Ua(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(t)))(r||t)}}(),t.\u0275dir=V({type:t,features:[re]}),t})();const xt=new R("NgValueAccessor"),eP={provide:xt,useExisting:oe(()=>Vc),multi:!0},nP=new R("CompositionEventMode");let Vc=(()=>{class t extends nv{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function tP(){const t=jr()?jr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(C(Hn),C(It),C(nP,8))},t.\u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&_e("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[ce([eP]),re]}),t})();const rP=!1,je=new R("NgValidators"),An=new R("NgAsyncValidators");function hv(t){return null!=t}function pv(t){const e=Yo(t)?Rd(t):t;if(rP&&!Lp(e)){let n="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(n+=" Are you using a synchronous validator where an async validator is expected?"),new D(-1101,n)}return e}function gv(t){let e={};return t.forEach(n=>{e=null!=n?{...e,...n}:e}),0===Object.keys(e).length?null:e}function mv(t,e){return e.map(n=>n(t))}function yv(t){return t.map(e=>function oP(t){return!t.validate}(e)?e:n=>e.validate(n))}function Bc(t){return null!=t?function _v(t){if(!t)return null;const e=t.filter(hv);return 0==e.length?null:function(n){return gv(mv(n,e))}}(yv(t)):null}function jc(t){return null!=t?function vv(t){if(!t)return null;const e=t.filter(hv);return 0==e.length?null:function(n){return X1(mv(n,e).map(pv)).pipe(ca(gv))}}(yv(t)):null}function Dv(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Hc(t){return t?Array.isArray(t)?t:[t]:[]}function qs(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ev(t,e){const n=Hc(e);return Hc(t).forEach(i=>{qs(n,i)||n.push(i)}),n}function bv(t,e){return Hc(e).filter(n=>!qs(t,n))}class Sv{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Bc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=jc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,n){return!!this.control&&this.control.hasError(e,n)}getError(e,n){return this.control?this.control.getError(e,n):null}}class Ke extends Sv{get formDirective(){return null}get path(){return null}}class Tn extends Sv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mv{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let $c=(()=>{class t extends Mv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(C(Tn,2))},t.\u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&wi("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[re]}),t})(),Iv=(()=>{class t extends Mv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(C(Ke,10))},t.\u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&wi("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[re]}),t})();function Av(t,e){return t?`with name: '${e}'`:`at index: ${e}`}const zc=!1,Gi="VALID",Ks="INVALID",$r="PENDING",zi="DISABLED";function qc(t){return(Qs(t)?t.validators:t)||null}function Wc(t,e){return(Qs(e)?e.asyncValidators:t)||null}function Qs(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Fv{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Gi}get invalid(){return this.status===Ks}get pending(){return this.status==$r}get disabled(){return this.status===zi}get enabled(){return this.status!==zi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ev(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ev(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(bv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(bv(e,this._rawAsyncValidators))}hasValidator(e){return qs(this._rawValidators,e)}hasAsyncValidator(e){return qs(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=$r,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=zi,this.errors=null,this._forEachChild(r=>{r.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=Gi,this._forEachChild(r=>{r.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gi||this.status===$r)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zi:Gi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=$r,this._hasOwnPendingAsyncValidator=!0;const n=pv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){let n=e;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?zi:this.errors?Ks:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($r)?$r:this._anyControlsHaveStatus(Ks)?Ks:Gi}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Qs(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function fP(t){return Array.isArray(t)?Bc(t):t||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function hP(t){return Array.isArray(t)?jc(t):t||null}(this._rawAsyncValidators)}}class Kc extends Fv{constructor(e,n,r){super(qc(n),Wc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){(function Nv(t,e,n){t._forEachChild((r,i)=>{if(void 0===n[i])throw new D(1002,zc?function dP(t,e){return`Must supply a value for form control ${Av(t,e)}`}(e,i):"")})})(this,!0,e),Object.keys(e).forEach(r=>{(function Tv(t,e,n){const r=t.controls;if(!(e?Object.keys(r):r).length)throw new D(1e3,zc?function uP(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(e):"");if(!r[n])throw new D(1001,zc?function cP(t,e){return`Cannot find form control ${Av(t,e)}`}(e,n):"")})(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}const Ur=new R("CallSetDisabledState",{providedIn:"root",factory:()=>Ys}),Ys="always";function qi(t,e,n=Ys){Qc(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||"always"===n)&&e.valueAccessor.setDisabledState?.(t.disabled),function mP(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Pv(t,e)})}(t,e),function _P(t,e){const n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function yP(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Pv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function gP(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Js(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Qc(t,e){const n=function Cv(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Dv(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function wv(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Dv(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();Js(e._rawValidators,i),Js(e._rawAsyncValidators,i)}function Pv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const EP={provide:Ke,useExisting:oe(()=>ta)},Wi=(()=>Promise.resolve())();let ta=(()=>{class t extends Ke{constructor(n,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new Kc({},Bc(n),jc(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Wi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),qi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Wi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Wi.then(()=>{const r=this._findContainer(n.path),i=new Kc({});(function Ov(t,e){Qc(t,e)})(i,n),r.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Wi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Wi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function Rv(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(C(je,10),C(An,10),C(Ur,8))},t.\u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&_e("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ce([EP]),re]}),t})();function xv(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function kv(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Lv=class extends Fv{constructor(e=null,n,r){super(qc(n),Wc(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qs(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=kv(e)?e.value:e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){xv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){xv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){kv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},MP={provide:Tn,useExisting:oe(()=>na)},jv=(()=>Promise.resolve())();let na=(()=>{class t extends Tn{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Lv,this._registered=!1,this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Xc(t,e){if(!e)return null;let n,r,i;return Array.isArray(e),e.forEach(o=>{o.constructor===Vc?n=o:function CP(t){return Object.getPrototypeOf(t.constructor)===Qn}(o)?r=o:i=o}),i||r||n||null}(0,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Zc(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){qi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){jv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,i=0!==r&&function ju(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(r);jv.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Zs(t,e){return[...e.path,t]}(n,this._parent):[n]}}return t.\u0275fac=function(n){return new(n||t)(C(Ke,9),C(je,10),C(An,10),C(xt,10),C(xu,8),C(Ur,8))},t.\u0275dir=V({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ce([MP]),re,Jt]}),t})(),Hv=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Uv=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({}),t})(),YP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({imports:[Uv]}),t})(),aD=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:Ur,useValue:n.callSetDisabledState??Ys}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=wt({imports:[YP]}),t})();const lD=new R("UI_SWITCH_OPTIONS");function XP(t,e){if(1&t&&(b(0,"label",2)(1,"span",3),x(2),E(),b(3,"span",4),x(4),E()()),2&t){const n=$p();ne(1),Rr("color",n.getColor("checkedTextColor")),mt("aria-label",n.checkedLabel),ne(1),Jo(n.checkedLabel),ne(1),Rr("color",n.getColor("uncheckedTextColor")),mt("aria-label",n.uncheckedLabel),ne(1),Jo(n.uncheckedLabel)}}const JP=["*"],eO={provide:xt,useExisting:oe(()=>od),multi:!0};let od=(()=>{class t{set checked(n){this._checked=!1!==n}get checked(){return this._checked}set disabled(n){this._disabled=!1!==n}get disabled(){return this._disabled}set reverse(n){this._reverse=!1!==n}get reverse(){return this._reverse}set loading(n){this._loading=!1!==n}get loading(){return this._loading}constructor(n={},r){this.cdr=r,this.change=new Me,this.changeEvent=new Me,this.valueChange=new Me,this.onTouchedCallback=i=>{},this.onChangeCallback=i=>{},this.size=n&&n.size||"medium",this.color=n&&n.color,this.switchOffColor=n&&n.switchOffColor,this.switchColor=n&&n.switchColor,this.defaultBgColor=n&&n.defaultBgColor,this.defaultBoColor=n&&n.defaultBoColor,this.checkedLabel=n&&n.checkedLabel,this.uncheckedLabel=n&&n.uncheckedLabel,this.checkedTextColor=n&&n.checkedTextColor,this.uncheckedTextColor=n&&n.uncheckedTextColor}getColor(n=""){return"borderColor"===n?this.defaultBoColor:"switchColor"===n?this.reverse?this.checked&&this.switchOffColor||this.switchColor:this.checked?this.switchColor:this.switchOffColor||this.switchColor:"checkedTextColor"===n?this.reverse?this.uncheckedTextColor:this.checkedTextColor:"uncheckedTextColor"===n?this.reverse?this.checkedTextColor:this.uncheckedTextColor:this.reverse?this.checked?this.defaultBgColor:this.color:this.checked?this.color:this.defaultBgColor}onClick(n){this.disabled||(this.checked=!this.checked,this.change.emit(this.checked),this.valueChange.emit(this.checked),this.changeEvent.emit(n),this.onChangeCallback(this.checked),this.onTouchedCallback(this.checked),this.cdr.markForCheck())}onToggle(n){this.disabled||(this.beforeChange?this._beforeChange=this.beforeChange.subscribe(r=>{r&&this.onClick(n)}):this.onClick(n))}writeValue(n){n!==this.checked&&(this.checked=!!n),this.onChangeCallback(this.checked),this.cdr&&this.cdr.markForCheck()}registerOnChange(n){this.onChangeCallback=n}registerOnTouched(n){this.onTouchedCallback=n}setDisabledState(n){this.disabled=n}ngOnDestroy(){this._beforeChange&&this._beforeChange.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||t)(C(lD,8),C(xu))};static#t=this.\u0275cmp=_n({type:t,selectors:[["ui-switch"]],hostBindings:function(r,i){1&r&&_e("click",function(s){return i.onToggle(s)})},inputs:{size:"size",color:"color",switchOffColor:"switchOffColor",switchColor:"switchColor",defaultBgColor:"defaultBgColor",defaultBoColor:"defaultBoColor",checkedLabel:"checkedLabel",uncheckedLabel:"uncheckedLabel",checkedTextColor:"checkedTextColor",uncheckedTextColor:"uncheckedTextColor",beforeChange:"beforeChange",ariaLabel:"ariaLabel",checked:"checked",disabled:"disabled",reverse:"reverse",loading:"loading"},outputs:{change:"change",changeEvent:"changeEvent",valueChange:"valueChange"},features:[ce([eO])],ngContentSelectors:JP,decls:4,vars:21,consts:[["type","button","role","switch",1,"switch"],["class","switch-pane",4,"ngIf"],[1,"switch-pane"],[1,"switch-label-checked"],[1,"switch-label-unchecked"]],template:function(r,i){1&r&&(function Up(t){const e=v()[ke][xe];if(!e.projection){const r=e.projection=li(t?t.length:1,null),i=r.slice();let o=e.child;for(;null!==o;){const s=t?$S(o,t):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(),b(0,"button",0),Pr(1,XP,5,8,"label",1),b(2,"small"),function Gp(t,e=0,n){const r=v(),i=W(),o=wr(i,ue+t,16,null,n||null);null===o.projection&&(o.projection=e),Na(),32!=(32&o.flags)&&function oE(t,e,n){gh(e[G],0,e,n,sh(t,n,e),ch(n.parent||e[xe],n,e))}(i,r,o)}(3),E()()),2&r&&(Rr("background-color",i.getColor())("border-color",i.getColor("borderColor")),wi("checked",i.checked)("disabled",i.disabled)("loading",i.loading)("switch-large","large"===i.size)("switch-medium","medium"===i.size)("switch-small","small"===i.size),mt("aria-checked",i.checked)("aria-label",i.ariaLabel),ne(1),Ae("ngIf",i.checkedLabel||i.uncheckedLabel),ne(1),Rr("background",i.getColor("switchColor")))},dependencies:[Xu],encapsulation:2})}return t})(),tO=(()=>{class t{static forRoot(n){return{ngModule:t,providers:[{provide:lD,useValue:n||{}}]}}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=Vt({type:t});static#n=this.\u0275inj=wt({imports:[jy,aD,aD]})}return t})();const uD=JSON.parse('{"name":"ngx-ui-switch","version":"15.0.0","description":"switch button for angular4","bugs":"https://github.com/webcat12345/ngx-ui-switch/issues","homepage":"https://github.com/webcat12345/ngx-ui-switch#readme","repository":"https://github.com/webcat12345/ngx-ui-switch.git","license":"MIT","author":"webcat12345","keywords":["angular2","angular4","ngx","ng2","uiswitch","switch","ui"],"peerDependencies":{"@angular/core":">=10.0.0","@angular/animations":">=10.0.0","@angular/common":">=10.0.0","@angular/forms":">=10.0.0","@angular/platform-browser":">=10.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"ngPackage":{"lib":{"entryFile":"public_api.ts"},"dest":"../../dist"},"exports":{"./ui-switch.component":{"sass":"./ui-switch.component.scss"}}}');let nO=(()=>{class t{constructor(){this.enable=!0,this.manualUpdate=!1}manualUpdateEvent(n){this.manualUpdate=n}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=_n({type:t,selectors:[["app-demo-cdr"]],decls:18,vars:8,consts:[[1,"col-12"],[1,"font-weight-bold"],[3,"ngModel","ngModelChange"]],template:function(r,i){1&r&&(b(0,"div",0)(1,"h4")(2,"span",1),x(3,"ngModel"),E(),x(4," with 2-way binding"),E(),b(5,"ui-switch",2),_e("ngModelChange",function(s){return i.enable=s}),E(),b(6,"p"),x(7),fu(8,"json"),E()(),b(9,"div",0)(10,"h4"),x(11," Manually updated "),b(12,"span",1),x(13,"ngModel"),E()(),b(14,"ui-switch",2),_e("ngModelChange",function(s){return i.manualUpdateEvent(s)}),E(),b(15,"p"),x(16),fu(17,"json"),E()()),2&r&&(ne(5),Ae("ngModel",i.enable),ne(2),Ft("Current Value: ",hu(8,4,i.enable),""),ne(7),Ae("ngModel",i.manualUpdate),ne(2),Ft("Current Value: ",hu(17,6,i.manualUpdate),""))},dependencies:[$c,na,od,Vy],encapsulation:2,changeDetection:0})}return t})();const rO=["demoForm"];function iO(t,e){1&t&&Q(0,"i",33)}function oO(t,e){1&t&&Q(0,"i",49)}function sO(t,e){1&t&&Q(0,"i",50)}function aO(t,e){1&t&&(b(0,"div",51),x(1," Submitted! "),E())}let lO=(()=>{class t{constructor(){this.submitted=!1,this.enable=!0,this.enableFeature=!1,this.count=0,this.change=!1,this.valueChange=!1,this.isLoading=!1,this.fakeAsync=new Oe(n=>{this.isLoading=!0;const r=setTimeout(()=>{this.isLoading=!1,n.next(!0)},2e3);return()=>clearTimeout(r)})}onSubmit(n){this.submitted=!0}onChange(n){this.count++,this.change=n}onChangeEvent(n){console.log(n,n.toString(),JSON.stringify(n)),this.changeEvent=n}onValueChange(n){this.valueChange=n}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=_n({type:t,selectors:[["app-demo"]],viewQuery:function(r,i){if(1&r&&Sm(rO,5),2&r){let o;bm(o=function Mm(){return function mI(t,e){return t[Bt].queries[e].queryList}(v(),ff())}())&&(i.demoForm=o.first)}},decls:125,vars:20,consts:[[1,"row","justify-content-center"],[1,"col-lg-5","col-sm-6"],["checked","",3,"ariaLabel"],[3,"ariaLabel","checked"],["disabled",""],["checked","",3,"disabled"],[3,"ariaLabel","change"],[3,"valueChange"],[3,"changeEvent"],["size","small"],["size","large"],["reverse",""],["color","blue"],["color","red"],["switchColor","red"],["switchColor","blue"],["uncheckedTextColor","red","checkedTextColor","blue","checkedLabel","ON","uncheckedLabel","OFF"],[1,"col-lg-5","col-sm-6","border-left","pl-5"],[1,"font-weight-bold"],[1,"row"],[1,"col-12"],[3,"ngModel","ngModelChange"],[1,"row","custom-switches"],["checked",""],[3,"checked"],["uncheckedLabel","off","checkedLabel","on","size","small"],["uncheckedLabel","off","checkedLabel","on"],["uncheckedLabel","off","checkedLabel","on","size","large"],["checkedLabel","Super Long Label","uncheckedLabel","Super Long Label","size","small"],["checkedLabel","Super Long Label","uncheckedLabel","Super Long Label"],["checkedLabel","Super Long Label","uncheckedLabel","Super Long Label","size","large"],["reverse","","uncheckedLabel","off","checkedLabel","on","uncheckedTextColor","orange","checkedTextColor","red"],[1,"custom-icons"],[1,"fa","fa-check"],[1,"fa","fa-check","fa-2x"],[3,"loading","beforeChange","ngModel","ngModelChange"],["class","fa fa-check",4,"ngIf"],["class","fa fa-times",4,"ngIf"],["class","fa fa-spinner fa-pulse",4,"ngIf"],[1,"form-row",3,"ngSubmit"],["demoForm","ngForm"],[1,"col"],["for","feature-name"],["type","text","id","feature-name",1,"form-control"],["for","enable-feature"],["id","enable-feature","name","enableFeature",1,"custom-control",3,"ngModel","ngModelChange"],["class","col-12 alert alert-info","role","alert",4,"ngIf"],[1,"col-12","mt-4"],["type","submit",1,"btn","btn-primary"],[1,"fa","fa-times"],[1,"fa","fa-spinner","fa-pulse"],["role","alert",1,"col-12","alert","alert-info"]],template:function(r,i){1&r&&(b(0,"div",0)(1,"div",1)(2,"h2"),x(3,"Basic Usage"),E(),b(4,"h4"),x(5,"checked"),E(),b(6,"p"),Q(7,"ui-switch",2)(8,"ui-switch",3),E(),b(9,"h4"),x(10,"Disabled"),E(),b(11,"p"),Q(12,"ui-switch",4)(13,"ui-switch",5),E(),b(14,"h4"),x(15,"Change"),E(),b(16,"ui-switch",6),_e("change",function(s){return i.onChange(s)}),E(),b(17,"p"),x(18),E(),b(19,"p"),x(20),E(),b(21,"h4"),x(22,"Value Change"),E(),b(23,"ui-switch",7),_e("valueChange",function(s){return i.onValueChange(s)}),E(),b(24,"p"),x(25),E(),b(26,"h4"),x(27,"Change Event"),E(),b(28,"ui-switch",8),_e("changeEvent",function(s){return i.onChangeEvent(s)}),E(),b(29,"p"),x(30),E(),b(31,"h4"),x(32,"Size"),E(),b(33,"p"),Q(34,"ui-switch",9)(35,"ui-switch")(36,"ui-switch",10),E(),b(37,"h4"),x(38,"reverse"),E(),b(39,"p"),Q(40,"ui-switch",11),E(),b(41,"h4"),x(42,"color"),E(),Q(43,"ui-switch")(44,"ui-switch",12)(45,"ui-switch",13),b(46,"h4"),x(47,"switchColor"),E(),b(48,"p"),Q(49,"ui-switch",14)(50,"ui-switch",15),E(),b(51,"h4"),x(52,"textColor"),E(),b(53,"p"),Q(54,"ui-switch",16),E()(),b(55,"div",17)(56,"h2")(57,"span",18),x(58,"ngModel"),E(),x(59," Usage "),E(),b(60,"div",19)(61,"div",20)(62,"h4"),x(63,"two way binding"),E(),b(64,"ui-switch",21),_e("ngModelChange",function(s){return i.enable=s}),E(),b(65,"p"),x(66),E()(),Q(67,"app-demo-cdr"),E(),Q(68,"hr"),b(69,"div",22)(70,"div",20)(71,"h2"),x(72,"Custom CSS"),E(),b(73,"p"),Q(74,"ui-switch",23)(75,"ui-switch",24),E()()(),Q(76,"hr"),b(77,"div",19)(78,"div",20)(79,"h2"),x(80,"Custom labels"),E(),b(81,"p"),Q(82,"ui-switch",25)(83,"ui-switch",26)(84,"ui-switch",27),E(),b(85,"p"),Q(86,"ui-switch",28)(87,"ui-switch",29)(88,"ui-switch",30),E(),b(89,"p"),Q(90,"ui-switch",31),E()()(),Q(91,"hr"),b(92,"div",19)(93,"div",20)(94,"h2"),x(95,"Custom Switch Content"),E(),b(96,"p",32)(97,"ui-switch",25),Q(98,"i",33),E(),b(99,"ui-switch",26),Q(100,"i",33),E(),b(101,"ui-switch",27),Q(102,"i",34),E()(),b(103,"h4"),x(104,"Before Change handling + Loading Icon Example"),E(),b(105,"p")(106,"ui-switch",35),_e("ngModelChange",function(s){return i.enable=s}),Pr(107,iO,1,0,"i",36),Pr(108,oO,1,0,"i",37),Pr(109,sO,1,0,"i",38),E()()()()()(),Q(110,"hr"),b(111,"form",39,40),_e("ngSubmit",function(s){return i.onSubmit(s)}),b(113,"div",41)(114,"label",42),x(115,"Name"),E(),Q(116,"input",43),E(),b(117,"div",41)(118,"label",44),x(119,"Enable Feature"),E(),b(120,"ui-switch",45),_e("ngModelChange",function(s){return i.enableFeature=s}),E()(),Pr(121,aO,2,0,"div",46),b(122,"div",47)(123,"button",48),x(124,"Submit"),E()()()),2&r&&(ne(7),Ae("ariaLabel","checked"),ne(1),Ae("ariaLabel","unchecked")("checked",!1),ne(5),Ae("disabled",!0),ne(3),Ae("ariaLabel","Change"),ne(2),Ft("change count ",i.count,""),ne(2),Ft("value ",i.change,""),ne(5),Ft("value ",i.valueChange,""),ne(5),Ft("event ",i.changeEvent,""),ne(34),Ae("ngModel",i.enable),ne(2),Ft("Current Value: ",i.enable,""),ne(9),Ae("checked",!1),ne(31),Ae("loading",i.isLoading)("beforeChange",i.fakeAsync)("ngModel",i.enable),ne(1),Ae("ngIf",i.enable&&!i.isLoading),ne(1),Ae("ngIf",!i.enable&&!i.isLoading),ne(1),Ae("ngIf",i.isLoading),ne(11),Ae("ngModel",i.enableFeature),ne(1),Ae("ngIf",i.submitted))},dependencies:[Xu,Hv,$c,Iv,na,ta,od,nO],encapsulation:2})}return t})(),uO=(()=>{class t{constructor(){this.version=$h.full}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=_n({type:t,selectors:[["app-footer"]],decls:10,vars:1,consts:[[1,"footer","mb-4","mt-2"],["href","https://github.com/webcat12345/ngx-ui-switch/blob/master/LICENSE"],["href","https://github.com/webcat12345/ngx-ui-switch"]],template:function(r,i){1&r&&(b(0,"footer",0),x(1),Q(2,"br"),x(3," Released under the "),b(4,"a",1),x(5,"MIT"),E(),x(6," license. "),b(7,"a",2),x(8,"View source"),E(),x(9,". "),E()),2&r&&(ne(1),Ft(" Demo using Angular ",i.version," "))},styles:[".footer[_ngcontent-%COMP%]{line-height:2;text-align:center;font-size:12px;color:#999}"]})}return t})(),cO=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=_n({type:t,selectors:[["app-header"]],decls:18,vars:0,consts:[["href","https://github.com/webcat12345/ngx-ui-switch",1,"hidden-xs"],["src","https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67","alt","Fork me on GitHub","data-canonical-src","https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png",2,"position","absolute","top","0","right","0","border","0","z-index","2001"],[1,"navbar","navbar-expand-md","navbar-dark","bg-dark","fixed-top"],["type","button","data-toggle","collapse","data-target","#navbar","aria-controls","navbar","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right"],[1,"navbar-toggler-icon"],["href","#",1,"navbar-brand"],["id","navbar",1,"collapse","navbar-collapse"],[1,"navbar-nav","mr-auto"],[1,"nav-item"],["href","#demo",1,"nav-link"],["href","https://github.com/webcat12345/ngx-ui-switch#installation",1,"nav-link"],["href","https://webcat12345.github.io/ngx-ui-switch/docs/",1,"nav-link"]],template:function(r,i){1&r&&(b(0,"a",0),Q(1,"img",1),E(),b(2,"nav",2)(3,"button",3),Q(4,"span",4),E(),b(5,"a",5),x(6,"ngx ui switch"),E(),b(7,"div",6)(8,"ul",7)(9,"li",8)(10,"a",9),x(11,"Demo"),E()(),b(12,"li",8)(13,"a",10),x(14,"Installation"),E()(),b(15,"li",8)(16,"a",11),x(17,"Documentation"),E()()()()())},encapsulation:2})}return t})(),dO=(()=>{class t{constructor(){this.username="webcat12345",this.repo="ngx-ui-switch"}href(n,r){return`https://github.com/${n}/${r}`}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=_n({type:t,selectors:[["app-github-link"]],inputs:{username:"username",repo:"repo"},decls:6,vars:1,consts:[[1,"githubLink",3,"href"],["fill","#181717","height","32","aria-labelledby","title","role","img","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","clip-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.414"],["d","M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"]],template:function(r,i){1&r&&(b(0,"div")(1,"a",0),function _f(){B.lFrame.currentNamespace=tf}(),b(2,"svg",1)(3,"title"),x(4,"GitHub icon"),E(),Q(5,"path",2),E()()()),2&r&&(ne(1),Ae("href",i.href(i.username,i.repo),Cl))},styles:[".githubLink[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%]{text-align:center}"]})}return t})(),fO=(()=>{class t{constructor(n){this.t=n;const r=[this.t.getTitle()];uD&&r.push(`${uD.version} Demo`),n.setTitle(r.join(" "))}static#e=this.\u0275fac=function(r){return new(r||t)(C(d_))};static#t=this.\u0275cmp=_n({type:t,selectors:[["app-root"]],decls:6,vars:0,consts:[[1,"container","mt-3"],[1,"mt-5"]],template:function(r,i){1&r&&(Q(0,"app-header"),b(1,"div",0),Q(2,"app-demo"),E(),b(3,"div",1),Q(4,"app-github-link")(5,"app-footer"),E())},dependencies:[lO,uO,cO,dO],styles:["[_nghost-%COMP%]{width:80%;display:block;margin:0 auto;height:600px}"]})}return t})(),hO=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=Vt({type:t,bootstrap:[fO]});static#n=this.\u0275inj=wt({imports:[c_,H1,tO]})}return t})();RN().bootstrapModule(hO)}},de=>{de(de.s=859)}]); \ No newline at end of file diff --git a/demo/main.aab5a65de39ad291.js b/demo/main.aab5a65de39ad291.js new file mode 100644 index 00000000..d7d37c36 --- /dev/null +++ b/demo/main.aab5a65de39ad291.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkngx_ui_switch=self.webpackChunkngx_ui_switch||[]).push([[179],{828:()=>{function pe(e){return"function"==typeof e}function So(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Mo=So(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ui(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Bt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(pe(r))try{r()}catch(o){t=o instanceof Mo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Cf(o)}catch(s){t=t??[],s instanceof Mo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Mo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Cf(t);else{if(t instanceof Bt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ui(n,t)}remove(t){const{_finalizers:n}=this;n&&ui(n,t),t instanceof Bt&&t._removeParent(this)}}Bt.EMPTY=(()=>{const e=new Bt;return e.closed=!0,e})();const _f=Bt.EMPTY;function Df(e){return e instanceof Bt||e&&"closed"in e&&pe(e.remove)&&pe(e.add)&&pe(e.unsubscribe)}function Cf(e){pe(e)?e():e.unsubscribe()}const jn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Io={setTimeout(e,t,...n){const{delegate:r}=Io;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Io;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function wf(e){Io.setTimeout(()=>{const{onUnhandledError:t}=jn;if(!t)throw e;t(e)})}function Ef(){}const vw=qa("C",void 0,void 0);function qa(e,t,n){return{kind:e,value:t,error:n}}let Hn=null;function To(e){if(jn.useDeprecatedSynchronousErrorHandling){const t=!Hn;if(t&&(Hn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Hn;if(Hn=null,n)throw r}}else e()}class Wa extends Bt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Df(t)&&t.add(this)):this.destination=Sw}static create(t,n,r){return new ci(t,n,r)}next(t){this.isStopped?Za(function Dw(e){return qa("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Za(function _w(e){return qa("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Za(vw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ww=Function.prototype.bind;function Qa(e,t){return ww.call(e,t)}class Ew{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ao(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ao(r)}else Ao(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ao(n)}}}class ci extends Wa{constructor(t,n,r){let i;if(super(),pe(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&jn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Qa(t.next,o),error:t.error&&Qa(t.error,o),complete:t.complete&&Qa(t.complete,o)}):i=t}this.destination=new Ew(i)}}function Ao(e){jn.useDeprecatedSynchronousErrorHandling?function Cw(e){jn.useDeprecatedSynchronousErrorHandling&&Hn&&(Hn.errorThrown=!0,Hn.error=e)}(e):wf(e)}function Za(e,t){const{onStoppedNotification:n}=jn;n&&Io.setTimeout(()=>n(e,t))}const Sw={closed:!0,next:Ef,error:function bw(e){throw e},complete:Ef},Ka="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ya(e){return e}let xe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function Iw(e){return e&&e instanceof Wa||function Mw(e){return e&&pe(e.next)&&pe(e.error)&&pe(e.complete)}(e)&&Df(e)}(n)?n:new ci(n,r,i);return To(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Sf(r))((i,o)=>{const s=new ci({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ka](){return this}pipe(...n){return function bf(e){return 0===e.length?Ya:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=Sf(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Sf(e){var t;return null!==(t=e??jn.Promise)&&void 0!==t?t:Promise}const Tw=So(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let No=(()=>{class e extends xe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Mf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Tw}next(n){To(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){To(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){To(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?_f:(this.currentObservers=null,o.push(n),new Bt(()=>{this.currentObservers=null,ui(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new xe;return n.source=this,n}}return e.create=(t,n)=>new Mf(t,n),e})();class Mf extends No{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:_f}}function $n(e){return t=>{if(function Aw(e){return pe(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function _n(e,t,n,r,i){return new Nw(e,t,n,r,i)}class Nw extends Wa{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Xa(e,t){return $n((n,r)=>{let i=0;n.subscribe(_n(r,o=>{r.next(e.call(t,o,i++))}))})}function Dn(e){return this instanceof Dn?(this.v=e,this):new Dn(e)}function Nf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function nl(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Of=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ff(e){return pe(e?.then)}function Pf(e){return pe(e[Ka])}function xf(e){return Symbol.asyncIterator&&pe(e?.[Symbol.asyncIterator])}function Rf(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const kf=function Xw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Lf(e){return pe(e?.[kf])}function Vf(e){return function Af(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(h){return new Promise(function(p,g){o.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof Dn?Promise.resolve(f.value.v).then(u,c):d(o[0][2],f)}(r[f](h))}catch(p){d(o[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield Dn(n.read());if(i)return yield Dn(void 0);yield yield Dn(r)}}finally{n.releaseLock()}})}function Bf(e){return pe(e?.getReader)}function jt(e){if(e instanceof xe)return e;if(null!=e){if(Pf(e))return function Jw(e){return new xe(t=>{const n=e[Ka]();if(pe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Of(e))return function eE(e){return new xe(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,wf)})}(e);if(xf(e))return jf(e);if(Lf(e))return function nE(e){return new xe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Bf(e))return function rE(e){return jf(Vf(e))}(e)}throw Rf(e)}function jf(e){return new xe(t=>{(function iE(e,t){var n,r,i,o;return function If(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Nf(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Cn(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Hf(e,t,n=1/0){return pe(t)?Hf((r,i)=>Xa((o,s)=>t(r,o,i,s))(jt(e(r,i))),n):("number"==typeof t&&(n=t),$n((r,i)=>function oE(e,t,n,r,i,o,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=g=>u{o&&t.next(g),u++;let y=!1;jt(n(g,c++)).subscribe(_n(t,D=>{i?.(D),o?h(D):t.next(D)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&up(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(_n(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,n)))}const $f=new xe(e=>e.complete());function rl(e){return e[e.length-1]}function Uf(e){return function lE(e){return e&&pe(e.schedule)}(rl(e))?e.pop():void 0}function Gf(e,t=0){return $n((n,r)=>{n.subscribe(_n(r,i=>Cn(r,e,()=>r.next(i),t),()=>Cn(r,e,()=>r.complete(),t),i=>Cn(r,e,()=>r.error(i),t)))})}function zf(e,t=0){return $n((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function qf(e,t){if(!e)throw new Error("Iterable cannot be null");return new xe(n=>{Cn(n,t,()=>{const r=e[Symbol.asyncIterator]();Cn(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function il(e,t){return t?function mE(e,t){if(null!=e){if(Pf(e))return function dE(e,t){return jt(e).pipe(zf(t),Gf(t))}(e,t);if(Of(e))return function hE(e,t){return new xe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ff(e))return function fE(e,t){return jt(e).pipe(zf(t),Gf(t))}(e,t);if(xf(e))return qf(e,t);if(Lf(e))return function pE(e,t){return new xe(n=>{let r;return Cn(n,t,()=>{r=e[kf](),Cn(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>pe(r?.return)&&r.return()})}(e,t);if(Bf(e))return function gE(e,t){return qf(Vf(e),t)}(e,t)}throw Rf(e)}(e,t):jt(e)}function yE(...e){const t=Uf(e),n=function cE(e,t){return"number"==typeof rl(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?jt(r[0]):function sE(e=1/0){return Hf(Ya,e)}(n)(il(r,t)):$f}class vE extends No{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Wf(e={}){const{connector:t=(()=>new No),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return $n((g,y)=>{u++,!d&&!c&&f();const D=l=l??t();y.add(()=>{u--,0===u&&!d&&!c&&(a=ol(p,i))}),D.subscribe(y),!s&&u>0&&(s=new ci({next:m=>D.next(m),error:m=>{d=!0,f(),a=ol(h,n,m),D.error(m)},complete:()=>{c=!0,f(),a=ol(h,r),D.complete()}}),jt(g).subscribe(s))})(o)}}function ol(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new ci({next:()=>{r.unsubscribe(),e()}});return jt(t(...n)).subscribe(r)}function wE(e,t){return e===t}function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("Could not find renamed property on target object.")}function Oo(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function be(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(be).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function sl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const EE=ee({__forward_ref__:ee});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return be(this())},e}function P(e){return al(e)?e():e}function al(e){return"function"==typeof e&&e.hasOwnProperty(EE)&&e.__forward_ref__===ne}function ll(e){return e&&!!e.\u0275providers}const Qf="https://g.co/ng/security#xss";class v extends Error{constructor(t,n){super(function Fo(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function R(e){return"string"==typeof e?e:null==e?"":String(e)}function ul(e,t){throw new v(-201,!1)}function pt(e,t){null==e&&function O(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function bt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Po(e){return Zf(e,Ro)||Zf(e,Kf)}function Zf(e,t){return e.hasOwnProperty(t)?e[t]:null}function xo(e){return e&&(e.hasOwnProperty(cl)||e.hasOwnProperty(NE))?e[cl]:null}const Ro=ee({\u0275prov:ee}),cl=ee({\u0275inj:ee}),Kf=ee({ngInjectableDef:ee}),NE=ee({ngInjectorDef:ee});var U=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(U||{});let dl;function Ye(e){const t=dl;return dl=e,t}function Xf(e,t,n){const r=Po(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&U.Optional?null:void 0!==t?t:void ul(be(e))}const oe=globalThis;class T{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const di={},ml="__NG_DI_FLAG__",ko="ngTempTokenPath",PE=/\n/gm,eh="__source";let ur;function wn(e){const t=ur;return ur=e,t}function kE(e,t=U.Default){if(void 0===ur)throw new v(-203,!1);return null===ur?Xf(e,void 0,t):ur.get(e,t&U.Optional?null:void 0,t)}function k(e,t=U.Default){return(function Yf(){return dl}()||kE)(P(e),t)}function re(e,t=U.Default){return k(e,Lo(t))}function Lo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yl(e){const t=[];for(let n=0;nt){s=o-1;break}}}for(;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==ih(h,u,0)||2&r&&u!==f){if(St(r))return!1;s=!0}}}}else{if(!s&&!St(r)&&!St(l))return!1;if(s&&St(l))continue;s=!1,r=l|1&r}}return St(r)||s}function St(e){return 0==(1&e)}function UE(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!St(s)&&(t+=dh(o,i),i=""),r=s,o=o||!St(r);n++}return""!==i&&(t+=dh(o,i)),t}function En(e){return tn(()=>{const t=hh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Vo.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gt.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:""};ph(n);const r=e.dependencies;return n.directiveDefs=jo(r,!1),n.pipeDefs=jo(r,!0),n.id=function nb(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function XE(e){return G(e)||Ne(e)}function JE(e){return null!==e}function $t(e){return tn(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function fh(e,t){if(null==e)return Ht;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function V(e){return tn(()=>{const t=hh(e);return ph(t),t})}function Xe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function G(e){return e[Bo]||null}function Ne(e){return e[vl]||null}function $e(e){return e[_l]||null}function hh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ht,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:fh(e.inputs,t),outputs:fh(e.outputs)}}function ph(e){e.features?.forEach(t=>t(e))}function jo(e,t){if(!e)return null;const n=t?$e:XE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(JE)}const ye=0,E=1,j=2,fe=3,Mt=4,mi=5,Re=6,cr=7,_e=8,bn=9,dr=10,L=11,yi=12,gh=13,fr=14,De=15,vi=16,hr=17,Ut=18,_i=19,mh=20,Sn=21,rn=22,Di=23,Ci=24,$=25,Cl=1,yh=2,Gt=7,pr=9,Oe=11;function Je(e){return Array.isArray(e)&&"object"==typeof e[Cl]}function Ue(e){return Array.isArray(e)&&!0===e[Cl]}function wl(e){return 0!=(4&e.flags)}function Gn(e){return e.componentOffset>-1}function $o(e){return 1==(1&e.flags)}function It(e){return!!e.template}function El(e){return 0!=(512&e[j])}function zn(e,t){return e.hasOwnProperty(nn)?e[nn]:null}let Fe=null,Uo=!1;function mt(e){const t=Fe;return Fe=e,t}const Dh={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function wh(e){if(!Ei(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Sh(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function bh(e){e.dirty=!0,function Eh(e){if(void 0===e.liveConsumerNode)return;const t=Uo;Uo=!0;try{for(const n of e.liveConsumerNode)n.dirty||bh(n)}finally{Uo=t}}(e),e.consumerMarkedDirty?.(e)}function Sl(e){return e&&(e.nextProducerIndex=0),mt(e)}function Ml(e,t){if(mt(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ei(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Sh(e){gr(e);for(let t=0;t0}function gr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ah=null;const Ph=()=>{},gb=(()=>({...Dh,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ph}))();class mb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function on(){return xh}function xh(e){return e.type.prototype.ngOnChanges&&(e.setInput=vb),yb}function yb(){const e=kh(this),t=e?.current;if(t){const n=e.previous;if(n===Ht)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function vb(e,t,n,r){const i=this.declaredInputs[n],o=kh(e)||function _b(e,t){return e[Rh]=t}(e,{previous:Ht,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new mb(l&&l.currentValue,t,a===Ht),e[r]=t}on.ngInherit=!0;const Rh="__ngSimpleChanges__";function kh(e){return e[Rh]||null}const zt=function(e,t,n){};function se(e){for(;Array.isArray(e);)e=e[ye];return e}function zo(e,t){return se(t[e])}function et(e,t){return se(t[e.index])}function Bh(e,t){return e.data[t]}function st(e,t){const n=t[e];return Je(n)?n:n[ye]}function In(e,t){return null==t?null:e[t]}function jh(e){e[hr]=0}function Sb(e){1024&e[j]||(e[j]|=1024,$h(e,1))}function Hh(e){1024&e[j]&&(e[j]&=-1025,$h(e,-1))}function $h(e,t){let n=e[fe];if(null===n)return;n[mi]+=t;let r=n;for(n=n[fe];null!==n&&(1===t&&1===r[mi]||-1===t&&0===r[mi]);)n[mi]+=t,r=n,n=n[fe]}const F={lFrame:Jh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function zh(){return F.bindingsEnabled}function yr(){return null!==F.skipHydrationRootTNode}function _(){return F.lFrame.lView}function z(){return F.lFrame.tView}function Pe(){let e=qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function qh(){return F.lFrame.currentTNode}function qt(e,t){const n=F.lFrame;n.currentTNode=e,n.isParent=t}function Ol(){return F.lFrame.isParent}function Fl(){F.lFrame.isParent=!1}function vr(){return F.lFrame.bindingIndex++}function Bb(e,t){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,Pl(t)}function Pl(e){F.lFrame.currentDirectiveIndex=e}function Kh(){return F.lFrame.currentQueryIndex}function Rl(e){F.lFrame.currentQueryIndex=e}function Hb(e){const t=e[E];return 2===t.type?t.declTNode:1===t.type?e[Re]:null}function Yh(e,t,n){if(n&U.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&U.Host||(i=Hb(o),null===i||(o=o[fr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=F.lFrame=Xh();return r.currentTNode=t,r.lView=e,!0}function kl(e){const t=Xh(),n=e[E];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xh(){const e=F.lFrame,t=null===e?null:e.child;return null===t?Jh(e):t}function Jh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ep(){const e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const tp=ep;function Ll(){const e=ep();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ze(){return F.lFrame.selectedIndex}function qn(e){F.lFrame.selectedIndex=e}function ge(){const e=F.lFrame;return Bh(e.tView,e.selectedIndex)}let ip=!0;function qo(){return ip}function Tn(e){ip=e}function Wo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[hr]+=65536),(a>13>16&&(3&e[j])===t&&(e[j]+=8192,sp(a,o)):sp(a,o)}const _r=-1;class Si{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function jl(e){return e!==_r}function Mi(e){return 32767&e}function Ii(e,t){let n=function Xb(e){return e>>16}(e),r=t;for(;n>0;)r=r[fr],n--;return r}let Hl=!0;function Ko(e){const t=Hl;return Hl=e,t}const ap=255,lp=5;let Jb=0;const Wt={};function Yo(e,t){const n=up(e,t);if(-1!==n)return n;const r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,$l(r.data,e),$l(t,null),$l(r.blueprint,null));const i=Xo(e,t),o=e.injectorIndex;if(jl(i)){const s=Mi(i),a=Ii(i,t),l=a[E].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function $l(e,t){e.push(0,0,0,0,0,0,0,0,t)}function up(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xo(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=mp(i),null===r)return _r;if(n++,i=i[fr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return _r}function Ul(e,t,n){!function eS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(hi)&&(r=n[hi]),null==r&&(r=n[hi]=Jb++);const i=r≈t.data[e+(i>>lp)]|=1<=0?t&ap:oS:t}(n);if("function"==typeof o){if(!Yh(t,e,r))return r&U.Host?cp(i,0,r):dp(t,n,r,i);try{let s;if(s=o(r),null!=s||r&U.Optional)return s;ul()}finally{tp()}}else if("number"==typeof o){let s=null,a=up(e,t),l=_r,u=r&U.Host?t[De][Re]:null;for((-1===a||r&U.SkipSelf)&&(l=-1===a?Xo(e,t):t[a+8],l!==_r&&gp(r,!1)?(s=t[E],a=Mi(l),t=Ii(l,t)):a=-1);-1!==a;){const c=t[E];if(pp(o,a,c.data)){const d=nS(a,t,n,s,r,u);if(d!==Wt)return d}l=t[a+8],l!==_r&&gp(r,t[E].data[a+8]===u)&&pp(o,a,t)?(s=c,a=Mi(l),t=Ii(l,t)):a=-1}}return i}function nS(e,t,n,r,i,o){const s=t[E],a=s.data[e+8],c=Jo(a,s,n,null==r?Gn(a)&&Hl:r!=s&&0!=(3&a.type),i&U.Host&&o===a);return null!==c?Wn(t,s,c,a):Wt}function Jo(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,f=i?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(i){const h=s[l];if(h&&It(h)&&h.type===n)return l}return null}function Wn(e,t,n,r){let i=e[n];const o=t.data;if(function Zb(e){return e instanceof Si}(i)){const s=i;s.resolving&&function bE(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,`Circular dependency in DI detected for ${e}${n}`)}(function X(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():R(e)}(o[n]));const a=Ko(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Ye(s.injectImpl):null;Yh(e,r,U.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Wb(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=xh(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t)}finally{null!==u&&Ye(u),Ko(a),s.resolving=!1,tp()}}return i}function pp(e,t,n){return!!(n[t+(e>>lp)]&1<{const t=Gl(P(e));return t&&t()}:zn(e)}function mp(e){const t=e[E],n=t.type;return 2===n?t.declTNode:1===n?e[Re]:null}function Sr(e,t){e.forEach(n=>Array.isArray(n)?Sr(n,t):t(n))}function vp(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function es(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ni(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function hS(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Wl(e,t){const n=Mr(e,t);if(n>=0)return e[1|n]}function Mr(e,t){return function _p(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<0&&(e[n-1][Mt]=r[Mt]);const o=es(e,Oe+t);!function KS(e,t){Ri(e,t,t[L],2,null,null),t[ye]=null,t[Re]=null}(r[E],r);const s=o[Ut];null!==s&&s.detachView(o[E]),r[fe]=null,r[Mt]=null,r[j]&=-129}return r}function su(e,t){if(!(256&t[j])){const n=t[L];t[Di]&&Mh(t[Di]),t[Ci]&&Mh(t[Ci]),n.destroyNode&&Ri(e,t,n,3,null,null),function JS(e){let t=e[yi];if(!t)return au(e[E],e);for(;t;){let n=null;if(Je(t))n=t[yi];else{const r=t[Oe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)Je(t)&&au(t[E],t),t=t[fe];null===t&&(t=e),Je(t)&&au(t[E],t),n=t&&t[Mt]}t=n}}(t)}}function au(e,t){if(!(256&t[j])){t[j]&=-129,t[j]|=256,function rM(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else n[o].call(r[n[o+1]]);null!==r&&(t[cr]=null);const i=t[Sn];if(null!==i){t[Sn]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===gt.None||o===gt.Emulated)return null}return et(r,n)}}(e,t.parent,n)}function Qn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function zp(e,t,n){e.appendChild(t,n)}function qp(e,t,n,r,i){null!==r?Qn(e,t,n,r,i):zp(e,t,n)}function ds(e,t){return e.parentNode(t)}function Wp(e,t,n){return Zp(e,t,n)}let uu,hu,Zp=function Qp(e,t,n){return 40&e.type?et(e,n):null};function fs(e,t,n,r){const i=lu(e,r,t),o=t[L],a=Wp(r.parent||t[Re],r,t);if(null!=i)if(Array.isArray(n))for(let l=0;l{n.push(s)};return Sr(t,s=>{const a=s;vs(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&yg(i,o),n}function yg(e,t){for(let n=0;n{t(o,r)})}}function vs(e,t,n,r){if(!(e=P(e)))return!1;let i=null,o=xo(e);const s=!o&&G(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=xo(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)vs(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Sr(o.imports,c=>{vs(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&yg(u,t)}if(!a){const u=zn(i)||(()=>new i);t({provide:i,useFactory:u,deps:Q},i),t({provide:pg,useValue:i,multi:!0},i),t({provide:ys,useValue:()=>k(i),multi:!0},i)}const l=o.providers;if(null!=l&&!a){const u=e;Cu(l,c=>{t(c,u)})}}}return i!==e&&void 0!==e.providers}function Cu(e,t){for(let n of e)ll(n)&&(n=n.\u0275providers),Array.isArray(n)?Cu(n,t):t(n)}const VM=ee({provide:String,useValue:ee});function wu(e){return null!==e&&"object"==typeof e&&VM in e}function Zn(e){return"function"==typeof e}const Eu=new T("Set Injector scope."),_s={},jM={};let bu;function Ds(){return void 0===bu&&(bu=new Du),bu}class un{}class Pr extends un{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Mu(t,s=>this.processProvider(s)),this.records.set(hg,xr(void 0,this)),i.has("environment")&&this.records.set(un,xr(void 0,this));const o=this.records.get(Eu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(pg.multi,Q,U.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=wn(this),r=Ye(void 0);try{return t()}finally{wn(n),Ye(r)}}get(t,n=di,r=U.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(rh))return t[rh](this);r=Lo(r);const o=wn(this),s=Ye(void 0);try{if(!(r&U.SkipSelf)){let l=this.records.get(t);if(void 0===l){const u=function zM(e){return"function"==typeof e||"object"==typeof e&&e instanceof T}(t)&&Po(t);l=u&&this.injectableDefInScope(u)?xr(Su(t),_s):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(r&U.Self?Ds():this.parent).get(t,n=r&U.Optional&&n===di?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ko]=a[ko]||[]).unshift(be(t)),o)throw a;return function VE(e,t,n,r){const i=e[ko];throw t[eh]&&i.unshift(t[eh]),e.message=function BE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=be(t);if(Array.isArray(t))i=t.map(be).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):be(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(PE,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[ko]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Ye(s),wn(o)}}resolveInjectorInitializers(){const t=wn(this),n=Ye(void 0);try{const i=this.get(ys.multi,Q,U.Self);for(const o of i)o()}finally{wn(t),Ye(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(be(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(t){let n=Zn(t=P(t))?t:P(t&&t.provide);const r=function $M(e){return wu(e)?xr(void 0,e.useValue):xr(Dg(e),_s)}(t);if(Zn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=xr(void 0,_s,!0),i.factory=()=>yl(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===_s&&(n.value=jM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function GM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=P(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Su(e){const t=Po(e),n=null!==t?t.factory:zn(e);if(null!==n)return n;if(e instanceof T)throw new v(204,!1);if(e instanceof Function)return function HM(e){const t=e.length;if(t>0)throw Ni(t,"?"),new v(204,!1);const n=function AE(e){return e&&(e[Ro]||e[Kf])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new v(204,!1)}function Dg(e,t,n){let r;if(Zn(e)){const i=P(e);return zn(i)||Su(i)}if(wu(e))r=()=>P(e.useValue);else if(function _g(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yl(e.deps||[]));else if(function vg(e){return!(!e||!e.useExisting)}(e))r=()=>k(P(e.useExisting));else{const i=P(e&&(e.useClass||e.provide));if(!function UM(e){return!!e.deps}(e))return zn(i)||Su(i);r=()=>new i(...yl(e.deps))}return r}function xr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Mu(e,t){for(const n of e)Array.isArray(n)?Mu(n,t):n&&ll(n)?Mu(n.\u0275providers,t):t(n)}const Cs=new T("AppId",{providedIn:"root",factory:()=>qM}),qM="ng",Cg=new T("Platform Initializer"),Rr=new T("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wg=new T("AnimationModuleType"),Eg=new T("CSP nonce",{providedIn:"root",factory:()=>function Or(){if(void 0!==hu)return hu;if(typeof document<"u")return document;throw new v(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let bg=(e,t,n)=>null;function xu(e,t,n=!1){return bg(e,t,n)}class nI{}class Ig{}class iI{resolveComponentFactory(t){throw function rI(e){const t=Error(`No component factory found for ${be(e)}.`);return t.ngComponent=e,t}(t)}}let Is=(()=>{class e{static#e=this.NULL=new iI}return e})();function oI(){return Vr(Pe(),_())}function Vr(e,t){return new Tt(et(e,t))}let Tt=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=oI}return e})();function sI(e){return e instanceof Tt?e.nativeElement:e}class Hi{}let Kn=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function aI(){const e=_(),n=st(Pe().index,e);return(Je(n)?n:e)[L]}()}return e})(),lI=(()=>{class e{static#e=this.\u0275prov=q({token:e,providedIn:"root",factory:()=>null})}return e})();class Ts{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ag=new Ts("16.2.11"),Lu={};function Pg(e,t=null,n=null,r){const i=xg(e,t,n,r);return i.resolveInjectorInitializers(),i}function xg(e,t=null,n=null,r,i=new Set){const o=[n||Q,LM(e)];return r=r||("object"==typeof e?void 0:be(e)),new Pr(o,t||Ds(),r||null,i)}let At=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=di;static#t=this.NULL=new Du;static create(n,r){if(Array.isArray(n))return Pg({name:""},r,n,"");{const i=n.name??"";return Pg({name:i},n.parent,n.providers,i)}}static#n=this.\u0275prov=q({token:e,providedIn:"any",factory:()=>k(hg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Bu(e){return e.ngOriginalError}class cn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Bu(t);for(;n&&Bu(n);)n=Bu(n);return n||null}}function Hu(e){return t=>{setTimeout(e,void 0,t)}}const Me=class gI extends No{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Hu(o),i&&(i=Hu(i)),s&&(s=Hu(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof Bt&&t.add(a),a}};function kg(...e){}class he{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function mI(){const e="function"==typeof oe.requestAnimationFrame;let t=oe[e?"requestAnimationFrame":"setTimeout"],n=oe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function _I(e){const t=()=>{!function vI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Uu(e),e.isCheckStableRunning=!0,$u(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Uu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function CI(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(i,o,s,a);try{return Lg(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Vg(e)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return Lg(e),n.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Vg(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Uu(e),$u(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!he.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(he.isInAngularZone())throw new v(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,yI,kg,kg);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const yI={};function $u(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Uu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Lg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vg(e){e._nesting--,$u(e)}class DI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const Bg=new T("",{providedIn:"root",factory:jg});function jg(){const e=re(he);let t=!0;return yE(new xe(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),new xe(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{he.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{he.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(Wf()))}let Gu=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();function $i(e){for(;e;){e[j]|=64;const t=Pi(e);if(El(e)&&!t)return e;e=t}return null}const zg=new T("",{providedIn:"root",factory:()=>!1});let Ns=null;function Zg(e,t){return e[t]??Xg()}function Kg(e,t){const n=Xg();n.producerNode?.length&&(e[t]=Ns,n.lView=e,Ns=Yg())}const OI={...Dh,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{$i(e.lView)},lView:null};function Yg(){return Object.create(OI)}function Xg(){return Ns??=Yg(),Ns}const B={};function J(e){Jg(z(),_(),ze()+e,!1)}function Jg(e,t,n,r){if(!r)if(3==(3&t[j])){const o=e.preOrderCheckHooks;null!==o&&Qo(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Zo(t,o,0,n)}qn(n)}function C(e,t=U.Default){const n=_();return null===n?k(e,t):fp(Pe(),n,P(e),t)}function Os(e,t,n,r,i,o,s,a,l,u,c){const d=t.blueprint.slice();return d[ye]=i,d[j]=140|r,(null!==u||e&&2048&e[j])&&(d[j]|=2048),jh(d),d[fe]=d[fr]=e,d[_e]=n,d[dr]=s||e&&e[dr],d[L]=a||e&&e[L],d[bn]=l||e&&e[bn]||null,d[Re]=o,d[_i]=function VS(){return LS++}(),d[rn]=c,d[mh]=u,d[De]=2==t.type?e[De]:d,d}function Hr(e,t,n,r,i){let o=e.data[t];if(null===o)o=function zu(e,t,n,r,i){const o=qh(),s=Ol(),l=e.data[t]=function jI(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return yr()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,t,n,r,i),function Vb(){return F.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=function bi(){const e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return qt(o,!0),o}function Ui(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o$&&Jg(e,t,$,!1),zt(a?2:0,i);const u=a?o:null,c=Sl(u);try{null!==u&&(u.dirty=!1),n(r,i)}finally{Ml(u,c)}}finally{a&&null===t[Di]&&Kg(t,Di),qn(s),zt(a?3:1,i)}}function qu(e,t,n){if(wl(t)){const r=mt(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function rm(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const o=e[i];null===r?im(n,t,i,o):r.hasOwnProperty(i)&&im(n,t,r[i],o)}return n}function im(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function Ku(e,t,n,r){if(zh()){const i=null===r?null:{"":-1},o=function ZI(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Ui(e,n,i.hostVars,B),i)}function Qt(e,t,n,r,i,o){const s=et(e,t);!function Xu(e,t,n,r,i,o,s){if(null==o)e.removeAttribute(t,i,n);else{const a=null==s?R(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}(t[L],s,o,e.value,n,r,i)}function t0(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,i){const o=typeof Zone>"u"?null:Zone.current,s=function pb(e,t,n){const r=Object.create(gb);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>bh(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Sh(r))return;r.hasRun=!0;const s=Sl(r);try{r.cleanupFn(),r.cleanupFn=Ph,r.fn(i)}finally{Ml(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(n,u=>{this.all.has(u)&&this.queue.set(u,o)},i);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ps(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s0){ym(e,1);const i=n.components;null!==i&&_m(e,i,1)}}function _m(e,t,n){for(let r=0;r-1&&(cs(t,r),es(n,r))}this._attachedToViewContainer=!1}su(this._lView[E],this._lView)}onDestroy(t){!function Uh(e,t){if(256==(256&e[j]))throw new v(911,!1);null===e[Sn]&&(e[Sn]=[]),e[Sn].push(t)}(this._lView,t)}markForCheck(){$i(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-129}reattach(){this._lView[j]|=128}detectChanges(){xs(this._lView[E],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function XS(e,t){Ri(e,t,t[L],2,null,null)}(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t}}class d0 extends zi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;xs(t[E],t,t[_e],!1)}checkNoChanges(){}get context(){return null}}class Dm extends Is{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=G(t);return new qi(n,this.ngModule)}}function Cm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class h0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Lo(r);const i=this.injector.get(t,Lu,r);return i!==Lu||n===Lu?i:this.parentInjector.get(t,n,r)}}class qi extends Ig{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Cm(t.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Cm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function ZE(e){return e.map(QE).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof un?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new h0(t,o):t,a=s.get(Hi,null);if(null===a)throw new v(407,!1);const d={rendererFactory:a,sanitizer:s.get(lI,null),effectManager:s.get(pm,null),afterRenderEventManager:s.get(Gu,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function RI(e,t,n,r){const o=r.get(zg,!1)||n===gt.ShadowDom,s=e.selectRootElement(t,o);return function kI(e){nm(e)}(s),s}(f,r,this.componentDef.encapsulation,s):us(f,h,function f0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(h)),D=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let m=null;null!==p&&(m=xu(p,s,!0));const S=Zu(0,null,null,1,0,null,null,null,null,null,null),M=Os(null,S,null,D,null,null,d,f,s,null,m);let H,ce;kl(M);try{const de=this.componentDef;let je,ft=null;de.findHostDirectiveDefs?(je=[],ft=new Map,de.findHostDirectiveDefs(de,je,ft),je.push(de)):je=[de];const Vt=function g0(e,t){const n=e[E],r=$;return e[r]=t,Hr(n,r,2,"#host",null)}(M,p),Ga=function m0(e,t,n,r,i,o,s){const a=i[E];!function y0(e,t,n,r){for(const i of e)t.mergedAttrs=pi(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Ps(t,t.mergedAttrs,!0),null!==n&&tg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=xu(t,i[bn]));const u=o.rendererFactory.createRenderer(t,n);let c=16;n.signals?c=4096:n.onPush&&(c=64);const d=Os(i,tm(n),null,c,i[e.index],e,o,u,null,null,l);return a.firstCreatePass&&Yu(a,e,r.length-1),Fs(i,d),i[e.index]=d}(Vt,p,de,je,M,d,f);ce=Bh(S,$),p&&function _0(e,t,n,r){if(r)Dl(e,n,["ng-version",Ag.full]);else{const{attrs:i,classes:o}=function KE(e){const t=[],n=[];let r=1,i=2;for(;r0&&eg(e,n,o.join(" "))}}(f,de,p,r),void 0!==n&&function D0(e,t,n){const r=e.projection=[];for(let i=0;i=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=pi(i.hostAttrs,n=pi(n,i.hostAttrs))}}(r)}function Rs(e){return e===Ht?{}:e===Q?[]:e}function E0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function b0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function S0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function Ve(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function _t(e,t,n,r){const i=_();return Ve(i,vr(),t)&&(z(),Qt(ge(),i,e,t,n,r)),_t}function Yr(e,t,n,r,i,o,s,a){const l=_(),u=z(),c=e+$,d=u.firstCreatePass?function Y0(e,t,n,r,i,o,s,a,l){const u=t.consts,c=Hr(t,e,4,s||null,In(u,a));Ku(t,n,c,In(u,l)),Wo(t,c);const d=c.tView=Zu(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,i,o,s):u.data[c];qt(d,!1);const f=Vm(u,l,d,e);qo()&&fs(u,l,f,d),Le(f,l),Fs(l,l[c]=lm(f,l,f,d)),$o(d)&&Wu(u,l,d),null!=s&&Qu(l,d,a)}let Vm=function Bm(e,t,n,r){return Tn(!0),t[L].createComment("")};function Te(e,t,n){const r=_();return Ve(r,vr(),t)&&function lt(e,t,n,r,i,o,s,a){const l=et(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(ec(e,n,c,r,i),Gn(t)&&function UI(e,t){const n=st(t,e);16&n[j]||(n[j]|=64)}(n,t.index)):3&t.type&&(r=function $I(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,t.value||"",r):i,o.setProperty(l,r,i))}(z(),ge(),r,e,t,r[L],n,!1),Te}function lc(e,t,n,r,i){const s=i?"class":"style";ec(e,n,t.inputs[s],s,r)}function b(e,t,n,r){const i=_(),o=z(),s=$+e,a=i[L],l=o.firstCreatePass?function nT(e,t,n,r,i,o){const s=t.consts,l=Hr(t,e,2,r,In(s,i));return Ku(t,n,l,In(s,o)),null!==l.attrs&&Ps(l,l.attrs,!1),null!==l.mergedAttrs&&Ps(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,t,n,r):o.data[s],u=jm(o,i,l,a,t,e);i[s]=u;const c=$o(l);return qt(l,!0),tg(a,u,l),32!=(32&l.flags)&&qo()&&fs(o,i,u,l),0===function Ib(){return F.lFrame.elementDepthCount}()&&Le(u,i),function Tb(){F.lFrame.elementDepthCount++}(),c&&(Wu(o,i,l),qu(o,l,i)),null!==r&&Qu(i,l),b}function w(){let e=Pe();Ol()?Fl():(e=e.parent,qt(e,!1));const t=e;(function Nb(e){return F.skipHydrationRootTNode===e})(t)&&function xb(){F.skipHydrationRootTNode=null}(),function Ab(){F.lFrame.elementDepthCount--}();const n=z();return n.firstCreatePass&&(Wo(n,e),wl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Kb(e){return 0!=(8&e.flags)}(t)&&lc(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Yb(e){return 0!=(16&e.flags)}(t)&&lc(n,t,_(),t.stylesWithoutHost,!1),w}function Z(e,t,n,r){return b(e,t,n,r),w(),Z}let jm=(e,t,n,r,i,o)=>(Tn(!0),us(r,i,function rp(){return F.lFrame.currentNamespace}()));function Hs(e){return!!e&&"function"==typeof e.then}function Um(e){return!!e&&"function"==typeof e.subscribe}function Ce(e,t,n,r){const i=_(),o=z(),s=Pe();return function zm(e,t,n,r,i,o,s){const a=$o(r),u=e.firstCreatePass&&dm(e),c=t[_e],d=cm(t);let f=!0;if(3&r.type||s){const g=et(r,t),y=s?s(g):g,D=d.length,m=s?M=>s(se(M[r.index])):r.index;let S=null;if(!s&&a&&(S=function uT(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=o,S.__ngLastListenerFn__=o,f=!1;else{o=Wm(r,t,c,o,!1);const M=n.listen(y,i,o);d.push(o,M),u&&u.push(i,m,D,D+1)}}else o=Wm(r,t,c,o,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const g=p.length;if(g)for(let y=0;y-1?st(e.index,t):t);let l=qm(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)l=qm(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&s.preventDefault(),l}}function Qm(e=1){return function $b(e){return(F.lFrame.contextLView=function Ub(e,t){for(;e>0;)t=t[fr],e--;return t}(e,F.lFrame.contextLView))[_e]}(e)}function cT(e,t){let n=null;const r=function GE(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i>17&32767}function fc(e){return 2|e}function Xn(e){return(131068&e)>>2}function hc(e,t){return-131069&e|t<<2}function pc(e){return 1|e}function sy(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?On(o):Xn(o),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];mT(e[a],t)&&(l=!0,e[a+1]=r?pc(c):fc(c)),a=r?On(c):Xn(c)}l&&(e[n+1]=r?fc(o):pc(o))}function mT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Mr(e,t)>=0}function Jr(e,t,n){return Nt(e,t,n,!1),Jr}function Yi(e,t){return Nt(e,t,null,!0),Yi}function Nt(e,t,n,r){const i=_(),o=z(),s=function an(e){const t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);o.firstUpdatePass&&function py(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[ze()],s=function hy(e,t){return t>=e.expandoStartIndex}(e,n);(function vy(e,t){return 0!=(e.flags&(t?8:16))})(o,r)&&null===t&&!s&&(t=!1),t=function ST(e,t,n,r){const i=function xl(e){const t=F.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Xi(n=gc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=gc(i,e,t,n,r),null===o){let l=function MT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Xn(r))return e[On(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=gc(null,e,t,l[1],r),l=Xi(l,t.attrs,r),function IT(e,t,n,r){e[On(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else o=function TT(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(u=!0)):c=n,i)if(0!==l){const f=On(e[a+1]);e[r+1]=$s(f,a),0!==f&&(e[f+1]=hc(e[f+1],r)),e[a+1]=function fT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=$s(a,0),0!==a&&(e[a+1]=hc(e[a+1],r)),a=r;else e[r+1]=$s(l,0),0===a?a=r:e[l+1]=hc(e[l+1],r),l=r;u&&(e[r+1]=fc(e[r+1])),sy(e,c,r,!0),sy(e,c,r,!1),function gT(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Mr(o,t)>=0&&(n[r+1]=pc(n[r+1]))}(t,c,e,r,o),s=$s(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}(o,e,s,r),t!==B&&Ve(i,s,t)&&function my(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function hT(e){return 1==(1&e)}(u)?yy(l,t,n,i,Xn(u),s):void 0;Us(c)||(Us(o)||function dT(e){return 2==(2&e)}(u)&&(o=yy(l,null,n,i,a,s)),function lM(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=-1===r.indexOf("-")?void 0:An.DashCase;null==i?e.removeStyle(n,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=An.Important),e.setStyle(n,r,i,o))}}(r,s,zo(ze(),n),i,o))}(o,o.data[ze()],i,i[L],e,i[s+1]=function FT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=be(Nn(e)))),e}(t,n),r,s)}function gc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[i+1];f===B&&(f=d?Q:void 0);let h=d?Wl(f,r):c===r?f:void 0;if(u&&!Us(h)&&(h=Wl(l,r)),Us(h)&&(a=h,s))return a;const p=e[i+1];i=s?On(p):Xn(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=Wl(l,r))}return a}function Us(e){return void 0!==e}function x(e,t=""){const n=_(),r=z(),i=e+$,o=r.firstCreatePass?Hr(r,i,1,t,null):r.data[i],s=_y(r,n,o,t,e);n[i]=s,qo()&&fs(r,n,s,o),qt(o,!1)}let _y=(e,t,n,r,i)=>(Tn(!0),function ls(e,t){return e.createText(t)}(t[L],r));function Gs(e){return Ft("",e,""),Gs}function Ft(e,t,n){const r=_(),i=function Ur(e,t,n,r){return Ve(e,vr(),n)?t+R(n)+r:B}(r,e,t,n);return i!==B&&function fn(e,t,n){const r=zo(t,e);!function $p(e,t,n){e.setValue(t,n)}(e[L],r,n)}(r,ze(),i),Ft}const ti="en-US";let Hy=ti;function vc(e,t,n,r,i){if(e=P(e),Array.isArray(e))for(let o=0;o>20;if(Zn(e)||!e.multi){const h=new Si(u,i,C),p=Dc(l,t,i?c:c+f,d);-1===p?(Ul(Yo(a,s),o,l),_c(o,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Dc(l,t,c+f,d),p=Dc(l,t,c,c+f),y=p>=0&&n[p];if(i&&!y||!i&&!(h>=0&&n[h])){Ul(Yo(a,s),o,l);const D=function JA(e,t,n,r,i){const o=new Si(e,n,C);return o.multi=[],o.index=t,o.componentProviders=0,fv(o,i,r&&!n),o}(i?XA:YA,n.length,i,r,u);!i&&y&&(n[p].providerFactory=D),_c(o,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else _c(o,e,h>-1?h:p,fv(n[i?p:h],u,!i&&r));!i&&r&&y&&n[p].componentProviders++}}}function _c(e,t,n,r){const i=Zn(t),o=function BM(e){return!!e.useClass}(t);if(i||o){const l=(o?P(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function fv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Dc(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function KA(e,t,n){const r=z();if(r.firstCreatePass){const i=It(e);vc(n,r.data,r.blueprint,i,!0),vc(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class er{}class eN{}class wc extends er{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dm(this);const i=function ot(e,t){const n=e[nh]||null;if(!n&&!0===t)throw new Error(`Type ${be(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function dn(e){return e instanceof Function?e():e}(i.bootstrap),this._r3Injector=xg(t,n,[{provide:er,useValue:this},{provide:Is,useValue:this.componentFactoryResolver},...r],be(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ec extends eN{constructor(t){super(),this.moduleType=t}create(t){return new wc(this.moduleType,t,[])}}function Dv(e,t,n,r,i,o){const s=t+n;return Ve(e,s,i)?function Zt(e,t,n){return e[t]=n}(e,s+1,o?r.call(o,i):r(i)):function io(e,t){const n=e[t];return n===B?void 0:n}(e,s+1)}function Sc(e,t){const n=z();let r;const i=e+$;n.firstCreatePass?(r=function bN(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=zn(r.type)),a=Ye(C);try{const l=Ko(!1),u=o();return Ko(l),function eT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),i,u),u}finally{Ye(a)}}function Mc(e,t,n){const r=e+$,i=_(),o=function mr(e,t){return e[t]}(i,r);return function oo(e,t){return e[E].data[t].pure}(i,r)?Dv(i,function Ge(){const e=F.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,o.transform,n,o):o.transform(n)}function AN(){return this._results[Symbol.iterator]()}class Ic{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Me)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Ic.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=AN)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=function yt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function dS(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(n[i-1][Mt]=t),r{class e{static#e=this.__NG_ELEMENT_ID__=xN}return e})();const FN=hn,PN=class extends FN{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=function NN(e,t,n,r){const i=t.tView,a=Os(e,i,n,4096&e[j]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[vi]=e[t.index];const u=e[Ut];return null!==u&&(a[Ut]=u.createEmbeddedView(i)),tc(i,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new zi(i)}};function xN(){return Zs(Pe(),_())}function Zs(e,t){return 4&e.type?new PN(t,e,Vr(e,t)):null}let Xt=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=jN}return e})();function jN(){return Ov(Pe(),_())}const HN=Xt,Av=class extends HN{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Vr(this._hostTNode,this._hostLView)}get injector(){return new qe(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xo(this._hostTNode,this._hostLView);if(jl(t)){const n=Ii(t,this._hostLView),r=Mi(t);return new qe(n[E].data[r+8],n)}return new qe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Nv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Oe}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=t.createEmbeddedViewImpl(n||{},o,null);return this.insertImpl(a,i,false),a}createComponent(t,n,r,i,o){const s=t&&!function Ai(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const g=n||{};a=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const l=s?t:new qi(G(t)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const y=(s?u:this.parentInjector).get(un,null);y&&(o=y)}G(l.componentType??{});const h=l.create(u,i,null,o);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const i=t._lView;if(function bb(e){return Ue(e[fe])}(i)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=i[fe],c=new Av(u,u[Re],u[fe]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return ON(a,i,s,!r),t.attachToViewContainerRef(),vp(Tc(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Nv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=cs(this._lContainer,n);r&&(es(Tc(this._lContainer),n),su(r[E],r))}detach(t){const n=this._adjustIndex(t,-1),r=cs(this._lContainer,n);return r&&null!=es(Tc(this._lContainer),n)?new zi(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Nv(e){return e[8]}function Tc(e){return e[8]||(e[8]=[])}function Ov(e,t){let n;const r=t[e.index];return Ue(r)?n=r:(n=lm(r,t,null,e),t[e.index]=n,Fs(t,n)),Fv(n,t,e,r),new Av(n,e,t)}let Fv=function Pv(e,t,n,r){if(e[Gt])return;let i;i=8&n.type?se(r):function $N(e,t){const n=e[L],r=n.createComment(""),i=et(t,e);return Qn(n,ds(n,i),r,function oM(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[Gt]=i};class Ac{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ac(this.queryList)}setDirty(){this.queryList.setDirty()}}class Nc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{const u=o[a+1],c=t[-l];for(let d=Oe;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=re(_1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const i of this.appInits){const o=i();if(Hs(o))n.push(o);else if(Um(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pn=new T("LocaleId",{providedIn:"root",factory:()=>re(pn,U.Optional|U.SkipSelf)||function C1(){return typeof $localize<"u"&&$localize.locale||ti}()});let b1=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new vE(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const l_=new T(""),Js=new T("");let Uc,Hc=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Uc||(function W1(e){Uc=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{he.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(k(he),k($c),k(Js))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),$c=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Uc?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Fn=null;const u_=new T("AllowMultipleToken"),Gc=new T("PlatformDestroyListeners"),c_=new T("appBootstrapListener");function h_(e,t,n=[]){const r=`Platform: ${t}`,i=new T(r);return(o=[])=>{let s=zc();if(!s||s.injector.get(u_,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function K1(e){if(Fn&&!Fn.get(u_,!1))throw new v(400,!1);(function d_(){!function ub(e){Ah=e}(()=>{throw new v(600,!1)})})(),Fn=e;const t=e.get(g_);(function f_(e){e.get(Cg,null)?.forEach(n=>n())})(e)}(function p_(e=[],t){return At.create({name:t,providers:[{provide:Eu,useValue:"platform"},{provide:Gc,useValue:new Set([()=>Fn=null])},...e]})}(a,r))}return function X1(e){const t=zc();if(!t)throw new v(401,!1);return t}()}}function zc(){return Fn?.get(g_)??null}let g_=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function J1(e="zone.js",t){return"noop"===e?new DI:"zone.js"===e?new he(t):e}(r?.ngZone,function m_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function nN(e,t,n){return new wc(e,t,n)}(n.moduleType,this.injector,function C_(e){return[{provide:he,useFactory:e},{provide:ys,multi:!0,useFactory:()=>{const t=re(tO,{optional:!0});return()=>t.initialize()}},{provide:D_,useFactory:eO},{provide:Bg,useFactory:jg}]}(()=>i)),s=o.injector.get(cn,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{ea(this._modules,o),a.unsubscribe()})}),function y_(e,t,n){try{const r=n();return Hs(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(Vc);return a.runInitializers(),a.donePromise.then(()=>(function $y(e){pt(e,"Expected localeId to be defined"),"string"==typeof e&&(Hy=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(pn,ti)||ti),this._moduleDoBootstrap(o),o))})})}bootstrapModule(n,r=[]){const i=v_({},r);return function Q1(e,t,n){const r=new Ec(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(ii);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new v(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new v(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Gc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(k(At))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function v_(e,t){return Array.isArray(t)?t.reduce(v_,e):{...e,...t}}let ii=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=re(D_),this.zoneIsStable=re(Bg),this.componentTypes=[],this.components=[],this.isStable=re(b1).hasPendingTasks.pipe(function DE(e,t){return $n((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(_n(r,l=>{i?.unsubscribe();let u=0;const c=o++;jt(e(l,c)).subscribe(i=_n(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}(n=>n?function _E(...e){return il(e,Uf(e))}(!1):this.zoneIsStable),function CE(e,t=Ya){return e=e??wE,$n((n,r)=>{let i,o=!0;n.subscribe(_n(r,s=>{const a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}(),Wf()),this._injector=re(un)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Ig;if(!this._injector.get(Vc).done)throw!i&&function gi(e){const t=G(e)||Ne(e)||$e(e);return null!==t&&t.standalone}(n),new v(405,!1);let s;s=i?n:this._injector.get(Is).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function Z1(e){return e.isBoundToModule}(s)?void 0:this._injector.get(er),u=s.create(At.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(l_,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),ea(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new v(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;ea(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(c_,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ea(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ea(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const D_=new T("",{providedIn:"root",factory:()=>re(cn).handleError.bind(void 0)});function eO(){const e=re(he),t=re(cn);return n=>e.runOutsideAngular(()=>t.handleError(n))}let tO=(()=>{class e{constructor(){this.zone=re(he),this.applicationRef=re(ii)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let qc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=rO}return e})();function rO(e){return function iO(e,t,n){if(Gn(e)&&!n){const r=st(e.index,t);return new zi(r,r)}return 47&e.type?new zi(t[De],t):null}(Pe(),_(),16==(16&e))}const yO=h_(null,"core",[]);let vO=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(k(ii))};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({})}return e})();let Jc=null;function uo(){return Jc}class OO{}const Pt=new T("DocumentToken");let cd=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new wF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){K_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){K_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(C(Xt),C(hn))};static#t=this.\u0275dir=V({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class wF{constructor(){this.$implicit=null,this.ngIf=null}}function K_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${be(t)}'.`)}let X_=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Xe({name:"json",type:e,pure:!1,standalone:!0})}return e})(),eD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({})}return e})();function nD(e){return"server"===e}class _P extends OO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class yd extends _P{static makeCurrent(){!function NO(e){Jc||(Jc=e)}(new yd)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function DP(){return po=po||document.querySelector("base"),po?po.getAttribute("href"):null}();return null==n?null:function CP(e){ya=ya||document.createElement("a"),ya.setAttribute("href",e);const t=ya.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){po=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function yF(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let ya,po=null,EP=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();const vd=new T("EventManagerPlugins");let aD=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(vd),k(he))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();class lD{constructor(t){this._doc=t}}const _d="ng-app-id";let uD=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=nD(o),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${_d}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){const i=this.styleRef;if(i.has(n)){const o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(_d),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(_d,this.appId),s}}addStyleToHost(n,r){const i=this.getStyleElement(n,r);n.appendChild(i);const o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Pt),k(Cs),k(Eg,8),k(Rr))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();const Dd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Cd=/%COMP%/g,IP=new T("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function dD(e,t){return t.map(n=>n.replace(Cd,e))}let wd=(()=>{class e{constructor(n,r,i,o,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=nD(a),this.defaultRenderer=new Ed(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===gt.ShadowDom&&(r={...r,encapsulation:gt.Emulated});const i=this.getOrCreateRenderer(n,r);return i instanceof hD?i.applyToHost(n):i instanceof bd&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case gt.Emulated:o=new hD(l,u,r,this.appId,c,s,a,d);break;case gt.ShadowDom:return new OP(l,u,n,r,s,a,this.nonce,d);default:o=new bd(l,u,r,c,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(k(aD),k(uD),k(Cs),k(IP),k(Pt),k(Rr),k(he),k(Eg))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();class Ed{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Dd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(fD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(fD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new v(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Dd[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Dd[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(An.DashCase|An.Important)?t.style.setProperty(n,r,i&An.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&An.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=uo().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function fD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class OP extends Ed{constructor(t,n,r,i,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=dD(i.id,i.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class bd extends Ed{constructor(t,n,r,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?dD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class hD extends bd{constructor(t,n,r,i,o,s,a,l){const u=i+"-"+r.id;super(t,n,r,o,s,a,l,u),this.contentAttr=function TP(e){return"_ngcontent-%COMP%".replace(Cd,e)}(u),this.hostAttr=function AP(e){return"_nghost-%COMP%".replace(Cd,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let FP=(()=>{class e extends lD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Pt))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();const pD=["alt","control","meta","shift"],PP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},xP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let RP=(()=>{class e extends lD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>uo().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),pD.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=PP[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),pD.forEach(s=>{s!==i&&(0,xP[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(k(Pt))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();const BP=h_(yO,"browser",[{provide:Rr,useValue:"browser"},{provide:Cg,useValue:function kP(){yd.makeCurrent()},multi:!0},{provide:Pt,useFactory:function VP(){return function hM(e){hu=e}(document),document},deps:[]}]),jP=new T(""),yD=[{provide:Js,useClass:class wP{addToWindow(t){oe.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new v(5103,!1);return o},oe.getAllAngularTestabilities=()=>t.getAllTestabilities(),oe.getAllAngularRootElements=()=>t.getAllRootElements(),oe.frameworkStabilizers||(oe.frameworkStabilizers=[]),oe.frameworkStabilizers.push(r=>{const i=oe.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?uo().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:l_,useClass:Hc,deps:[he,$c,Js]},{provide:Hc,useClass:Hc,deps:[he,$c,Js]}],vD=[{provide:Eu,useValue:"root"},{provide:cn,useFactory:function LP(){return new cn},deps:[]},{provide:vd,useClass:FP,multi:!0,deps:[Pt,he,Rr]},{provide:vd,useClass:RP,multi:!0,deps:[Pt]},wd,uD,aD,{provide:Hi,useExisting:wd},{provide:class KF{},useClass:EP,deps:[]},[]];let _D=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Cs,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(k(jP,12))};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({providers:[...vD,...yD],imports:[eD,vO]})}return e})(),DD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static#e=this.\u0275fac=function(r){return new(r||e)(k(Pt))};static#t=this.\u0275prov=q({token:e,factory:function(r){let i=null;return i=r?new r:function $P(){return new DD(k(Pt))}(),i},providedIn:"root"})}return e})();typeof window<"u"&&window;class bD{}class WP{}const yn="*";function SD(e,t=null){return{type:2,steps:e,options:t}}function MD(e){return{type:6,styles:e,offset:null}}class go{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class ID{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,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.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 n=t*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const t=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}function TD(e){return new v(3e3,!1)}function xn(e){switch(e.length){case 0:return new go;case 1:return e[0];default:return new ID(e)}}function AD(e,t,n=new Map,r=new Map){const i=[],o=[];let s=-1,a=null;if(t.forEach(l=>{const u=l.get("offset"),c=u==s,d=c&&a||new Map;l.forEach((f,h)=>{let p=h,g=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),g){case"!":g=n.get(h);break;case yn:g=r.get(h);break;default:g=e.normalizeStyleValue(h,p,g,i)}d.set(p,g)}),c||o.push(d),a=d,s=u}),i.length)throw function mx(e){return new v(3502,!1)}();return o}function Id(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Td(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Td(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Td(n,"destroy",e)))}}function Td(e,t,n){const o=Ad(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n.totalTime??e.totalTime,!!n.disabled),s=e._data;return null!=s&&(o._data=s),o}function Ad(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function ct(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function ND(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const Tx=(()=>typeof document>"u"?null:document.documentElement)();function Nd(e){const t=e.parentNode||e.host||null;return t===Tx?null:t}let nr=null,OD=!1;function FD(e,t){for(;t;){if(t===e)return!0;t=Nd(t)}return!1}function PD(e,t,n){if(n)return Array.from(e.querySelectorAll(t));const r=e.querySelector(t);return r?[r]:[]}let xD=(()=>{class e{validateStyleProperty(n){return function Nx(e){nr||(nr=function Ox(){return typeof document<"u"?document.body:null}()||{},OD=!!nr.style&&"WebkitAppearance"in nr.style);let t=!0;return nr.style&&!function Ax(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in nr.style,!t&&OD&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in nr.style)),t}(n)}matchesElement(n,r){return!1}containsElement(n,r){return FD(n,r)}getParentElement(n){return Nd(n)}query(n,r,i){return PD(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,s,a=[],l){return new go(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),Od=(()=>{class e{static#e=this.NOOP=new xD}return e})();const Fx=1e3,Fd="ng-enter",va="ng-leave",_a="ng-trigger",Da=".ng-trigger",kD="ng-animating",Pd=".ng-animating";function vn(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xd(parseFloat(t[1]),t[2])}function xd(e,t){return"s"===t?e*Fx:e}function Ca(e,t,n){return e.hasOwnProperty("duration")?e:function xx(e,t,n){let i,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(TD()),{duration:0,delay:0,easing:""};i=xd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=xd(parseFloat(l),a[4]));const u=a[5];u&&(s=u)}else i=e;if(!n){let a=!1,l=t.length;i<0&&(t.push(function QP(){return new v(3100,!1)}()),a=!0),o<0&&(t.push(function ZP(){return new v(3101,!1)}()),a=!0),a&&t.splice(l,0,TD())}return{duration:i,delay:o,easing:s}}(e,t,n)}function mo(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function LD(e){const t=new Map;return Object.keys(e).forEach(n=>{t.set(n,e[n])}),t}function Rn(e,t=new Map,n){if(n)for(let[r,i]of n)t.set(r,i);for(let[r,i]of e)t.set(r,i);return t}function Jt(e,t,n){t.forEach((r,i)=>{const o=kd(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function rr(e,t){t.forEach((n,r)=>{const i=kd(r);e.style[i]=""})}function yo(e){return Array.isArray(e)?1==e.length?e[0]:SD(e):e}const Rd=new RegExp("{{\\s*(.+?)\\s*}}","g");function BD(e){let t=[];if("string"==typeof e){let n;for(;n=Rd.exec(e);)t.push(n[1]);Rd.lastIndex=0}return t}function vo(e,t,n){const r=e.toString(),i=r.replace(Rd,(o,s)=>{let a=t[s];return null==a&&(n.push(function YP(e){return new v(3003,!1)}()),a=""),a.toString()});return i==r?e:i}function wa(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Lx=/-+([a-z0-9])/g;function kd(e){return e.replace(Lx,(...t)=>t[1].toUpperCase())}function dt(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw function XP(e){return new v(3004,!1)}()}}function jD(e,t){return window.getComputedStyle(e)[t]}const Ea="*";function jx(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function Hx(e,t,n){if(":"==e[0]){const l=function $x(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}(e,n);if("function"==typeof l)return void t.push(l);e=l}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function dx(e){return new v(3015,!1)}()),t;const i=r[1],o=r[2],s=r[3];t.push(HD(i,s));"<"==o[0]&&!(i==Ea&&s==Ea)&&t.push(HD(s,i))}(r,n,t)):n.push(e),n}const ba=new Set(["true","1"]),Sa=new Set(["false","0"]);function HD(e,t){const n=ba.has(e)||Sa.has(e),r=ba.has(t)||Sa.has(t);return(i,o)=>{let s=e==Ea||e==i,a=t==Ea||t==o;return!s&&n&&"boolean"==typeof i&&(s=i?ba.has(e):Sa.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?ba.has(t):Sa.has(t)),s&&a}}const Ux=new RegExp("s*:selfs*,?","g");function Ld(e,t,n,r){return new Gx(e).build(t,n,r)}class Gx{constructor(t){this._driver=t}build(t,n,r){const i=new Wx(n);return this._resetContextStyleTimingState(i),dt(this,yo(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,i=n.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&n.errors.push(function ex(){return new v(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,o.push(this.visitState(l,n))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,n);r+=l.queryCount,i+=l.depCount,s.push(l)}else n.errors.push(function tx(){return new v(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,n){const r=this.visitStyle(t.styles,n),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{BD(l).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&(wa(o.values()),n.errors.push(function nx(e,t){return new v(3008,!1)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;const r=dt(this,yo(t.animation),n);return{type:1,matchers:jx(t.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:ir(t.options)}}visitSequence(t,n){return{type:2,steps:t.steps.map(r=>dt(this,r,n)),options:ir(t.options)}}visitGroup(t,n){const r=n.currentTime;let i=0;const o=t.steps.map(s=>{n.currentTime=r;const a=dt(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:3,steps:o,options:ir(t.options)}}visitAnimate(t,n){const r=function Zx(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Vd(Ca(e,t).duration,0,"");const n=e;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Vd(0,0,"");return o.dynamic=!0,o.strValue=n,o}const i=Ca(n,t);return Vd(i.duration,i.delay,i.easing)}(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:MD({});if(5==o.type)i=this.visitKeyframes(o,n);else{let s=t.styles,a=!1;if(!s){a=!0;const u={};r.easing&&(u.easing=r.easing),s=MD(u)}n.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,n);l.isEmptyStep=a,i=l}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,n){const r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){const r=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)"string"==typeof a?a===yn?r.push(a):n.errors.push(new v(3002,!1)):r.push(LD(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,n){const r=n.currentAnimateTimings;let i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const u=n.collectedStyles.get(n.currentQuerySelector),c=u.get(l);let d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(n.errors.push(function ix(e,t,n,r,i){return new v(3010,!1)}()),d=!1),o=c.startTime),d&&u.set(l,{startTime:o,endTime:i}),n.options&&function kx(e,t,n){const r=t.params||{},i=BD(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(function KP(e){return new v(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(t,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function ox(){return new v(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,u=0;const c=t.steps.map(D=>{const m=this._makeStyleAst(D,n);let S=null!=m.offset?m.offset:function Qx(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}(m.styles),M=0;return null!=S&&(o++,M=m.offset=S),l=l||M<0||M>1,a=a||M0&&o{const S=f>0?m==h?1:f*m:s[m],M=S*y;n.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(D,n),D.offset=S,r.styles.push(D)}),r}visitReference(t,n){return{type:8,animation:dt(this,yo(t.animation),n),options:ir(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:9,options:ir(t.options)}}visitAnimateRef(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:ir(t.options)}}visitQuery(t,n){const r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;const[o,s]=function zx(e){const t=!!e.split(/\s*,\s*/).find(n=>":self"==n);return t&&(e=e.replace(Ux,"")),e=e.replace(/@\*/g,Da).replace(/@\w+/g,n=>Da+"-"+n.slice(1)).replace(/:animating/g,Pd),[e,t]}(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,ct(n.collectedStyles,n.currentQuerySelector,new Map);const a=dt(this,yo(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ir(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(function ux(){return new v(3013,!1)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ca(t.timings,n.errors,!0);return{type:12,animation:dt(this,yo(t.animation),n),timings:r,options:null}}}class Wx{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 ir(e){return e?(e=mo(e)).params&&(e.params=function qx(e){return e?mo(e):null}(e.params)):e={},e}function Vd(e,t,n){return{duration:e,delay:t,easing:n}}function Bd(e,t,n,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Ma{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Xx=new RegExp(":enter","g"),eR=new RegExp(":leave","g");function jd(e,t,n,r,i,o=new Map,s=new Map,a,l,u=[]){return(new tR).buildKeyframes(e,t,n,r,i,o,s,a,l,u)}class tR{buildKeyframes(t,n,r,i,o,s,a,l,u,c=[]){u=u||new Ma;const d=new Hd(t,n,u,i,o,c,[]);d.options=l;const f=l.delay?vn(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),dt(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let g=h.length-1;g>=0;g--){const y=h[g];if(y.element===n){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Bd(n,[],[],[],0,f,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){const r=n.subInstructions.get(n.element);if(r){const i=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){const r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){for(const i of t){const o=i?.delay;if(o){const s="number"==typeof o?o:vn(vo(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let o=n.currentTimeline.currentTime;const s=null!=r.duration?vn(r.duration):null,a=null!=r.delay?vn(r.delay):null;return 0!==s&&t.forEach(l=>{const u=n.appendInstructionToTimeline(l,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,n){n.updateOptions(t.options,!0),dt(this,t.animation,n),n.previousNode=t}visitSequence(t,n){const r=n.subContextCount;let i=n;const o=t.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ia);const s=vn(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>dt(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){const r=[];let i=n.currentTimeline.currentTime;const o=t.options&&t.options.delay?vn(t.options.delay):0;t.steps.forEach(s=>{const a=n.createSubContext(t.options);o&&a.delayNextStep(o),dt(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){const r=t.strValue;return Ca(n.params?vo(r,n.params,n.errors):r,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){const r=n.currentAnimateTimings=this._visitTiming(t.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=t}visitQuery(t,n){const r=n.currentTimeline.currentTime,i=t.options||{},o=i.delay?vn(i.delay):0;o&&(6===n.previousNode.type||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ia);let s=r;const a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{n.currentQueryIndex=c;const d=n.createSubContext(t.options,u);o&&d.delayNextStep(o),u===n.element&&(l=d.currentTimeline),dt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){const r=n.parentContext,i=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1);let l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=n.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;dt(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Ia={};class Hd{constructor(t,n,r,i,o,s,a,l){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ia,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ta(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;const r=t;let i=this.options;null!=r.duration&&(i.duration=vn(r.duration)),null!=r.delay&&(i.delay=vn(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=vo(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const n=this.options.params;if(n){const r=t.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return t}createSubContext(t=null,n,r){const i=n||this.element,o=new Hd(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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=Ia,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){const i={duration:n??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},o=new nR(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(Xx,"."+this._enterClassName)).replace(eR,"."+this._leaveClassName);let u=this._driver.query(this.element,t,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&0==a.length&&s.push(function cx(e){return new v(3014,!1)}()),a}}class Ta{constructor(t,n,r,i){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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 n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new Ta(this._driver,t,n||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,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||yn),this._currentKeyframe.set(n,yn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){n&&this._previousKeyframe.set("easing",n);const o=i&&i.params||{},s=function rR(e,t){const n=new Map;let r;return e.forEach(i=>{if("*"===i){r=r||t.keys();for(let o of r)n.set(o,yn)}else Rn(i,n)}),n}(t,this._globalTimelineStyles);for(let[a,l]of s){const u=vo(l,o,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??yn),this._updateStyle(a,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{const i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const u=Rn(a,new Map,this._backFill);u.forEach((c,d)=>{"!"===c?t.add(d):c===yn&&n.add(d)}),r||u.set("offset",l/this.duration),i.push(u)});const o=t.size?wa(t.values()):[],s=n.size?wa(n.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Bd(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class nR extends Ta{constructor(t,n,r,i,o,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const o=[],s=r+n,a=n/s,l=Rn(t[0]);l.set("offset",0),o.push(l);const u=Rn(t[0]);u.set("offset",GD(a)),o.push(u);const c=t.length-1;for(let d=1;d<=c;d++){let f=Rn(t[d]);const h=f.get("offset");f.set("offset",GD((n+h*r)/s)),o.push(f)}r=s,n=0,i="",t=o}return Bd(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function GD(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class $d{}const iR=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 oR extends $d{normalizePropertyName(t,n){return kd(t)}normalizeStyleValue(t,n,r,i){let o="";const s=r.toString().trim();if(iR.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function JP(e,t){return new v(3005,!1)}())}return s+o}}function zD(e,t,n,r,i,o,s,a,l,u,c,d,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const Ud={};class qD{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return function sR(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}(this.ast.matchers,t,n,r,i)}buildStyles(t,n,r){let i=this._stateStyles.get("*");return void 0!==t&&(i=this._stateStyles.get(t?.toString())||i),i?i.buildStyles(n,r):new Map}build(t,n,r,i,o,s,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||Ud,p=this.buildStyles(r,a&&a.params||Ud,d),g=l&&l.params||Ud,y=this.buildStyles(i,g,d),D=new Set,m=new Map,S=new Map,M="void"===i,H={params:aR(g,f),delay:this.ast.options?.delay},ce=c?[]:jd(t,n,this.ast.animation,o,s,p,y,H,u,d);let de=0;if(ce.forEach(ft=>{de=Math.max(ft.duration+ft.delay,de)}),d.length)return zD(n,this._triggerName,r,i,M,p,y,[],[],m,S,de,d);ce.forEach(ft=>{const Vt=ft.element,Ga=ct(m,Vt,new Set);ft.preStyleProps.forEach(ar=>Ga.add(ar));const bo=ct(S,Vt,new Set);ft.postStyleProps.forEach(ar=>bo.add(ar)),Vt!==n&&D.add(Vt)});const je=wa(D.values());return zD(n,this._triggerName,r,i,M,p,y,ce,je,m,S,de)}}function aR(e,t){const n=mo(t);for(const r in e)e.hasOwnProperty(r)&&null!=e[r]&&(n[r]=e[r]);return n}class lR{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){const r=new Map,i=mo(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=vo(s,i,n));const l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}}class cR{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{this.states.set(i.name,new lR(i.style,i.options&&i.options.params||{},r))}),WD(this.states,"true","1"),WD(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new qD(t,i,this.states))}),this.fallbackTransition=function dR(e,t,n){return new qD(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,i){return this.transitionFactories.find(s=>s.match(t,n,r,i))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}}function WD(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}const fR=new Ma;class hR{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){const r=[],o=Ld(this._driver,n,r,[]);if(r.length)throw function yx(e){return new v(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,n,r){const i=t.element,o=AD(this._normalizer,t.keyframes,n,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){const i=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=jd(this._driver,n,o,Fd,va,new Map,new Map,r,fR,i),s.forEach(c=>{const d=ct(a,c.element,new Map);c.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function vx(){return new v(3300,!1)}()),s=[]),i.length)throw function _x(e){return new v(3504,!1)}();a.forEach((c,d)=>{c.forEach((f,h)=>{c.set(h,this._driver.computeStyle(d,h,yn))})});const u=xn(s.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,new Map,d)}));return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){const n=this._playersById.get(t);if(!n)throw function Dx(e){return new v(3301,!1)}();return n}listen(t,n,r,i){const o=Ad(n,"","","");return Id(this._getPlayer(t),r,o,i),()=>{}}command(t,n,r,i){if("register"==r)return void this.register(t,i[0]);if("create"==r)return void this.create(t,n,i[0]||{});const o=this._getPlayer(t);switch(r){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(i[0]));break;case"destroy":this.destroy(t)}}}const QD="ng-animate-queued",Gd="ng-animate-disabled",vR=[],ZD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_R={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},kt="__ng_removed";class zd{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;const r=t&&t.hasOwnProperty("value");if(this.value=function ER(e){return e??null}(r?t.value:t),r){const o=mo(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const n=t.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const _o="void",qd=new zd(_o);class DR{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,wt(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw function Cx(e,t){return new v(3302,!1)}();if(null==r||0==r.length)throw function wx(e){return new v(3303,!1)}();if(!function bR(e){return"start"==e||"done"==e}(r))throw function Ex(e,t){return new v(3400,!1)}();const o=ct(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);const a=ct(this._engine.statesByElement,t,new Map);return a.has(n)||(wt(t,_a),wt(t,_a+"-"+n),a.set(n,qd)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return!this._triggers.has(t)&&(this._triggers.set(t,n),!0)}_getTrigger(t){const n=this._triggers.get(t);if(!n)throw function bx(e){return new v(3401,!1)}();return n}trigger(t,n,r,i=!0){const o=this._getTrigger(n),s=new Wd(this.id,n,t);let a=this._engine.statesByElement.get(t);a||(wt(t,_a),wt(t,_a+"-"+n),this._engine.statesByElement.set(t,a=new Map));let l=a.get(n);const u=new zd(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(n,u),l||(l=qd),u.value!==_o&&l.value===u.value){if(!function IR(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i=0;i{rr(t,y),Jt(t,D)})}return}const f=ct(this._engine.playersByElement,t,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let h=o.matchTransition(l.value,u.value,t,u.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(wt(t,QD),s.onStart(()=>{si(t,QD)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(t);if(y){let D=y.indexOf(s);D>=0&&y.splice(D,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){const r=this._engine.driver.query(t,Da,!0);r.forEach(i=>{if(i[kt])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,n,r,i){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){const c=this.trigger(t,u,_o,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&xn(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){const i=new Set;n.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,u=r.get(s)||qd,c=new zd(_o),d=new Wd(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(t,n){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,n);else{const o=t[kt];(!o||o===ZD)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){wt(t,this._hostClassName)}drainQueuedTransitions(t){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=Ad(o,r.triggerName,r.fromState.value,r.toState.value);l._data=t,Id(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class CR{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r){this.bodyNode=t,this.driver=n,this._normalizer=r,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=(i,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){const r=new DR(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){const l=i.get(a);if(l){const u=r.indexOf(l);r.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return i.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let i=this._namespaceLookup[t];i&&i.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const n=new Set,r=this.statesByElement.get(t);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}return n}trigger(t,n,r,i){if(Aa(n)){const o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!Aa(n))return;const o=n[kt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),wt(t,Gd)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),si(t,Gd))}removeNode(t,n,r){if(Aa(n)){const i=t?this._fetchNamespace(t):null;i?i.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);const o=this.namespacesByHostElement.get(n);o&&o.id!==t&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[kt]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return Aa(n)?this._fetchNamespace(t).listen(n,r,i,o):()=>{}}_buildInstruction(t,n,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,n,o)}destroyInnerAnimations(t){let n=this.driver.query(t,Da,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Pd,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return xn(this.players).onDone(()=>t());t()})}processLeaveNode(t){const n=t[kt];if(n&&n.setForRemoval){if(t[kt]=ZD,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}t.classList?.contains(Gd)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?xn(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function Sx(e){return new v(3402,!1)}()}_flushAnimations(t,n){const r=new Ma,i=[],o=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(I=>{c.add(I);const A=this.driver.query(I,".ng-animate-queued",!0);for(let N=0;N{const N=Fd+g++;p.set(A,N),I.forEach(W=>wt(W,N))});const y=[],D=new Set,m=new Set;for(let I=0;ID.add(W)):m.add(A))}const S=new Map,M=XD(f,Array.from(D));M.forEach((I,A)=>{const N=va+g++;S.set(A,N),I.forEach(W=>wt(W,N))}),t.push(()=>{h.forEach((I,A)=>{const N=p.get(A);I.forEach(W=>si(W,N))}),M.forEach((I,A)=>{const N=S.get(A);I.forEach(W=>si(W,N))}),y.forEach(I=>{this.processLeaveNode(I)})});const H=[],ce=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(n).forEach(N=>{const W=N.player,Ae=N.element;if(H.push(W),this.collectedEnterElements.length){const He=Ae[kt];if(He&&He.setForMove){if(He.previousTriggersValues&&He.previousTriggersValues.has(N.triggerName)){const lr=He.previousTriggersValues.get(N.triggerName),Et=this.statesByElement.get(N.element);if(Et&&Et.has(N.triggerName)){const za=Et.get(N.triggerName);za.value=lr,Et.set(N.triggerName,za)}}return void W.destroy()}}const en=!d||!this.driver.containsElement(d,Ae),ht=S.get(Ae),Bn=p.get(Ae),me=this._buildInstruction(N,r,Bn,ht,en);if(me.errors&&me.errors.length)return void ce.push(me);if(en)return W.onStart(()=>rr(Ae,me.fromStyles)),W.onDestroy(()=>Jt(Ae,me.toStyles)),void i.push(W);if(N.isFallbackTransition)return W.onStart(()=>rr(Ae,me.fromStyles)),W.onDestroy(()=>Jt(Ae,me.toStyles)),void i.push(W);const yw=[];me.timelines.forEach(He=>{He.stretchStartingKeyframe=!0,this.disabledNodes.has(He.element)||yw.push(He)}),me.timelines=yw,r.append(Ae,me.timelines),s.push({instruction:me,player:W,element:Ae}),me.queriedElements.forEach(He=>ct(a,He,[]).push(W)),me.preStyleProps.forEach((He,lr)=>{if(He.size){let Et=l.get(lr);Et||l.set(lr,Et=new Set),He.forEach((za,vf)=>Et.add(vf))}}),me.postStyleProps.forEach((He,lr)=>{let Et=u.get(lr);Et||u.set(lr,Et=new Set),He.forEach((za,vf)=>Et.add(vf))})});if(ce.length){const I=[];ce.forEach(A=>{I.push(function Mx(e,t){return new v(3505,!1)}())}),H.forEach(A=>A.destroy()),this.reportError(I)}const de=new Map,je=new Map;s.forEach(I=>{const A=I.element;r.has(A)&&(je.set(A,A),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,de))}),i.forEach(I=>{const A=I.element;this._getPreviousPlayers(A,!1,I.namespaceId,I.triggerName,null).forEach(W=>{ct(de,A,[]).push(W),W.destroy()})});const ft=y.filter(I=>eC(I,l,u)),Vt=new Map;YD(Vt,this.driver,m,u,yn).forEach(I=>{eC(I,l,u)&&ft.push(I)});const bo=new Map;h.forEach((I,A)=>{YD(bo,this.driver,new Set(I),l,"!")}),ft.forEach(I=>{const A=Vt.get(I),N=bo.get(I);Vt.set(I,new Map([...A?.entries()??[],...N?.entries()??[]]))});const ar=[],gw=[],mw={};s.forEach(I=>{const{element:A,player:N,instruction:W}=I;if(r.has(A)){if(c.has(A))return N.onDestroy(()=>Jt(A,W.toStyles)),N.disabled=!0,N.overrideTotalTime(W.totalTime),void i.push(N);let Ae=mw;if(je.size>1){let ht=A;const Bn=[];for(;ht=ht.parentNode;){const me=je.get(ht);if(me){Ae=me;break}Bn.push(ht)}Bn.forEach(me=>je.set(me,Ae))}const en=this._buildAnimation(N.namespaceId,W,de,o,bo,Vt);if(N.setRealPlayer(en),Ae===mw)ar.push(N);else{const ht=this.playersByElement.get(Ae);ht&&ht.length&&(N.parentPlayer=xn(ht)),i.push(N)}}else rr(A,W.fromStyles),N.onDestroy(()=>Jt(A,W.toStyles)),gw.push(N),c.has(A)&&i.push(N)}),gw.forEach(I=>{const A=o.get(I.element);if(A&&A.length){const N=xn(A);I.setRealPlayer(N)}}),i.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I!en.destroyed);Ae.length?SR(this,A,Ae):this.processLeaveNode(A)}return y.length=0,ar.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const A=this.players.indexOf(I);this.players.splice(A,1)}),I.play()}),ar}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,i,o){let s=[];if(n){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==_o;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){const o=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const u=l.element,c=u!==o,d=ct(r,u,[]);this._getPreviousPlayers(u,c,s,a,n.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}rr(o,n.fromStyles)}_buildAnimation(t,n,r,i,o,s){const a=n.triggerName,l=n.element,u=[],c=new Set,d=new Set,f=n.timelines.map(p=>{const g=p.element;c.add(g);const y=g[kt];if(y&&y.removedBeforeQueried)return new go(p.duration,p.delay);const D=g!==l,m=function MR(e){const t=[];return JD(e,t),t}((r.get(g)||vR).map(de=>de.getRealPlayer())).filter(de=>!!de.element&&de.element===g),S=o.get(g),M=s.get(g),H=AD(this._normalizer,p.keyframes,S,M),ce=this._buildPlayer(p,H,m);if(p.subTimeline&&i&&d.add(g),D){const de=new Wd(t,a,g);de.setRealPlayer(ce),u.push(de)}return ce});u.forEach(p=>{ct(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function wR(e,t,n){let r=e.get(t);if(r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}return r}(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>wt(p,kD));const h=xn(f);return h.onDestroy(()=>{c.forEach(p=>si(p,kD)),Jt(l,n.toStyles)}),d.forEach(p=>{ct(i,p,[]).push(h)}),h}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new go(t.duration,t.delay)}}class Wd{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new go,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>Id(t,r,void 0,i))}),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 n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){ct(this._queuedCallbacks,t,[]).push(n)}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 n=this._player;n.triggerCallback&&n.triggerCallback(t)}}function Aa(e){return e&&1===e.nodeType}function KD(e,t){const n=e.style.display;return e.style.display=t??"none",n}function YD(e,t,n,r,i){const o=[];n.forEach(l=>o.push(KD(l)));const s=[];r.forEach((l,u)=>{const c=new Map;l.forEach(d=>{const f=t.computeStyle(u,d,i);c.set(d,f),(!f||0==f.length)&&(u[kt]=_R,s.push(u))}),e.set(u,c)});let a=0;return n.forEach(l=>KD(l,o[a++])),s}function XD(e,t){const n=new Map;if(e.forEach(a=>n.set(a,[])),0==t.length)return n;const i=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const u=a.parentNode;return l=n.has(u)?u:i.has(u)?1:s(u),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&n.get(l).push(a)}),n}function wt(e,t){e.classList?.add(t)}function si(e,t){e.classList?.remove(t)}function SR(e,t,n){xn(n).onDone(()=>e.processLeaveNode(t))}function JD(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}class Na{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new CR(t,n,r),this._timelineEngine=new hR(t,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(t,n,r,i,o){const s=t+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],c=Ld(this._driver,o,l,[]);if(l.length)throw function gx(e,t){return new v(3404,!1)}();a=function uR(e,t,n){return new cR(e,t,n)}(i,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,i){this._transitionEngine.insertNode(t,n,r,i)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,i){if("@"==r.charAt(0)){const[o,s]=ND(r);this._timelineEngine.command(o,n,s,i)}else this._transitionEngine.trigger(t,n,r,i)}listen(t,n,r,i,o){if("@"==r.charAt(0)){const[s,a]=ND(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(t,n,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}let AR=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i,this._state=0;let o=e.initialStylesByElement.get(n);o||e.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Jt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Jt(this._element,this._initialStyles),this._endStyles&&(Jt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(rr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rr(this._element,this._endStyles),this._endStyles=null),Jt(this._element,this._initialStyles),this._state=3)}}return e})();function Qd(e){let t=null;return e.forEach((n,r)=>{(function NR(e){return"display"===e||"position"===e})(r)&&(t=t||new Map,t.set(r,n))}),t}class tC{constructor(t,n,r,i){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.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 n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}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??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&t.set(i,this._finished?r:jD(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){const n="start"===t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class OR{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return FD(t,n)}getParentElement(t){return Nd(t)}query(t,n,r){return PD(t,n,r)}computeStyle(t,n,r){return window.getComputedStyle(t)[n]}animate(t,n,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const u=new Map,c=s.filter(h=>h instanceof tC);(function Vx(e,t){return 0===e||0===t})(r,i)&&c.forEach(h=>{h.currentSnapshot.forEach((p,g)=>u.set(g,p))});let d=function Rx(e){return e.length?e[0]instanceof Map?e:e.map(t=>LD(t)):[]}(n).map(h=>Rn(h));d=function Bx(e,t,n){if(n.size&&t.length){let r=t[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,jD(e,a)))}}return t}(t,d,u);const f=function TR(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Qd(t[0]),t.length>1&&(r=Qd(t[t.length-1]))):t instanceof Map&&(n=Qd(t)),n||r?new AR(e,n,r):null}(t,d);return new tC(t,d,l,f)}}let FR=(()=>{class e extends bD{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:gt.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(n)?SD(n):n;return nC(this._renderer,null,r,"register",[i]),new PR(r,this._renderer)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Hi),k(Pt))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();class PR extends WP{constructor(t,n){super(),this._id=t,this._renderer=n}create(t,n){return new xR(this._id,t,n||{},this._renderer)}}class xR{constructor(t,n,r,i){this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(t,n){return this._renderer.listen(this.element,`@@${this.id}:${t}`,n)}_command(t,...n){return nC(this._renderer,this.element,this.id,t,n)}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(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function nC(e,t,n,r,i){return e.setProperty(t,`@@${n}:${r}`,i)}const rC="@.disabled";let RR=(()=>{class e{constructor(n,r,i){this.delegate=n,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(n,r){const o=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(o);return c||(c=new iC("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,c)),c}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(s,a,n,c.name,c)};return r.data.animation.forEach(l),new kR(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,i){n>=0&&nr(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Hi),k(Na),k(he))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})();class iC{constructor(t,n,r,i){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,i=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,i)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,i){this.delegate.setAttribute(t,n,r,i)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,i){this.delegate.setStyle(t,n,r,i)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){"@"==n.charAt(0)&&n==rC?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}}class kR extends iC{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==rC?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if("@"==n.charAt(0)){const i=function LR(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t);let o=n.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function VR(e){const t=e.indexOf(".");return[e.substring(0,t),e.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,n,r)}}const oC=[{provide:bD,useClass:FR},{provide:$d,useFactory:function jR(){return new oR}},{provide:Na,useClass:(()=>{class e extends Na{constructor(n,r,i,o){super(n.body,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Pt),k(Od),k($d),k(ii))};static#t=this.\u0275prov=q({token:e,factory:e.\u0275fac})}return e})()},{provide:Hi,useFactory:function HR(e,t,n){return new RR(e,t,n)},deps:[wd,Na,he]}],Zd=[{provide:Od,useFactory:()=>new OR},{provide:wg,useValue:"BrowserAnimations"},...oC],sC=[{provide:Od,useClass:xD},{provide:wg,useValue:"NoopAnimations"},...oC];let $R=(()=>{class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?sC:Zd}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({providers:Zd,imports:[_D]})}return e})();const{isArray:UR}=Array,{getPrototypeOf:GR,prototype:zR,keys:qR}=Object;const{isArray:ZR}=Array;function XR(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function JR(...e){const t=function uE(e){return pe(rl(e))?e.pop():void 0}(e),{args:n,keys:r}=function WR(e){if(1===e.length){const t=e[0];if(UR(t))return{args:t,keys:null};if(function QR(e){return e&&"object"==typeof e&&GR(e)===zR}(t)){const n=qR(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e),i=new xe(o=>{const{length:s}=n;if(!s)return void o.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||o.next(r?XR(r,a):a),o.complete())}))}});return t?i.pipe(function YR(e){return Xa(t=>function KR(e,t){return ZR(t)?e(...t):e(t)}(e,t))}(t)):i}let aC=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(Kn),C(Tt))};static#t=this.\u0275dir=V({type:e})}return e})(),or=(()=>{class e extends aC{static#e=this.\u0275fac=function(){let n;return function(i){return(n||(n=function ke(e){return tn(()=>{const t=e.prototype.constructor,n=t[nn]||Gl(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[nn]||Gl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(i||e)}}();static#t=this.\u0275dir=V({type:e,features:[te]})}return e})();const Lt=new T("NgValueAccessor"),tk={provide:Lt,useExisting:ne(()=>Kd),multi:!0},rk=new T("CompositionEventMode");let Kd=(()=>{class e extends aC{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function nk(){const e=uo()?uo().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(Kn),C(Tt),C(rk,8))};static#t=this.\u0275dir=V({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&Ce("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[ue([tk]),te]})}return e})();const Be=new T("NgValidators"),Ln=new T("NgAsyncValidators");function vC(e){return null!=e}function _C(e){return Hs(e)?il(e):e}function DC(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function CC(e,t){return t.map(n=>n(e))}function wC(e){return e.map(t=>function ok(e){return!e.validate}(t)?t:n=>t.validate(n))}function Yd(e){return null!=e?function EC(e){if(!e)return null;const t=e.filter(vC);return 0==t.length?null:function(n){return DC(CC(n,t))}}(wC(e)):null}function Xd(e){return null!=e?function bC(e){if(!e)return null;const t=e.filter(vC);return 0==t.length?null:function(n){return JR(CC(n,t).map(_C)).pipe(Xa(DC))}}(wC(e)):null}function SC(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Jd(e){return e?Array.isArray(e)?e:[e]:[]}function Pa(e,t){return Array.isArray(e)?e.includes(t):e===t}function TC(e,t){const n=Jd(t);return Jd(e).forEach(i=>{Pa(n,i)||n.push(i)}),n}function AC(e,t){return Jd(t).filter(n=>!Pa(e,n))}class NC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Yd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Xd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Ke extends NC{get formDirective(){return null}get path(){return null}}class Vn extends NC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class OC{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ef=(()=>{class e extends OC{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(Vn,2))};static#t=this.\u0275dir=V({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Yi("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[te]})}return e})(),FC=(()=>{class e extends OC{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(Ke,10))};static#t=this.\u0275dir=V({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Yi("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[te]})}return e})();const Do="VALID",Ra="INVALID",ai="PENDING",Co="DISABLED";function rf(e){return(ka(e)?e.validators:e)||null}function of(e,t){return(ka(t)?t.asyncValidators:e)||null}function ka(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class kC{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Do}get invalid(){return this.status===Ra}get pending(){return this.status==ai}get disabled(){return this.status===Co}get enabled(){return this.status!==Co}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(TC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(TC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(AC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(AC(t,this._rawAsyncValidators))}hasValidator(t){return Pa(this._rawValidators,t)}hasAsyncValidator(t){return Pa(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ai,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Co,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Do,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Do||this.status===ai)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Co:Do}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ai,this._hasOwnPendingAsyncValidator=!0;const n=_C(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?Co:this.errors?Ra:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ai)?ai:this._anyControlsHaveStatus(Ra)?Ra:Do}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ka(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function uk(e){return Array.isArray(e)?Yd(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function ck(e){return Array.isArray(e)?Xd(e):e||null}(this._rawAsyncValidators)}}class sf extends kC{constructor(t,n,r){super(rf(n),of(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function RC(e,t,n){e._forEachChild((r,i)=>{if(void 0===n[i])throw new v(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function xC(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new v(1e3,"");if(!r[n])throw new v(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t?t[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const li=new T("CallSetDisabledState",{providedIn:"root",factory:()=>La}),La="always";function wo(e,t,n=La){af(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function hk(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&LC(e,t)})}(e,t),function gk(e,t){const n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function pk(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&LC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function fk(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ja(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function af(e,t){const n=function MC(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(SC(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function IC(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(SC(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();ja(t._rawValidators,i),ja(t._rawAsyncValidators,i)}function LC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const Dk={provide:Ke,useExisting:ne(()=>$a)},Eo=(()=>Promise.resolve())();let $a=(()=>{class e extends Ke{constructor(n,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new sf({},Yd(n),Xd(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Eo.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),wo(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Eo.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Eo.then(()=>{const r=this._findContainer(n.path),i=new sf({});(function VC(e,t){af(e,t)})(i,n),r.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Eo.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Eo.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function BC(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(C(Be,10),C(Ln,10),C(li,8))};static#t=this.\u0275dir=V({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){1&r&&Ce("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([Dk]),te]})}return e})();function jC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function HC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const $C=class extends kC{constructor(t=null,n,r){super(rf(n),of(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ka(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=HC(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){jC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){jC(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){HC(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Ek={provide:Vn,useExisting:ne(()=>Ua)},zC=(()=>Promise.resolve())();let Ua=(()=>{class e extends Vn{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new $C,this._registered=!1,this.name="",this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function cf(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===Kd?n=o:function vk(e){return Object.getPrototypeOf(e.constructor)===or}(o)?r=o:i=o}),i||r||n||null}(0,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function uf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){wo(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){zC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,i=0!==r&&function Xc(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);zC.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Va(e,t){return[...t.path,e]}(n,this._parent):[n]}static#e=this.\u0275fac=function(r){return new(r||e)(C(Ke,9),C(Be,10),C(Ln,10),C(Lt,10),C(qc,8),C(li,8))};static#t=this.\u0275dir=V({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([Ek]),te,on]})}return e})(),qC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=V({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})(),QC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({})}return e})(),Wk=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({imports:[QC]})}return e})(),fw=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:li,useValue:n.callSetDisabledState??La}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({imports:[Wk]})}return e})();const hw=new T("UI_SWITCH_OPTIONS");function Zk(e,t){if(1&e&&(b(0,"label",2)(1,"span",3),x(2),w(),b(3,"span",4),x(4),w()()),2&e){const n=Qm();J(1),Jr("color",n.getColor("checkedTextColor")),_t("aria-label",n.checkedLabel),J(1),Gs(n.checkedLabel),J(1),Jr("color",n.getColor("uncheckedTextColor")),_t("aria-label",n.uncheckedLabel),J(1),Gs(n.uncheckedLabel)}}const Kk=["*"],Yk={provide:Lt,useExisting:ne(()=>yf),multi:!0};let yf=(()=>{class e{set checked(n){this._checked=!1!==n}get checked(){return this._checked}set disabled(n){this._disabled=!1!==n}get disabled(){return this._disabled}set reverse(n){this._reverse=!1!==n}get reverse(){return this._reverse}set loading(n){this._loading=!1!==n}get loading(){return this._loading}constructor(n={},r){this.cdr=r,this.change=new Me,this.changeEvent=new Me,this.valueChange=new Me,this.onTouchedCallback=i=>{},this.onChangeCallback=i=>{},this.size=n&&n.size||"medium",this.color=n&&n.color,this.switchOffColor=n&&n.switchOffColor,this.switchColor=n&&n.switchColor,this.defaultBgColor=n&&n.defaultBgColor,this.defaultBoColor=n&&n.defaultBoColor,this.checkedLabel=n&&n.checkedLabel,this.uncheckedLabel=n&&n.uncheckedLabel,this.checkedTextColor=n&&n.checkedTextColor,this.uncheckedTextColor=n&&n.uncheckedTextColor}getColor(n=""){return"borderColor"===n?this.defaultBoColor:"switchColor"===n?this.reverse?this.checked&&this.switchOffColor||this.switchColor:this.checked?this.switchColor:this.switchOffColor||this.switchColor:"checkedTextColor"===n?this.reverse?this.uncheckedTextColor:this.checkedTextColor:"uncheckedTextColor"===n?this.reverse?this.checkedTextColor:this.uncheckedTextColor:this.reverse?this.checked?this.defaultBgColor:this.color:this.checked?this.color:this.defaultBgColor}onClick(n){this.disabled||(this.checked=!this.checked,this.change.emit(this.checked),this.valueChange.emit(this.checked),this.changeEvent.emit(n),this.onChangeCallback(this.checked),this.onTouchedCallback(this.checked),this.cdr.markForCheck())}onToggle(n){this.disabled||(this.beforeChange?this._beforeChange=this.beforeChange.subscribe(r=>{r&&this.onClick(n)}):this.onClick(n))}writeValue(n){n!==this.checked&&(this.checked=!!n),this.onChangeCallback(this.checked),this.cdr&&this.cdr.markForCheck()}registerOnChange(n){this.onChangeCallback=n}registerOnTouched(n){this.onTouchedCallback=n}setDisabledState(n){this.disabled=n}ngOnDestroy(){this._beforeChange&&this._beforeChange.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)(C(hw,8),C(qc))};static#t=this.\u0275cmp=En({type:e,selectors:[["ui-switch"]],hostBindings:function(r,i){1&r&&Ce("click",function(s){return i.onToggle(s)})},inputs:{size:"size",color:"color",switchOffColor:"switchOffColor",switchColor:"switchColor",defaultBgColor:"defaultBgColor",defaultBoColor:"defaultBoColor",checkedLabel:"checkedLabel",uncheckedLabel:"uncheckedLabel",checkedTextColor:"checkedTextColor",uncheckedTextColor:"uncheckedTextColor",beforeChange:"beforeChange",ariaLabel:"ariaLabel",checked:"checked",disabled:"disabled",reverse:"reverse",loading:"loading"},outputs:{change:"change",changeEvent:"changeEvent",valueChange:"valueChange"},features:[ue([Yk])],ngContentSelectors:Kk,decls:4,vars:21,consts:[["type","button","role","switch",1,"switch"],["class","switch-pane",4,"ngIf"],[1,"switch-pane"],[1,"switch-label-checked"],[1,"switch-label-unchecked"]],template:function(r,i){1&r&&(function Zm(e){const t=_()[De][Re];if(!t.projection){const r=t.projection=Ni(e?e.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const s=e?cT(o,e):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(),b(0,"button",0),Yr(1,Zk,5,8,"label",1),b(2,"small"),function Km(e,t=0,n){const r=_(),i=z(),o=Hr(i,$+e,16,null,n||null);null===o.projection&&(o.projection=t),Fl(),(!r[rn]||yr())&&32!=(32&o.flags)&&function sM(e,t,n){Jp(t[L],0,t,n,lu(e,n,t),Wp(n.parent||t[Re],n,t))}(i,r,o)}(3),w()()),2&r&&(Jr("background-color",i.getColor())("border-color",i.getColor("borderColor")),Yi("checked",i.checked)("disabled",i.disabled)("loading",i.loading)("switch-large","large"===i.size)("switch-medium","medium"===i.size)("switch-small","small"===i.size),_t("aria-checked",i.checked)("aria-label",i.ariaLabel),J(1),Te("ngIf",i.checkedLabel||i.uncheckedLabel),J(1),Jr("background",i.getColor("switchColor")))},dependencies:[cd],encapsulation:2})}return e})(),Xk=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:hw,useValue:n||{}}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e});static#n=this.\u0275inj=bt({imports:[eD,fw,fw]})}return e})();const pw=JSON.parse('{"name":"ngx-ui-switch","version":"15.0.0","description":"switch button for angular4","bugs":"https://github.com/webcat12345/ngx-ui-switch/issues","homepage":"https://github.com/webcat12345/ngx-ui-switch#readme","repository":"https://github.com/webcat12345/ngx-ui-switch.git","license":"MIT","author":"webcat12345","keywords":["angular2","angular4","ngx","ng2","uiswitch","switch","ui"],"peerDependencies":{"@angular/core":">=10.0.0","@angular/animations":">=10.0.0","@angular/common":">=10.0.0","@angular/forms":">=10.0.0","@angular/platform-browser":">=10.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"ngPackage":{"lib":{"entryFile":"public_api.ts"},"dest":"../../dist"},"exports":{"./ui-switch.component":{"sass":"./ui-switch.component.scss"}}}');let Jk=(()=>{class e{constructor(){this.enable=!0,this.manualUpdate=!1}manualUpdateEvent(n){this.manualUpdate=n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=En({type:e,selectors:[["app-demo-cdr"]],decls:18,vars:8,consts:[[1,"col-12"],[1,"font-weight-bold"],[3,"ngModel","ngModelChange"]],template:function(r,i){1&r&&(b(0,"div",0)(1,"h4")(2,"span",1),x(3,"ngModel"),w(),x(4," with 2-way binding"),w(),b(5,"ui-switch",2),Ce("ngModelChange",function(s){return i.enable=s}),w(),b(6,"p"),x(7),Sc(8,"json"),w()(),b(9,"div",0)(10,"h4"),x(11," Manually updated "),b(12,"span",1),x(13,"ngModel"),w()(),b(14,"ui-switch",2),Ce("ngModelChange",function(s){return i.manualUpdateEvent(s)}),w(),b(15,"p"),x(16),Sc(17,"json"),w()()),2&r&&(J(5),Te("ngModel",i.enable),J(2),Ft("Current Value: ",Mc(8,4,i.enable),""),J(7),Te("ngModel",i.manualUpdate),J(2),Ft("Current Value: ",Mc(17,6,i.manualUpdate),""))},dependencies:[ef,Ua,yf,X_],encapsulation:2,changeDetection:0})}return e})();const eL=["demoForm"];function tL(e,t){1&e&&Z(0,"i",33)}function nL(e,t){1&e&&Z(0,"i",49)}function rL(e,t){1&e&&Z(0,"i",50)}function iL(e,t){1&e&&(b(0,"div",51),x(1," Submitted! "),w())}let oL=(()=>{class e{constructor(){this.submitted=!1,this.enable=!0,this.enableFeature=!1,this.count=0,this.change=!1,this.valueChange=!1,this.isLoading=!1,this.fakeAsync=new xe(n=>{this.isLoading=!0;const r=setTimeout(()=>{this.isLoading=!1,n.next(!0)},2e3);return()=>clearTimeout(r)})}onSubmit(n){this.submitted=!0}onChange(n){this.count++,this.change=n}onChangeEvent(n){console.log(n,n.toString(),JSON.stringify(n)),this.changeEvent=n}onValueChange(n){this.valueChange=n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=En({type:e,selectors:[["app-demo"]],viewQuery:function(r,i){if(1&r&&Lv(eL,5),2&r){let o;kv(o=function Vv(){return function KN(e,t){return e[Ut].queries[t].queryList}(_(),Kh())}())&&(i.demoForm=o.first)}},decls:125,vars:20,consts:[[1,"row","justify-content-center"],[1,"col-lg-5","col-sm-6"],["checked","",3,"ariaLabel"],[3,"ariaLabel","checked"],["disabled",""],["checked","",3,"disabled"],[3,"ariaLabel","change"],[3,"valueChange"],[3,"changeEvent"],["size","small"],["size","large"],["reverse",""],["color","blue"],["color","red"],["switchColor","red"],["switchColor","blue"],["uncheckedTextColor","red","checkedTextColor","blue","checkedLabel","ON","uncheckedLabel","OFF"],[1,"col-lg-5","col-sm-6","border-left","pl-5"],[1,"font-weight-bold"],[1,"row"],[1,"col-12"],[3,"ngModel","ngModelChange"],[1,"row","custom-switches"],["checked",""],[3,"checked"],["uncheckedLabel","off","checkedLabel","on","size","small"],["uncheckedLabel","off","checkedLabel","on"],["uncheckedLabel","off","checkedLabel","on","size","large"],["checkedLabel","Super Long Label","uncheckedLabel","Super Long Label","size","small"],["checkedLabel","Super Long Label","uncheckedLabel","Super Long Label"],["checkedLabel","Super Long Label","uncheckedLabel","Super Long Label","size","large"],["reverse","","uncheckedLabel","off","checkedLabel","on","uncheckedTextColor","orange","checkedTextColor","red"],[1,"custom-icons"],[1,"fa","fa-check"],[1,"fa","fa-check","fa-2x"],[3,"loading","beforeChange","ngModel","ngModelChange"],["class","fa fa-check",4,"ngIf"],["class","fa fa-times",4,"ngIf"],["class","fa fa-spinner fa-pulse",4,"ngIf"],[1,"form-row",3,"ngSubmit"],["demoForm","ngForm"],[1,"col"],["for","feature-name"],["type","text","id","feature-name",1,"form-control"],["for","enable-feature"],["id","enable-feature","name","enableFeature",1,"custom-control",3,"ngModel","ngModelChange"],["class","col-12 alert alert-info","role","alert",4,"ngIf"],[1,"col-12","mt-4"],["type","submit",1,"btn","btn-primary"],[1,"fa","fa-times"],[1,"fa","fa-spinner","fa-pulse"],["role","alert",1,"col-12","alert","alert-info"]],template:function(r,i){1&r&&(b(0,"div",0)(1,"div",1)(2,"h2"),x(3,"Basic Usage"),w(),b(4,"h4"),x(5,"checked"),w(),b(6,"p"),Z(7,"ui-switch",2)(8,"ui-switch",3),w(),b(9,"h4"),x(10,"Disabled"),w(),b(11,"p"),Z(12,"ui-switch",4)(13,"ui-switch",5),w(),b(14,"h4"),x(15,"Change"),w(),b(16,"ui-switch",6),Ce("change",function(s){return i.onChange(s)}),w(),b(17,"p"),x(18),w(),b(19,"p"),x(20),w(),b(21,"h4"),x(22,"Value Change"),w(),b(23,"ui-switch",7),Ce("valueChange",function(s){return i.onValueChange(s)}),w(),b(24,"p"),x(25),w(),b(26,"h4"),x(27,"Change Event"),w(),b(28,"ui-switch",8),Ce("changeEvent",function(s){return i.onChangeEvent(s)}),w(),b(29,"p"),x(30),w(),b(31,"h4"),x(32,"Size"),w(),b(33,"p"),Z(34,"ui-switch",9)(35,"ui-switch")(36,"ui-switch",10),w(),b(37,"h4"),x(38,"reverse"),w(),b(39,"p"),Z(40,"ui-switch",11),w(),b(41,"h4"),x(42,"color"),w(),Z(43,"ui-switch")(44,"ui-switch",12)(45,"ui-switch",13),b(46,"h4"),x(47,"switchColor"),w(),b(48,"p"),Z(49,"ui-switch",14)(50,"ui-switch",15),w(),b(51,"h4"),x(52,"textColor"),w(),b(53,"p"),Z(54,"ui-switch",16),w()(),b(55,"div",17)(56,"h2")(57,"span",18),x(58,"ngModel"),w(),x(59," Usage "),w(),b(60,"div",19)(61,"div",20)(62,"h4"),x(63,"two way binding"),w(),b(64,"ui-switch",21),Ce("ngModelChange",function(s){return i.enable=s}),w(),b(65,"p"),x(66),w()(),Z(67,"app-demo-cdr"),w(),Z(68,"hr"),b(69,"div",22)(70,"div",20)(71,"h2"),x(72,"Custom CSS"),w(),b(73,"p"),Z(74,"ui-switch",23)(75,"ui-switch",24),w()()(),Z(76,"hr"),b(77,"div",19)(78,"div",20)(79,"h2"),x(80,"Custom labels"),w(),b(81,"p"),Z(82,"ui-switch",25)(83,"ui-switch",26)(84,"ui-switch",27),w(),b(85,"p"),Z(86,"ui-switch",28)(87,"ui-switch",29)(88,"ui-switch",30),w(),b(89,"p"),Z(90,"ui-switch",31),w()()(),Z(91,"hr"),b(92,"div",19)(93,"div",20)(94,"h2"),x(95,"Custom Switch Content"),w(),b(96,"p",32)(97,"ui-switch",25),Z(98,"i",33),w(),b(99,"ui-switch",26),Z(100,"i",33),w(),b(101,"ui-switch",27),Z(102,"i",34),w()(),b(103,"h4"),x(104,"Before Change handling + Loading Icon Example"),w(),b(105,"p")(106,"ui-switch",35),Ce("ngModelChange",function(s){return i.enable=s}),Yr(107,tL,1,0,"i",36),Yr(108,nL,1,0,"i",37),Yr(109,rL,1,0,"i",38),w()()()()()(),Z(110,"hr"),b(111,"form",39,40),Ce("ngSubmit",function(s){return i.onSubmit(s)}),b(113,"div",41)(114,"label",42),x(115,"Name"),w(),Z(116,"input",43),w(),b(117,"div",41)(118,"label",44),x(119,"Enable Feature"),w(),b(120,"ui-switch",45),Ce("ngModelChange",function(s){return i.enableFeature=s}),w()(),Yr(121,iL,2,0,"div",46),b(122,"div",47)(123,"button",48),x(124,"Submit"),w()()()),2&r&&(J(7),Te("ariaLabel","checked"),J(1),Te("ariaLabel","unchecked")("checked",!1),J(5),Te("disabled",!0),J(3),Te("ariaLabel","Change"),J(2),Ft("change count ",i.count,""),J(2),Ft("value ",i.change,""),J(5),Ft("value ",i.valueChange,""),J(5),Ft("event ",i.changeEvent,""),J(34),Te("ngModel",i.enable),J(2),Ft("Current Value: ",i.enable,""),J(9),Te("checked",!1),J(31),Te("loading",i.isLoading)("beforeChange",i.fakeAsync)("ngModel",i.enable),J(1),Te("ngIf",i.enable&&!i.isLoading),J(1),Te("ngIf",!i.enable&&!i.isLoading),J(1),Te("ngIf",i.isLoading),J(11),Te("ngModel",i.enableFeature),J(1),Te("ngIf",i.submitted))},dependencies:[cd,qC,ef,FC,Ua,$a,yf,Jk],encapsulation:2})}return e})(),sL=(()=>{class e{constructor(){this.version=Ag.full}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=En({type:e,selectors:[["app-footer"]],decls:10,vars:1,consts:[[1,"footer","mb-4","mt-2"],["href","https://github.com/webcat12345/ngx-ui-switch/blob/master/LICENSE"],["href","https://github.com/webcat12345/ngx-ui-switch"]],template:function(r,i){1&r&&(b(0,"footer",0),x(1),Z(2,"br"),x(3," Released under the "),b(4,"a",1),x(5,"MIT"),w(),x(6," license. "),b(7,"a",2),x(8,"View source"),w(),x(9,". "),w()),2&r&&(J(1),Ft(" Demo using Angular ",i.version," "))},styles:[".footer[_ngcontent-%COMP%]{line-height:2;text-align:center;font-size:12px;color:#999}"]})}return e})(),aL=(()=>{class e{constructor(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=En({type:e,selectors:[["app-header"]],decls:18,vars:0,consts:[["href","https://github.com/webcat12345/ngx-ui-switch",1,"hidden-xs"],["src","https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67","alt","Fork me on GitHub","data-canonical-src","https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png",2,"position","absolute","top","0","right","0","border","0","z-index","2001"],[1,"navbar","navbar-expand-md","navbar-dark","bg-dark","fixed-top"],["type","button","data-toggle","collapse","data-target","#navbar","aria-controls","navbar","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right"],[1,"navbar-toggler-icon"],["href","#",1,"navbar-brand"],["id","navbar",1,"collapse","navbar-collapse"],[1,"navbar-nav","mr-auto"],[1,"nav-item"],["href","#demo",1,"nav-link"],["href","https://github.com/webcat12345/ngx-ui-switch#installation",1,"nav-link"],["href","https://webcat12345.github.io/ngx-ui-switch/docs/",1,"nav-link"]],template:function(r,i){1&r&&(b(0,"a",0),Z(1,"img",1),w(),b(2,"nav",2)(3,"button",3),Z(4,"span",4),w(),b(5,"a",5),x(6,"ngx ui switch"),w(),b(7,"div",6)(8,"ul",7)(9,"li",8)(10,"a",9),x(11,"Demo"),w()(),b(12,"li",8)(13,"a",10),x(14,"Installation"),w()(),b(15,"li",8)(16,"a",11),x(17,"Documentation"),w()()()()())},encapsulation:2})}return e})(),lL=(()=>{class e{constructor(){this.username="webcat12345",this.repo="ngx-ui-switch"}href(n,r){return`https://github.com/${n}/${r}`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=En({type:e,selectors:[["app-github-link"]],inputs:{username:"username",repo:"repo"},decls:6,vars:1,consts:[[1,"githubLink",3,"href"],["fill","#181717","height","32","aria-labelledby","title","role","img","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","clip-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.414"],["d","M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"]],template:function(r,i){1&r&&(b(0,"div")(1,"a",0),function np(){F.lFrame.currentNamespace="svg"}(),b(2,"svg",1)(3,"title"),x(4,"GitHub icon"),w(),Z(5,"path",2),w()()()),2&r&&(J(1),Te("href",i.href(i.username,i.repo),_u))},styles:[".githubLink[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%]{text-align:center}"]})}return e})(),uL=(()=>{class e{constructor(n){this.t=n;const r=[this.t.getTitle()];pw&&r.push(`${pw.version} Demo`),n.setTitle(r.join(" "))}static#e=this.\u0275fac=function(r){return new(r||e)(C(DD))};static#t=this.\u0275cmp=En({type:e,selectors:[["app-root"]],decls:6,vars:0,consts:[[1,"container","mt-3"],[1,"mt-5"]],template:function(r,i){1&r&&(Z(0,"app-header"),b(1,"div",0),Z(2,"app-demo"),w(),b(3,"div",1),Z(4,"app-github-link")(5,"app-footer"),w())},dependencies:[oL,sL,aL,lL],styles:["[_nghost-%COMP%]{width:80%;display:block;margin:0 auto;height:600px}"]})}return e})(),cL=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=$t({type:e,bootstrap:[uL]});static#n=this.\u0275inj=bt({imports:[_D,$R,Xk]})}return e})();BP().bootstrapModule(cL)}},pe=>{pe(pe.s=828)}]); \ No newline at end of file diff --git a/demo/polyfills.a233890b0e690bc7.js b/demo/polyfills.a233890b0e690bc7.js new file mode 100644 index 00000000..e9f6e394 --- /dev/null +++ b/demo/polyfills.a233890b0e690bc7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkngx_ui_switch=self.webpackChunkngx_ui_switch||[]).push([[429],{321:(ie,Ee,de)=>{de(332)},332:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===P))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new p(P,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new p(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CL.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(L){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let T=J[N];T||(T=J.then),T.call(J,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Se="addEventListener",Oe="removeEventListener",Ze=Zone.__symbol__(Se),Ne=Zone.__symbol__(Oe),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===Te&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Re[d];b||(b=Re[d]=j("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,We),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function ue(e,n){e[j("OriginalDelegate")]=n}let ze=!1,je=!1;function ft(){if(ze)return je;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];m&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const D=l[R],S=!!s&&_===s[_];S&&(s[K]=D,s[x]=w);const O=u.run(m,void 0,S&&m!==J&&m!==H?[]:[D]);z(s,!0,O)}catch(D){z(s,!1,D)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of u)f++,s.push(t.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new t((m,D)=>{for(let S=0;S{g||(g=!0,m(O))},O=>{w.push(O),f--,0===f&&(g=!0,D(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,S)=>{s=D,f=S});function w(D){s(D)}function m(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(w,m);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((O,V)=>{f=O,g=V}),m=2,D=0;const S=[];for(let O of u){B(O)||(O=this.resolve(O));const V=D;try{O.then(F=>{S[V]=s?s.thenCallback(F):F,m--,0===m&&f(S)},F=>{s?(S[V]=s.errorCallback(F),m--,0===m&&f(S)):g(F)})}catch(F){g(F)}m++,D++}return m-=2,0===m&&f(S),w}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,w){return new t((D,S)=>{f.call(this,D,S)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=e[o];if(p)return n.call(p)}if(this===Error){const p=e[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Se,a=o&&o.rm||Oe,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",p="prependListener",M="."+p+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const A=[];if(1===X.length){const E=Z(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=de(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const w=g&&s.target[g];if(w)for(let m=0;mfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,Z=b.prototype;try{if(Z.hasOwnProperty(p)){const N=e.ObjectGetOwnPropertyDescriptor(Z,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,p,N)):Z[p]&&(Z[p]=e.wrapWithCurrentZone(Z[p],M))}else Z[p]&&(Z[p]=e.wrapWithCurrentZone(Z[p],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Se,REMOVE_EVENT_LISTENER_STR:Oe})});const Ce=j("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(e,p.args),v}function b(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(p,M){if("function"==typeof M[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,M[0],Z,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=le(e,i,v=>function(p,M){const Z=M[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function pt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Ze],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ze],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===J){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=le(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===J&&Q.invoke()}}),G=le(M,"abort",()=>function(h,I){const P=function Z(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ie=>{ie(ie.s=321)}]); \ No newline at end of file diff --git a/demo/polyfills.eb7f3e91d0b98247.js b/demo/polyfills.eb7f3e91d0b98247.js deleted file mode 100644 index 8c926a0e..00000000 --- a/demo/polyfills.eb7f3e91d0b98247.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkngx_ui_switch=self.webpackChunkngx_ui_switch||[]).push([[429],{435:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return je&&i===Te&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v[ct]&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then"),L="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",j=null,p=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError(Q);if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data[L];T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",m="prependListener",L="."+m+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=435)}]); \ No newline at end of file diff --git a/docs/classes/_ui_switch_ui_switch_component_.uiswitchcomponent.html b/docs/classes/_ui_switch_ui_switch_component_.uiswitchcomponent.html index a9515e06..3056cf5e 100644 --- a/docs/classes/_ui_switch_ui_switch_component_.uiswitchcomponent.html +++ b/docs/classes/_ui_switch_ui_switch_component_.uiswitchcomponent.html @@ -159,7 +159,7 @@

constructor

  • Parameters

    @@ -184,7 +184,7 @@

    Private _beforeChange

    _beforeChange: Subscription
    @@ -194,7 +194,7 @@

    Private _checked

    _checked: boolean
    @@ -204,7 +204,7 @@

    Private _disabled

    _disabled: boolean
    @@ -214,7 +214,7 @@

    Private _loading

    _loading: boolean
    @@ -224,7 +224,7 @@

    Private _reverse

    _reverse: boolean
    @@ -234,7 +234,7 @@

    ariaLabel

    ariaLabel: string
    @@ -244,7 +244,7 @@

    beforeChange

    beforeChange: Observable<boolean>
    @@ -254,7 +254,7 @@

    Private cdr

    cdr: ChangeDetectorRef
    @@ -264,7 +264,7 @@

    change

    change: EventEmitter<boolean> = new EventEmitter<boolean>()
    @@ -274,7 +274,7 @@

    changeEvent

    changeEvent: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>()
    @@ -284,7 +284,7 @@

    checkedLabel

    checkedLabel: any
    @@ -294,7 +294,7 @@

    checkedTextColor

    checkedTextColor: any
    @@ -304,7 +304,7 @@

    color

    color: any
    @@ -314,7 +314,7 @@

    defaultBgColor

    defaultBgColor: any
    @@ -324,7 +324,7 @@

    defaultBoColor

    defaultBoColor: any
    @@ -334,7 +334,7 @@

    size

    size: any
    @@ -344,7 +344,7 @@

    switchColor

    switchColor: any
    @@ -354,7 +354,7 @@

    switchOffColor

    switchOffColor: any
    @@ -364,7 +364,7 @@

    uncheckedLabel

    uncheckedLabel: any
    @@ -374,7 +374,7 @@

    uncheckedTextColor

    uncheckedTextColor: any
    @@ -384,7 +384,7 @@

    valueChange

    valueChange: EventEmitter<boolean> = new EventEmitter<boolean>()
    @@ -397,8 +397,8 @@

    checked

    checked:
    @@ -408,8 +408,8 @@

    disabled

    disabled:
    @@ -419,8 +419,8 @@

    loading

    loading:
    @@ -430,8 +430,8 @@

    reverse

    reverse:
    @@ -448,7 +448,7 @@

    getColor

  • Parameters

    @@ -471,7 +471,7 @@

    ngOnDestroy

  • Returns void

    @@ -488,7 +488,7 @@

    Private onChangeCallb
  • Parameters

    @@ -511,7 +511,7 @@

    onClick

  • Parameters

    @@ -534,7 +534,7 @@

    onToggle

  • Parameters

    @@ -557,7 +557,7 @@

    Private onTouchedCall
  • Parameters

    @@ -580,7 +580,7 @@

    registerOnChange

  • Parameters

    @@ -603,7 +603,7 @@

    registerOnTouched

  • Parameters

    @@ -626,7 +626,7 @@

    setDisabledState

  • Parameters

    @@ -649,7 +649,7 @@

    writeValue

  • Parameters

    diff --git a/docs/classes/_ui_switch_ui_switch_module_.uiswitchmodule.html b/docs/classes/_ui_switch_ui_switch_module_.uiswitchmodule.html index 88c189a5..4c430465 100644 --- a/docs/classes/_ui_switch_ui_switch_module_.uiswitchmodule.html +++ b/docs/classes/_ui_switch_ui_switch_module_.uiswitchmodule.html @@ -102,7 +102,7 @@

    Static forRoot

  • Parameters

    diff --git a/docs/interfaces/_ui_switch_ui_switch_config_.uiswitchmoduleconfig.html b/docs/interfaces/_ui_switch_ui_switch_config_.uiswitchmoduleconfig.html index 6b070a70..efe0c5b7 100644 --- a/docs/interfaces/_ui_switch_ui_switch_config_.uiswitchmoduleconfig.html +++ b/docs/interfaces/_ui_switch_ui_switch_config_.uiswitchmoduleconfig.html @@ -107,7 +107,7 @@

    Optional checkedLabel

    checkedLabel: undefined | string @@ -117,7 +117,7 @@

    Optional checkedText
    checkedTextColor: undefined | string
    @@ -127,7 +127,7 @@

    Optional color

    color: undefined | string
    @@ -137,7 +137,7 @@

    Optional defaultBgColordefaultBgColor: undefined | string @@ -147,7 +147,7 @@

    Optional defaultBoColordefaultBoColor: undefined | string @@ -157,7 +157,7 @@

    Optional size

    size: undefined | string
    @@ -167,7 +167,7 @@

    Optional switchColor

    switchColor: undefined | string
    @@ -177,7 +177,7 @@

    Optional switchOffCo
    switchOffColor: undefined | string
    @@ -187,7 +187,7 @@

    Optional uncheckedLabeluncheckedLabel: undefined | string @@ -197,7 +197,7 @@

    Optional uncheckedTextuncheckedTextColor: undefined | string diff --git a/docs/modules/_ui_switch_ui_switch_component_.html b/docs/modules/_ui_switch_ui_switch_component_.html index 4873f862..19d183ef 100644 --- a/docs/modules/_ui_switch_ui_switch_component_.html +++ b/docs/modules/_ui_switch_ui_switch_component_.html @@ -93,7 +93,7 @@

    Const UI_SWITCH_CONTROL
    UI_SWITCH_CONTROL_VALUE_ACCESSOR: object
    @@ -102,7 +102,7 @@

    multi

    multi: boolean = true
    @@ -112,7 +112,7 @@

    provide

    provide: InjectionToken<any> = NG_VALUE_ACCESSOR
    @@ -122,7 +122,7 @@

    useExisting

    useExisting: Type<any> = forwardRef(() => UiSwitchComponent)
    diff --git a/docs/modules/_ui_switch_ui_switch_token_.html b/docs/modules/_ui_switch_ui_switch_token_.html index 14a7d74a..dbe5d7bc 100644 --- a/docs/modules/_ui_switch_ui_switch_token_.html +++ b/docs/modules/_ui_switch_ui_switch_token_.html @@ -87,7 +87,7 @@

    Const UI_SWITCH_OPTIONS
    UI_SWITCH_OPTIONS: InjectionToken<Object> = new InjectionToken('UI_SWITCH_OPTIONS')