@drayman/elements 1.25.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";function Br(n){return"function"==typeof n}let ml=!1;const jt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ml&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ml=n},get useDeprecatedSynchronousErrorHandling(){return ml}};function Mi(n){setTimeout(()=>{throw n},0)}const Qs={closed:!0,next(n){},error(n){if(jt.useDeprecatedSynchronousErrorHandling)throw n;Mi(n)},complete(){}},Ii=Array.isArray||(n=>n&&"number"==typeof n.length);function _l(n){return null!==n&&"object"==typeof n}const Js=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class ie{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof ie)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Br(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof Js?Oh(o.errors):[o]}}if(Ii(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(_l(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof Js?e=e.concat(Oh(c.errors)):e.push(c)}}}if(e)throw new Js(e)}add(e){let t=e;if(!e)return ie.EMPTY;switch(typeof e){case"function":t=new ie(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof ie)){const s=t;t=new ie,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof ie){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Oh(n){return n.reduce((e,t)=>e.concat(t instanceof Js?t.errors:t),[])}ie.EMPTY=((n=new ie).closed=!0,n);const eo="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends ie{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Qs;break;case 1:if(!e){this.destination=Qs;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Rh(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Rh(this,e,t,i)}}[eo](){return this}static create(e,t,i){const r=new he(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Rh extends he{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Br(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Qs&&(o=Object.create(t),Br(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;jt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=jt;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Mi(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Mi(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);jt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),jt.useDeprecatedSynchronousErrorHandling)throw i;Mi(i)}}__tryOrSetError(e,t,i){if(!jt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return jt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Mi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Vr="function"==typeof Symbol&&Symbol.observable||"@@observable";function kh(n){return n}let oe=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function Ww(n,e,t){if(n){if(n instanceof he)return n;if(n[eo])return n[eo]()}return n||e||t?new he(n,e,t):new he(Qs)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||jt.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),jt.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){jt.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function zw(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof he?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Fh(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Vr](){return this}pipe(...t){return 0===t.length?this:function Ph(n){return 0===n.length?kh:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Fh(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Fh(n){if(n||(n=jt.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Jn=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Nh extends ie{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Lh extends he{constructor(e){super(e),this.destination=e}}let Oe=(()=>{class n extends oe{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[eo](){return new Lh(this)}lift(t){const i=new Bh(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Jn;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Jn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Jn;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Jn;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Jn;return this.hasError?(t.error(this.thrownError),ie.EMPTY):this.isStopped?(t.complete(),ie.EMPTY):(this.observers.push(t),new Nh(this,t))}asObservable(){const t=new oe;return t.source=this,t}}return n.create=(e,t)=>new Bh(e,t),n})();class Bh extends Oe{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):ie.EMPTY}}function Ai(n){return n&&"function"==typeof n.schedule}function He(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Gw(n,e))}}class Gw{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new qw(e,this.project,this.thisArg))}}class qw extends he{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Vh=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},to=function Yw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Hh=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function jh(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const yl=n=>{if(n&&"function"==typeof n[Vr])return(n=>e=>{const t=n[Vr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Hh(n))return Vh(n);if(jh(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Mi),e))(n);if(n&&"function"==typeof n[to])return(n=>e=>{const t=n[to]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${_l(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function vl(n,e){return new oe(t=>{const i=new ie;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function bl(n,e){return e?function iE(n,e){if(null!=n){if(function tE(n){return n&&"function"==typeof n[Vr]}(n))return function Qw(n,e){return new oe(t=>{const i=new ie;return i.add(e.schedule(()=>{const r=n[Vr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(jh(n))return function Jw(n,e){return new oe(t=>{const i=new ie;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Hh(n))return vl(n,e);if(function nE(n){return n&&"function"==typeof n[to]}(n)||"string"==typeof n)return function eE(n,e){if(!n)throw new Error("Iterable cannot be null");return new oe(t=>{const i=new ie;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[to](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof oe?n:new oe(yl(n))}class Hr extends he{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class jr extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function $r(n,e){if(!e.closed)return n instanceof oe?n.subscribe(e):yl(n)(e)}function no(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(no((r,s)=>bl(n(r,s)).pipe(He((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new rE(n,t)))}class rE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new sE(e,this.project,this.concurrent))}}class sE extends jr{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Hr(this),i=this.destination;i.add(t);const r=$r(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $h(n=Number.POSITIVE_INFINITY){return no(kh,n)}function wl(n,e){return e?vl(n,e):new oe(Vh(n))}function El(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Ai(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof oe?n[0]:$h(e)(wl(n,t))}function Uh(){return function(e){return e.lift(new oE(e))}}class oE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new aE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class aE extends he{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class lE extends oe{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ie,e.add(this.source.subscribe(new uE(this.getSubject(),this))),e.closed&&(this._connection=null,e=ie.EMPTY)),e}refCount(){return Uh()(this)}}const cE=(()=>{const n=lE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class uE extends Lh{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class fE{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function pE(){return new Oe}function zh(){return n=>Uh()(function hE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new fE(r,e));const s=Object.create(i,cE);return s.source=i,s.subjectFactory=r,s}}(pE)(n))}function re(n){for(let e in n)if(n[e]===re)return e;throw Error("Could not find renamed property on target object.")}function Dl(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function J(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(J).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Cl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const gE=re({__forward_ref__:re});function Sl(n){return n.__forward_ref__=Sl,n.toString=function(){return J(this())},n}function j(n){return function Wh(n){return"function"==typeof n&&n.hasOwnProperty(gE)&&n.__forward_ref__===Sl}(n)?n():n}class S extends Error{constructor(e,t){super(function Tl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function F(n){return"string"==typeof n?n:null==n?"":String(n)}function je(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():F(n)}function io(n,e){const t=e?` in ${e}`:"";throw new S(-201,`No provider for ${je(n)} found${t}`)}function at(n,e){null==n&&function ee(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function we(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ml(n){return Gh(n,ro)||Gh(n,Kh)}function Gh(n,e){return n.hasOwnProperty(e)?n[e]:null}function qh(n){return n&&(n.hasOwnProperty(Il)||n.hasOwnProperty(EE))?n[Il]:null}const ro=re({\u0275prov:re}),Il=re({\u0275inj:re}),Kh=re({ngInjectableDef:re}),EE=re({ngInjectorDef:re});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Al;function Rn(n){const e=Al;return Al=n,e}function Yh(n,e,t){const i=Ml(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&B.Optional?null:void 0!==e?e:void io(J(n),"Injector")}function kn(n){return{toString:n}.toString()}var $t=(()=>(($t=$t||{})[$t.OnPush=0]="OnPush",$t[$t.Default=1]="Default",$t))(),Ut=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ut||(Ut={})),Ut))();const CE="undefined"!=typeof globalThis&&globalThis,SE="undefined"!=typeof window&&window,TE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ne=CE||"undefined"!=typeof global&&global||SE||TE,xi={},se=[],so=re({\u0275cmp:re}),xl=re({\u0275dir:re}),Ol=re({\u0275pipe:re}),Zh=re({\u0275mod:re}),yn=re({\u0275fac:re}),Ur=re({__NG_ELEMENT_ID__:re});let ME=0;function ei(n){return kn(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===$t.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||se,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ut.Emulated,id:"c",styles:n.styles||se,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=ME++,i.inputs=ef(n.inputs,t),i.outputs=ef(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Xh):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Qh):null,i})}function Xh(n){return $e(n)||function Pn(n){return n[xl]||null}(n)}function Qh(n){return function ti(n){return n[Ol]||null}(n)}const Jh={};function Ce(n){return kn(()=>{const e={type:n.type,bootstrap:n.bootstrap||se,declarations:n.declarations||se,imports:n.imports||se,exports:n.exports||se,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Jh[n.id]=n.type),e})}function ef(n,e){if(null==n)return xi;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Le=ei;function rt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function $e(n){return n[so]||null}function Ct(n,e){const t=n[Zh]||null;if(!t&&!0===e)throw new Error(`Type ${J(n)} does not have '\u0275mod' property.`);return t}const H=11;function sn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Wt(n){return Array.isArray(n)&&!0===n[1]}function Pl(n){return 0!=(8&n.flags)}function co(n){return 2==(2&n.flags)}function uo(n){return 1==(1&n.flags)}function Gt(n){return null!==n.template}function kE(n){return 0!=(512&n[2])}function si(n,e){return n.hasOwnProperty(yn)?n[yn]:null}class nf{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Fi(){return rf}function rf(n){return n.type.prototype.ngOnChanges&&(n.setInput=LE),NE}function NE(){const n=af(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===xi)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function LE(n,e,t,i){const r=af(n)||function BE(n,e){return n[sf]=e}(n,{previous:xi,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new nf(l&&l.currentValue,e,o===xi),n[i]=e}Fi.ngInherit=!0;const sf="__ngSimpleChanges__";function af(n){return n[sf]||null}let Vl;function Hl(){return void 0!==Vl?Vl:"undefined"!=typeof document?document:void 0}function ve(n){return!!n.listen}const lf={createRenderer:(n,e)=>Hl()};function Se(n){for(;Array.isArray(n);)n=n[0];return n}function ho(n,e){return Se(e[n])}function ct(n,e){return Se(e[n.index])}function jl(n,e){return n.data[e]}function Ni(n,e){return n[e]}function ut(n,e){const t=e[n];return sn(t)?t:t[0]}function cf(n){return 4==(4&n[2])}function $l(n){return 128==(128&n[2])}function Fn(n,e){return null==e?null:n[e]}function uf(n){n[18]=0}function Ul(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const N={lFrame:vf(null),bindingsEnabled:!0};function hf(){return N.bindingsEnabled}function b(){return N.lFrame.lView}function Y(){return N.lFrame.tView}function vn(n){return N.lFrame.contextLView=n,n[8]}function Re(){let n=ff();for(;null!==n&&64===n.type;)n=n.parent;return n}function ff(){return N.lFrame.currentTNode}function on(n,e){const t=N.lFrame;t.currentTNode=n,t.isParent=e}function zl(){return N.lFrame.isParent}function Wl(){N.lFrame.isParent=!1}function Li(){return N.lFrame.bindingIndex++}function wn(n){const e=N.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function tD(n,e){const t=N.lFrame;t.bindingIndex=t.bindingRootIndex=n,Gl(e)}function Gl(n){N.lFrame.currentDirectiveIndex=n}function mf(){return N.lFrame.currentQueryIndex}function Kl(n){N.lFrame.currentQueryIndex=n}function iD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function _f(n,e,t){if(t&B.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&B.Host||(r=iD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=N.lFrame=yf();return i.currentTNode=e,i.lView=n,!0}function po(n){const e=yf(),t=n[1];N.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function yf(){const n=N.lFrame,e=null===n?null:n.child;return null===e?vf(n):e}function vf(n){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:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function bf(){const n=N.lFrame;return N.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const wf=bf;function go(){const n=bf();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Qe(){return N.lFrame.selectedIndex}function Nn(n){N.lFrame.selectedIndex=n}function fe(){const n=N.lFrame;return jl(n.tView,n.selectedIndex)}function mo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function _o(n,e,t){Ef(n,e,3,t)}function yo(n,e,t,i){(3&n[2])===t&&Ef(n,e,t,i)}function Yl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Ef(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(hD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function hD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Kr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function vo(n,e,t){const i=ve(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];Xl(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Df(n){return 3===n||4===n||6===n}function Xl(n){return 64===n.charCodeAt(0)}function bo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Cf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Cf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Sf(n){return-1!==n}function Bi(n){return 32767&n}function Vi(n,e){let t=function _D(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Ql=!0;function wo(n){const e=Ql;return Ql=n,e}let yD=0;function Zr(n,e){const t=ec(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Jl(i.data,n),Jl(e,null),Jl(i.blueprint,null));const r=Eo(n,e),s=n.injectorIndex;if(Sf(r)){const o=Bi(r),a=Vi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Jl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function ec(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Eo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Do(n,e,t){!function vD(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Ur)&&(i=t[Ur]),null==i&&(i=t[Ur]=yD++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function If(n,e,t){if(t&B.Optional)return n;io(e,"NodeInjector")}function Af(n,e,t,i){if(t&B.Optional&&void 0===i&&(i=null),0==(t&(B.Self|B.Host))){const r=n[9],s=Rn(void 0);try{return r?r.get(e,i,t&B.Optional):Yh(e,i,t&B.Optional)}finally{Rn(s)}}return If(i,e,t)}function xf(n,e,t,i=B.Default,r){if(null!==n){const s=function DD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Ur)?n[Ur]:void 0;return"number"==typeof e?e>=0?255&e:wD:e}(t);if("function"==typeof s){if(!_f(e,n,i))return i&B.Host?If(r,t,i):Af(e,t,i,r);try{const o=s(i);if(null!=o||i&B.Optional)return o;io(t)}finally{wf()}}else if("number"==typeof s){let o=null,a=ec(n,e),l=-1,c=i&B.Host?e[16][6]:null;for((-1===a||i&B.SkipSelf)&&(l=-1===a?Eo(n,e):e[a+8],-1!==l&&kf(i,!1)?(o=e[1],a=Bi(l),e=Vi(l,e)):a=-1);-1!==a;){const u=e[1];if(Rf(s,a,u.data)){const d=ED(a,e,t,o,i,c);if(d!==Of)return d}l=e[a+8],-1!==l&&kf(i,e[1].data[a+8]===c)&&Rf(s,a,e)?(o=u,a=Bi(l),e=Vi(l,e)):a=-1}}}return Af(e,t,i,r)}const Of={};function wD(){return new Hi(Re(),b())}function ED(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Co(a,o,t,null==i?co(a)&&Ql:i!=o&&0!=(3&a.type),r&B.Host&&s===a);return null!==u?Xr(e,o,u,a):Of}function Co(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Gt(f)&&f.type===t)return l}return null}function Xr(n,e,t,i){let r=n[t];const s=e.data;if(function fD(n){return n instanceof Kr}(r)){const o=r;o.resolving&&function mE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new S(-200,`Circular dependency in DI detected for ${n}${t}`)}(je(s[t]));const a=wo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Rn(o.injectImpl):null;_f(n,i,B.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function dD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=rf(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Rn(l),wo(a),o.resolving=!1,wf()}}return r}function Rf(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function kf(n,e){return!(n&B.Self||n&B.Host&&e)}class Hi{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return xf(this._tNode,this._lView,e,i,t)}}const $i="__parameters__";function zi(n,e,t){return kn(()=>{const i=function nc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty($i)?l[$i]:Object.defineProperty(l,$i,{value:[]})[$i];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class x{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=I({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Mt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Mt(i,e)):e!==n&&e.push(i)}return e}function an(n,e){n.forEach(t=>Array.isArray(t)?an(t,e):e(t))}function Ff(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function To(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function es(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function dt(n,e,t){let i=Wi(n,e);return i>=0?n[1|i]=t:(i=~i,function ID(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function rc(n,e){const t=Wi(n,e);if(t>=0)return n[1|t]}function Wi(n,e){return function Bf(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const ts={},oc="__NG_DI_FLAG__",Io="ngTempTokenPath",FD=/\n/gm,Hf="__source",LD=re({provide:String,useValue:re});let ns;function jf(n){const e=ns;return ns=n,e}function BD(n,e=B.Default){if(void 0===ns)throw new S(203,"");return null===ns?Yh(n,void 0,e):ns.get(n,e&B.Optional?null:void 0,e)}function y(n,e=B.Default){return(function DE(){return Al}()||BD)(j(n),e)}const Ao=y;function ac(n){const e=[];for(let t=0;t<n.length;t++){const i=j(n[t]);if(Array.isArray(i)){if(0===i.length)throw new S(900,"");let r,s=B.Default;for(let o=0;o<i.length;o++){const a=i[o],l=VD(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(y(r,s))}else e.push(y(i))}return e}function is(n,e){return n[oc]=e,n.prototype[oc]=e,n}function VD(n){return n[oc]}const oi=is(zi("Optional"),8),rs=is(zi("SkipSelf"),4);var ht=(()=>((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const Yf="__ngContext__";function Ge(n,e){n[Yf]=e}function dc(n){const e=function os(n){return n[Yf]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function fc(n,e){return undefined(n,e)}function as(n){const e=n[3];return Wt(e)?e[3]:e}function pc(n){return np(n[13])}function gc(n){return np(n[4])}function np(n){for(;null!==n&&!Wt(n);)n=n[4];return n}function qi(n,e,t,i,r){if(null!=i){let s,o=!1;Wt(i)?s=i:sn(i)&&(o=!0,i=i[0]);const a=Se(i);0===n&&null!==t?null==r?lp(e,t,a):ai(e,t,a,r||null,!0):1===n&&null!==t?ai(e,t,a,r||null,!0):2===n?function Ec(n,e,t){const i=Oo(n,e);i&&function mC(n,e,t,i){ve(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function vC(n,e,t,i,r){const s=t[7];s!==Se(t)&&qi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];ls(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function _c(n,e,t){if(ve(n))return n.createElement(e,t);{const i=null!==t?function $E(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function rp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Ul(r,-1)),t.splice(i,1)}function yc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&rp(r,i),e>0&&(n[t-1][4]=i[4]);const s=To(n,10+e);!function lC(n,e){ls(n,e,e[H],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function sp(n,e){if(!(256&e[2])){const t=e[H];ve(t)&&t.destroyNode&&ls(n,e,t,3,null,null),function dC(n){let e=n[13];if(!e)return vc(n[1],n);for(;e;){let t=null;if(sn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)sn(e)&&vc(e[1],e),e=e[3];null===e&&(e=n),sn(e)&&vc(e[1],e),t=e&&e[4]}e=t}}(e)}}function vc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function gC(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Kr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function pC(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Se(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&ve(e[H])&&e[H].destroy();const t=e[17];if(null!==t&&Wt(e[3])){t!==e[3]&&rp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function op(n,e,t){return function ap(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Ut.None||r===Ut.Emulated)return null}return ct(i,t)}(n,e.parent,t)}function ai(n,e,t,i,r){ve(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function lp(n,e,t){ve(n)?n.appendChild(e,t):e.appendChild(t)}function cp(n,e,t,i,r){null!==i?ai(n,e,t,i,r):lp(n,e,t)}function Oo(n,e){return ve(n)?n.parentNode(e):e.parentNode}function up(n,e,t){return hp(n,e,t)}let Po,Fo,hp=function dp(n,e,t){return 40&n.type?ct(n,t):null};function Ro(n,e,t,i){const r=op(n,i,e),s=e[H],a=up(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)cp(s,r,t[l],a,!1);else cp(s,r,t,a,!1)}function ko(n,e){if(null!==e){const t=e.type;if(3&t)return ct(e,n);if(4&t)return wc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return ko(n,i);{const r=n[e.index];return Wt(r)?wc(-1,r):Se(r)}}if(32&t)return fc(e,n)()||Se(n[e.index]);{const i=pp(n,e);return null!==i?Array.isArray(i)?i[0]:ko(as(n[16]),i):ko(n,e.next)}}return null}function pp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function wc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return ko(i,r)}return e[7]}function Dc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Ge(Se(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Dc(n,e,t.child,i,r,s,!1),qi(e,n,r,a,s);else if(32&l){const c=fc(t,i);let u;for(;u=c();)qi(e,n,r,u,s);qi(e,n,r,a,s)}else 16&l?gp(n,e,i,t,r,s):qi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function ls(n,e,t,i,r,s){Dc(t,i,n.firstChild,e,r,s,!1)}function gp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)qi(e,n,r,l[c],s);else Dc(n,e,l,o[3],r,s,!0)}function mp(n,e,t){ve(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Cc(n,e,t){ve(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function li(n){var e;return(null===(e=function Sc(){if(void 0===Po&&(Po=null,ne.trustedTypes))try{Po=ne.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Po}())||void 0===e?void 0:e.createHTML(n))||n}function _p(n){var e;return(null===(e=function Tc(){if(void 0===Fo&&(Fo=null,ne.trustedTypes))try{Fo=ne.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Fo}())||void 0===e?void 0:e.createHTML(n))||n}class ci{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class CC extends ci{getTypeName(){return"HTML"}}class SC extends ci{getTypeName(){return"Style"}}class TC extends ci{getTypeName(){return"Script"}}class MC extends ci{getTypeName(){return"URL"}}class IC extends ci{getTypeName(){return"ResourceURL"}}function ft(n){return n instanceof ci?n.changingThisBreaksApplicationSecurity:n}function ln(n,e){const t=bp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function bp(n){return n instanceof ci&&n.getTypeName()||null}class PC{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(li(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class FC{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=li(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=li(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const LC=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,BC=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function cs(n){return(n=String(n)).match(LC)||n.match(BC)?n:"unsafe:"+n}function Ep(n){return(n=String(n)).split(",").map(e=>cs(e.trim())).join(", ")}function cn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function us(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const Dp=cn("area,br,col,hr,img,wbr"),Cp=cn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sp=cn("rp,rt"),Mc=us(Dp,us(Cp,cn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),us(Sp,cn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),us(Sp,Cp)),Ic=cn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ac=cn("srcset"),Tp=us(Ic,Ac,cn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),cn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),VC=cn("script,style,template");class HC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Mc.hasOwnProperty(t))return this.sanitizedSomething=!0,!VC.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Tp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Ic[a]&&(l=cs(l)),Ac[a]&&(l=Ep(l)),this.buf.push(" ",o,'="',Mp(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Mc.hasOwnProperty(t)&&!Dp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Mp(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const jC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$C=/([^\#-~ |!])/g;function Mp(n){return n.replace(/&/g,"&amp;").replace(jC,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace($C,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let No;function Ip(n,e){let t=null;try{No=No||function wp(n){const e=new FC(n);return function NC(){try{return!!(new window.DOMParser).parseFromString(li(""),"text/html")}catch(n){return!1}}()?new PC(e):e}(n);let i=e?String(e):"";t=No.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=No.getInertBodyElement(i)}while(i!==s);return li((new HC).sanitizeChildren(xc(t)||t))}finally{if(t){const i=xc(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function xc(n){return"content"in n&&function UC(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Q=(()=>((Q=Q||{})[Q.NONE=0]="NONE",Q[Q.HTML=1]="HTML",Q[Q.STYLE=2]="STYLE",Q[Q.SCRIPT=3]="SCRIPT",Q[Q.URL=4]="URL",Q[Q.RESOURCE_URL=5]="RESOURCE_URL",Q))();function Ap(n){const e=function ds(){const n=b();return n&&n[12]}();return e?_p(e.sanitize(Q.HTML,n)||""):ln(n,"HTML")?_p(ft(n)):Ip(Hl(),F(n))}function Rc(n){return n.ngOriginalError}function JC(n,...e){n.error(...e)}class Bn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function QC(n){return n&&n.ngErrorLogger||JC}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Rc(e);for(;t&&Rc(t);)t=Rc(t);return t||null}}const a0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ne))();function un(n){return n instanceof Function?n():n}function kp(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Pp="ng-template";function d0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==kp(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Fp(n){return 4===n.type&&n.value!==Pp}function h0(n,e,t){return e===(4!==n.type||t?n.value:Pp)}function f0(n,e,t){let i=4;const r=n.attrs||[],s=function m0(n){for(let e=0;e<n.length;e++)if(Df(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!h0(n,l,t)||""===l&&1===e.length){if(qt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!d0(n.attrs,c,t)){if(qt(i))return!1;o=!0}continue}const d=p0(8&i?"class":l,r,Fp(n),t);if(-1===d){if(qt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==kp(f,c,0)||2&i&&c!==h){if(qt(i))return!1;o=!0}}}}else{if(!o&&!qt(i)&&!qt(l))return!1;if(o&&qt(l))continue;o=!1,i=l|1&i}}return qt(i)||o}function qt(n){return 0==(1&n)}function p0(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function _0(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Np(n,e,t=!1){for(let i=0;i<e.length;i++)if(f0(n,e[i],t))return!0;return!1}function y0(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Lp(n,e){return n?":not("+e.trim()+")":e}function v0(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!qt(o)&&(e+=Lp(s,r),r=""),i=o,s=s||!qt(i);t++}return""!==r&&(e+=Lp(s,r)),e}const L={};function q(n){Bp(Y(),b(),Qe()+n,!1)}function Bp(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&_o(e,s,t)}else{const s=n.preOrderHooks;null!==s&&yo(e,s,0,t)}Nn(t)}function Lo(n,e){return n<<17|e<<2}function Kt(n){return n>>17&32767}function kc(n){return 2|n}function En(n){return(131068&n)>>2}function Pc(n,e){return-131069&n|e<<2}function Fc(n){return 1|n}function Yp(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Kl(r),o.contentQueries(2,e[s],s)}}}function hs(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,uf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[H]=a||n&&n[H],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function Yi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function zc(n,e,t,i,r){const s=ff(),o=zl(),l=n.data[e]=function L0(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function eD(){return N.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function qr(){const n=N.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return on(s,!0),s}function Zi(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function fs(n,e,t){po(e);try{const i=n.viewQuery;null!==i&&Jc(1,i,t);const r=n.template;null!==r&&Zp(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Yp(n,e),n.staticViewQueries&&Jc(2,n.viewQuery,t);const s=n.components;null!==s&&function P0(n,e){for(let t=0;t<e.length;t++)tS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,go()}}function Xi(n,e,t,i){const r=e[2];if(256!=(256&r)){po(e);try{uf(e),function pf(n){return N.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Zp(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&_o(e,c,null)}else{const c=n.preOrderHooks;null!==c&&yo(e,c,0,null),Yl(e,0)}if(function J0(n){for(let e=pc(n);null!==e;e=gc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Ul(s,1),r[2]|=1024}}}(e),function Q0(n){for(let e=pc(n);null!==e;e=gc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];$l(i)&&Xi(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&Yp(n,e),o){const c=n.contentCheckHooks;null!==c&&_o(e,c)}else{const c=n.contentHooks;null!==c&&yo(e,c,1),Yl(e,1)}!function R0(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Nn(~r);else{const s=r,o=t[++i],a=t[++i];tD(o,s),a(2,e[s])}}}finally{Nn(-1)}}(n,e);const a=n.components;null!==a&&function k0(n,e){for(let t=0;t<e.length;t++)eS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Jc(2,l,i),o){const c=n.viewCheckHooks;null!==c&&_o(e,c)}else{const c=n.viewHooks;null!==c&&yo(e,c,2),Yl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Ul(e[3],-1))}finally{go()}}}function F0(n,e,t,i){const r=e[10],o=cf(e);try{!o&&r.begin&&r.begin(),o&&fs(n,e,i),Xi(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Zp(n,e,t,i,r){const s=Qe(),o=2&i;try{Nn(-1),o&&e.length>20&&Bp(n,e,20,!1),t(i,r)}finally{Nn(s)}}function Xp(n,e,t){if(Pl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function Wc(n,e,t){!hf()||(function z0(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Zr(t,e),Ge(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Gt(l);c&&Y0(e,t,l);const u=Xr(e,n,a,t);Ge(u,e),null!==o&&Z0(0,a-r,u,l,0,o),c&&(ut(t.index,e)[8]=u)}}(n,e,t,ct(t,e)),128==(128&t.flags)&&function W0(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function nD(){return N.lFrame.currentDirectiveIndex}();try{Nn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Gl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&sg(c,u)}}finally{Nn(-1),Gl(a)}}(n,e,t))}function Gc(n,e,t=ct){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function Qp(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Ho(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Ho(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function N0(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:L);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function tg(n,e,t,i){const r=dg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&hg(n).push(i,r.length-1))}function ng(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function qc(n,e,t,i){let r=!1;if(hf()){const s=function G0(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Np(t,o.selectors,!1)&&(r||(r=[]),Do(Zr(t,e),n,o.type),Gt(o)?(og(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,ag(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Zi(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=bo(t.mergedAttrs,d.hostAttrs),lg(n,t,e,c,d),K0(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function B0(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Fp(e)?null:X0(d,s);o.push(h),a=ng(d,c,a),l=ng(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function q0(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new S(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=bo(t.mergedAttrs,t.attrs),r}function rg(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function U0(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function sg(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function og(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function K0(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Gt(e)&&(t[""]=n)}}function ag(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function lg(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=si(r.type)),o=new Kr(s,Gt(r),null);n.blueprint[i]=o,t[i]=o,rg(n,e,0,i,Zi(n,t,r.hostVars,L),r)}function Y0(n,e,t){const i=ct(e,n),r=Qp(t),s=n[10],o=jo(n,hs(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function dn(n,e,t,i,r,s){const o=ct(n,e);!function Kc(n,e,t,i,r,s,o){if(null==s)ve(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?F(s):o(s,i||"",r);ve(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[H],o,s,n.value,t,i,r)}function Z0(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function X0(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function cg(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function eS(n,e){const t=ut(e,n);if($l(t)){const i=t[1];80&t[2]?Xi(i,t,i.template,t[8]):t[5]>0&&Yc(t)}}function Yc(n){for(let i=pc(n);null!==i;i=gc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Xi(o,s,o.template,s[8])}else s[5]>0&&Yc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=ut(t[i],n);$l(r)&&r[5]>0&&Yc(r)}}function tS(n,e){const t=ut(e,n),i=t[1];(function nS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),fs(i,t,t[8])}function jo(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Zc(n){for(;n;){n[2]|=64;const e=as(n);if(kE(n)&&!e)return n;n=e}return null}function ug(n){!function Xc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=dc(t),r=i[1];F0(r,i,r.template,t)}}(n[8])}function Jc(n,e,t){Kl(0),e(n,t)}const rS=(()=>Promise.resolve(null))();function dg(n){return n[7]||(n[7]=[])}function hg(n){return n.cleanup||(n.cleanup=[])}function pg(n,e){const t=n[9],i=t?t.get(Bn,null):null;i&&i.handleError(e)}function gg(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Dn(n,e,t){const i=ho(e,n);!function ip(n,e,t){ve(n)?n.setValue(e,t):e.textContent=t}(n[H],i,t)}function $o(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Cl(r,a):2==s&&(i=Cl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const eu=new x("INJECTOR",-1);class mg{get(e,t=ts){if(t===ts){const i=new Error(`NullInjectorError: No provider for ${J(e)}!`);throw i.name="NullInjectorError",i}return t}}const tu=new x("Set Injector scope."),ps={},aS={};let nu;function _g(){return void 0===nu&&(nu=new mg),nu}function yg(n,e=null,t=null,i){const r=vg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function vg(n,e=null,t=null,i){return new lS(n,t,e||_g(),i)}class lS{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&an(t,a=>this.processProvider(a,e,t)),an([e],a=>this.processInjectorType(a,[],s)),this.records.set(eu,Qi(void 0,this));const o=this.records.get(tu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:J(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ts,i=B.Default){this.assertNotDestroyed();const r=jf(this),s=Rn(void 0);try{if(!(i&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function mS(n){return"function"==typeof n||"object"==typeof n&&n instanceof x}(e)&&Ml(e);a=l&&this.injectableDefInScope(l)?Qi(iu(e),ps):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&B.Self?_g():this.parent).get(e,t=i&B.Optional&&t===ts?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Io]=o[Io]||[]).unshift(J(e)),r)throw o;return function HD(n,e,t,i){const r=n[Io];throw e[Hf]&&r.unshift(e[Hf]),n.message=function jD(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=J(e);if(Array.isArray(e))r=e.map(J).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):J(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(FD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Io]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Rn(s),jf(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(J(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processInjectorType(e,t,i){if(!(e=j(e)))return!1;let r=qh(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=qh(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{an(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];an(f,p=>this.processProvider(p,h,f||se))}}this.injectorDefTypes.add(o);const l=si(o)||(()=>new o);this.records.set(o,Qi(l,ps));const c=r.providers;if(null!=c&&!a){const u=e;an(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=Ji(e=j(e))?e:j(e&&e.provide);const s=function uS(n,e,t){return wg(n)?Qi(void 0,n.useValue):Qi(function bg(n,e,t){let i;if(Ji(n)){const r=j(n);return si(r)||iu(r)}if(wg(n))i=()=>j(n.useValue);else if(function hS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...ac(n.deps||[]));else if(function dS(n){return!(!n||!n.useExisting)}(n))i=()=>y(j(n.useExisting));else{const r=j(n&&(n.useClass||n.provide));if(!function pS(n){return!!n.deps}(n))return si(r)||iu(r);i=()=>new r(...ac(n.deps))}return i}(n),ps)}(e);if(Ji(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Qi(void 0,ps,!0),o.factory=()=>ac(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===ps&&(t.value=aS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function gS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=j(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function iu(n){const e=Ml(n),t=null!==e?e.factory:si(n);if(null!==t)return t;if(n instanceof x)throw new S(204,!1);if(n instanceof Function)return function cS(n){const e=n.length;if(e>0)throw es(e,"?"),new S(204,!1);const t=function bE(n){const e=n&&(n[ro]||n[Kh]);if(e){const t=function wE(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new S(204,!1)}function Qi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function wg(n){return null!==n&&"object"==typeof n&&LD in n}function Ji(n){return"function"==typeof n}let et=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return yg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return yg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=ts,n.NULL=new mg,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>y(eu)}),n.__NG_ELEMENT_ID__=-1,n})();function CS(n,e){mo(dc(n)[1],Re())}function er(n){let e=function kg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Gt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=ou(n.inputs),o.declaredInputs=ou(n.declaredInputs),o.outputs=ou(n.outputs);const a=r.hostBindings;a&&IS(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&TS(n,l),c&&MS(n,c),Dl(n.inputs,r.inputs),Dl(n.declaredInputs,r.declaredInputs),Dl(n.outputs,r.outputs),Gt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===er&&(t=!1)}}e=Object.getPrototypeOf(e)}!function SS(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=bo(r.hostAttrs,t=bo(t,r.hostAttrs))}}(i)}function ou(n){return n===xi?{}:n===se?[]:n}function TS(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function MS(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function IS(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Uo=null;function tr(){if(!Uo){const n=ne.Symbol;if(n&&n.iterator)Uo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Uo=i)}}}return Uo}function gs(n){return!!au(n)&&(Array.isArray(n)||!(n instanceof Map)&&tr()in n)}function au(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function qe(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function gt(n,e,t,i){const r=b();return qe(r,Li(),e)&&(Y(),dn(fe(),r,n,e,t,i)),gt}function ue(n,e,t,i,r,s,o,a){const l=b(),c=Y(),u=n+20,d=c.firstCreatePass?function FS(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Yi(e,n,4,o||null,Fn(c,a));qc(e,t,u,Fn(c,l)),mo(e,u);const d=u.tViews=Ho(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];on(d,!1);const h=l[H].createComment("");Ro(c,l,h,d),Ge(h,l),jo(l,l[u]=cg(h,l,h,d)),uo(d)&&Wc(c,l,d),null!=o&&Gc(l,d,a)}function Ue(n){return Ni(function JE(){return N.lFrame.contextLView}(),20+n)}function E(n,e=B.Default){const t=b();return null===t?y(n,e):xf(Re(),t,j(n),e)}function U(n,e,t){const i=b();return qe(i,Li(),e)&&function pt(n,e,t,i,r,s,o,a){const l=ct(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(gg(n,t,u,i,r),co(e)&&function H0(n,e){const t=ut(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function V0(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,ve(s)?s.setProperty(l,i,r):Xl(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Y(),fe(),i,n,e,i[H],t,!1),U}function hu(n,e,t,i,r){const o=r?"class":"style";gg(n,t,e.inputs[o],o,i)}function Te(n,e,t,i){const r=b(),s=Y(),o=20+n,a=r[H],l=r[o]=_c(a,e,function uD(){return N.lFrame.currentNamespace}()),c=s.firstCreatePass?function nT(n,e,t,i,r,s,o){const a=e.consts,c=Yi(e,n,2,r,Fn(a,s));return qc(e,t,c,Fn(a,o)),null!==c.attrs&&$o(c,c.attrs,!1),null!==c.mergedAttrs&&$o(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];on(c,!0);const u=c.mergedAttrs;null!==u&&vo(a,l,u);const d=c.classes;null!==d&&Cc(a,l,d);const h=c.styles;return null!==h&&mp(a,l,h),64!=(64&c.flags)&&Ro(s,r,l,c),0===function KE(){return N.lFrame.elementDepthCount}()&&Ge(l,r),function YE(){N.lFrame.elementDepthCount++}(),uo(c)&&(Wc(s,r,c),Xp(s,c,r)),null!==i&&Gc(r,c),Te}function Me(){let n=Re();zl()?Wl():(n=n.parent,on(n,!1));const e=n;!function ZE(){N.lFrame.elementDepthCount--}();const t=Y();return t.firstCreatePass&&(mo(t,n),Pl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function gD(n){return 0!=(16&n.flags)}(e)&&hu(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function mD(n){return 0!=(32&n.flags)}(e)&&hu(t,e,b(),e.stylesWithoutHost,!1),Me}function _s(n,e,t,i){return Te(n,e,t,i),Me(),_s}function At(n,e,t){const i=b(),r=Y(),s=n+20,o=r.firstCreatePass?function iT(n,e,t,i,r){const s=e.consts,o=Fn(s,i),a=Yi(e,n,8,"ng-container",o);return null!==o&&$o(a,o,!0),qc(e,t,a,Fn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];on(o,!0);const a=i[s]=i[H].createComment("");return Ro(r,i,a,o),Ge(a,i),uo(o)&&(Wc(r,i,o),Xp(r,o,i)),null!=t&&Gc(i,o),At}function xt(){let n=Re();const e=Y();return zl()?Wl():(n=n.parent,on(n,!1)),e.firstCreatePass&&(mo(e,n),Pl(n)&&e.queries.elementEnd(n)),xt}function fn(n,e,t){return At(n,e,t),xt(),fn}function Cn(){return b()}function fu(n){return!!n&&"function"==typeof n.then}function em(n){return!!n&&"function"==typeof n.subscribe}const rT=em;function mt(n,e,t,i){const r=b(),s=Y(),o=Re();return function nm(n,e,t,i,r,s,o,a){const l=uo(i),u=n.firstCreatePass&&hg(n),d=e[8],h=dg(e);let f=!0;if(3&i.type||a){const _=ct(i,e),v=a?a(_):_,m=h.length,w=a?M=>a(Se(M[i.index])):i.index;if(ve(t)){let M=null;if(!a&&l&&(M=function sT(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=s,M.__ngLastListenerFn__=s,f=!1;else{s=pu(i,e,d,s,!1);const V=t.listen(v,r,s);h.push(s,V),u&&u.push(r,w,m,m+1)}}else s=pu(i,e,d,s,!0),v.addEventListener(r,s,o),h.push(s),u&&u.push(r,w,m,o)}else s=pu(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const _=g.length;if(_)for(let v=0;v<_;v+=2){const de=e[g[v]][g[v+1]].subscribe(s),me=h.length;h.push(s,de),u&&u.push(r,i.index,me,-(me+1))}}}(s,r,r[H],o,n,e,!!t,i),mt}function im(n,e,t,i){try{return!1!==t(i)}catch(r){return pg(n,r),!1}}function pu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?ut(n.index,e):e;0==(32&e[2])&&Zc(a);let l=im(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=im(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function pe(n=1){return function rD(n){return(N.lFrame.contextLView=function sD(n,e){for(;n>0;)e=e[15],n--;return e}(n,N.lFrame.contextLView))[8]}(n)}function oT(n,e){let t=null;const i=function g0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Np(n,s,!0):y0(i,s))return r}else t=r}return t}function Go(n){const e=b()[16][6];if(!e.projection){const i=e.projection=es(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?oT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function ys(n,e=0,t){const i=b(),r=Y(),s=Yi(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Wl(),64!=(64&s.flags)&&function yC(n,e,t){gp(e[H],0,e,t,op(n,t,e),up(t.parent||e[6],t,e))}(r,i,s)}function fm(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?Kt(s):En(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];cT(n[a],e)&&(l=!0,n[a+1]=i?Fc(u):kc(u)),a=i?Kt(u):En(u)}l&&(n[t+1]=i?kc(s):Fc(s))}function cT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Wi(n,e)>=0}const Pe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pm(n){return n.substring(Pe.key,Pe.keyEnd)}function uT(n){return n.substring(Pe.value,Pe.valueEnd)}function mm(n,e){const t=Pe.textEnd;let i=Pe.key=hr(n,e,t);return t===i?-1:(i=Pe.keyEnd=function pT(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=ym(n,i,t),i=Pe.value=hr(n,i,t),i=Pe.valueEnd=function gT(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=vm(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=vm(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),ym(n,i,t))}function hr(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function ym(n,e,t,i){return(e=hr(n,e,t))<t&&e++,e}function vm(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function vs(n,e,t){return Xt(n,e,t,!1),vs}function Sn(n,e){return Xt(n,e,null,!0),Sn}function Zt(n){!function Qt(n,e,t,i){const r=Y(),s=wn(2);r.firstUpdatePass&&wm(r,null,s,i);const o=b();if(t!==L&&qe(o,s,t)){const a=r.data[Qe()];if(Sm(a,i)&&!bm(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Cl(l,t||"")),hu(r,a,o,t,i)}else!function DT(n,e,t,i,r,s,o,a){r===L&&(r=se);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Dm(n,e,t,i,p,g,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[H],o[s+1],o[s+1]=function ET(n,e,t){if(null==t||""===t)return se;const i=[],r=ft(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(Em,mT,n,!1)}function mT(n,e){for(let t=function hT(n){return function _m(n){Pe.key=0,Pe.keyEnd=0,Pe.value=0,Pe.valueEnd=0,Pe.textEnd=n.length}(n),mm(n,hr(n,0,Pe.textEnd))}(e);t>=0;t=mm(e,t))Em(n,pm(e),uT(e))}function Xt(n,e,t,i){const r=b(),s=Y(),o=wn(2);s.firstUpdatePass&&wm(s,n,o,i),e!==L&&qe(r,o,e)&&Dm(s,s.data[Qe()],r,r[H],n,r[o+1]=function CT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=J(ft(n)))),n}(e,t),i,o)}function bm(n,e){return e>=n.expandoStartIndex}function wm(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Qe()],o=bm(n,t);Sm(s,i)&&null===e&&!o&&(e=!1),e=function yT(n,e,t,i){const r=function ql(n){const e=N.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=bs(t=mu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=mu(r,n,e,t,i),null===s){let l=function vT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==En(i))return n[Kt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=mu(null,n,e,l[1],i),l=bs(l,e.attrs,i),function bT(n,e,t,i){n[Kt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function wT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=bs(i,n[s].hostAttrs,t);return bs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function aT(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Kt(o),l=En(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||Wi(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=Kt(n[a+1]);n[i+1]=Lo(h,a),0!==h&&(n[h+1]=Pc(n[h+1],i)),n[a+1]=function E0(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Lo(a,0),0!==a&&(n[a+1]=Pc(n[a+1],i)),a=i;else n[i+1]=Lo(l,0),0===a?a=i:n[l+1]=Pc(n[l+1],i),l=i;c&&(n[i+1]=kc(n[i+1])),fm(n,u,i,!0),fm(n,u,i,!1),function lT(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Wi(s,e)>=0&&(t[i+1]=Fc(t[i+1]))}(e,u,n,i,s),o=Lo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function mu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=bs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function bs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),dt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Em(n,e,t){dt(n,e,ft(t))}function Dm(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];qo(function jp(n){return 1==(1&n)}(c)?Cm(l,e,t,r,En(c),o):void 0)||(qo(s)||function Hp(n){return 2==(2&n)}(c)&&(s=Cm(l,null,t,r,a,o)),function bC(n,e,t,i,r){const s=ve(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ht.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ht.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,ho(Qe(),t),r,s))}function Cm(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===L&&(h=d?se:void 0);let f=d?rc(h,i):u===i?h:void 0;if(c&&!qo(f)&&(f=rc(l,i)),qo(f)&&(a=f,o))return a;const p=n[r+1];r=o?Kt(p):En(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=rc(l,i))}return a}function qo(n){return void 0!==n}function Sm(n,e){return 0!=(n.flags&(e?16:32))}function ws(n,e=""){const t=b(),i=Y(),r=n+20,s=i.firstCreatePass?Yi(i,r,1,e,null):i.data[r],o=t[r]=function mc(n,e){return ve(n)?n.createText(e):n.createTextNode(e)}(t[H],e);Ro(i,t,o,s),on(s,!1)}function fr(n){return _u("",n,""),fr}function _u(n,e,t){const i=b(),r=function ir(n,e,t,i){return qe(n,Li(),t)?e+F(t)+i:L}(i,n,e,t);return r!==L&&Dn(i,Qe(),r),_u}const Ko="en-US";let qm=Ko;class y_{}class qM{resolveComponentFactory(e){throw function GM(n){const e=Error(`No component factory found for ${J(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let jn=(()=>{class n{}return n.NULL=new qM,n})();function KM(){return mr(Re(),b())}function mr(n,e){return new Ke(ct(n,e))}let Ke=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=KM,n})();function YM(n){return n instanceof Ke?n.nativeElement:n}class Ts{}let Jo=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function XM(){const n=b(),t=ut(Re().index,n);return function ZM(n){return n[H]}(sn(t)?t:n)}(),n})(),QM=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class _r{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const JM=new _r("13.4.0"),Cu={};function ea(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Se(s)),Wt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&ea(l[1],l,c,i)}const o=t.type;if(8&o)ea(n,e,t.child,i);else if(32&o){const a=fc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=pp(e,t);if(Array.isArray(a))i.push(...a);else{const l=as(e[16]);ea(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Ms{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return ea(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Wt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(yc(e,i),To(t,i))}this._attachedToViewContainer=!1}sp(this._lView[1],this._lView)}onDestroy(e){tg(this._lView[1],this._lView,null,e)}markForCheck(){Zc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Qc(n,e,t){const i=e[10];i.begin&&i.begin();try{Xi(n,e,n.template,t)}catch(r){throw pg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uC(n,e){ls(n,e,e[H],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,"");this._appRef=e}}class eI extends Ms{constructor(e){super(e),this._view=e}detectChanges(){ug(this._view)}checkNoChanges(){}get context(){return null}}class b_ extends jn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=$e(e);return new Su(t,this.ngModule)}}function w_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Su extends y_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function b0(n){return n.map(v0).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return w_(this.componentDef.inputs)}get outputs(){return w_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function nI(n,e){return{get:(t,i,r)=>{const s=n.get(t,Cu,r);return s!==Cu||i===Cu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Ts,lf),a=s.get(QM,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function eg(n,e,t){if(ve(n))return n.selectRootElement(e,t===Ut.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):_c(o.createRenderer(null,this.componentDef),c,function tI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Rg(n,e){return{components:[],scheduler:n||a0,clean:rS,playerHandler:e||null,flags:0}}(),f=Ho(0,null,null,1,0,null,null,null,null,null),p=hs(null,f,h,d,null,null,o,l,a,s);let g,_;po(p);try{const v=function xg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Yi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&($o(l,c,!0),null!==n&&(vo(r,n,c),null!==l.classes&&Cc(r,n,l.classes),null!==l.styles&&mp(r,n,l.styles)));const u=i.createRenderer(n,e),d=hs(t,Qp(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Do(Zr(l,t),o,e.type),og(o,l),ag(l,t.length,1)),jo(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)vo(l,u,["ng-version",JM.full]);else{const{attrs:m,classes:w}=function w0(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!qt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&vo(l,u,m),w&&w.length>0&&Cc(l,u,w.join(" "))}if(_=jl(f,20),void 0!==t){const m=_.projection=[];for(let w=0;w<this.ngContentSelectors.length;w++){const M=t[w];m.push(null!=M?Array.from(M):null)}}g=function Og(n,e,t,i,r){const s=t[1],o=function $0(n,e,t){const i=Re();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),lg(n,i,e,Zi(n,e,1,null),t));const r=Xr(e,n,i.directiveStart,i);Ge(r,e);const s=ct(i,e);return s&&Ge(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Re();e.contentQueries(1,o,l.directiveStart)}const a=Re();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Nn(a.index),rg(t[1],a,0,a.directiveStart,a.directiveEnd,e),sg(e,o)),o}(v,this.componentDef,p,h,[CS]),fs(f,p,null)}finally{go()}return new rI(this.componentType,g,mr(_,p),p,_)}}class rI extends class WM{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new eI(r),this.componentType=e}get injector(){return new Hi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class yr{}const vr=new Map;class C_ extends yr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new b_(this);const i=Ct(e);this._bootstrapComponents=un(i.bootstrap),this._r3Injector=vg(e,t,[{provide:yr,useValue:this},{provide:jn,useValue:this.componentFactoryResolver}],J(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=et.THROW_IF_NOT_FOUND,i=B.Default){return e===et||e===yr||e===eu?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Tu extends class oI{}{constructor(e){super(),this.moduleType=e,null!==Ct(e)&&function aI(n){const e=new Set;!function t(i){const r=Ct(i,!0),s=r.id;null!==s&&(function E_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${J(e)} vs ${J(e.name)}`)}(s,vr.get(s),i),vr.set(s,i));const o=un(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new C_(this.moduleType,e)}}function S_(n,e,t,i,r,s){const o=e+t;return qe(n,o,r)?function hn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function Is(n,e){const t=n[e];return t===L?void 0:t}(n,o+1)}function O_(n,e,t){const i=n+20,r=b(),s=Ni(r,i);return function As(n,e){return n[1].data[e].pure}(r,i)?S_(r,function Xe(){const n=N.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function Mu(n){return e=>{setTimeout(n,void 0,e)}}const Ye=class DI extends Oe{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Mu(l),a&&(a=Mu(a)),c&&(c=Mu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof ie&&e.add(u),u}};function CI(){return this._results[tr()]()}class Iu{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 t=tr(),i=Iu.prototype;i[t]||(i[t]=CI)}get changes(){return this._changes||(this._changes=new Ye)}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,t){return this._results.reduce(e,t)}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,t){const i=this;i.dirty=!1;const r=Mt(e);(this._changesDetected=!function TD(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Tn=(()=>{class n{}return n.__NG_ELEMENT_ID__=MI,n})();const SI=Tn,TI=class extends SI{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=hs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),fs(t,i,e),new Ms(i)}};function MI(){return ta(Re(),b())}function ta(n,e){return 4&n.type?new TI(e,n,mr(n,e)):null}let _t=(()=>{class n{}return n.__NG_ELEMENT_ID__=II,n})();function II(){return P_(Re(),b())}const AI=_t,R_=class extends AI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return mr(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const e=Eo(this._hostTNode,this._hostLView);if(Sf(e)){const t=Vi(e,this._hostLView),i=Bi(e);return new Hi(t[1].data[i+8],t)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=k_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function Jr(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Su($e(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(yr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function qE(n){return Wt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new R_(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function hC(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Ff(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function fC(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=wc(s,o),l=i[H],c=Oo(l,o[7]);return null!==c&&function cC(n,e,t,i,r,s){i[0]=r,i[6]=e,ls(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Ff(Au(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=k_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=yc(this._lContainer,t);i&&(To(Au(this._lContainer),t),sp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=yc(this._lContainer,t);return i&&null!=To(Au(this._lContainer),t)?new Ms(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function k_(n){return n[8]}function Au(n){return n[8]||(n[8]=[])}function P_(n,e){let t;const i=e[n.index];if(Wt(i))t=i;else{let r;if(8&n.type)r=Se(i);else{const s=e[H];r=s.createComment("");const o=ct(n,e);ai(s,Oo(s,o),r,function _C(n,e){return ve(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=cg(i,e,r,n),jo(e,t)}return new R_(t,n,e)}class xu{constructor(e){this.queryList=e,this.matches=null}clone(){return new xu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ou{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Ou(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==V_(e,t).matches&&this.queries[t].setDirty()}}class F_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Ru{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Ru(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class ku{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new ku(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,RI(t,s)),this.matchTNodeWithReadOption(e,t,Co(t,e,s,!1,!1))}else i===Tn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Co(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ke||r===_t||r===Tn&&4&t.type)this.addMatch(t.index,-2);else{const s=Co(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function RI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function PI(n,e,t,i){return-1===t?function kI(n,e){return 11&n.type?mr(n,e):4&n.type?ta(n,e):null}(e,n):-2===t?function FI(n,e,t){return t===Ke?mr(e,n):t===Tn?ta(e,n):t===_t?P_(e,n):void 0}(n,e,i):Xr(n,n[1],t,e)}function N_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:PI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Pu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=N_(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Pu(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Pu(f[1],f,c,i)}}}}}return i}function na(n){const e=b(),t=Y(),i=mf();Kl(i+1);const r=V_(t,i);if(n.dirty&&cf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Pu(t,e,i,[]):N_(t,e,r,i);n.reset(s,YM),n.notifyOnChanges()}return!0}return!1}function ia(n,e,t){const i=Y();i.firstCreatePass&&(function B_(n,e,t){null===n.queries&&(n.queries=new Ru),n.queries.track(new ku(e,t))}(i,new F_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function L_(n,e,t){const i=new Iu(4==(4&t));tg(n,e,i,i.destroy),null===e[19]&&(e[19]=new Ou),e[19].queries.push(new xu(i))}(i,b(),e)}function ra(){return function LI(n,e){return n[19].queries[e].queryList}(b(),mf())}function V_(n,e){return n.queries.getByIndex(e)}function H_(n,e){return ta(n,e)}function aa(...n){}const iy=new x("Application Initializer");let Hu=(()=>{class n{constructor(t){this.appInits=t,this.resolve=aa,this.reject=aa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(fu(s))t.push(s);else if(rT(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(y(iy,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Os=new x("AppId",{providedIn:"root",factory:function ry(){return`${ju()}${ju()}${ju()}`}});function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sy=new x("Platform Initializer"),la=new x("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),tA=new x("appBootstrapListener"),Mn=new x("LocaleId",{providedIn:"root",factory:()=>Ao(Mn,B.Optional|B.SkipSelf)||function nA(){return"undefined"!=typeof $localize&&$localize.locale||Ko}()}),oA=(()=>Promise.resolve(0))();function $u(n){"undefined"==typeof Zone?oA.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class te{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ye(!1),this.onMicrotaskEmpty=new Ye(!1),this.onStable=new Ye(!1),this.onError=new Ye(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function aA(){let n=ne.requestAnimationFrame,e=ne.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function uA(n){const e=()=>{!function cA(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ne,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,zu(n),n.isCheckStableRunning=!0,Uu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),zu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return oy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),ay(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return oy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),ay(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,zu(n),Uu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!te.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(te.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,lA,aa,aa);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const lA={};function Uu(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function zu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function oy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ay(n){n._nesting--,Uu(n)}class dA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ye,this.onMicrotaskEmpty=new Ye,this.onStable=new Ye,this.onError=new Ye}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Wu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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(),$u(()=>{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())$u(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(y(te))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),hA=(()=>{class n{constructor(){this._applications=new Map,Gu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Gu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class fA{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Gu=new fA,hi=null;const ly=new x("AllowMultipleToken"),cy=new x("PlatformOnDestroy");function uy(n,e,t=[]){const i=`Platform: ${e}`,r=new x(i);return(s=[])=>{let o=qu();if(!o||o.injector.get(ly,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function _A(n){if(hi&&!hi.get(ly,!1))throw new S(400,"");hi=n;const e=n.get(dy),t=n.get(sy,null);t&&t.forEach(i=>i())}(function vA(n=[],e){return et.create({name:e,providers:[{provide:tu,useValue:"platform"},{provide:cy,useValue:()=>hi=null},...n]})}(a,i))}return function yA(n){const e=qu();if(!e)throw new S(401,"");return e}()}}function qu(){var n;return null!==(n=null==hi?void 0:hi.get(dy))&&void 0!==n?n:null}let dy=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function bA(n,e){let t;return t="noop"===n?new dA:("zone.js"===n?void 0:n)||new te({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:te,useValue:a}];return a.run(()=>{const c=et.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Bn,null);if(!d)throw new S(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Ku(this._modules,u),h.unsubscribe()})}),function wA(n,e,t){try{const i=t();return fu(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Hu);return h.runInitializers(),h.donePromise.then(()=>(function YT(n){at(n,"Expected localeId to be defined"),"string"==typeof n&&(qm=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Mn,Ko)||Ko),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=hy({},i);return function gA(n,e,t){const i=new Tu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(ca);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(cy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(et))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function hy(n,e){return Array.isArray(e)?e.reduce(hy,n):Object.assign(Object.assign({},n),e)}let ca=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new oe(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new oe(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),$u(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=El(o,a.pipe(zh()))}bootstrap(t,i){if(!this._initStatus.done)throw new S(405,"");let r;r=t instanceof y_?t:this._injector.get(jn).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function mA(n){return n.isBoundToModule}(r)?void 0:this._injector.get(yr),a=r.create(et.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Wu,null),u=c&&a.injector.get(hA);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Ku(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new S(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Ku(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tA,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(y(te),y(et),y(Bn),y(Hu))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ku(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let py=!0,wr=(()=>{class n{}return n.__NG_ELEMENT_ID__=CA,n})();function CA(n){return function SA(n,e,t){if(co(n)&&!t){const i=ut(n.index,e);return new Ms(i,i)}return 47&n.type?new Ms(e[16],e):null}(Re(),b(),16==(16&n))}class vy{constructor(){}supports(e){return gs(e)}create(e){return new OA(e)}}const xA=(n,e)=>e;class OA{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||xA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<wy(i,r,s)?t:i,a=wy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!gs(e))throw new S(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function PS(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[tr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new RA(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new by),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new by),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class RA{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class kA{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class by{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new kA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function wy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Ey{constructor(){}supports(e){return e instanceof Map||au(e)}create(){return new PA}}class PA{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||au(e)))throw new S(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new FA(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class FA{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Dy(){return new ha([new vy])}let ha=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Dy()),deps:[[n,new rs,new oi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S(901,"")}}return n.\u0275prov=I({token:n,providedIn:"root",factory:Dy}),n})();function Cy(){return new Rs([new Ey])}let Rs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Cy()),deps:[[n,new rs,new oi]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new S(901,"")}}return n.\u0275prov=I({token:n,providedIn:"root",factory:Cy}),n})();const BA=uy(null,"core",[]);let VA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(ca))},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({}),n})(),fa=null;function $n(){return fa}const K=new x("DocumentToken");let ks=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function UA(){return y(Sy)}()},providedIn:"platform"}),n})(),Sy=(()=>{class n extends ks{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $n().getBaseHref(this._doc)}onPopState(t){const i=$n().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=$n().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Ty()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Ty()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:function(){return function zA(){return new Sy(y(K))}()},providedIn:"platform"}),n})();function Ty(){return!!window.history.pushState}function My(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Iy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function pi(n){return n&&"?"!==n[0]?"?"+n:n}let Ju=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function WA(n){const e=y(K).location;return new qA(y(ks),e&&e.origin||"")}()},providedIn:"root"}),n})();const GA=new x("appBaseHref");let qA=(()=>{class n extends Ju{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return My(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+pi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+pi(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+pi(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(y(ks),y(GA,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Ay=(()=>{class n{constructor(t,i){this._subject=new Ye,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Iy(xy(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+pi(i))}normalize(t){return n.stripTrailingSlash(function YA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,xy(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+pi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+pi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=pi,n.joinWithSlash=My,n.stripTrailingSlash=Iy,n.\u0275fac=function(t){return new(t||n)(y(Ju),y(ks))},n.\u0275prov=I({token:n,factory:function(){return function KA(){return new Ay(y(Ju),y(ks))}()},providedIn:"root"}),n})();function xy(n){return n.replace(/\/index.html$/,"")}let cd=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(gs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${J(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(E(ha),E(Rs),E(Ke),E(Jo))},n.\u0275dir=Le({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})(),ud=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new Nx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Hy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Hy("ngIfElse",t),this._elseTemplateRef=t,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(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(E(_t),E(Tn))},n.\u0275dir=Le({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class Nx{constructor(){this.$implicit=null,this.ngIf=null}}function Hy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${J(e)}'.`)}const jy="browser";class fd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Sa=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Le({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Gy=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new fd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(E(_t),E(Tn),E(Sa,9))},n.\u0275dir=Le({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),qy=(()=>{class n{constructor(t,i,r){r._addDefault(new fd(t,i))}}return n.\u0275fac=function(t){return new(t||n)(E(_t),E(Tn),E(Sa,9))},n.\u0275dir=Le({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),pd=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(Rs),E(Jo))},n.\u0275dir=Le({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Yy=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(E(_t))},n.\u0275dir=Le({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Fi]}),n})();class pO{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class gO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const mO=new gO,_O=new pO;let Zy=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(fu(t))return mO;if(em(t))return _O;throw function en(n,e){return new S(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(E(wr,16))},n.\u0275pipe=rt({name:"async",type:n,pure:!1}),n})(),_d=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({}),n})();class yd extends class LO extends class $A{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function jA(n){fa||(fa=n)}(new yd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||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,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function BO(){return Ls=Ls||document.querySelector("base"),Ls?Ls.getAttribute("href"):null}();return null==t?null:function VO(n){Ta=Ta||document.createElement("a"),Ta.setAttribute("href",n);const e=Ta.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Ls=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function Rx(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Ta,Ls=null;const Jy=new x("TRANSITION_ID"),jO=[{provide:iy,useFactory:function HO(n,e,t){return()=>{t.get(Hu).donePromise.then(()=>{const i=$n(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Jy,K,et],multi:!0}];class vd{static init(){!function pA(n){Gu=n}(new vd)}addToWindow(e){ne.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ne.getAllAngularTestabilities=()=>e.getAllTestabilities(),ne.getAllAngularRootElements=()=>e.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(i=>{const r=ne.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?$n().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let $O=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ma=new x("EventManagerPlugins");let Ia=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(y(Ma),y(te))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class ev{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=$n().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let tv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Bs=(()=>{class n extends tv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(nv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(nv))}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function nv(n){$n().remove(n)}const bd={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/"},wd=/%COMP%/g;function Aa(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Aa(n,r,t):(r=r.replace(wd,n),t.push(r))}return t}function sv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let xa=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Ed(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Ut.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new KO(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Ut.ShadowDom:return new YO(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Aa(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(y(Ia),y(Bs),y(Os))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Ed{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(bd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=bd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=bd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(ht.DashCase|ht.Important)?e.style.setProperty(t,i,r&ht.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&ht.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,sv(i)):this.eventManager.addEventListener(e,t,sv(i))}}class KO extends Ed{constructor(e,t,i,r){super(e),this.component=i;const s=Aa(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function WO(n){return"_ngcontent-%COMP%".replace(wd,n)}(r+"-"+i.id),this.hostAttr=function GO(n){return"_nghost-%COMP%".replace(wd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class YO extends Ed{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Aa(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let ZO=(()=>{class n extends ev{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const av=["alt","control","meta","shift"],QO={"\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"},lv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},JO={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let eR=(()=>{class n extends ev{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$n().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(av.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function tR(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&lv.hasOwnProperty(e)&&(e=lv[e]))}return QO[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),av.forEach(s=>{s!=r&&JO[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const sR=uy(BA,"browser",[{provide:la,useValue:jy},{provide:sy,useValue:function nR(){yd.makeCurrent(),vd.init()},multi:!0},{provide:K,useFactory:function rR(){return function UE(n){Vl=n}(document),document},deps:[]}]),oR=[{provide:tu,useValue:"root"},{provide:Bn,useFactory:function iR(){return new Bn},deps:[]},{provide:Ma,useClass:ZO,multi:!0,deps:[K,te,la]},{provide:Ma,useClass:eR,multi:!0,deps:[K]},{provide:xa,useClass:xa,deps:[Ia,Bs,Os]},{provide:Ts,useExisting:xa},{provide:tv,useExisting:Bs},{provide:Bs,useClass:Bs,deps:[K]},{provide:Wu,useClass:Wu,deps:[te]},{provide:Ia,useClass:Ia,deps:[Ma,te]},{provide:class FO{},useClass:$O,deps:[]}];let cv=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:Os,useValue:t.appId},{provide:Jy,useExisting:Os},jO]}}}return n.\u0275fac=function(t){return new(t||n)(y(n,12))},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:oR,imports:[_d,VA]}),n})();"undefined"!=typeof window&&window;let Cd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new(t||n):y(hv),i},providedIn:"root"}),n})(),hv=(()=>{class n extends Cd{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Q.NONE:return i;case Q.HTML:return ln(i,"HTML")?ft(i):Ip(this._doc,String(i)).toString();case Q.STYLE:return ln(i,"Style")?ft(i):i;case Q.SCRIPT:if(ln(i,"Script"))return ft(i);throw new Error("unsafe value used in a script context");case Q.URL:return bp(i),ln(i,"URL")?ft(i):cs(String(i));case Q.RESOURCE_URL:if(ln(i,"ResourceURL"))return ft(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function AC(n){return new CC(n)}(t)}bypassSecurityTrustStyle(t){return function xC(n){return new SC(n)}(t)}bypassSecurityTrustScript(t){return function OC(n){return new TC(n)}(t)}bypassSecurityTrustUrl(t){return function RC(n){return new MC(n)}(t)}bypassSecurityTrustResourceUrl(t){return function kC(n){return new IC(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new t:function mR(n){return new hv(n.get(K))}(y(et)),i},providedIn:"root"}),n})();function Oa(n){return null!=n&&"false"!=`${n}`}function fv(n,e=0){return function _R(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function Ra(n){return Array.isArray(n)?n:[n]}function xe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Er(n){return n instanceof Ke?n.nativeElement:n}function kt(...n){let e=n[n.length-1];return Ai(e)?(n.pop(),vl(n,e)):wl(n)}function pv(n,e,t,i){return Br(t)&&(i=t,t=void 0),i?pv(n,e,t).pipe(He(r=>Ii(r)?i(...r):i(r))):new oe(r=>{gv(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function gv(n,e,t,i,r){let s;if(function bR(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function vR(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function yR(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)gv(n[o],e,t,i,r)}i.add(s)}class wR extends ie{constructor(e,t){super()}schedule(e,t=0){return this}}class ka extends wR{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let mv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class tn extends mv{constructor(e,t=mv.now){super(e,()=>tn.delegate&&tn.delegate!==this?tn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return tn.delegate&&tn.delegate!==this?tn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}new class DR extends tn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class ER extends ka{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let SR=1;const TR=Promise.resolve(),Pa={};function _v(n){return n in Pa&&(delete Pa[n],!0)}const yv={setImmediate(n){const e=SR++;return Pa[e]=!0,TR.then(()=>_v(e)&&n()),e},clearImmediate(n){_v(n)}},Sd=(new class IR extends tn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class MR extends ka{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=yv.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(yv.clearImmediate(t),e.scheduled=void 0)}}),new tn(ka));class OR{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new RR(e,this.durationSelector))}}class RR extends jr{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=$r(t,new Hr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function vv(n){return!Ii(n)&&n-parseFloat(n)+1>=0}function PR(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function bv(n,e=Sd){return function xR(n){return function(t){return t.lift(new OR(n))}}(()=>function kR(n=0,e,t){let i=-1;return vv(e)?i=Number(e)<1?1:Number(e):Ai(e)&&(t=e),Ai(t)||(t=Sd),new oe(r=>{const s=vv(n)?n:+n-t.now();return t.schedule(PR,s,{index:0,period:i,subscriber:r})})}(n,e))}function Fa(n,e){return function(i){return i.lift(new FR(n,e))}}class FR{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new NR(e,this.predicate,this.thisArg))}}class NR extends he{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Td;try{Td="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Td=!1}let Vs,gi,Md,Pt=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function Hx(n){return n===jy}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Td)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(y(la))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Na(n){return function LR(){if(null==Vs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vs=!0}))}finally{Vs=Vs||!1}return Vs}()?n:!!n.capture}function BR(){if(null==gi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return gi=!1,gi;if("scrollBehavior"in document.documentElement.style)gi=!0;else{const n=Element.prototype.scrollTo;gi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return gi}function mi(n){return n.composedPath?n.composedPath()[0]:n.target}function Id(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const jR=new x("cdk-dir-doc",{providedIn:"root",factory:function $R(){return Ao(K)}}),UR=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ev=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ye,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function zR(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?UR.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(y(jR,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({}),n})(),Dv=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new oe(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(bv(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):kt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Fa(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Er(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>pv(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(y(te),y(Pt),y(K,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cv=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Oe,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(bv(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(y(Pt),y(te),y(K,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ad=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({}),n})(),Sv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[Hs,Ad],Hs,Ad]}),n})();class xd{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Tv extends xd{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class qR extends xd{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class KR extends xd{constructor(e){super(),this.element=e instanceof Ke?e.nativeElement:e}}class ZR extends class YR{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Tv?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof qR?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof KR?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||et.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let XR=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({}),n})();const QR=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),JR=new oe(n=>n.complete());function Mv(n){return n?function ek(n){return new oe(e=>n.schedule(()=>e.complete()))}(n):JR}function Cr(n){return e=>0===n?Mv():e.lift(new tk(n))}class tk{constructor(e){if(this.total=e,this.total<0)throw new QR}call(e,t){return t.subscribe(new nk(e,this.total))}}class nk extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function nn(n){return e=>e.lift(new ik(n))}class ik{constructor(e){this.notifier=e}call(e,t){const i=new rk(e),r=$r(this.notifier,new Hr(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class rk extends jr{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const Iv=BR();class sk{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=xe(-this._previousScrollPosition.left),e.style.top=xe(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Iv&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Iv&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class ok{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Av{enable(){}disable(){}attach(){}}function Od(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function xv(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class ak{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Od(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let lk=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Av,this.close=o=>new ok(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new sk(this._viewportRuler,this._document),this.reposition=o=>new ak(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(y(Dv),y(Cv),y(te),y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ck{constructor(e){if(this.scrollStrategy=new Av,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class uk{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class dk{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Oe,this._attachments=new Oe,this._detachments=new Oe,this._locationChanges=ie.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Oe,this._outsidePointerEvents=new Oe,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Cr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=xe(this._config.width),e.height=xe(this._config.height),e.minWidth=xe(this._config.minWidth),e.minHeight=xe(this._config.minHeight),e.maxWidth=xe(this._config.maxWidth),e.maxHeight=xe(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;!e||(e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500)))}_toggleClasses(e,t,i){const r=Ra(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(nn(El(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Rd=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Id()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Id()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Pt))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ov="cdk-overlay-connected-position-bounding-box",hk=/([A-Za-z%]+)$/;class fk{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Oe,this._resizeSubscription=ie.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Ov),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_i(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ov),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=kv(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),g=this._subtractOverflows(s.height,h,f),_=p*g;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Rv(this._overlayRef.getConfig().minHeight),a=Rv(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=kv(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new uk(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=xe(i.height),r.top=xe(i.top),r.bottom=xe(i.bottom),r.width=xe(i.width),r.left=xe(i.left),r.right=xe(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=xe(s)),o&&(r.maxWidth=xe(o))}this._lastBoundingBoxSize=i,_i(this._boundingBox.style,r)}_resetBoundingBoxStyles(){_i(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_i(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();_i(i,this._getExactOverlayY(t,e,u)),_i(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=xe(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=xe(o.maxWidth):s&&(i.maxWidth="")),_i(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=xe(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=xe(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xv(e,i),isOriginOutsideView:Od(e,i),isOverlayClipped:xv(t,i),isOverlayOutsideView:Od(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Ra(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ke)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function _i(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Rv(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(hk);return t&&"px"!==t?null:parseFloat(e)}return n||null}function kv(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Pv="cdk-global-overlay-wrapper";class pk{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Pv),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Pv),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let gk=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new pk}flexibleConnectedTo(t){return new fk(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(Cv),y(K),y(Pt),y(Rd))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fv=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mk=(()=>{class n extends Fv{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(te,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_k=(()=>{class n extends Fv{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=mi(s)},this._clickListener=s=>{const o=mi(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Pt),y(te,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yk=0,Ba=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new ck(t);return o.direction=o.direction||this._directionality.value,new dk(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+yk++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ca)),new ZR(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(lk),y(Rd),y(jn),y(gk),y(mk),y(et),y(te),y(K),y(Ev),y(Ay),y(_k))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const wk={provide:new x("cdk-connected-overlay-scroll-strategy"),deps:[Ba],useFactory:function bk(n){return()=>n.scrollStrategies.reposition()}};let Ek=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:[Ba,wk],imports:[[Hs,XR,Sv],Sv]}),n})();const Sk=new class Ck extends tn{}(class Dk extends ka{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});function Nv(n,e){return new oe(e?t=>e.schedule(Tk,0,{error:n,subscriber:t}):t=>t.error(n))}function Tk({error:n,subscriber:e}){e.error(n)}class Ft{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return kt(this.value);case"E":return Nv(this.error);case"C":return Mv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Ft("N",e):Ft.undefinedValueNotification}static createError(e){return new Ft("E",void 0,e)}static createComplete(){return Ft.completeNotification}}Ft.completeNotification=new Ft("C"),Ft.undefinedValueNotification=new Ft("N",void 0);class Va extends he{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Va.dispatch,this.delay,new Ik(e,this.destination)))}_next(e){this.scheduleMessage(Ft.createNext(e))}_error(e){this.scheduleMessage(Ft.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Ft.createComplete()),this.unsubscribe()}}class Ik{constructor(e,t){this.notification=e,this.destination=t}}class Lv extends Oe{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Ak(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Jn;if(this.isStopped||this.hasError?o=ie.EMPTY:(this.observers.push(e),o=new Nh(this,e)),r&&e.add(e=new Va(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||Sk).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class Ak{constructor(e,t){this.time=e,this.value=t}}function kd(n,e){return"function"==typeof e?t=>t.pipe(kd((i,r)=>bl(n(i,r)).pipe(He((s,o)=>e(i,s,r,o))))):t=>t.lift(new xk(n))}class xk{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ok(e,this.project))}}class Ok extends jr{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Hr(this),r=this.destination;r.add(i),this.innerSubscription=$r(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Ha={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Ha.schedule(n,0);if(void 0===window.requestAnimationFrame)return Ha.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Pd;function Hk(n,e,t){let i=t;return function kk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function Fk(n,e){if(!Pd){const t=Element.prototype;Pd=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Pd.call(n,e)}(n,r)||(i=s,0))),i}class $k{constructor(e,t){this.componentFactory=t.get(jn).resolveComponentFactory(e)}create(e){return new Uk(this.componentFactory,e)}}class Uk{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Lv(1),this.events=this.eventEmitters.pipe(kd(i=>El(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(te),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ha.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Nk(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=et.create({providers:[],parent:this.injector}),i=function Vk(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=Hk(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(wr),this.implementsOnChanges=function Pk(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ca).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(He(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ha.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new nf(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class zk extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Gk extends Oe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Jn;return this._value}next(e){super.next(this._value=e)}}function Vv(n){return e=>e.lift(new eP(n))}class eP{constructor(e){this.total=e}call(e,t){return t.subscribe(new tP(e,this.total))}}class tP extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class iP{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new rP(e,this.compare,this.keySelector))}}class rP extends he{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}let sP=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:[sP]}),n})();function ja(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const jv="cdk-describedby-message",$a="cdk-describedby-host";let $v=0,cP=(()=>{class n{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+$v++,this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=Fd(i,r);"string"!=typeof i?(Uv(i),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){var s;if(!i||!this._isElementNode(t))return;const o=Fd(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var t;const i=this._document.querySelectorAll(`[${$a}="${this._id}"]`);for(let r=0;r<i.length;r++)this._removeCdkDescribedByReferenceIds(i[r]),i[r].removeAttribute($a);null===(t=this._messagesContainer)||void 0===t||t.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");Uv(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Fd(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i,r;null===(r=null===(i=this._messageRegistry.get(t))||void 0===i?void 0:i.messageElement)||void 0===r||r.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;const t="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let s=0;s<i.length;s++)i[s].remove();const r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){const i=ja(t,"aria-describedby").filter(r=>0!=r.indexOf(jv));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function aP(n,e,t){const i=ja(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute($a,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function lP(n,e,t){const r=ja(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute($a)}_isElementDescribedByMessage(t,i){const r=ja(t,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Pt))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Fd(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function Uv(n){n.id||(n.id=`${jv}-${$v++}`)}function Wv(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Gv(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const gP=new x("cdk-input-modality-detector-options"),mP={ignoreKeys:[18,17,224,91,16]},Sr=Na({passive:!0,capture:!0});let _P=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new Gk(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=mi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Wv(o)?"keyboard":"mouse"),this._mostRecentTarget=mi(o))},this._onTouchstart=o=>{Gv(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mi(o))},this._options=Object.assign(Object.assign({},mP),s),this.modalityDetected=this._modality.pipe(Vv(1)),this.modalityChanged=this.modalityDetected.pipe(function nP(n,e){return t=>t.lift(new iP(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Sr),r.addEventListener("mousedown",this._onMousedown,Sr),r.addEventListener("touchstart",this._onTouchstart,Sr)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Sr),document.removeEventListener("mousedown",this._onMousedown,Sr),document.removeEventListener("touchstart",this._onTouchstart,Sr))}}return n.\u0275fac=function(t){return new(t||n)(y(Pt),y(te),y(K),y(gP,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vP=new x("cdk-focus-monitor-default-options"),Ua=Na({passive:!0,capture:!0});let Kv=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Oe,this._rootNodeFocusAndBlurListener=a=>{const l=mi(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=Er(t);if(!this._platform.isBrowser||1!==r.nodeType)return kt(null);const s=function HR(n){if(function VR(){if(null==Md){const n="undefined"!=typeof document?document.head:null;Md=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Md}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new Oe,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Er(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Er(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=mi(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ua),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ua)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(nn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ua),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ua),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(y(te),y(Pt),y(_P),y(K,8),y(vP,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Yv="cdk-high-contrast-black-on-white",Zv="cdk-high-contrast-white-on-black",Nd="cdk-high-contrast-active";let Xv=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Nd),t.remove(Yv),t.remove(Zv),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Nd),t.add(Yv)):2===i&&(t.add(Nd),t.add(Zv))}}}return n.\u0275fac=function(t){return new(t||n)(y(Pt),y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bP=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(Xv))},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[oP]]}),n})();class Qv{}const An="*";function eb(n,e=null){return{type:2,steps:n,options:e}}function zn(n){return{type:6,styles:n,offset:null}}function ib(n){Promise.resolve(null).then(n)}class js{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(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(){ib(()=>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}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class rb{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 t=0,i=0,r=0;const s=this.players.length;0==s?ib(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,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 t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const G=!1;function sb(n){return new S(3e3,G)}function iF(){return"undefined"!=typeof window&&void 0!==window.document}function Bd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Wn(n){switch(n.length){case 0:return new js;case 1:return n[0];default:return new rb(n)}}function ob(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let g=p,_=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),_){case"!":_=r[p];break;case An:_=s[p];break;default:_=e.normalizeStyleValue(p,g,_,o)}f[g]=_}),h||a.push(f),c=f,l=d}),o.length)throw function GP(n){return new S(3502,G)}();return a}function Vd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Hd(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Hd(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Hd(t,"destroy",n)))}}function Hd(n,e,t){const i=t.totalTime,s=jd(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function jd(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function yt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function ab(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let $d=(n,e)=>!1,lb=(n,e,t)=>[],cb=null;function Ud(n){const e=n.parentNode||n.host;return e===cb?null:e}(Bd()||"undefined"!=typeof Element)&&(iF()?(cb=(()=>document.documentElement)(),$d=(n,e)=>{for(;e;){if(e===n)return!0;e=Ud(e)}return!1}):$d=(n,e)=>n.contains(e),lb=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let yi=null,ub=!1;function db(n){yi||(yi=function sF(){return"undefined"!=typeof document?document.body:null}()||{},ub=!!yi.style&&"WebkitAppearance"in yi.style);let e=!0;return yi.style&&!function rF(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in yi.style,!e&&ub&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in yi.style)),e}const hb=$d,fb=lb;let pb=(()=>{class n{validateStyleProperty(t){return db(t)}matchesElement(t,i){return!1}containsElement(t,i){return hb(t,i)}getParentElement(t){return Ud(t)}query(t,i,r){return fb(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new js(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),zd=(()=>{class n{}return n.NOOP=new pb,n})();const Wd="ng-enter",Wa="ng-leave",Ga="ng-trigger",qa=".ng-trigger",mb="ng-animating",Gd=".ng-animating";function vi(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qd(parseFloat(e[1]),e[2])}function qd(n,e){return"s"===e?1e3*n:n}function Ka(n,e,t){return n.hasOwnProperty("duration")?n:function lF(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(sb()),{duration:0,delay:0,easing:""};r=qd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=qd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function CP(){return new S(3100,G)}()),a=!0),s<0&&(e.push(function SP(){return new S(3101,G)}()),a=!0),a&&e.splice(l,0,sb())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Tr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Gn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Tr(n,t);return t}function yb(n,e,t){return t?e+":"+t+";":""}function vb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=yb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=yb(0,dF(t),n.style[t]));n.setAttribute("style",e)}function gn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Yd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Bd()&&vb(n))}function bi(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Yd(t);n.style[i]=""}),Bd()&&vb(n))}function $s(n){return Array.isArray(n)?1==n.length?n[0]:eb(n):n}const Kd=new RegExp("{{\\s*(.+?)\\s*}}","g");function bb(n){let e=[];if("string"==typeof n){let t;for(;t=Kd.exec(n);)e.push(t[1]);Kd.lastIndex=0}return e}function Ya(n,e,t){const i=n.toString(),r=i.replace(Kd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function MP(n){return new S(3003,G)}()),a=""),a.toString()});return r==i?n:r}function Za(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const uF=/-+([a-z0-9])/g;function Yd(n){return n.replace(uF,(...e)=>e[1].toUpperCase())}function dF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function vt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function IP(n){return new S(3004,G)}()}}function wb(n,e){return window.getComputedStyle(n)[e]}function _F(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function yF(n,e,t){if(":"==n[0]){const l=function vF(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function $P(n){return new S(3016,G)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function jP(n){return new S(3015,G)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Eb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Eb(o,r))}(i,t,e)):t.push(n),t}const el=new Set(["true","1"]),tl=new Set(["false","0"]);function Eb(n,e){const t=el.has(n)||tl.has(n),i=el.has(e)||tl.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?el.has(n):tl.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?el.has(e):tl.has(e)),o&&a}}const bF=new RegExp("s*:selfs*,?","g");function Zd(n,e,t,i){return new wF(n).build(e,t,i)}class wF{constructor(e){this._driver=e}build(e,t,i){const r=new CF(t);this._resetContextStyleTimingState(r);const s=vt(this,$s(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function xP(){return new S(3006,G)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function OP(){return new S(3007,G)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(nl(a)){const l=a;Object.keys(l).forEach(c=>{bb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Za(s.values()),t.errors.push(function RP(n,e){return new S(3008,G)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=vt(this,$s(e.animation),t);return{type:1,matchers:_F(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:wi(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>vt(this,i,t)),options:wi(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=vt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:wi(e.options)}}visitAnimate(e,t){const i=function TF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Xd(Ka(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Xd(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Ka(t,e);return Xd(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:zn({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=zn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==An?i.push(o):t.errors.push(function kP(n){return new S(3002,G)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(nl(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function PP(n,e,t,i,r){return new S(3010,G)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function cF(n,e,t){const i=e.params||{},r=bb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function TP(n){return new S(3001,G)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function FP(){return new S(3011,G)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(v=>{const m=this._makeStyleAst(v,t);let w=null!=m.offset?m.offset:function SF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(nl(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(nl(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),M=0;return null!=w&&(s++,M=m.offset=w),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),m});l&&t.errors.push(function NP(){return new S(3012,G)}()),a&&t.errors.push(function LP(){return new S(3200,G)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function BP(){return new S(3202,G)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,_=g.duration;return u.forEach((v,m)=>{const w=h>0?m==f?1:h*m:o[m],M=w*_;t.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(v,t),v.offset=w,i.styles.push(v)}),i}visitReference(e,t){return{type:8,animation:vt(this,$s(e.animation),t),options:wi(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:wi(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:wi(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function EF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(bF,"")),n=n.replace(/@\*/g,qa).replace(/@\w+/g,t=>qa+"-"+t.substr(1)).replace(/:animating/g,Gd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,yt(t.collectedStyles,t.currentQuerySelector,{});const a=vt(this,$s(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:wi(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function VP(){return new S(3013,G)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ka(e.timings,t.errors,!0);return{type:12,animation:vt(this,$s(e.animation),t),timings:i,options:null}}}class CF{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function nl(n){return!Array.isArray(n)&&"object"==typeof n}function wi(n){return n?(n=Tr(n)).params&&(n.params=function DF(n){return n?Tr(n):null}(n.params)):n={},n}function Xd(n,e,t){return{duration:n,delay:e,easing:t}}function Qd(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class il{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const AF=new RegExp(":enter","g"),OF=new RegExp(":leave","g");function Jd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new RF).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class RF{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new il;const d=new eh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),vt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const g=h[p];if(g.element===t){f=g;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Qd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?vi(i.duration):null,a=null!=i.delay?vi(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),vt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=rl);const o=vi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>vt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?vi(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),vt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Ka(t.params?Ya(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?vi(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=rl);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),vt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;vt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const rl={};class eh{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new sl(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=vi(i.duration)),null!=i.delay&&(r.delay=vi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ya(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new eh(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=rl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new kF(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(AF,"."+this._enterClassName)).replace(OF,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function HP(n){return new S(3014,G)}()),a}}class sl{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new sl(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||An,this._currentKeyframe[t]=An}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function PF(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=An})):Gn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Ya(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:An),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Gn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==An&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Za(e.values()):[],o=t.size?Za(t.values()):[];if(i){const a=r[0],l=Tr(a);a.offset=0,l.offset=1,r=[a,l]}return Qd(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class kF extends sl{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Gn(e[0],!1);l.offset=0,s.push(l);const c=Gn(e[0],!1);c.offset=Sb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Gn(e[d],!1);h.offset=Sb((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Qd(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Sb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class th{}class FF extends th{normalizePropertyName(e,t){return Yd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(NF[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function AP(n,e){return new S(3005,G)}())}return o+s}}const NF=(()=>function LF(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Tb(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const nh={};class Mb{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function BF(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||nh,p=this.buildStyles(i,a&&a.params||nh,d),g=l&&l.params||nh,_=this.buildStyles(r,g,d),v=new Set,m=new Map,w=new Map,M="void"===r,V={params:Object.assign(Object.assign({},h),g)},de=u?[]:Jd(e,t,this.ast.animation,s,o,p,_,V,c,d);let me=0;if(de.forEach(wt=>{me=Math.max(wt.duration+wt.delay,me)}),d.length)return Tb(t,this._triggerName,i,r,M,p,_,[],[],m,w,me,d);de.forEach(wt=>{const Et=wt.element,Fr=yt(m,Et,{});wt.preStyleProps.forEach(rn=>Fr[rn]=!0);const On=yt(w,Et,{});wt.postStyleProps.forEach(rn=>On[rn]=!0),Et!==t&&v.add(Et)});const bt=Za(v.values());return Tb(t,this._triggerName,i,r,M,p,_,de,bt,m,w,me)}}class VF{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Tr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Ya(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class jF{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new VF(r.style,r.options&&r.options.params||{},i)}),Ib(this.states,"true","1"),Ib(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Mb(e,r,this.states))}),this.fallbackTransition=function $F(n,e,t){return new Mb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function Ib(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const UF=new il;class zF{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Zd(this._driver,t,i,[]);if(i.length)throw function qP(n){return new S(3503,G)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=ob(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Jd(this._driver,t,s,Wd,Wa,{},{},i,UF,r),o.forEach(u=>{const d=yt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function KP(){return new S(3300,G)}()),o=[]),r.length)throw function YP(n){return new S(3504,G)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,An)})});const c=Wn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function ZP(n){return new S(3301,G)}();return t}listen(e,t,i,r){const s=jd(t,"","","");return Vd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Ab="ng-animate-queued",ih="ng-animate-disabled",YF=[],xb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nt="__ng_removed";class rh{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function eN(n){return null!=n?n:null}(i?e.value:e),i){const s=Tr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Us="void",sh=new rh(Us);class XF{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Lt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function XP(n,e){return new S(3302,G)}();if(null==i||0==i.length)throw function QP(n){return new S(3303,G)}();if(!function tN(n){return"start"==n||"done"==n}(i))throw function JP(n,e){return new S(3400,G)}();const s=yt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=yt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Lt(e,Ga),Lt(e,Ga+"-"+t),a[t]=sh),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function eF(n){return new S(3401,G)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new oh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Lt(e,Ga),Lt(e,Ga+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new rh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=sh),c.value!==Us&&l.value===c.value){if(!function rN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],_=s.matchStyles(l.value,l.params,g),v=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{bi(e,_),gn(e,v)})}return}const h=yt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Lt(e,Ab),o.onStart(()=>{Mr(e,Ab)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const _=this._engine.playersByElement.get(e);if(_){let v=_.indexOf(o);v>=0&&_.splice(v,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,qa,!0);i.forEach(r=>{if(r[Nt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,Us,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Wn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||sh,u=new rh(Us),d=new oh(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Nt];(!s||s===xb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Lt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=jd(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Vd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class QF{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new XF(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(ol(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!ol(t))return;const s=t[Nt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Lt(e,ih)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Mr(e,ih))}removeNode(e,t,i,r){if(ol(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Nt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return ol(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,qa,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Gd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Wn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Nt];if(i&&i.setForRemoval){if(e[Nt]=xb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(ih))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Lt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Wn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function tF(n){return new S(3402,G)}()}_flushAnimations(e,t){const i=new il,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const O=this.driver.query(T,".ng-animate-queued",!0);for(let P=0;P<O.length;P++)u.add(O[P])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=kb(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((T,O)=>{const P=Wd+g++;p.set(O,P),T.forEach(X=>Lt(X,P))});const _=[],v=new Set,m=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const O=this.collectedLeaveElements[T],P=O[Nt];P&&P.setForRemoval&&(_.push(O),v.add(O),P.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(X=>v.add(X)):m.add(O))}const w=new Map,M=kb(h,Array.from(v));M.forEach((T,O)=>{const P=Wa+g++;w.set(O,P),T.forEach(X=>Lt(X,P))}),e.push(()=>{f.forEach((T,O)=>{const P=p.get(O);T.forEach(X=>Mr(X,P))}),M.forEach((T,O)=>{const P=w.get(O);T.forEach(X=>Mr(X,P))}),_.forEach(T=>{this.processLeaveNode(T)})});const V=[],de=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(P=>{const X=P.player,Ve=P.element;if(V.push(X),this.collectedEnterElements.length){const it=Ve[Nt];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(P.triggerName)){const Si=it.previousTriggersValues.get(P.triggerName),Qn=this.statesByElement.get(P.element);Qn&&Qn[P.triggerName]&&(Qn[P.triggerName].value=Si)}return void X.destroy()}}const mn=!d||!this.driver.containsElement(d,Ve),Dt=w.get(Ve),Xn=p.get(Ve),_e=this._buildInstruction(P,i,Xn,Dt,mn);if(_e.errors&&_e.errors.length)return void de.push(_e);if(mn)return X.onStart(()=>bi(Ve,_e.fromStyles)),X.onDestroy(()=>gn(Ve,_e.toStyles)),void r.push(X);if(P.isFallbackTransition)return X.onStart(()=>bi(Ve,_e.fromStyles)),X.onDestroy(()=>gn(Ve,_e.toStyles)),void r.push(X);const Uw=[];_e.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||Uw.push(it)}),_e.timelines=Uw,i.append(Ve,_e.timelines),o.push({instruction:_e,player:X,element:Ve}),_e.queriedElements.forEach(it=>yt(a,it,[]).push(X)),_e.preStyleProps.forEach((it,Si)=>{const Qn=Object.keys(it);if(Qn.length){let Ti=l.get(Si);Ti||l.set(Si,Ti=new Set),Qn.forEach(xh=>Ti.add(xh))}}),_e.postStyleProps.forEach((it,Si)=>{const Qn=Object.keys(it);let Ti=c.get(Si);Ti||c.set(Si,Ti=new Set),Qn.forEach(xh=>Ti.add(xh))})});if(de.length){const T=[];de.forEach(O=>{T.push(function nF(n,e){return new S(3505,G)}())}),V.forEach(O=>O.destroy()),this.reportError(T)}const me=new Map,bt=new Map;o.forEach(T=>{const O=T.element;i.has(O)&&(bt.set(O,O),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,me))}),r.forEach(T=>{const O=T.element;this._getPreviousPlayers(O,!1,T.namespaceId,T.triggerName,null).forEach(X=>{yt(me,O,[]).push(X),X.destroy()})});const wt=_.filter(T=>Fb(T,l,c)),Et=new Map;Rb(Et,this.driver,m,c,An).forEach(T=>{Fb(T,l,c)&&wt.push(T)});const On=new Map;f.forEach((T,O)=>{Rb(On,this.driver,new Set(T),l,"!")}),wt.forEach(T=>{const O=Et.get(T),P=On.get(T);Et.set(T,Object.assign(Object.assign({},O),P))});const rn=[],Nr=[],Lr={};o.forEach(T=>{const{element:O,player:P,instruction:X}=T;if(i.has(O)){if(u.has(O))return P.onDestroy(()=>gn(O,X.toStyles)),P.disabled=!0,P.overrideTotalTime(X.totalTime),void r.push(P);let Ve=Lr;if(bt.size>1){let Dt=O;const Xn=[];for(;Dt=Dt.parentNode;){const _e=bt.get(Dt);if(_e){Ve=_e;break}Xn.push(Dt)}Xn.forEach(_e=>bt.set(_e,Ve))}const mn=this._buildAnimation(P.namespaceId,X,me,s,On,Et);if(P.setRealPlayer(mn),Ve===Lr)rn.push(P);else{const Dt=this.playersByElement.get(Ve);Dt&&Dt.length&&(P.parentPlayer=Wn(Dt)),r.push(P)}}else bi(O,X.fromStyles),P.onDestroy(()=>gn(O,X.toStyles)),Nr.push(P),u.has(O)&&r.push(P)}),Nr.forEach(T=>{const O=s.get(T.element);if(O&&O.length){const P=Wn(O);T.setRealPlayer(P)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const O=_[T],P=O[Nt];if(Mr(O,Wa),P&&P.hasAnimation)continue;let X=[];if(a.size){let mn=a.get(O);mn&&mn.length&&X.push(...mn);let Dt=this.driver.query(O,Gd,!0);for(let Xn=0;Xn<Dt.length;Xn++){let _e=a.get(Dt[Xn]);_e&&_e.length&&X.push(..._e)}}const Ve=X.filter(mn=>!mn.destroyed);Ve.length?nN(this,O,Ve):this.processLeaveNode(O)}return _.length=0,rn.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const O=this.players.indexOf(T);this.players.splice(O,1)}),T.play()}),rn}elementContainsData(e,t){let i=!1;const r=t[Nt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Us;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=yt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}bi(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;u.add(g);const _=g[Nt];if(_&&_.removedBeforeQueried)return new js(p.duration,p.delay);const v=g!==l,m=function iN(n){const e=[];return Pb(n,e),e}((i.get(g)||YF).map(me=>me.getRealPlayer())).filter(me=>!!me.element&&me.element===g),w=s.get(g),M=o.get(g),V=ob(0,this._normalizer,0,p.keyframes,w,M),de=this._buildPlayer(p,V,m);if(p.subTimeline&&r&&d.add(g),v){const me=new oh(e,a,g);me.setRealPlayer(de),c.push(me)}return de});c.forEach(p=>{yt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function JF(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Lt(p,mb));const f=Wn(h);return f.onDestroy(()=>{u.forEach(p=>Mr(p,mb)),gn(l,t.toStyles)}),d.forEach(p=>{yt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new js(e.duration,e.delay)}}class oh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new js,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>Vd(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){yt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ol(n){return n&&1===n.nodeType}function Ob(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function Rb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(Ob(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Nt]=ZF,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Ob(l,s[a++])),o}function kb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Lt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Mr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function nN(n,e,t){Wn(t).onDone(()=>n.processLeaveNode(e))}function Pb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof rb?Pb(i.players,e):e.push(i)}}function Fb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class al{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new QF(e,t,i),this._timelineEngine=new zF(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Zd(this._driver,s,l,[]);if(l.length)throw function WP(n,e){return new S(3404,G)}();a=function HF(n,e,t){return new jF(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=ab(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=ab(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&gn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(gn(this._element,this._initialStyles),this._endStyles&&(gn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(bi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bi(this._element,this._endStyles),this._endStyles=null),gn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ah(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];aN(r)&&(e=e||{},e[r]=n[r])}return e}function aN(n){return"display"===n||"position"===n}class Nb{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:wb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class lN{validateStyleProperty(e){return db(e)}matchesElement(e,t){return!1}containsElement(e,t){return hb(e,t)}getParentElement(e){return Ud(e)}query(e,t,i){return fb(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof Nb);(function hF(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function fF(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=wb(n,l)})}}return e}(e,t=t.map(h=>Gn(h,!1)),c);const d=function sN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ah(e[0]),e.length>1&&(i=ah(e[e.length-1]))):e&&(t=ah(e)),t||i?new oN(n,t,i):null}(e,t);return new Nb(e,t,l,d)}}let cN=(()=>{class n extends Qv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Ut.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?eb(t):t;return Lb(this._renderer,null,i,"register",[r]),new uN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(Ts),y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class uN extends class wP{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new dN(this._id,e,t||{},this._renderer)}}class dN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Lb(this._renderer,this.element,this.id,e,t)}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(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Lb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Bb="@.disabled";let hN=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Vb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new fN(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(y(Ts),y(al),y(te))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Vb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==Bb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class fN extends Vb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Bb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function pN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function gN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let mN=(()=>{class n extends al{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(zd),y(th))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ir=new x("AnimationModuleType"),Hb=[{provide:Qv,useClass:cN},{provide:th,useFactory:function _N(){return new FF}},{provide:al,useClass:mN},{provide:Ts,useFactory:function yN(n,e,t){return new hN(n,e,t)},deps:[xa,al,te]}],jb=[{provide:zd,useFactory:()=>new lN},{provide:Ir,useValue:"BrowserAnimations"},...Hb],vN=[{provide:zd,useClass:pb},{provide:Ir,useValue:"NoopAnimations"},...Hb];let bN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?vN:jb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:jb,imports:[cv]}),n})();const EN=new x("mat-sanity-checks",{providedIn:"root",factory:function wN(){return!0}});let qn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Id()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(Xv),y(EN,8),y(K))},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[Hs],Hs]}),n})();function DN(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Oa(e)}}}function Ub(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function CN(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oa(e)}}}class TN{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const zb={enterDuration:225,exitDuration:150},lh=Na({passive:!0}),Wb=["mousedown","touchstart"],Gb=["mouseup","mouseleave","touchend","touchcancel"];class IN{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Er(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},zb),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function xN(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function AN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new TN(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},zb),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Er(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Wb))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Gb),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=Wv(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Gv(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,lh)})})}_removeTriggerEvents(){this._triggerElement&&(Wb.forEach(e=>{this._triggerElement.removeEventListener(e,this,lh)}),this._pointerUpEventsRegistered&&Gb.forEach(e=>{this._triggerElement.removeEventListener(e,this,lh)}))}}const ON=new x("mat-ripple-global-options");let qb=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new IN(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(te),E(Pt),E(ON,8),E(Ir,8))},n.\u0275dir=Le({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Sn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),RN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[qn],qn]}),n})();const kN=["mat-button",""],PN=["*"],NN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],LN=Ub(DN(CN(class{constructor(n){this._elementRef=n}})));let BN=(()=>{class n extends LN{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of NN)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(Kv),E(Ir,8))},n.\u0275cmp=ei({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&ia(qb,5),2&t){let r;na(r=ra())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(gt("disabled",i.disabled||null),Sn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[er],attrs:kN,ngContentSelectors:PN,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Go(),Te(0,"span",0),ys(1),Me(),_s(2,"span",1)(3,"span",2)),2&t&&(q(2),Sn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),U("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[qb],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),VN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[RN,qn],qn]}),n})();function cl(n,e){return new oe(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=bl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function xn(){}function Bt(n,e,t){return function(r){return r.lift(new jN(n,e,t))}}class jN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new $N(e,this.nextOrObserver,this.error,this.complete))}}class $N extends he{constructor(e,t,i,r){super(e),this._tapNext=xn,this._tapError=xn,this._tapComplete=xn,this._tapError=i||xn,this._tapComplete=r||xn,Br(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||xn,this._tapError=t.error||xn,this._tapComplete=t.complete||xn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Kb(n){return function(t){const i=new UN(n),r=t.lift(i);return i.caught=r}}class UN{constructor(e){this.selector=e}call(e,t){return t.subscribe(new zN(e,this.selector,this.caught))}}class zN extends jr{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Hr(this);this.add(i);const r=$r(t,i);r!==i&&this.add(r)}}}class GN{constructor(e){this.callback=e}call(e,t){return t.subscribe(new qN(e,this.callback))}}class qN extends he{constructor(e,t){super(e),this.add(new ie(t))}}class YN{}class Kn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Kn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Kn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Kn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class ZN{encodeKey(e){return Yb(e)}encodeValue(e){return Yb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const QN=/%(\d[a-f0-9])/gi,JN={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Yb(n){return encodeURIComponent(n).replace(QN,(e,t)=>{var i;return null!==(i=JN[t])&&void 0!==i?i:e})}function Zb(n){return`${n}`}class Yn{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ZN,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function XN(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Yn({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Zb(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Zb(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class e1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Xb(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Qb(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Jb(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Ws{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function t1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Kn),this.context||(this.context=new e1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Yn,this.urlWithParams=t}serializeBody(){return null===this.body?null:Xb(this.body)||Qb(this.body)||Jb(this.body)||function n1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Yn?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Jb(this.body)?null:Qb(this.body)?this.body.type||null:Xb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Yn?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Ws(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class ch extends class r1{constructor(e,t=200,i="OK"){this.headers=e.headers||new Kn,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ze.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ch({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function uh(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let tw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Ws)s=t;else{let l,c;l=r.headers instanceof Kn?r.headers:new Kn(r.headers),r.params&&(c=r.params instanceof Yn?r.params:new Yn({fromObject:r.params})),s=new Ws(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=kt(s).pipe(function KN(n,e){return no(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Ws||"events"===r.observe)return o;const a=o.pipe(Fa(l=>l instanceof ch));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(He(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(He(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(He(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(He(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Yn).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,uh(r,i))}post(t,i,r={}){return this.request("POST",t,uh(r,i))}put(t,i,r={}){return this.request("PUT",t,uh(r,i))}}return n.\u0275fac=function(t){return new(t||n)(y(YN))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const o1=["*"];let ul;function Gs(n){var e;return(null===(e=function a1(){if(void 0===ul&&(ul=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(ul=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return ul}())||void 0===e?void 0:e.createHTML(n))||n}function nw(n){return Error(`Unable to find icon with the name "${n}"`)}function iw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function rw(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ei{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let dl=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new Ei(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(Q.HTML,r);if(!o)throw rw(r);const a=Gs(o);return this._addSvgIconConfig(t,i,new Ei("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Ei(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(Q.HTML,i);if(!s)throw rw(i);const o=Gs(s);return this._addSvgIconSetConfig(t,new Ei("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(Q.RESOURCE_URL,t);if(!i)throw iw(t);const r=this._cachedIconsByUrl.get(i);return r?kt(hl(r)):this._loadSvgIconFromConfig(new Ei(t,null)).pipe(Bt(s=>this._cachedIconsByUrl.set(i,s)),He(s=>hl(s)))}getNamedSvgIcon(t,i=""){const r=sw(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):Nv(nw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?kt(hl(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(He(i=>hl(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?kt(r):function HN(...n){if(1===n.length){const e=n[0];if(Ii(e))return cl(e,null);if(_l(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return cl(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return cl(n=1===n.length&&Ii(n[0])?n[0]:n,null).pipe(He(t=>e(...t)))}return cl(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Kb(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Q.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),kt(null)})))).pipe(He(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw nw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Bt(i=>t.svgText=i),He(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?kt(null):this._fetchIcon(t).pipe(Bt(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Gs("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Gs("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function l1(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(Q.RESOURCE_URL,r);if(!a)throw iw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(He(u=>Gs(u)),function WN(n){return e=>e.lift(new GN(n))}(()=>this._inProgressUrlFetches.delete(a)),zh());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(sw(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return u1(s)?new Ei(s.url,null,s.options):new Ei(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(y(tw,8),y(Cd),y(K,8),y(Bn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hl(n){return n.cloneNode(!0)}function sw(n,e){return n+":"+e}function u1(n){return!(!n.url||!n.options)}const d1=Ub(class{constructor(n){this._elementRef=n}}),h1=new x("mat-icon-location",{providedIn:"root",factory:function f1(){const n=Ao(K),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),ow=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],p1=ow.map(n=>`[${n}]`).join(", "),g1=/^url\(['"]?#(.*?)['"]?\)$/;let m1=(()=>{class n extends d1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=ie.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Oa(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(p1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)ow.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(g1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Cr(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(dl),function So(n){return function bD(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Df(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Re(),n)}("aria-hidden"),E(h1),E(Bn))},n.\u0275cmp=ei({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(gt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Sn("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[er],ngContentSelectors:o1,decls:1,vars:0,template:function(t,i){1&t&&(Go(),ys(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[qn],qn]}),n})();class y1 extends he{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class v1 extends he{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function b1(n,e,t,i,r=new v1(n,t,i)){if(!r.closed)return e instanceof oe?e.subscribe(r):yl(e)(r)}const aw={};class E1{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new D1(e,this.resultSelector))}}class D1 extends y1{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(aw),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(b1(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===aw?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function dh(...n){return function C1(){return $h(1)}()(kt(...n))}class T1{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new M1(e,this.dueTime,this.scheduler))}}class M1 extends he{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(I1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function I1(n){n.debouncedNext()}function A1(...n){const e=n[n.length-1];return Ai(e)?(n.pop(),t=>dh(n,t,e)):t=>dh(n,t)}const lw=new Set;let Ar,x1=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):R1}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function O1(n){if(!lw.has(n))try{Ar||(Ar=document.createElement("style"),Ar.setAttribute("type","text/css"),document.head.appendChild(Ar)),Ar.sheet&&(Ar.sheet.insertRule(`@media ${n} {body{ }}`,0),lw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Pt))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function R1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let k1=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Oe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return cw(Ra(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function w1(...n){let e,t;return Ai(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Ii(n[0])&&(n=n[0]),wl(n,t).lift(new E1(e))}(cw(Ra(t)).map(o=>this._registerQuery(o).observable));return s=dh(s.pipe(Cr(1)),s.pipe(Vv(1),function S1(n,e=Sd){return t=>t.lift(new T1(n,e))}(0))),s.pipe(He(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new oe(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(A1(i),He(({matches:o})=>({query:t,matches:o})),nn(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(y(x1),y(te))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const F1=["tooltip"],uw="tooltip-panel",dw=Na({passive:!0}),hw=new x("mat-tooltip-scroll-strategy"),V1={provide:hw,deps:[Ba],useFactory:function B1(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},H1=new x("mat-tooltip-default-options",{providedIn:"root",factory:function j1(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let $1=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Oe,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(nn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Oa(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=fv(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=fv(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(nn(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,dw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Tv(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(nn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var t;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(nn(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${uw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(nn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(nn(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(nn(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!function Jk(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(t=this._defaultOptions)||void 0===t?void 0:t.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Cr(1),nn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${uw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{var r;const s=i.relatedTarget;(!s||!(null===(r=this._overlayRef)||void 0===r?void 0:r.overlayElement.contains(s)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,dw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function Jg(){throw new Error("invalid")}()},n.\u0275dir=Le({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),U1=(()=>{class n extends $1{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=W1}}return n.\u0275fac=function(t){return new(t||n)(E(Ba),E(Ke),E(Dv),E(_t),E(te),E(Pt),E(cP),E(Kv),E(hw),E(Ev,8),E(H1,8),E(K))},n.\u0275dir=Le({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[er]}),n})(),z1=(()=>{class n{constructor(t,i){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Oe,this._animationsDisabled="NoopAnimations"===i}show(t){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(t?s:r),i.classList.add(t?r:s),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}return n.\u0275fac=function(t){return new(t||n)(E(wr),E(Ir,8))},n.\u0275dir=Le({type:n}),n})(),W1=(()=>{class n extends z1{constructor(t,i,r){super(t,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(t){return new(t||n)(E(wr),E(k1),E(Ir,8))},n.\u0275cmp=ei({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,i){if(1&t&&ia(F1,7),2&t){let r;na(r=ra())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){1&t&&mt("mouseleave",function(s){return i._handleMouseLeave(s)}),2&t&&vs("zoom",i.isVisible()?1:null)},features:[er],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,i){if(1&t&&(Te(0,"div",0,1),mt("animationend",function(s){return i._handleAnimationEnd(s)}),function x_(n,e){const t=Y();let i;const r=n+20;t.firstCreatePass?(i=function yI(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=si(i.type)),o=Rn(E);try{const a=wo(!1),l=s();return wo(a),function NS(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,b(),r,l),l}finally{Rn(o)}}(2,"async"),ws(3),Me()),2&t){let r;Sn("mat-tooltip-handset",null==(r=O_(2,4,i._isHandset))?null:r.matches),U("ngClass",i.tooltipClass),q(3),fr(i.message)}},directives:[cd],pipes:[Zy],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),G1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:[V1],imports:[[bP,_d,Ek,qn],qn,Ad]}),n})(),q1=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const K1=new oe(xn);function fw(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function qs(n){return"img"===n.nodeName.toLowerCase()}function pw(n,e,t){return qs(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function hh(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const X1=hh("defaultImage"),gw=hh("lazyLoad"),Q1=hh("errorImage");function fh(n){return(e,t,i)=>{qs(e)&&fw(e)&&n(e),t&&pw(e,t,i)}}const J1=fh(X1),eL=fh(gw),tL=fh(Q1);function mw(n,e){n.className=n.className.replace(e,"")}function ph(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class _w extends class rL extends class nL{constructor(){this.navigator=function Z1(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){J1(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&ph(e.element,"ng-lazyloading"),function iL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&mw(e.element,"ng-lazyloaded")}finally(e){ph(e.element,"ng-lazyloaded"),mw(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return qs(t)&&fw(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],gw(o),pw(o,r,i)):(o=new Image,qs(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),qs(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;tL(i,s,r),ph(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;eL(i,e,r)}isDisabled(){return function jx(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new Oe,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return kt({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),oe.create(s=>{const o=this.intersectionSubject.pipe(Fa(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const gh=new x("LazyLoadImageHooks");let oL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new Ye,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new Lv,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(Bt(t=>this.hooks.onAttributeChange(t)),Bt(t=>t.onStateChange.emit({reason:"setup"})),Bt(t=>this.hooks.setup(t)),kd(t=>t.imagePath?this.hooks.getObservable(t).pipe(function sL(n,e){return t=>t.pipe(Bt(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),Fa(i=>n.isVisible(i,e)),Cr(1),Bt(()=>e.onStateChange.emit({reason:"start-loading"})),no(()=>n.loadImage(e)),Bt(()=>e.onStateChange.emit({reason:"mount-image"})),Bt(i=>n.setLoadedImage(i,e)),Bt(()=>e.onStateChange.emit({reason:"loading-succeeded"})),He(()=>!0),Kb(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),kt(!1))),Bt(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function Y1(){return K1}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(Cr(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(te),E(la),E(gh))},n.\u0275dir=Le({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Fi]}),n})(),aL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:[{provide:gh,useClass:_w}]}),n})();class Vt{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?Vt.empty:new Vt(t,i,r,s)}static fromWindow(e){return new Vt(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new Vt(t,i,r,s):Vt.empty}}Vt.empty=new Vt(0,0,0,0);var Ks="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,lL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Ks&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),hL=Ks&&window.Promise?function cL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function uL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},lL))}};function yw(n){return n&&"[object Function]"==={}.toString.call(n)}function Di(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function mh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function Ys(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=Di(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:Ys(mh(n))}function vw(n){return n&&n.referenceNode?n.referenceNode:n}var bw=Ks&&!(!window.MSInputMethodContext||!document.documentMode),ww=Ks&&/MSIE 10/.test(navigator.userAgent);function Or(n){return 11===n?bw:10===n?ww:bw||ww}function Rr(n){if(!n)return document.documentElement;for(var e=Or(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===Di(t,"position")?Rr(t):t:n?n.ownerDocument.documentElement:document.documentElement}function _h(n){return null!==n.parentNode?_h(n.parentNode):n}function fl(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function fL(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||Rr(n.firstElementChild)===n)}(o)?o:Rr(o);var a=_h(n);return a.host?fl(a.host,e):fl(n,_h(e).host)}function kr(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function pL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=kr(e,"top"),r=kr(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function Ew(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function Dw(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],Or(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function Cw(n){var e=n.body,t=n.documentElement,i=Or(10)&&getComputedStyle(t);return{height:Dw("Height",e,t,i),width:Dw("Width",e,t,i)}}var gL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},mL=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Pr=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},Ht=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function Zn(n){return Ht({},n,{right:n.left+n.width,bottom:n.top+n.height})}function yh(n){var e={};try{if(Or(10)){e=n.getBoundingClientRect();var t=kr(n,"top"),i=kr(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?Cw(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=Di(n);l-=Ew(u,"x"),c-=Ew(u,"y"),r.width-=l,r.height-=c}return Zn(r)}function vh(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Or(10),r="HTML"===e.nodeName,s=yh(n),o=yh(e),a=Ys(n),l=Di(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Zn({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=pL(d,e)),d}function _L(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=vh(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:kr(t),a=e?0:kr(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return Zn(l)}function Sw(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Di(n,"position"))return!0;var t=mh(n);return!!t&&Sw(t)}function Tw(n){if(!n||!n.parentElement||Or())return document.documentElement;for(var e=n.parentElement;e&&"none"===Di(e,"transform");)e=e.parentElement;return e||document.documentElement}function bh(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?Tw(n):fl(n,vw(e));if("viewport"===i)s=_L(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Ys(mh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=vh(a,o,r);if("HTML"!==a.nodeName||Sw(o))s=l;else{var c=Cw(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function yL(n){return n.width*n.height}function Mw(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=bh(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return Ht({key:h},a[h],{area:yL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function Iw(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?Tw(e):fl(e,vw(t));return vh(t,r,i)}function Aw(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function pl(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function xw(n,e,t){t=t.split("-")[0];var i=Aw(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[pl(a)],r}function Zs(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function Ow(n,e,t){var i=void 0===t?n:n.slice(0,function vL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=Zs(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&yw(s)&&(e.offsets.popper=Zn(e.offsets.popper),e.offsets.reference=Zn(e.offsets.reference),e=s(e,r))}),e}function bL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=Iw(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=Mw(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=xw(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=Ow(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function Rw(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function wh(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function wL(){return this.state.isDestroyed=!0,Rw(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[wh("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function kw(n){var e=n.ownerDocument;return e?e.defaultView:window}function Pw(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||Pw(Ys(s.parentNode),e,t,i),i.push(s)}function EL(n,e,t,i){t.updateBound=i,kw(n).addEventListener("resize",t.updateBound,{passive:!0});var r=Ys(n);return Pw(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function DL(){this.state.eventsEnabled||(this.state=EL(this.reference,0,this.state,this.scheduleUpdate))}function SL(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function CL(n,e){return kw(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Eh(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Dh(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Eh(e[t])&&(i="px"),n.style[t]=e[t]+i})}var xL=Ks&&/Firefox/i.test(navigator.userAgent);function Fw(n,e,t){var i=Zs(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var Nw=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ch=Nw.slice(3);function Lw(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Ch.indexOf(n),i=Ch.slice(t+1).concat(Ch.slice(0,t));return e?i.reverse():i}var UL={shift:{order:100,enabled:!0,fn:function HL(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:Pr({},l,s[l]),end:Pr({},l,s[l]+s[c]-o[c])};n.offsets.popper=Ht({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function BL(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=Eh(+t)?[+t,0]:function LL(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(Zs(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,g){return""===p[p.length-1]&&-1!==["+","-"].indexOf(g)?(p[p.length-1]=g,f=!0,p):f?(p[p.length-1]+=g,f=!1,p):p.concat(g)},[]).map(function(p){return function NL(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?Zn("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){Eh(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function VL(n,e){var t=e.boundariesElement||Rr(n.instance.popper);n.instance.reference===t&&(t=Rr(t));var i=wh("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=bh(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),Pr({},f,p)},secondary:function(f){var p="right"===f?"left":"top",g=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(g=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),Pr({},p,g)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=Ht({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function FL(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function RL(n,e){var t;if(!Fw(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Aw(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=Zn(n.offsets.popper);var g=a[d]+a[c]/2-p/2,_=Di(n.instance.popper),v=parseFloat(_["margin"+u]),m=parseFloat(_["border"+u+"Width"]),w=g-n.offsets.popper[d]-v-m;return w=Math.max(Math.min(o[c]-p,w),0),n.arrowElement=i,n.offsets.arrow=(Pr(t={},d,Math.round(w)),Pr(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function PL(n,e){if(Rw(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=bh(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=pl(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=Lw(i);break;case"counterclockwise":o=Lw(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=pl(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),g=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&_,m=-1!==["top","bottom"].indexOf(i),V=!!e.flipVariations&&(m&&"start"===s&&f||m&&"end"===s&&p||!m&&"start"===s&&g||!m&&"end"===s&&_)||!!e.flipVariationsByContent&&(m&&"start"===s&&p||m&&"end"===s&&f||!m&&"start"===s&&_||!m&&"end"===s&&g);(h||v||V)&&(n.flipped=!0,(h||v)&&(i=o[l+1]),V&&(s=function kL(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=Ht({},n.offsets.popper,xw(n.instance.popper,n.offsets.reference,n.placement)),n=Ow(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function $L(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=pl(e),n.offsets.popper=Zn(r),n}},hide:{order:800,enabled:!0,fn:function jL(n){if(!Fw(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=Zs(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function OL(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=Zs(n.instance.modifiers,function(w){return"applyStyle"===w.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,g,o=void 0!==s?s:e.gpuAcceleration,a=Rr(n.instance.popper),l=yh(a),c={position:r.position},u=function AL(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(v){return v},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,g=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:g(i.top),bottom:g(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!xL),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=wh("transform");if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var v="right"===h?-1:1;c[d]=g*("bottom"===d?-1:1),c[h]=p*v,c.willChange=d+", "+h}return n.attributes=Ht({},{"x-placement":n.placement},n.attributes),n.styles=Ht({},c,n.styles),n.arrowStyles=Ht({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function ML(n){return Dh(n.instance.popper,n.styles),function TL(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&Dh(n.arrowElement,n.arrowStyles),n},onLoad:function IL(n,e,t,i,r){var s=Iw(r,e,n,t.positionFixed),o=Mw(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),Dh(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},zL={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:UL},gl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};gL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=hL(this.update.bind(this)),this.options=Ht({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(Ht({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=Ht({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Ht({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&yw(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return mL(n,[{key:"update",value:function(){return bL.call(this)}},{key:"destroy",value:function(){return wL.call(this)}},{key:"enableEventListeners",value:function(){return DL.call(this)}},{key:"disableEventListeners",value:function(){return SL.call(this)}}]),n}();gl.Utils=("undefined"!=typeof window?window:global).PopperUtils,gl.placements=Nw,gl.Defaults=zL;const WL=gl,GL=["popperViewRef"];function qL(n,e){1&n&&(Te(0,"div",5),ys(1),Me()),2&n&&U("innerHTML",pe().text,Ap)}function KL(n,e){1&n&&(Te(0,"div",6),ys(1,1),Me())}const Bw=["*","*"];let Ci=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),Vw=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),Hw=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:Vw.Auto,boundariesElement:"",trigger:Ci.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new Ye,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Ci.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new WL(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(Jo),E(_t),E(wr))},n.\u0275cmp=ei({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&ia(GL,5),2&t){let r;na(r=ra())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&mt("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:Bw,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Go(Bw),Te(0,"div",0,1),ue(2,qL,2,1,"div",2),ue(3,KL,2,0,"div",3),_s(4,"div",4),Me()),2&t&&(vs("display",i.displayType)("opacity",i.opacity),Sn("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),U("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),gt("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),q(2),U("ngIf",i.text),q(1),U("ngIf",!i.text),q(1),vs("border-color",i.arrowColor),Sn("__force-arrow",i.arrowColor),U("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[pd,cd,ud],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Ne{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=Hw,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new Ye,this.popperOnHidden=new Ye,this.popperOnUpdate=new Ye,Ne.baseOptions=Object.assign({},Ne.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Ci.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Ci.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Ci.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Ci.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Ne.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Ne.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Ne.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Ne.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Ne.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Ne.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Ne.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Ne.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Ne.assignDefined(e.popperOptions,Ne.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Ne.\u0275fac=function(e){return new(e||Ne)(E(_t),E(wr),E(jn),E(Ke),E(Jo),E("popperDefaults"))},Ne.\u0275dir=Le({type:Ne,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Fi]}),Ne.baseOptions={showDelay:0,placement:Vw.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Ci.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let YL=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({imports:[[_d]]}),n})();function ZL(n,e){1&n&&fn(0)}function XL(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",7),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,ZL,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" raised button"),q(1),U("ngTemplateOutlet",r)}}function QL(n,e){1&n&&fn(0)}function JL(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",9),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,QL,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" stroked button"),q(1),U("ngTemplateOutlet",r)}}function eB(n,e){1&n&&fn(0)}function tB(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",10),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,eB,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" flat button"),q(1),U("ngTemplateOutlet",r)}}function nB(n,e){1&n&&fn(0)}function iB(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",11),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,nB,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" icon button"),q(1),U("ngTemplateOutlet",r)}}function rB(n,e){1&n&&fn(0)}function sB(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",12),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,rB,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" fab button"),q(1),U("ngTemplateOutlet",r)}}function oB(n,e){1&n&&fn(0)}function aB(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",13),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,oB,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" mini fab button"),q(1),U("ngTemplateOutlet",r)}}function lB(n,e){1&n&&fn(0)}function cB(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",14),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,lB,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" unstyled button"),q(1),U("ngTemplateOutlet",r)}}function uB(n,e){1&n&&fn(0)}function dB(n,e){if(1&n){const t=Cn();At(0),Te(1,"button",15),mt("click",function(r){return vn(t),pe().emitClick(r)}),ue(2,uB,1,0,"ng-container",8),Me(),xt()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),gt("aria-label",t.label+" basic button"),q(1),U("ngTemplateOutlet",r)}}function hB(n,e){if(1&n&&(Te(0,"mat-icon",18),ws(1),Me()),2&n){const t=pe(2);U("ngStyle",t.buttonIconStyle),q(1),fr(t.icon)}}function fB(n,e){if(1&n&&(Te(0,"div"),ws(1),Me()),2&n){const t=pe(2);q(1),fr(t.label||"Button")}}function pB(n,e){if(1&n&&(ue(0,hB,2,2,"mat-icon",16),ue(1,fB,2,1,"div",17)),2&n){const t=pe();U("ngIf",t.icon),q(1),U("ngIf",!t.icon)}}function gB(n,e){1&n&&_s(0,"img",19),2&n&&U("lazyLoad",pe().imgUrl)}function mB(n,e){if(1&n&&(Te(0,"div"),ws(1),Me()),2&n){const t=pe();Zt(t.popup.style),q(1),fr(t.popup.text)}}let _B=(()=>{class n{emitClick(t){t.stopPropagation(),this.onClick()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ei({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(At(0,0),ue(1,XL,3,7,"ng-container",1),ue(2,JL,3,7,"ng-container",1),ue(3,tB,3,7,"ng-container",1),ue(4,iB,3,7,"ng-container",1),ue(5,sB,3,7,"ng-container",1),ue(6,aB,3,7,"ng-container",1),ue(7,cB,3,7,"ng-container",1),ue(8,dB,3,8,"ng-container",2),xt(),ue(9,pB,2,2,"ng-template",null,3,H_),Te(11,"popper-content",null,4),ue(13,gB,1,1,"img",5),ue(14,mB,2,3,"div",6),Me()),2&t&&(U("ngSwitch",i.view),q(1),U("ngSwitchCase","raised"),q(1),U("ngSwitchCase","stroked"),q(1),U("ngSwitchCase","flat"),q(1),U("ngSwitchCase","icon"),q(1),U("ngSwitchCase","fab"),q(1),U("ngSwitchCase","miniFab"),q(1),U("ngSwitchCase","unstyled"),q(6),U("ngIf",i.imgUrl),q(1),U("ngIf",i.popup))},directives:[Sa,Gy,BN,U1,pd,Ne,Yy,qy,ud,m1,Hw,oL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class jB extends _w{loadImage({imagePath:e}){return function jw(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let $B=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function Wk(n,e){const t=function Bk(n,e){return e.get(jn).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new $k(n,e.injector),r=function Lk(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function Rk(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends zk{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(_B,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(y(et))},n.\u0275mod=Ce({type:n}),n.\u0275inj=we({providers:[{provide:gh,useClass:jB},{provide:Rd,useClass:q1}],imports:[[cv,bN,VN,G1,_1,aL,YL.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();(function DA(){py=!1})(),sR().bootstrapModule($B).catch(n=>console.log(n))})();
1
+ (()=>{"use strict";function Vr(n){return"function"==typeof n}let gl=!1;const jt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else gl&&console.log("RxJS: Back to a better error behavior. Thank you. <3");gl=n},get useDeprecatedSynchronousErrorHandling(){return gl}};function xi(n){setTimeout(()=>{throw n},0)}const Js={closed:!0,next(n){},error(n){if(jt.useDeprecatedSynchronousErrorHandling)throw n;xi(n)},complete(){}},Ai=Array.isArray||(n=>n&&"number"==typeof n.length);function ml(n){return null!==n&&"object"==typeof n}const eo=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class ne{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof ne)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Vr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof eo?Ph(o.errors):[o]}}if(Ai(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(ml(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof eo?e=e.concat(Ph(c.errors)):e.push(c)}}}if(e)throw new eo(e)}add(e){let t=e;if(!e)return ne.EMPTY;switch(typeof e){case"function":t=new ne(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof ne)){const s=t;t=new ne,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof ne){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Ph(n){return n.reduce((e,t)=>e.concat(t instanceof eo?t.errors:t),[])}ne.EMPTY=((n=new ne).closed=!0,n);const to="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends ne{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Js;break;case 1:if(!e){this.destination=Js;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Fh(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Fh(this,e,t,i)}}[to](){return this}static create(e,t,i){const r=new he(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Fh extends he{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Vr(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Js&&(o=Object.create(t),Vr(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;jt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=jt;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):xi(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;xi(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);jt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),jt.useDeprecatedSynchronousErrorHandling)throw i;xi(i)}}__tryOrSetError(e,t,i){if(!jt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return jt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(xi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Hr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Nh(n){return n}let oe=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function Kw(n,e,t){if(n){if(n instanceof he)return n;if(n[to])return n[to]()}return n||e||t?new he(n,e,t):new he(Js)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||jt.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),jt.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){jt.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function qw(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof he?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Bh(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Hr](){return this}pipe(...t){return 0===t.length?this:function Lh(n){return 0===n.length?Nh:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Bh(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Bh(n){if(n||(n=jt.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const ti=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Vh extends ne{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Hh extends he{constructor(e){super(e),this.destination=e}}let Oe=(()=>{class n extends oe{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[to](){return new Hh(this)}lift(t){const i=new jh(this,this);return i.operator=t,i}next(t){if(this.closed)throw new ti;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new ti;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new ti;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new ti;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new ti;return this.hasError?(t.error(this.thrownError),ne.EMPTY):this.isStopped?(t.complete(),ne.EMPTY):(this.observers.push(t),new Vh(this,t))}asObservable(){const t=new oe;return t.source=this,t}}return n.create=(e,t)=>new jh(e,t),n})();class jh extends Oe{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):ne.EMPTY}}function Oi(n){return n&&"function"==typeof n.schedule}function He(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Yw(n,e))}}class Yw{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Zw(e,this.project,this.thisArg))}}class Zw extends he{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const $h=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},no=function Qw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Uh=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function zh(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const _l=n=>{if(n&&"function"==typeof n[Hr])return(n=>e=>{const t=n[Hr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Uh(n))return $h(n);if(zh(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,xi),e))(n);if(n&&"function"==typeof n[no])return(n=>e=>{const t=n[no]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${ml(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function yl(n,e){return new oe(t=>{const i=new ne;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function vl(n,e){return e?function oE(n,e){if(null!=n){if(function rE(n){return n&&"function"==typeof n[Hr]}(n))return function tE(n,e){return new oe(t=>{const i=new ne;return i.add(e.schedule(()=>{const r=n[Hr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(zh(n))return function nE(n,e){return new oe(t=>{const i=new ne;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Uh(n))return yl(n,e);if(function sE(n){return n&&"function"==typeof n[no]}(n)||"string"==typeof n)return function iE(n,e){if(!n)throw new Error("Iterable cannot be null");return new oe(t=>{const i=new ne;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[no](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof oe?n:new oe(_l(n))}class jr extends he{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class $r extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Ur(n,e){if(!e.closed)return n instanceof oe?n.subscribe(e):_l(n)(e)}function io(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(io((r,s)=>vl(n(r,s)).pipe(He((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new aE(n,t)))}class aE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new lE(e,this.project,this.concurrent))}}class lE extends $r{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new jr(this),i=this.destination;i.add(t);const r=Ur(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Wh(n=Number.POSITIVE_INFINITY){return io(Nh,n)}function bl(n,e){return e?yl(n,e):new oe($h(n))}function wl(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Oi(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof oe?n[0]:Wh(e)(bl(n,t))}function Gh(){return function(e){return e.lift(new cE(e))}}class cE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new uE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class uE extends he{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class dE extends oe{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ne,e.add(this.source.subscribe(new fE(this.getSubject(),this))),e.closed&&(this._connection=null,e=ne.EMPTY)),e}refCount(){return Gh()(this)}}const hE=(()=>{const n=dE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class fE extends Hh{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class mE{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function _E(){return new Oe}function qh(){return n=>Gh()(function gE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new mE(r,e));const s=Object.create(i,hE);return s.source=i,s.subjectFactory=r,s}}(_E)(n))}function ie(n){for(let e in n)if(n[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function El(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function J(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(J).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Dl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const yE=ie({__forward_ref__:ie});function Cl(n){return n.__forward_ref__=Cl,n.toString=function(){return J(this())},n}function j(n){return function Kh(n){return"function"==typeof n&&n.hasOwnProperty(yE)&&n.__forward_ref__===Cl}(n)?n():n}class S extends Error{constructor(e,t){super(function Sl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function F(n){return"string"==typeof n?n:null==n?"":String(n)}function je(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():F(n)}function ro(n,e){const t=e?` in ${e}`:"";throw new S(-201,`No provider for ${je(n)} found${t}`)}function at(n,e){null==n&&function ee(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ye(n){return{providers:n.providers||[],imports:n.imports||[]}}function Tl(n){return Yh(n,so)||Yh(n,Xh)}function Yh(n,e){return n.hasOwnProperty(e)?n[e]:null}function Zh(n){return n&&(n.hasOwnProperty(Ml)||n.hasOwnProperty(SE))?n[Ml]:null}const so=ie({\u0275prov:ie}),Ml=ie({\u0275inj:ie}),Xh=ie({ngInjectableDef:ie}),SE=ie({ngInjectorDef:ie});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Il;function Pn(n){const e=Il;return Il=n,e}function Qh(n,e,t){const i=Tl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&B.Optional?null:void 0!==e?e:void ro(J(n),"Injector")}function Fn(n){return{toString:n}.toString()}var $t=(()=>(($t=$t||{})[$t.OnPush=0]="OnPush",$t[$t.Default=1]="Default",$t))(),Ut=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ut||(Ut={})),Ut))();const ME="undefined"!=typeof globalThis&&globalThis,IE="undefined"!=typeof window&&window,xE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,te=ME||"undefined"!=typeof global&&global||IE||xE,Ri={},re=[],oo=ie({\u0275cmp:ie}),xl=ie({\u0275dir:ie}),Al=ie({\u0275pipe:ie}),Jh=ie({\u0275mod:ie}),bn=ie({\u0275fac:ie}),zr=ie({__NG_ELEMENT_ID__:ie});let AE=0;function ni(n){return Fn(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===$t.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||re,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ut.Emulated,id:"c",styles:n.styles||re,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=AE++,i.inputs=rf(n.inputs,t),i.outputs=rf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(ef):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(tf):null,i})}function ef(n){return $e(n)||function Nn(n){return n[xl]||null}(n)}function tf(n){return function ii(n){return n[Al]||null}(n)}const nf={};function Ee(n){return Fn(()=>{const e={type:n.type,bootstrap:n.bootstrap||re,declarations:n.declarations||re,imports:n.imports||re,exports:n.exports||re,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(nf[n.id]=n.type),e})}function rf(n,e){if(null==n)return Ri;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Le=ni;function it(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function $e(n){return n[oo]||null}function Ct(n,e){const t=n[Jh]||null;if(!t&&!0===e)throw new Error(`Type ${J(n)} does not have '\u0275mod' property.`);return t}const H=11;function on(n){return Array.isArray(n)&&"object"==typeof n[1]}function Wt(n){return Array.isArray(n)&&!0===n[1]}function kl(n){return 0!=(8&n.flags)}function uo(n){return 2==(2&n.flags)}function ho(n){return 1==(1&n.flags)}function Gt(n){return null!==n.template}function NE(n){return 0!=(512&n[2])}function ai(n,e){return n.hasOwnProperty(bn)?n[bn]:null}class af{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Li(){return lf}function lf(n){return n.type.prototype.ngOnChanges&&(n.setInput=HE),VE}function VE(){const n=uf(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Ri)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function HE(n,e,t,i){const r=uf(n)||function jE(n,e){return n[cf]=e}(n,{previous:Ri,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new af(l&&l.currentValue,e,o===Ri),n[i]=e}Li.ngInherit=!0;const cf="__ngSimpleChanges__";function uf(n){return n[cf]||null}let Bl;function Vl(){return void 0!==Bl?Bl:"undefined"!=typeof document?document:void 0}function be(n){return!!n.listen}const df={createRenderer:(n,e)=>Vl()};function Se(n){for(;Array.isArray(n);)n=n[0];return n}function fo(n,e){return Se(e[n])}function ct(n,e){return Se(e[n.index])}function Hl(n,e){return n.data[e]}function Bi(n,e){return n[e]}function ut(n,e){const t=e[n];return on(t)?t:t[0]}function hf(n){return 4==(4&n[2])}function jl(n){return 128==(128&n[2])}function Ln(n,e){return null==e?null:n[e]}function ff(n){n[18]=0}function $l(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const N={lFrame:Ef(null),bindingsEnabled:!0};function gf(){return N.bindingsEnabled}function b(){return N.lFrame.lView}function Y(){return N.lFrame.tView}function wn(n){return N.lFrame.contextLView=n,n[8]}function Re(){let n=mf();for(;null!==n&&64===n.type;)n=n.parent;return n}function mf(){return N.lFrame.currentTNode}function an(n,e){const t=N.lFrame;t.currentTNode=n,t.isParent=e}function Ul(){return N.lFrame.isParent}function zl(){N.lFrame.isParent=!1}function Vi(){return N.lFrame.bindingIndex++}function Dn(n){const e=N.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function rD(n,e){const t=N.lFrame;t.bindingIndex=t.bindingRootIndex=n,Wl(e)}function Wl(n){N.lFrame.currentDirectiveIndex=n}function vf(){return N.lFrame.currentQueryIndex}function ql(n){N.lFrame.currentQueryIndex=n}function oD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function bf(n,e,t){if(t&B.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&B.Host||(r=oD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=N.lFrame=wf();return i.currentTNode=e,i.lView=n,!0}function go(n){const e=wf(),t=n[1];N.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function wf(){const n=N.lFrame,e=null===n?null:n.child;return null===e?Ef(n):e}function Ef(n){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:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Df(){const n=N.lFrame;return N.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Cf=Df;function mo(){const n=Df();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Qe(){return N.lFrame.selectedIndex}function Bn(n){N.lFrame.selectedIndex=n}function fe(){const n=N.lFrame;return Hl(n.tView,n.selectedIndex)}function _o(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function yo(n,e,t){Sf(n,e,3,t)}function vo(n,e,t,i){(3&n[2])===t&&Sf(n,e,t,i)}function Kl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Sf(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(gD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function gD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Yr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function bo(n,e,t){const i=be(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];Zl(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Tf(n){return 3===n||4===n||6===n}function Zl(n){return 64===n.charCodeAt(0)}function wo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Mf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Mf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function If(n){return-1!==n}function Hi(n){return 32767&n}function ji(n,e){let t=function bD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Xl=!0;function Eo(n){const e=Xl;return Xl=n,e}let wD=0;function Xr(n,e){const t=Jl(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Ql(i.data,n),Ql(e,null),Ql(i.blueprint,null));const r=Do(n,e),s=n.injectorIndex;if(If(r)){const o=Hi(r),a=ji(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Ql(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Jl(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Do(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Co(n,e,t){!function ED(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(zr)&&(i=t[zr]),null==i&&(i=t[zr]=wD++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Of(n,e,t){if(t&B.Optional)return n;ro(e,"NodeInjector")}function Rf(n,e,t,i){if(t&B.Optional&&void 0===i&&(i=null),0==(t&(B.Self|B.Host))){const r=n[9],s=Pn(void 0);try{return r?r.get(e,i,t&B.Optional):Qh(e,i,t&B.Optional)}finally{Pn(s)}}return Of(i,e,t)}function kf(n,e,t,i=B.Default,r){if(null!==n){const s=function TD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(zr)?n[zr]:void 0;return"number"==typeof e?e>=0?255&e:CD:e}(t);if("function"==typeof s){if(!bf(e,n,i))return i&B.Host?Of(r,t,i):Rf(e,t,i,r);try{const o=s(i);if(null!=o||i&B.Optional)return o;ro(t)}finally{Cf()}}else if("number"==typeof s){let o=null,a=Jl(n,e),l=-1,c=i&B.Host?e[16][6]:null;for((-1===a||i&B.SkipSelf)&&(l=-1===a?Do(n,e):e[a+8],-1!==l&&Nf(i,!1)?(o=e[1],a=Hi(l),e=ji(l,e)):a=-1);-1!==a;){const u=e[1];if(Ff(s,a,u.data)){const d=SD(a,e,t,o,i,c);if(d!==Pf)return d}l=e[a+8],-1!==l&&Nf(i,e[1].data[a+8]===c)&&Ff(s,a,e)?(o=u,a=Hi(l),e=ji(l,e)):a=-1}}}return Rf(e,t,i,r)}const Pf={};function CD(){return new $i(Re(),b())}function SD(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=So(a,o,t,null==i?uo(a)&&Xl:i!=o&&0!=(3&a.type),r&B.Host&&s===a);return null!==u?Qr(e,o,u,a):Pf}function So(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Gt(f)&&f.type===t)return l}return null}function Qr(n,e,t,i){let r=n[t];const s=e.data;if(function mD(n){return n instanceof Yr}(r)){const o=r;o.resolving&&function vE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new S(-200,`Circular dependency in DI detected for ${n}${t}`)}(je(s[t]));const a=Eo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Pn(o.injectImpl):null;bf(n,i,B.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function pD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=lf(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Pn(l),Eo(a),o.resolving=!1,Cf()}}return r}function Ff(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Nf(n,e){return!(n&B.Self||n&B.Host&&e)}class $i{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return kf(this._tNode,this._lView,e,i,t)}}const zi="__parameters__";function Gi(n,e,t){return Fn(()=>{const i=function tc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(zi)?l[zi]:Object.defineProperty(l,zi,{value:[]})[zi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class x{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=I({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Mt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Mt(i,e)):e!==n&&e.push(i)}return e}function ln(n,e){n.forEach(t=>Array.isArray(t)?ln(t,e):e(t))}function Bf(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Mo(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function ts(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function dt(n,e,t){let i=qi(n,e);return i>=0?n[1|i]=t:(i=~i,function OD(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function ic(n,e){const t=qi(n,e);if(t>=0)return n[1|t]}function qi(n,e){return function jf(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const ns={},sc="__NG_DI_FLAG__",xo="ngTempTokenPath",BD=/\n/gm,Uf="__source",HD=ie({provide:String,useValue:ie});let is;function zf(n){const e=is;return is=n,e}function jD(n,e=B.Default){if(void 0===is)throw new S(203,"");return null===is?Qh(n,void 0,e):is.get(n,e&B.Optional?null:void 0,e)}function v(n,e=B.Default){return(function TE(){return Il}()||jD)(j(n),e)}const Ao=v;function oc(n){const e=[];for(let t=0;t<n.length;t++){const i=j(n[t]);if(Array.isArray(i)){if(0===i.length)throw new S(900,"");let r,s=B.Default;for(let o=0;o<i.length;o++){const a=i[o],l=$D(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(v(r,s))}else e.push(v(i))}return e}function rs(n,e){return n[sc]=e,n.prototype[sc]=e,n}function $D(n){return n[sc]}const li=rs(Gi("Optional"),8),ss=rs(Gi("SkipSelf"),4);var ht=(()=>((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const Qf="__ngContext__";function Ge(n,e){n[Qf]=e}function uc(n){const e=function as(n){return n[Qf]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function hc(n,e){return undefined(n,e)}function ls(n){const e=n[3];return Wt(e)?e[3]:e}function fc(n){return sp(n[13])}function pc(n){return sp(n[4])}function sp(n){for(;null!==n&&!Wt(n);)n=n[4];return n}function Yi(n,e,t,i,r){if(null!=i){let s,o=!1;Wt(i)?s=i:on(i)&&(o=!0,i=i[0]);const a=Se(i);0===n&&null!==t?null==r?dp(e,t,a):ci(e,t,a,r||null,!0):1===n&&null!==t?ci(e,t,a,r||null,!0):2===n?function wc(n,e,t){const i=Ro(n,e);i&&function vC(n,e,t,i){be(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function EC(n,e,t,i,r){const s=t[7];s!==Se(t)&&Yi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];cs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function mc(n,e,t){if(be(n))return n.createElement(e,t);{const i=null!==t?function WE(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function ap(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,$l(r,-1)),t.splice(i,1)}function _c(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&ap(r,i),e>0&&(n[t-1][4]=i[4]);const s=Mo(n,10+e);!function dC(n,e){cs(n,e,e[H],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function lp(n,e){if(!(256&e[2])){const t=e[H];be(t)&&t.destroyNode&&cs(n,e,t,3,null,null),function pC(n){let e=n[13];if(!e)return yc(n[1],n);for(;e;){let t=null;if(on(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)on(e)&&yc(e[1],e),e=e[3];null===e&&(e=n),on(e)&&yc(e[1],e),t=e&&e[4]}e=t}}(e)}}function yc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function yC(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Yr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function _C(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Se(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&be(e[H])&&e[H].destroy();const t=e[17];if(null!==t&&Wt(e[3])){t!==e[3]&&ap(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function cp(n,e,t){return function up(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Ut.None||r===Ut.Emulated)return null}return ct(i,t)}(n,e.parent,t)}function ci(n,e,t,i,r){be(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function dp(n,e,t){be(n)?n.appendChild(e,t):e.appendChild(t)}function hp(n,e,t,i,r){null!==i?ci(n,e,t,i,r):dp(n,e,t)}function Ro(n,e){return be(n)?n.parentNode(e):e.parentNode}function fp(n,e,t){return gp(n,e,t)}let Fo,No,gp=function pp(n,e,t){return 40&n.type?ct(n,t):null};function ko(n,e,t,i){const r=cp(n,i,e),s=e[H],a=fp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)hp(s,r,t[l],a,!1);else hp(s,r,t,a,!1)}function Po(n,e){if(null!==e){const t=e.type;if(3&t)return ct(e,n);if(4&t)return bc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Po(n,i);{const r=n[e.index];return Wt(r)?bc(-1,r):Se(r)}}if(32&t)return hc(e,n)()||Se(n[e.index]);{const i=_p(n,e);return null!==i?Array.isArray(i)?i[0]:Po(ls(n[16]),i):Po(n,e.next)}}return null}function _p(n,e){return null!==e?n[16][6].projection[e.projection]:null}function bc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Po(i,r)}return e[7]}function Ec(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Ge(Se(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Ec(n,e,t.child,i,r,s,!1),Yi(e,n,r,a,s);else if(32&l){const c=hc(t,i);let u;for(;u=c();)Yi(e,n,r,u,s);Yi(e,n,r,a,s)}else 16&l?yp(n,e,i,t,r,s):Yi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function cs(n,e,t,i,r,s){Ec(t,i,n.firstChild,e,r,s,!1)}function yp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Yi(e,n,r,l[c],s);else Ec(n,e,l,o[3],r,s,!0)}function vp(n,e,t){be(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Dc(n,e,t){be(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function ui(n){var e;return(null===(e=function Cc(){if(void 0===Fo&&(Fo=null,te.trustedTypes))try{Fo=te.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Fo}())||void 0===e?void 0:e.createHTML(n))||n}function bp(n){var e;return(null===(e=function Sc(){if(void 0===No&&(No=null,te.trustedTypes))try{No=te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return No}())||void 0===e?void 0:e.createHTML(n))||n}class di{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class MC extends di{getTypeName(){return"HTML"}}class IC extends di{getTypeName(){return"Style"}}class xC extends di{getTypeName(){return"Script"}}class AC extends di{getTypeName(){return"URL"}}class OC extends di{getTypeName(){return"ResourceURL"}}function ft(n){return n instanceof di?n.changingThisBreaksApplicationSecurity:n}function cn(n,e){const t=Dp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function Dp(n){return n instanceof di&&n.getTypeName()||null}class LC{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(ui(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class BC{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=ui(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=ui(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const HC=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,jC=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function us(n){return(n=String(n)).match(HC)||n.match(jC)?n:"unsafe:"+n}function Sp(n){return(n=String(n)).split(",").map(e=>us(e.trim())).join(", ")}function un(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function ds(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const Tp=un("area,br,col,hr,img,wbr"),Mp=un("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ip=un("rp,rt"),Tc=ds(Tp,ds(Mp,un("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ds(Ip,un("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ds(Ip,Mp)),Mc=un("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ic=un("srcset"),xp=ds(Mc,Ic,un("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),un("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),$C=un("script,style,template");class UC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Tc.hasOwnProperty(t))return this.sanitizedSomething=!0,!$C.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!xp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Mc[a]&&(l=us(l)),Ic[a]&&(l=Sp(l)),this.buf.push(" ",o,'="',Ap(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Tc.hasOwnProperty(t)&&!Tp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ap(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const zC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WC=/([^\#-~ |!])/g;function Ap(n){return n.replace(/&/g,"&amp;").replace(zC,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(WC,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Lo;function Op(n,e){let t=null;try{Lo=Lo||function Cp(n){const e=new BC(n);return function VC(){try{return!!(new window.DOMParser).parseFromString(ui(""),"text/html")}catch(n){return!1}}()?new LC(e):e}(n);let i=e?String(e):"";t=Lo.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=Lo.getInertBodyElement(i)}while(i!==s);return ui((new UC).sanitizeChildren(xc(t)||t))}finally{if(t){const i=xc(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function xc(n){return"content"in n&&function GC(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Q=(()=>((Q=Q||{})[Q.NONE=0]="NONE",Q[Q.HTML=1]="HTML",Q[Q.STYLE=2]="STYLE",Q[Q.SCRIPT=3]="SCRIPT",Q[Q.URL=4]="URL",Q[Q.RESOURCE_URL=5]="RESOURCE_URL",Q))();function Rp(n){const e=function hs(){const n=b();return n&&n[12]}();return e?bp(e.sanitize(Q.HTML,n)||""):cn(n,"HTML")?bp(ft(n)):Op(Vl(),F(n))}function Oc(n){return n.ngOriginalError}function n0(n,...e){n.error(...e)}class Hn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function t0(n){return n&&n.ngErrorLogger||n0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Oc(e);for(;t&&Oc(t);)t=Oc(t);return t||null}}const u0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te))();function dn(n){return n instanceof Function?n():n}function Np(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Lp="ng-template";function p0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Np(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Bp(n){return 4===n.type&&n.value!==Lp}function g0(n,e,t){return e===(4!==n.type||t?n.value:Lp)}function m0(n,e,t){let i=4;const r=n.attrs||[],s=function v0(n){for(let e=0;e<n.length;e++)if(Tf(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!g0(n,l,t)||""===l&&1===e.length){if(qt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!p0(n.attrs,c,t)){if(qt(i))return!1;o=!0}continue}const d=_0(8&i?"class":l,r,Bp(n),t);if(-1===d){if(qt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Np(f,c,0)||2&i&&c!==h){if(qt(i))return!1;o=!0}}}}else{if(!o&&!qt(i)&&!qt(l))return!1;if(o&&qt(l))continue;o=!1,i=l|1&i}}return qt(i)||o}function qt(n){return 0==(1&n)}function _0(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function b0(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Vp(n,e,t=!1){for(let i=0;i<e.length;i++)if(m0(n,e[i],t))return!0;return!1}function w0(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Hp(n,e){return n?":not("+e.trim()+")":e}function E0(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!qt(o)&&(e+=Hp(s,r),r=""),i=o,s=s||!qt(i);t++}return""!==r&&(e+=Hp(s,r)),e}const L={};function q(n){jp(Y(),b(),Qe()+n,!1)}function jp(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&yo(e,s,t)}else{const s=n.preOrderHooks;null!==s&&vo(e,s,0,t)}Bn(t)}function Bo(n,e){return n<<17|e<<2}function Kt(n){return n>>17&32767}function Rc(n){return 2|n}function Cn(n){return(131068&n)>>2}function kc(n,e){return-131069&n|e<<2}function Pc(n){return 1|n}function Qp(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];ql(r),o.contentQueries(2,e[s],s)}}}function fs(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,ff(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[H]=a||n&&n[H],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function Xi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Uc(n,e,t,i,r){const s=mf(),o=Ul(),l=n.data[e]=function H0(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function iD(){return N.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Kr(){const n=N.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return an(s,!0),s}function Qi(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function ps(n,e,t){go(e);try{const i=n.viewQuery;null!==i&&Qc(1,i,t);const r=n.template;null!==r&&Jp(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Qp(n,e),n.staticViewQueries&&Qc(2,n.viewQuery,t);const s=n.components;null!==s&&function L0(n,e){for(let t=0;t<e.length;t++)rS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,mo()}}function Ji(n,e,t,i){const r=e[2];if(256!=(256&r)){go(e);try{ff(e),function _f(n){return N.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Jp(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&yo(e,c,null)}else{const c=n.preOrderHooks;null!==c&&vo(e,c,0,null),Kl(e,0)}if(function nS(n){for(let e=fc(n);null!==e;e=pc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&$l(s,1),r[2]|=1024}}}(e),function tS(n){for(let e=fc(n);null!==e;e=pc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];jl(i)&&Ji(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&Qp(n,e),o){const c=n.contentCheckHooks;null!==c&&yo(e,c)}else{const c=n.contentHooks;null!==c&&vo(e,c,1),Kl(e,1)}!function F0(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Bn(~r);else{const s=r,o=t[++i],a=t[++i];rD(o,s),a(2,e[s])}}}finally{Bn(-1)}}(n,e);const a=n.components;null!==a&&function N0(n,e){for(let t=0;t<e.length;t++)iS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Qc(2,l,i),o){const c=n.viewCheckHooks;null!==c&&yo(e,c)}else{const c=n.viewHooks;null!==c&&vo(e,c,2),Kl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,$l(e[3],-1))}finally{mo()}}}function B0(n,e,t,i){const r=e[10],o=hf(e);try{!o&&r.begin&&r.begin(),o&&ps(n,e,i),Ji(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Jp(n,e,t,i,r){const s=Qe(),o=2&i;try{Bn(-1),o&&e.length>20&&jp(n,e,20,!1),t(i,r)}finally{Bn(s)}}function eg(n,e,t){if(kl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function zc(n,e,t){!gf()||(function q0(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Xr(t,e),Ge(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Gt(l);c&&Q0(e,t,l);const u=Qr(e,n,a,t);Ge(u,e),null!==o&&J0(0,a-r,u,l,0,o),c&&(ut(t.index,e)[8]=u)}}(n,e,t,ct(t,e)),128==(128&t.flags)&&function K0(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function sD(){return N.lFrame.currentDirectiveIndex}();try{Bn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Wl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&lg(c,u)}}finally{Bn(-1),Wl(a)}}(n,e,t))}function Wc(n,e,t=ct){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function tg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=jo(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function jo(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function V0(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:L);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function rg(n,e,t,i){const r=pg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&gg(n).push(i,r.length-1))}function sg(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Gc(n,e,t,i){let r=!1;if(gf()){const s=function Y0(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vp(t,o.selectors,!1)&&(r||(r=[]),Co(Xr(t,e),n,o.type),Gt(o)?(cg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,ug(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Qi(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=wo(t.mergedAttrs,d.hostAttrs),dg(n,t,e,c,d),X0(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function j0(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Bp(e)?null:eS(d,s);o.push(h),a=sg(d,c,a),l=sg(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function Z0(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new S(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=wo(t.mergedAttrs,t.attrs),r}function ag(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function G0(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function lg(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function cg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function X0(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Gt(e)&&(t[""]=n)}}function ug(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function dg(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=ai(r.type)),o=new Yr(s,Gt(r),null);n.blueprint[i]=o,t[i]=o,ag(n,e,0,i,Qi(n,t,r.hostVars,L),r)}function Q0(n,e,t){const i=ct(e,n),r=tg(t),s=n[10],o=$o(n,fs(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function hn(n,e,t,i,r,s){const o=ct(n,e);!function qc(n,e,t,i,r,s,o){if(null==s)be(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?F(s):o(s,i||"",r);be(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[H],o,s,n.value,t,i,r)}function J0(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function eS(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function hg(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function iS(n,e){const t=ut(e,n);if(jl(t)){const i=t[1];80&t[2]?Ji(i,t,i.template,t[8]):t[5]>0&&Kc(t)}}function Kc(n){for(let i=fc(n);null!==i;i=pc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Ji(o,s,o.template,s[8])}else s[5]>0&&Kc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=ut(t[i],n);jl(r)&&r[5]>0&&Kc(r)}}function rS(n,e){const t=ut(e,n),i=t[1];(function sS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),ps(i,t,t[8])}function $o(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Yc(n){for(;n;){n[2]|=64;const e=ls(n);if(NE(n)&&!e)return n;n=e}return null}function fg(n){!function Zc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=uc(t),r=i[1];B0(r,i,r.template,t)}}(n[8])}function Qc(n,e,t){ql(0),e(n,t)}const aS=(()=>Promise.resolve(null))();function pg(n){return n[7]||(n[7]=[])}function gg(n){return n.cleanup||(n.cleanup=[])}function _g(n,e){const t=n[9],i=t?t.get(Hn,null):null;i&&i.handleError(e)}function yg(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Sn(n,e,t){const i=fo(e,n);!function op(n,e,t){be(n)?n.setValue(e,t):e.textContent=t}(n[H],i,t)}function Uo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Dl(r,a):2==s&&(i=Dl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const Jc=new x("INJECTOR",-1);class vg{get(e,t=ns){if(t===ns){const i=new Error(`NullInjectorError: No provider for ${J(e)}!`);throw i.name="NullInjectorError",i}return t}}const eu=new x("Set Injector scope."),gs={},uS={};let tu;function bg(){return void 0===tu&&(tu=new vg),tu}function wg(n,e=null,t=null,i){const r=Eg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Eg(n,e=null,t=null,i){return new dS(n,t,e||bg(),i)}class dS{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&ln(t,a=>this.processProvider(a,e,t)),ln([e],a=>this.processInjectorType(a,[],s)),this.records.set(Jc,er(void 0,this));const o=this.records.get(eu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:J(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ns,i=B.Default){this.assertNotDestroyed();const r=zf(this),s=Pn(void 0);try{if(!(i&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function vS(n){return"function"==typeof n||"object"==typeof n&&n instanceof x}(e)&&Tl(e);a=l&&this.injectableDefInScope(l)?er(nu(e),gs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&B.Self?bg():this.parent).get(e,t=i&B.Optional&&t===ns?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[xo]=o[xo]||[]).unshift(J(e)),r)throw o;return function UD(n,e,t,i){const r=n[xo];throw e[Uf]&&r.unshift(e[Uf]),n.message=function zD(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=J(e);if(Array.isArray(e))r=e.map(J).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):J(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(BD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[xo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Pn(s),zf(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(J(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processInjectorType(e,t,i){if(!(e=j(e)))return!1;let r=Zh(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Zh(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{ln(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];ln(f,p=>this.processProvider(p,h,f||re))}}this.injectorDefTypes.add(o);const l=ai(o)||(()=>new o);this.records.set(o,er(l,gs));const c=r.providers;if(null!=c&&!a){const u=e;ln(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=tr(e=j(e))?e:j(e&&e.provide);const s=function fS(n,e,t){return Cg(n)?er(void 0,n.useValue):er(function Dg(n,e,t){let i;if(tr(n)){const r=j(n);return ai(r)||nu(r)}if(Cg(n))i=()=>j(n.useValue);else if(function gS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...oc(n.deps||[]));else if(function pS(n){return!(!n||!n.useExisting)}(n))i=()=>v(j(n.useExisting));else{const r=j(n&&(n.useClass||n.provide));if(!function _S(n){return!!n.deps}(n))return ai(r)||nu(r);i=()=>new r(...oc(n.deps))}return i}(n),gs)}(e);if(tr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=er(void 0,gs,!0),o.factory=()=>oc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===gs&&(t.value=uS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function yS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=j(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function nu(n){const e=Tl(n),t=null!==e?e.factory:ai(n);if(null!==t)return t;if(n instanceof x)throw new S(204,!1);if(n instanceof Function)return function hS(n){const e=n.length;if(e>0)throw ts(e,"?"),new S(204,!1);const t=function DE(n){const e=n&&(n[so]||n[Xh]);if(e){const t=function CE(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new S(204,!1)}function er(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Cg(n){return null!==n&&"object"==typeof n&&HD in n}function tr(n){return"function"==typeof n}let rt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return wg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return wg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=ns,n.NULL=new vg,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>v(Jc)}),n.__NG_ELEMENT_ID__=-1,n})();function MS(n,e){_o(uc(n)[1],Re())}function nr(n){let e=function Ng(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Gt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=su(n.inputs),o.declaredInputs=su(n.declaredInputs),o.outputs=su(n.outputs);const a=r.hostBindings;a&&OS(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&xS(n,l),c&&AS(n,c),El(n.inputs,r.inputs),El(n.declaredInputs,r.declaredInputs),El(n.outputs,r.outputs),Gt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===nr&&(t=!1)}}e=Object.getPrototypeOf(e)}!function IS(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=wo(r.hostAttrs,t=wo(t,r.hostAttrs))}}(i)}function su(n){return n===Ri?{}:n===re?[]:n}function xS(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function AS(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function OS(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let zo=null;function ir(){if(!zo){const n=te.Symbol;if(n&&n.iterator)zo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(zo=i)}}}return zo}function ms(n){return!!ou(n)&&(Array.isArray(n)||!(n instanceof Map)&&ir()in n)}function ou(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function qe(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function gt(n,e,t,i){const r=b();return qe(r,Vi(),e)&&(Y(),hn(fe(),r,n,e,t,i)),gt}function ue(n,e,t,i,r,s,o,a){const l=b(),c=Y(),u=n+20,d=c.firstCreatePass?function BS(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Xi(e,n,4,o||null,Ln(c,a));Gc(e,t,u,Ln(c,l)),_o(e,u);const d=u.tViews=jo(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];an(d,!1);const h=l[H].createComment("");ko(c,l,h,d),Ge(h,l),$o(l,l[u]=hg(h,l,h,d)),ho(d)&&zc(c,l,d),null!=o&&Wc(l,d,a)}function Ue(n){return Bi(function nD(){return N.lFrame.contextLView}(),20+n)}function E(n,e=B.Default){const t=b();return null===t?v(n,e):kf(Re(),t,j(n),e)}function U(n,e,t){const i=b();return qe(i,Vi(),e)&&function pt(n,e,t,i,r,s,o,a){const l=ct(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(yg(n,t,u,i,r),uo(e)&&function U0(n,e){const t=ut(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function $0(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,be(s)?s.setProperty(l,i,r):Zl(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Y(),fe(),i,n,e,i[H],t,!1),U}function du(n,e,t,i,r){const o=r?"class":"style";yg(n,t,e.inputs[o],o,i)}function Te(n,e,t,i){const r=b(),s=Y(),o=20+n,a=r[H],l=r[o]=mc(a,e,function fD(){return N.lFrame.currentNamespace}()),c=s.firstCreatePass?function sT(n,e,t,i,r,s,o){const a=e.consts,c=Xi(e,n,2,r,Ln(a,s));return Gc(e,t,c,Ln(a,o)),null!==c.attrs&&Uo(c,c.attrs,!1),null!==c.mergedAttrs&&Uo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];an(c,!0);const u=c.mergedAttrs;null!==u&&bo(a,l,u);const d=c.classes;null!==d&&Dc(a,l,d);const h=c.styles;return null!==h&&vp(a,l,h),64!=(64&c.flags)&&ko(s,r,l,c),0===function XE(){return N.lFrame.elementDepthCount}()&&Ge(l,r),function QE(){N.lFrame.elementDepthCount++}(),ho(c)&&(zc(s,r,c),eg(s,c,r)),null!==i&&Wc(r,c),Te}function Me(){let n=Re();Ul()?zl():(n=n.parent,an(n,!1));const e=n;!function JE(){N.lFrame.elementDepthCount--}();const t=Y();return t.firstCreatePass&&(_o(t,n),kl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function yD(n){return 0!=(16&n.flags)}(e)&&du(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function vD(n){return 0!=(32&n.flags)}(e)&&du(t,e,b(),e.stylesWithoutHost,!1),Me}function ys(n,e,t,i){return Te(n,e,t,i),Me(),ys}function xt(n,e,t){const i=b(),r=Y(),s=n+20,o=r.firstCreatePass?function oT(n,e,t,i,r){const s=e.consts,o=Ln(s,i),a=Xi(e,n,8,"ng-container",o);return null!==o&&Uo(a,o,!0),Gc(e,t,a,Ln(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];an(o,!0);const a=i[s]=i[H].createComment("");return ko(r,i,a,o),Ge(a,i),ho(o)&&(zc(r,i,o),eg(r,o,i)),null!=t&&Wc(i,o),xt}function At(){let n=Re();const e=Y();return Ul()?zl():(n=n.parent,an(n,!1)),e.firstCreatePass&&(_o(e,n),kl(n)&&e.queries.elementEnd(n)),At}function pn(n,e,t){return xt(n,e,t),At(),pn}function Tn(){return b()}function hu(n){return!!n&&"function"==typeof n.then}function im(n){return!!n&&"function"==typeof n.subscribe}const aT=im;function Ot(n,e,t,i){const r=b(),s=Y(),o=Re();return function sm(n,e,t,i,r,s,o,a){const l=ho(i),u=n.firstCreatePass&&gg(n),d=e[8],h=pg(e);let f=!0;if(3&i.type||a){const _=ct(i,e),y=a?a(_):_,m=h.length,w=a?M=>a(Se(M[i.index])):i.index;if(be(t)){let M=null;if(!a&&l&&(M=function lT(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=s,M.__ngLastListenerFn__=s,f=!1;else{s=fu(i,e,d,s,!1);const V=t.listen(y,r,s);h.push(s,V),u&&u.push(r,w,m,m+1)}}else s=fu(i,e,d,s,!0),y.addEventListener(r,s,o),h.push(s),u&&u.push(r,w,m,o)}else s=fu(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const _=g.length;if(_)for(let y=0;y<_;y+=2){const de=e[g[y]][g[y+1]].subscribe(s),me=h.length;h.push(s,de),u&&u.push(r,i.index,me,-(me+1))}}}(s,r,r[H],o,n,e,!!t,i),Ot}function om(n,e,t,i){try{return!1!==t(i)}catch(r){return _g(n,r),!1}}function fu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?ut(n.index,e):e;0==(32&e[2])&&Yc(a);let l=om(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=om(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function pe(n=1){return function aD(n){return(N.lFrame.contextLView=function lD(n,e){for(;n>0;)e=e[15],n--;return e}(n,N.lFrame.contextLView))[8]}(n)}function cT(n,e){let t=null;const i=function y0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Vp(n,s,!0):w0(i,s))return r}else t=r}return t}function qo(n){const e=b()[16][6];if(!e.projection){const i=e.projection=ts(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?cT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function vs(n,e=0,t){const i=b(),r=Y(),s=Xi(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),zl(),64!=(64&s.flags)&&function wC(n,e,t){yp(e[H],0,e,t,cp(n,t,e),fp(t.parent||e[6],t,e))}(r,i,s)}function mm(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?Kt(s):Cn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];hT(n[a],e)&&(l=!0,n[a+1]=i?Pc(u):Rc(u)),a=i?Kt(u):Cn(u)}l&&(n[t+1]=i?Rc(s):Pc(s))}function hT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&qi(n,e)>=0}const Pe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _m(n){return n.substring(Pe.key,Pe.keyEnd)}function fT(n){return n.substring(Pe.value,Pe.valueEnd)}function vm(n,e){const t=Pe.textEnd;let i=Pe.key=pr(n,e,t);return t===i?-1:(i=Pe.keyEnd=function _T(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=wm(n,i,t),i=Pe.value=pr(n,i,t),i=Pe.valueEnd=function yT(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Em(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=Em(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),wm(n,i,t))}function pr(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function wm(n,e,t,i){return(e=pr(n,e,t))<t&&e++,e}function Em(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function bs(n,e,t){return Xt(n,e,t,!1),bs}function Mn(n,e){return Xt(n,e,null,!0),Mn}function Zt(n){!function Qt(n,e,t,i){const r=Y(),s=Dn(2);r.firstUpdatePass&&Cm(r,null,s,i);const o=b();if(t!==L&&qe(o,s,t)){const a=r.data[Qe()];if(Im(a,i)&&!Dm(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Dl(l,t||"")),du(r,a,o,t,i)}else!function TT(n,e,t,i,r,s,o,a){r===L&&(r=re);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Tm(n,e,t,i,p,g,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[H],o[s+1],o[s+1]=function ST(n,e,t){if(null==t||""===t)return re;const i=[],r=ft(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(Sm,vT,n,!1)}function vT(n,e){for(let t=function gT(n){return function bm(n){Pe.key=0,Pe.keyEnd=0,Pe.value=0,Pe.valueEnd=0,Pe.textEnd=n.length}(n),vm(n,pr(n,0,Pe.textEnd))}(e);t>=0;t=vm(e,t))Sm(n,_m(e),fT(e))}function Xt(n,e,t,i){const r=b(),s=Y(),o=Dn(2);s.firstUpdatePass&&Cm(s,n,o,i),e!==L&&qe(r,o,e)&&Tm(s,s.data[Qe()],r,r[H],n,r[o+1]=function MT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=J(ft(n)))),n}(e,t),i,o)}function Dm(n,e){return e>=n.expandoStartIndex}function Cm(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Qe()],o=Dm(n,t);Im(s,i)&&null===e&&!o&&(e=!1),e=function wT(n,e,t,i){const r=function Gl(n){const e=N.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=ws(t=gu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=gu(r,n,e,t,i),null===s){let l=function ET(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Cn(i))return n[Kt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=gu(null,n,e,l[1],i),l=ws(l,e.attrs,i),function DT(n,e,t,i){n[Kt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function CT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=ws(i,n[s].hostAttrs,t);return ws(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function uT(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Kt(o),l=Cn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||qi(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=Kt(n[a+1]);n[i+1]=Bo(h,a),0!==h&&(n[h+1]=kc(n[h+1],i)),n[a+1]=function S0(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Bo(a,0),0!==a&&(n[a+1]=kc(n[a+1],i)),a=i;else n[i+1]=Bo(l,0),0===a?a=i:n[l+1]=kc(n[l+1],i),l=i;c&&(n[i+1]=Rc(n[i+1])),mm(n,u,i,!0),mm(n,u,i,!1),function dT(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&qi(s,e)>=0&&(t[i+1]=Pc(t[i+1]))}(e,u,n,i,s),o=Bo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function gu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=ws(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function ws(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),dt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Sm(n,e,t){dt(n,e,ft(t))}function Tm(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Ko(function zp(n){return 1==(1&n)}(c)?Mm(l,e,t,r,Cn(c),o):void 0)||(Ko(s)||function Up(n){return 2==(2&n)}(c)&&(s=Mm(l,null,t,r,a,o)),function DC(n,e,t,i,r){const s=be(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ht.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ht.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,fo(Qe(),t),r,s))}function Mm(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===L&&(h=d?re:void 0);let f=d?ic(h,i):u===i?h:void 0;if(c&&!Ko(f)&&(f=ic(l,i)),Ko(f)&&(a=f,o))return a;const p=n[r+1];r=o?Kt(p):Cn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ic(l,i))}return a}function Ko(n){return void 0!==n}function Im(n,e){return 0!=(n.flags&(e?16:32))}function Es(n,e=""){const t=b(),i=Y(),r=n+20,s=i.firstCreatePass?Xi(i,r,1,e,null):i.data[r],o=t[r]=function gc(n,e){return be(n)?n.createText(e):n.createTextNode(e)}(t[H],e);ko(i,t,o,s),an(s,!1)}function gr(n){return mu("",n,""),gr}function mu(n,e,t){const i=b(),r=function sr(n,e,t,i){return qe(n,Vi(),t)?e+F(t)+i:L}(i,n,e,t);return r!==L&&Sn(i,Qe(),r),mu}const Yo="en-US";let Zm=Yo;class w_{}class ZM{resolveComponentFactory(e){throw function YM(n){const e=Error(`No component factory found for ${J(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Un=(()=>{class n{}return n.NULL=new ZM,n})();function XM(){return yr(Re(),b())}function yr(n,e){return new Ke(ct(n,e))}let Ke=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=XM,n})();function QM(n){return n instanceof Ke?n.nativeElement:n}class Ms{}let ea=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function eI(){const n=b(),t=ut(Re().index,n);return function JM(n){return n[H]}(on(t)?t:n)}(),n})(),tI=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class vr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const nI=new vr("13.4.0"),Du={};function ta(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Se(s)),Wt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&ta(l[1],l,c,i)}const o=t.type;if(8&o)ta(n,e,t.child,i);else if(32&o){const a=hc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=_p(e,t);if(Array.isArray(a))i.push(...a);else{const l=ls(e[16]);ta(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Is{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return ta(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Wt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(_c(e,i),Mo(t,i))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(e){rg(this._lView[1],this._lView,null,e)}markForCheck(){Yc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Xc(n,e,t){const i=e[10];i.begin&&i.begin();try{Ji(n,e,n.template,t)}catch(r){throw _g(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fC(n,e){cs(n,e,e[H],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,"");this._appRef=e}}class iI extends Is{constructor(e){super(e),this._view=e}detectChanges(){fg(this._view)}checkNoChanges(){}get context(){return null}}class D_ extends Un{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=$e(e);return new Cu(t,this.ngModule)}}function C_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Cu extends w_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function D0(n){return n.map(E0).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return C_(this.componentDef.inputs)}get outputs(){return C_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function sI(n,e){return{get:(t,i,r)=>{const s=n.get(t,Du,r);return s!==Du||i===Du?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Ms,df),a=s.get(tI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function ig(n,e,t){if(be(n))return n.selectRootElement(e,t===Ut.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):mc(o.createRenderer(null,this.componentDef),c,function rI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Fg(n,e){return{components:[],scheduler:n||u0,clean:aS,playerHandler:e||null,flags:0}}(),f=jo(0,null,null,1,0,null,null,null,null,null),p=fs(null,f,h,d,null,null,o,l,a,s);let g,_;go(p);try{const y=function kg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Xi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Uo(l,c,!0),null!==n&&(bo(r,n,c),null!==l.classes&&Dc(r,n,l.classes),null!==l.styles&&vp(r,n,l.styles)));const u=i.createRenderer(n,e),d=fs(t,tg(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Co(Xr(l,t),o,e.type),cg(o,l),ug(l,t.length,1)),$o(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)bo(l,u,["ng-version",nI.full]);else{const{attrs:m,classes:w}=function C0(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!qt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&bo(l,u,m),w&&w.length>0&&Dc(l,u,w.join(" "))}if(_=Hl(f,20),void 0!==t){const m=_.projection=[];for(let w=0;w<this.ngContentSelectors.length;w++){const M=t[w];m.push(null!=M?Array.from(M):null)}}g=function Pg(n,e,t,i,r){const s=t[1],o=function W0(n,e,t){const i=Re();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),dg(n,i,e,Qi(n,e,1,null),t));const r=Qr(e,n,i.directiveStart,i);Ge(r,e);const s=ct(i,e);return s&&Ge(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Re();e.contentQueries(1,o,l.directiveStart)}const a=Re();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Bn(a.index),ag(t[1],a,0,a.directiveStart,a.directiveEnd,e),lg(e,o)),o}(y,this.componentDef,p,h,[MS]),ps(f,p,null)}finally{mo()}return new aI(this.componentType,g,yr(_,p),p,_)}}class aI extends class KM{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new iI(r),this.componentType=e}get injector(){return new $i(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class br{}const wr=new Map;class M_ extends br{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new D_(this);const i=Ct(e);this._bootstrapComponents=dn(i.bootstrap),this._r3Injector=Eg(e,t,[{provide:br,useValue:this},{provide:Un,useValue:this.componentFactoryResolver}],J(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=rt.THROW_IF_NOT_FOUND,i=B.Default){return e===rt||e===br||e===Jc?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Su extends class cI{}{constructor(e){super(),this.moduleType=e,null!==Ct(e)&&function uI(n){const e=new Set;!function t(i){const r=Ct(i,!0),s=r.id;null!==s&&(function S_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${J(e)} vs ${J(e.name)}`)}(s,wr.get(s),i),wr.set(s,i));const o=dn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new M_(this.moduleType,e)}}function I_(n,e,t,i,r,s){const o=e+t;return qe(n,o,r)?function fn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function xs(n,e){const t=n[e];return t===L?void 0:t}(n,o+1)}function P_(n,e,t){const i=n+20,r=b(),s=Bi(r,i);return function As(n,e){return n[1].data[e].pure}(r,i)?I_(r,function Xe(){const n=N.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function Tu(n){return e=>{setTimeout(n,void 0,e)}}const Ye=class TI extends Oe{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Tu(l),a&&(a=Tu(a)),c&&(c=Tu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof ne&&e.add(u),u}};function MI(){return this._results[ir()]()}class Mu{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 t=ir(),i=Mu.prototype;i[t]||(i[t]=MI)}get changes(){return this._changes||(this._changes=new Ye)}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,t){return this._results.reduce(e,t)}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,t){const i=this;i.dirty=!1;const r=Mt(e);(this._changesDetected=!function xD(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let In=(()=>{class n{}return n.__NG_ELEMENT_ID__=AI,n})();const II=In,xI=class extends II{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=fs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),ps(t,i,e),new Is(i)}};function AI(){return na(Re(),b())}function na(n,e){return 4&n.type?new xI(e,n,yr(n,e)):null}let mt=(()=>{class n{}return n.__NG_ELEMENT_ID__=OI,n})();function OI(){return L_(Re(),b())}const RI=mt,F_=class extends RI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return yr(this._hostTNode,this._hostLView)}get injector(){return new $i(this._hostTNode,this._hostLView)}get parentInjector(){const e=Do(this._hostTNode,this._hostLView);if(If(e)){const t=ji(e,this._hostLView),i=Hi(e);return new $i(t[1].data[i+8],t)}return new $i(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=N_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function es(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Cu($e(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(br,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function ZE(n){return Wt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new F_(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function gC(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Bf(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function mC(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=bc(s,o),l=i[H],c=Ro(l,o[7]);return null!==c&&function hC(n,e,t,i,r,s){i[0]=r,i[6]=e,cs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Bf(Iu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=N_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=_c(this._lContainer,t);i&&(Mo(Iu(this._lContainer),t),lp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=_c(this._lContainer,t);return i&&null!=Mo(Iu(this._lContainer),t)?new Is(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function N_(n){return n[8]}function Iu(n){return n[8]||(n[8]=[])}function L_(n,e){let t;const i=e[n.index];if(Wt(i))t=i;else{let r;if(8&n.type)r=Se(i);else{const s=e[H];r=s.createComment("");const o=ct(n,e);ci(s,Ro(s,o),r,function bC(n,e){return be(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=hg(i,e,r,n),$o(e,t)}return new F_(t,n,e)}class xu{constructor(e){this.queryList=e,this.matches=null}clone(){return new xu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Au{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Au(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==$_(e,t).matches&&this.queries[t].setDirty()}}class B_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Ou{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Ou(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ru{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Ru(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,FI(t,s)),this.matchTNodeWithReadOption(e,t,So(t,e,s,!1,!1))}else i===In?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,So(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ke||r===mt||r===In&&4&t.type)this.addMatch(t.index,-2);else{const s=So(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function FI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function LI(n,e,t,i){return-1===t?function NI(n,e){return 11&n.type?yr(n,e):4&n.type?na(n,e):null}(e,n):-2===t?function BI(n,e,t){return t===Ke?yr(e,n):t===In?na(e,n):t===mt?L_(e,n):void 0}(n,e,i):Qr(n,n[1],t,e)}function V_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:LI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function ku(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=V_(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&ku(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];ku(f[1],f,c,i)}}}}}return i}function Pu(n){const e=b(),t=Y(),i=vf();ql(i+1);const r=$_(t,i);if(n.dirty&&hf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?ku(t,e,i,[]):V_(t,e,r,i);n.reset(s,QM),n.notifyOnChanges()}return!0}return!1}function Fu(n,e,t){const i=Y();i.firstCreatePass&&(function j_(n,e,t){null===n.queries&&(n.queries=new Ou),n.queries.track(new Ru(e,t))}(i,new B_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function H_(n,e,t){const i=new Mu(4==(4&t));rg(n,e,i,i.destroy),null===e[19]&&(e[19]=new Au),e[19].queries.push(new xu(i))}(i,b(),e)}function Nu(){return function HI(n,e){return n[19].queries[e].queryList}(b(),vf())}function $_(n,e){return n.queries.getByIndex(e)}function U_(n,e){return na(n,e)}function sa(...n){}const oy=new x("Application Initializer");let $u=(()=>{class n{constructor(t){this.appInits=t,this.resolve=sa,this.reject=sa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(hu(s))t.push(s);else if(aT(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(v(oy,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Rs=new x("AppId",{providedIn:"root",factory:function ay(){return`${Uu()}${Uu()}${Uu()}`}});function Uu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ly=new x("Platform Initializer"),oa=new x("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),rx=new x("appBootstrapListener"),xn=new x("LocaleId",{providedIn:"root",factory:()=>Ao(xn,B.Optional|B.SkipSelf)||function sx(){return"undefined"!=typeof $localize&&$localize.locale||Yo}()}),cx=(()=>Promise.resolve(0))();function zu(n){"undefined"==typeof Zone?cx.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class se{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ye(!1),this.onMicrotaskEmpty=new Ye(!1),this.onStable=new Ye(!1),this.onError=new Ye(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function ux(){let n=te.requestAnimationFrame,e=te.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function fx(n){const e=()=>{!function hx(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(te,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Gu(n),n.isCheckStableRunning=!0,Wu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Gu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return cy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),uy(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return cy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),uy(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Gu(n),Wu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!se.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(se.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,dx,sa,sa);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const dx={};function Wu(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Gu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function cy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function uy(n){n._nesting--,Wu(n)}class px{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ye,this.onMicrotaskEmpty=new Ye,this.onStable=new Ye,this.onError=new Ye}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let qu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{se.assertNotInAngularZone(),zu(()=>{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())zu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(v(se))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),gx=(()=>{class n{constructor(){this._applications=new Map,Ku.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Ku.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class mx{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Ku=new mx,pi=null;const dy=new x("AllowMultipleToken"),hy=new x("PlatformOnDestroy");function fy(n,e,t=[]){const i=`Platform: ${e}`,r=new x(i);return(s=[])=>{let o=Yu();if(!o||o.injector.get(dy,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function bx(n){if(pi&&!pi.get(dy,!1))throw new S(400,"");pi=n;const e=n.get(py),t=n.get(ly,null);t&&t.forEach(i=>i())}(function Ex(n=[],e){return rt.create({name:e,providers:[{provide:eu,useValue:"platform"},{provide:hy,useValue:()=>pi=null},...n]})}(a,i))}return function wx(n){const e=Yu();if(!e)throw new S(401,"");return e}()}}function Yu(){var n;return null!==(n=null==pi?void 0:pi.get(py))&&void 0!==n?n:null}let py=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function Dx(n,e){let t;return t="noop"===n?new px:("zone.js"===n?void 0:n)||new se({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:se,useValue:a}];return a.run(()=>{const c=rt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Hn,null);if(!d)throw new S(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Zu(this._modules,u),h.unsubscribe()})}),function Cx(n,e,t){try{const i=t();return hu(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get($u);return h.runInitializers(),h.donePromise.then(()=>(function QT(n){at(n,"Expected localeId to be defined"),"string"==typeof n&&(Zm=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(xn,Yo)||Yo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=gy({},i);return function yx(n,e,t){const i=new Su(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(aa);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(hy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(v(rt))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function gy(n,e){return Array.isArray(e)?e.reduce(gy,n):Object.assign(Object.assign({},n),e)}let aa=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new oe(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new oe(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),zu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=wl(o,a.pipe(qh()))}bootstrap(t,i){if(!this._initStatus.done)throw new S(405,"");let r;r=t instanceof w_?t:this._injector.get(Un).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function vx(n){return n.isBoundToModule}(r)?void 0:this._injector.get(br),a=r.create(rt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(qu,null),u=c&&a.injector.get(gx);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Zu(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new S(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Zu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(rx,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(v(se),v(rt),v(Hn),v($u))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Zu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let _y=!0,Dr=(()=>{class n{}return n.__NG_ELEMENT_ID__=Mx,n})();function Mx(n){return function Ix(n,e,t){if(uo(n)&&!t){const i=ut(n.index,e);return new Is(i,i)}return 47&n.type?new Is(e[16],e):null}(Re(),b(),16==(16&n))}class Ey{constructor(){}supports(e){return ms(e)}create(e){return new Px(e)}}const kx=(n,e)=>e;class Px{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||kx}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Cy(i,r,s)?t:i,a=Cy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!ms(e))throw new S(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function LS(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[ir()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new Fx(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Dy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Dy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Fx{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Nx{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Dy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new Nx,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Cy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Sy{constructor(){}supports(e){return e instanceof Map||ou(e)}create(){return new Lx}}class Lx{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||ou(e)))throw new S(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new Bx(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class Bx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ty(){return new ua([new Ey])}let ua=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ty()),deps:[[n,new ss,new li]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S(901,"")}}return n.\u0275prov=I({token:n,providedIn:"root",factory:Ty}),n})();function My(){return new ks([new Sy])}let ks=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||My()),deps:[[n,new ss,new li]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new S(901,"")}}return n.\u0275prov=I({token:n,providedIn:"root",factory:My}),n})();const jx=fy(null,"core",[]);let $x=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(v(aa))},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({}),n})(),da=null;function zn(){return da}const K=new x("DocumentToken");let Ps=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function Gx(){return v(Iy)}()},providedIn:"platform"}),n})(),Iy=(()=>{class n extends Ps{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zn().getBaseHref(this._doc)}onPopState(t){const i=zn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=zn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){xy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){xy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:function(){return function qx(){return new Iy(v(K))}()},providedIn:"platform"}),n})();function xy(){return!!window.history.pushState}function Ay(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Oy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function mi(n){return n&&"?"!==n[0]?"?"+n:n}let td=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function Kx(n){const e=v(K).location;return new Zx(v(Ps),e&&e.origin||"")}()},providedIn:"root"}),n})();const Yx=new x("appBaseHref");let Zx=(()=>{class n extends td{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ay(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+mi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+mi(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+mi(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(v(Ps),v(Yx,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Ry=(()=>{class n{constructor(t,i){this._subject=new Ye,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Oy(ky(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+mi(i))}normalize(t){return n.stripTrailingSlash(function Qx(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,ky(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+mi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+mi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=mi,n.joinWithSlash=Ay,n.stripTrailingSlash=Oy,n.\u0275fac=function(t){return new(t||n)(v(td),v(Ps))},n.\u0275prov=I({token:n,factory:function(){return function Xx(){return new Ry(v(td),v(Ps))}()},providedIn:"root"}),n})();function ky(n){return n.replace(/\/index.html$/,"")}let dd=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ms(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${J(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(E(ua),E(ks),E(Ke),E(ea))},n.\u0275dir=Le({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})(),hd=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new VA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Uy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Uy("ngIfElse",t),this._elseTemplateRef=t,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(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(E(mt),E(In))},n.\u0275dir=Le({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class VA{constructor(){this.$implicit=null,this.ngIf=null}}function Uy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${J(e)}'.`)}const zy="browser";class gd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Da=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Le({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Yy=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new gd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(E(mt),E(In),E(Da,9))},n.\u0275dir=Le({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),Zy=(()=>{class n{constructor(t,i,r){r._addDefault(new gd(t,i))}}return n.\u0275fac=function(t){return new(t||n)(E(mt),E(In),E(Da,9))},n.\u0275dir=Le({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),md=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(ks),E(ea))},n.\u0275dir=Le({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Qy=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(E(mt))},n.\u0275dir=Le({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Li]}),n})();class _O{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class yO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const vO=new yO,bO=new _O;let Jy=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(hu(t))return vO;if(im(t))return bO;throw function en(n,e){return new S(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(E(Dr,16))},n.\u0275pipe=it({name:"async",type:n,pure:!1}),n})(),vd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({}),n})();class bd extends class HO extends class Wx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function zx(n){da||(da=n)}(new bd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||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,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function jO(){return Bs=Bs||document.querySelector("base"),Bs?Bs.getAttribute("href"):null}();return null==t?null:function $O(n){Ca=Ca||document.createElement("a"),Ca.setAttribute("href",n);const e=Ca.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Bs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function FA(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Ca,Bs=null;const nv=new x("TRANSITION_ID"),zO=[{provide:oy,useFactory:function UO(n,e,t){return()=>{t.get($u).donePromise.then(()=>{const i=zn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[nv,K,rt],multi:!0}];class wd{static init(){!function _x(n){Ku=n}(new wd)}addToWindow(e){te.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},te.getAllAngularTestabilities=()=>e.getAllTestabilities(),te.getAllAngularRootElements=()=>e.getAllRootElements(),te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(i=>{const r=te.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?zn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let WO=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Sa=new x("EventManagerPlugins");let Ta=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(v(Sa),v(se))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class iv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=zn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let rv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Vs=(()=>{class n extends rv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(sv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(sv))}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function sv(n){zn().remove(n)}const Ed={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/"},Dd=/%COMP%/g;function Ma(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Ma(n,r,t):(r=r.replace(Dd,n),t.push(r))}return t}function lv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Ia=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Cd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Ut.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new XO(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Ut.ShadowDom:return new QO(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ma(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(v(Ta),v(Vs),v(Rs))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Cd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Ed[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Ed[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Ed[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(ht.DashCase|ht.Important)?e.style.setProperty(t,i,r&ht.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&ht.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,lv(i)):this.eventManager.addEventListener(e,t,lv(i))}}class XO extends Cd{constructor(e,t,i,r){super(e),this.component=i;const s=Ma(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function KO(n){return"_ngcontent-%COMP%".replace(Dd,n)}(r+"-"+i.id),this.hostAttr=function YO(n){return"_nghost-%COMP%".replace(Dd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class QO extends Cd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ma(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let JO=(()=>{class n extends iv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const uv=["alt","control","meta","shift"],tR={"\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"},dv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},nR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let iR=(()=>{class n extends iv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(uv.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function rR(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&dv.hasOwnProperty(e)&&(e=dv[e]))}return tR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),uv.forEach(s=>{s!=r&&nR[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const lR=fy(jx,"browser",[{provide:oa,useValue:zy},{provide:ly,useValue:function sR(){bd.makeCurrent(),wd.init()},multi:!0},{provide:K,useFactory:function aR(){return function GE(n){Bl=n}(document),document},deps:[]}]),cR=[{provide:eu,useValue:"root"},{provide:Hn,useFactory:function oR(){return new Hn},deps:[]},{provide:Sa,useClass:JO,multi:!0,deps:[K,se,oa]},{provide:Sa,useClass:iR,multi:!0,deps:[K]},{provide:Ia,useClass:Ia,deps:[Ta,Vs,Rs]},{provide:Ms,useExisting:Ia},{provide:rv,useExisting:Vs},{provide:Vs,useClass:Vs,deps:[K]},{provide:qu,useClass:qu,deps:[se]},{provide:Ta,useClass:Ta,deps:[Sa,se]},{provide:class BO{},useClass:WO,deps:[]}];let hv=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:Rs,useValue:t.appId},{provide:nv,useExisting:Rs},zO]}}}return n.\u0275fac=function(t){return new(t||n)(v(n,12))},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:cR,imports:[vd,$x]}),n})();"undefined"!=typeof window&&window;let Td=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new(t||n):v(gv),i},providedIn:"root"}),n})(),gv=(()=>{class n extends Td{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Q.NONE:return i;case Q.HTML:return cn(i,"HTML")?ft(i):Op(this._doc,String(i)).toString();case Q.STYLE:return cn(i,"Style")?ft(i):i;case Q.SCRIPT:if(cn(i,"Script"))return ft(i);throw new Error("unsafe value used in a script context");case Q.URL:return Dp(i),cn(i,"URL")?ft(i):us(String(i));case Q.RESOURCE_URL:if(cn(i,"ResourceURL"))return ft(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function RC(n){return new MC(n)}(t)}bypassSecurityTrustStyle(t){return function kC(n){return new IC(n)}(t)}bypassSecurityTrustScript(t){return function PC(n){return new xC(n)}(t)}bypassSecurityTrustUrl(t){return function FC(n){return new AC(n)}(t)}bypassSecurityTrustResourceUrl(t){return function NC(n){return new OC(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new t:function vR(n){return new gv(n.get(K))}(v(rt)),i},providedIn:"root"}),n})();function xa(n){return null!=n&&"false"!=`${n}`}function mv(n,e=0){return function bR(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function Aa(n){return Array.isArray(n)?n:[n]}function Ae(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Cr(n){return n instanceof Ke?n.nativeElement:n}function Pt(...n){let e=n[n.length-1];return Oi(e)?(n.pop(),yl(n,e)):bl(n)}function _v(n,e,t,i){return Vr(t)&&(i=t,t=void 0),i?_v(n,e,t).pipe(He(r=>Ai(r)?i(...r):i(r))):new oe(r=>{yv(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function yv(n,e,t,i,r){let s;if(function DR(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function ER(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function wR(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)yv(n[o],e,t,i,r)}i.add(s)}class CR extends ne{constructor(e,t){super()}schedule(e,t=0){return this}}class Oa extends CR{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let vv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class tn extends vv{constructor(e,t=vv.now){super(e,()=>tn.delegate&&tn.delegate!==this?tn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return tn.delegate&&tn.delegate!==this?tn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}new class TR extends tn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class SR extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let IR=1;const xR=Promise.resolve(),Ra={};function bv(n){return n in Ra&&(delete Ra[n],!0)}const wv={setImmediate(n){const e=IR++;return Ra[e]=!0,xR.then(()=>bv(e)&&n()),e},clearImmediate(n){bv(n)}},Md=(new class OR extends tn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class AR extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=wv.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(wv.clearImmediate(t),e.scheduled=void 0)}}),new tn(Oa));class PR{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new FR(e,this.durationSelector))}}class FR extends $r{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Ur(t,new jr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ev(n){return!Ai(n)&&n-parseFloat(n)+1>=0}function LR(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function Dv(n,e=Md){return function kR(n){return function(t){return t.lift(new PR(n))}}(()=>function NR(n=0,e,t){let i=-1;return Ev(e)?i=Number(e)<1?1:Number(e):Oi(e)&&(t=e),Oi(t)||(t=Md),new oe(r=>{const s=Ev(n)?n:+n-t.now();return t.schedule(LR,s,{index:0,period:i,subscriber:r})})}(n,e))}function ka(n,e){return function(i){return i.lift(new BR(n,e))}}class BR{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new VR(e,this.predicate,this.thisArg))}}class VR extends he{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Id;try{Id="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Id=!1}let Hs,_i,Ad,nn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function UA(n){return n===zy}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Id)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(v(oa))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({}),n})();function Pa(n){return function HR(){if(null==Hs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hs=!0}))}finally{Hs=Hs||!1}return Hs}()?n:!!n.capture}function jR(){if(null==_i){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return _i=!1,_i;if("scrollBehavior"in document.documentElement.style)_i=!0;else{const n=Element.prototype.scrollTo;_i=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return _i}function yi(n){return n.composedPath?n.composedPath()[0]:n.target}function Od(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const zR=new x("cdk-dir-doc",{providedIn:"root",factory:function WR(){return Ao(K)}}),GR=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Sv=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ye,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function qR(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?GR.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(v(zR,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),js=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({}),n})(),Tv=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new oe(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(Dv(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Pt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(ka(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Cr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>_v(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(v(se),v(nn),v(K,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mv=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Oe,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Dv(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(v(nn),v(se),v(K,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({}),n})(),Iv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[js,xd,Rd],js,Rd]}),n})();class kd{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class xv extends kd{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class ZR extends kd{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class XR extends kd{constructor(e){super(),this.element=e instanceof Ke?e.nativeElement:e}}class JR extends class QR{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof xv?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof ZR?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof XR?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let ek=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({}),n})();const tk=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),nk=new oe(n=>n.complete());function Av(n){return n?function ik(n){return new oe(e=>n.schedule(()=>e.complete()))}(n):nk}function Tr(n){return e=>0===n?Av():e.lift(new rk(n))}class rk{constructor(e){if(this.total=e,this.total<0)throw new tk}call(e,t){return t.subscribe(new sk(e,this.total))}}class sk extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function rn(n){return e=>e.lift(new ok(n))}class ok{constructor(e){this.notifier=e}call(e,t){const i=new ak(e),r=Ur(this.notifier,new jr(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class ak extends $r{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const Ov=jR();class lk{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ae(-this._previousScrollPosition.left),e.style.top=Ae(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ov&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ov&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class ck{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Rv{enable(){}disable(){}attach(){}}function Pd(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function kv(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class uk{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Pd(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let dk=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Rv,this.close=o=>new ck(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new lk(this._viewportRuler,this._document),this.reposition=o=>new uk(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(v(Tv),v(Mv),v(se),v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class hk{constructor(e){if(this.scrollStrategy=new Rv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class fk{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class pk{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Oe,this._attachments=new Oe,this._detachments=new Oe,this._locationChanges=ne.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Oe,this._outsidePointerEvents=new Oe,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Tr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Ae(this._config.width),e.height=Ae(this._config.height),e.minWidth=Ae(this._config.minWidth),e.minHeight=Ae(this._config.minHeight),e.maxWidth=Ae(this._config.maxWidth),e.maxHeight=Ae(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=Aa(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(rn(wl(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let Fd=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Od()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Od()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(v(K),v(nn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Pv="cdk-overlay-connected-position-bounding-box",gk=/([A-Za-z%]+)$/;class mk{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Oe,this._resizeSubscription=ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Pv),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&vi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Pv),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=Nv(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),g=this._subtractOverflows(s.height,h,f),_=p*g;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:g===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Fv(this._overlayRef.getConfig().minHeight),a=Fv(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=Nv(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new fk(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Ae(i.height),r.top=Ae(i.top),r.bottom=Ae(i.bottom),r.width=Ae(i.width),r.left=Ae(i.left),r.right=Ae(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Ae(s)),o&&(r.maxWidth=Ae(o))}this._lastBoundingBoxSize=i,vi(this._boundingBox.style,r)}_resetBoundingBoxStyles(){vi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){vi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();vi(i,this._getExactOverlayY(t,e,u)),vi(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Ae(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Ae(o.maxWidth):s&&(i.maxWidth="")),vi(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Ae(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Ae(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:kv(e,i),isOriginOutsideView:Pd(e,i),isOverlayClipped:kv(t,i),isOverlayOutsideView:Pd(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Aa(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ke)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function vi(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Fv(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(gk);return t&&"px"!==t?null:parseFloat(e)}return n||null}function Nv(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Lv="cdk-global-overlay-wrapper";class _k{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Lv),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Lv),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let yk=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new _k}flexibleConnectedTo(t){return new mk(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(v(Mv),v(K),v(nn),v(Fd))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bv=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vk=(()=>{class n extends Bv{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bk=(()=>{class n extends Bv{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=yi(r)},this._clickListener=r=>{const s=yi(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(v(K),v(nn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wk=0,Na=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new hk(t);return o.direction=o.direction||this._directionality.value,new pk(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+wk++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(aa)),new JR(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(v(dk),v(Fd),v(Un),v(yk),v(vk),v(rt),v(se),v(K),v(Sv),v(Ry),v(bk))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ck={provide:new x("cdk-connected-overlay-scroll-strategy"),deps:[Na],useFactory:function Dk(n){return()=>n.scrollStrategies.reposition()}};let Sk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:[Na,Ck],imports:[[js,ek,Iv],Iv]}),n})();const Ik=new class Mk extends tn{}(class Tk extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});function Vv(n,e){return new oe(e?t=>e.schedule(xk,0,{error:n,subscriber:t}):t=>t.error(n))}function xk({error:n,subscriber:e}){e.error(n)}class Ft{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Pt(this.value);case"E":return Vv(this.error);case"C":return Av()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Ft("N",e):Ft.undefinedValueNotification}static createError(e){return new Ft("E",void 0,e)}static createComplete(){return Ft.completeNotification}}Ft.completeNotification=new Ft("C"),Ft.undefinedValueNotification=new Ft("N",void 0);class La extends he{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(La.dispatch,this.delay,new Ok(e,this.destination)))}_next(e){this.scheduleMessage(Ft.createNext(e))}_error(e){this.scheduleMessage(Ft.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Ft.createComplete()),this.unsubscribe()}}class Ok{constructor(e,t){this.notification=e,this.destination=t}}class Hv extends Oe{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Rk(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new ti;if(this.isStopped||this.hasError?o=ne.EMPTY:(this.observers.push(e),o=new Vh(this,e)),r&&e.add(e=new La(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||Ik).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class Rk{constructor(e,t){this.time=e,this.value=t}}function Nd(n,e){return"function"==typeof e?t=>t.pipe(Nd((i,r)=>vl(n(i,r)).pipe(He((s,o)=>e(i,s,r,o))))):t=>t.lift(new kk(n))}class kk{constructor(e){this.project=e}call(e,t){return t.subscribe(new Pk(e,this.project))}}class Pk extends $r{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new jr(this),r=this.destination;r.add(i),this.innerSubscription=Ur(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Ba={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Ba.schedule(n,0);if(void 0===window.requestAnimationFrame)return Ba.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Ld;function Uk(n,e,t){let i=t;return function Nk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function Bk(n,e){if(!Ld){const t=Element.prototype;Ld=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ld.call(n,e)}(n,r)||(i=s,0))),i}class Wk{constructor(e,t){this.componentFactory=t.get(Un).resolveComponentFactory(e)}create(e){return new Gk(this.componentFactory,e)}}class Gk{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Hv(1),this.events=this.eventEmitters.pipe(Nd(i=>wl(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(se),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ba.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Vk(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=rt.create({providers:[],parent:this.injector}),i=function $k(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=Uk(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Dr),this.implementsOnChanges=function Lk(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(aa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(He(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ba.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new af(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class qk extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Yk extends Oe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ti;return this._value}next(e){super.next(this._value=e)}}function $v(n){return e=>e.lift(new iP(n))}class iP{constructor(e){this.total=e}call(e,t){return t.subscribe(new rP(e,this.total))}}class rP extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class oP{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new aP(e,this.compare,this.keySelector))}}class aP extends he{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}let lP=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:[lP]}),n})();function Va(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const zv="cdk-describedby-message-container",Wv="cdk-describedby-message",Ha="cdk-describedby-host";let hP=0;const mn=new Map;let _t=null,fP=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=Bd(i,r);"string"!=typeof i?(Gv(i),mn.set(s,{messageElement:i,referenceCount:0})):mn.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const s=Bd(i,r);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),"string"==typeof i){const o=mn.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}_t&&0===_t.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Ha}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Ha);_t&&this._deleteMessagesContainer(),mn.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");Gv(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),_t.appendChild(r),mn.set(Bd(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=mn.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),mn.delete(t)}_createMessagesContainer(){if(!_t){const t=this._document.getElementById(zv);null==t||t.remove(),_t=this._document.createElement("div"),_t.id=zv,_t.style.visibility="hidden",_t.classList.add("cdk-visually-hidden"),this._document.body.appendChild(_t)}}_deleteMessagesContainer(){_t&&(_t.remove(),_t=null)}_removeCdkDescribedByReferenceIds(t){const i=Va(t,"aria-describedby").filter(r=>0!=r.indexOf(Wv));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=mn.get(i);(function uP(n,e,t){const i=Va(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Ha,""),r.referenceCount++}_removeMessageReference(t,i){const r=mn.get(i);r.referenceCount--,function dP(n,e,t){const r=Va(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Ha)}_isElementDescribedByMessage(t,i){const r=Va(t,"aria-describedby"),s=mn.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bd(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function Gv(n){n.id||(n.id=`${Wv}-${hP++}`)}function Kv(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Yv(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const vP=new x("cdk-input-modality-detector-options"),bP={ignoreKeys:[18,17,224,91,16]},Mr=Pa({passive:!0,capture:!0});let wP=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new Yk(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=yi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Kv(o)?"keyboard":"mouse"),this._mostRecentTarget=yi(o))},this._onTouchstart=o=>{Yv(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=yi(o))},this._options=Object.assign(Object.assign({},bP),s),this.modalityDetected=this._modality.pipe($v(1)),this.modalityChanged=this.modalityDetected.pipe(function sP(n,e){return t=>t.lift(new oP(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Mr),r.addEventListener("mousedown",this._onMousedown,Mr),r.addEventListener("touchstart",this._onTouchstart,Mr)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Mr),document.removeEventListener("mousedown",this._onMousedown,Mr),document.removeEventListener("touchstart",this._onTouchstart,Mr))}}return n.\u0275fac=function(t){return new(t||n)(v(nn),v(se),v(K),v(vP,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const DP=new x("cdk-focus-monitor-default-options"),ja=Pa({passive:!0,capture:!0});let Xv=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Oe,this._rootNodeFocusAndBlurListener=a=>{const l=yi(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=Cr(t);if(!this._platform.isBrowser||1!==r.nodeType)return Pt(null);const s=function UR(n){if(function $R(){if(null==Ad){const n="undefined"!=typeof document?document.head:null;Ad=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Ad}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new Oe,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Cr(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Cr(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=yi(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ja),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ja)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ja),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ja),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(v(se),v(nn),v(wP),v(K,8),v(DP,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qv="cdk-high-contrast-black-on-white",Jv="cdk-high-contrast-white-on-black",Vd="cdk-high-contrast-active";let eb=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Vd),t.remove(Qv),t.remove(Jv),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Vd),t.add(Qv)):2===i&&(t.add(Vd),t.add(Jv))}}}return n.\u0275fac=function(t){return new(t||n)(v(nn),v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CP=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(v(eb))},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[xd,cP]]}),n})();class tb{}const On="*";function TP(n,e){return{type:7,name:n,definitions:e,options:{}}}function nb(n,e=null){return{type:4,styles:e,timings:n}}function ib(n,e=null){return{type:2,steps:n,options:e}}function Gn(n){return{type:6,styles:n,offset:null}}function rb(n,e,t){return{type:0,name:n,styles:e,options:t}}function MP(n){return{type:5,steps:n}}function sb(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function ob(n){Promise.resolve(null).then(n)}class $s{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(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(){ob(()=>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}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class ab{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 t=0,i=0,r=0;const s=this.players.length;0==s?ob(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,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 t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const G=!1;function lb(n){return new S(3e3,G)}function aF(){return"undefined"!=typeof window&&void 0!==window.document}function jd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function qn(n){switch(n.length){case 0:return new $s;case 1:return n[0];default:return new ab(n)}}function cb(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let g=p,_=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),_){case"!":_=r[p];break;case On:_=s[p];break;default:_=e.normalizeStyleValue(p,g,_,o)}f[g]=_}),h||a.push(f),c=f,l=d}),o.length)throw function ZP(n){return new S(3502,G)}();return a}function $d(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ud(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ud(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ud(t,"destroy",n)))}}function Ud(n,e,t){const i=t.totalTime,s=zd(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function zd(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function yt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function ub(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Wd=(n,e)=>!1,db=(n,e,t)=>[],hb=null;function Gd(n){const e=n.parentNode||n.host;return e===hb?null:e}(jd()||"undefined"!=typeof Element)&&(aF()?(hb=(()=>document.documentElement)(),Wd=(n,e)=>{for(;e;){if(e===n)return!0;e=Gd(e)}return!1}):Wd=(n,e)=>n.contains(e),db=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let bi=null,fb=!1;function pb(n){bi||(bi=function cF(){return"undefined"!=typeof document?document.body:null}()||{},fb=!!bi.style&&"WebkitAppearance"in bi.style);let e=!0;return bi.style&&!function lF(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in bi.style,!e&&fb&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in bi.style)),e}const gb=Wd,mb=db;let _b=(()=>{class n{validateStyleProperty(t){return pb(t)}matchesElement(t,i){return!1}containsElement(t,i){return gb(t,i)}getParentElement(t){return Gd(t)}query(t,i,r){return mb(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new $s(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),qd=(()=>{class n{}return n.NOOP=new _b,n})();const Kd="ng-enter",Ua="ng-leave",za="ng-trigger",Wa=".ng-trigger",vb="ng-animating",Yd=".ng-animating";function wi(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Zd(parseFloat(e[1]),e[2])}function Zd(n,e){return"s"===e?1e3*n:n}function Ga(n,e,t){return n.hasOwnProperty("duration")?n:function hF(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(lb()),{duration:0,delay:0,easing:""};r=Zd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Zd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function IP(){return new S(3100,G)}()),a=!0),s<0&&(e.push(function xP(){return new S(3101,G)}()),a=!0),a&&e.splice(l,0,lb())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Ir(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Kn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Ir(n,t);return t}function wb(n,e,t){return t?e+":"+t+";":""}function Eb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=wb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=wb(0,gF(t),n.style[t]));n.setAttribute("style",e)}function _n(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Qd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),jd()&&Eb(n))}function Ei(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Qd(t);n.style[i]=""}),jd()&&Eb(n))}function Us(n){return Array.isArray(n)?1==n.length?n[0]:ib(n):n}const Xd=new RegExp("{{\\s*(.+?)\\s*}}","g");function Db(n){let e=[];if("string"==typeof n){let t;for(;t=Xd.exec(n);)e.push(t[1]);Xd.lastIndex=0}return e}function qa(n,e,t){const i=n.toString(),r=i.replace(Xd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function OP(n){return new S(3003,G)}()),a=""),a.toString()});return r==i?n:r}function Ka(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const pF=/-+([a-z0-9])/g;function Qd(n){return n.replace(pF,(...e)=>e[1].toUpperCase())}function gF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function vt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function RP(n){return new S(3004,G)}()}}function Cb(n,e){return window.getComputedStyle(n)[e]}function wF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function EF(n,e,t){if(":"==n[0]){const l=function DF(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function GP(n){return new S(3016,G)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function WP(n){return new S(3015,G)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Sb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Sb(o,r))}(i,t,e)):t.push(n),t}const Qa=new Set(["true","1"]),Ja=new Set(["false","0"]);function Sb(n,e){const t=Qa.has(n)||Ja.has(n),i=Qa.has(e)||Ja.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Qa.has(n):Ja.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Qa.has(e):Ja.has(e)),o&&a}}const CF=new RegExp("s*:selfs*,?","g");function Jd(n,e,t,i){return new SF(n).build(e,t,i)}class SF{constructor(e){this._driver=e}build(e,t,i){const r=new IF(t);this._resetContextStyleTimingState(r);const s=vt(this,Us(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function PP(){return new S(3006,G)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function FP(){return new S(3007,G)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(el(a)){const l=a;Object.keys(l).forEach(c=>{Db(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Ka(s.values()),t.errors.push(function NP(n,e){return new S(3008,G)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=vt(this,Us(e.animation),t);return{type:1,matchers:wF(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Di(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>vt(this,i,t)),options:Di(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=vt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Di(e.options)}}visitAnimate(e,t){const i=function AF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return eh(Ga(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=eh(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Ga(t,e);return eh(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Gn({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Gn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==On?i.push(o):t.errors.push(function LP(n){return new S(3002,G)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(el(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function BP(n,e,t,i,r){return new S(3010,G)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function fF(n,e,t){const i=e.params||{},r=Db(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function AP(n){return new S(3001,G)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function VP(){return new S(3011,G)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(y=>{const m=this._makeStyleAst(y,t);let w=null!=m.offset?m.offset:function xF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(el(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(el(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),M=0;return null!=w&&(s++,M=m.offset=w),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),m});l&&t.errors.push(function HP(){return new S(3012,G)}()),a&&t.errors.push(function jP(){return new S(3200,G)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function $P(){return new S(3202,G)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,_=g.duration;return u.forEach((y,m)=>{const w=h>0?m==f?1:h*m:o[m],M=w*_;t.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(y,t),y.offset=w,i.styles.push(y)}),i}visitReference(e,t){return{type:8,animation:vt(this,Us(e.animation),t),options:Di(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Di(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Di(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function TF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(CF,"")),n=n.replace(/@\*/g,Wa).replace(/@\w+/g,t=>Wa+"-"+t.substr(1)).replace(/:animating/g,Yd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,yt(t.collectedStyles,t.currentQuerySelector,{});const a=vt(this,Us(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Di(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function UP(){return new S(3013,G)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ga(e.timings,t.errors,!0);return{type:12,animation:vt(this,Us(e.animation),t),timings:i,options:null}}}class IF{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function el(n){return!Array.isArray(n)&&"object"==typeof n}function Di(n){return n?(n=Ir(n)).params&&(n.params=function MF(n){return n?Ir(n):null}(n.params)):n={},n}function eh(n,e,t){return{duration:n,delay:e,easing:t}}function th(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class tl{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const kF=new RegExp(":enter","g"),FF=new RegExp(":leave","g");function nh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new NF).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class NF{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new tl;const d=new ih(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),vt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const g=h[p];if(g.element===t){f=g;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[th(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?wi(i.duration):null,a=null!=i.delay?wi(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),vt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nl);const o=wi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>vt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?wi(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),vt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Ga(t.params?qa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?wi(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=nl);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),vt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;vt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const nl={};class ih{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new il(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=wi(i.duration)),null!=i.delay&&(r.delay=wi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=qa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new ih(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=nl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new LF(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(kF,"."+this._enterClassName)).replace(FF,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function zP(n){return new S(3014,G)}()),a}}class il{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new il(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||On,this._currentKeyframe[t]=On}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function BF(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=On})):Kn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=qa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:On),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Kn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==On&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Ka(e.values()):[],o=t.size?Ka(t.values()):[];if(i){const a=r[0],l=Ir(a);a.offset=0,l.offset=1,r=[a,l]}return th(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class LF extends il{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Kn(e[0],!1);l.offset=0,s.push(l);const c=Kn(e[0],!1);c.offset=Ib(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Kn(e[d],!1);h.offset=Ib((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return th(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Ib(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class rh{}class VF extends rh{normalizePropertyName(e,t){return Qd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(HF[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function kP(n,e){return new S(3005,G)}())}return o+s}}const HF=(()=>function jF(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function xb(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const sh={};class Ab{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function $F(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||sh,p=this.buildStyles(i,a&&a.params||sh,d),g=l&&l.params||sh,_=this.buildStyles(r,g,d),y=new Set,m=new Map,w=new Map,M="void"===r,V={params:Object.assign(Object.assign({},h),g)},de=u?[]:nh(e,t,this.ast.animation,s,o,p,_,V,c,d);let me=0;if(de.forEach(wt=>{me=Math.max(wt.duration+wt.delay,me)}),d.length)return xb(t,this._triggerName,i,r,M,p,_,[],[],m,w,me,d);de.forEach(wt=>{const Et=wt.element,Nr=yt(m,Et,{});wt.preStyleProps.forEach(sn=>Nr[sn]=!0);const kn=yt(w,Et,{});wt.postStyleProps.forEach(sn=>kn[sn]=!0),Et!==t&&y.add(Et)});const bt=Ka(y.values());return xb(t,this._triggerName,i,r,M,p,_,de,bt,m,w,me)}}class UF{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Ir(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=qa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class WF{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new UF(r.style,r.options&&r.options.params||{},i)}),Ob(this.states,"true","1"),Ob(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ab(e,r,this.states))}),this.fallbackTransition=function GF(n,e,t){return new Ab(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function Ob(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const qF=new tl;class KF{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Jd(this._driver,t,i,[]);if(i.length)throw function XP(n){return new S(3503,G)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=cb(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=nh(this._driver,t,s,Kd,Ua,{},{},i,qF,r),o.forEach(u=>{const d=yt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function QP(){return new S(3300,G)}()),o=[]),r.length)throw function JP(n){return new S(3504,G)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,On)})});const c=qn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function eF(n){return new S(3301,G)}();return t}listen(e,t,i,r){const s=zd(t,"","","");return $d(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Rb="ng-animate-queued",oh="ng-animate-disabled",JF=[],kb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nt="__ng_removed";class ah{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function rN(n){return null!=n?n:null}(i?e.value:e),i){const s=Ir(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const zs="void",lh=new ah(zs);class tN{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Lt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function tF(n,e){return new S(3302,G)}();if(null==i||0==i.length)throw function nF(n){return new S(3303,G)}();if(!function sN(n){return"start"==n||"done"==n}(i))throw function iF(n,e){return new S(3400,G)}();const s=yt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=yt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Lt(e,za),Lt(e,za+"-"+t),a[t]=lh),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function rF(n){return new S(3401,G)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new ch(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Lt(e,za),Lt(e,za+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new ah(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=lh),c.value!==zs&&l.value===c.value){if(!function lN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],_=s.matchStyles(l.value,l.params,g),y=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Ei(e,_),_n(e,y)})}return}const h=yt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Lt(e,Rb),o.onStart(()=>{xr(e,Rb)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const _=this._engine.playersByElement.get(e);if(_){let y=_.indexOf(o);y>=0&&_.splice(y,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Wa,!0);i.forEach(r=>{if(r[Nt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,zs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&qn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||lh,u=new ah(zs),d=new ch(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Nt];(!s||s===kb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Lt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=zd(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,$d(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class nN{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new tN(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(rl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!rl(t))return;const s=t[Nt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Lt(e,oh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xr(e,oh))}removeNode(e,t,i,r){if(rl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Nt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return rl(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Wa,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Yd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Nt];if(i&&i.setForRemoval){if(e[Nt]=kb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(oh))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Lt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?qn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function sF(n){return new S(3402,G)}()}_flushAnimations(e,t){const i=new tl,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const O=this.driver.query(T,".ng-animate-queued",!0);for(let P=0;P<O.length;P++)u.add(O[P])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Nb(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((T,O)=>{const P=Kd+g++;p.set(O,P),T.forEach(X=>Lt(X,P))});const _=[],y=new Set,m=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const O=this.collectedLeaveElements[T],P=O[Nt];P&&P.setForRemoval&&(_.push(O),y.add(O),P.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(X=>y.add(X)):m.add(O))}const w=new Map,M=Nb(h,Array.from(y));M.forEach((T,O)=>{const P=Ua+g++;w.set(O,P),T.forEach(X=>Lt(X,P))}),e.push(()=>{f.forEach((T,O)=>{const P=p.get(O);T.forEach(X=>xr(X,P))}),M.forEach((T,O)=>{const P=w.get(O);T.forEach(X=>xr(X,P))}),_.forEach(T=>{this.processLeaveNode(T)})});const V=[],de=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(P=>{const X=P.player,Ve=P.element;if(V.push(X),this.collectedEnterElements.length){const nt=Ve[Nt];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(P.triggerName)){const Mi=nt.previousTriggersValues.get(P.triggerName),ei=this.statesByElement.get(P.element);ei&&ei[P.triggerName]&&(ei[P.triggerName].value=Mi)}return void X.destroy()}}const yn=!d||!this.driver.containsElement(d,Ve),Dt=w.get(Ve),Jn=p.get(Ve),_e=this._buildInstruction(P,i,Jn,Dt,yn);if(_e.errors&&_e.errors.length)return void de.push(_e);if(yn)return X.onStart(()=>Ei(Ve,_e.fromStyles)),X.onDestroy(()=>_n(Ve,_e.toStyles)),void r.push(X);if(P.isFallbackTransition)return X.onStart(()=>Ei(Ve,_e.fromStyles)),X.onDestroy(()=>_n(Ve,_e.toStyles)),void r.push(X);const Gw=[];_e.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||Gw.push(nt)}),_e.timelines=Gw,i.append(Ve,_e.timelines),o.push({instruction:_e,player:X,element:Ve}),_e.queriedElements.forEach(nt=>yt(a,nt,[]).push(X)),_e.preStyleProps.forEach((nt,Mi)=>{const ei=Object.keys(nt);if(ei.length){let Ii=l.get(Mi);Ii||l.set(Mi,Ii=new Set),ei.forEach(kh=>Ii.add(kh))}}),_e.postStyleProps.forEach((nt,Mi)=>{const ei=Object.keys(nt);let Ii=c.get(Mi);Ii||c.set(Mi,Ii=new Set),ei.forEach(kh=>Ii.add(kh))})});if(de.length){const T=[];de.forEach(O=>{T.push(function oF(n,e){return new S(3505,G)}())}),V.forEach(O=>O.destroy()),this.reportError(T)}const me=new Map,bt=new Map;o.forEach(T=>{const O=T.element;i.has(O)&&(bt.set(O,O),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,me))}),r.forEach(T=>{const O=T.element;this._getPreviousPlayers(O,!1,T.namespaceId,T.triggerName,null).forEach(X=>{yt(me,O,[]).push(X),X.destroy()})});const wt=_.filter(T=>Bb(T,l,c)),Et=new Map;Fb(Et,this.driver,m,c,On).forEach(T=>{Bb(T,l,c)&&wt.push(T)});const kn=new Map;f.forEach((T,O)=>{Fb(kn,this.driver,new Set(T),l,"!")}),wt.forEach(T=>{const O=Et.get(T),P=kn.get(T);Et.set(T,Object.assign(Object.assign({},O),P))});const sn=[],Lr=[],Br={};o.forEach(T=>{const{element:O,player:P,instruction:X}=T;if(i.has(O)){if(u.has(O))return P.onDestroy(()=>_n(O,X.toStyles)),P.disabled=!0,P.overrideTotalTime(X.totalTime),void r.push(P);let Ve=Br;if(bt.size>1){let Dt=O;const Jn=[];for(;Dt=Dt.parentNode;){const _e=bt.get(Dt);if(_e){Ve=_e;break}Jn.push(Dt)}Jn.forEach(_e=>bt.set(_e,Ve))}const yn=this._buildAnimation(P.namespaceId,X,me,s,kn,Et);if(P.setRealPlayer(yn),Ve===Br)sn.push(P);else{const Dt=this.playersByElement.get(Ve);Dt&&Dt.length&&(P.parentPlayer=qn(Dt)),r.push(P)}}else Ei(O,X.fromStyles),P.onDestroy(()=>_n(O,X.toStyles)),Lr.push(P),u.has(O)&&r.push(P)}),Lr.forEach(T=>{const O=s.get(T.element);if(O&&O.length){const P=qn(O);T.setRealPlayer(P)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const O=_[T],P=O[Nt];if(xr(O,Ua),P&&P.hasAnimation)continue;let X=[];if(a.size){let yn=a.get(O);yn&&yn.length&&X.push(...yn);let Dt=this.driver.query(O,Yd,!0);for(let Jn=0;Jn<Dt.length;Jn++){let _e=a.get(Dt[Jn]);_e&&_e.length&&X.push(..._e)}}const Ve=X.filter(yn=>!yn.destroyed);Ve.length?oN(this,O,Ve):this.processLeaveNode(O)}return _.length=0,sn.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const O=this.players.indexOf(T);this.players.splice(O,1)}),T.play()}),sn}elementContainsData(e,t){let i=!1;const r=t[Nt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==zs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=yt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ei(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;u.add(g);const _=g[Nt];if(_&&_.removedBeforeQueried)return new $s(p.duration,p.delay);const y=g!==l,m=function aN(n){const e=[];return Lb(n,e),e}((i.get(g)||JF).map(me=>me.getRealPlayer())).filter(me=>!!me.element&&me.element===g),w=s.get(g),M=o.get(g),V=cb(0,this._normalizer,0,p.keyframes,w,M),de=this._buildPlayer(p,V,m);if(p.subTimeline&&r&&d.add(g),y){const me=new ch(e,a,g);me.setRealPlayer(de),c.push(me)}return de});c.forEach(p=>{yt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function iN(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Lt(p,vb));const f=qn(h);return f.onDestroy(()=>{u.forEach(p=>xr(p,vb)),_n(l,t.toStyles)}),d.forEach(p=>{yt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new $s(e.duration,e.delay)}}class ch{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new $s,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>$d(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){yt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function rl(n){return n&&1===n.nodeType}function Pb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function Fb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(Pb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Nt]=eN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Pb(l,s[a++])),o}function Nb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Lt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function xr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function oN(n,e,t){qn(t).onDone(()=>n.processLeaveNode(e))}function Lb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof ab?Lb(i.players,e):e.push(i)}}function Bb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class sl{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new nN(e,t,i),this._timelineEngine=new KF(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Jd(this._driver,s,l,[]);if(l.length)throw function YP(n,e){return new S(3404,G)}();a=function zF(n,e,t){return new WF(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=ub(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=ub(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&_n(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_n(this._element,this._initialStyles),this._endStyles&&(_n(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ei(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ei(this._element,this._endStyles),this._endStyles=null),_n(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function uh(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];dN(r)&&(e=e||{},e[r]=n[r])}return e}function dN(n){return"display"===n||"position"===n}class Vb{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:Cb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class hN{validateStyleProperty(e){return pb(e)}matchesElement(e,t){return!1}containsElement(e,t){return gb(e,t)}getParentElement(e){return Gd(e)}query(e,t,i){return mb(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof Vb);(function mF(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function _F(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=Cb(n,l)})}}return e}(e,t=t.map(h=>Kn(h,!1)),c);const d=function cN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=uh(e[0]),e.length>1&&(i=uh(e[e.length-1]))):e&&(t=uh(e)),t||i?new uN(n,t,i):null}(e,t);return new Vb(e,t,l,d)}}let fN=(()=>{class n extends tb{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Ut.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?ib(t):t;return Hb(this._renderer,null,i,"register",[r]),new pN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(v(Ms),v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class pN extends class SP{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new gN(this._id,e,t||{},this._renderer)}}class gN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Hb(this._renderer,this.element,this.id,e,t)}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(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Hb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const jb="@.disabled";let mN=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new $b("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new _N(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(v(Ms),v(sl),v(se))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class $b{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==jb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class _N extends $b{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==jb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function yN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function vN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let bN=(()=>{class n extends sl{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(v(K),v(qd),v(rh))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const al=new x("AnimationModuleType"),Ub=[{provide:tb,useClass:fN},{provide:rh,useFactory:function wN(){return new VF}},{provide:sl,useClass:bN},{provide:Ms,useFactory:function EN(n,e,t){return new mN(n,e,t)},deps:[Ia,sl,se]}],zb=[{provide:qd,useFactory:()=>new hN},{provide:al,useValue:"BrowserAnimations"},...Ub],DN=[{provide:qd,useClass:_b},{provide:al,useValue:"NoopAnimations"},...Ub];let CN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?DN:zb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:zb,imports:[hv]}),n})();const TN=new x("mat-sanity-checks",{providedIn:"root",factory:function SN(){return!0}});let Yn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Od()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(v(eb),v(TN,8),v(K))},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[js],js]}),n})();function MN(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=xa(e)}}}function Gb(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function IN(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xa(e)}}}class AN{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const qb={enterDuration:225,exitDuration:150},dh=Pa({passive:!0}),Kb=["mousedown","touchstart"],Yb=["mouseup","mouseleave","touchend","touchcancel"];class RN{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Cr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},qb),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function PN(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function kN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new AN(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},qb),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Cr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Kb))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Yb),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=Kv(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Yv(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,dh)})})}_removeTriggerEvents(){this._triggerElement&&(Kb.forEach(e=>{this._triggerElement.removeEventListener(e,this,dh)}),this._pointerUpEventsRegistered&&Yb.forEach(e=>{this._triggerElement.removeEventListener(e,this,dh)}))}}const FN=new x("mat-ripple-global-options");let Zb=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new RN(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(se),E(nn),E(FN,8),E(al,8))},n.\u0275dir=Le({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Mn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),NN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[Yn,xd],Yn]}),n})();const LN=["mat-button",""],BN=["*"],HN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],jN=Gb(MN(IN(class{constructor(n){this._elementRef=n}})));let $N=(()=>{class n extends jN{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of HN)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(Xv),E(al,8))},n.\u0275cmp=ni({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&Fu(Zb,5),2&t){let r;Pu(r=Nu())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(gt("disabled",i.disabled||null),Mn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[nr],attrs:LN,ngContentSelectors:BN,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(qo(),Te(0,"span",0),vs(1),Me(),ys(2,"span",1)(3,"span",2)),2&t&&(q(2),Mn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),U("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Zb],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),UN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[NN,Yn],Yn]}),n})();function ll(n,e){return new oe(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=vl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function Rn(){}function Bt(n,e,t){return function(r){return r.lift(new WN(n,e,t))}}class WN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new GN(e,this.nextOrObserver,this.error,this.complete))}}class GN extends he{constructor(e,t,i,r){super(e),this._tapNext=Rn,this._tapError=Rn,this._tapComplete=Rn,this._tapError=i||Rn,this._tapComplete=r||Rn,Vr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Rn,this._tapError=t.error||Rn,this._tapComplete=t.complete||Rn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Xb(n){return function(t){const i=new qN(n),r=t.lift(i);return i.caught=r}}class qN{constructor(e){this.selector=e}call(e,t){return t.subscribe(new KN(e,this.selector,this.caught))}}class KN extends $r{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new jr(this);this.add(i);const r=Ur(t,i);r!==i&&this.add(r)}}}class ZN{constructor(e){this.callback=e}call(e,t){return t.subscribe(new XN(e,this.callback))}}class XN extends he{constructor(e,t){super(e),this.add(new ne(t))}}class JN{}class Zn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Zn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Zn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Zn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class e1{encodeKey(e){return Qb(e)}encodeValue(e){return Qb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const n1=/%(\d[a-f0-9])/gi,r1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Qb(n){return encodeURIComponent(n).replace(n1,(e,t)=>{var i;return null!==(i=r1[t])&&void 0!==i?i:e})}function Jb(n){return`${n}`}class Xn{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new e1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function t1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Xn({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Jb(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Jb(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class s1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function ew(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function tw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function nw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Gs{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function o1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Zn),this.context||(this.context=new s1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Xn,this.urlWithParams=t}serializeBody(){return null===this.body?null:ew(this.body)||tw(this.body)||nw(this.body)||function a1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Xn?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||nw(this.body)?null:tw(this.body)?this.body.type||null:ew(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Xn?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Gs(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class hh extends class l1{constructor(e,t=200,i="OK"){this.headers=e.headers||new Zn,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ze.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new hh({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function fh(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let rw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Gs)s=t;else{let l,c;l=r.headers instanceof Zn?r.headers:new Zn(r.headers),r.params&&(c=r.params instanceof Xn?r.params:new Xn({fromObject:r.params})),s=new Gs(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Pt(s).pipe(function QN(n,e){return io(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Gs||"events"===r.observe)return o;const a=o.pipe(ka(l=>l instanceof hh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(He(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(He(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(He(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(He(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Xn).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,fh(r,i))}post(t,i,r={}){return this.request("POST",t,fh(r,i))}put(t,i,r={}){return this.request("PUT",t,fh(r,i))}}return n.\u0275fac=function(t){return new(t||n)(v(JN))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const u1=["*"];let cl;function qs(n){var e;return(null===(e=function d1(){if(void 0===cl&&(cl=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(cl=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return cl}())||void 0===e?void 0:e.createHTML(n))||n}function sw(n){return Error(`Unable to find icon with the name "${n}"`)}function ow(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function aw(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ci{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let ul=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new Ci(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(Q.HTML,r);if(!o)throw aw(r);const a=qs(o);return this._addSvgIconConfig(t,i,new Ci("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Ci(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(Q.HTML,i);if(!s)throw aw(i);const o=qs(s);return this._addSvgIconSetConfig(t,new Ci("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(Q.RESOURCE_URL,t);if(!i)throw ow(t);const r=this._cachedIconsByUrl.get(i);return r?Pt(dl(r)):this._loadSvgIconFromConfig(new Ci(t,null)).pipe(Bt(s=>this._cachedIconsByUrl.set(i,s)),He(s=>dl(s)))}getNamedSvgIcon(t,i=""){const r=lw(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):Vv(sw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Pt(dl(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(He(i=>dl(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?Pt(r):function zN(...n){if(1===n.length){const e=n[0];if(Ai(e))return ll(e,null);if(ml(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return ll(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return ll(n=1===n.length&&Ai(n[0])?n[0]:n,null).pipe(He(t=>e(...t)))}return ll(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Xb(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Q.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Pt(null)})))).pipe(He(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw sw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Bt(i=>t.svgText=i),He(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Pt(null):this._fetchIcon(t).pipe(Bt(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(qs("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(qs("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function h1(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(Q.RESOURCE_URL,r);if(!a)throw ow(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(He(u=>qs(u)),function YN(n){return e=>e.lift(new ZN(n))}(()=>this._inProgressUrlFetches.delete(a)),qh());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(lw(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return p1(s)?new Ci(s.url,null,s.options):new Ci(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(v(rw,8),v(Td),v(K,8),v(Hn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function dl(n){return n.cloneNode(!0)}function lw(n,e){return n+":"+e}function p1(n){return!(!n.url||!n.options)}const g1=Gb(class{constructor(n){this._elementRef=n}}),m1=new x("mat-icon-location",{providedIn:"root",factory:function _1(){const n=Ao(K),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),cw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],y1=cw.map(n=>`[${n}]`).join(", "),v1=/^url\(['"]?#(.*?)['"]?\)$/;let b1=(()=>{class n extends g1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=ne.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=xa(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(y1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)cw.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(v1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Tr(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(ul),function To(n){return function DD(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Tf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Re(),n)}("aria-hidden"),E(m1),E(Hn))},n.\u0275cmp=ni({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(gt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Mn("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[nr],ngContentSelectors:u1,decls:1,vars:0,template:function(t,i){1&t&&(qo(),vs(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),w1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[Yn],Yn]}),n})();class E1 extends he{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class D1 extends he{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function C1(n,e,t,i,r=new D1(n,t,i)){if(!r.closed)return e instanceof oe?e.subscribe(r):_l(e)(r)}const uw={};class T1{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new M1(e,this.resultSelector))}}class M1 extends E1{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(uw),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(C1(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===uw?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function ph(...n){return function I1(){return Wh(1)}()(Pt(...n))}class A1{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new O1(e,this.dueTime,this.scheduler))}}class O1 extends he{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(R1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function R1(n){n.debouncedNext()}function k1(...n){const e=n[n.length-1];return Oi(e)?(n.pop(),t=>ph(n,t,e)):t=>ph(n,t)}const dw=new Set;let Ar,P1=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):N1}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function F1(n){if(!dw.has(n))try{Ar||(Ar=document.createElement("style"),Ar.setAttribute("type","text/css"),document.head.appendChild(Ar)),Ar.sheet&&(Ar.sheet.insertRule(`@media ${n} {body{ }}`,0),dw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(v(nn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function N1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let L1=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Oe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return hw(Aa(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function S1(...n){let e,t;return Oi(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Ai(n[0])&&(n=n[0]),bl(n,t).lift(new T1(e))}(hw(Aa(t)).map(o=>this._registerQuery(o).observable));return s=ph(s.pipe(Tr(1)),s.pipe($v(1),function x1(n,e=Md){return t=>t.lift(new A1(n,e))}(0))),s.pipe(He(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new oe(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(k1(i),He(({matches:o})=>({query:t,matches:o})),rn(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(v(P1),v(se))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const V1={tooltipState:TP("state",[rb("initial, void, hidden",Gn({opacity:0,transform:"scale(0)"})),rb("visible",Gn({transform:"scale(1)"})),sb("* => visible",nb("200ms cubic-bezier(0, 0, 0.2, 1)",MP([Gn({opacity:0,transform:"scale(0)",offset:0}),Gn({opacity:.5,transform:"scale(0.99)",offset:.5}),Gn({opacity:1,transform:"scale(1)",offset:1})]))),sb("* => hidden",nb("100ms cubic-bezier(0, 0, 0.2, 1)",Gn({opacity:0})))])},fw="tooltip-panel",pw=Pa({passive:!0}),gw=new x("mat-tooltip-scroll-strategy"),U1={provide:gw,deps:[Na],useFactory:function $1(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},z1=new x("mat-tooltip-default-options",{providedIn:"root",factory:function W1(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let G1=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Oe,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(rn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=xa(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=mv(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=mv(t)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rn(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,pw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new xv(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(rn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(rn(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${fw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rn(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rn(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function nP(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Tr(1),rn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${fw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,pw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function nm(){throw new Error("invalid")}()},n.\u0275dir=Le({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),q1=(()=>{class n extends G1{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=Y1}}return n.\u0275fac=function(t){return new(t||n)(E(Na),E(Ke),E(Tv),E(mt),E(se),E(nn),E(fP),E(Xv),E(gw),E(Sv,8),E(z1,8),E(K))},n.\u0275dir=Le({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[nr]}),n})(),K1=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Oe}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(E(Dr))},n.\u0275dir=Le({type:n}),n})(),Y1=(()=>{class n extends K1{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(E(Dr),E(L1))},n.\u0275cmp=ni({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&bs("zoom","visible"===i._visibility?1:null)},features:[nr],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(Te(0,"div",0),Ot("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function k_(n,e){const t=Y();let i;const r=n+20;t.firstCreatePass?(i=function wI(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=ai(i.type)),o=Pn(E);try{const a=Eo(!1),l=s();return Eo(a),function VS(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,b(),r,l),l}finally{Pn(o)}}(1,"async"),Es(2),Me()),2&t){let r;Mn("mat-tooltip-handset",null==(r=P_(1,5,i._isHandset))?null:r.matches),U("ngClass",i.tooltipClass)("@state",i._visibility),q(2),gr(i.message)}},directives:[dd],pipes:[Jy],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[V1.tooltipState]},changeDetection:0}),n})(),Z1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:[U1],imports:[[CP,vd,Sk,Yn],Yn,Rd]}),n})(),X1=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(v(K))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Q1=new oe(Rn);function mw(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function Ks(n){return"img"===n.nodeName.toLowerCase()}function _w(n,e,t){return Ks(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function gh(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const tL=gh("defaultImage"),yw=gh("lazyLoad"),nL=gh("errorImage");function mh(n){return(e,t,i)=>{Ks(e)&&mw(e)&&n(e),t&&_w(e,t,i)}}const iL=mh(tL),rL=mh(yw),sL=mh(nL);function vw(n,e){n.className=n.className.replace(e,"")}function _h(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class bw extends class lL extends class oL{constructor(){this.navigator=function eL(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){iL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&_h(e.element,"ng-lazyloading"),function aL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&vw(e.element,"ng-lazyloaded")}finally(e){_h(e.element,"ng-lazyloaded"),vw(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return Ks(t)&&mw(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],yw(o),_w(o,r,i)):(o=new Image,Ks(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),Ks(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;sL(i,s,r),_h(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;rL(i,e,r)}isDisabled(){return function zA(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new Oe,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return Pt({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),oe.create(s=>{const o=this.intersectionSubject.pipe(ka(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const yh=new x("LazyLoadImageHooks");let uL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new Ye,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new Hv,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(Bt(t=>this.hooks.onAttributeChange(t)),Bt(t=>t.onStateChange.emit({reason:"setup"})),Bt(t=>this.hooks.setup(t)),Nd(t=>t.imagePath?this.hooks.getObservable(t).pipe(function cL(n,e){return t=>t.pipe(Bt(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),ka(i=>n.isVisible(i,e)),Tr(1),Bt(()=>e.onStateChange.emit({reason:"start-loading"})),io(()=>n.loadImage(e)),Bt(()=>e.onStateChange.emit({reason:"mount-image"})),Bt(i=>n.setLoadedImage(i,e)),Bt(()=>e.onStateChange.emit({reason:"loading-succeeded"})),He(()=>!0),Xb(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),Pt(!1))),Bt(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function J1(){return Q1}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(Tr(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(se),E(oa),E(yh))},n.\u0275dir=Le({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Li]}),n})(),dL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:[{provide:yh,useClass:bw}]}),n})();class Vt{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?Vt.empty:new Vt(t,i,r,s)}static fromWindow(e){return new Vt(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new Vt(t,i,r,s):Vt.empty}}Vt.empty=new Vt(0,0,0,0);var Ys="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,hL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Ys&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),mL=Ys&&window.Promise?function fL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function pL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},hL))}};function ww(n){return n&&"[object Function]"==={}.toString.call(n)}function Si(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function vh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function Zs(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=Si(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:Zs(vh(n))}function Ew(n){return n&&n.referenceNode?n.referenceNode:n}var Dw=Ys&&!(!window.MSInputMethodContext||!document.documentMode),Cw=Ys&&/MSIE 10/.test(navigator.userAgent);function Rr(n){return 11===n?Dw:10===n?Cw:Dw||Cw}function kr(n){if(!n)return document.documentElement;for(var e=Rr(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===Si(t,"position")?kr(t):t:n?n.ownerDocument.documentElement:document.documentElement}function bh(n){return null!==n.parentNode?bh(n.parentNode):n}function hl(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function _L(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||kr(n.firstElementChild)===n)}(o)?o:kr(o);var a=bh(n);return a.host?hl(a.host,e):hl(n,bh(e).host)}function Pr(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function yL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Pr(e,"top"),r=Pr(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function Sw(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function Tw(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],Rr(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function Mw(n){var e=n.body,t=n.documentElement,i=Rr(10)&&getComputedStyle(t);return{height:Tw("Height",e,t,i),width:Tw("Width",e,t,i)}}var vL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},bL=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Fr=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},Ht=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function Qn(n){return Ht({},n,{right:n.left+n.width,bottom:n.top+n.height})}function wh(n){var e={};try{if(Rr(10)){e=n.getBoundingClientRect();var t=Pr(n,"top"),i=Pr(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?Mw(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=Si(n);l-=Sw(u,"x"),c-=Sw(u,"y"),r.width-=l,r.height-=c}return Qn(r)}function Eh(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Rr(10),r="HTML"===e.nodeName,s=wh(n),o=wh(e),a=Zs(n),l=Si(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Qn({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=yL(d,e)),d}function wL(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=Eh(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:Pr(t),a=e?0:Pr(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return Qn(l)}function Iw(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Si(n,"position"))return!0;var t=vh(n);return!!t&&Iw(t)}function xw(n){if(!n||!n.parentElement||Rr())return document.documentElement;for(var e=n.parentElement;e&&"none"===Si(e,"transform");)e=e.parentElement;return e||document.documentElement}function Dh(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?xw(n):hl(n,Ew(e));if("viewport"===i)s=wL(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Zs(vh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=Eh(a,o,r);if("HTML"!==a.nodeName||Iw(o))s=l;else{var c=Mw(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function EL(n){return n.width*n.height}function Aw(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=Dh(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return Ht({key:h},a[h],{area:EL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function Ow(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?xw(e):hl(e,Ew(t));return Eh(t,r,i)}function Rw(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function fl(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function kw(n,e,t){t=t.split("-")[0];var i=Rw(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[fl(a)],r}function Xs(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function Pw(n,e,t){var i=void 0===t?n:n.slice(0,function DL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=Xs(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&ww(s)&&(e.offsets.popper=Qn(e.offsets.popper),e.offsets.reference=Qn(e.offsets.reference),e=s(e,r))}),e}function CL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=Ow(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=Aw(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=kw(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=Pw(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function Fw(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function Ch(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function SL(){return this.state.isDestroyed=!0,Fw(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Ch("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Nw(n){var e=n.ownerDocument;return e?e.defaultView:window}function Lw(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||Lw(Zs(s.parentNode),e,t,i),i.push(s)}function TL(n,e,t,i){t.updateBound=i,Nw(n).addEventListener("resize",t.updateBound,{passive:!0});var r=Zs(n);return Lw(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function ML(){this.state.eventsEnabled||(this.state=TL(this.reference,0,this.state,this.scheduleUpdate))}function xL(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function IL(n,e){return Nw(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Sh(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Th(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Sh(e[t])&&(i="px"),n.style[t]=e[t]+i})}var PL=Ys&&/Firefox/i.test(navigator.userAgent);function Bw(n,e,t){var i=Xs(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var Vw=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Mh=Vw.slice(3);function Hw(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Mh.indexOf(n),i=Mh.slice(t+1).concat(Mh.slice(0,t));return e?i.reverse():i}var qL={shift:{order:100,enabled:!0,fn:function zL(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:Fr({},l,s[l]),end:Fr({},l,s[l]+s[c]-o[c])};n.offsets.popper=Ht({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function $L(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=Sh(+t)?[+t,0]:function jL(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(Xs(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,g){return""===p[p.length-1]&&-1!==["+","-"].indexOf(g)?(p[p.length-1]=g,f=!0,p):f?(p[p.length-1]+=g,f=!1,p):p.concat(g)},[]).map(function(p){return function HL(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?Qn("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){Sh(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function UL(n,e){var t=e.boundariesElement||kr(n.instance.popper);n.instance.reference===t&&(t=kr(t));var i=Ch("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=Dh(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),Fr({},f,p)},secondary:function(f){var p="right"===f?"left":"top",g=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(g=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),Fr({},p,g)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=Ht({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function VL(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function NL(n,e){var t;if(!Bw(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Rw(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=Qn(n.offsets.popper);var g=a[d]+a[c]/2-p/2,_=Si(n.instance.popper),y=parseFloat(_["margin"+u]),m=parseFloat(_["border"+u+"Width"]),w=g-n.offsets.popper[d]-y-m;return w=Math.max(Math.min(o[c]-p,w),0),n.arrowElement=i,n.offsets.arrow=(Fr(t={},d,Math.round(w)),Fr(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function BL(n,e){if(Fw(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=Dh(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=fl(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=Hw(i);break;case"counterclockwise":o=Hw(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=fl(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),g=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),y="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&_,m=-1!==["top","bottom"].indexOf(i),V=!!e.flipVariations&&(m&&"start"===s&&f||m&&"end"===s&&p||!m&&"start"===s&&g||!m&&"end"===s&&_)||!!e.flipVariationsByContent&&(m&&"start"===s&&p||m&&"end"===s&&f||!m&&"start"===s&&_||!m&&"end"===s&&g);(h||y||V)&&(n.flipped=!0,(h||y)&&(i=o[l+1]),V&&(s=function LL(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=Ht({},n.offsets.popper,kw(n.instance.popper,n.offsets.reference,n.placement)),n=Pw(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function GL(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=fl(e),n.offsets.popper=Qn(r),n}},hide:{order:800,enabled:!0,fn:function WL(n){if(!Bw(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=Xs(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function FL(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=Xs(n.instance.modifiers,function(w){return"applyStyle"===w.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,g,o=void 0!==s?s:e.gpuAcceleration,a=kr(n.instance.popper),l=wh(a),c={position:r.position},u=function kL(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(y){return y},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,g=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:g(i.top),bottom:g(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!PL),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=Ch("transform");if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var y="right"===h?-1:1;c[d]=g*("bottom"===d?-1:1),c[h]=p*y,c.willChange=d+", "+h}return n.attributes=Ht({},{"x-placement":n.placement},n.attributes),n.styles=Ht({},c,n.styles),n.arrowStyles=Ht({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function OL(n){return Th(n.instance.popper,n.styles),function AL(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&Th(n.arrowElement,n.arrowStyles),n},onLoad:function RL(n,e,t,i,r){var s=Ow(r,e,n,t.positionFixed),o=Aw(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),Th(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},KL={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:qL},pl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=mL(this.update.bind(this)),this.options=Ht({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(Ht({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=Ht({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Ht({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&ww(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return bL(n,[{key:"update",value:function(){return CL.call(this)}},{key:"destroy",value:function(){return SL.call(this)}},{key:"enableEventListeners",value:function(){return ML.call(this)}},{key:"disableEventListeners",value:function(){return xL.call(this)}}]),n}();pl.Utils=("undefined"!=typeof window?window:global).PopperUtils,pl.placements=Vw,pl.Defaults=KL;const YL=pl,ZL=["popperViewRef"];function XL(n,e){1&n&&(Te(0,"div",5),vs(1),Me()),2&n&&U("innerHTML",pe().text,Rp)}function QL(n,e){1&n&&(Te(0,"div",6),vs(1,1),Me())}const jw=["*","*"];let Ti=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),$w=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),Uw=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:$w.Auto,boundariesElement:"",trigger:Ti.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new Ye,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Ti.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new YL(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(E(Ke),E(ea),E(mt),E(Dr))},n.\u0275cmp=ni({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&Fu(ZL,5),2&t){let r;Pu(r=Nu())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&Ot("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:jw,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(qo(jw),Te(0,"div",0,1),ue(2,XL,2,1,"div",2),ue(3,QL,2,0,"div",3),ys(4,"div",4),Me()),2&t&&(bs("display",i.displayType)("opacity",i.opacity),Mn("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),U("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),gt("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),q(2),U("ngIf",i.text),q(1),U("ngIf",!i.text),q(1),bs("border-color",i.arrowColor),Mn("__force-arrow",i.arrowColor),U("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[md,dd,hd],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Ne{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=Uw,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new Ye,this.popperOnHidden=new Ye,this.popperOnUpdate=new Ye,Ne.baseOptions=Object.assign({},Ne.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Ti.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Ti.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Ti.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Ti.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Ne.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Ne.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Ne.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Ne.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Ne.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Ne.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Ne.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Ne.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Ne.assignDefined(e.popperOptions,Ne.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Ne.\u0275fac=function(e){return new(e||Ne)(E(mt),E(Dr),E(Un),E(Ke),E(ea),E("popperDefaults"))},Ne.\u0275dir=Le({type:Ne,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Li]}),Ne.baseOptions={showDelay:0,placement:$w.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Ti.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let JL=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({imports:[[vd]]}),n})();function eB(n,e){1&n&&pn(0)}function tB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",7),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,eB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" raised button"),q(1),U("ngTemplateOutlet",r)}}function nB(n,e){1&n&&pn(0)}function iB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",9),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,nB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" stroked button"),q(1),U("ngTemplateOutlet",r)}}function rB(n,e){1&n&&pn(0)}function sB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",10),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,rB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" flat button"),q(1),U("ngTemplateOutlet",r)}}function oB(n,e){1&n&&pn(0)}function aB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",11),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,oB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" icon button"),q(1),U("ngTemplateOutlet",r)}}function lB(n,e){1&n&&pn(0)}function cB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",12),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,lB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" fab button"),q(1),U("ngTemplateOutlet",r)}}function uB(n,e){1&n&&pn(0)}function dB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",13),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,uB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" mini fab button"),q(1),U("ngTemplateOutlet",r)}}function hB(n,e){1&n&&pn(0)}function fB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",14),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,hB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),gt("aria-label",t.label+" unstyled button"),q(1),U("ngTemplateOutlet",r)}}function pB(n,e){1&n&&pn(0)}function gB(n,e){if(1&n){const t=Tn();xt(0),Te(1,"button",15),Ot("click",function(r){return wn(t),pe().emitClick(r)}),ue(2,pB,1,0,"ng-container",8),Me(),At()}if(2&n){const t=pe(),i=Ue(12),r=Ue(10);q(1),U("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),gt("aria-label",t.label+" basic button"),q(1),U("ngTemplateOutlet",r)}}function mB(n,e){if(1&n&&(Te(0,"mat-icon",18),Es(1),Me()),2&n){const t=pe(2);U("ngStyle",t.buttonIconStyle),q(1),gr(t.icon)}}function _B(n,e){if(1&n&&(Te(0,"div"),Es(1),Me()),2&n){const t=pe(2);q(1),gr(t.label||"Button")}}function yB(n,e){if(1&n&&(ue(0,mB,2,2,"mat-icon",16),ue(1,_B,2,1,"div",17)),2&n){const t=pe();U("ngIf",t.icon),q(1),U("ngIf",!t.icon)}}function vB(n,e){1&n&&ys(0,"img",19),2&n&&U("lazyLoad",pe().imgUrl)}function bB(n,e){if(1&n&&(Te(0,"div"),Es(1),Me()),2&n){const t=pe();Zt(t.popup.style),q(1),gr(t.popup.text)}}let wB=(()=>{class n{emitClick(t){this.onClick&&(t.stopPropagation(),this.onClick())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ni({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(xt(0,0),ue(1,tB,3,7,"ng-container",1),ue(2,iB,3,7,"ng-container",1),ue(3,sB,3,7,"ng-container",1),ue(4,aB,3,7,"ng-container",1),ue(5,cB,3,7,"ng-container",1),ue(6,dB,3,7,"ng-container",1),ue(7,fB,3,7,"ng-container",1),ue(8,gB,3,8,"ng-container",2),At(),ue(9,yB,2,2,"ng-template",null,3,U_),Te(11,"popper-content",null,4),ue(13,vB,1,1,"img",5),ue(14,bB,2,3,"div",6),Me()),2&t&&(U("ngSwitch",i.view),q(1),U("ngSwitchCase","raised"),q(1),U("ngSwitchCase","stroked"),q(1),U("ngSwitchCase","flat"),q(1),U("ngSwitchCase","icon"),q(1),U("ngSwitchCase","fab"),q(1),U("ngSwitchCase","miniFab"),q(1),U("ngSwitchCase","unstyled"),q(6),U("ngIf",i.imgUrl),q(1),U("ngIf",i.popup))},directives:[Da,Yy,$N,q1,md,Ne,Qy,Zy,hd,b1,Uw,uL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class WB extends bw{loadImage({imagePath:e}){return function zw(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let GB=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function Kk(n,e){const t=function jk(n,e){return e.get(Un).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new Wk(n,e.injector),r=function Hk(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function Fk(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends qk{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(wB,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(v(rt))},n.\u0275mod=Ee({type:n}),n.\u0275inj=ye({providers:[{provide:yh,useClass:WB},{provide:Fd,useClass:X1}],imports:[[hv,CN,UN,Z1,w1,dL,JL.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();(function Tx(){_y=!1})(),lR().bootstrapModule(GB).catch(n=>console.log(n))})();